8837a23888142ed3e5e6f60efebd45b7b58f38cf
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-12-04 Tom Tromey <tromey@adacore.com>
2
3 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
4
5 2019-12-04 Tom Tromey <tromey@adacore.com>
6
7 * dwarf2read.c (process_structure_scope): Initialize
8 "discr_offset".
9
10 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
11
12 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
13 add it into the search spec.
14 (parse_max_results_option): New function.
15 (mi_info_functions_or_variables): Parse -max-results flag and pass
16 it to mi_symbol_info.
17 (mi_cmd_symbol_info_modules): Likewise.
18 (mi_cmd_symbol_info_types): Likewise.
19 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
20 return type to bool, change result container into a set, and don't
21 add new results if we have enough already.
22 (global_symbol_searcher::add_matching_msymbols): Change return
23 type to bool, and don't add new results if we have enough already.
24 (sort_search_symbols_remove_dups): Delete.
25 (global_symbol_searcher::search): Early exit from search loop when
26 we have enough results. Use a std::set to collect the results
27 from calling add_matching_symbols.
28 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
29 member function.
30 (global_symbol_searcher) <m_max_search_results>: New member
31 variable.
32 (global_symbol_searcher) <add_matching_symbols>: Update header
33 comment and change return type to bool.
34 (global_symbol_searcher) <add_matching_msymbols>: Update header
35 comment and change return type to bool.
36
37 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
38
39 * symtab.c (symbol_search::compare_search_syms): Update header
40 comment.
41 (global_symbol_searcher::is_suitable_msymbol): New function.
42 (global_symbol_searcher::expand_symtabs): New function.
43 (global_symbol_searcher::add_matching_symbols): New function.
44 (global_symbol_searcher::add_matching_msymbols): New function.
45 (global_symbol_searcher::search): Move most of the content
46 into the new functions above, and call them as needed.
47 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
48 function.
49 (global_symbol_searcher) <add_matching_symbols>: New member
50 function.
51 (global_symbol_searcher) <add_matching_msymbols>: New member
52 function.
53 (global_symbol_searcher) <is_suitable_msymbol>: New member
54 function.
55
56 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
57
58 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
59 -symbol-info-module-variables entries.
60 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
61 (mi_cmd_symbol_info_module_variables): Declare.
62 * mi/mi-symbol-cmds.c
63 (module_symbol_search_iterator): New typedef.
64 (output_module_symbols_in_single_module_and_file): New function.
65 (output_module_symbols_in_single_module): New function.
66 (mi_info_module_functions_or_variables): New function.
67 (mi_cmd_symbol_info_module_functions): New function.
68 (mi_cmd_symbol_info_module_variables): New function.
69 * NEWS: Mention new MI command.
70
71 2019-12-03 Christian Biesinger <cbiesinger@google.com>
72
73 * bcache.c (hash): Remove.
74 (hash_continue): Remove.
75 * bcache.h (hash): Remove.
76 (hash_continue): Remove.
77 (struct bcache) <ctor>: Update.
78 * psymtab.c (psymbol_hash): Update.
79 * stabsread.c (hashname): Update.
80 * utils.h (fast_hash): Add an argument for a start value,
81 defaulting to zero.
82
83 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
84 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
85 (destroy_block_symbol_cache): New function.
86 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
87 (resize_symbol_cache): Likewise.
88
89 2019-12-02 Tom Tromey <tom@tromey.com>
90
91 * unittests/tui-selftests.c (run_tests): Make conditional.
92 (_initialize_tui_selftest): Make conditional.
93
94 2019-12-02 Christian Biesinger <cbiesinger@google.com>
95
96 * aix-thread.c (debug_aix_thread): Change type to bool.
97
98 2019-12-02 Luis Machado <luis.machado@linaro.org>
99
100 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
101
102 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
103
104 * dwarf2read.c (read_tag_string_type): Read the fields required to
105 make a dynamic string, and possibly create a dynamic range for the
106 string.
107 (attr_to_dynamic_prop): Setup is_reference based on the type of
108 attribute being processed.
109 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
110 (resolve_dynamic_array): Rename to...
111 (resolve_dynamic_array_or_string): ...this, update header comment,
112 and accept TYPE_CODE_STRING.
113 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
114
115 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
116
117 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
118 of its implementation from...
119 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
120 the new function.
121
122 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
123
124 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
125 create a range with stride where appropriate.
126 * f-valprint.c: Include 'gdbarch.h'.
127 (f77_print_array_1): Take the stride into account when walking the
128 array. Also convert the stride into addressable units.
129 * gdbtypes.c (create_range_type): Initialise the stride to
130 constant zero.
131 (create_range_type_with_stride): New function, initialise the
132 range as normal, and then setup the stride.
133 (has_static_range): Include the stride here. Also change the
134 return type to bool.
135 (create_array_type_with_stride): Consider the range stride if the
136 array isn't given its own stride.
137 (resolve_dynamic_range): Resolve the stride if needed.
138 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
139 (struct range_bounds) <flag_is_byte_stride>: New member variable.
140 (TYPE_BIT_STRIDE): Define.
141 (TYPE_ARRAY_BIT_STRIDE): Define.
142 (create_range_type_with_stride): Declare.
143 * valarith.c (value_subscripted_rvalue): Take range stride into
144 account when walking the array.
145
146 2019-12-01 Tom Tromey <tom@tromey.com>
147
148 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
149 specially.
150
151 2019-12-01 Tom Tromey <tom@tromey.com>
152
153 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
154 \0.
155 * unittests/tui-selftests.c: New file.
156 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
157
158 2019-12-01 Tom Tromey <tom@tromey.com>
159
160 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
161
162 2019-12-01 Tom Tromey <tom@tromey.com>
163
164 * NEWS: Document new settings.
165 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
166 * tui/tui-win.c (_initialize_tui_win): Add border style
167 observers.
168 * tui/tui-io.h (tui_apply_style): Declare.
169 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
170 longer static.
171 (apply_ansi_escape, tui_set_reverse_mode): Update.
172 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
173 Add "skip_intensity" parameter.
174 <changed>: New member.
175 <do_set_value>: Declare.
176 (tui_border_style, tui_active_border_style): Declare.
177 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
178 globals.
179 (cli_style_option): Initialize "changed".
180 (cli_style_option::do_set_value): New function.
181 (cli_style_option::add_setshow_commands): Add "skip_intensity"
182 parameter. Update.
183 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
184 (_initialize_cli_style): Update. Create TUI border style
185 commands.
186
187 2019-12-01 Tom Tromey <tom@tromey.com>
188
189 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
190 parameter.
191 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
192 parameter.
193 * tui/tui-win.h (compact_source): Declare.
194 * tui/tui-win.c (compact_source): New global.
195 (tui_set_compact_source, tui_show_compact_source): New functions.
196 (_initialize_tui_win): Add "compact-source" setting.
197 * tui/tui-source.c (tui_source_window::set_contents): Handle
198 compact_source setting.
199 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
200 * NEWS: Document new setting.
201
202 2019-11-30 Tom Tromey <tom@tromey.com>
203
204 * dwarf2read.c (dwarf2_add_field): Include field offset when
205 computing variant part length.
206
207 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
208 * NEWS: Mention define-prefix. Tell that command names can now
209 contain a . character.
210
211 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
212
213 * command.h (valid_cmd_char_p): Declare.
214 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
215 the check of valid command char.
216 (find_command_name_length, valid_user_defined_cmd_name_p): Use
217 valid_cmd_char_p.
218 * cli/cli-script.c (validate_comname): Likewise.
219 * completer.c (gdb_completer_command_word_break_characters):
220 Do not remove . from the word break char, update comments.
221 (complete_line_internal_1): Use valid_cmd_char_p.
222 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
223 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
224
225 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
226
227 * cli/cli-script.c (do_define_command): Ensure a redefined
228 prefix command is kept as a prefix command.
229 (define_prefix_command): New function.
230 (show_user_1): Report user defined prefixes.
231 (_initialize_cli_script): Create the new 'define-prefix' command.
232 Add completers for 'define' and 'document'.
233 * top.c (execute_command): If command is a user-defined prefix only
234 command, report the list of commands for this prefix command.
235
236 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
237
238 * valops.c (find_oload_champ): Improve debug output.
239
240 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
241
242 * valops.c (find_oload_champ): Print part of debug messages
243 before the badness vector is std::move'd.
244
245 2019-11-28 Tom Tromey <tom@tromey.com>
246
247 * value.c (creal_internal_fn): Fix comment.
248
249 2019-11-28 Tom Tromey <tom@tromey.com>
250
251 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
252 flag_bound_evaluated>: Now unsigned.
253
254 2019-11-28 Tom Tromey <tom@tromey.com>
255
256 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
257 declare.
258
259 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
260
261 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
262 debug output.
263 * jit.c (jit_unregister_code): Add debug print to match
264 `jit_register_code`.
265
266 2019-11-27 Christian Biesinger <cbiesinger@google.com>
267
268 * NEWS: Mention the new multithreaded symbol loading.
269
270 2019-11-27 Christian Biesinger <cbiesinger@google.com>
271
272 * maint.c (n_worker_threads): Default to 0.
273 (worker_threads_disabled): New function.
274 * maint.h (worker_threads_disabled): New function.
275 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
276 here if worker_threads_disabled () is true.
277 (minimal_symbol_reader::install): Skip all threading if
278 worker_threads_disabled () is true.
279
280 2019-11-27 Christian Biesinger <cbiesinger@google.com>
281
282 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
283 hash code if possible.
284 (add_minsym_to_demangled_hash_table): Likewise.
285 (minimal_symbol_reader::install): Compute the hash codes for msymbol
286 on the background thread.
287 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
288 Add these fields.
289
290 2019-11-27 Christian Biesinger <cbiesinger@google.com>
291
292 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
293 of the mangled name on the background thread.
294 * symtab.c (symbol_set_names): Allow passing in the hash of the
295 linkage_name.
296 * symtab.h (symbol_set_names): Likewise.
297
298 2019-11-27 Kevin Buettner <kevinb@redhat.com>
299
300 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
301 physnames are computed for inherited DIEs.
302
303 2019-11-27 Tom Tromey <tromey@adacore.com>
304
305 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
306 backslashes.
307 * cp-support.c: Remove unnecessary backslashes.
308
309 2019-11-27 Christian Biesinger <cbiesinger@google.com>
310
311 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
312 with sym->set_linkage_name.
313 * coffread.c (coff_read_enum_type): Likewise.
314 * mdebugread.c (parse_symbol): Likewise.
315 * stabsread.c (patch_block_stabs): Likewise.
316 (define_symbol): Likewise.
317 (read_enum_type): Likewise.
318 (common_block_end): Likewise.
319 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
320 function.
321 (SYMBOL_SET_LINKAGE_NAME): Remove.
322 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
323 with sym->set_linkage_name.
324
325 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
326
327 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
328 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
329 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
330 * NEWS: Mention new MI command.
331
332 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
333
334 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
335 '-symbol-info-types', and '-symbol-info-variables'.
336 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
337 (mi_cmd_symbol_info_types): Declare.
338 (mi_cmd_symbol_info_variables): Declare.
339 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
340 (output_debug_symbol): New function.
341 (output_nondebug_symbol): New function.
342 (mi_symbol_info): New function.
343 (mi_info_functions_or_variables): New function.
344 (mi_cmd_symbol_info_functions): New function.
345 (mi_cmd_symbol_info_types): New function.
346 (mi_cmd_symbol_info_variables): New function.
347 * NEWS: Mention new commands.
348
349 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
350
351 * symtab.c (symbol_to_info_string): New function, most content
352 moved from print_symbol_info, but updated to return a std::string.
353 (print_symbol_info): Update to use symbol_to_info_string and print
354 returned string.
355 * symtab.h (symbol_to_info_string): Declare new function.
356
357 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
358
359 * python/python.c (gdbpy_rbreak): Convert to using
360 global_symbol_searcher.
361 * symtab.c (file_matches): Convert return type to bool, change
362 file list to std::vector, update header comment.
363 (search_symbols): Rename to...
364 (global_symbol_searcher::search): ...this and update now its
365 a member function of global_symbol_searcher. Take account of the
366 changes to file_matches.
367 (symtab_symbol_info): Convert to using global_symbol_searcher.
368 (rbreak_command): Likewise.
369 (search_module_symbols): Likewise.
370 * symtab.h (enum symbol_search): Update comment.
371 (search_symbols): Remove declaration.
372 (class global_symbol_searcher): New class.
373
374 2019-11-26 Tom Tromey <tromey@adacore.com>
375
376 * cp-support.c (_initialize_cp_support): Conditionally initialize
377 gdb_demangle_attempt_core_dump.
378
379 2019-11-26 Tom Tromey <tom@tromey.com>
380
381 * python/py-function.c (fnpy_init): Update.
382 * value.h (add_internal_function): Adjust declaration.
383 * value.c (function_destroyer): Remove.
384 (do_add_internal_function): Don't set destroyer or copy name.
385 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
386 Set name_allocated.
387 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
388 (cmdpy_init): Set name_allocated.
389 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
390 member.
391 (~cmd_list_element): Free "name" if needed.
392
393 2019-11-26 Tom Tromey <tom@tromey.com>
394
395 * value.h (add_internal_function): Add new overload. Move
396 documentation from value.h.
397 * value.c (do_add_internal_function): New function.
398 (add_internal_function): Use it. Add new overload.
399 (function_destroyer): Don't free doc.
400 * python/py-function.c (fnpy_init): Update.
401
402 2019-11-26 Tom Tromey <tom@tromey.com>
403
404 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
405 (cmdpy_init): Set "doc_allocated".
406
407 2019-11-26 Tom Tromey <tom@tromey.com>
408
409 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
410 name of worker thread.
411 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
412 pthread_setname_np.
413 * configure, config.in: Rebuild.
414
415 2019-11-26 Tom Tromey <tom@tromey.com>
416
417 * python/python.c (class gdbpy_gil): New.
418 (struct gdbpy_event): Add constructor, destructor, operator().
419 (gdbpy_post_event): Use run_on_main_thread.
420 (gdbpy_initialize_events): Remove.
421 (do_start_initialization): Update.
422
423 2019-11-26 Tom Tromey <tom@tromey.com>
424
425 * NEWS: Add entry.
426 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
427 commands. Call update_thread_pool_size.
428 (update_thread_pool_size, maintenance_set_worker_threads): New
429 functions.
430 (n_worker_threads): New global.
431
432 2019-11-26 Christian Biesinger <cbiesinger@google.com>
433 Tom Tromey <tom@tromey.com>
434
435 * minsyms.c (minimal_symbol_reader::install): Use
436 parallel_for_each.
437 * gdbsupport/parallel-for.h: New file.
438 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
439
440 2019-11-26 Christian Biesinger <cbiesinger@google.com>
441 Tom Tromey <tom@tromey.com>
442
443 * gdbsupport/thread-pool.h: New file.
444 * gdbsupport/thread-pool.c: New file.
445 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
446 (HFILES_NO_SRCDIR): Add thread-pool.h.
447
448 2019-11-26 Tom Tromey <tom@tromey.com>
449
450 * event-top.h (thread_local_segv_handler): Declare.
451 * event-top.c (thread_local_segv_handler): New global.
452 (install_handle_sigsegv, handle_sigsegv): New functions.
453 (async_init_signals): Install SIGSEGV handler.
454 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
455 thread-local.
456 (report_failed_demangle): New function.
457 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
458 handler-setting code, instead use segv_handler. Run warning code
459 on main thread.
460
461 2019-11-26 Tom Tromey <tom@tromey.com>
462
463 * run-on-main-thread.c: New file.
464 * run-on-main-thread.h: New file.
465 * unittests/main-thread-selftests.c: New file.
466 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
467 main-thread-selftests.c.
468 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
469 (COMMON_SFILES): Add run-on-main-thread.c.
470
471 2019-11-26 Tom Tromey <tom@tromey.com>
472
473 * main.c (setup_alternate_signal_stack): Remove.
474 (captured_main_1): Use gdb::alternate_signal_stack.
475 * gdbsupport/alt-stack.h: New file.
476
477 2019-11-26 Tom Tromey <tom@tromey.com>
478
479 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
480 Remove comment.
481 (save_original_signals_state, restore_original_signals_state): Use
482 gdb_sigmask.
483 * linux-nat.c (block_child_signals, restore_child_signals_mask)
484 (_initialize_linux_nat): Use gdb_sigmask.
485 * guile/guile.c (_initialize_guile): Use block_signals.
486 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
487 * gdbsupport/gdb-sigmask.h: New file.
488 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
489 * cp-support.c (gdb_demangle): Use gdb_sigmask.
490 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
491 pthread_sigmask.
492 * configure, config.in: Rebuild.
493 * gdbsupport/block-signals.h: New file.
494
495 2019-11-26 Tom Tromey <tom@tromey.com>
496
497 * acinclude.m4: Include ax_pthread.m4.
498 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
499 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
500 (CLIBS): Use PTHREAD_LIBS.
501 (aclocal_m4_deps): Add ax_pthread.m4.
502 * config.in, configure: Rebuild.
503 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
504
505 2019-11-26 Tom Tromey <tom@tromey.com>
506
507 * symtab.h (struct minimal_symbol) <name_set>: New member.
508 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
509 Don't call symbol_set_names.
510 (minimal_symbol_reader::install): Call symbol_set_names.
511
512 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
513
514 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
515 restore_active_ext_lang, as GIL is needed for (indirectly)
516 called PyOS_InterruptOccurred.
517
518 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
519
520 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
521 definition.
522
523 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
524
525 * remote-sim.c (simulator_command): Make static, remove
526 declaration.
527
528 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
529
530 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
531 static.
532 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
533 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
534 (main): Likewise.
535 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
536 (main): Likewise.
537 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
538 (main): Likewise.
539 * unittests/basic_string_view/element_access/char/1.cc (test01):
540 Likewise.
541 (main): Likewise.
542 * unittests/basic_string_view/element_access/char/empty.cc (main):
543 Likewise.
544 * unittests/basic_string_view/element_access/char/front_back.cc
545 (test01): Likewise.
546 (main): Likewise.
547 * unittests/basic_string_view/inserters/char/2.cc (test05):
548 Likewise.
549 (main): Likewise.
550 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
551 (test01): Likewise.
552 (main): Likewise.
553 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
554 (test01): Likewise.
555 (main): Likewise.
556 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
557 Likewise.
558 * unittests/basic_string_view/operations/compare/char/1.cc
559 (test01): Likewise.
560 (main): Likewise.
561 * unittests/basic_string_view/operations/compare/char/13650.cc
562 (test01): Likewise.
563 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
564 Likewise.
565 (main): Likewise.
566 * unittests/basic_string_view/operations/data/char/1.cc (test01):
567 Likewise.
568 (main): Likewise.
569 * unittests/basic_string_view/operations/find/char/1.cc (test01):
570 Likewise.
571 (main): Likewise.
572 * unittests/basic_string_view/operations/find/char/2.cc (test02):
573 Likewise.
574 (main): Likewise.
575 * unittests/basic_string_view/operations/find/char/3.cc (test03):
576 Likewise.
577 (main): Likewise.
578 * unittests/basic_string_view/operations/find/char/4.cc (main):
579 Likewise.
580 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
581 Likewise.
582 (main): Likewise.
583 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
584 Likewise.
585 (main): Likewise.
586 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
587 Likewise.
588 (main): Likewise.
589 * unittests/basic_string_view/operations/substr/char/1.cc
590 (test01): Likewise.
591 (main): Likewise.
592 * unittests/basic_string_view/operators/char/2.cc (main):
593 Likewise.
594 * unittests/optional/assignment/1.cc (test): Likewise.
595 * unittests/optional/assignment/2.cc (test): Likewise.
596 * unittests/optional/assignment/3.cc (test): Likewise.
597 * unittests/optional/assignment/4.cc (test): Likewise.
598 * unittests/optional/assignment/5.cc (test): Likewise.
599 * unittests/optional/assignment/6.cc (test): Likewise.
600 * unittests/optional/assignment/7.cc (test): Likewise.
601 * unittests/optional/cons/copy.cc (test): Likewise.
602 * unittests/optional/cons/default.cc (test): Likewise.
603 * unittests/optional/cons/move.cc (test): Likewise.
604 * unittests/optional/cons/value.cc (test): Likewise.
605 * unittests/optional/in_place.cc (test): Likewise.
606 * unittests/optional/observers/1.cc (test): Likewise.
607 * unittests/optional/observers/2.cc (test): Likewise.
608
609 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
610
611 * tui-win.h (tui_set_var_cmd): Remove.
612 * tui-win.c (tui_set_var_cmd): Make static.
613
614 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
615
616 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
617 rbreak_command_wrapper): Remove.
618 * symtab.c (rbreak_command_wrapper): Remove.
619
620 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
621
622 * inferior.h (info_terminal_command): Remove declaration.
623 * inflow.c (info_terminal_command): Make static.
624
625 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
626
627 * inferior.c (exit_inferior_silent): Remove.
628
629 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
630
631 * dictionary.c (dict_empty, mdict_empty): Remove.
632 * dictionary.c (mdict_empty): Remove.
633
634 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
635
636 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
637 (arc_insn_get_memory_offset): Likewise.
638 (arc_insn_dump): Likewise.
639 * cp-support.c (test_cp_symbol_name_matches): Likewise.
640 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
641 * dictionary.c (dict_iterator_next): Likewise.
642 (dict_iter_match_first): Likewise.
643 (dict_iter_match_next): Likewise.
644 * f-lang.c (evaluate_subexp_f): Likewise.
645 * hppa-tdep.c (hppa_read_pc): Likewise.
646 * i386-tdep.c (i386_floatformat_for_type): Likewise.
647 * parse.c (write_exp_elt_msym): Likewise.
648 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
649 * remote.c (remote_packet_size): Likewise.
650 (remote_notif_stop_parse): Likewise.
651 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
652 * s12z-tdep.c (s12z_disassemble_info): Likewise.
653 * source.c (prepare_path_for_appending): Likewise.
654 * sparc64-linux-tdep.c
655 (sparc64_linux_handle_segmentation_fault); Likewise.
656 * stack.c (frame_selection_by_function_completer): Likewise.
657
658 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
659
660 * completer.c (set_gdb_completion_word_break_characters):
661 Remove.
662
663 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
664
665 * dwarf-index-write.c: Include dwarf-index-write.h.
666 * mi/mi-interp.c: Include mi/mi-interp.h.
667
668 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
669
670 * aarch32-tdep.c: Include aarch32-tdep.h.
671 * aarch32-tdep.h: Forward-declare struct target_desc.
672
673 2019-11-26 Christian Biesinger <cbiesinger@google.com>
674
675 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
676 strerror.
677 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
678 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
679
680 2019-11-25 Tom de Vries <tdevries@suse.de>
681
682 * contrib/words.sh: Add -c option.
683
684 2019-11-25 Christian Biesinger <cbiesinger@google.com>
685
686 * solib.c (solib_find_1): Change int to bool.
687 (exec_file_find): Change int to bool.
688 (solib_find): Change int to bool.
689 (solib_read_symbols): Change int to bool.
690 (solib_used): Change int to bool.
691 (solib_add): Change int to bool.
692 (info_sharedlibrary_command): Change int to bool.
693 (solib_contains_address_p): Change int to bool.
694 (solib_keep_data_in_core): Change int to bool.
695 (in_solib_dynsym_resolve_code): Change int to bool.
696 (reload_shared_libraries_1): Change int to bool.
697 (gdb_sysroot_changed): Change int to bool.
698 * solib.h (solib_read_symbols): Change int to bool.
699 (solib_contains_address_p): Change int to bool.
700 (solib_keep_data_in_core): Change int to bool.
701 (in_solib_dynsym_resolve_code): Change int to bool.
702 (libpthread_name_p): Change int to bool.
703
704 2019-11-25 Luis Machado <luis.machado@linaro.org>
705
706 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
707 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
708 (remote_packet_max_chars): New static global.
709 (show_remote_packet_max_chars): New function.
710 (remote_target::putpkt_binary): Adjust to use new
711 remote_packet_max_chars option.
712 (remote_target::getpkt_or_notif_sane_1): Likewise.
713 (_initialize_remote): Register new remote-packet-max-chars option.
714
715 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
716
717 * m68k-linux-nat.c: Include gdbarch.h.
718
719 2019-11-24 Tom Tromey <tom@tromey.com>
720
721 * symfile.c (read_symbols): Update.
722 * psymtab.c (require_partial_symbols): Change type of "verbose" to
723 bool.
724 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
725 (psym_lookup_symbol, psym_find_last_source_symtab)
726 (psym_forget_cached_source_info, psym_print_stats)
727 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
728 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
729 (psym_map_matching_symbols, psym_expand_symtabs_matching)
730 (psym_find_compunit_symtab_by_address)
731 (maintenance_print_psymbols, maintenance_info_psymtabs)
732 (maintenance_check_psymtabs): Update.
733 * psymtab.h (require_partial_symbols): Change type of "verbose" to
734 bool.
735
736 2019-11-22 Tom Tromey <tom@tromey.com>
737
738 * observable.h: Update comments.
739
740 2019-11-22 Tom Tromey <tromey@adacore.com>
741
742 * ada-tasks.c (ada_task_is_alive): Make parameter const.
743 (print_ada_task_info): Don't try to fetch thread id if task is not
744 alive.
745
746 2019-11-22 Christian Biesinger <cbiesinger@google.com>
747
748 * ada-exp.y: Update.
749 * ada-lang.c (sort_choices): Update.
750 (ada_print_symbol_signature): Update.
751 (resolve_subexp): Update.
752 (ada_parse_renaming): Update.
753 (ada_read_renaming_var_value): Update.
754 (lesseq_defined_than): Update.
755 (remove_extra_symbols): Update.
756 (remove_irrelevant_renamings): Update.
757 (ada_add_block_symbols): Update.
758 (ada_collect_symbol_completion_matches): Update.
759 (ada_is_renaming_symbol): Update.
760 (aggregate_assign_from_choices): Update.
761 (ada_evaluate_subexp): Update.
762 (ada_has_this_exception_support): Update.
763 (ada_is_non_standard_exception_sym): Update.
764 (ada_add_exceptions_from_frame): Update.
765 (ada_add_global_exceptions): Update.
766 (ada_print_subexp): Update.
767 * ax-gdb.c (gen_var_ref): Update.
768 (gen_maybe_namespace_elt): Update.
769 (gen_expr_for_cast): Update.
770 (gen_expr): Update.
771 * block.h: Update.
772 * blockframe.c (find_pc_partial_function): Update.
773 * breakpoint.c (print_breakpoint_location): Update.
774 (update_static_tracepoint): Update.
775 * btrace.c (ftrace_print_function_name): Update.
776 (ftrace_function_switched): Update.
777 * buildsym.c (find_symbol_in_list): Update.
778 * c-exp.y: Update.
779 * c-typeprint.c (c_print_typedef): Update.
780 (c_type_print_template_args): Update.
781 * cli/cli-cmds.c (edit_command): Update.
782 (list_command): Update.
783 (print_sal_location): Update.
784 * coffread.c (patch_opaque_types): Update.
785 (process_coff_symbol): Update.
786 (coff_read_enum_type): Update.
787 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
788 (convert_one_symbol): Update.
789 (hash_symname): Update.
790 (eq_symname): Update.
791 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
792 * compile/compile-cplus-types.c (debug_print_scope): Update.
793 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
794 * compile/compile-object-load.c (get_out_value_type): Update.
795 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
796 (search_symbol_list): Update.
797 (cp_lookup_symbol_imports_or_template): Update.
798 * cp-support.c (overload_list_add_symbol): Update.
799 * ctfread.c (psymtab_to_symtab): Update.
800 * dbxread.c (cp_set_block_scope): Update.
801 * dictionary.c (iter_match_first_hashed): Update.
802 (iter_match_next_hashed): Update.
803 (insert_symbol_hashed): Update.
804 (iter_match_next_linear): Update.
805 * dictionary.h: Update.
806 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
807 (locexpr_describe_location_piece): Update.
808 (locexpr_describe_location_1): Update.
809 (locexpr_generate_c_location): Update.
810 (loclist_describe_location): Update.
811 (loclist_generate_c_location): Update.
812 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
813 (read_func_scope): Update.
814 (process_enumeration_scope): Update.
815 (new_symbol): Update.
816 (dwarf2_const_value): Update.
817 (dwarf2_symbol_mark_computed): Update.
818 * eval.c (evaluate_funcall): Update.
819 (evaluate_subexp_standard): Update.
820 * expprint.c (print_subexp_standard): Update.
821 (dump_subexp_body_standard): Update.
822 * f-valprint.c (info_common_command_for_block): Update.
823 * findvar.c (get_hosting_frame): Update.
824 (default_read_var_value): Update.
825 * go-lang.c (go_symbol_package_name): Update.
826 * guile/scm-block.c (bkscm_print_block_smob): Update.
827 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
828 (gdbscm_symbol_name): Update.
829 (gdbscm_symbol_linkage_name): Update.
830 (gdbscm_symbol_print_name): Update.
831 * infcall.c (get_function_name): Update.
832 * infcmd.c (jump_command): Update.
833 (finish_command): Update.
834 * infrun.c (insert_exception_resume_breakpoint): Update.
835 * linespec.c (canonicalize_linespec): Update.
836 (create_sals_line_offset): Update.
837 (convert_linespec_to_sals): Update.
838 (complete_label): Update.
839 (find_label_symbols_in_block): Update.
840 * m2-typeprint.c (m2_print_typedef): Update.
841 * mdebugread.c (mdebug_reg_to_regnum): Update.
842 (parse_symbol): Update.
843 (mylookup_symbol): Update.
844 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
845 (list_args_or_locals): Update.
846 * objc-lang.c (compare_selectors): Update.
847 (info_selectors_command): Update.
848 (compare_classes): Update.
849 (info_classes_command): Update.
850 (find_imps): Update.
851 * p-typeprint.c (pascal_print_typedef): Update.
852 * printcmd.c (build_address_symbolic): Update.
853 (info_address_command): Update.
854 (print_variable_and_value): Update.
855 * python/py-framefilter.c (extract_sym): Update.
856 (py_print_single_arg): Update.
857 * python/py-symbol.c (sympy_str): Update.
858 (sympy_get_name): Update.
859 (sympy_get_linkage_name): Update.
860 * python/python.c (gdbpy_rbreak): Update.
861 * record-btrace.c (btrace_get_bfun_name): Update.
862 (btrace_call_history): Update.
863 * rust-lang.c (rust_print_typedef): Update.
864 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
865 * stabsread.c (stab_reg_to_regnum): Update.
866 (define_symbol): Update.
867 (read_enum_type): Update.
868 (common_block_end): Update.
869 (cleanup_undefined_types_1): Update.
870 (scan_file_globals): Update.
871 * stack.c (print_frame_arg): Update.
872 (print_frame_args): Update.
873 (find_frame_funname): Update.
874 (info_frame_command_core): Update.
875 (iterate_over_block_locals): Update.
876 (print_block_frame_labels): Update.
877 (do_print_variable_and_value): Update.
878 (iterate_over_block_arg_vars): Update.
879 (return_command): Update.
880 * symmisc.c (dump_symtab_1): Update.
881 (print_symbol): Update.
882 * symtab.c (eq_symbol_entry): Update.
883 (symbol_cache_dump): Update.
884 (lookup_language_this): Update.
885 (find_pc_sect_line): Update.
886 (skip_prologue_sal): Update.
887 (symbol_search::compare_search_syms): Update.
888 (treg_matches_sym_type_name): Update.
889 (search_symbols): Update.
890 (print_symbol_info): Update.
891 (rbreak_command): Update.
892 (completion_list_add_symbol): Update.
893 (find_gnu_ifunc): Update.
894 (get_symbol_address): Update.
895 (search_module_symbols): Update.
896 (info_module_subcommand): Update.
897 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
898 (SYMBOL_LINKAGE_NAME): Remove.
899 (SYMBOL_DEMANGLED_NAME): Remove.
900 (SYMBOL_PRINT_NAME): Remove.
901 (SYMBOL_SEARCH_NAME): Remove.
902 * tracepoint.c (set_traceframe_context): Update.
903 (validate_actionline): Update.
904 (collection_list::collect_symbol): Update.
905 (encode_actions_1): Update.
906 (info_scope_command): Update.
907 (print_one_static_tracepoint_marker): Update.
908 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
909 * valops.c (address_of_variable): Update.
910 (find_overload_match): Update.
911 (find_oload_champ): Update.
912
913 2019-11-22 Christian Biesinger <cbiesinger@google.com>
914
915 * ada-lang.c (ada_lookup_simple_minsym): Update.
916 (ada_collect_symbol_completion_matches): Update.
917 * ada-tasks.c (read_atcb): Update.
918 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
919 (amd64_windows_skip_trampoline_code): Update.
920 * arm-tdep.c (skip_prologue_function): Update.
921 (arm_skip_stack_protector): Update.
922 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
923 (arm_wince_skip_main_prologue): Update.
924 * ax-gdb.c (gen_expr): Update.
925 * block.c (call_site_for_pc): Update.
926 * blockframe.c (find_pc_partial_function): Update.
927 * breakpoint.c (set_breakpoint_location_function): Update.
928 * btrace.c (ftrace_print_function_name): Update.
929 (ftrace_function_switched): Update.
930 * c-valprint.c (print_unpacked_pointer): Update.
931 * coffread.c (coff_symfile_read): Update.
932 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
933 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
934 * dwarf-index-write.c (write_psymbols): Update.
935 * dwarf2loc.c (call_site_to_target_addr): Update.
936 (func_verify_no_selftailcall): Update.
937 (tailcall_dump): Update.
938 (call_site_find_chain_1): Update.
939 (dwarf_expr_reg_to_entry_parameter): Update.
940 * elfread.c (elf_gnu_ifunc_record_cache): Update.
941 * eval.c (evaluate_funcall): Update.
942 (evaluate_subexp_standard): Update.
943 (evaluate_subexp_for_sizeof): Update.
944 * expprint.c (print_subexp_standard): Update.
945 (dump_subexp_body_standard): Update.
946 * frame.c (get_prev_frame_always_1): Update.
947 * frv-tdep.c (frv_skip_main_prologue): Update.
948 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
949 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
950 (gnuv3_get_typename_from_type_info): Update.
951 (gnuv3_skip_trampoline): Update.
952 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
953 * i386-tdep.c (i386_skip_main_prologue): Update.
954 (i386_pe_skip_trampoline_code): Update.
955 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
956 * infcall.c (get_function_name): Update.
957 * linespec.c (minsym_found): Update.
958 * linux-fork.c (info_checkpoints_command): Update.
959 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
960 (m32c_m16c_pointer_to_address): Update.
961 * maint.c (maintenance_translate_address): Update.
962 * minsyms.c (add_minsym_to_hash_table): Update.
963 (add_minsym_to_demangled_hash_table): Update.
964 (lookup_minimal_symbol_mangled): Update.
965 (lookup_minimal_symbol_demangled): Update.
966 (lookup_minimal_symbol_linkage): Update.
967 (lookup_minimal_symbol_text): Update.
968 (lookup_minimal_symbol_by_pc_name): Update.
969 (minimal_symbol_is_less_than): Update.
970 (compact_minimal_symbols): Update.
971 (build_minimal_symbol_hash_tables): Update.
972 (find_solib_trampoline_target): Update.
973 * mips-tdep.c (mips_stub_frame_sniffer): Update.
974 (mips_skip_pic_trampoline_code): Update.
975 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
976 * objc-lang.c (info_selectors_command): Update.
977 (info_classes_command): Update.
978 (find_methods): Update.
979 (find_imps): Update.
980 * p-valprint.c (pascal_val_print): Update.
981 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
982 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
983 * printcmd.c (build_address_symbolic): Update.
984 (info_symbol_command): Update.
985 * psymtab.c (psymbol_name_matches): Update.
986 (match_partial_symbol): Update.
987 (lookup_partial_symbol): Update.
988 (print_partial_symbols): Update.
989 (sort_pst_symbols): Update.
990 (maintenance_check_psymtabs): Update.
991 * python/py-framefilter.c (py_print_frame): Update.
992 * python/python.c (gdbpy_rbreak): Update.
993 * record-btrace.c (btrace_get_bfun_name): Update.
994 (btrace_call_history): Update.
995 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
996 (rs6000_skip_trampoline_code): Update.
997 * sol-thread.c (info_cb): Update.
998 * stabsread.c (scan_file_globals): Update.
999 * stack.c (find_frame_funname): Update.
1000 (info_frame_command_core): Update.
1001 * symmisc.c (dump_msymbols): Update.
1002 * symtab.c (symbol_natural_name): Rename to..,
1003 (general_symbol_info::natural_name): ...this.
1004 (symbol_demangled_name): Rename to...
1005 (general_symbol_info::demangled_name): ...this.
1006 (symbol_search_name): Rename to...
1007 (general_symbol_info::search_name): ...this.
1008 (symbol_matches_search_name): Update.
1009 (find_pc_sect_line): Update.
1010 (skip_prologue_sal): Update.
1011 (search_symbols): Update.
1012 (print_msymbol_info): Update.
1013 (rbreak_command): Update.
1014 (completion_list_add_msymbol): Update.
1015 (completion_list_objc_symbol): Update.
1016 (get_msymbol_address): Update.
1017 * symtab.h (struct general_symbol_info): Add member functions
1018 natural_name (), linkage_name (), print_name (), demangled_name (),
1019 and search_name ().
1020 (SYMBOL_NATURAL_NAME): Update.
1021 (symbol_natural_name): Move to a member function on general_symbol_info.
1022 (SYMBOL_DEMANGLED_NAME): Update.
1023 (symbol_demangled_name): Move to a member function on
1024 general_symbol_info.
1025 (SYMBOL_SEARCH_NAME): Update.
1026 (symbol_search_name): Move to a member function on general_symbol_info.
1027 (MSYMBOL_NATURAL_NAME): Remove.
1028 (MSYMBOL_LINKAGE_NAME): Remove.
1029 (MSYMBOL_PRINT_NAME): Remove.
1030 (MSYMBOL_DEMANGLED_NAME): Remove.
1031 (MSYMBOL_SEARCH_NAME): Remove.
1032 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1033
1034 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1035
1036 * symtab.c (create_demangled_names_hash): Use per_bfd->
1037 minimal_symbol_count for computing the initial size, if greater
1038 than our default size.
1039
1040 2019-11-22 Tom de Vries <tdevries@suse.de>
1041
1042 * contrib/words.sh: Improve words extraction.
1043
1044 2019-11-22 Tom de Vries <tdevries@suse.de>
1045
1046 * contrib/words.sh: Combine sed invocations.
1047
1048 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1049
1050 * Makefile.in: Update.
1051 * demangle.c: Rename to...
1052 * gdb-demangle.c: ..this.
1053 (is_cplus_marker): Change return type to bool.
1054 (_initialize_demangler): Rename to...
1055 (_initialize_gdb_demangle): ...this.
1056 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1057 * symtab.h (demangle): Remove declaration; instead include
1058 gdb-demangle.h.
1059
1060 2019-11-21 Tom Tromey <tromey@adacore.com>
1061
1062 * gdbsupport/format.c (format_pieces): Parse %I64d.
1063 * unittests/format_pieces-selftests.c (test_windows_formats): New
1064 function.
1065 (run_tests): Call it.
1066
1067 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1068
1069 Byte reverse display of variables with DW_END_big, DW_END_little
1070 (DW_AT_endianity) dwarf attributes if different than the native
1071 byte order.
1072 * ada-lang.c (ada_value_binop):
1073 Use type_byte_order instead of gdbarch_byte_order.
1074 * ada-valprint.c (printstr):
1075 (ada_val_print_string):
1076 * ada-lang.c (value_pointer):
1077 (ada_value_binop):
1078 Use type_byte_order instead of gdbarch_byte_order.
1079 * c-lang.c (c_get_string):
1080 Use type_byte_order instead of gdbarch_byte_order.
1081 * c-valprint.c (c_val_print_array):
1082 Use type_byte_order instead of gdbarch_byte_order.
1083 * cp-valprint.c (cp_print_class_member):
1084 Use type_byte_order instead of gdbarch_byte_order.
1085 * dwarf2loc.c (rw_pieced_value):
1086 Use type_byte_order instead of gdbarch_byte_order.
1087 * dwarf2read.c (read_base_type): Handle DW_END_big,
1088 DW_END_little
1089 * f-lang.c (f_get_encoding):
1090 Use type_byte_order instead of gdbarch_byte_order.
1091 * findvar.c (default_read_var_value):
1092 Use type_byte_order instead of gdbarch_byte_order.
1093 * gdbtypes.c (check_types_equal):
1094 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1095 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1096 and TYPE_ENDIANITY_LITTLE if set.
1097 (type_byte_order): new function.
1098 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1099 (struct main_type) <flag_endianity_not_default>:
1100 New field.
1101 (type_byte_order): New function.
1102 * infcmd.c (default_print_one_register_info):
1103 Use type_byte_order instead of gdbarch_byte_order.
1104 * p-lang.c (pascal_printstr):
1105 Use type_byte_order instead of gdbarch_byte_order.
1106 * p-valprint.c (pascal_val_print):
1107 Use type_byte_order instead of gdbarch_byte_order.
1108 * printcmd.c (print_scalar_formatted):
1109 Use type_byte_order instead of gdbarch_byte_order.
1110 * solib-darwin.c (darwin_current_sos):
1111 Use type_byte_order instead of gdbarch_byte_order.
1112 * solib-svr4.c (solib_svr4_r_ldsomap):
1113 Use type_byte_order instead of gdbarch_byte_order.
1114 * stap-probe.c (stap_modify_semaphore):
1115 Use type_byte_order instead of gdbarch_byte_order.
1116 * target-float.c (target_float_same_format_p):
1117 Use type_byte_order instead of gdbarch_byte_order.
1118 * valarith.c (scalar_binop):
1119 (value_bit_index):
1120 Use type_byte_order instead of gdbarch_byte_order.
1121 * valops.c (value_cast):
1122 Use type_byte_order instead of gdbarch_byte_order.
1123 * valprint.c (generic_emit_char):
1124 (generic_printstr):
1125 (val_print_string):
1126 Use type_byte_order instead of gdbarch_byte_order.
1127 * value.c (unpack_long):
1128 (unpack_bits_as_long):
1129 (unpack_value_bitfield):
1130 (modify_field):
1131 (pack_long):
1132 (pack_unsigned_long):
1133 Use type_byte_order instead of gdbarch_byte_order.
1134 * findvar.c (unsigned_pointer_to_address):
1135 (signed_pointer_to_address):
1136 (unsigned_address_to_pointer):
1137 (address_to_signed_pointer):
1138 (default_read_var_value):
1139 (default_value_from_register):
1140 Use type_byte_order instead of gdbarch_byte_order.
1141 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1142 Use type_byte_order instead of gdbarch_byte_order.
1143 * riscv-tdep.c (riscv_print_one_register_info):
1144 Use type_byte_order instead of gdbarch_byte_order.
1145
1146 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1147
1148 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1149 (current_ui_gdb_stdin_ptr): Likewise.
1150 (current_ui_gdb_stderr_ptr): Likewise.
1151 (current_ui_gdb_stdlog_ptr): Likewise.
1152 (current_ui_current_uiout_ptr): Likewise.
1153 (gen_ret_current_ui_field_ptr): Remove.
1154
1155 2019-11-21 Tom de Vries <tdevries@suse.de>
1156
1157 PR gdb/24956
1158 * cli/cli-script.c (execute_control_command): Only switch to
1159 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1160
1161 2019-11-19 Tom Tromey <tom@tromey.com>
1162
1163 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1164 Now static. Change type of "name".
1165 (tui_set_win_height_command): Don't copy "arg".
1166 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1167 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1168
1169 2019-11-19 Ali Tamur <tamur@google.com>
1170
1171 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1172 "if (attr != nullptr)".
1173 (dwarf2_find_base_address): Likewise.
1174 (dwarf2_build_include_psymtabs): Likewise.
1175 (read_cutu_die_from_dwo): Likewise.
1176 (read_func_scope): Likewise.
1177 (read_call_site_scope): Likewise.
1178 (dwarf2_get_pc_bounds): Likewise.
1179 (dwarf2_record_block_ranges): Likewise.
1180 (dwarf2_add_field): Likewise.
1181 (dwarf2_add_member_fn): Likewise.
1182 (read_structure_type): Likewise.
1183 (read_enumeration_type): Likewise.
1184 (read_array_type): Likewise.
1185 (read_array_order): Likewise.
1186 (read_set_type): Likewise.
1187 (read_common_block): Likewise.
1188 (read_tag_reference_type): Likewise.
1189 (read_tag_string_type): Likewise.
1190 (read_subroutine_type): Likewise.
1191 (read_base_type): Likewise.
1192 (read_subrange_type): Likewise.
1193 (new_symbol): Likewise.
1194 (prepare_one_comp_unit): Likewise.
1195
1196 2019-11-19 Tom Tromey <tromey@adacore.com>
1197
1198 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1199 result in error when DebugActiveProcess fails.
1200
1201 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1202 Pedro Alves <palves@redhat.com>
1203
1204 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1205 * target.c (target_stack::push): Call 'unpush' if there's a
1206 target on top of the stack.
1207
1208 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1209
1210 * python/py-block.c (blpy_dealloc): Call tp_free.
1211 (blpy_block_syms_dealloc): Likewise.
1212 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1213 * python/py-inferior.c (infpy_dealloc): Likewise.
1214 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1215 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1216 * python/py-symbol.c (sympy_dealloc): Likewise.
1217 * python/py-symtab.c (stpy_dealloc): Likewise.
1218 * python/py-type.c (typy_iterator_dealloc): Likewise.
1219
1220 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1221
1222 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1223 constructor instead of using a class initializer.
1224
1225 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1226
1227 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1228 * configure: Regenerate.
1229 * configure.ac: Don't source common.host.
1230 * gdbsupport/common.host: Remove.
1231 * gdbsupport/mingw-strerror.c: Remove.
1232 * gdbsupport/posix-strerror.c: Rename to...
1233 * gdbsupport/safe-strerror.c: ...this.
1234
1235 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1236
1237 * maint.c (scoped_command_stats::print_time): Use localtime_r
1238 instead of localtime (provided through gnulib if necessary).
1239 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1240 of ctime.
1241
1242 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1243
1244 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1245 avoid compile errors.
1246
1247 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1248
1249 * config.in: Regenerate.
1250 * configure: Regenerate.
1251 * gdbsupport/common.m4: No longer check for strerror_r.
1252 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1253 POSIX version of strerror_r, now that gnulib provides it if
1254 necessary.
1255
1256 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1257
1258 * README (`configure' options): Update.
1259
1260 2019-11-14 Tom Tromey <tromey@adacore.com>
1261
1262 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1263 expected type for the RHS if the LHS is a convenience variable.
1264
1265 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1266
1267 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1268 Provide explicit default and copy constructor.
1269
1270 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1271
1272 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1273 only call Py_INCREF (newbp) in the bppy_pending_object case.
1274
1275 2019-11-13 Tom Tromey <tromey@adacore.com>
1276
1277 PR build/25182:
1278 * psympriv.h (partial_symbol): Remove static assert.
1279 * symtab.h (general_symbol_info, symbol): Remove static assert.
1280
1281 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1282
1283 * gdbsupport/format.c (format_pieces::format_pieces): Support
1284 printf 'z' size modifier.
1285 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1286 * printcmd.c (ui_printf): Handle size_t_arg.
1287 * ui-out.c (ui_out::vmessage): Likewise.
1288 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1289 function.
1290 (run_tests): Call test_format_int_sizes.
1291
1292 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1293
1294 * ada-exp.y (write_ambiguous_var): Update.
1295 * buildsym.c (add_symbol_to_list): Update.
1296 * dwarf2read.c (read_variable): Update.
1297 (new_symbol): Update.
1298 * jit.c (finalize_symtab): Update.
1299 * language.c (language_alloc_type_symbol): Update.
1300 * symtab.c (fixup_symbol_section): Update.
1301 (initialize_objfile_symbol_1): Move code to...
1302 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1303 (allocate_symbol): Update.
1304 (allocate_template_symbol): Update.
1305 (get_symbol_address): Update.
1306 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1307 of having as a field, and add a constructor.
1308 (SYMBOL_VALUE): Update.
1309 (SYMBOL_VALUE_ADDRESS): Update.
1310 (SET_SYMBOL_VALUE_ADDRESS): Update.
1311 (SYMBOL_VALUE_BYTES): Update.
1312 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1313 (SYMBOL_BLOCK_VALUE): Update.
1314 (SYMBOL_VALUE_CHAIN): Update.
1315 (SYMBOL_LANGUAGE): Update.
1316 (SYMBOL_SECTION): Update.
1317 (SYMBOL_OBJ_SECTION): Update.
1318 (SYMBOL_SET_LANGUAGE): Update.
1319 (SYMBOL_SET_LINKAGE_NAME): Update.
1320 (SYMBOL_SET_NAMES): Update.
1321 (SYMBOL_NATURAL_NAME): Update.
1322 (SYMBOL_LINKAGE_NAME): Update.
1323 (SYMBOL_DEMANGLED_NAME): Update.
1324 (SYMBOL_SEARCH_NAME): Update.
1325 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1326 (struct symbol): Update.
1327 (struct template_symbol): Update.
1328 (struct rust_vtable_symbol): Update.
1329 * xcoffread.c (SYMBOL_DUP): Update.
1330
1331 2019-11-12 Tom Tromey <tom@tromey.com>
1332
1333 * tui/tui-layout.c (show_layout): Set current_layout.
1334 (show_source_disasm_command, show_data)
1335 (show_source_or_disasm_and_command): Don't set current_layout.
1336
1337 2019-11-12 Tom Tromey <tom@tromey.com>
1338
1339 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1340
1341 2019-11-12 Tom Tromey <tom@tromey.com>
1342
1343 * tui/tui-win.c (resize_message): New global.
1344 (show_tui_resize_message): New function.
1345 (tui_async_resize_screen): Print message if requested.
1346 (_initialize_tui_win): Add tui-resize-message setting.
1347 * NEWS: Add entry for new commands.
1348
1349 2019-11-11 Tom Tromey <tom@tromey.com>
1350
1351 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1352 functions.
1353
1354 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1355
1356 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1357
1358 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1359
1360 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1361 function.
1362 * python/python-internal.h (gdbpy_lookup_static_symbols):
1363 Declare new function.
1364 * python/python.c (python_GdbMethods): Add
1365 gdb.lookup_static_symbols method.
1366 * NEWS: Mention gdb.lookup_static_symbols.
1367
1368 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1369
1370 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1371 static block of current object file first. Also fix typo in
1372 header comment.
1373
1374 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1375
1376 * stack.c (set_last_displayed_sal): Delete.
1377 (last_displayed_sal_valid): Delete.
1378 (last_displayed_pspace): Delete.
1379 (last_displayed_addr): Delete.
1380 (last_displayed_symtab): Delete.
1381 (last_displayed_line): Delete.
1382 (class last_displayed_symtab_info_type): New.
1383 (last_displayed_symtab_info): New static global variable.
1384 (print_frame_info): Call methods on last_displayed_symtab_info.
1385 (clear_last_displayed_sal): Update header comment, and make use of
1386 last_displayed_symtab_info.
1387 (last_displayed_sal_is_valid): Likewise.
1388 (get_last_displayed_pspace): Likewise.
1389 (get_last_displayed_addr): Likewise.
1390 (get_last_displayed_symtab): Likewise.
1391 (get_last_displayed_line): Likewise.
1392 (get_last_displayed_sal): Likewise.
1393 * stack.h (clear_last_displayed_sal): Update header comment.
1394 (last_displayed_sal_is_valid): Likewise.
1395 (get_last_displayed_pspace): Likewise.
1396 (get_last_displayed_addr): Likewise.
1397 (get_last_displayed_symtab): Likewise.
1398 (get_last_displayed_line): Likewise.
1399 (get_last_displayed_sal): Likewise.
1400
1401 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1402
1403 * stack.c (frame_show_address): Convert return type to bool.
1404 * stack.h (frame_show_address): Likewise, and update header
1405 comment.
1406
1407 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1408
1409 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1410 * unittests/vec-utils-selftests.c: New file.
1411 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1412
1413 2019-11-10 Tom Tromey <tom@tromey.com>
1414
1415 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1416 (tui_highlight_win): Likewise.
1417 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1418 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1419 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1420 Don't set can_highlight.
1421
1422 2019-11-10 Tom Tromey <tom@tromey.com>
1423
1424 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1425 Remove unused declaration.
1426
1427 2019-11-08 Tom Tromey <tromey@adacore.com>
1428
1429 * top.c (read_command_file): Update.
1430 (command_line_input): Make return type const.
1431 * python/py-gdb-readline.c: Update.
1432 * linespec.c (decode_line_2): Update.
1433 * defs.h (command_line_input): Make return type const.
1434 * cli/cli-script.c (read_next_line): Make return type const.
1435 * ada-lang.c (get_selections): Update.
1436
1437 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1438
1439 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1440 * mi/mi-main.c (output_cores): Likewise.
1441 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1442 (linux_xfer_osdata_modules): Likewise.
1443 * remote.c (register_remote_support_xml): Likewise.
1444 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1445 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1446
1447 2019-11-06 Tom Tromey <tom@tromey.com>
1448
1449 * tui/tui-interp.c: Don't include readline.h.
1450 * tui/tui-hooks.c: Don't include readline.h.
1451 * symmisc.c: Include tilde.h, not readline.h.
1452 * symfile.c: Include tilde.h, not readline.h.
1453 * source.c: Include tilde.h, not readline.h.
1454 * solib.c: Include tilde.h, not readline.h.
1455 * psymtab.c: Include tilde.h, not readline.h.
1456 * exec.c: Include tilde.h, not readline.h.
1457 * corelow.c: Include tilde.h, not readline.h.
1458 * cli/cli-dump.c: Include tilde.h, not readline.h.
1459 * cli/cli-cmds.c: Don't include readline.h.
1460
1461 2019-11-05 Tom Tromey <tom@tromey.com>
1462
1463 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1464 (tui_disassemble): Set addr_size.
1465 (tui_disasm_window::set_contents): Use addr_size.
1466
1467 2019-11-05 Tom Tromey <tom@tromey.com>
1468
1469 * rust-lang.c (rust_language_defn): Update.
1470 * python/py-value.c (valpy_string): Call c_get_string.
1471 * p-lang.c (pascal_language_defn): Update.
1472 * opencl-lang.c (opencl_language_defn): Update.
1473 * objc-lang.c (objc_language_defn): Update.
1474 * m2-lang.c (m2_language_defn): Update.
1475 * language.c (unknown_language_defn, auto_language_defn): Update.
1476 (default_get_string): Remove.
1477 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1478 * go-lang.c (go_language_defn): Update.
1479 * f-lang.c (f_language_defn): Update.
1480 * d-lang.c (d_language_defn): Update.
1481 * c-lang.c (c_language_defn, cplus_language_defn)
1482 (asm_language_defn, minimal_language_defn): Update.
1483 * ada-lang.c (ada_language_defn): Update.
1484 * language.h (struct language_defn) <la_get_string>: Remove.
1485 (LA_GET_STRING): Remove.
1486 (default_get_string): Don't declare.
1487
1488 2019-11-05 Tom Tromey <tom@tromey.com>
1489
1490 * tui/tui-source.h (struct tui_source_window): Inline
1491 constructor. Remove destructor.
1492 <style_changed, m_observable>: Move to superclass.
1493 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1494 (struct tui_source_window_base): Move private members to end.
1495 <style_changed, m_observable>: Move from tui_source_window.
1496 * tui/tui-winsource.c (tui_copy_source_line): Move from
1497 tui-source.c. Rename from copy_source_line. Add special handling
1498 for negative line number.
1499 (tui_source_window_base::style_changed): Move from
1500 tui_source_window.
1501 (tui_source_window_base): Register observer.
1502 (~tui_source_window_base): New.
1503 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1504 rename.
1505 (tui_source_window::set_contents): Use tui_copy_source_line.
1506 (tui_source_window::tui_source_window): Move to tui-source.h.
1507 (tui_source_window::~tui_source_window): Remove.
1508 (tui_source_window::style_changed): Move to superclass.
1509 * tui/tui-disasm.c (tui_disassemble): Create string file with
1510 styling, when possible. Add "addr_size" parameter.
1511 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1512 Don't compute maximum size.
1513 (len_without_escapes): New function
1514
1515 2019-11-05 Tom Tromey <tom@tromey.com>
1516
1517 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1518 std::string.
1519 * tui/tui-winsource.c (tui_show_source_line): Update.
1520 * tui/tui-source.c (tui_source_window::set_contents): Update.
1521 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1522
1523 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1524
1525 * symtab.h (gdb_static_assert): Put && operator at the beginning
1526 of the line instead of the end.
1527
1528 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1529
1530 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1531 and sizeof (symbol).
1532 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1533
1534 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1535
1536 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1537 * configure.host: Mark *-*-solaris2.10* obsolete.
1538 * configure.tgt: Mark Solaris < 11 obsolete.
1539 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1540 Update target triplet.
1541
1542 2019-11-01 Tom Tromey <tromey@adacore.com>
1543
1544 * utils.c (print_sys_errmsg): Simplify.
1545
1546 2019-11-01 Tom Tromey <tromey@adacore.com>
1547
1548 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1549
1550 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1551
1552 * configure: Regenerate.
1553 * configure.ac: Remove check for strerror_r.
1554 * gdbsupport/common.m4: Check for strerror_r.
1555
1556 2019-11-01 Luis Machado <luis.machado@linaro.org>
1557
1558 PR gdb/25124
1559
1560 * arm-tdep.c (arm_per_objfile): Rename to ...
1561 (arm_per_bfd): ... this.
1562 (arm_objfile_data_key): Rename to ...
1563 (arm_bfd_data_key): ... this.
1564 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1565 data.
1566 (arm_record_special_symbol): Likewise.
1567
1568 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1569
1570 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1571 end.
1572 * c-typeprint.c (c_print_typedef): Likewise.
1573 * f-typeprint.c (f_print_typedef): Likewise.
1574 * m2-typeprint.c (m2_print_typedef): Likewise.
1575 * p-typeprint.c (pascal_print_typedef): Likewise.
1576 * rust-lang.c (rust_print_typedef): Likewise.
1577 * symtab.c (print_symbol_info): Print a newline after calling
1578 typedef_print.
1579
1580 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1581
1582 * symtab.c (info_module_cmdlist): New variable.
1583 (info_module_command): New function.
1584 (search_module_symbols): New function.
1585 (info_module_subcommand): New function.
1586 (struct info_modules_var_func_options): New struct.
1587 (info_modules_var_func_options_defs): New variable.
1588 (make_info_modules_var_func_options_def_group): New function.
1589 (info_module_functions_command): New function.
1590 (info_module_variables_command): New function.
1591 (info_module_var_func_command_completer): New function.
1592 (_initialize_symtab): Register new 'info module functions' and
1593 'info module variables' commands.
1594 * symtab.h (typedef symbol_search_in_module): New typedef.
1595 (search_module_symbols): Declare new function.
1596 * NEWS: Mention new commands.
1597
1598 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1599
1600 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1601 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1602 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1603 MODULES_DOMAIN.
1604 (scan_partial_symbols): Only create partial module symbols for non
1605 declarations.
1606 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1607 and MODULES_DOMAIN.
1608 * symtab.c (search_domain_name): Likewise.
1609 (search_symbols): Likewise.
1610 (print_symbol_info): Likewise.
1611 (symtab_symbol_info): Likewise.
1612 (info_modules_command): New function.
1613 (_initialize_symtab): Register 'info modules' command.
1614 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1615 * NEWS: Mention new 'info modules' command.
1616
1617 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1618
1619 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1620 and $_gdb_maint_setting_str.
1621
1622 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1623
1624 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1625 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1626 (str_value_from_setting, gdb_setting_str_internal_fn)
1627 (gdb_maint_setting_str_internal_fn): New functions.
1628 (_initialize_cli_cmds): Define the new convenience functions.
1629 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1630 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1631
1632 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1633
1634 * agent.c (set_can_use_agent): When the setting is turned on,
1635 look up agent symbols if we don't have them yet.
1636 (agent_new_objfile): Don't look up agent symbols when the agent
1637 setting is off.
1638
1639 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1640
1641 * config.in: Regenerate.
1642
1643 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1644
1645 * configure: Regenerate.
1646 * configure.ac: Check for strerror_r.
1647 * gdbsupport/common-utils.h (safe_strerror): Change return value
1648 to const char * and document that this function is now threadsafe.
1649 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1650 thread_local and call strerror_r, if available.
1651 * utils.c (perror_string): Update.
1652 (print_sys_errmsg): Update.
1653
1654 2019-10-31 Luis Machado <luis.machado@linaro.org>
1655
1656 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1657 objfile_key.
1658 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1659 objfile to fetch per-bfd data.
1660 (arm_find_exidx_entry): Likewise.
1661
1662 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1663
1664 * gdbsupport/agent.c (debug_agent): Change type to bool.
1665 (use_agent): Likewise.
1666 (all_agent_symbols_look_up): Likewise.
1667 (agent_loaded_p): Change return value to bool.
1668 (agent_look_up_symbols): Update.
1669 (agent_capability_check): Change return value to bool.
1670 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1671 (debug_agent): Change type to bool.
1672 (use_agent): Likewise.
1673 (agent_capability_check): Change return value to bool.
1674
1675 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1676
1677 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1678 (build_minimal_symbol_hash_tables): Code to clear the table moved
1679 to clear_minimal_symbol_hash_tables.
1680 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1681 when needed.
1682
1683 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1684
1685 * infcmd.c: Remove includes.
1686 * infrun.c: Remove includes.
1687
1688 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1689
1690 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1691 (grow_vect): Remove declaration.
1692 (ada_type_of_array): Remove declaration.
1693 (ada_update_initial_language): Remove declaration.
1694 (ada_fold_name): Remove declaration.
1695 (ada_fill_in_ada_prototype): Remove declaration.
1696 (user_select_syms): Remove declaration.
1697 (get_selections): Remove declaration.
1698 (ada_tag_type): Remove declaration.
1699 (ada_value_tag): Remove declaration.
1700 (ada_is_others_clause): Remove declaration.
1701 (ada_in_variant): Remove declaration.
1702 (ada_value_struct_elt): Remove declaration.
1703 (ada_attribute_name): Remove declaration.
1704 (ada_system_address_type): Remove declaration.
1705 * ada-lang.c (ada_watch_location_expression): Make static.
1706 (GROW_VECT): Move here from ada-lang.h.
1707 (grow_vect): Make static.
1708 (ada_update_initial_language): Make static.
1709 (ada_fold_name): Make static.
1710 (ada_type_of_array): Make static.
1711 (encoded_ordered_before): Move up.
1712 (sort_choices): Move up.
1713 (print_signatures): Move up.
1714 (ada_print_symbol_signature): Move up.
1715 (get_selections): Move up and make static.
1716 (user_select_syms): Move up and make static.
1717 (ada_value_struct_elt): Move up and make static.
1718 (ada_tag_type): Make static.
1719 (ada_value_tag): Make static.
1720 (ada_is_others_clause): Make static.
1721 (ada_in_variant): Make static.
1722 (ada_attribute_name): Make static.
1723
1724 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1725
1726 * ada-lang.c: Remove includes.
1727 * ada-typeprint.c: Remove includes.
1728 * ada-valprint.c: Remove includes.
1729
1730 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1731
1732 * addrmap.c: Add static assertions of type size, moved from
1733 _initialize_addrmap.
1734 (_initialize_addrmap): Remove.
1735
1736 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1737
1738 * coffread.c (record_minimal_symbol): Update.
1739 (process_coff_symbol): Update.
1740 * dbxread.c (read_dbx_symtab): Update.
1741 * dwarf2read.c (add_partial_symbol): Update.
1742 (fixup_go_packaging): Update.
1743 (load_partial_dies): Update.
1744 (new_symbol): Update.
1745 * elfread.c (record_minimal_symbol): Change signature to use
1746 gdb::string_view instead of name+len.
1747 (elf_symtab_read): Update.
1748 (elf_rel_plt_read): Update.
1749 * mdebugread.c (parse_partial_symbols): Update.
1750 (handle_psymbol_enumerators): Update.
1751 (new_symbol): Update.
1752 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1753 to use gdb::string_view instead of name+len.
1754 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1755 * psympriv.h (add_psymbol_to_list): Likewise.
1756 * psymtab.c (add_psymbol_to_bcache): Likewise.
1757 (add_psymbol_to_list): Likewise.
1758 * stabsread.c (define_symbol): Update.
1759 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1760 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1761 (symbol_set_names): Likewise.
1762 * xcoffread.c (scan_xcoff_symtab): Update.
1763
1764 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1765
1766 * symtab.h (symbol_set_names): Document that copy_name must be
1767 set to true for non-nullterminated strings.
1768 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1769 linkage_name if the entry was not found and we need to demangle.
1770
1771 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1772
1773 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1774 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1775 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1776 * gdbsupport/gdb_binary_search.h: New file.
1777
1778 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1779
1780 * NEWS: Mention new --with-system-gdbinit-dir option.
1781 * config.in: Regenerate.
1782 * configure: Regenerate.
1783 * configure.ac: Add new option --with-system-gdbinit-dir.
1784 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1785 for a ".gdb" suffix.
1786 * main.c (get_init_files): Change system_gdbinit argument to
1787 a vector and return the files in SYSTEM_GDBINIT_DIR in
1788 addition to SYSTEM_GDBINIT.
1789 (captured_main_1): Update.
1790 (print_gdb_help): Update.
1791 * top.c (print_gdb_configuration): Also print the value of
1792 SYSTEM_GDBINIT_DIR.
1793
1794 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1795
1796 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1797 that takes gdb::string_view arguments.
1798
1799 2019-10-26 Tom de Vries <tdevries@suse.de>
1800
1801 * aarch64-linux-tdep.c: Fix typos in comments.
1802 * aarch64-tdep.c: Same.
1803 * ada-lang.c: Same.
1804 * amd64-nat.c: Same.
1805 * arc-tdep.c: Same.
1806 * arch/aarch64-insn.c: Same.
1807 * block.c: Same.
1808 * breakpoint.h: Same.
1809 * btrace.h: Same.
1810 * c-varobj.c: Same.
1811 * cli/cli-decode.c: Same.
1812 * cli/cli-script.c: Same.
1813 * cli/cli-utils.h: Same.
1814 * coff-pe-read.c: Same.
1815 * coffread.c: Same.
1816 * compile/compile-cplus-symbols.c: Same.
1817 * compile/compile-object-run.c: Same.
1818 * completer.c: Same.
1819 * corelow.c: Same.
1820 * cp-support.c: Same.
1821 * demangle.c: Same.
1822 * dwarf-index-write.c: Same.
1823 * dwarf2-frame.c: Same.
1824 * dwarf2-frame.h: Same.
1825 * eval.c: Same.
1826 * frame-base.h: Same.
1827 * frame.h: Same.
1828 * gdbcmd.h: Same.
1829 * gdbtypes.h: Same.
1830 * gnu-nat.c: Same.
1831 * guile/scm-objfile.c: Same.
1832 * i386-tdep.c: Same.
1833 * i386-tdep.h: Same.
1834 * infcall.c: Same.
1835 * infcall.h: Same.
1836 * linux-nat.c: Same.
1837 * m68k-tdep.c: Same.
1838 * macroexp.c: Same.
1839 * memattr.c: Same.
1840 * mi/mi-cmd-disas.c: Same.
1841 * mi/mi-getopt.h: Same.
1842 * mi/mi-main.c: Same.
1843 * minsyms.c: Same.
1844 * nat/aarch64-sve-linux-sigcontext.h: Same.
1845 * objfiles.h: Same.
1846 * ppc-linux-nat.c: Same.
1847 * ppc-linux-tdep.c: Same.
1848 * ppc-tdep.h: Same.
1849 * progspace.h: Same.
1850 * prologue-value.h: Same.
1851 * python/py-evtregistry.c: Same.
1852 * python/py-instruction.h: Same.
1853 * record-btrace.c: Same.
1854 * record-full.c: Same.
1855 * remote.c: Same.
1856 * rs6000-tdep.c: Same.
1857 * ser-tcp.c: Same.
1858 * sol-thread.c: Same.
1859 * sparc-sol2-tdep.c: Same.
1860 * sparc64-tdep.c: Same.
1861 * stabsread.c: Same.
1862 * symfile.c: Same.
1863 * symtab.h: Same.
1864 * target.c: Same.
1865 * tracepoint.c: Same.
1866 * tui/tui-data.h: Same.
1867 * tui/tui-io.c: Same.
1868 * tui/tui-win.c: Same.
1869 * tui/tui.c: Same.
1870 * unittests/rsp-low-selftests.c: Same.
1871 * user-regs.h: Same.
1872 * utils.c: Same.
1873 * utils.h: Same.
1874 * valarith.c: Same.
1875 * valops.c: Same.
1876 * valprint.c: Same.
1877 * valprint.h: Same.
1878 * value.c: Same.
1879 * value.h: Same.
1880 * varobj.c: Same.
1881 * x86-nat.h: Same.
1882 * xtensa-tdep.c: Same.
1883
1884 2019-10-25 Ali Tamur <tamur@google.com>
1885
1886 * charset.c (find_charset_names): Reflect API change.
1887
1888 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1889
1890 * symtab.c (struct demangled_name_entry): Change demangled name
1891 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1892 part of the struct anymore.
1893 (symbol_set_names): No longer obstack allocate + copy the demangled
1894 name, just store the allocated name from bfd.
1895
1896 2019-10-25 Tom Tromey <tromey@adacore.com>
1897
1898 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1899 (bsearch_cie_cmp, add_cie): Remove.
1900 (find_cie): Reimplement.
1901 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1902 (dwarf2_build_frame_info): Update.
1903
1904 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1905
1906 PR gdb/25126
1907 * symfile.c (reread_symbols): Call forget_cached_source_info to
1908 clear the stale source cache.
1909
1910 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1911
1912 * configure: Regenerate.
1913 * configure.ac: Remove code that sets python_has_threads.
1914
1915 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1916
1917 * config.in: Regenerate.
1918 * configure: Regenerate.
1919 * configure.ac: Remove the code that uses sed to get the python
1920 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1921
1922 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1923
1924 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1925 error paths.
1926
1927 2019-10-23 Tom Tromey <tom@tromey.com>
1928
1929 * arc-tdep.c: Remove ".." from include.
1930 * frv-tdep.c: Remove ".." from include.
1931 * lm32-tdep.c: Remove ".." from include.
1932 * microblaze-tdep.c: Remove ".." from include.
1933 * or1k-tdep.h: Remove ".." from include.
1934 * s12z-tdep.c: Remove ".." from include.
1935 * Makefile.in (OPCODES_CFLAGS): Add comment.
1936 (TOP_CFLAGS): New variable.
1937 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1938
1939 2019-10-23 Tom Tromey <tom@tromey.com>
1940
1941 * Makefile.in (READLINE_DIR): Update.
1942
1943 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1944
1945 * infcall.c (call_function_by_hand_dummy): Fix the function
1946 comment. And extract out a code section into...
1947 (reserve_stack_space): ...this new function.
1948
1949 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1950
1951 * infcall.c (value_arg_coerce): Remove an unused parameter.
1952 (call_function_by_hand_dummy): Update the call to
1953 'value_arg_coerce'.
1954
1955 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1956
1957 * infcall.c (call_function_by_hand_dummy): Refactor.
1958
1959 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1960
1961 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1962
1963 2019-10-23 Tom Tromey <tom@tromey.com>
1964
1965 * configure: Rebuild.
1966 * configure.ac: Don't check for sigprocmask.
1967 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1968
1969 2019-10-23 Tom Tromey <tom@tromey.com>
1970
1971 * configure: Rebuild.
1972 * acinclude.m4: Use m4_include, not sinclude.
1973
1974 2019-10-23 Tom de Vries <tdevries@suse.de>
1975
1976 PR breakpoints/24687
1977 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1978
1979 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1980
1981 * symtab.c (struct demangled_name_entry) <language>: Change from
1982 bitfield to regular variable.
1983
1984 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1985
1986 * symtab.c (struct demangled_name_entry): Add a constructor.
1987 (free_demangled_name_entry): New function to call the destructor
1988 for demangled_name_entry.
1989 (create_demangled_names_hash): Pass free_demangled_name_entry to
1990 htab_create_alloc.
1991 (symbol_set_names): Call placement new for demangled_name_entry.
1992 * utils.c: No longer include xxhash.h here, now that fast_hash
1993 is inlined in the header.
1994 * utils.h: Instead, include it here.
1995
1996 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1997
1998 * Makefile.in: Link with libxxhash.
1999 * config.in: Regenerate.
2000 * configure: Regenerate.
2001 * configure.ac: Search for libxxhash.
2002 * utils.c (fast_hash): Use xxhash if present.
2003
2004 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2005
2006 * utils.h (fast_hash): New function.
2007 * symtab.c (hash_demangled_name_entry): Call new function
2008 fast_hash.
2009
2010 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2011
2012 * symtab.c (struct demangled_name_entry): Change type of mangled
2013 to gdb::string_view. Also adds a constructor that takes the
2014 mangled name.
2015 (hash_demangled_name_entry): Update.
2016 (eq_demangled_name_entry): Update.
2017 (free_demangled_name_entry): New function to call the destructor
2018 now that this is not a POD anymore.
2019 (create_demangled_names_hash): Pass free_demangled_name_entry to
2020 htab_create_alloc.
2021 (symbol_set_names): Update.
2022
2023 2019-10-21 Ali Tamur <tamu@google.com>
2024
2025 * dwarf2read.c (dir_index): Change type.
2026 (file_name_index): Likewise.
2027 (line_header::include_dir_at): Change comment and implementation on
2028 whether it is DWARF 5.
2029 (line_header::is_valid_file_index): New function.
2030 (line_header::file_name_at): Change comment and implementation on
2031 whether it is DWARF 5.
2032 (line_header::file_names): Change to private field renamed as
2033 m_file_names and introduce a new accessor method.
2034 (line_header::file_names_size): New method.
2035 (line_header::include_dirs): Change to private field and rename as
2036 m_include_dirs.
2037 (dw2_get_file_names_reader): Define local var at a smaller scope and
2038 reflect API change.
2039 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2040 (process_structure_scope): Likewise.
2041 (line_header::add_include_dir): Change message and reflect renaming.
2042 (line_header::add_file_name): Likewise.
2043 (read_formatted_entries): Handle DW_FORM_data16.
2044 (dwarf_decode_line_header): Fix line header length calculation.
2045 (psymtab_include_file_name): Change comment and API.
2046 (lnp_state_machine::m_file): Update comment and reflect type change.
2047 (lnp_state_machine::record_line): Reflect type change.
2048 (dwarf_decode_lines): Reflect API change.
2049 (file_file_name): Likewise.
2050 (file_full_name): Likewise.
2051
2052 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2053
2054 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2055
2056 2019-10-21 Tom Tromey <tom@tromey.com>
2057
2058 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2059
2060 2019-10-21 Tom Tromey <tom@tromey.com>
2061
2062 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2063 NM_H. Use AC_CONFIG_LINKS.
2064 * configure: Rebuild.
2065 * Makefile.in (NM_H): New variable.
2066 (generated_files): Add NM_H. Remove gcore.
2067 (nm.h, stamp-nmh): New targets.
2068
2069 2019-10-20 Tom Tromey <tom@tromey.com>
2070
2071 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2072 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2073 obsolete comment.
2074 (put_objfile_before): Now static.
2075
2076 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2077
2078 * gdbsupport/common-utils.h (startswith): Change return type to
2079 bool.
2080
2081 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2082
2083 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2084 * breakpoint.c (bp_locations_compare): Rename to...
2085 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2086 (update_global_location_list): Use std::sort instead of qsort.
2087 * buildsym.c (compare_line_numbers): Rename to...
2088 (lte_is_less_than): ...this, and change to std::sort semantics.
2089 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2090 instead of qsort.
2091 * disasm.c (compare_lines): Rename to...
2092 (line_is_less_than): ...this, and change to std::sort semantics.
2093 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2094 of qsort.
2095 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2096 (fde_is_less_than): ...this, and change to std::sort semantics.
2097 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2098 * mdebugread.c (compare_blocks):
2099 (block_is_less_than): ...this, and change to std::sort semantics.
2100 (sort_blocks): Call std::sort instead of qsort.
2101 * objfiles.c (qsort_cmp): Rename to...
2102 (sort_cmp): ...this, and change to std::sort semantics.
2103 (update_section_map): Call std::sort instead of qsort.
2104 * remote.c (compare_pnums): Remove.
2105 (map_regcache_remote_table): Call std::sort instead of qsort.
2106 * utils.c (compare_positive_ints): Remove.
2107 * utils.h (compare_positive_ints): Remove.
2108 * xcoffread.c (compare_lte): Remove.
2109 (arrange_linetable): Call std::sort instead of qsort.
2110
2111 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2112
2113 * symfile.c (init_entry_point_info): Fix typo.
2114 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2115
2116 2019-10-18 Tom de Vries <tdevries@suse.de>
2117
2118 * aarch64-tdep.c: Fix typos in comments.
2119 * ada-lang.c: Same.
2120 * ada-tasks.c: Same.
2121 * alpha-tdep.c: Same.
2122 * alpha-tdep.h: Same.
2123 * amd64-nat.c: Same.
2124 * amd64-windows-tdep.c: Same.
2125 * arc-tdep.c: Same.
2126 * arc-tdep.h: Same.
2127 * arch-utils.c: Same.
2128 * arm-nbsd-tdep.c: Same.
2129 * arm-tdep.c: Same.
2130 * ax-gdb.c: Same.
2131 * blockframe.c: Same.
2132 * btrace.c: Same.
2133 * c-varobj.c: Same.
2134 * coff-pe-read.c: Same.
2135 * coffread.c: Same.
2136 * cris-tdep.c: Same.
2137 * darwin-nat.c: Same.
2138 * dbxread.c: Same.
2139 * dcache.c: Same.
2140 * disasm.c: Same.
2141 * dtrace-probe.c: Same.
2142 * dwarf-index-write.c: Same.
2143 * dwarf2-frame-tailcall.c: Same.
2144 * dwarf2-frame.c: Same.
2145 * dwarf2read.c: Same.
2146 * eval.c: Same.
2147 * exceptions.c: Same.
2148 * fbsd-tdep.c: Same.
2149 * findvar.c: Same.
2150 * frame.c: Same.
2151 * frv-tdep.c: Same.
2152 * gnu-v3-abi.c: Same.
2153 * go32-nat.c: Same.
2154 * h8300-tdep.c: Same.
2155 * hppa-tdep.c: Same.
2156 * i386-linux-tdep.c: Same.
2157 * i386-tdep.c: Same.
2158 * ia64-libunwind-tdep.c: Same.
2159 * ia64-tdep.c: Same.
2160 * infcmd.c: Same.
2161 * infrun.c: Same.
2162 * linespec.c: Same.
2163 * linux-nat.c: Same.
2164 * linux-thread-db.c: Same.
2165 * machoread.c: Same.
2166 * mdebugread.c: Same.
2167 * mep-tdep.c: Same.
2168 * mn10300-tdep.c: Same.
2169 * namespace.c: Same.
2170 * objfiles.c: Same.
2171 * opencl-lang.c: Same.
2172 * or1k-tdep.c: Same.
2173 * osabi.c: Same.
2174 * ppc-linux-nat.c: Same.
2175 * ppc-linux-tdep.c: Same.
2176 * ppc-sysv-tdep.c: Same.
2177 * printcmd.c: Same.
2178 * procfs.c: Same.
2179 * record-btrace.c: Same.
2180 * record-full.c: Same.
2181 * remote-fileio.c: Same.
2182 * remote.c: Same.
2183 * rs6000-tdep.c: Same.
2184 * s12z-tdep.c: Same.
2185 * score-tdep.c: Same.
2186 * ser-base.c: Same.
2187 * ser-go32.c: Same.
2188 * skip.c: Same.
2189 * sol-thread.c: Same.
2190 * solib-svr4.c: Same.
2191 * solib.c: Same.
2192 * source.c: Same.
2193 * sparc-nat.c: Same.
2194 * sparc-sol2-tdep.c: Same.
2195 * sparc-tdep.c: Same.
2196 * sparc64-tdep.c: Same.
2197 * stabsread.c: Same.
2198 * stack.c: Same.
2199 * symfile.c: Same.
2200 * symtab.c: Same.
2201 * target-descriptions.c: Same.
2202 * target-float.c: Same.
2203 * thread.c: Same.
2204 * utils.c: Same.
2205 * valops.c: Same.
2206 * valprint.c: Same.
2207 * value.c: Same.
2208 * varobj.c: Same.
2209 * windows-nat.c: Same.
2210 * xcoffread.c: Same.
2211 * xstormy16-tdep.c: Same.
2212 * xtensa-tdep.c: Same.
2213
2214 2019-10-17 Tom Tromey <tromey@adacore.com>
2215
2216 * configure: Rebuild.
2217 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2218 in AC_CONFIG_FILES invocation.
2219 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2220 new-style config.status invocation.
2221
2222 2019-10-17 Tom de Vries <tdevries@suse.de>
2223
2224 * arm-nbsd-nat.c: Fix typos in comments.
2225 * arm-tdep.c: Same.
2226 * darwin-nat-info.c: Same.
2227 * dwarf2read.c: Same.
2228 * elfread.c: Same.
2229 * event-top.c: Same.
2230 * findvar.c: Same.
2231 * gdbtypes.c: Same.
2232 * hppa-tdep.c: Same.
2233 * i386-tdep.c: Same.
2234 * jit.c: Same.
2235 * main.c: Same.
2236 * mdebugread.c: Same.
2237 * moxie-tdep.c: Same.
2238 * nto-procfs.c: Same.
2239 * osabi.c: Same.
2240 * ppc-linux-tdep.c: Same.
2241 * remote.c: Same.
2242 * riscv-tdep.c: Same.
2243 * s390-tdep.c: Same.
2244 * sh-tdep.c: Same.
2245 * sparc-linux-tdep.c: Same.
2246 * sparc-nat.c: Same.
2247 * stack.c: Same.
2248 * target-descriptions.c: Same.
2249 * top.c: Same.
2250 * varobj.c: Same.
2251
2252 2019-10-16 Tom Tromey <tom@tromey.com>
2253
2254 * objfiles.h (struct objfile) <original_name>: Now const.
2255
2256 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2257
2258 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2259 pass on to sigsetjmp's second argument.
2260 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2261
2262 2019-10-16 Keith Seitz <keiths@redhat.com>
2263
2264 PR gdb/23567
2265 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2266 sections whose size is greater than the file size.
2267
2268 2019-10-16 Jim Wilson <jimw@sifive.com>
2269
2270 * riscv-tdep.c (riscv_gcc_target_options): New.
2271 (riscv_gnu_triplet_regexp): New.
2272 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2273 set_gdbarch_gnu_triplet_regexp.
2274
2275 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2276
2277 * Makefile.in: Add xml-builtin.h.
2278 * features/feature_to_c.sh: Add an include for xml-builtin.h
2279 to ensure that the compiler checks that the types match.
2280 * xml-builtin.h: New file.
2281 * xml-support.c (fetch_xml_builtin): Add missing const.
2282 * xml-support.h: Remove declaration of xml_builtins.
2283
2284 2019-10-16 Tom de Vries <tdevries@suse.de>
2285
2286 PR tdep/25096
2287 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2288 (amd64_classify_aggregate): ... here.
2289 (amd64_classify_aggregate_field): Handled fiels of nested structs
2290 recursively.
2291
2292 2019-10-16 Tom de Vries <tdevries@suse.de>
2293
2294 PR tdep/24104
2295 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2296 that handles 'theclass'.
2297
2298 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2299
2300 * linespec.c (decode_digits_ordinary): Update comment.
2301 * make-target-delegates: No longer need to handle VEC case.
2302 * memrange.c (normalize_mem_ranges): Update comment.
2303 * namespace.c (add_using_directive): Update comment.
2304 * objc-lang.c (uniquify_strings): Update comment.
2305 * ppc-linux-nat.c (struct thread_points): Update comment.
2306 * probe.h (find_probes_in_objfile): Update comment.
2307 * target.h (enum flash_preserve_mode): Update comment.
2308 * varobj.c (varobj_restrict_range): Update comment.
2309 * varobj.h (varobj_list_children): Update comment.
2310
2311 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2312
2313 * Makefile.in: Remove references to vec.h and vec.c.
2314 * aarch64-tdep.c: No longer include vec.h.
2315 * ada-lang.c: Likewise.
2316 * ada-lang.h: Likewise.
2317 * arm-tdep.c: Likewise.
2318 * ax.h: Likewise.
2319 * breakpoint.h: Likewise.
2320 * charset.c: Likewise.
2321 * cp-support.h: Likewise.
2322 * dtrace-probe.c: Likewise.
2323 * dwarf2read.c: Likewise.
2324 * extension.h: Likewise.
2325 * gdb_bfd.c: Likewise.
2326 * gdbsupport/gdb_vecs.h: Likewise.
2327 * gdbsupport/vec.c: Remove.
2328 * gdbsupport/vec.h: Remove.
2329 * gdbthread.h: Likewise.
2330 * guile/scm-type.c: Likewise.
2331 * inline-frame.c: Likewise.
2332 * machoread.c: Likewise.
2333 * memattr.c: Likewise.
2334 * memrange.h: Likewise.
2335 * namespace.h: Likewise.
2336 * nat/linux-btrace.h: Likewise.
2337 * osdata.c: Likewise.
2338 * parser-defs.h: Likewise.
2339 * progspace.h: Likewise.
2340 * python/py-type.c: Likewise.
2341 * record-btrace.c: Likewise.
2342 * rust-exp.y: Likewise.
2343 * solib-target.c: Likewise.
2344 * stap-probe.c: Likewise.
2345 * target-descriptions.c: Likewise.
2346 * target-memory.c: Likewise.
2347 * target.h: Likewise.
2348 * varobj.c: Likewise.
2349 * varobj.h: Likewise.
2350 * xml-support.h: Likewise.
2351
2352 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2353
2354 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2355 Update for new std::vector based implementation.
2356 (process_psymtab_comp_unit_reader): Likewise.
2357 (scan_partial_symbols): Likewise.
2358 (recursively_compute_inclusions): Likewise.
2359 (compute_compunit_symtab_includes): Likewise.
2360 (process_imported_unit_die): Likewise.
2361 (queue_and_load_dwo_tu): Likewise.
2362 (follow_die_sig_1): Likewise.
2363 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2364 (typedef dwarf2_per_cu_ptr): Remove.
2365 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2366 function.
2367 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2368 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2369 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2370 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2371 std::vector.
2372
2373 2019-10-15 Tom Tromey <tromey@adacore.com>
2374
2375 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2376 TID.
2377
2378 2019-10-15 Tom Tromey <tromey@adacore.com>
2379
2380 * windows-nat.c (windows_nat_target::fetch_registers)
2381 (windows_nat_target::store_registers): Rename "pid" to "tid".
2382
2383 2019-10-15 Tom Tromey <tromey@adacore.com>
2384
2385 * gdbarch.h, gdbarch.c: Rebuild.
2386 * gdbarch.sh (gcc_target_options): Change return type to
2387 std::string.
2388 * compile/compile.c (get_args): Update.
2389 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2390 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2391 std::string.
2392 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2393 std::string.
2394 * arch-utils.c (default_gcc_target_options): Return std::string.
2395 * arch-utils.h (default_gcc_target_options): Return std::string.
2396 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2397
2398 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2399
2400 * breakpoint.c (breakpoint_chain): Make static.
2401 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2402 of accessing breakpoint_chain.
2403
2404 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2405
2406 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2407 to a gdb::function_view and return value to bool.
2408 * breakpoint.h (iterate_over_breakpoints): Likewise.
2409 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2410 (pop_dummy_frame): Update.
2411 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2412 (gdbscm_breakpoints): Update.
2413 * python/py-breakpoint.c (build_bp_list): Update.
2414 (gdbpy_breakpoints): Update.
2415 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2416 Update.
2417 (bpfinishpy_handle_stop): Update.
2418 (bpfinishpy_handle_exit): Update.
2419 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2420 (svr4_update_solib_event_breakpoints): Update.
2421
2422 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2423
2424 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2425 when unwrapping single-field structs.
2426
2427 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2428
2429 * dwarf2read.c: Remove includes.
2430
2431 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2432
2433 * ui-out.c (ui_out::call_do_message): Silence
2434 -Wformat-nonliteral warning.
2435
2436 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2437
2438 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2439 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2440 include: readline/tilde.h.
2441
2442 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2443
2444 * remote.c (remote_target::get_trace_status): Remove declaration of
2445 trace_regblock_size.
2446
2447 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2448
2449 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2450 (show_user): Remove declaration of cmdlist.
2451 * cli/cli-cmds.h (max_user_call_depth): Declare.
2452 * cli/cli-script.c (execute_user_command): Remove declaration
2453 of max_user_call_depth.
2454
2455 2019-10-11 Jim Wilson <jimw@sifive.com>
2456
2457 * gdbsupport/print-utils.h (pulongest): Fix comment.
2458 (plongest): Likewise.
2459 (phex): Add missing comment, mention leading zeros.
2460 (phex_nz): Add mention of no leading zeros to comment.
2461
2462 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2463 plongest instead of unsigned long long cast.
2464
2465 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2466
2467 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2468 for external_editor_command and gdbtk_test.
2469
2470 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2471
2472 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2473 * varobj.c (varobjdebug): Move comment to...
2474 * varobj.h (varobjdebug): ...here, and declare.
2475
2476 2019-10-09 Tom Tromey <tom@tromey.com>
2477
2478 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2479 erase_data_content.
2480
2481 2019-10-09 Tom Tromey <tom@tromey.com>
2482
2483 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2484 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2485 * tui/tui-command.c (tui_cmd_window::resize)
2486 (tui_refresh_cmd_win): Update.
2487 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2488 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2489 * tui/tui-data.c (~tui_gen_win_info): Remove.
2490 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2491 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2492 (tui_redisplay_readline, tui_mld_flush)
2493 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2494 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2495 (tui_data_window::erase_data_content)
2496 (tui_data_item_window::rerender)
2497 (tui_data_item_window::refresh_window): Update.
2498 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2499 (box_win, tui_gen_win_info::make_window)
2500 (tui_gen_win_info::make_visible): Update.
2501 (tui_delete_win): Remove.
2502 * tui/tui-winsource.c
2503 (tui_source_window_base::do_erase_source_content): Update.
2504 (tui_show_source_line, tui_source_window_base::update_tab_width)
2505 (tui_source_window_base::update_exec_info): Update.
2506 * tui/tui-data.h (struct curses_deleter): New.
2507 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2508 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2509
2510 2019-10-09 Tom Tromey <tom@tromey.com>
2511
2512 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2513
2514 2019-10-09 Tom Tromey <tom@tromey.com>
2515
2516 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2517 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2518
2519 2019-10-09 Tom Tromey <tom@tromey.com>
2520
2521 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2522 window height directly.
2523 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2524 declare.
2525 * tui/tui-layout.c (tui_default_win_height): Remove.
2526 (tui_default_win_viewport_height): Remove.
2527
2528 2019-10-09 Tom Tromey <tom@tromey.com>
2529
2530 * tui/tui.h: Remove comments.
2531
2532 2019-10-09 Tom de Vries <tdevries@suse.de>
2533
2534 * python/lib/gdb/printer/bound_registers.py: Use
2535 '^builtin_type_bound128' as regexp argument for
2536 add_builtin_pretty_printer.
2537
2538 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2539
2540 * guile/guile.c (guile_extension_script_ops): Remove forward
2541 declaration and mark as static.
2542 (guile_script_ops): Likewise.
2543 (extension_language_guile): Move further down in the file so
2544 it can reference the definitions for guile_{extension_,}script_ops.
2545
2546 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2547
2548 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2549 except SORTL, DFLTCC, and KDSA.
2550
2551 2019-10-08 Tom Tromey <tromey@adacore.com>
2552
2553 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2554 (struct safe_symbol_file_add_args): Remove.
2555
2556 2019-10-08 Tom Tromey <tromey@adacore.com>
2557
2558 * windows-nat.c: Don't include buildsym-legacy.h.
2559
2560 2019-10-08 Tom Tromey <tromey@adacore.com>
2561
2562 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2563
2564 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2565
2566 * gdbtypes.c (overload_debug): Move comment to header.
2567 * gdbtypes.h (overload_debug): Declare.
2568 * valops.c: Remove declaration of overload_debug, instead
2569 include gdbtypes.h.
2570
2571 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2572
2573 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2574 through _().
2575 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2576 move comment...
2577 * language.h (lang_frame_mismatch_warn): ... here. Also add
2578 declaration.
2579 * top.c (lang_frame_mismatch_warn): Remove declaration.
2580 (check_frame_language_change): Pass lang_frame_mismatch_warn
2581 through _().
2582
2583 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2584
2585 * c-lang.h (vtbl_ptr_name): Declare.
2586 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2587 it from the header.
2588 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2589
2590 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2591
2592 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2593 gdb_static_assert.
2594
2595 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2596
2597 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2598 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2599 * ctfread.c: New file.
2600 * ctfread.h: New file.
2601 * elfread.c: Include ctfread.h.
2602 (struct elfinfo text_p): New member ctfsect.
2603 (elf_locate_sections): Mark CTF section.
2604 (elf_symfile_read): Call elfctf_build_psymtabs.
2605 * Makefile.in (LIBCTF): Add.
2606 (CLIBS): Use it.
2607 (CDEPS): Likewise.
2608 (DIST): Add ctfread.c.
2609
2610 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2611
2612 * ctfread.c (struct nextfield): Renamed to ...
2613 (struct ctf_nextfield): ... this.
2614 (struct field_info): Renamed to ...
2615 (strut ctf_field_info): ... this.
2616 (attach_fields_to_type): Update for renamed structures.
2617 (ctf_add_member_cb): Likewise.
2618 (ctf_add_enum_member_cb): Likewise.
2619 (process_struct_members): Likewise.
2620 (process_enum_type): Likewise.
2621
2622 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2623
2624 * tracectf.h: Rename, was ctf.h.
2625 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2626 * tracefile.c: Likewise.
2627 * tracepoint.c: Remove unused include ctf.h.
2628 * mi/mi-main.c: Likewise.
2629 * Makefile.in Replace ctf.c with tracectf.c.
2630
2631 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2632
2633 * version.in: Change version number to "9.0.50.DATE-git".
2634
2635 2019-10-03 Tom Tromey <tom@tromey.com>
2636
2637 PR rust/24976:
2638 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2639
2640 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2641
2642 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2643 cp_search_name_hash.
2644 * NEWS: Add entry about nested function support.
2645
2646 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2647 Andrew Burgess <andrew.burgess@embecosm.com>
2648
2649 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2650 for nested static variables when searchin VAR_DOMAIN.
2651 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2652 global scope, update comment.
2653 (add_partial_subprogram): Call add_partial_subprogram recursively
2654 for nested subroutines when processinng Fortran.
2655 (load_partial_dies): Process the child entities of a subprogram
2656 when processing Fortran.
2657 (partial_die_parent_scope): Handle building scope
2658 for Fortran nested functions.
2659 (process_die): Record that nested functions have a scope.
2660 (new_symbol): Always record Fortran subprograms on the global
2661 symbol list.
2662 (determine_prefix): How to build the prefix for Fortran
2663 subprograms.
2664
2665 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2666
2667 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2668 have just sent the thread a SIGSTOP and are waiting for it to
2669 arrive.
2670
2671 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2672
2673 * btrace.c (btrace_add_pc): Remove whitespace before the template
2674 parameter in 'std::vector <...>'.
2675 (parse_xml_btrace_block): Likewise.
2676 (btrace_maint_decode_pt): Likewise.
2677 (btrace_maint_update_packets): Likewise.
2678 (btrace_maint_print_packets): Likewise.
2679 * btrace.h (struct btrace_maint_info): Likewise.
2680 * dwarf2read.c (struct type_unit_group): Likewise.
2681 (build_type_psymtabs_reader): Likewise.
2682 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2683 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2684 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2685
2686 2019-10-03 Tom de Vries <tdevries@suse.de>
2687
2688 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2689 the first line of the help text for set/show style metadata.
2690
2691 2019-10-02 Tom Tromey <tromey@adacore.com>
2692
2693 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2694 * gdbsupport/common-inferior.c: New file.
2695 * infcmd.c (startup_with_shell): Don't define.
2696 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2697 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2698 * inferior.h (startup_with_shell): Don't declare.
2699
2700 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2701
2702 * gdbsupport/gdb_assert.h: Include errors.h.
2703 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2704
2705 2019-10-02 Tom Tromey <tromey@adacore.com>
2706
2707 * NEWS: Add $_ada_exception entry.
2708 * ada-lang.c (struct ada_catchpoint): Add constructor.
2709 <m_kind>: New member.
2710 (allocate_location_exception, re_set_exception): Remove
2711 "ex" parameter.
2712 (should_stop_exception): Compute $_ada_exception.
2713 (check_status_exception, print_it_exception)
2714 (print_one_exception, print_mention_exception): Remove
2715 "ex" parameter.
2716 (allocate_location_catch_exception, re_set_catch_exception)
2717 (check_status_exception, print_it_catch_exception)
2718 (print_one_catch_exception, print_mention_catch_exception)
2719 (print_recreate_catch_exception)
2720 (allocate_location_catch_exception_unhandled)
2721 (re_set_catch_exception_unhandled)
2722 (check_status_exception, print_it_catch_exception_unhandled)
2723 (print_one_catch_exception_unhandled)
2724 (print_mention_catch_exception_unhandled)
2725 (print_recreate_catch_exception_unhandled)
2726 (allocate_location_catch_assert, re_set_catch_assert)
2727 (check_status_assert, print_it_catch_assert)
2728 (print_one_catch_assert, print_mention_catch_assert)
2729 (print_recreate_catch_assert)
2730 (allocate_location_catch_handlers, re_set_catch_handlers)
2731 (check_status_handlers, print_it_catch_handlers)
2732 (print_one_catch_handlers, print_mention_catch_handlers)
2733 (print_recreate_catch_handlers): Remove.
2734 (create_ada_exception_catchpoint): Update.
2735 (initialize_ada_catchpoint_ops): Update.
2736
2737 2019-10-02 Tom Tromey <tromey@adacore.com>
2738
2739 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2740 (create_excep_cond_exprs): Simplify exception string computation.
2741 (ada_exception_catchpoint_cond_string): Likewise.
2742
2743 2019-10-02 Tom Tromey <tromey@adacore.com>
2744
2745 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2746 * ada-lang.c (lesseq_defined_than): Handle
2747 LOC_STATIC.
2748 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2749 parameter.
2750 (dwarf2_has_info): Likewise.
2751 (new_symbol): Set maybe_copied on symbol when
2752 appropriate.
2753 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2754 parameter.
2755 <can_copy>: New member.
2756 * elfread.c (record_minimal_symbol): Set maybe_copied
2757 on symbol when appropriate.
2758 (elf_symfile_read): Update call to dwarf2_has_info.
2759 * minsyms.c (lookup_minimal_symbol_linkage): New
2760 function.
2761 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2762 * symtab.c (get_symbol_address, get_msymbol_address):
2763 New functions.
2764 * symtab.h (get_symbol_address, get_msymbol_address):
2765 Declare.
2766 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2767 maybe_copied.
2768 (struct symbol, struct minimal_symbol) <maybe_copied>:
2769 New member.
2770
2771 2019-10-02 Tom Tromey <tromey@adacore.com>
2772
2773 * source.c (struct current_source_location): New.
2774 (current_source_key): New global.
2775 (current_source_symtab, current_source_line)
2776 (current_source_pspace): Remove.
2777 (get_source_location): New function.
2778 (get_current_source_symtab_and_line)
2779 (set_default_source_symtab_and_line)
2780 (set_current_source_symtab_and_line)
2781 (clear_current_source_symtab_and_line, select_source_symtab)
2782 (info_source_command, print_source_lines_base)
2783 (info_line_command, search_command_helper, _initialize_source):
2784 Update.
2785
2786 2019-10-02 Tom Tromey <tromey@adacore.com>
2787
2788 * source.c (select_source_symtab): Don't call
2789 decode_line_with_current_source.
2790
2791 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2792
2793 * symtab.c (lookup_global_symbol): Search global block.
2794
2795 2019-10-02 Tom Tromey <tromey@adacore.com>
2796
2797 * coffread.c (process_coff_symbol): Update.
2798 * dwarf2read.c (var_decode_location, new_symbol): Update.
2799 * mdebugread.c (parse_symbol): Update.
2800 * objfiles.c (relocate_one_symbol): Update.
2801 * stabsread.c (define_symbol, fix_common_block)
2802 (scan_file_globals): Update.
2803 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2804 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2805 * xcoffread.c (process_xcoff_symbol): Update.
2806
2807 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2808
2809 * MAINTAINERS: Update my email address.
2810
2811 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2812
2813 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2814 std::vector.
2815 (build_type_psymtabs_reader): Update for std::vector.
2816 (build_type_psymtab_dependencies): Likewise.
2817 * dwarf2read.h: Remove use of DEF_VEC_P.
2818 (typedef sig_type_ptr): Delete.
2819
2820 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2821
2822 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2823 to std::vector.
2824 (btrace_maint_decode_pt): Likewise, and move allocation of the
2825 vector outside of the loop.
2826 (btrace_maint_update_packets): Update to handle change from VEC to
2827 std::vector.
2828 (btrace_maint_print_packets): Likewise.
2829 (maint_info_btrace_cmd): Likewise.
2830 * btrace.h: Remove use of DEF_VEC_O.
2831 (typedef btrace_pt_packet_s): Delete.
2832 (struct btrace_maint_info) <packets>: Change fromm VEC to
2833 std::vector.
2834 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2835
2836 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2837
2838 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2839 make accesses into the vector constant references.
2840 (btrace_add_pc): Update for std::vector.
2841 (btrace_stitch_bts): Likewise.
2842 (parse_xml_btrace_block): Likewise.
2843 (btrace_maint_update_packets): Likewise.
2844 (btrace_maint_print_packets): Likewise.
2845 (maint_info_btrace_cmd): Likewise.
2846 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2847 std::vector.
2848 (btrace_data::empty): Likewise.
2849 (btrace_data_append): Likewise.
2850 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2851 (typedef btrace_block_s): Delete.
2852 (struct btrace_block): Add constructor.
2853 (struct btrace_data_bts) <blocks>: Change to std::vector.
2854 * nat/linux-btrace.c (perf_event_read_bts): Update for
2855 std::vector.
2856 (linux_read_bts): Likewise.
2857
2858 2019-10-01 Tom Tromey <tom@tromey.com>
2859
2860 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2861
2862 2019-10-01 Tom Tromey <tom@tromey.com>
2863
2864 * stack.c (print_frame, info_frame_command_core): Use
2865 styled_string.
2866 * linux-thread-db.c (try_thread_db_load_1)
2867 (try_thread_db_load_from_pdir_1): Use styled_string.
2868 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2869 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2870 (maybe_print_unsupported_script_warning)
2871 (maybe_print_script_not_found_warning): Use styled_string.
2872 * ada-lang.c (user_select_syms): Use styled_string.
2873
2874 2019-10-01 Tom Tromey <tom@tromey.com>
2875
2876 * p-lang.c (pascal_printstr): Use metadata style.
2877 * value.c (show_convenience): Use metadata style.
2878 * valprint.c (valprint_check_validity, val_print_optimized_out)
2879 (val_print_not_saved, val_print_unavailable)
2880 (val_print_invalid_address, generic_val_print, val_print)
2881 (value_check_printable, val_print_array_elements): Use metadata
2882 style.
2883 * ui-out.h (class ui_out) <field_fmt>: New overload.
2884 <do_field_fmt>: Add style parameter.
2885 * ui-out.c (ui_out::field_fmt): New overload.
2886 * typeprint.c (type_print_unknown_return_type)
2887 (val_print_not_allocated, val_print_not_associated): Use metadata
2888 style.
2889 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2890 parameter.
2891 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2892 * tracepoint.c (tvariables_info_1): Use metadata style.
2893 * stack.c (print_frame_arg, print_frame_info, print_frame)
2894 (info_frame_command_core): Use metadata style.
2895 * skip.c (info_skip_command): Use metadata style.
2896 * rust-lang.c (rust_print_enum): Use metadata style.
2897 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2898 metadata style.
2899 * python/py-framefilter.c (py_print_single_arg): Use metadata
2900 style.
2901 * printcmd.c (do_one_display, print_variable_and_value): Use
2902 metadata style.
2903 * p-valprint.c (pascal_val_print)
2904 (pascal_object_print_value_fields): Use metadata style.
2905 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2906 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2907 parameter.
2908 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2909 * m2-valprint.c (m2_print_long_set): Use metadata style.
2910 * m2-typeprint.c (m2_print_type): Use metadata style.
2911 * infcmd.c (print_return_value_1): Use metadata style.
2912 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2913 * f-valprint.c (info_common_command_for_block): Use metadata
2914 style.
2915 * f-typeprint.c (f_type_print_base): Use metadata style.
2916 * expprint.c (print_subexp_standard): Use metadata style.
2917 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2918 * cli/cli-style.h (class cli_style_option): Add constructor.
2919 (metadata_style): Declare.
2920 * cli/cli-style.c (metadata_style): New global.
2921 (_initialize_cli_style): Register metadata style.
2922 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2923 parameter.
2924 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2925 * c-typeprint.c (c_type_print_base_struct_union)
2926 (c_type_print_base_1): Use metadata style.
2927 * breakpoint.c (watchpoint_value_print)
2928 (print_one_breakpoint_location): Use metadata style.
2929 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2930 style.
2931 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2932 style.
2933 * ada-valprint.c (val_print_packed_array_elements, printstr)
2934 (print_field_values, ada_val_print_ref, ada_val_print): Use
2935 metadata style.
2936 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2937 style.
2938 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2939 style.
2940 * ada-lang.c (user_select_syms): Use metadata style.
2941
2942 2019-10-01 Tom Tromey <tom@tromey.com>
2943
2944 * cli/cli-cmds.c (pwd_command): Style output.
2945
2946 2019-10-01 Pedro Alves <palves@redhat.com>
2947 Tom Tromey <tom@tromey.com>
2948
2949 * symtab.c (print_symbol_info): Use %ps.
2950 (print_msymbol_info): Use %ps.
2951 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2952 * printcmd.c (print_variable_and_value): Use %ps.
2953 * macrocmd.c (show_pp_source_pos): Use %ps.
2954 * infrun.c (print_exited_reason): Use ui_out::message.
2955 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2956 (describe_other_breakpoints): Use ui_out::message and new
2957 formats.
2958 (say_where): Use new formats.
2959 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2960 and new formats.
2961
2962 2019-10-01 Pedro Alves <palves@redhat.com>
2963 Tom Tromey <tom@tromey.com>
2964
2965 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2966 (test_gdb_formats): New function.
2967 (run_tests): Call it.
2968 (test_format_specifier): Update.
2969 * utils.h (fputs_filtered): Update comment.
2970 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2971 (fputs_styled_unfiltered): Declare.
2972 * utils.c (fputs_styled_unfiltered): New function.
2973 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2974 (vfprintf_filtered): Update.
2975 (vfprintf_unfiltered, vprintf_filtered): Update.
2976 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2977 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2978 disallow_ui_out_field>: New constants.
2979 (enum class field_kind): New.
2980 (struct base_field_s, struct signed_field_s): New.
2981 (signed_field): New function.
2982 (struct string_field_s): New.
2983 (string_field): New function.
2984 (struct styled_string_s): New.
2985 (styled_string): New function.
2986 (class ui_out) <message>: Add comment.
2987 <vmessage, call_do_message>: New methods.
2988 <do_message>: Add style parameter.
2989 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2990 methods.
2991 (ui_out::message): Rewrite.
2992 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2993 parameter.
2994 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2995 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2996 gdb_extensions parameter.
2997 (class format_piece): Add parameter to constructor.
2998 (n_int_args): New field.
2999 * gdbsupport/format.c (format_pieces::format_pieces): Add
3000 gdb_extensions parameter. Handle '*'.
3001 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3002 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3003 vfprintf_styled_no_gdbfmt.
3004 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3005 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3006 unfiltered output.
3007 * ui-style.h (struct ui_file_style) <ptr>: New method.
3008
3009 2019-10-01 Tom Tromey <tom@tromey.com>
3010
3011 * unittests/format_pieces-selftests.c: Update. Add final format.
3012 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3013 empty literal pieces.
3014
3015 2019-10-01 Tom Tromey <tom@tromey.com>
3016
3017 * ui-out.h (enum class ui_out_style_kind): Remove.
3018 (class ui_out) <field_string, field_stsream, do_field_string>:
3019 Change type of "style".
3020 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3021 (ui_out::field_string): Update.
3022 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3023 of "style".
3024 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3025 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3026 * stack.c (print_frame_arg, print_frame_info, print_frame):
3027 Update.
3028 * source.c (print_source_lines_base): Update.
3029 * solib.c (info_sharedlibrary_command): Update.
3030 * skip.c (info_skip_command): Update.
3031 * record-btrace.c (btrace_call_history_src_line)
3032 (btrace_call_history): Update.
3033 * python/py-framefilter.c (py_print_frame): Update.
3034 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3035 "style".
3036 * mi/mi-out.c (mi_ui_out::do_table_header)
3037 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3038 (mi_ui_out::do_field_string): Update.
3039 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3040 Update.
3041 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3042 "style".
3043 * cli-out.c (cli_ui_out::do_table_header)
3044 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3045 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3046 (cli_ui_out::do_field_fmt): Update.
3047 * breakpoint.c (print_breakpoint_location): Update.
3048 (update_static_tracepoint): Update.
3049
3050 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3051
3052 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3053 conversion of gdb_datadir.
3054 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3055 remove not needed c_str ().
3056
3057 2019-09-30 Ali Tamur <tamur@google.com>
3058
3059 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3060 (dwarf2_string_attr): Likewise.
3061
3062 2019-09-30 Ali Tamur <tamur@google.com>
3063
3064 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3065 (process_full_type_unit): Likewise.
3066 (dump_die_shallow): Likewise.
3067 (cu_debug_loc_section): Likewise.
3068
3069 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3070
3071 * minsyms.c (compare_minimal_symbols): Rename to...
3072 (minimal_symbol_is_less_than): ...this, and adjust to STL
3073 conventions (return bool, take arguments as references)
3074 (minimal_symbol_reader::install): Call std::sort instead
3075 of qsort.
3076
3077 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3078
3079 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3080 hash and why.
3081 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3082 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3083
3084 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3085
3086 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3087 * psympriv.h (add_psymbol_to_list): Move comment here and update
3088 it.
3089
3090 2019-09-29 Tom de Vries <tdevries@suse.de>
3091
3092 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3093 Use $tmpdir/$(basename "$output_file").dwz instead of
3094 "${output_file}.dwz".
3095
3096 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3097
3098 PR gdb/25045
3099 * hppa-linux-nat.c: Include gdbarch.h.
3100
3101 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3102
3103 * blockframe.c (find_pc_partial_function): Change return type to bool.
3104 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3105 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3106 (stub_gnu_ifunc_resolve_name): Likewise.
3107 * symtab.c (compare_filenames_for_search): Likewise.
3108 (compare_glob_filenames_for_search): Likewise.
3109 (matching_obj_sections): Likewise.
3110 (symbol_matches_domain): Likewise.
3111 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3112 (find_line_pc): Change return type to bool.
3113 (find_line_pc_range): Likewise.
3114 (producer_is_realview): Likewise.
3115 * symtab.h (symbol_matches_domain): Likewise.
3116 (find_pc_partial_function): Likewise.
3117 (find_pc_line_pc_range): Likewise.
3118 (in_gnu_ifunc_stub): Likewise.
3119 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3120 (find_line_pc): Likewise.
3121 (find_line_pc_range): Likewise.
3122 (matching_obj_sections): Likewise.
3123 (find_line_symtab): Change out parameter to bool.
3124 (producer_is_realview): Change return type to bool.
3125 (compare_filenames_for_search): Likewise.
3126 (compare_glob_filenames_for_search): Likewise.
3127
3128 2019-09-26 Tom Tromey <tom@tromey.com>
3129
3130 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3131 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3132 * gdb_usleep.h: Remove.
3133 * gdb_usleep.c: Remove.
3134 * utils.c: Don't include gdb_usleep.h.
3135
3136 2019-09-26 Tom Tromey <tromey@adacore.com>
3137
3138 * python/py-type.c (type_to_type_object): Call check_typedef
3139 for stub types.
3140
3141 2019-09-26 Tom Tromey <tom@tromey.com>
3142
3143 * utils.h (initialize_utils): Don't declare.
3144 * top.c (gdb_init): Don't call initialize_utils.
3145 * utils.c (initialize_utils): Remove. Move contents...
3146 (_initialize_utils): ... here.
3147
3148 2019-09-25 Tom Tromey <tom@tromey.com>
3149
3150 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3151 * utils.h (make_hex_string): Don't declare.
3152 * utils.c (make_hex_string): Remove.
3153
3154 2019-09-24 Tom de Vries <tdevries@suse.de>
3155
3156 PR gdb/23815
3157 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3158 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3159
3160 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3161
3162 * NEWS: Mention new simulator port for PRU.
3163
3164 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3165
3166 * ada-exp.y (write_object_remaining): Update.
3167 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3168 and eliminate the static buffer.
3169 (ada_decode_symbol): Update.
3170 (ada_la_decode): Update.
3171 (ada_sniff_from_mangled_name): Update.
3172 (is_valid_name_for_wild_match): Update.
3173 (ada_lookup_name_info::matches): Update and simplify.
3174 (name_matches_regex): Update.
3175 (ada_add_global_exceptions): Update.
3176 * ada-lang.h (ada_decode): Update signature.
3177 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3178 * dwarf-index-write.c (debug_names::insert): Update.
3179
3180 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3181
3182 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3183 formatting.
3184
3185 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3186
3187 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3188 Change "nonzero" to "true" in documentation.
3189
3190 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3191
3192 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3193 (_initialize_darwin_solib): Don't set
3194 darwin_so_ops.lookup_lib_global_symbol.
3195 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3196 set_gdbarch_iterate_over_objfiles_in_search_order.
3197 (elf_lookup_lib_symbol): Rename to...
3198 (svr4_iterate_over_objfiles_in_search_order): this, and update
3199 to iterate semantics.
3200 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3201 * solib.c (solib_global_lookup): Remove.
3202 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3203 (solib_global_lookup): Remove.
3204 * symtab.c (lookup_global_or_static_symbol): Remove call to
3205 solib_global_lookup.
3206
3207 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3208
3209 * NEWS: Move entries about default MI version now being
3210 version 3, and about the GDB/MI fix for multi-location
3211 breakpoints to the "since GDB 8.3" section.
3212
3213 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3214
3215 GDB 8.3.1 released.
3216
3217 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3218
3219 * NEWS: Mention that Cell/B.E. debugging support was removed.
3220 * MAINTAINERS: Remove spu target.
3221
3222 * config/djgpp/fnchange.lst: Remove entries for removed files.
3223
3224 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3225 spu-multiarch.o, and spu-tdep.o.
3226 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3227 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3228 spu-multiarch.c, and spu-tdep.c.
3229 * spu-linux-nat.c: Remove file.
3230 * spu-multiarch.c: Remove file.
3231 * spu-tdep.c: Remove file.
3232 * spu-tdep.h: Remove file.
3233 * solib-spu.c: Remove file.
3234 * solib-spu.h: Remove file.
3235
3236 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3237 * configure.nat (spu-linux): Remove.
3238 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3239 solib-multiarch.o from gdb_target_obs.
3240 (spu*-*-*): Remove.
3241
3242 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3243 feature flag.
3244 (ppc_linux_no_features): Update.
3245 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3246 Cell/B.E. support.
3247 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3248 (tdesc_powerpc_cell64l): Likewise.
3249 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3250 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3251 Cell/B.E. support.
3252 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3253 Do not include "features/rs6000/powerpc-cell32l.c" or
3254 "features/rs6000/powerpc-cell64l.c".
3255 (ppc_linux_spu_section): Remove.
3256 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3257 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3258 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3259 (ppc_linux_spe_context_lookup): Remove.
3260 (ppc_linux_spe_context_inferior_created): Remove.
3261 (ppc_linux_spe_context_solib_loaded): Remove.
3262 (ppc_linux_spe_context_solib_unloaded): Remove.
3263 (ppc_linux_spe_context): Remove.
3264 (struct ppu2spu_cache): Remove.
3265 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3266 (struct ppu2spu_data): Remove.
3267 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3268 ppu2spu_unwind): Remove.
3269 (ppc_linux_init_abi): Remove Cell/B.E. support.
3270 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3271
3272 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3273 (rs6000/powerpc-cell64l-expedite): Likewise
3274 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3275 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3276 rs6000/powerpc-cell64l.xml.
3277 * features/rs6000/powerpc-cell32l.xml: Remove.
3278 * features/rs6000/powerpc-cell64l.xml: Likewise.
3279 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3280 * features/rs6000/powerpc-cell64l.c: Likewise.
3281 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3282 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3283 * regformats/reg-spu.dat: Remove.
3284
3285 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3286 * corelow.c (struct spuid_list): Remove.
3287 (add_to_spuid_list): Remove.
3288 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3289 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3290 (remote_protocol_features): Remove associated entries.
3291 (_initialize_remote): No longer initialize them.
3292 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3293 * linux-nat.c (SPUFS_MAGIC): Remove.
3294 (linux_proc_xfer_spu): Remove.
3295 (spu_enumerate_spu_ids): Remove.
3296 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3297 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3298 (linux_make_corefile_notes): No longer call it.
3299
3300 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3301 (cooked_write_test): Likewise.
3302
3303 2019-09-20 Tom Tromey <tom@tromey.com>
3304
3305 * NEWS: Mention case-sensitivity of TUI commands.
3306 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3307 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3308 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3309
3310 2019-09-20 Tom Tromey <tom@tromey.com>
3311
3312 * tui/tui-source.c (tui_source_window::set_contents): Use
3313 make_unique_xstrdup.
3314 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3315 make_unique_xstrdup.
3316
3317 2019-09-20 Tom Tromey <tom@tromey.com>
3318
3319 * tui/tui-data.c: Remove separator comments.
3320 * tui/tui-layout.c: Remove separator comments.
3321 * tui/tui-win.c: Remove separator comments.
3322 * tui/tui-wingeneral.c: Remove separator comments.
3323
3324 2019-09-20 Tom Tromey <tom@tromey.com>
3325
3326 * tui/tui.h (strcat_to_buf): Don't declare.
3327 * tui/tui.c (strcat_to_buf): Remove.
3328
3329 2019-09-20 Tom Tromey <tom@tromey.com>
3330
3331 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3332 from "fullname".
3333 * tui/tui-source.c (tui_source_window::set_contents)
3334 (tui_source_window::location_matches_p)
3335 (tui_source_window::maybe_update): Update.
3336
3337 2019-09-20 Tom Tromey <tom@tromey.com>
3338
3339 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3340 Update.
3341 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3342 prefix.
3343 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3344 (tui_data_window::line_from_reg_element_no)
3345 (tui_data_window::first_reg_element_no_inline)
3346 (tui_data_window::show_registers)
3347 (tui_data_window::show_register_group)
3348 (tui_data_window::display_registers_from)
3349 (tui_data_window::display_registers_from_line)
3350 (tui_data_window::first_data_item_displayed)
3351 (tui_data_window::delete_data_content_windows)
3352 (tui_data_window::erase_data_content)
3353 (tui_data_window::do_scroll_vertical)
3354 (tui_data_window::refresh_window)
3355 (tui_data_window::check_register_values): Update.
3356
3357 2019-09-20 Tom Tromey <tom@tromey.com>
3358
3359 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3360 (struct tui_locator_window) <full_name, proc_name>: Now
3361 std::string.
3362 * tui/tui-stack.c (tui_locator_window::make_status_line)
3363 (tui_locator_window::set_locator_fullname)
3364 (tui_locator_window::set_locator_info): Update.
3365 * tui/tui-source.c (tui_source_window::set_contents)
3366 (tui_source_window::showing_source_p): Update.
3367
3368 2019-09-20 Tom Tromey <tom@tromey.com>
3369
3370 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3371 Don't call tui_locator_win_info_ptr.
3372
3373 2019-09-20 Tom Tromey <tom@tromey.com>
3374
3375 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3376
3377 2019-09-20 Tom Tromey <tom@tromey.com>
3378
3379 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3380 height for locator.
3381 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3382 * tui/tui-layout.c (show_source_disasm_command, show_data)
3383 (show_source_or_disasm_and_command): Use 1 as height for locator.
3384
3385 2019-09-20 Tom Tromey <tom@tromey.com>
3386
3387 * tui/tui.c (tui_enable): Update.
3388 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3389 Update.
3390 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3391 Update.
3392 * tui/tui-data.c (win_resized): Now bool.
3393 (tui_win_resized): Return bool.
3394 (tui_set_win_resized_to): Accept a bool.
3395
3396 2019-09-20 Tom Tromey <tom@tromey.com>
3397
3398 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3399 Change type of "refresh_values_only".
3400 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3401 type of "refresh_values_only".
3402
3403 2019-09-20 Tom Tromey <tom@tromey.com>
3404
3405 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3406 std::string.
3407 (tui_disassemble): Add "pos" parameter.
3408 (tui_disasm_window::set_contents): Simplify.
3409
3410 2019-09-20 Tom Tromey <tom@tromey.com>
3411
3412 * tui/tui-winsource.h (struct tui_source_window_base)
3413 <show_source_content>: Now private.
3414 * tui/tui-winsource.c
3415 (tui_source_window_base::show_source_content): Don't handle empty
3416 content case.
3417
3418 2019-09-20 Tom Tromey <tom@tromey.com>
3419
3420 * tui/tui-layout.c (show_source_disasm_command)
3421 (show_source_or_disasm_and_command): Don't call
3422 show_source_content.
3423
3424 2019-09-20 Tom Tromey <tom@tromey.com>
3425
3426 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3427 Declare.
3428 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3429 from tui_make_status_line.
3430 (tui_locator_window::rerender): Update.
3431
3432 2019-09-20 Tom Tromey <tom@tromey.com>
3433
3434 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3435 (tui_locator_window::rerender): Update.
3436
3437 2019-09-20 Tom Tromey <tom@tromey.com>
3438
3439 * tui/tui-winsource.h (struct tui_source_window_base)
3440 <~tui_source_window_base>: Don't declare.
3441 <fullname>: Remove.
3442 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3443 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3444 member.
3445 * tui/tui-source.c (tui_source_window::set_contents): Update.
3446 (tui_source_window::location_matches_p)
3447 (tui_source_window::maybe_update): Update.
3448
3449 2019-09-20 Tom Tromey <tom@tromey.com>
3450
3451 * tui/tui-winsource.h (~tui_source_element): Remove.
3452 (tui_source_element): Update.
3453 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3454 * tui/tui-winsource.c (tui_show_source_line): Update.
3455 * tui/tui-source.c (tui_source_window::set_contents): Update.
3456 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3457
3458 2019-09-20 Tom Tromey <tom@tromey.com>
3459
3460 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3461 declare.
3462 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3463 tui_clear_source_windows_detail.
3464 * tui/tui-winsource.h (struct tui_source_window_base)
3465 <clear_detail>: Don't declare.
3466 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3467 Remove.
3468 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3469
3470 2019-09-20 Tom Tromey <tromey@adacore.com>
3471
3472 PR ada/24919:
3473 * block.c (contained_in): Fix final return value.
3474
3475 2019-09-20 Alan Modra <amodra@gmail.com>
3476
3477 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3478 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3479 (read_indirect_string_from_dwz): Use bfd accessor.
3480 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3481 * machoread.c (macho_symfile_read_all_oso): Likewise.
3482 * solib.c (solib_bfd_open): Likewise.
3483
3484 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3485
3486 * eval.c: Move declaration of overload_resolution to...
3487 * value.h: ...here.
3488
3489 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3490
3491 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3492 * arm-linux-tdep.c: Likewise.
3493 * arm-nbsd-nat.c: Likewise.
3494 * arm-tdep.h: Declare arm_apcs_32.
3495 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3496
3497 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3498
3499 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3500 * dwarf2read.h: Declare dwarf_always_disassemble.
3501
3502 2019-09-19 Tom de Vries <tdevries@suse.de>
3503
3504 PR gdb/25009
3505 * source-cache.c (source_cache::ensure): Catch exception thrown during
3506 construction of the highlighter.
3507
3508 2019-09-18 Alan Modra <amodra@gmail.com>
3509
3510 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3511 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3512 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3513 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3514 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3515 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3516 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3517 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3518 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3519 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3520 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3521 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3522 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3523 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3524 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3525 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3526 * mi/mi-interp.c: Update throughout for bfd section macro and
3527 function changes.
3528 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3529 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3530
3531 2019-09-18 Tom Tromey <tom@tromey.com>
3532
3533 * NEWS: Add entry.
3534 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3535 call rl_initialize.
3536 (tui_enable): Do not call rl_initialize.
3537
3538 2019-09-18 Christian Groessler <chris@groessler.org>
3539
3540 * alpha-linux-nat.c: Include gdbarch.h.
3541
3542 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3543
3544 * ui-file.c: Include cli/cli-style.h.
3545 (term_cli_styling): Remove cli_styling declaration.
3546
3547 2019-09-18 Alan Modra <amodra@gmail.com>
3548
3549 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3550 to bfd_asymbol_section.
3551
3552 2019-09-18 Alan Modra <amodra@gmail.com>
3553
3554 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3555 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3556 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3557
3558 2019-09-18 Alan Modra <amodra@gmail.com>
3559
3560 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3561 * spu-linux-nat.c (spu_bfd_open): Likewise.
3562
3563 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3564
3565 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3566 to bool to match definition in dwarf2read.c.
3567
3568 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3569
3570 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3571 (print_signatures): Likewise.
3572 (trust_pad_over_xvs): Likewise.
3573 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3574 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3575 * arm-linux-nat.c (arm_apcs_32): Likewise.
3576 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3577 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3578 * arm-tdep.c (arm_debug): Likewise.
3579 (arm_apcs_32): Likewise.
3580 * auto-load.c (debug_auto_load): Likewise.
3581 (auto_load_gdb_scripts): Likewise.
3582 (global_auto_load): Likewise.
3583 (auto_load_local_gdbinit): Likewise.
3584 (auto_load_local_gdbinit_loaded): Likewise.
3585 * auto-load.h (global_auto_load): Likewise.
3586 (auto_load_local_gdbinit): Likewise.
3587 (auto_load_local_gdbinit_loaded): Likewise.
3588 * breakpoint.c (disconnected_dprintf): Likewise.
3589 (breakpoint_proceeded): Likewise.
3590 (automatic_hardware_breakpoints): Likewise.
3591 (always_inserted_mode): Likewise.
3592 (target_exact_watchpoints): Likewise.
3593 (_initialize_breakpoint): Update.
3594 * breakpoint.h (target_exact_watchpoints): Change to bool.
3595 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3596 * cli/cli-cmds.c (trace_commands): Likewise.
3597 * cli/cli-cmds.h (trace_commands): Likewise.
3598 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3599 to bool*.
3600 * cli/cli-logging.c (logging_overwrite): Change to bool.
3601 (logging_redirect): Likewise.
3602 (debug_redirect): Likewise.
3603 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3604 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3605 to bool.
3606 <boolean_option_def>: Update.
3607 (struct flag_option_def): Change default type of Context to bool
3608 from int.
3609 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3610 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3611 (get_setshow_command_value_string): Likewise.
3612 * cli/cli-style.c (cli_styling): Change to bool.
3613 (source_styling): Likewise.
3614 * cli/cli-style.h (source_styling): Likewise.
3615 (cli_styling): Likewise.
3616 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3617 to bool.
3618 * command.h (var_types): Update comment.
3619 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3620 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3621 bool.
3622 (debug_compile_cplus_scopes): Likewise.
3623 * compile/compile-internal.h (compile_debug): Likewise.
3624 * compile/compile.c (compile_debug): Likewise.
3625 (struct compile_options) <raw>: Likewise.
3626 * cp-support.c (catch_demangler_crashes): Likewise.
3627 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3628 (usr_cmd_cris_dwarf2_cfi): Likewise.
3629 * csky-tdep.c (csky_debug): Likewise.
3630 * darwin-nat.c (enable_mach_exceptions): Likewise.
3631 * dcache.c (dcache_enabled_p): Likewise.
3632 * defs.h (info_verbose): Likewise.
3633 * demangle.c (demangle): Likewise.
3634 (asm_demangle): Likewise.
3635 * dwarf-index-cache.c (debug_index_cache): Likewise.
3636 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3637 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3638 * dwarf2read.c (check_physname): Likewise.
3639 (use_deprecated_index_sections): Likewise.
3640 (dwarf_always_disassemble): Likewise.
3641 * eval.c (overload_resolution): Likewise.
3642 * event-top.c (set_editing_cmd_var): Likewise.
3643 (exec_done_display_p): Likewise.
3644 * event-top.h (set_editing_cmd_var): Likewise.
3645 (exec_done_display_p): Likewise.
3646 * exec.c (write_files): Likewise.
3647 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3648 (debug_fbsd_nat): Likewise.
3649 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3650 Likewise.
3651 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3652 <backtrace_past_entry> Likewise.
3653 * gdb-demangle.h (demangle): Likewise.
3654 (asm_demangle): Likewise.
3655 * gdb_bfd.c (bfd_sharing): Likewise.
3656 * gdbcore.h (write_files): Likewise.
3657 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3658 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3659 * gdbthread.h (print_thread_events): Likewise.
3660 * gdbtypes.c (opaque_type_resolution): Likewise.
3661 (strict_type_checking): Likewise.
3662 * gnu-nat.c (gnu_debug_flag): Likewise.
3663 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3664 * guile/scm-param.c (pascm_variable): Add boolval.
3665 (add_setshow_generic): Update.
3666 (pascm_param_value): Update.
3667 (pascm_set_param_value_x): Update.
3668 * hppa-tdep.c (hppa_debug): Change to bool..
3669 * infcall.c (may_call_functions_p): Likewise.
3670 (coerce_float_to_double_p): Likewise.
3671 (unwind_on_signal_p): Likewise.
3672 (unwind_on_terminating_exception_p): Likewise.
3673 * infcmd.c (startup_with_shell): Likewise.
3674 * inferior.c (print_inferior_events): Likewise.
3675 * inferior.h (startup_with_shell): Likewise.
3676 (print_inferior_events): Likewise.
3677 * infrun.c (step_stop_if_no_debug): Likewise.
3678 (detach_fork): Likewise.
3679 (debug_displaced): Likewise.
3680 (disable_randomization): Likewise.
3681 (non_stop): Likewise.
3682 (non_stop_1): Likewise.
3683 (observer_mode): Likewise.
3684 (observer_mode_1): Likewise.
3685 (set_observer_mode): Update.
3686 (sched_multi): Change to bool.
3687 * infrun.h (debug_displaced): Likewise.
3688 (sched_multi): Likewise.
3689 (step_stop_if_no_debug): Likewise.
3690 (non_stop): Likewise.
3691 (disable_randomization): Likewise.
3692 * linux-tdep.c (use_coredump_filter): Likewise.
3693 (dump_excluded_mappings): Likewise.
3694 * linux-thread-db.c (auto_load_thread_db): Likewise.
3695 (check_thread_db_on_load): Likewise.
3696 * main.c (captured_main_1): Update.
3697 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3698 xx2_opt, boolean_opt>: Change to bool.
3699 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3700 * maint.c (maintenance_profile_p): Likewise.
3701 (per_command_time): Likewise.
3702 (per_command_space): Likewise.
3703 (per_command_symtab): Likewise.
3704 * memattr.c (inaccessible_by_default): Likewise.
3705 * mi/mi-main.c (mi_async): Likewise.
3706 (mi_async_1): Likewise.
3707 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3708 * nat/fork-inferior.h (startup_with_shell): Likewise.
3709 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3710 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3711 * nios2-tdep.c (nios2_debug): Likewise.
3712 * or1k-tdep.c (or1k_debug): Likewise.
3713 * parse.c (parser_debug): Likewise.
3714 * parser-defs.h (parser_debug): Likewise.
3715 * printcmd.c (print_symbol_filename): Likewise.
3716 * proc-api.c (procfs_trace): Likewise.
3717 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3718 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3719 (set_parameter_value): Update.
3720 (add_setshow_generic): Update.
3721 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3722 to bool*.
3723 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3724 int*.
3725 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3726 * record-btrace.c (record_btrace_target::store_registers): Update.
3727 * record-full.c (record_full_memory_query): Change to bool.
3728 (record_full_stop_at_limit): Likewise.
3729 * record-full.h (record_full_memory_query): Likewise.
3730 * remote-notif.c (notif_debug): Likewise.
3731 * remote-notif.h (notif_debug): Likewise.
3732 * remote.c (use_range_stepping): Likewise.
3733 (interrupt_on_connect): Likewise.
3734 (remote_break): Likewise.
3735 * ser-tcp.c (tcp_auto_retry): Likewise.
3736 * ser-unix.c (serial_hwflow): Likewise.
3737 * skip.c (debug_skip): Likewise.
3738 * solib-aix.c (solib_aix_debug): Likewise.
3739 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3740 (spu_auto_flush_cache_p): Likewise.
3741 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3742 Likewise.
3743 (struct info_print_options) <quiet>: Likewise.
3744 * symfile-debug.c (debug_symfile): Likewise.
3745 * symfile.c (auto_solib_add): Likewise.
3746 (separate_debug_file_debug): Likewise.
3747 * symfile.h (auto_solib_add): Likewise.
3748 (separate_debug_file_debug): Likewise.
3749 * symtab.c (basenames_may_differ): Likewise.
3750 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3751 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3752 (struct info_types_options) <quiet>: Likewise.
3753 * symtab.h (demangle): Likewise.
3754 (basenames_may_differ): Likewise.
3755 * target-dcache.c (stack_cache_enabled_1): Likewise.
3756 (code_cache_enabled_1): Likewise.
3757 * target.c (trust_readonly): Likewise.
3758 (may_write_registers): Likewise.
3759 (may_write_memory): Likewise.
3760 (may_insert_breakpoints): Likewise.
3761 (may_insert_tracepoints): Likewise.
3762 (may_insert_fast_tracepoints): Likewise.
3763 (may_stop): Likewise.
3764 (auto_connect_native_target): Likewise.
3765 (target_stop_and_wait): Update.
3766 (target_async_permitted): Change to bool.
3767 (target_async_permitted_1): Likewise.
3768 (may_write_registers_1): Likewise.
3769 (may_write_memory_1): Likewise.
3770 (may_insert_breakpoints_1): Likewise.
3771 (may_insert_tracepoints_1): Likewise.
3772 (may_insert_fast_tracepoints_1): Likewise.
3773 (may_stop_1): Likewise.
3774 * target.h (target_async_permitted): Likewise.
3775 (may_write_registers): Likewise.
3776 (may_write_memory): Likewise.
3777 (may_insert_breakpoints): Likewise.
3778 (may_insert_tracepoints): Likewise.
3779 (may_insert_fast_tracepoints): Likewise.
3780 (may_stop): Likewise.
3781 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3782 (make_thread_apply_all_options_def_group): Change argument from int*
3783 to bool*.
3784 (thread_apply_all_command): Update.
3785 (print_thread_events): Change to bool.
3786 * top.c (confirm): Likewise.
3787 (command_editing_p): Likewise.
3788 (history_expansion_p): Likewise.
3789 (write_history_p): Likewise.
3790 (info_verbose): Likewise.
3791 * top.h (confirm): Likewise.
3792 (history_expansion_p): Likewise.
3793 * tracepoint.c (disconnected_tracing): Likewise.
3794 (circular_trace_buffer): Likewise.
3795 * typeprint.c (print_methods): Likewise.
3796 (print_typedefs): Likewise.
3797 * utils.c (debug_timestamp): Likewise.
3798 (sevenbit_strings): Likewise.
3799 (pagination_enabled): Likewise.
3800 * utils.h (sevenbit_strings): Likewise.
3801 (pagination_enabled): Likewise.
3802 * valops.c (overload_resolution): Likewise.
3803 * valprint.h (struct value_print_options) <prettyformat_arrays,
3804 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3805 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3806 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3807 Likewise.
3808 * windows-nat.c (new_console): Likewise.
3809 (cygwin_exceptions): Likewise.
3810 (new_group): Likewise.
3811 (debug_exec): Likewise.
3812 (debug_events): Likewise.
3813 (debug_memory): Likewise.
3814 (debug_exceptions): Likewise.
3815 (useshell): Likewise.
3816 * windows-tdep.c (maint_display_all_tib): Likewise.
3817 * xml-support.c (debug_xml): Likewise.
3818
3819 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3820
3821 * source.c (prepare_path_for_appending): New function.
3822 (openp): Make use of new function.
3823 (find_and_open_source): Search for the compilation directory and
3824 source file as a relative path beneath the directory search path.
3825
3826 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3827
3828 * source-cache.c (source_cache::get_line_charpos): Catch
3829 exceptions and return false, this matches the behaviour documented
3830 in the header file.
3831
3832 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3833
3834 * ada-tasks.c (info_task): Remove quoting of the task's name.
3835
3836 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3837
3838 * symfile.c (auto_solib_add): Replace comment with a reference
3839 to the header file.
3840
3841 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3842
3843 * NEWS: Mention that gdb can now be compiled with Python 3
3844 on Windows.
3845
3846 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3847
3848 * maint.c (maint_print_section_data::maint_print_section_data):
3849 Force use of 'float log10 (float)' by casting the argument to
3850 float.
3851
3852 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3853
3854 * maint.c: Add 'cmath' include.
3855 (struct maint_print_section_data): New structure.
3856 (print_section_index): New function.
3857 (print_bfd_section_info): Add header comment, small whitespace
3858 cleanup, and update to call new print_section_index function.
3859 (print_objfile_section_info): Likewise.
3860 (maint_obj_section_from_bfd_section): New function.
3861 (print_bfd_section_info_maybe_relocated): New function.
3862 (maintenance_info_sections): Add header comment, always use
3863 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3864
3865 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3866
3867 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3868 inner scope, add check that the objfile has psymtabs before
3869 checking psymtabs_addrmap.
3870 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3871
3872 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3873
3874 * NEWS: Announce that Ada task names are now shown at more places,
3875 and between quotes (except in info task output).
3876 * gdb/ada-tasks.c (task_to_str): New function.
3877 (display_current_task_id): Call task_to_str.
3878 (task_command_1): Likewise.
3879 (print_ada_task_info): In non-mi mode, Properly align headers and data
3880 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3881
3882 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3883
3884 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3885 prstatus.pr_lwp.pr_info instead of making it up.
3886
3887 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3888
3889 * auto-load.c (auto_load_expand_dir_vars): Update.
3890 * defs.h (gdb_datadir): Change to std::string.
3891 (python_libdir): Likewise.
3892 (relocate_gdb_directory): Change return type to std::string.
3893 * guile/guile.c (gdbscm_data_directory): Update.
3894 (initialize_scheme_side): Update.
3895 * jit.c (jit_reader_dir): Change to std::string.
3896 (jit_reader_load_command): Update.
3897 * main.c (gdb_datadir): Change to std::string.
3898 (python_libdir): Likewise.
3899 (set_gdb_data_directory): Update.
3900 (relocate_path): Change to return std::string.
3901 (relocate_gdb_directory): Change to return std::string.
3902 (relocate_gdbinit_path_maybe_in_datadir): Update.
3903 (captured_main_1): Update.
3904 * python/python.c (do_start_initialization): Update.
3905 * top.c (show_gdb_datadir): Update.
3906 * xml-syscall.c (xml_init_syscalls_info): Update.
3907 (init_syscalls_info): Update.
3908
3909 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3910
3911 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3912 out of get_init_files.
3913 (get_init_files): Update.
3914
3915 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3916
3917 * main.c (get_init_files): Change to use std::string.
3918 (captured_main_1): Update.
3919 (print_gdb_help): Update.
3920
3921 2019-09-11 Ali Tamur <tamur@google.com>
3922
3923 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3924 implementation.
3925
3926 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3927
3928 * dbxread.c (read_dbx_symtab): Update.
3929 * dwarf2read.c (load_partial_dies): Update.
3930 * mdebugread.c (parse_partial_symbols): Update.
3931 (handle_psymbol_enumerators): Update.
3932 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3933 * psymtab.c (add_psymbol_to_bcache): Likewise.
3934 (add_psymbol_to_list): Likewise.
3935 * symtab.c (symbol_set_names): Likewise.
3936 * symtab.h (symbol_set_names): Likewise.
3937 * xcoffread.c (scan_xcoff_symtab): Update.
3938
3939 2019-09-11 Tom Tromey <tom@tromey.com>
3940
3941 * symfile-mem.c (symbol_file_add_from_memory): Use
3942 bfd_set_filename.
3943 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3944 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3945
3946 2019-09-10 Tom Tromey <tromey@adacore.com>
3947
3948 * dwarf-index-write.c (write_psymbols): Extend error message.
3949 (debug_names::insert): Add Ada code.
3950 (debug_names::write_psymbols): Remove Ada check.
3951 (debug_names) <m_string_obstack>: New member.
3952 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3953 (gdb_index_symbol_name_matcher::matches): Remove.
3954 (mapped_index_base::find_name_components_bounds): Add "lang"
3955 parameter.
3956 (mapped_index_base::build_name_components): Also split names
3957 according to Ada syntax.
3958 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3959 type of "match_callback".
3960 (check_match, check_find_bounds_finds)
3961 (dw2_expand_symtabs_matching): Update.
3962 (dw2_debug_names_iterator): Add new constructor.
3963 (dw2_debug_names_map_matching_symbols): New function.
3964 (dw2_debug_names_expand_symtabs_matching): Update.
3965 (dwarf2_debug_names_functions): Use
3966 dw2_debug_names_map_matching_symbols.
3967
3968 2019-09-10 Tom Tromey <tromey@adacore.com>
3969
3970 * dwarf2read.c (dw2_get_file_names_reader): Add the
3971 CU's file name to the results.
3972
3973 2019-09-10 Tom Tromey <tromey@adacore.com>
3974
3975 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3976 map_matching_symbols. Update.
3977 * dwarf2read.c (dw2_map_matching_symbols): Update.
3978 * psymtab.c (match_partial_symbol): Change type; update.
3979 (psym_map_matching_symbols): Likewise.
3980 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3981 type; update.
3982 * symfile.h (struct quick_symbol_functions)
3983 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3984 Remove "match".
3985
3986 2019-09-10 Tom Tromey <tromey@adacore.com>
3987
3988 * psymtab.c (map_block): Remove.
3989 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3990 * symtab.c (iterate_over_symbols_terminated): New function.
3991 * symtab.c (iterate_over_symbols_terminated): Declare.
3992
3993 2019-09-10 Tom Tromey <tromey@adacore.com>
3994
3995 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3996 * language.h (struct language_defn) <la_iterate_over_symbols>:
3997 Return bool.
3998 * symtab.c (iterate_over_symbols): Return bool.
3999 * symtab.h (iterate_over_symbols): Return bool.
4000
4001 2019-09-10 Tom Tromey <tromey@adacore.com>
4002
4003 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4004 (add_nonlocal_symbols): Update.
4005 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4006 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4007 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4008 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4009 Change type of "callback". Remove "data".
4010
4011
4012 2019-09-09 Ali Tamur <tamur@google.com>
4013
4014 * dwarf2read.c (comp_unit_head): Update comment.
4015 (dwarf2_dwo_name): New function declaration.
4016 (dwarf_unit_type_name): New function declaration.
4017 (read_comp_unit_head): Add support for new compilation units,
4018 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4019 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4020 (currently named as "signature") in their header. Also clarify error
4021 messages.
4022 (lookup_dwo_id): New function. Returns the dwo id of the given
4023 compile unit.
4024 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4025 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4026 functions.
4027 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4028 (dwarf2_dwo_name): Get the dwo name if present.
4029 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4030 purposes.
4031
4032 2019-09-09 Tom Tromey <tom@tromey.com>
4033
4034 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4035
4036 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4037
4038 * python/python.c (do_start_initialization): Make progname_copy static,
4039 to avoid a leak report.
4040
4041 2019-09-08 Tom Tromey <tom@tromey.com>
4042
4043 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4044
4045 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4046
4047 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4048 Change type to gdb::optional<block_enum>.
4049 (dw2_symtab_iter_init): Change block_index parameter type
4050 to gdb::optional<block_enum>.
4051 (dw2_lookup_symbol): Change block_index parameter
4052 type to block_enum.c
4053 (dw2_debug_names_lookup_symbol): Likewise.
4054 * psymtab.c (psym_lookup_symbol): Likewise.
4055 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4056 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4057 Likewise.
4058
4059 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4060
4061 * defs.h (relocate_gdb_directory): Change int to bool in
4062 signature and rename flag to relocatable.
4063 * main.c (relocate_path): Likewise.
4064 (relocate_gdb_directory): Likewise.
4065
4066 2019-09-06 Alan Modra <amodra@gmail.com>
4067
4068 * coffread.c (coff_symfile_read): Constify filename variable.
4069 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4070 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4071 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4072 * solib.c (reload_shared_libraries_1): Likewise.
4073 * symfile.c (reread_symbols): Likewise.
4074 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4075 * solib-darwin.c (darwin_bfd_open): Likewise.
4076 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4077
4078 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4079
4080 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4081 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4082
4083 2019-09-03 Tom Tromey <tromey@adacore.com>
4084
4085 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4086 types.
4087 (has_negatives): Unbias a range type bound.
4088 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4089 * gdbtypes.c (operator==): Handle new field.
4090 (create_range_type): Add "bias" parameter.
4091 (create_static_range_type, resolve_dynamic_range): Update.
4092 * gdbtypes.h (struct range_bounds) <bias>: New member.
4093 (create_range_type): Add bias parameter.
4094 * printcmd.c (print_scalar_formatted): Unbias range types.
4095 * value.c (unpack_long): Unbias range types.
4096 (pack_long): Bias range types.
4097
4098 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4099
4100 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4101 probe arguments.
4102
4103 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4104
4105 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4106 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4107 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4108 (compile_probe_arg): Likewise.
4109 * probe.h (get_argument_count): Likewise.
4110 * solib-svr4.c (solib_event_probe_action): Likewise.
4111 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4112
4113 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4114
4115 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4116 code to here...
4117 (svr4_create_solib_event_breakpoints): ...from here.
4118
4119 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4120
4121 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4122 suffix from warning message.
4123
4124 2019-08-30 Tom Tromey <tom@tromey.com>
4125
4126 * tui/tui-winsource.h (struct tui_source_window_base)
4127 <refresh_all>: Don't declare.
4128 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4129 Remove.
4130 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4131 tui_show_locator_content.
4132 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4133 declare.
4134 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4135 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4136 declare.
4137
4138 2019-08-30 Tom Tromey <tom@tromey.com>
4139
4140 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4141
4142 2019-08-30 Tom Tromey <tom@tromey.com>
4143
4144 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4145 Remove unnecessary forward declarations.
4146
4147 2019-08-30 Tom Tromey <tom@tromey.com>
4148
4149 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4150 rerender.
4151 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4152 tui_show_locator_content.
4153
4154 2019-08-30 Tom Tromey <tom@tromey.com>
4155
4156 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4157 (tui_locator_window::rerender): Rewrite using body of previous
4158 tui_show_locator_content.
4159
4160 2019-08-30 Tom Tromey <tom@tromey.com>
4161
4162 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4163 set_locator_fullname>: New methods.
4164 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4165 Rename from tui_set_locator_fullname.
4166 (tui_locator_window::set_locator_info): Rename from
4167 tui_set_locator_info. Return bool.
4168 (tui_update_locator_fullname, tui_show_frame_info): Update.
4169
4170 2019-08-30 Tom Tromey <tom@tromey.com>
4171
4172 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4173
4174 2019-08-30 Tom Tromey <tom@tromey.com>
4175
4176 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4177 call touchwin.
4178
4179 2019-08-30 Tom Tromey <tom@tromey.com>
4180
4181 * tui/tui-wingeneral.c (box_win): Assume win_info and
4182 win_info->handle cannot be NULL.
4183
4184 2019-08-30 Tom Tromey <tom@tromey.com>
4185
4186 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4187 refresh_window>: Declare.
4188 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4189 resize.
4190 (tui_data_item_window::rerender): Rename from
4191 tui_display_register.
4192 (tui_data_item_window::refresh_window): New method.
4193 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4194 no-op.
4195
4196 2019-08-30 Tom Tromey <tom@tromey.com>
4197
4198 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4199 regs_column_count, current_group>: Move later. Now private.
4200 <get_current_group>: New method.
4201 * tui/tui-regs.c (tui_reg_command): Update.
4202 * tui/tui-layout.c (tui_set_layout): Update.
4203
4204 2019-08-30 Tom Tromey <tom@tromey.com>
4205
4206 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4207 (tui_data_window::rerender): Don't call
4208 check_and_display_highlight_if_needed.
4209 (tui_data_window::refresh_all): Remove call to
4210 erase_data_content.
4211
4212 2019-08-30 Tom Tromey <tom@tromey.com>
4213
4214 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4215 (tui_data_window::display_registers_from)
4216 (tui_data_window::display_reg_element_at_line)
4217 (tui_data_window::display_registers_from_line): Remove checks of
4218 "empty".
4219
4220 2019-08-30 Tom Tromey <tom@tromey.com>
4221
4222 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4223 Don't declare.
4224 * tui/tui-regs.c (tui_data_window::show_registers): Call
4225 rerender.
4226 (tui_data_window::rerender): Rename from display_all_data.
4227 (tui_data_window::rerender): Remove old implementation.
4228
4229 2019-08-30 Tom Tromey <tom@tromey.com>
4230
4231 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4232 text.
4233 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4234
4235 2019-08-29 Bernhard Wodok <barto@gmx.net>
4236 Sergio Durigan Junior <sergiodj@redhat.com>
4237
4238 PR win32/24284
4239 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4240
4241 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4242
4243 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4244 when searching for types.
4245
4246 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4247
4248 * f-lang.c (f_language_defn): Use f_print_typedef.
4249 * f-lang.h (f_print_typedef): Declare.
4250 * f-typeprint.c (f_print_typedef): Define.
4251
4252 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4253
4254 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4255
4256 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4257
4258 * cli/cli-utils.c (info_print_options_defs): Delete.
4259 (make_info_print_options_def_group): Delete.
4260 (extract_info_print_options): Delete.
4261 (info_print_command_completer): Delete.
4262 (info_print_args_help): Add extra parameter, and optionally
4263 include text about -n flag.
4264 * cli/cli-utils.h (struct info_print_options): Delete.
4265 (extract_info_print_options): Delete declaration.
4266 (info_print_command_completer): Delete declaration.
4267 (info_print_args_help): Add extra parameter, extend header
4268 comment.
4269 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4270 search_symbols.
4271 * stack.c (struct info_print_options): New type.
4272 (info_print_options_defs): New file scoped variable.
4273 (make_info_print_options_def_group): New static function.
4274 (info_print_command_completer): New static function.
4275 (info_locals_command): Update to use new local functions.
4276 (info_args_command): Likewise.
4277 (_initialize_stack): Add extra parameter to calls to
4278 info_print_args_help.
4279 * symtab.c (search_symbols): Add extra parameter, use this to
4280 possibly excluse non-debug symbols.
4281 (symtab_symbol_info): Add extra parameter, which is passed on to
4282 search_symbols.
4283 (struct info_print_options): New type.
4284 (info_print_options_defs): New file scoped variable.
4285 (make_info_print_options_def_group): New static function.
4286 (info_print_command_completer): New static function.
4287 (info_variables_command): Update to use local functions, and pass
4288 extra parameter through to symtab_symbol_info.
4289 (info_functions_command): Likewise.
4290 (info_types_command): Pass additional argument through to
4291 symtab_symbol_info.
4292 (rbreak_command): Pass extra argument to search_symbols.
4293 (_initialize_symtab): Add extra arguments for calls to
4294 info_print_args_help, and update help text for 'info variables',
4295 'whereis', and 'info functions' commands.
4296 * symtab.h (search_symbols): Add extra argument to declaration.
4297 * NEWS: Mention new flags.
4298
4299 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4300
4301 * symtab.c (lookup_static_symbol): Call the new function (and move
4302 it down to be next to lookup_global_symbol).
4303 (struct global_sym_lookup_data): Add block_enum member and rename to...
4304 (struct global_or_static_sym_lookup_data): ...this.
4305 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4306 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4307 (lookup_symbol_global_or_static_iterator_cb): ...this.
4308 (lookup_global_or_static_symbol): New function.
4309 (lookup_global_symbol): Call new function.
4310
4311 2019-08-26 Tom de Vries <tdevries@suse.de>
4312
4313 PR c++/24852
4314 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4315 when pc_probe.prob == NULL.
4316
4317 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4318
4319 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4320 variable symbol_linkage to symbol_linkage_.
4321
4322 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4323
4324 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4325 represent whether the symbol is static, dynamic, or we don't
4326 know.
4327
4328 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4329
4330 * gdb/rx-tdep.c (rx_register_names): New.
4331 (rx_register_name): Delete.
4332 (rx_psw_type): Delete.
4333 (rx_fpsw_type): Delete.
4334 (rx_register_type): Delete.
4335 (rx_gdbarch_init): Convert target-descriptions.
4336 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4337 * gdb/features/Makefile: Add rx.xml.
4338 * gdb/features/rx.xml: New.
4339 * gdb/features/rx.c: Generated.
4340 * gdb/NEWS: Mention target description support.
4341
4342 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4343
4344 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4345 *slot_ptr.
4346
4347 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4348
4349 * configure.ac: Don't check for 'dlfcn.h' (moved to
4350 gdbsupport/common.m4).
4351 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4352 'gdbsupport/'.
4353 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4354 * compile/compile-c-support.c: Include
4355 'gdbsupport/gdb-dlfcn.h'.
4356 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4357 * gdb-dlfcn.c: Move to...
4358 * gdbsupport/gdb-dlfcn.c: ... here.
4359 * gdb-dlfcn.h: Move to...
4360 * gdbsupport/gdb-dlfcn.h: ... here.
4361
4362 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4363
4364 * nios2-tdep.c (struct reg_value): Improve comments. Make
4365 the offset field signed.
4366
4367 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4368
4369 * python/lib/gdb/__init__.py (_execute_file): New function.
4370 * python/python.c (python_run_simple_file): Call gdb._execute_file
4371 on Windows.
4372
4373 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4374
4375 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4376 all uses as this was never set to anything but a zero value.
4377
4378 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4379
4380 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4381
4382 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4383
4384 * tui/tui-data.h (tui_gen_win_info): Add an =default
4385 move constructor, required by some GCC versions.
4386
4387 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4388
4389 * go32-nat.c (go32_sysinfo): Add hygon_p.
4390
4391 2019-08-20 Tom Tromey <tom@tromey.com>
4392
4393 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4394 line_from_reg_element_no, first_reg_element_no_inline,
4395 display_all_data, delete_data_content_windows,
4396 erase_data_content>: Now private.
4397
4398 2019-08-20 Tom Tromey <tom@tromey.com>
4399
4400 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4401 (tui_unhighlight_win, tui_highlight_win)
4402 (tui_win_info::make_window): Update.
4403 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4404
4405 2019-08-20 Tom Tromey <tom@tromey.com>
4406
4407 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4408 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4409 (MAX_PID_WIDTH): Move to tui-stack.c.
4410 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4411 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4412 (MAX_PID_WIDTH): Move from tui-data.h.
4413
4414 2019-08-20 Tom Tromey <tom@tromey.com>
4415
4416 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4417 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4418 (box_win): Update.
4419 (tui_gen_win_info::make_window): Rename from tui_make_window.
4420 (tui_win_info::make_window): New method.
4421 (tui_gen_win_info::make_visible): Update.
4422 * tui/tui-source.c (tui_source_window::set_contents): Update.
4423 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4424 (tui_data_window::display_registers_from): Update.
4425 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4426 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4427 Declare.
4428 <can_box>: Remove.
4429 <title>: Remove.
4430 (struct tui_win_info) <make_window>: Declare.
4431 <can_box>: Now virtual.
4432 <title>: New member.
4433 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4434 * tui/tui-command.c (tui_cmd_window::resize): Update.
4435
4436 2019-08-20 Tom Tromey <tom@tromey.com>
4437
4438 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4439 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4440 (tui_data_window::check_register_values): Update.
4441
4442 2019-08-20 Tom Tromey <tom@tromey.com>
4443
4444 * tui/tui-regs.h (struct tui_data_window): Use
4445 DISABLE_COPY_AND_ASSIGN.
4446 <regs_content>: Change type, removing unique_ptr.
4447 <tui_data_window>: Add move constructor.
4448 * tui/tui-regs.c (tui_data_window::show_registers)
4449 (tui_data_window::show_register_group)
4450 (tui_data_window::display_registers_from)
4451 (tui_data_window::display_registers_from)
4452 (tui_data_window::first_data_item_displayed)
4453 (tui_data_window::delete_data_content_windows)
4454 (tui_data_window::rerender, tui_data_window::refresh_window)
4455 (tui_data_window::check_register_values): Update.
4456
4457 2019-08-20 Tom Tromey <tom@tromey.com>
4458
4459 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4460 show_register_group>: Declare.
4461 (tui_show_register_group): Don't declare.
4462 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4463 tui_show_registers.
4464 (tui_data_window::show_register_group): Rename from
4465 tui_show_register_group.
4466 (tui_data_window::check_register_values, tui_reg_command):
4467 Update.
4468 * tui/tui-layout.c (tui_set_layout): Update.
4469
4470 2019-08-20 Tom Tromey <tom@tromey.com>
4471
4472 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4473 Declare.
4474 (tui_check_register_values): Don't declare.
4475 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4476 from tui_check_register_values.
4477 * tui/tui-hooks.c (tui_register_changed): Update.
4478
4479 2019-08-20 Tom Tromey <tom@tromey.com>
4480
4481 * tui/tui-regs.c (tui_reg_layout): Move later.
4482 (tui_show_registers): Don't enable TUI mode or change layout.
4483
4484 2019-08-20 Tom Tromey <tom@tromey.com>
4485
4486 * tui/tui-regs.h (struct tui_data_item_window)
4487 <~tui_data_item_window>: Remove.
4488 <content>: Now a unique_xmalloc_ptr.
4489 * tui/tui-regs.c (tui_register_format): Return a
4490 unique_xmalloc_ptr.
4491 (tui_get_register): Update.
4492 (~tui_data_item_window): Remove.
4493 (tui_data_window::display_registers_from, tui_display_register):
4494 Update.
4495 * tui/tui-io.h (tui_expand_tabs): Update.
4496 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4497 Remove "col" parameter.
4498
4499 2019-08-20 Tom Tromey <tom@tromey.com>
4500
4501 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4502 field.
4503 * tui/tui-regs.c (~tui_data_item_window): Update.
4504
4505 2019-08-20 Tom Tromey <tom@tromey.com>
4506
4507 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4508 earlier.
4509
4510 2019-08-20 Tom Tromey <tom@tromey.com>
4511
4512 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4513
4514 2019-08-20 Tom Tromey <tom@tromey.com>
4515
4516 * tui/tui-source.h (struct tui_source_window): Update.
4517 * tui/tui-regs.c (tui_show_registers): Update.
4518 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4519 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4520 (NO_REGS_STRING): Remove defines.
4521
4522 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4523
4524 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4525 unnecessary thread walk if remote doesn't support the packet.
4526
4527 2019-08-19 Tom Tromey <tromey@adacore.com>
4528
4529 * python/py-value.c (value_has_field): Fix indentation.
4530
4531 2019-08-19 Tom Tromey <tromey@adacore.com>
4532
4533 * printcmd.c (do_one_display, info_display_command): Update.
4534 * block.h (contained_in): Return bool. Add allow_nested
4535 parameter.
4536 * block.c (contained_in): Return bool. Add allow_nested
4537 parameter.
4538
4539 2019-08-19 Tom Tromey <tom@tromey.com>
4540
4541 * configure: Rebuild.
4542 * configure.ac: Disallow the combination of -static-libstdc++ and
4543 source highlight.
4544 * source-cache.c (get_language_name): Handle rust.
4545 (source_cache::get_source_lines): Ignore highlighting exceptions.
4546
4547 2019-08-16 Tom Tromey <tom@tromey.com>
4548
4549 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4550 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4551 (struct tui_source_window_base) <make_visible, refresh_window,
4552 resize>: Remove methods.
4553 <execution_info>: Remove field.
4554 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4555 (tui_show_source_line, tui_source_window_base)
4556 (~tui_source_window_base): Update.
4557 (tui_source_window_base::resize)
4558 (tui_source_window_base::make_visible)
4559 (tui_source_window_base::refresh_window): Remove.
4560 (tui_source_window_base::update_exec_info): Update.
4561 * tui/tui-source.c (tui_source_window::set_contents): Update.
4562 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4563
4564 2019-08-16 Tom Tromey <tom@tromey.com>
4565
4566 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4567 deprecated_query_hook.
4568
4569 2019-08-16 Tom Tromey <tom@tromey.com>
4570
4571 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4572 (tui_update_source_windows_with_line): Update.
4573 * tui/tui-source.h (struct tui_source_window)
4574 <show_symtab_source>: Declare.
4575 (tui_show_symtab_source): Don't declare.
4576 * tui/tui-source.c (tui_show_symtab_source): Rename from
4577 tui_show_symtab_source.
4578
4579 2019-08-16 Tom Tromey <tom@tromey.com>
4580
4581 * tui/tui-winsource.h (struct tui_source_window_base)
4582 <set_contents>: Declare.
4583 * tui/tui-winsource.c
4584 (tui_source_window_base::update_source_window_as_is): Update.
4585 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4586 Declare.
4587 (tui_set_source_content): Don't declare.
4588 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4589 tui_set_source_content.
4590 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4591 Declare.
4592 (tui_set_disassem_content): Don't declare.
4593 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4594 tui_set_disassem_content.
4595
4596 2019-08-16 Tom Tromey <tom@tromey.com>
4597
4598 * tui/tui-winsource.h (struct tui_source_window_base)
4599 <update_breakpoint_info>: Declare.
4600 (tui_update_breakpoint_info): Don't declare.
4601 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4602 (tui_update_all_breakpoint_info): Update.
4603 (tui_source_window_base::update_breakpoint_info): Rename from
4604 tui_update_breakpoint_info.
4605 (tui_source_window_base::update_exec_info): Update.
4606
4607 2019-08-16 Tom Tromey <tom@tromey.com>
4608
4609 * tui/tui-winsource.h (struct tui_source_window_base)
4610 <update_source_window>: Declare.
4611 (tui_update_source_window): Don't declare.
4612 * tui/tui-winsource.c
4613 (tui_source_window_base::update_source_window): Rename from
4614 tui_update_source_window.
4615 (tui_source_window_base::rerender): Update.
4616 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4617 * tui/tui-disasm.c (tui_show_disassem)
4618 (tui_show_disassem_and_update_source)
4619 (tui_disasm_window::maybe_update): Update.
4620
4621 2019-08-16 Tom Tromey <tom@tromey.com>
4622
4623 * tui/tui-winsource.h (struct tui_source_window_base)
4624 <update_source_window_as_is>: Declare.
4625 (tui_update_source_window_as_is): Don't declare.
4626 * tui/tui-winsource.c (tui_update_source_window): Update
4627 (tui_source_window_base::update_source_window_as_is): Rename from
4628 tui_update_source_window_as_is.
4629 (tui_source_window_base::refill): Update.
4630 * tui/tui-source.c (tui_show_symtab_source): Update.
4631 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4632 Update.
4633
4634 2019-08-16 Tom Tromey <tom@tromey.com>
4635
4636 * tui/tui-winsource.h (tui_update_source_window)
4637 (tui_update_source_window_as_is): Remove "noerror" parameter.
4638 * tui/tui-winsource.c (tui_update_source_window)
4639 (tui_update_source_window_as_is): Remove "noerror" parameter.
4640 (tui_update_source_windows_with_addr)
4641 (tui_update_source_windows_with_line)
4642 (tui_source_window_base::rerender)
4643 (tui_source_window_base::refill): Update.
4644 * tui/tui-source.h (tui_set_source_content)
4645 (tui_show_symtab_source): Remove "noerror" parameter.
4646 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4647 parameter.
4648 (tui_show_symtab_source): Likewise.
4649 (tui_source_window::maybe_update): Update.
4650 * tui/tui-disasm.c (tui_show_disassem)
4651 (tui_show_disassem_and_update_source)
4652 (tui_disasm_window::do_scroll_vertical)
4653 (tui_disasm_window::maybe_update): Update.
4654
4655 2019-08-16 Tom Tromey <tom@tromey.com>
4656
4657 * tui/tui.c (tui_is_window_visible): Update.
4658 * tui/tui-wingeneral.c (tui_make_window)
4659 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4660 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4661 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4662 (tui_set_win_height_command, parse_scrolling_args): Update.
4663 * tui/tui-source.c (tui_source_window::style_changed): Update.
4664 * tui/tui-regs.c (tui_show_registers)
4665 (tui_data_window::first_data_item_displayed)
4666 (tui_data_window::delete_data_content_windows)
4667 (tui_check_register_values, tui_reg_command): Update.
4668 * tui/tui-disasm.c (tui_show_disassem): Update.
4669 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4670 method.
4671 <is_visible>: Remove field.
4672 * tui/tui-data.c (tui_next_win, tui_prev_win)
4673 (tui_delete_invisible_windows): Update.
4674
4675 2019-08-16 Tom Tromey <tom@tromey.com>
4676
4677 * tui/tui-winsource.h (struct tui_source_window_base)
4678 <m_has_locator>: Remove.
4679 * tui/tui-layout.c (show_source_disasm_command, show_data)
4680 (show_source_or_disasm_and_command): Update.
4681
4682 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4683
4684 * NEWS (Other MI changes): New subsection.
4685 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4686 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4687 * arch-utils.c (default_get_pc_address_flags): New function.
4688 * arch-utils.h (default_get_pc_address_flags): New declaration.
4689 * gdbarch.sh: Add get_pc_address_flags.
4690 * gdbarch.c: Regenerate.
4691 * gdbarch.h: Likewise.
4692 * stack.c (print_pc): New function.
4693 (print_frame_info) (print_frame): Call print_pc.
4694
4695 2019-08-16 Tom de Vries <tdevries@suse.de>
4696
4697 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4698 print_objfile_section_info.
4699
4700 2019-08-15 Tom Tromey <tom@tromey.com>
4701
4702 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4703 calling update_cmdwin_start_line.
4704 * tui/tui-winsource.h (struct tui_source_window_base)
4705 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4706 <rerender>: Declare.
4707 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4708 Call rerender.
4709 (tui_source_window_base::set_new_height): Remove.
4710 (tui_source_window_base::rerender): Rename from
4711 do_make_visible_with_new_height.
4712 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4713 resize method.
4714 (tui_win_info::make_invisible_and_set_new_height)
4715 (tui_win_info::make_visible_with_new_height): Remove.
4716 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4717 Declare.
4718 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4719 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4720 do_make_visible_with_new_height>: Don't declare.
4721 <rerender>: Declare.
4722 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4723 set_new_height.
4724 (tui_data_window::do_make_visible_with_new_height): Remove.
4725 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4726 call tui_show_locator_content.
4727 (tui_gen_win_info::resize): Call rerender.
4728 (show_source_or_disasm_and_command): Don't call
4729 tui_show_locator_content.
4730 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4731 method.
4732 (struct tui_win_info) <rerender>: Declare.
4733 <set_new_height, make_invisible_and_set_new_height,
4734 make_visible_with_new_height>: Don't declare.
4735 * tui/tui-data.c (tui_win_list::rerender): New method.
4736 * tui/tui-command.h (struct tui_cmd_window)
4737 <do_make_visible_with_new_height>: Don't declare.
4738 * tui/tui-command.c
4739 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4740
4741 2019-08-15 Tom Tromey <tromey@adacore.com>
4742
4743 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4744 * ada-lang.c (ada_enum_name): Likewise.
4745
4746 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4747
4748 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4749 leading underscore.
4750 (GdbOutputErrorFile): Likewise.
4751 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4752 accordingly.
4753 (execute_unwinders): Rename to have a leading underscore.
4754 (auto_load_packages): Likewise.
4755 (global scope): Adjust call to auto_load_packages accordingly.
4756 (GdbSetPythonDirectory): Likewise.
4757 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4758 instead of execute_unwinders.
4759
4760 2019-08-15 Tom Tromey <tom@tromey.com>
4761
4762 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4763 (show_data): Don't change window visibility.
4764 (tui_gen_win_info::resize): Remove special case for command
4765 window. Use wresize, when available.
4766 (show_source_or_disasm_and_command): Don't change window
4767 visibility.
4768 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4769 <make_visible>: New method.
4770 * tui/tui-command.c (tui_cmd_window::resize): New method.
4771
4772 2019-08-15 Tom Tromey <tom@tromey.com>
4773
4774 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4775 (struct tui_source_windows): New.
4776 * tui/tui-winsource.c (tui_display_main): Update.
4777 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4778 (new_height_ok, parse_scrolling_args): Update.
4779 * tui/tui-layout.c (show_layout, show_data): Update.
4780 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4781 (tui_add_to_source_windows): Don't declare.
4782 * tui/tui-data.c (source_windows, tui_source_windows)
4783 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4784
4785 2019-08-15 Tom Tromey <tom@tromey.com>
4786
4787 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4788 Rename from reset.
4789 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4790 * tui/tui-layout.c (show_source_disasm_command, show_data):
4791 Update.
4792 (tui_gen_win_info::resize): Rename.
4793 (show_source_or_disasm_and_command): Update.
4794 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4795 reset.
4796
4797 2019-08-15 Tom Tromey <tom@tromey.com>
4798
4799 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4800 * tui/tui-interp.c (tui_interp::init): Don't call
4801 tui_initialize_static_data.
4802 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4803
4804 2019-08-15 Tom Tromey <tom@tromey.com>
4805
4806 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4807 examine tui_win_list.
4808
4809 2019-08-15 Tom Tromey <tom@tromey.com>
4810
4811 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4812 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4813 tui_clear_source_content.
4814 (tui_clear_source_content): Remove.
4815 (tui_source_window_base::do_erase_source_content): Hoist call to
4816 content.clear().
4817 * tui/tui-stack.c (tui_show_frame_info): Don't call
4818 tui_clear_source_content.
4819
4820 2019-08-15 Tom Tromey <tom@tromey.com>
4821
4822 * tui/tui-winsource.h (struct tui_source_window_base)
4823 <do_erase_source_content>: New method.
4824 <erase_source_content>: New method.
4825 (tui_erase_source_content): Don't declare.
4826 * tui/tui-winsource.c (tui_clear_source_content): Update.
4827 (tui_source_window_base::do_erase_source_content): Rename from
4828 tui_erase_source_content.
4829 (tui_source_window_base::show_source_content): Update.
4830 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4831 * tui/tui-source.h (struct tui_source_window)
4832 <erase_source_content>: New method.
4833 * tui/tui-disasm.h (struct tui_disasm_window)
4834 <erase_source_content>: New method.
4835
4836 2019-08-15 Tom Tromey <tom@tromey.com>
4837
4838 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4839 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4840 constructor.
4841 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4842 * tui/tui-source.c (tui_set_source_content): Update.
4843 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4844
4845 2019-08-15 Tom Tromey <tom@tromey.com>
4846
4847 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4848 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4849 tui-source.c.
4850 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4851 Declare.
4852 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4853 method.
4854 (tui_source_window::maybe_update): Update.
4855
4856 2019-08-15 Tom Tromey <tom@tromey.com>
4857
4858 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4859 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4860 tui-disasm.c.
4861 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4862 Declare.
4863 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4864 method.
4865 (tui_disasm_window::maybe_update): Update.
4866
4867 2019-08-15 Tom Tromey <tom@tromey.com>
4868
4869 * tui/tui-winsource.h (struct tui_source_window_base)
4870 <maybe_update>: Declare.
4871 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4872 method.
4873 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4874 Declare.
4875 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4876 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4877 Declare.
4878 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4879
4880 2019-08-15 Tom Tromey <tom@tromey.com>
4881
4882 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4883
4884 2019-08-15 Tom Tromey <tom@tromey.com>
4885
4886 * tui/tui-wingeneral.c: Include tui-stack.h.
4887 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4888 (struct tui_locator_window): Move from tui-data.h.
4889 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4890 (tui_initialize_static_data): Move from tui-data.c.
4891 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4892 (struct tui_locator_window): Move to tui-stack.c.
4893 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4894 (tui_initialize_static_data): Move to tui-stack.c.
4895
4896 2019-08-15 Tom Tromey <tom@tromey.com>
4897
4898 * tui/tui-layout.c (show_source_disasm_command)
4899 (show_source_or_disasm_and_command): Use make_visible method, not
4900 tui_make_window.
4901 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4902 Remove.
4903
4904 2019-08-15 Tom Tromey <tom@tromey.com>
4905
4906 * tui/tui-wingeneral.h (tui_make_window): Update.
4907 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4908 parameter.
4909 (tui_gen_win_info::make_visible): Update.
4910 * tui/tui-regs.c (tui_data_window::display_registers_from):
4911 Update.
4912 * tui/tui-layout.c (show_source_disasm_command)
4913 (show_source_or_disasm_and_command): Update.
4914 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4915 (enum tui_box): Remove.
4916 (struct tui_win_info) <can_box>: New method.
4917 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4918 method.
4919
4920 2019-08-15 Tom de Vries <tdevries@suse.de>
4921
4922 * linux-nat-trad.c: Include gdbarch.h.
4923
4924 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4925
4926 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4927 register sizes.
4928
4929 2019-08-14 Tom Tromey <tromey@adacore.com>
4930
4931 * darwin-nat.c: Include gdbarch.h.
4932 * darwin-nat-info.c: Include gdbarch.h.
4933
4934 2019-08-13 Tom Tromey <tom@tromey.com>
4935
4936 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4937 Remove.
4938 * tui/tui-data.c (tui_initialize_static_data): Update.
4939
4940 2019-08-13 Tom Tromey <tom@tromey.com>
4941
4942 * tui/tui-winsource.h (struct tui_exec_info_window)
4943 <~tui_exec_info_window, maybe_allocate_content, get_content,
4944 m_content>: Remove.
4945 (struct tui_source_window_base) <set_exec_info_content,
4946 show_exec_info_content>: Don't declare.
4947 * tui/tui-winsource.c
4948 (tui_exec_info_window::maybe_allocate_content): Remove.
4949 (tui_source_window_base::update_exec_info): Rename from
4950 set_exec_info_content.
4951 (tui_source_window_base::show_exec_info_content)
4952 (tui_source_window_base::update_exec_info): Remove.
4953
4954 2019-08-13 Tom Tromey <tom@tromey.com>
4955
4956 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4957 declare.
4958 * tui/tui-winsource.c (tui_update_source_window_as_is)
4959 (tui_update_source_windows_with_addr, tui_erase_source_content):
4960 Update.
4961 (tui_clear_exec_info_content): Remove.
4962
4963 2019-08-13 Tom Tromey <tom@tromey.com>
4964
4965 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4966 declare.
4967 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4968 call tui_erase_exec_info_content.
4969 (tui_clear_exec_info_content): Rename from
4970 tui_erase_exec_info_content.
4971 (tui_clear_exec_info_content): Delete.
4972
4973 2019-08-13 Tom Tromey <tom@tromey.com>
4974
4975 * tui/tui-winsource.h (struct tui_source_window_base)
4976 <show_exec_info_content>: Declare.
4977 (tui_show_exec_info_content): Don't declare.
4978 * tui/tui-winsource.c
4979 (tui_source_window_base::show_exec_info_content): Rename from
4980 tui_show_exec_info_content.
4981 (tui_source_window_base::update_exec_info): Update.
4982
4983 2019-08-13 Tom Tromey <tom@tromey.com>
4984
4985 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4986 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4987 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4988 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4989 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4990 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4991 ... here.
4992
4993 2019-08-13 Tom Tromey <tom@tromey.com>
4994
4995 * tui/tui-winsource.h (struct tui_source_window_base)
4996 <update_exec_info>: Declare.
4997 (tui_update_exec_info): Don't declare.
4998 * tui/tui-winsource.c (tui_update_source_window_as_is)
4999 (tui_source_window_base::refresh_all)
5000 (tui_update_all_breakpoint_info): Update.
5001 (tui_source_window_base::update_exec_info): Rename from
5002 tui_update_exec_info.
5003 * tui/tui-stack.c (tui_show_frame_info): Update.
5004
5005 2019-08-13 Tom Tromey <tom@tromey.com>
5006
5007 * tui/tui-winsource.h (struct tui_source_window_base)
5008 <set_exec_info_content>: Declare.
5009 (tui_set_exec_info_content): Don't declare.
5010 * tui/tui-winsource.c
5011 (tui_source_window_base::set_exec_info_content): Rename from
5012 tui_set_exec_info_content.
5013 (tui_update_exec_info): Update.
5014
5015 2019-08-13 Tom Tromey <tom@tromey.com>
5016
5017 * tui/tui-winsource.h (struct tui_source_window_base)
5018 <show_source_content>: Declare.
5019 (tui_show_source_content): Don't declare.
5020 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5021 (tui_source_window_base::show_source_content): Rename from
5022 tui_show_source_content.
5023 (tui_source_window_base::refresh_all): Update.
5024 * tui/tui-layout.c (show_source_disasm_command)
5025 (show_source_or_disasm_and_command): Update.
5026
5027 2019-08-13 Tom Tromey <tom@tromey.com>
5028
5029 * tui/tui-winsource.c (tui_erase_source_content)
5030 (tui_show_source_content, tui_source_window_base::refresh_all):
5031 Update.
5032 * tui/tui-wingeneral.h
5033 (tui_check_and_display_highlight_if_needed): Don't declare.
5034 * tui/tui-wingeneral.c
5035 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5036 check_and_display_highlight_if_needed.
5037 * tui/tui-win.c (tui_rehighlight_all)
5038 (tui_win_info::make_visible_with_new_height): Update.
5039 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5040 (tui_data_window::erase_data_content)
5041 (tui_data_window::display_all_data): Update.
5042 * tui/tui-data.h (struct tui_win_info)
5043 <check_and_display_highlight_if_needed>: Declare.
5044
5045 2019-08-13 Tom Tromey <tom@tromey.com>
5046
5047 * tui/tui-win.c (tui_resize_all): Call
5048 tui_delete_invisible_windows.
5049 * tui/tui-layout.c (show_layout): Call
5050 tui_delete_invisible_windows.
5051 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5052 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5053
5054 2019-08-13 Tom Tromey <tom@tromey.com>
5055
5056 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5057 tui_add_win_to_layout.
5058
5059 2019-08-13 Tom Tromey <tom@tromey.com>
5060
5061 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5062 * tui/tui-layout.c (tui_default_win_height): Now static.
5063
5064 2019-08-13 Tom Tromey <tom@tromey.com>
5065
5066 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5067 single switch.
5068 (show_source_disasm_command, show_source_or_disasm_and_command):
5069 Don't check current layout.
5070
5071 2019-08-13 Tom Tromey <tom@tromey.com>
5072
5073 * tui/tui-wingeneral.c (make_all_visible): Remove.
5074 (tui_make_all_invisible): Simplify.
5075 * tui/tui-layout.c (tui_make_all_invisible): Move from
5076 tui-wingeneral.c; simplify.
5077 (show_layout): Hoist call to tui_make_all_invisible.
5078 (show_data): Don't call tui_make_all_invisible.
5079
5080 2019-08-13 Tom Tromey <tom@tromey.com>
5081
5082 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5083 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5084
5085 2019-08-13 Tom Tromey <tom@tromey.com>
5086
5087 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5088 tui-data.c.
5089 (show_source_disasm_command, show_data)
5090 (show_source_or_disasm_and_command): Don't use
5091 tui_set_current_layout_to.
5092 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5093 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5094 tui-layout.c.
5095 (tui_set_current_layout_to): Remove.
5096
5097 2019-08-13 Tom Tromey <tom@tromey.com>
5098
5099 * tui/tui-layout.c (tui_set_layout): Update.
5100 * tui/tui-data.h (struct tui_layout_def): Remove.
5101 (tui_layout_def): Don't declare.
5102 * tui/tui-data.c (layout_def): Remove.
5103 (tui_layout_def): Remove.
5104
5105 2019-08-13 Tom Tromey <tom@tromey.com>
5106
5107 * tui/tui-winsource.h (struct tui_source_window_base)
5108 <clear_detail>: No longer "override".
5109 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5110 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5111 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5112 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5113 Remove.
5114 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5115
5116 2019-08-13 Tom Tromey <tromey@adacore.com>
5117
5118 * tracepoint.c: Don't include readline.h or history.h.
5119
5120 2019-08-12 Tom Tromey <tom@tromey.com>
5121
5122 * configure: Rebuild.
5123 * configure.ac: Check for readline 7.
5124 * NEWS: Mention readline 7 requirement.
5125 * README: Update.
5126
5127 2019-08-12 Tom Tromey <tom@tromey.com>
5128
5129 * mingw-hdep.c (gdb_select): Remove readline hack.
5130
5131 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5132
5133 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5134 when the function fails.
5135
5136 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5137
5138 * s390-tdep.c (s390_type_align): New function.
5139 (s390_gdbarch_init): Set it as type_align gdbarch method.
5140
5141 2019-08-09 Tom de Vries <tdevries@suse.de>
5142
5143 PR gdb/24591
5144 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5145 pc_low with relocation offset.
5146
5147 2019-08-07 Tom Tromey <tromey@adacore.com>
5148
5149 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5150 (print_frame_args): Update.
5151 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5152 Update.
5153 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5154 * frame.h (struct frame_arg): Add initializers.
5155 <error>: Now a unique_xmalloc_ptr.
5156
5157 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5158
5159 * NEWS: Expand the Pointer Authentication entry.
5160 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5161 (aarch64_frame_unmask_lr): ... to this.
5162 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5163 Call aarch64_frame_unmask_lr.
5164 * frame.c (struct frame_info): Add "masked" variable.
5165 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5166 (fprint_frame): Check for masked pc.
5167 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5168 declarations.
5169 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5170 * stack.c (print_frame): Check for masked pc.
5171
5172 2019-08-06 Tom Tromey <tom@tromey.com>
5173
5174 * stabsread.c (patch_block_stabs, read_one_struct_field)
5175 (read_enum_type): Use obstack_strndup.
5176 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5177 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5178 * dwarf2read.c (guess_full_die_structure_name)
5179 (anonymous_struct_prefix): Use obstack_strndup.
5180 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5181 * c-exp.y (yylex): Use obstack_strndup.
5182 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5183 (write_var_or_type): Use obstack_strndup.
5184
5185 2019-08-06 Tom Tromey <tom@tromey.com>
5186
5187 * symfile.c (reread_symbols): Use obstack_strdup.
5188 * stabsread.c (read_type): Use obstack_strdup.
5189 * gdb_obstack.h (obstack_strdup): New overload.
5190 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5191 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5192 (dwarf2_canonicalize_name): Use obstack_strdup.
5193 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5194 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5195 Use obstack_strdup.
5196
5197 2019-08-06 Tom Tromey <tom@tromey.com>
5198
5199 * gdb_obstack.h (obstack_strdup): Define.
5200 * gdb_obstack.c (obstack_strdup): Don't define.
5201
5202 2019-08-06 Tom Tromey <tom@tromey.com>
5203
5204 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5205 obstack_strdup.
5206 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5207 obstack_strdup.
5208 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5209 * stabsread.c (common_block_start): Use obstack_strdup.
5210 * objfiles.c (set_objfile_main_name, objfile): Use
5211 obstack_strdup.
5212 * namespace.c (add_using_directive): Use obstack_strdup.
5213 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5214 * jit.c (finalize_symtab): Use obstack_strdup.
5215 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5216 (guess_partial_die_structure_name, partial_die_info::fixup)
5217 (dwarf2_name): Use obstack_strdup.
5218 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5219 obstack_strdup.
5220 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5221 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5222 obstack_strdup.
5223 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5224
5225 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5226
5227 * unittests/help-doc-selftests.c: New file.
5228 * Makefile.in: Add the new file.
5229
5230 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5231
5232 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5233 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5234 the full first line, except when FOR_VALUE_PREFIX. In this case,
5235 the trailing '.' is not output, and the first character is uppercased.
5236 (print_help_for_command): Update call to print_doc_line.
5237 (print_doc_of_command): Likewise.
5238 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5239 * cli/cli-option.c (append_indented_doc): Do not append newline.
5240 (build_help_option): Append newline after first appended_indented_doc
5241 only if a second call is done.
5242 (build_help): Append 2 new lines before each option, except the first
5243 one.
5244 * compile/compile.c (_initialize_compile): Add new lines after
5245 %OPTIONS%, when not at the end of the help.
5246 Change help doc or code
5247 producing the help doc to respect the invariants.
5248 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5249 Also removed the new line after 'Options:', as all other commands
5250 do not put an empty line between 'Options:' and the first option.
5251 * printcmd.c (_initialize_printcmd): Likewise.
5252 * stack.c (_initialize_stack): Likewise.
5253 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5254 incorrectly telling COMMAND is optional.
5255 * ada-lang.c (_initialize_ada_language): Change help doc or code
5256 producing the help doc to respect the invariants.
5257 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5258 * breakpoint.c (_initialize_breakpoint): Likewise.
5259 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5260 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5261 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5262 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5263 _initialize_cli_style): Likewise.
5264 * corelow.c (core_target_info): Likewise.
5265 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5266 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5267 * filesystem.c (_initialize_filesystem): Likewise.
5268 * frame.c (_initialize_frame): Likewise.
5269 * gnu-nat.c (add_task_commands): Likewise.
5270 * infcall.c (_initialize_infcall): Likewise.
5271 * infcmd.c (_initialize_infcmd): Likewise.
5272 * interps.c (_initialize_interpreter): Likewise.
5273 * language.c (_initialize_language): Likewise.
5274 * linux-fork.c (_initialize_linux_fork): Likewise.
5275 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5276 * maint.c (_initialize_maint_cmds): Likewise.
5277 * memattr.c (_initialize_mem): Likewise.
5278 * printcmd.c (_initialize_printcmd): Likewise.
5279 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5280 _RegEx): Likewise.
5281 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5282 * record-btrace.c (_initialize_record_btrace): Likewise.
5283 * record-full.c (_initialize_record_full): Likewise.
5284 * record.c (_initialize_record): Likewise.
5285 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5286 * regcache.c (_initialize_regcache): Likewise.
5287 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5288 _initialize_remote): Likewise.
5289 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5290 * serial.c (_initialize_serial): Likewise.
5291 * skip.c (_initialize_step_skip): Likewise.
5292 * source.c (_initialize_source): Likewise.
5293 * stack.c (_initialize_stack): Likewise.
5294 * symfile.c (_initialize_symfile): Likewise.
5295 * symtab.c (_initialize_symtab): Likewise.
5296 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5297 * top.c (init_main): Likewise.
5298 * tracefile-tfile.c (tfile_target_info): Likewise.
5299 * tracepoint.c (_initialize_tracepoint): Likewise.
5300 * tui/tui-win.c (_initialize_tui_win): Likewise.
5301 * utils.c (add_internal_problem_command): Likewise.
5302 * valprint.c (value_print_option_defs): Likewise.
5303
5304 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5305
5306 PR build/24886
5307 * configure.ac: Drop enable-libmcheck support.
5308 * configure, config.in: Rebuild.
5309 * libmcheck.m4: Remove.
5310 * acinclude.m4: Don't include it.
5311 * Makefile.in: Don't distribute it.
5312 * top.c (print_gdb_configuration): Don't mention it.
5313
5314 2019-08-06 Tom Tromey <tom@tromey.com>
5315
5316 * utils.c (set_output_style): Sometimes pass stream to
5317 emit_style_escape.
5318 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5319 * record-btrace.c (btrace_insn_history): Update.
5320 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5321 method.
5322 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5323 Update initializers.
5324 <m_uiout>: New field.
5325 <m_di>: Move lower.
5326 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5327 Remove "uiout" parameter.
5328 (dump_insns): Update.
5329 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5330 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5331
5332 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5333
5334 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5335 (error_in_psymtab_expansion): Likewise.
5336 (lookup_symbol_via_quick_fns): Likewise.
5337 (basic_lookup_transparent_type_quick): Likewise.
5338 (basic_lookup_transparent_type_1): Likewise.
5339
5340 2019-08-06 Tom Tromey <tromey@adacore.com>
5341
5342 * source.c (last_source_error): Now bool.
5343 (print_source_lines_base): Make "noprint" bool. Only open
5344 source file when last_source_visited changes.
5345
5346 2019-08-06 Tom Tromey <tromey@adacore.com>
5347
5348 * annotate.c (annotate_source_line): Use g_source_cache.
5349 * source-cache.c (source_cache::get_plain_source_lines): Change
5350 parameters. Populate m_offset_cache.
5351 (source_cache::ensure): New method.
5352 (source_cache::get_line_charpos): New method.
5353 (extract_lines): Move lower. Change parameters.
5354 (source_cache::get_source_lines): Move lower.
5355 * source-cache.h (class source_cache): Update comment.
5356 <get_line_charpos>: New method.
5357 <get_source_lines>: Update comment.
5358 <clear>: Clear m_offset_cache.
5359 <get_plain_source_lines>: Change parameters.
5360 <ensure>: New method
5361 <m_offset_cache>: New member.
5362 * source.c (forget_cached_source_info_for_objfile): Update.
5363 (info_source_command): Use g_source_cache.
5364 (find_source_lines, open_source_file_with_line_charpos): Remove.
5365 (print_source_lines_base, search_command_helper): Use g_source_cache.
5366 * source.h (open_source_file_with_line_charpos): Don't declare.
5367 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5368 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5369 Use g_source_cache.
5370
5371 2019-08-06 Tom Tromey <tromey@adacore.com>
5372
5373 * source-cache.c (source_cache::get_plain_source_lines):
5374 Remove "first_line" and "last_line" parameters.
5375 (source_cache::get_source_lines): Cache plain text.
5376 * source-cache.h (class source_cache)
5377 <get_plain_source_lines>: Update.
5378
5379 2019-08-06 Tom Tromey <tromey@adacore.com>
5380
5381 * source-cache.c (extract_lines): No longer a method.
5382 Changed type of parameter. Include final newline.
5383 (selftests::extract_lines_test): New function.
5384 (_initialize_source_cache): Likewise.
5385 * source-cache.h (class source_cache)
5386 <extract_lines>: Don't declare.
5387
5388 2019-08-06 Tom Tromey <tromey@adacore.com>
5389
5390 * breakpoint.c (init_breakpoint_sal): Update.
5391 (breakpoint): Update.
5392 * breakpoint.h (struct breakpoint) <filter>: Now a
5393 unique_xmalloc_ptr.
5394
5395 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5396
5397 * NEWS: Mention dictionary access on blocks.
5398 * python/py-block.c (blpy_getitem): New function.
5399 (block_object_as_mapping): New struct.
5400 (block_object_type): Use new struct for tp_as_mapping field.
5401
5402 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5403
5404 * objfiles.h (objfile): Add a comment describing partial symbols.
5405
5406 2019-08-05 Tom Tromey <tromey@adacore.com>
5407
5408 * compile/compile.c (_initialize_compile): Use _(), not N_().
5409 * thread.c (_initialize_thread): Use _(), not N_().
5410 * stack.c (_initialize_stack): Use _(), not N_().
5411 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5412
5413 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5414
5415 * dwarf2read.c (struct dw2_symtab_iterator):
5416 <want_specific_block>: Remove.
5417 <block_index>: Change type to gdb::optional.
5418 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5419 change type of BLOCK_INDEX parameter to gdb::optional.
5420 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5421 (dw2_lookup_symbol): Don't pass argument for
5422 WANT_SPECIFIC_BLOCK.
5423 (dw2_expand_symtabs_for_function): Don't pass argument for
5424 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5425 (class dw2_debug_names_iterator)
5426 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5427 parameter, change BLOCK_INDEX type to gdb::optional.
5428 <m_want_specific_block>: Remove.
5429 <m_block_index>: Change type to gdb::optional.
5430 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5431 gdb::optional. Re-write in function of gdb::optional.
5432 (dw2_debug_names_lookup_symbol): Don't pass argument for
5433 WANT_SPECIFIC_BLOCK.
5434 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5435 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5436 BLOCK_INDEX.
5437
5438 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5439
5440 * NEWS: Mention changes to "info sources" command.
5441
5442 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5443
5444 * symtab.c (filename_partial_match_opts): New struct type.
5445 (struct output_source_filename_data): New members
5446 regexp, c_regexp, partial_match.
5447 (output_source_filename): Use new members to decide to print file.
5448 (info_sources_option_defs): New variable.
5449 (make_info_sources_options_def_group, print_info_sources_header,
5450 info_sources_command_completer):
5451 New functions.
5452 (info_sources_command): Read new optional arguments.
5453 (_initialize_symtab): Update info sources help.
5454
5455 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5456
5457 * ada-lang.c (exception_support_info_v0): Renamed from...
5458 (default_exception_support_info): ... this. Create new
5459 definition for v1.
5460 (ada_has_this_exception_support): Look up catch_handlers_sym.
5461 (ada_exception_support_info_sniffer): Try v0 after default.
5462
5463 2019-08-01 Tom Tromey <tromey@adacore.com>
5464
5465 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5466 gdbarch.h.
5467
5468 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5469
5470 * s12z-tdep.c: Fix include path for s12z-opc.h.
5471
5472 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5473
5474 * NEWS: Require GNU make 3.82.
5475
5476 2019-07-16 Tom Tromey <tom@tromey.com>
5477
5478 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5479 declare.
5480
5481 2019-07-30 Tom Tromey <tromey@adacore.com>
5482
5483 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5484
5485 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5486
5487 * printcmd.c (print_address_symbolic): Print negative offsets.
5488 (build_address_symbolic): Force signed arithmetic when computing
5489 offset.
5490
5491 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5492
5493 PR/24474: Add a function to lookup static variables.
5494 * NEWS: Mention this new function.
5495 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5496 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5497 * python/python.c (python_GdbMethods): Add new function.
5498
5499 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5500
5501 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5502 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5503 (objfpy_lookup_static_symbol): New function.
5504 (objfile_object_methods): Add new functions.
5505
5506 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5507
5508 * NEWS: Mention 'set|show print frame-info'. Mention new
5509 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5510 backtrace argument. Mention that python frame filtering code
5511 is now consistent with what 'backtrace' command prints.
5512
5513 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5514
5515 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5516 comments.
5517 (print_frame_info_auto, print_frame_info_source_line,
5518 print_frame_info_location, print_frame_info_source_and_location,
5519 print_frame_info_location_and_address, print_frame_info_short_location):
5520 New declarations.
5521 (struct frame_print_options): New member print_frame_info.
5522 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5523 * stack.h (get_user_print_what_frame_info): New declaration.
5524 (frame_show_address): New declaration.
5525 * stack.c (print_frame_arguments_choices): New value 'presence'.
5526 (print_frame_info_auto, print_frame_info_source_line,
5527 print_frame_info_location, print_frame_info_source_and_location,
5528 print_frame_info_location_and_address, print_frame_info_short_location,
5529 print_frame_info_choices, print_frame_info_print_what): New definitions.
5530 (print_frame_args): Only print dots for args if print frame-arguments
5531 is 'presence'.
5532 (frame_print_option_defs): New element for "frame-info".
5533 (get_user_print_what_frame_info): New function.
5534 (frame_show_address): Make non static. Move comment to stack.h.
5535 (print_frame_info_to_print_what): New function.
5536 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5537 to decide what to print.
5538 (backtrace_command_1): Handle the new print_frame_arguments_presence
5539 value.
5540 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5541 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5542 (py_print_frame): In non-mi mode, use LOCATION as default for
5543 print_what, similarly to frame information printed directly by
5544 backtrace command. Handle frame-info user option in non MI mode.
5545
5546 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5547
5548 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5549 Add case for debugging 32-bit target on 64-bit host. Revise
5550 comment.
5551
5552 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5553
5554 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5555 instead of find_function_entry_range_from_pc.
5556
5557 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5558
5559 * stack.c (find_frame_funname): Remove code which preferred
5560 minsym over symtab sym in "certain pathological cases".
5561
5562 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5563 parameter. Change type of "do_demangle" to bool.
5564 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5565 Pass suitable "prefer_sym_over_minsym" flag to
5566 build_address_symbolic(). Don't output "+" for negative offsets.
5567 * printcmd.c (print_address_symbolic): Update invocation of
5568 build_address_symbolic to include a "prefer_sym_over_minsym"
5569 flag.
5570 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5571 Restrict cases in which use of minimal symbol is preferred to that
5572 of a found symbol. Update comments.
5573
5574 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5575 for entry pc when entry pc is out of range for that FDE.
5576
5577 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5578
5579 PR gdb/24839:
5580 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5581 type.
5582
5583 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5584
5585 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5586 this function's Python signature.
5587
5588
5589 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5590
5591 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5592 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5593 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5594 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5595 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5596
5597
5598 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5599
5600 * h8300-tdep.c (h8300_register_name_common): New.
5601 h8300_register_name): Use h8300_register_name_common.
5602 (h8300s_register_name): Likewise.
5603 (h8300sx_register_name): Likewise.
5604 (h8300h_register_nam): New.
5605 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5606
5607
5608 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5609
5610 * arm-tdep.c (arm_skip_cmse_entry): New function.
5611 (arm_is_sgstubs_section): New function.
5612 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5613
5614 2019-07-22 Tom Tromey <tom@tromey.com>
5615
5616 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5617 Don't self-assign.
5618
5619 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5620
5621 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5622 type_print.
5623
5624 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5625
5626 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5627 so that GDB doesn't match any msymbols when searching in the
5628 TYPES_DOMAIN.
5629 (print_symbol_info): Print using typedef_print or type_print based
5630 on the type of the symbol. Add updated FIXME comment moved from...
5631 (_initialize_symtab): ... move and update FIXME comment to above.
5632
5633 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5634
5635 * NEWS: Mention adding -q option to "info types".
5636 * symtab.c (struct info_types_options): New struct.
5637 (info_types_options_defs): New variable.
5638 (make_info_types_options_def_group): New function.
5639 (info_types_command): Use gdb::option framework to parse options.
5640 (info_types_command_completer): New function.
5641 (_initialize_symtab): Extend the help text on "info types" and
5642 register command completer.
5643
5644 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5645
5646 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5647 (lookup_symbol_in_objfile): Change int to block_enum and add a
5648 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5649
5650 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5651
5652 * MAINTAINERS (Write After Approval): Add self.
5653
5654 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5655
5656 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5657 instruction to the dummy code region.
5658
5659 2019-07-19 Tom Tromey <tromey@adacore.com>
5660
5661 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5662 (ARGSUSED, PARAMS, __func__): Remove rules.
5663
5664 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5665
5666 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5667 * features/arm/arm-with-iwmmxt.c: Remove.
5668 * features/arm/arm-with-iwmmxt.xml: Remove.
5669 * features/arm/arm-with-m-fpa-layout.c: Remove.
5670 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5671 * features/arm/arm-with-m-vfp-d16.c: Remove.
5672 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5673 * features/arm/arm-with-m.c: Remove.
5674 * features/arm/arm-with-m.xml: Remove.
5675 * features/arm/arm-with-neon.c: Remove.
5676 * features/arm/arm-with-neon.xml: Remove.
5677 * features/arm/arm-with-vfpv2.c: Remove.
5678 * features/arm/arm-with-vfpv2.xml: Remove.
5679 * features/arm/arm-with-vfpv3.c: Remove.
5680 * features/arm/arm-with-vfpv3.xml: Remove.
5681
5682 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5683
5684 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5685
5686 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5687
5688 * arch/aarch32.c (aarch32_create_target_description): Create
5689 target descriptions using features.
5690 * arch/arm.c (arm_create_target_description)
5691 (arm_create_mprofile_target_description): Likewise.
5692 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5693
5694 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5695
5696 * Makefile.in: Add new files.
5697 * aarch32-tdep.c: New file.
5698 * aarch32-tdep.h: New file.
5699 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5700 Call aarch32_read_description.
5701 * arch/aarch32.c: New file.
5702 * arch/aarch32.h: New file.
5703 * arch/arm.c (arm_create_target_description)
5704 (arm_create_mprofile_target_description): New function.
5705 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5706 (arm_create_target_description)
5707 (arm_create_mprofile_target_description): New declaration.
5708 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5709 read_description functions.
5710 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5711 Likewise.
5712 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5713 * arm-tdep.c (tdesc_arm_list): New variable.
5714 (arm_register_g_packet_guesses): Call create description functions.
5715 (arm_read_description) (arm_read_mprofile_description): New
5716 function.
5717 * arm-tdep.h (arm_read_description)
5718 (arm_read_mprofile_description): Add declaration.
5719 * configure.tgt: Add new files.
5720
5721 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5722
5723 * top.c (new_ui_command): Open specified terminal just once.
5724
5725 2019-07-18 Tom Tromey <tromey@adacore.com>
5726
5727 * symtab.c (main_name): Constify return type.
5728 * symfile.c (set_initial_language): Update.
5729 * symtab.h (main_name): Constify return type.
5730
5731 2019-07-17 Tom Tromey <tom@tromey.com>
5732
5733 * tui/tui-winsource.c (tui_update_source_window)
5734 (tui_update_source_window_as_is)
5735 (tui_update_source_windows_with_line): Remove return.
5736 * tui/tui-disasm.c (tui_show_disassem)
5737 (tui_show_disassem_and_update_source): Remove return.
5738 * tui/tui.c (tui_reset): Remove return.
5739 * tui/tui-wingeneral.c
5740 (tui_check_and_display_highlight_if_needed): Remove return.
5741
5742 2019-07-17 Tom Tromey <tom@tromey.com>
5743
5744 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5745
5746 2019-07-17 Tom Tromey <tom@tromey.com>
5747
5748 * tui/tui-winsource.h (struct tui_exec_info_window)
5749 (struct tui_source_window_base): Move from tui-data.h.
5750 * tui/tui-winsource.c: Move many method definitions from
5751 elsewhere. Remove "structuring" comments.
5752 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5753 (tui_source_window_base::refresh_window): Move to
5754 tui-winsource.c.
5755 * tui/tui-win.c (tui_source_window_base::refresh_all)
5756 (tui_source_window_base::update_tab_width)
5757 (tui_source_window_base::set_new_height)
5758 (tui_source_window_base::do_make_visible_with_new_height): Move to
5759 tui-winsource.c.
5760 * tui/tui-source.h: Update.
5761 * tui/tui-source.c (tui_source_window_base::reset): Move to
5762 tui-winsource.c.
5763 * tui/tui-disasm.h: Update.
5764 * tui/tui-data.h (struct tui_exec_info_window): Move to
5765 tui-winsource.h.
5766 (struct tui_source_window_base): Likewise.
5767 * tui/tui-data.c (tui_source_window_base::clear_detail)
5768 (tui_source_window_base, ~tui_source_window_base): Move to
5769 tui-winsource.c.
5770
5771 2019-07-17 Tom Tromey <tom@tromey.com>
5772
5773 * tui/tui-win.c (tui_resize_all)
5774 (tui_source_window_base::update_tab_width)
5775 (tui_adjust_win_heights): Update.
5776 (tui_win_info::make_invisible_and_set_new_height): Rename from
5777 make_invisible_and_set_new_height.
5778 * tui/tui-data.h (struct tui_win_info)
5779 <make_invisible_and_set_new_height>: New method.
5780
5781 2019-07-17 Tom Tromey <tom@tromey.com>
5782
5783 * tui/tui.c: Update.
5784 * tui/tui-source.h (struct tui_source_window): Move from
5785 tui-data.h.
5786 * tui/tui-layout.c: Update.
5787 * tui/tui-disasm.c: Update.
5788 * tui/tui-data.h (struct tui_source_window): Move to
5789 tui-source.h.
5790
5791 2019-07-17 Tom Tromey <tom@tromey.com>
5792
5793 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5794 tui-data.h.
5795 * tui/tui-data.h (struct tui_disasm_window): Move to
5796 tui-disasm.h.
5797
5798 2019-07-17 Tom Tromey <tom@tromey.com>
5799
5800 * tui/tui-regs.h (struct tui_data_item_window): Move from
5801 tui-data.h.
5802 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5803 * tui/tui-data.h (struct tui_data_item_window): Move to
5804 tui-regs.h.
5805 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5806
5807 2019-07-17 Tom Tromey <tom@tromey.com>
5808
5809 * tui/tui.c: Update.
5810 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5811 (tui_cmd_window::max_height): Move to tui-command.c.
5812 * tui/tui-layout.c: Update.
5813 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5814 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5815 tui-command.c.
5816 * tui/tui-command.h (struct tui_cmd_window): Move from
5817 tui-data.h.
5818 * tui/tui-command.c: Remove "structuring" comments.
5819 (tui_cmd_window::clear_detail)
5820 (tui_cmd_window::do_make_visible_with_new_height)
5821 (tui_cmd_window::max_height): Move from elsewhere.
5822
5823 2019-07-17 Tom Tromey <tom@tromey.com>
5824
5825 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5826 Now static.
5827 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5828 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5829
5830 2019-07-17 Tom Tromey <tom@tromey.com>
5831
5832 * tui/tui.c: Update.
5833 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5834 tui-regs.c.
5835 * tui/tui-windata.h: Remove file.
5836 * tui/tui-windata.c: Remove file.
5837 * tui/tui-win.c (tui_data_window::set_new_height)
5838 (tui_data_window::do_make_visible_with_new_height): Move to
5839 tui-regs.c.
5840 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5841 * tui/tui-regs.c: Remove "structuring" comments.
5842 (tui_data_window::first_data_item_displayed)
5843 (tui_data_window::delete_data_content_windows)
5844 (tui_data_window::erase_data_content)
5845 (tui_data_window::display_all_data)
5846 (tui_data_window::refresh_all)
5847 (tui_data_window::do_scroll_vertical)
5848 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5849 (tui_data_window::do_make_visible_with_new_height)
5850 (tui_data_window::refresh_window): Move from elsewhere.
5851 (_initialize_tui_regs): Move to end of file.
5852 * tui/tui-layout.c: Update.
5853 * tui/tui-hooks.c: Update.
5854 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5855 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5856 tui-regs.c.
5857 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5858
5859 2019-07-17 Tom Tromey <tom@tromey.com>
5860
5861 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5862 seen.
5863
5864 2019-07-17 Tom Tromey <tom@tromey.com>
5865
5866 * tui/tui-win.c (tui_source_window_base::set_new_height)
5867 (tui_source_window_base::do_make_visible_with_new_height): Use
5868 m_has_locator field directly.
5869 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5870 method.
5871 (struct tui_source_window_base) <has_locator>: Likewise.
5872
5873 2019-07-17 Tom Tromey <tom@tromey.com>
5874
5875 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5876 Don't declare.
5877 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5878 Remove.
5879 * tui/tui-win.c (tui_source_window_base::set_new_height)
5880 (tui_source_window_base::set_new_height)
5881 (make_invisible_and_set_new_height)
5882 (tui_source_window_base::do_make_visible_with_new_height)
5883 (tui_source_window_base::do_make_visible_with_new_height):
5884 Update.
5885 * tui/tui-layout.c (show_source_disasm_command, show_data)
5886 (show_source_or_disasm_and_command): Update.
5887 * tui/tui-layout.c (show_layout): Update.
5888
5889 2019-07-17 Tom Tromey <tom@tromey.com>
5890
5891 * tui/tui-layout.c (make_data_window): Remove.
5892 (show_data): Unify creation and re-initialization cases.
5893
5894 2019-07-17 Tom Tromey <tom@tromey.com>
5895
5896 * tui/tui-layout.c (make_source_window, make_disasm_window):
5897 Remove.
5898 (show_data): Unify creation and re-initialization cases.
5899
5900 2019-07-17 Tom Tromey <tom@tromey.com>
5901
5902 * tui/tui-layout.c (make_command_window): Remove.
5903 (show_source_disasm_command, show_source_or_disasm_and_command):
5904 Unify creation and re-initialization cases.
5905
5906 2019-07-17 Tom Tromey <tom@tromey.com>
5907
5908 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5909 creation and re-initialization cases.
5910
5911 2019-07-17 Tom Tromey <tom@tromey.com>
5912
5913 * tui/tui-regs.c (tui_get_register): Return void.
5914
5915 2019-07-17 Tom Tromey <tom@tromey.com>
5916
5917 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5918 Simplify.
5919
5920 2019-07-17 Tom Tromey <tom@tromey.com>
5921
5922 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5923 resetting.
5924
5925 2019-07-17 Tom Tromey <tom@tromey.com>
5926
5927 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5928 * tui/tui-regs.c (tui_reg_layout): New function.
5929 (tui_show_registers, tui_reg_command): Use it.
5930 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5931 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5932 parameters.
5933 (tui_layout_command): Remove.
5934
5935 2019-07-17 Tom Tromey <tom@tromey.com>
5936
5937 * tui/tui-layout.h (tui/tui-layout): Return void.
5938 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5939
5940 2019-07-17 Tom Tromey <tom@tromey.com>
5941
5942 * tui/tui-layout.c (show_source_disasm_command, show_data):
5943 Update.
5944 (reset_locator): Remove.
5945 (show_source_or_disasm_and_command): Update.
5946
5947 2019-07-17 Tom Tromey <tom@tromey.com>
5948
5949 * tui/tui-source.c (tui_source_window_base::reset): Remove
5950 win_type parameter.
5951 * tui/tui-layout.c (make_command_window, make_source_window)
5952 (make_disasm_window, make_data_window)
5953 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5954 (reset_locator, show_source_or_disasm_and_command): Update.
5955 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5956 win_type parameter.
5957 (struct tui_source_window_base) <reset>: Likewise.
5958
5959 2019-07-17 Tom Tromey <tom@tromey.com>
5960
5961 * tui/tui-layout.c (show_source_disasm_command): Use
5962 reset_locator.
5963 (reset_locator): New function.
5964 (init_and_make_win): Remove.
5965 (show_source_or_disasm_and_command): Use reset_locator.
5966
5967 2019-07-17 Tom Tromey <tom@tromey.com>
5968
5969 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5970 condition.
5971 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5972 Remove condition.
5973 * tui/tui-source.c (tui_source_window_base::reset): New method.
5974 * tui/tui-layout.c (make_command_window): Don't call
5975 init_and_make_win.
5976 (make_source_window, make_disasm_window): Don't call
5977 make_source_or_disasm_window.
5978 (make_data_window): Don't call init_and_make_win. Change calling
5979 convention.
5980 (show_source_disasm_command, show_data): Simplify.
5981 (make_source_or_disasm_window): Remove.
5982 (show_source_or_disasm_and_command): Simplify.
5983 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5984 (struct tui_source_window_base) <reset>: Likewise.
5985 <execution_info>: Remove initializer.
5986 * tui/tui-data.c (tui_source_window_base): Initialize
5987 execution_info.
5988
5989 2019-07-17 Tom Tromey <tom@tromey.com>
5990
5991 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5992 variable.
5993
5994 2019-07-17 Tom Tromey <tom@tromey.com>
5995
5996 * tui/tui.c (tui_rl_other_window): Update.
5997 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5998 superclass method first. Always iterate over regs_content.
5999 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6000 method.
6001 * tui/tui-win.c (tui_set_focus_command): Update.
6002
6003 2019-07-17 Tom Tromey <tom@tromey.com>
6004
6005 * tui/tui-win.c (tui_set_focus_command): Rename from
6006 tui_set_focus. Call tui_enable.
6007 (tui_set_focus_command): Remove.
6008
6009 2019-07-17 Tom Tromey <tom@tromey.com>
6010
6011 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6012 refresh_window.
6013 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6014 touchwin.
6015 (tui_data_window::refresh_window): Call refresh_window on data
6016 items. Always call superclass refresh_window.
6017 (tui_win_info::refresh): Remove.
6018 (tui_source_window_base::refresh_window): Update.
6019 (tui_refresh_all): Update.
6020 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6021 refresh_window.
6022 (show_source_or_disasm_and_command): Likewise.
6023 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6024 (struct tui_source_window_base) <refresh>: Likewise.
6025
6026 2019-07-17 Tom Tromey <tom@tromey.com>
6027
6028 * tui/tui-winsource.c (tui_clear_source_content)
6029 (tui_show_source_content): Update.
6030 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6031 whether content is empty.
6032 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6033 Remove.
6034
6035 2019-07-17 Tom Tromey <tom@tromey.com>
6036
6037 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6038 window's contents.
6039 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6040 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6041
6042 2019-07-17 Tom Tromey <tom@tromey.com>
6043
6044 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6045 (struct tui_data_item_window): Update.
6046
6047 2019-07-17 Tom Tromey <tom@tromey.com>
6048
6049 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6050 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6051 defines.
6052
6053 2019-07-17 Tom Tromey <tom@tromey.com>
6054
6055 * tui/tui-winsource.h (tui_erase_source_content)
6056 (tui_clear_source_content): Remove "display_prompt" parameter.
6057 * tui/tui-winsource.c (tui_update_source_window_as_is)
6058 (tui_update_source_windows_with_addr): Update.
6059 (tui_clear_source_content): Remove "display_prompt" parameter.
6060 (tui_erase_source_content): Likewise. Simplify.
6061 (tui_show_source_content): Update.
6062 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6063 * tui/tui-stack.c (tui_show_frame_info): Update.
6064 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6065 Remove defines.
6066
6067 2019-07-17 Tom Tromey <tom@tromey.com>
6068
6069 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6070 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6071 parameter.
6072 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6073 parameter.
6074
6075 2019-07-17 Tom Tromey <tom@tromey.com>
6076
6077 * tui/tui-winsource.c (tui_clear_source_content)
6078 (tui_show_source_content, tui_show_exec_info_content)
6079 (tui_clear_exec_info_content): Update.
6080 * tui/tui-stack.c (tui_show_locator_content): Update.
6081 (tui_show_frame_info): Update.
6082 * tui/tui-source.h (tui_source_window): Don't declare.
6083 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6084 from tui_source_is_displayed.
6085 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6086 Remove field.
6087 (struct tui_source_window_base) <content_in_use>: New field. Now
6088 bool.
6089 (struct tui_source_window) <showing_source_p>: New method.
6090 (TUI_SRC_WIN): Change cast.
6091 * tui/tui-data.c (tui_initialize_static_data): Update.
6092
6093 2019-07-17 Tom Tromey <tom@tromey.com>
6094
6095 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6096 location_matches_p.
6097 * tui/tui-source.c (tui_source_window::location_matches_p): New
6098 method.
6099 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6100 method.
6101 * tui/tui-data.h (struct tui_source_window_base)
6102 <location_matches_p>: New method.
6103 (struct tui_source_window, struct tui_disasm_window)
6104 <location_matches_p>: Likewise.
6105
6106 2019-07-17 Tom Tromey <tom@tromey.com>
6107
6108 * tui/tui-win.c (tui_set_win_height_command): Rename from
6109 tui_set_win_height.
6110 (tui_set_win_height_command): Remove.
6111
6112 2019-07-17 Tom Tromey <tom@tromey.com>
6113
6114 * tui/tui-source.c (tui_source_window): New constructor. Add
6115 observer.
6116 (~tui_source_window): New destructor.
6117 (tui_source_window::style_changed): New method.
6118 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6119 (tui_attach_detach_observers): Update.
6120 * tui/tui-data.h (struct tui_source_window): Make constructor not
6121 inline. Add destructor.
6122 (struct tui_source_window) <style_changed>: New method.
6123 <m_observable>: New member.
6124
6125 2019-07-17 Tom Tromey <tom@tromey.com>
6126
6127 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6128 * tui/tui-win.c (tui_resize_all): Fix typo.
6129
6130 2019-07-17 Tom Tromey <tom@tromey.com>
6131
6132 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6133 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6134 (tui_refresh_all): Remove "list" parameter. Use foreach.
6135 * tui/tui-win.c (window_name_completer): Use foreach.
6136 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6137 (update_tab_width): Likewise.
6138 * tui/tui-layout.c (show_layout): Update.
6139 * tui/tui-data.h (class tui_window_iterator): New.
6140 (struct all_tui_windows): New.
6141 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6142
6143 2019-07-17 Tom Tromey <tom@tromey.com>
6144
6145 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6146 parameter. Don't reference globals.
6147 (tui_reg_command): Update.
6148
6149 2019-07-17 Tom Tromey <tom@tromey.com>
6150
6151 * tui/tui-regs.c (tui_show_registers): Simplify.
6152
6153 2019-07-17 Tom Tromey <tom@tromey.com>
6154
6155 * tui/tui-regs.c (tui_show_registers): Update.
6156 (tui_show_register_group): Add win_info parameter.
6157
6158 2019-07-17 Tom Tromey <tom@tromey.com>
6159
6160 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6161 Rename from tui_display_reg_element_at_line.
6162 (tui_data_window::display_registers_from_line): Update.
6163 * tui/tui-data.h (struct tui_data_window)
6164 <display_reg_element_at_line>: New method.
6165
6166 2019-07-17 Tom Tromey <tom@tromey.com>
6167
6168 * tui/tui-regs.h (tui_display_registers_from)
6169 (tui_display_registers_from_line): Don't declare.
6170 * tui/tui-windata.c (tui_data_window::display_all_data)
6171 (tui_data_window::refresh_all)
6172 (tui_data_window::do_scroll_vertical): Update.
6173 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6174 from tui_display_registers_from.
6175 (tui_display_reg_element_at_line): Update.
6176 (tui_data_window::display_registers_from_line): Rename from
6177 tui_display_registers_from_line.
6178 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6179 display_registers_from_line>: New methods.
6180
6181 2019-07-17 Tom Tromey <tom@tromey.com>
6182
6183 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6184 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6185 from tui_erase_data_content.
6186 (tui_data_window::display_all_data)
6187 (tui_data_window::refresh_all)
6188 (tui_data_window::do_scroll_vertical): Update.
6189 * tui/tui-regs.c (tui_show_registers): Update.
6190 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6191 New method.
6192
6193 2019-07-17 Tom Tromey <tom@tromey.com>
6194
6195 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6196 declare.
6197 * tui/tui-windata.c
6198 (tui_data_window::delete_data_content_windows): Rename from
6199 tui_delete_data_content_windows.
6200 (tui_data_window::display_all_data)
6201 (tui_data_window::do_scroll_vertical): Update.
6202 * tui/tui-data.h (struct tui_data_window)
6203 <delete_data_content_windows>: New method.
6204
6205 2019-07-17 Tom Tromey <tom@tromey.com>
6206
6207 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6208 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6209
6210 2019-07-17 Tom Tromey <tom@tromey.com>
6211
6212 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6213 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6214 from tui_display_all_data.
6215 * tui/tui-win.c
6216 (tui_data_window::do_make_visible_with_new_height): Update.
6217 * tui/tui-regs.c (tui_show_registers): Update.
6218 * tui/tui-layout.c (tui_set_layout): Update.
6219 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6220 method.
6221
6222 2019-07-17 Tom Tromey <tom@tromey.com>
6223
6224 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6225 * tui/tui-windata.c (tui_display_data_from): Remove.
6226 (tui_data_window::refresh_all): Update.
6227
6228 2019-07-17 Tom Tromey <tom@tromey.com>
6229
6230 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6231 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6232 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6233 tui_display_registers_from_line.
6234 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6235 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6236 "force_display" parameter.
6237
6238 2019-07-17 Tom Tromey <tom@tromey.com>
6239
6240 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6241 declare.
6242 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6243 Rename from tui_first_reg_element_no_inline.
6244 (tui_display_reg_element_at_line)
6245 (tui_display_registers_from_line): Update.
6246 * tui/tui-data.h (struct tui_data_window)
6247 <first_reg_element_no_inline>: New method.
6248
6249 2019-07-17 Tom Tromey <tom@tromey.com>
6250
6251 * tui/tui-windata.c (tui_display_data_from)
6252 (tui_data_window::do_scroll_vertical): Update.
6253 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6254 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6255 Rename from tui_line_from_reg_element_no.
6256 (tui_display_registers_from_line): Update.
6257 * tui/tui-data.h (struct tui_data_window)
6258 <line_from_reg_element_no>: New method.
6259
6260 2019-07-17 Tom Tromey <tom@tromey.com>
6261
6262 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6263 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6264 tui_last_regs_line_no.
6265 (tui_display_reg_element_at_line)
6266 (tui_display_registers_from_line): Update.
6267 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6268 method.
6269
6270 2019-07-17 Tom Tromey <tom@tromey.com>
6271
6272 PR tui/24722:
6273 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6274 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6275 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6276 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6277 (tui_update_breakpoint_info): Likewise.
6278 * tui/tui-hooks.c (tui_event_create_breakpoint)
6279 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6280 Update.
6281
6282 2019-07-17 Tom Tromey <tom@tromey.com>
6283
6284 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6285
6286 2019-07-17 Tom Tromey <tom@tromey.com>
6287
6288 * tui/tui-winsource.c (tui_update_source_window_as_is)
6289 (tui_update_source_windows_with_addr): Update.
6290 * tui/tui-source.h (tui_set_source_content)
6291 (tui_show_symtab_source): Add "win_info" parameter.
6292 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6293 parameter.
6294 (tui_show_symtab_source): Likewise.
6295
6296 2019-07-17 Tom Tromey <tom@tromey.com>
6297
6298 * tui/tui-wingeneral.c
6299 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6300
6301 2019-07-17 Tom Tromey <tom@tromey.com>
6302
6303 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6304 (struct tui_cmd_window) <can_scroll>: New method.
6305 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6306 method.
6307
6308 2019-07-17 Tom Tromey <tromey@adacore.com>
6309
6310 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6311 do_field_signed>: Rename. Change type of "value".
6312 * ui-out.c (ui_out::field_signed): Rename from field_int.
6313 Change type of "value".
6314 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6315 type of "value".
6316 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6317 do_field_int. Change type of "value".
6318 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6319 do_field_int. Change type of "value".
6320 * tracepoint.c (trace_status_mi, tfind_1)
6321 (print_one_static_tracepoint_marker): Update.
6322 * thread.c (print_thread_info_1, print_selected_thread_frame):
6323 Update.
6324 * stack.c (print_frame, print_frame_info): Update.
6325 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6326 Update.
6327 * source.c (print_source_lines_base): Update.
6328 * skip.c (info_skip_command): Update.
6329 * record-btrace.c (btrace_ui_out_decode_error)
6330 (btrace_call_history_src_line): Update.
6331 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6332 Update.
6333 * progspace.c (print_program_space): Update.
6334 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6335 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6336 do_field_int. Change type of "value".
6337 * mi/mi-out.c (mi_ui_out::do_table_begin)
6338 (mi_ui_out::do_table_header): Update.
6339 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6340 type of "value".
6341 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6342 (mi_cmd_data_list_changed_registers, output_register)
6343 (mi_cmd_data_read_memory, mi_load_progress)
6344 (mi_cmd_trace_frame_collected): Update.
6345 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6346 Update.
6347 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6348 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6349 (mi_cmd_var_list_children, varobj_update_one): Update.
6350 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6351 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6352 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6353 * inferior.c (print_inferior): Update.
6354 * gdb_bfd.c (print_one_bfd): Update.
6355 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6356 Update.
6357 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6358 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6359 do_field_int. Change type of "value".
6360 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6361 do_field_int. Change type of "value".
6362 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6363 (print_one_breakpoint_location, print_it_catch_fork)
6364 (print_one_catch_fork, print_it_catch_vfork)
6365 (print_one_catch_vfork, print_it_catch_solib)
6366 (print_it_catch_exec, print_it_ranged_breakpoint)
6367 (print_mention_watchpoint, print_mention_masked_watchpoint)
6368 (bkpt_print_it, update_static_tracepoint): Update.
6369 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6370 * break-catch-syscall.c (print_it_catch_syscall): Update.
6371 * ada-tasks.c (print_ada_task_info): Update.
6372 * ada-lang.c (print_it_exception, print_mention_exception):
6373 Update.
6374
6375 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6376
6377 PR breakpoints/24541
6378 * gdbarch.c: Regenerate.
6379 * gdbarch.h: Regenerate.
6380 * gdbarch.sh: Adjust return type and parameter types for
6381 'stap_adjust_register'.
6382 (i386_stap_adjust_register): Adjust signature and return new
6383 register name.
6384 * stap-probe.c (stap_parse_register_operand): Adjust use of
6385 'gdbarch_stap_adjust_register'.
6386
6387 2019-07-17 Tom Tromey <tromey@adacore.com>
6388
6389 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6390 declare VEC.
6391 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6392 std::vector.
6393 (struct s390_process_info): Add initializers.
6394 (s390_add_process): Use new.
6395 (s390_linux_nat_target::low_forget_process): Use delete.
6396 (s390_linux_nat_target::low_new_fork)
6397 (s390_linux_nat_target::stopped_by_watchpoint)
6398 (s390_linux_nat_target::low_prepare_to_resume)
6399 (s390_linux_nat_target::insert_watchpoint)
6400 (s390_linux_nat_target::insert_hw_breakpoint)
6401 (s390_linux_nat_target::remove_watchpoint)
6402 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6403
6404 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6405
6406 * aarch64-fbsd-nat.c: Include regcache.h.
6407 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6408 argument.
6409 (aarch64_fbsd_nat_target::fetch_registers)
6410 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6411 variable.
6412 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6413
6414 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6415
6416 * fbsd-nat.c: Include gdbarch.h.
6417
6418 2019-07-15 Tom Tromey <tromey@adacore.com>
6419
6420 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6421
6422 2019-07-15 Tom Tromey <tromey@adacore.com>
6423
6424 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6425 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6426 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6427 * cli-out.c (cli_ui_out::do_field_int): New method.
6428 * ui-out.c (ui_out::field_unsigned): New method.
6429 * symfile.c (generic_load): Use field_unsigned.
6430 (print_transfer_performance): Likewise.
6431 * record-btrace.c (ui_out_field_uint): Remove.
6432 (btrace_call_history_insn_range, btrace_call_history): Use
6433 field_unsigned.
6434 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6435 field_unsigned.
6436 * ui-out.h (class ui_out) <field_unsigned>: New method.
6437 <do_field_unsigned>: Likewise.
6438
6439 2019-07-15 Tom Tromey <tromey@adacore.com>
6440
6441 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6442 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6443 * target.c (flash_erase_command): Use field_string.
6444 * infrun.c (print_signal_received_reason): Use field_string.
6445 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6446 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6447 field_string.
6448 * ada-tasks.c (print_ada_task_info): Use field_string.
6449
6450 2019-07-15 Tom Tromey <tromey@adacore.com>
6451
6452 * target.c (flash_erase_command): Use field_core_addr.
6453 * symfile.c (generic_load): Use field_core_addr.
6454 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6455 Use field_core_addr.
6456 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6457 field_core_addr.
6458
6459 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6460
6461 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6462 value if its desired type is smaller than a CORE_ADDR and signed.
6463
6464 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6465
6466 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6467 of changes to field names, and use new is_reference field to
6468 decide if a property is a reference or not.
6469 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6470 field.
6471 (struct dwarf2_property_baton): Update header comment, rename
6472 'referenced_type' to 'property_type' and update comments.
6473 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6474 default property type, store in property baton, update to take
6475 accound of renamed field.
6476 (read_func_scope): Update call to attr_to_dynamic_prop.
6477 (read_array_type): Likewise.
6478 (dwarf2_per_cu_addr_sized_int_type): New function.
6479 (read_subrange_index_type): Move type finding code to
6480 dwarf2_per_cu_addr_sized_int_type.
6481 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6482 (dwarf2_per_cu_addr_type): New function.
6483 (set_die_type): Update calls to attr_to_dynamic_prop.
6484
6485 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6486
6487 * dwarf2read.c (read_subrange_index_type): New function.
6488 (read_subrange_type): Move code into new function and call it.
6489 * gdbtypes.c (create_range_type): Add some asserts.
6490
6491 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6492
6493 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6494 update return statements.
6495 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6496 declaration, and update comment to match.
6497 * gdbtypes.c (resolve_dynamic_array): Update call to
6498 dwarf2_evaluate_property to match new return type.
6499
6500 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6501
6502 * valarith.c (value_subscripted_rvalue): Change lowerbound
6503 parameter type from int to LONGEST.
6504 * value.h (value_subscripted_rvalue): Likewise in declaration.
6505
6506 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6507
6508 * cli/cli-utils.c (info_print_command_completer): New function.
6509 * cli/cli-utils.h: Add 'completer.h' include, and forward
6510 declaration for 'struct cmd_list_element'.
6511 (info_print_command_completer): Declare.
6512 * stack.c (_initialize_stack): Add completer for 'info locals' and
6513 'info args'.
6514 * symtab.c (_initialize_symtab): Add completer for 'info
6515 variables' and 'info functions'.
6516 * NEWS: Mention completion for additional info commands.
6517
6518 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6519
6520 * cli/cli-utils.c (extract_info_print_args): Delete.
6521 (extract_arg_maybe_quoted): Delete.
6522 (info_print_options_defs): New variable.
6523 (make_info_print_options_def_group): New function.
6524 (extract_info_print_options): Define new function.
6525 * cli/cli-utils.h (extract_info_print_args): Delete.
6526 (struct info_print_options): New structure.
6527 (extract_info_print_options): Declare new function.
6528 * stack.c (info_locals_command): Update to use new
6529 extract_info_print_options, also add a header comment.
6530 (info_args_command): Likewise.
6531 * symtab.c (info_variables_command): Likewise.
6532 (info_functions_command): Likewise.
6533
6534 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6535
6536 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6537 to extract string arguments.
6538 * common/common-utils.c (extract_string_maybe_quoted): New function.
6539 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6540
6541 2019-07-11 Tom Tromey <tromey@adacore.com>
6542
6543 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6544 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6545 * top.h (gdbinit): Don't declare.
6546 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6547 into...
6548 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6549 * top.c (gdb_init): Don't call init_cli_cmds.
6550 (gdbinit): Remove.
6551 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6552
6553 2019-07-11 Tom Tromey <tromey@adacore.com>
6554
6555 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6556 after it has been moved.
6557
6558 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6559
6560 * valops.c (value_must_coerce_to_target): Change return type to
6561 bool.
6562 * value.h (value_must_coerce_to_target): Likewise.
6563
6564 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6565
6566 * breakpoint.c (is_hardware_watchpoint): Remove
6567 forward-declaration.
6568 (is_masked_watchpoint): Change return type to bool.
6569 (is_tracepoint): Likewise.
6570 (is_breakpoint): Likewise.
6571 (is_hardware_watchpoint): Likewise.
6572 (is_watchpoint): Likewise.
6573 (is_no_memory_software_watchpoint): Likewise.
6574 (is_catchpoint): Likewise.
6575 (breakpoint_1): Make FILTER parameter's return type bool.
6576 is_masked_watchpoint): Change return type to bool.
6577 (save_breakpoints): Make FILTER parameter's return type bool.
6578 * breakpoint.h (is_breakpoint): Change return type to bool.
6579 (is_watchpoint): Likewise.
6580 (is_catchpoint): Likewise.
6581 (is_tracepoint): Likewise.
6582
6583 2019-07-10 Tom Tromey <tom@tromey.com>
6584
6585 * defs.h: Don't include gdbarch.h.
6586 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6587 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6588 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6589 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6590 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6591 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6592 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6593 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6594 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6595 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6596 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6597 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6598 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6599 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6600 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6601 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6602 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6603 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6604 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6605 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6606 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6607 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6608 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6609 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6610 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6611 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6612 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6613
6614 2019-07-10 Tom Tromey <tromey@adacore.com>
6615
6616 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6617 * breakpoint.c (init_ada_exception_breakpoint): Register as
6618 bp_catchpoint.
6619 (print_one_breakpoint_location, print_one_breakpoint): Use
6620 is_ada_exception_catchpoint.
6621 * ada-lang.c (class ada_catchpoint_location): Pass
6622 bp_loc_software_breakpoint to bp_location constructor.
6623 (is_ada_exception_catchpoint): New function.
6624
6625 2019-07-10 Tom Tromey <tromey@adacore.com>
6626
6627 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6628 VEC.
6629 (struct arm_exidx_entry): New method operator<.
6630 (struct arm_exidx_data) <section_maps>: Change type.
6631 (arm_exidx_data_free): Remove.
6632 (arm_exidx_data_key): Change type. Move lower.
6633 (arm_exidx_new_objfile): Update.
6634 (arm_compare_exidx_entries): Remove.
6635 (arm_find_exidx_entry, _initialize_arm_tdep)
6636
6637 2019-07-10 Tom Tromey <tromey@adacore.com>
6638
6639 * solib-spu.c (ocl_program_data_key): Change type.
6640 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6641 Update.
6642
6643 2019-07-10 Tom Tromey <tromey@adacore.com>
6644
6645 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6646 (struct solib_aix_inferior_data) <library_list>: Change type.
6647 (solib_aix_inferior_data_handle): Change type.
6648 (get_solib_aix_inferior_data): Update.
6649 (solib_aix_free_library_list): Remove.
6650 (library_list_start_library): Update.
6651 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6652 return type.
6653 (solib_aix_get_library_list)
6654 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6655 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6656
6657 2019-07-10 Tom Tromey <tromey@adacore.com>
6658
6659 * solib-dsbt.c (struct dsbt_info): Add initializers.
6660 (solib_dsbt_pspace_data): Change type.
6661 (dsbt_pspace_data_cleanup): Remove.
6662 (get_dsbt_info, _initialize_dsbt_solib): Update.
6663
6664 2019-07-10 Tom Tromey <tromey@adacore.com>
6665
6666 * spu-tdep.c (spu_overlay_data): Change type.
6667 (spu_get_overlay_table, spu_overlay_new_objfile)
6668 (_initialize_spu_tdep): Update.
6669
6670 2019-07-10 Tom Tromey <tromey@adacore.com>
6671
6672 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6673 destructor.
6674 (dbx_objfile_data_key): Change type and declare later.
6675 (DBX_SYMFILE_INFO): Rewrite.
6676 * dbxread.c (dbx_objfile_data_key): Change type.
6677 (dbx_symfile_init): Update.
6678 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6679 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6680 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6681
6682 2019-07-10 Tom Tromey <tromey@adacore.com>
6683
6684 * jit.c (jit_program_space_key): Change type. Move lower.
6685 (get_jit_program_space_data): Update.
6686 (jit_program_space_data_cleanup): Remove.
6687 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6688 Update.
6689 (struct jit_program_space_data): Add initializers.
6690
6691 2019-07-10 Tom Tromey <tromey@adacore.com>
6692
6693 * solib-darwin.c (struct darwin_info): Add initializers.
6694 (solib_darwin_pspace_data): Change type.
6695 (darwin_pspace_data_cleanup): Remove.
6696 (get_darwin_info, _initialize_darwin_solib): Update.
6697
6698 2019-07-10 Tom Tromey <tromey@adacore.com>
6699
6700 * remote-sim.c (struct sim_inferior_data): Add initializers,
6701 constructor, and destructor.
6702 (sim_inferior_data_key): Change type. Move lower.
6703 (check_for_duplicate_sim_descriptor): Update.
6704 (get_sim_inferior_data): Use new. Update.
6705 (~sim_inferior_data_cleanup): Rename from
6706 sim_inferior_data_cleanup. Simplify.
6707 (gdbsim_close_inferior, simulator_command)
6708 (sim_command_completer, _initialize_remote_sim): Update.
6709 (next_pid, INITIAL_PID): Move earlier.
6710
6711 2019-07-10 Tom Tromey <tromey@adacore.com>
6712
6713 * python/python-internal.h (create_thread_object): Return
6714 gdbpy_ref.
6715 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6716 * python/py-inferior.c (struct threadlist_entry): Add
6717 constructor.
6718 <thread_obj>: Now a gdbpy_ref.
6719 (thread_to_thread_object): Update.
6720 (add_thread_object): Use new.
6721 (delete_thread_object): Use delete.
6722 (infpy_threads): Update.
6723 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6724 GIL.
6725
6726 2019-07-10 Tom Tromey <tromey@adacore.com>
6727
6728 * valops.c (value_cast): Specialize error message for Ada.
6729
6730 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6731
6732 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6733
6734 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6735
6736 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6737 bpstat_should_step): Return bool, adjust comments.
6738 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6739 bpstat_should_step): Likewise.
6740
6741 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6742
6743 * features/Makefile: Use feature target descriptions for Arm.
6744 * features/arm/arm-core.c: Generate new file.
6745 * features/arm/arm-fpa.c: Likewise.
6746 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6747 * features/arm/arm-m-profile.c: Likewise.
6748 * features/arm/arm-vfpv2.c: Likewise.
6749 * features/arm/arm-vfpv3.c: Likewise.
6750 * features/arm/xscale-iwmmxt.c: Likewise.
6751 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6752
6753 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6754
6755 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6756 ptrace earlier.
6757
6758 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6759
6760 * features/aarch64-pauth.c: Regenerate.
6761
6762 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6763
6764 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6765 bool.
6766 (bpstat_what): Use false instead of 0.
6767
6768 2019-07-09 Pedro Alves <palves@redhat.com>
6769
6770 * break-catch-throw.c (is_exception_catchpoint): New.
6771 * breakpoint.c (print_one_breakpoint_location): New parameter
6772 'raw_loc'. Handle it. Use
6773 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6774 looking at the breakpoint's type.
6775 (print_one_breakpoint): If handling "maint info breakpoints", also
6776 print locations of exception catchpoints.
6777 * breakpoint.h (is_exception_catchpoint): Declare.
6778
6779 2019-07-09 Pedro Alves <palves@redhat.com>
6780
6781 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6782 "addr" field.
6783 (allocate_location_exception_catchpoint): New.
6784 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6785 (initialize_throw_catchpoint_ops): Install
6786 allocate_location_exception_catchpoint as allocate_location
6787 method.
6788 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6789 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6790 bp_loc_other.
6791 (breakpoint_address_is_meaningful): Delete.
6792 (bl_address_is_meaningful): New.
6793 (breakpoint_locations_match): Adjust comment.
6794 (bp_location_from_bp_type): New, factored out of...
6795 (bp_location::bp_location(breakpoint *)): ... this.
6796 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6797 factored out of...
6798 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6799 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6800 breakpoint_address_is_meaningful.
6801 (bp_locations_compare): Adjust comment.
6802 (update_global_location_list): Use bl_address_is_meaningful
6803 instead of breakpoint_address_is_meaningful.
6804 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6805 explicit.
6806 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6807 * python/py-breakpoint.c (bppy_get_location): No longer check
6808 whether location is null.
6809
6810 2019-07-09 Pedro Alves <palves@redhat.com>
6811
6812 PR c++/15468
6813 * breakpoint.c (print_one_breakpoint_location): Remove
6814 single-location assert.
6815
6816 2019-07-09 Tom Tromey <tom@tromey.com>
6817
6818 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6819 * configure: Rebuild.
6820 * configure.ac: Change common to gdbsupport.
6821 * gdbsupport: Rename from common.
6822 * acinclude.m4: Change common to gdbsupport.
6823 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6824 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6825 gdbsupport.
6826 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6827 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6828 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6829 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6830 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6831 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6832 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6833 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6834 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6835 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6836 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6837 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6838 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6839 coff-pe-read.c, command.h, compile/compile-c-support.c,
6840 compile/compile-c.h, compile/compile-cplus-symbols.c,
6841 compile/compile-cplus-types.c, compile/compile-cplus.h,
6842 compile/compile-loc2c.c, compile/compile.c, completer.c,
6843 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6844 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6845 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6846 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6847 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6848 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6849 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6850 features/aarch64-core.c, features/aarch64-fpu.c,
6851 features/aarch64-pauth.c, features/aarch64-sve.c,
6852 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6853 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6854 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6855 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6856 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6857 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6858 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6859 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6860 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6861 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6862 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6863 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6864 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6865 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6866 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6867 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6868 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6869 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6870 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6871 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6872 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6873 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6874 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6875 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6876 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6877 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6878 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6879 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6880 minsyms.c, mips-linux-tdep.c, namespace.h,
6881 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6882 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6883 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6884 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6885 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6886 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6887 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6888 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6889 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6890 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6891 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6892 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6893 procfs.c, producer.c, progspace.h, psymtab.h,
6894 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6895 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6896 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6897 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6898 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6899 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6900 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6901 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6902 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6903 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6904 target-memory.c, target.c, target.h, target/waitstatus.c,
6905 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6906 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6907 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6908 unittests/array-view-selftests.c,
6909 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6910 unittests/common-utils-selftests.c,
6911 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6912 unittests/format_pieces-selftests.c,
6913 unittests/function-view-selftests.c,
6914 unittests/lookup_name_info-selftests.c,
6915 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6916 unittests/mkdir-recursive-selftests.c,
6917 unittests/observable-selftests.c,
6918 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6919 unittests/parse-connection-spec-selftests.c,
6920 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6921 unittests/scoped_fd-selftests.c,
6922 unittests/scoped_mmap-selftests.c,
6923 unittests/scoped_restore-selftests.c,
6924 unittests/string_view-selftests.c, unittests/style-selftests.c,
6925 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6926 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6927 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6928 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6929 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6930 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6931
6932 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6933
6934 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6935 bool value.
6936 (decode_digits_ordinary): Set explicit_line field in sal.
6937 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6938 symtab_and_line that was set on an explicit line number in
6939 assembler code. Do always update the recorded symtab and line if
6940 we do skip the prologue.
6941
6942 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6943
6944 * breakpoint.c (set_breakpoint_location_function): Remove
6945 explicit_loc parameter.
6946 (momentary_breakpoint_from_master): Update call to
6947 set_breakpoint_location_function.
6948 (add_location_to_breakpoint): Likewise.
6949
6950 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6951
6952 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6953 required features based on default bfd type when no specific bfd
6954 is present.
6955
6956 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6957
6958 * NEWS: Mention that GDB printf and eval commands can now print
6959 C-style and Ada-style convenience var strings without
6960 calling the inferior.
6961 * printcmd.c (printf_c_string): Locally print GDB internal var
6962 instead of transiting via the inferior.
6963 (printf_wide_c_string): Likewise.
6964
6965 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6966
6967 PR breakpoints/25011
6968 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6969
6970 2019-07-04 Tom Tromey <tom@tromey.com>
6971
6972 PR tui/24724:
6973 * tui/tui-winsource.c (tui_clear_source_content): Update.
6974 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6975 (tui_update_breakpoint_info): Update.
6976 (tui_set_exec_info_content): Update.
6977 * tui/tui-source.c (tui_set_source_content_nil): Update.
6978 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6979 has_break.
6980 * tui/tui-data.h (enum tui_bp_flag): New.
6981 (tui_bp_flags): New enum flags type.
6982 (struct tui_source_element) <break_mode>: Change type. Rename
6983 from has_break.
6984 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6985 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6986 constants.
6987 * tui/tui-winsource.h: Fix comment.
6988
6989 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6990
6991 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6992 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6993 (store_fpregs_to_thread)
6994 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6995 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6996 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6997 (IWMMXT_REGS_SIZE): Add define.
6998 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6999 (fetch_vfp_regs, store_vfp_regs)
7000 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7001 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7002
7003 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7004
7005 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7006 defines.
7007 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7008 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7009 (ARM_INT_REGISTER_SIZE): ...to this.
7010 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7011 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7012 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7013 (arm_linux_collect_gregset, supply_nwfpe_register)
7014 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7015 defines.
7016 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7017 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7018 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7019 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7020 (arm_return_in_memory, arm_store_return_value)
7021 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7022 (arm_record_ld_st_multiple): Likewise.
7023 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7024 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7025
7026 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7027
7028 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7029 AARCH64_DISPLACED_MODIFIED_INSNS.
7030 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7031 (aarch64_displaced_step_copy_insn): Likewise.
7032 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7033 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7034 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7035 ARM_DISPLACED_MODIFIED_INSNS.
7036 * arm-tdep.c (arm_gdbarch_init): Likewise.
7037 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7038 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7039 (struct arm_displaced_step_closure): Use
7040 ARM_DISPLACED_MODIFIED_INSNS.
7041
7042 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7043
7044 * features/Makefile: Remove unused xml files.
7045 * features/aarch64.xml: Remove.
7046 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7047 * features/i386/amd64-avx-avx512.xml: Remove.
7048 * features/i386/amd64-avx-linux.xml: Remove.
7049 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7050 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7051 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7052 * features/i386/amd64-avx-mpx.xml: Remove.
7053 * features/i386/amd64-avx.xml: Remove.
7054 * features/i386/amd64-linux.xml: Remove.
7055 * features/i386/amd64-mpx-linux.xml: Remove.
7056 * features/i386/amd64-mpx.xml: Remove.
7057 * features/i386/amd64.xml: Remove.
7058 * features/i386/i386-avx-avx512-linux.xml: Remove.
7059 * features/i386/i386-avx-avx512.xml: Remove.
7060 * features/i386/i386-avx-linux.xml: Remove.
7061 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7062 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7063 * features/i386/i386-avx-mpx-linux.xml: Remove.
7064 * features/i386/i386-avx-mpx.xml: Remove.
7065 * features/i386/i386-avx.xml: Remove.
7066 * features/i386/i386-linux.xml: Remove.
7067 * features/i386/i386-mmx-linux.xml: Remove.
7068 * features/i386/i386-mmx.xml: Remove.
7069 * features/i386/i386-mpx-linux.xml: Remove.
7070 * features/i386/i386-mpx.xml: Remove.
7071 * features/i386/i386.xml: Remove.
7072 * features/i386/x32-avx-avx512-linux.xml: Remove.
7073 * features/i386/x32-avx-linux.xml: Remove.
7074 * features/i386/x32-linux.xml: Remove.
7075
7076 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7077
7078 * regformats/aarch64.dat: Remove.
7079 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7080 * regformats/i386/amd64-avx-linux.dat: Remove.
7081 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7082 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7083 * regformats/i386/amd64-linux.dat: Remove.
7084 * regformats/i386/amd64-mpx-linux.dat: Remove.
7085 * regformats/i386/amd64.dat: Remove.
7086 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7087 * regformats/i386/i386-avx-linux.dat: Remove.
7088 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7089 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7090 * regformats/i386/i386-linux.dat: Remove.
7091 * regformats/i386/i386-mmx-linux.dat: Remove.
7092 * regformats/i386/i386-mpx-linux.dat: Remove.
7093 * regformats/i386/i386.dat: Remove.
7094 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7095 * regformats/i386/x32-avx-linux.dat: Remove.
7096 * regformats/i386/x32-linux.dat: Remove.
7097
7098 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7099
7100 * aarch64-tdep.c: Remove xml self tests.
7101 * amd64-linux-tdep.c: Likewise.
7102 * amd64-tdep.c: Likewise.
7103 * i386-linux-tdep.c: Likewise.
7104 * i386-tdep.c: Likewise.
7105
7106 2019-07-03 Pedro Alves <palves@redhat.com>
7107
7108 PR cli/24732
7109 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7110 (pipe_cmd_option_defs): New.
7111 (make_pipe_cmd_options_def_group): New.
7112 (pipe_command): Use gdb::option::process_options.
7113 (pipe_command_completer): New function.
7114 (_initialize_cli_cmds): Install completer for "pipe" command.
7115
7116 2019-07-03 Pedro Alves <palves@redhat.com>
7117
7118 * cli/cli-option.c (union option_value) <string>: New field.
7119 (struct option_def_and_value): Add ctor, move ctor, dtor and
7120 use DISABLE_COPY_AND_ASSIGN.
7121 (option_def_and_value::clear_value): New.
7122 (parse_option, save_option_value_in_ctx, get_val_type_str)
7123 (add_setshow_cmds_for_options): Handle var_string.
7124 * cli-option.h (union option_def::var_address) <string>: New
7125 field.
7126 (struct string_option_def): New.
7127 * maint-test-options.c (struct test_options_opts): Add default
7128 ctor and use DISABLE_COPY_AND_ASSIGN.
7129 <string_opt>: New field.
7130 (test_options_opts::~test_options_opts): New.
7131 (test_options_opts::dump): Also dump "-string".
7132 (test_options_option_defs): Install "string.
7133
7134 2019-07-03 Pedro Alves <palves@redhat.com>
7135
7136 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7137 option_value with a null enumeration.
7138 (complete_options): Save the option values in the context.
7139 (save_option_value_in_ctx): New, factored out from ...
7140 (process_options): ... here.
7141 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7142 of the function.
7143 * maint-test-options.c (test_options_opts::dump): New, factored
7144 out from ...
7145 (maintenance_test_options_command_mode): ... here.
7146 (maintenance_test_options_command_completion_result): Delete.
7147 (maintenance_test_options_command_completion_text): Update
7148 comment.
7149 (maintenance_show_test_options_completion_result): Change
7150 prototype. Just print
7151 maintenance_test_options_command_completion_text.
7152 (save_completion_result): New.
7153 (maintenance_test_options_completer_mode): Pass options context to
7154 complete_options, and then save a dump.
7155 (_initialize_maint_test_options): Use add_cmd to install "maint
7156 show test-options-completion-result".
7157
7158 2019-07-03 Pedro Alves <palves@redhat.com>
7159
7160 * NEWS (New commands): Mention "with" and "maint with".
7161 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7162 (with_command, with_command_completer): New.
7163 (pipe_command): Adjust to new repeat_previous
7164 interface.
7165 (_initialize_cli_cmds): Install the "with" command and its "w"
7166 alias.
7167 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7168 declarations.
7169 * cli/cli-setshow.c (parse_cli_var_uinteger)
7170 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7171 argument strings for all var_types.
7172 (get_setshow_command_value_string): New, factored out from ...
7173 (do_show_command): ... this.
7174 * cli/cli-setshow.h: Include <string>.
7175 (get_setshow_command_value_string): Declare.
7176 * command.h (repeat_previous): Now returns const char *. Adjust
7177 comment.
7178 * maint.c: Include "cli/cli-cmds.h".
7179 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7180 (_initialize_maint_cmds): Register the "maintenance with" command.
7181 * top.c (repeat_previous): Move bits from pipe_command here:
7182 Return the saved command line, if any; error out if there's no
7183 command to relaunch.
7184
7185 2019-07-03 Pedro Alves <palves@redhat.com>
7186
7187 * NEWS (New commands): Mention "maint set/show test-settings"
7188 instead of "maint test-settings".
7189 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7190 (maintenance_test_settings_set_list): Rename to ...
7191 (maintenance_set_test_settings_list): ... this.
7192 (maintenance_test_settings_show_list): Rename to ...
7193 (maintenance_show_test_settings_list): ... this.
7194 (maintenance_test_settings_cmd): Delete.
7195 (maintenance_test_settings_set_cmd): ...
7196 (maintenance_set_test_settings_cmd): ... this.
7197 (maintenance_test_settings_show_cmd): ...
7198 (maintenance_show_test_settings_cmd): ... this.
7199 (maintenance_test_settings_show_value_cmd):
7200 (maintenance_show_test_settings_value_cmd): ... this.
7201 (_initialize_maint_test_settings): No longer install the "maint
7202 test-settings" prefix command. Rename "maint test-settings set"
7203 to "maint set test-settings", and "maint test-settings show" to
7204 "maint show test-settings". Adjust all subcommands.
7205
7206 2019-07-03 Pedro Alves <palves@redhat.com>
7207
7208 * maint-test-settings.c: Fix file's intro comment. Replace all
7209 references to "test-options" with references to "test-settings",
7210 in comments.
7211
7212 2019-07-03 Pedro Alves <palves@redhat.com>
7213
7214 * maint-test-settings.c (maintenance_test_settings_xxx)
7215 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7216 New.
7217 (maintenance_test_settings_enums): Use them.
7218 (maintenance_test_settings_enum): Default to
7219 maintenance_test_settings_xxx.
7220 (_initialize_maint_test_settings): Initialize
7221 MAINTENANCE_TEST_SETTINGS_FILENAME.
7222
7223 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7224
7225 * breakpoint.h (remove_breakpoints_inf): Change return type to
7226 void, move function documentation here.
7227 * breakpoint.c (remove_breakpoints_inf): Change return type to
7228 void, move function documentation to header.
7229
7230 2019-07-02 Pedro Alves <palves@redhat.com>
7231
7232 * NEWS (Completion improvements): Mention "info threads".
7233 * thread.c (struct info_threads_opts, info_threads_option_defs)
7234 (make_info_threads_options_def_group): New.
7235 (info_threads_command): Use gdb::option::process_options.
7236 (info_threads_command_completer): New.
7237 (_initialize_thread): Use gdb::option::build_help to build the
7238 help text for "info threads".
7239
7240 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7241
7242 * defs.h (generic_load): Move from here...
7243 * symfile.h (generic_load): ... to here. Rename name parameter
7244 to args.
7245 * symfile.c (generic_load): Add comment.
7246
7247 2019-07-01 Tom Tromey <tromey@adacore.com>
7248
7249 * dwarf2read.c
7250 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7251 declaration of without_params. Fix formatting.
7252
7253 2019-07-01 Tom Tromey <tromey@adacore.com>
7254
7255 * ada-exp.y (find_primitive_type): Update.
7256 * ada-lang.h (ada_lookup_symbol): Update.
7257 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7258 parameter.
7259 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7260
7261 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7262
7263 PR breakpoints/24541
7264 * gdbarch.c: Regenerate.
7265 * gdbarch.h: Regenerate.
7266 * gdbarch.sh: Add 'stap_adjust_register'.
7267 * i386-tdep.c: Include '<unordered_set>'.
7268 (i386_stap_adjust_register): New function.
7269 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7270 * stap-probe.c (stap_parse_register_operand): Call
7271 'gdbarch_stap_adjust_register'.
7272
7273 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7274
7275 PR python/24742
7276 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7277 * python/python.c (do_start_initialization): Use 'xmalloc'
7278 instead of 'PyMem_Malloc'.
7279
7280 2019-06-28 Tom Tromey <tromey@adacore.com>
7281
7282 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7283 for Ada.
7284
7285 2019-06-27 Tom Tromey <tromey@adacore.com>
7286
7287 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7288 objfile_key.
7289 (arm_find_mapping_symbol, arm_record_special_symbol)
7290 (_initialize_arm_tdep): Update.
7291 (arm_objfile_data_free): Remove.
7292
7293 2019-06-27 Tom Tromey <tromey@adacore.com>
7294
7295 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7296 to cp_print_static_field.
7297
7298 2019-06-26 Tom Tromey <tromey@adacore.com>
7299
7300 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7301 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7302 declare.
7303
7304 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7305
7306 * features/aarch64-core.c (create_feature_aarch64_core):
7307 Regenerate.
7308 * features/aarch64-core.xml: Add cpsr flags.
7309
7310 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7311
7312 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7313 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7314
7315 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7316
7317 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7318 field.
7319 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7320 use.
7321 (arm_record_special_symbol): Don't insert new symbol in sorted
7322 position, push it at the end.
7323
7324 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7325
7326 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7327 (arm_mapping_symbol_s): Remove.
7328 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7329 (arm_mapping_symbol_vec): New typedef.
7330 (struct arm_per_objfile): Add constructor.
7331 <section_maps>: Change type to
7332 std::unique_ptr<arm_mapping_symbol_vec[]>.
7333 (arm_compare_mapping_symbols): Remove.
7334 (arm_find_mapping_symbol): Adjust to section_maps type change.
7335 (arm_objfile_data_free): Call delete on arm_per_objfile.
7336 (arm_record_special_symbol): Adjust to section_maps type change.
7337 Allocate arm_per_objfile with new.
7338
7339 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7340
7341 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7342 with the command prefix.
7343
7344 2019-06-25 Tom Tromey <tom@tromey.com>
7345
7346 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7347 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7348
7349 2019-06-25 Tom Tromey <tom@tromey.com>
7350
7351 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7352 type.
7353 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7354 protected.
7355
7356 2019-06-25 Tom Tromey <tom@tromey.com>
7357
7358 * tui/tui-winsource.c
7359 (tui_source_window_base::set_is_exec_point_at): Add check against
7360 LOA_ADDRESS.
7361
7362 2019-06-25 Tom Tromey <tom@tromey.com>
7363
7364 * tui/tui-source.c (tui_set_source_content): Don't check before
7365 xfree.
7366 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7367
7368 2019-06-25 Tom Tromey <tom@tromey.com>
7369
7370 * tui/tui-winsource.h (tui_update_source_window_as_is)
7371 (tui_alloc_source_buffer, tui_line_is_displayed)
7372 (tui_addr_is_displayed): Change type of win_info.
7373 * tui/tui-winsource.c (tui_update_source_window_as_is)
7374 (tui_clear_source_content, tui_show_source_line)
7375 (tui_show_source_content, tui_source_window_base::refill)
7376 (tui_source_window_base::set_is_exec_point_at)
7377 (tui_source_window_base::set_is_exec_point_at)
7378 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7379 (tui_alloc_source_buffer, tui_line_is_displayed)
7380 (tui_addr_is_displayed): Change type of win_info. Update.
7381 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7382 (tui_source_window_base::do_make_visible_with_new_height):
7383 Update.
7384 * tui/tui-source.c (tui_set_source_content)
7385 (tui_set_source_content_nil)
7386 (tui_source_window::do_scroll_vertical): Update.
7387 * tui/tui-layout.c (show_layout): Update.
7388 * tui/tui-disasm.c (tui_set_disassem_content)
7389 (tui_disasm_window::do_scroll_vertical): Update.
7390 * tui/tui-data.h (tui_win_content): Remove.
7391 (struct tui_gen_win_info) <content, content_size>: Remove.
7392 (struct tui_source_element): Add initializers and destructor.
7393 (union tui_which_element, struct tui_win_element): Remove.
7394 (struct tui_source_window_base) <content>: New field.
7395 (struct tui_data_window): Remove destructor.
7396 (tui_alloc_content, tui_free_win_content)
7397 (tui_free_all_source_wins_content): Don't declare.
7398 * tui/tui-data.c (tui_initialize_static_data): Update.
7399 (init_content_element, tui_alloc_content): Remove.
7400 (~tui_gen_win_info): Update.
7401 (~tui_data_window, tui_free_all_source_wins_content)
7402 (tui_free_win_content, free_content, free_content_elements):
7403 Remove.
7404
7405 2019-06-25 Tom Tromey <tom@tromey.com>
7406
7407 * tui/tui-winsource.h (tui_clear_source_content)
7408 (tui_erase_source_content, tui_show_source_content): Change type
7409 of win_info.
7410 * tui/tui-winsource.c (tui_clear_source_content)
7411 (tui_erase_source_content, tui_show_source_content): Change type
7412 of win_info.
7413 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7414 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7415 win_info.
7416 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7417 win_info.
7418 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7419
7420 2019-06-25 Tom Tromey <tom@tromey.com>
7421
7422 * tui/tui-winsource.c (tui_clear_source_content)
7423 (tui_source_window_base::set_is_exec_point_at): Update.
7424 * tui/tui-source.c (tui_set_source_content_nil): Update.
7425 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7426 a bool.
7427 * tui/tui-data.c (init_content_element): Update.
7428
7429 2019-06-25 Tom Tromey <tom@tromey.com>
7430
7431 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7432 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7433 * tui/tui-layout.c (init_and_make_win): Update.
7434 * tui/tui.h (enum tui_win_type): Update.
7435 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7436 tui_win_is_auxillary.
7437 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7438 tui_win_is_auxillary.
7439
7440 2019-06-25 Tom Tromey <tom@tromey.com>
7441
7442 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7443 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7444 (tui_delete_data_content_windows, tui_display_all_data)
7445 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7446 Update.
7447 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7448 * tui/tui-regs.c (tui_last_regs_line_no)
7449 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7450 (tui_show_registers): Update.
7451 (tui_show_register_group): Return void. Update.
7452 (tui_display_registers_from, tui_display_reg_element_at_line)
7453 (tui_display_registers_from_line, tui_check_register_values):
7454 Update.
7455 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7456 member.
7457 (struct tui_data_window) <regs_content>: Now a std::vector.
7458 <regs_content_count>: Remove.
7459 (tui_add_content_elements, tui_free_data_content): Don't declare.
7460 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7461 (init_content_element): Remove DATA_WIN case. Add assert.
7462 (tui_add_content_elements): Remove.
7463 (tui_data_window): Update.
7464 (tui_free_data_content): Remove.
7465 (free_content_elements): Remove DATA_WIN case.
7466
7467 2019-06-25 Tom Tromey <tom@tromey.com>
7468
7469 * tui/tui-data.c (tui_data_item_window): Update.
7470 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7471 * tui/tui-windata.c (tui_display_all_data)
7472 (tui_display_data_from_line): Update.
7473 (tui_check_data_values): Remove.
7474 * tui/tui-regs.c (tui_show_register_group)
7475 (tui_display_reg_element_at_line): Update.
7476 * tui/tui-hooks.c (tui_register_changed)
7477 (tui_refresh_frame_and_register_information): Call
7478 tui_check_register_values.
7479 * tui/tui-data.h (struct tui_data_window) <data_content,
7480 data_content_count, data_type>: Remove.
7481 (enum tui_data_type): Remove.
7482
7483 * tui/tui-data.c (tui_data_window::clear_detail)
7484 (~tui_data_window): Update.
7485
7486 2019-06-25 Tom Tromey <tom@tromey.com>
7487
7488 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7489 declare.
7490 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7491 Rename from tui_first_data_item_displayed. Update.
7492 (tui_data_window::refresh_all)
7493 (tui_data_window::do_scroll_vertical): Update.
7494 * tui/tui-data.h (struct tui_data_window)
7495 <first_data_item_displayed>: Declare new method.
7496
7497 2019-06-25 Tom Tromey <tom@tromey.com>
7498
7499 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7500 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7501 contents...
7502 (tui_initialize_static_data): ...here.
7503
7504 2019-06-25 Tom Tromey <tom@tromey.com>
7505
7506 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7507 (tui_display_registers_from, tui_check_register_values): Update.
7508 (tui_display_register): Remove win_info parameter; update.
7509 (tui_get_register): Change type of parameters.
7510 * tui/tui-data.h (struct tui_data_element): Remove.
7511 (union tui_which_element) <data>: Remove.
7512 <data_window>: Change type.
7513 (struct tui_data_item_window): New.
7514 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7515 case. Add assert.
7516 (~tui_data_item_window): New destructor.
7517 (free_content_elements): Remove DATA_ITEM_WIN case.
7518
7519 2019-06-25 Tom Tromey <tom@tromey.com>
7520
7521 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7522 Remove.
7523
7524 2019-06-25 Tom Tromey <tom@tromey.com>
7525
7526 * tui/tui-data.h (struct tui_command_element): Remove.
7527 (union tui_which_element) <command>: Remove.
7528 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7529 assert.
7530 (free_content_elements): Remove CMD_WIN case.
7531
7532 2019-06-25 Tom Tromey <tom@tromey.com>
7533
7534 * tui/tui-layout.c (tui_set_layout): Update.
7535 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7536 * tui/tui-data.c (layout_def): Update.
7537
7538 2019-06-25 Tom Tromey <tom@tromey.com>
7539
7540 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7541 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7542 (tui_source_window_base::set_new_height): Update.
7543 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7544 Update.
7545 (tui_set_locator_fullname, tui_set_locator_info)
7546 (tui_show_frame_info): Update.
7547 * tui/tui-source.c (tui_set_source_content)
7548 (tui_source_is_displayed): Update.
7549 * tui/tui-layout.c (show_source_disasm_command, show_data)
7550 (show_source_or_disasm_and_command): Update.
7551 * tui/tui-disasm.c (tui_set_disassem_content)
7552 (tui_get_begin_asm_address): Update.
7553 * tui/tui-data.h (struct tui_locator_element): Remove.
7554 (union tui_which_element) <locator>: Remove.
7555 (struct tui_locator_window): New.
7556 (tui_locator_win_info_ptr): Change return type.
7557 * tui/tui-data.c (_locator): Change type.
7558 (tui_locator_win_info_ptr): Change return type.
7559 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7560 (tui_alloc_content): Add assert.
7561
7562 2019-06-25 Tom Tromey <tom@tromey.com>
7563
7564 * tui/tui-winsource.c
7565 (tui_exec_info_window::maybe_allocate_content): New method.
7566 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7567 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7568 (make_source_or_disasm_window): Add cast.
7569 * tui/tui-data.h (union tui_which_element) <simple_string>:
7570 Remove.
7571 (struct tui_source_info): New.
7572 (struct tui_source_window_base) <execution_info>: Change type.
7573 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7574 case, and add assert.
7575 (tui_alloc_content): Add assert.
7576
7577 2019-06-25 Tom Tromey <tom@tromey.com>
7578
7579 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7580 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7581 * tui/tui-data.c (tui_alloc_win_info): Remove.
7582
7583 2019-06-25 Tom Tromey <tom@tromey.com>
7584
7585 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7586 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7587 can_highlight.
7588
7589 2019-06-25 Tom Tromey <tom@tromey.com>
7590
7591 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7592 make_visible_with_new_height method.
7593 (tui_win_info::make_visible_with_new_height): New method.
7594 (tui_source_window_base::do_make_visible_with_new_height)
7595 (tui_data_window::do_make_visible_with_new_height)
7596 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7597 (make_visible_with_new_height): Remove.
7598 (tui_resize_all, tui_adjust_win_heights): Use
7599 make_visible_with_new_height method.
7600 * tui/tui-data.h (struct tui_win_info)
7601 <do_make_visible_with_new_height, make_visible_with_new_height>:
7602 New methods.
7603 (struct tui_source_window_base, struct tui_data_window)
7604 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7605 methods.
7606
7607 2019-06-25 Tom Tromey <tom@tromey.com>
7608
7609 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7610 method.
7611 (update_tab_width): Call update_tab_width method.
7612 * tui/tui-data.h (struct tui_win_info)
7613 (struct tui_source_window_base) <update_tab_width>: New methods.
7614
7615 2019-06-25 Tom Tromey <tom@tromey.com>
7616
7617 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7618 parameter.
7619 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7620 parameter.
7621 (tui_gen_win_info::make_visible): Update.
7622 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7623 parameter.
7624 * tui/tui-data.h (enum tui_box): New enum.
7625 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7626
7627 2019-06-25 Tom Tromey <tom@tromey.com>
7628
7629 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7630 init_and_make_win for EXEC_INFO_WIN.
7631 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7632 longer inline.
7633 (struct tui_win_info) <~tui_win_info>: Inline.
7634 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7635 Don't declare.
7636 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7637 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7638 Remove.
7639 (tui_initialize_static_data): Update.
7640 (~tui_gen_win_info): Handle more cleanup here.
7641 (~tui_source_window_base): Delete "execution_info".
7642 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7643
7644 2019-06-25 Tom Tromey <tom@tromey.com>
7645
7646 * tui/tui-layout.c (make_command_window): Don't set
7647 can_highlight.
7648 (show_source_disasm_command): Call the reset method.
7649 (show_data): Don't set can_highlight. Call the reset method.
7650 (tui_gen_win_info::reset): Rename from init_gen_win_info
7651 (init_and_make_win): Simplify. Return tui_gen_win_info.
7652 (show_source_or_disasm_and_command): Call the reset method.
7653 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7654 (struct tui_cmd_window): Set can_highlight.
7655
7656 2019-06-25 Tom Tromey <tom@tromey.com>
7657
7658 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7659 from make_visible.
7660 (tui_make_visible, tui_make_invisible): Rewrite.
7661 (tui_win_info::make_visible): Remove.
7662 (tui_source_window_base::make_visible): Update.
7663 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7664 method. Moved from...
7665 (struct tui_win_info) <make_visible>: ...here.
7666
7667 2019-06-25 Tom Tromey <tom@tromey.com>
7668
7669 * tui/tui-winsource.c
7670 (tui_source_window_base::do_scroll_horizontal): Remove direction
7671 parameter.
7672 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7673 direction parameter.
7674 * tui/tui-win.c (tui_win_info::forward_scroll)
7675 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7676 (tui_win_info::right_scroll): Update.
7677 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7678 direction parameter.
7679 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7680 direction parameter.
7681 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7682 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7683 Remove direction parameter.
7684 (struct tui_source_window_base, struct tui_source_window)
7685 (struct tui_disasm_window, struct tui_data_window)
7686 (struct tui_cmd_window): Update.
7687
7688 2019-06-25 Tom Tromey <tom@tromey.com>
7689
7690 * tui/tui-winsource.h (tui_set_exec_info_content)
7691 (tui_show_exec_info_content, tui_erase_exec_info_content)
7692 (tui_clear_exec_info_content, tui_update_exec_info): Change
7693 argument to tui_source_window_base.
7694 * tui/tui-winsource.c (tui_set_exec_info_content)
7695 (tui_show_exec_info_content, tui_erase_exec_info_content)
7696 (tui_clear_exec_info_content, tui_update_exec_info): Change
7697 argument to tui_source_window_base.
7698
7699 2019-06-25 Tom Tromey <tom@tromey.com>
7700
7701 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7702 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7703
7704 2019-06-25 Tom Tromey <tom@tromey.com>
7705
7706 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7707 check.
7708
7709 2019-06-25 Tom Tromey <tom@tromey.com>
7710
7711 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7712 type to void.
7713 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7714 type to void.
7715 * tui/tui-source.c (tui_set_source_content): Update.
7716 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7717
7718 2019-06-25 Tom Tromey <tom@tromey.com>
7719
7720 * tui/tui-win.c (window_name_completer, tui_set_focus)
7721 (tui_all_windows_info): Use name method.
7722 * tui/tui-data.h (struct tui_gen_win_info)
7723 (struct tui_source_window, struct tui_disasm_window)
7724 (struct tui_data_window, struct tui_cmd_window) <name>: New
7725 method.
7726 (tui_win_name): Don't declare.
7727 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7728 (tui_win_name): Remove.
7729
7730 2019-06-25 Tom Tromey <tom@tromey.com>
7731
7732 * tui/tui-winsource.h (tui_update_source_window)
7733 (tui_update_source_window_as_is): Change parameter type.
7734 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7735 to be a tui_source_window_base.
7736 (tui_update_source_window_as_is): Likewise.
7737 * tui/tui-win.c (make_visible_with_new_height): Update.
7738
7739 2019-06-25 Tom Tromey <tom@tromey.com>
7740
7741 * tui/tui-winsource.c (tui_erase_source_content)
7742 (tui_show_source_content, tui_show_exec_info_content)
7743 (tui_erase_exec_info_content): Use refresh_window method.
7744 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7745 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7746 from tui_refresh_win.
7747 (tui_data_window::refresh_window): New method.
7748 (tui_win_info::refresh, tui_source_window_base::refresh)
7749 (tui_refresh_all): Use refresh_window method.
7750 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7751 method.
7752 * tui/tui-regs.c (tui_display_register): Call refresh_window
7753 method.
7754 * tui/tui-layout.c (show_source_disasm_command)
7755 (show_source_or_disasm_and_command): Call refresh_window method.
7756 * tui/tui-data.h (struct tui_gen_win_info)
7757 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7758 New method.
7759
7760 2019-06-25 Tom Tromey <tom@tromey.com>
7761
7762 * tui/tui.c (tui_rl_other_window, tui_enable)
7763 (tui_is_window_visible, tui_get_command_dimension): Update.
7764 * tui/tui-winsource.c (tui_update_source_window_as_is)
7765 (tui_clear_source_content, tui_erase_source_content)
7766 (tui_show_source_line, tui_source_window_base::refill)
7767 (tui_source_window_base::do_scroll_horizontal)
7768 (tui_source_window_base::set_is_exec_point_at)
7769 (tui_update_breakpoint_info, tui_set_exec_info_content)
7770 (tui_alloc_source_buffer, tui_line_is_displayed)
7771 (tui_addr_is_displayed): Update.
7772 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7773 (tui_check_and_display_highlight_if_needed)
7774 (tui_win_info::make_visible, tui_win_info::refresh)
7775 (tui_refresh_all): Update.
7776 * tui/tui-windata.c (tui_first_data_item_displayed)
7777 (tui_delete_data_content_windows, tui_erase_data_content)
7778 (tui_display_all_data, tui_data_window::refresh_all)
7779 (tui_check_data_values): Update.
7780 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7781 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7782 (tui_win_info::backward_scroll, tui_refresh_all_win)
7783 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7784 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7785 (tui_source_window_base::set_new_height)
7786 (tui_data_window::set_new_height)
7787 (make_invisible_and_set_new_height)
7788 (make_visible_with_new_height, new_height_ok)
7789 (parse_scrolling_args): Update.
7790 * tui/tui-stack.c (tui_show_frame_info): Update.
7791 * tui/tui-source.c (tui_set_source_content)
7792 (tui_set_source_content_nil, tui_source_is_displayed)
7793 (tui_source_window::do_scroll_vertical): Update.
7794 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7795 (tui_display_registers_from, tui_display_reg_element_at_line)
7796 (tui_check_register_values, tui_reg_command): Update.
7797 * tui/tui-layout.c (tui_default_win_height)
7798 (show_source_disasm_command, show_data, init_and_make_win)
7799 (show_source_or_disasm_and_command): Update.
7800 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7801 (tui_redisplay_readline, tui_mld_flush)
7802 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7803 (tui_getc): Update.
7804 * tui/tui-disasm.c (tui_set_disassem_content)
7805 (tui_disasm_window::do_scroll_vertical): Update.
7806 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7807 Now virtual.
7808 (struct tui_win_info): Derive from tui_gen_win_info.
7809 <~tui_win_info>: Mark as override.
7810 <generic>: Remove member.
7811 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7812 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7813 (~tui_data_window, ~tui_win_info)
7814 (tui_free_all_source_wins_content): Update.
7815 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7816
7817 2019-06-25 Tom Tromey <tom@tromey.com>
7818
7819 * tui/tui-layout.c (init_and_make_win): Use new.
7820 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7821 destructor, initializers.
7822 (tui_alloc_generic_win_info): Don't declare.
7823 * tui/tui-data.c (_locator): Add argument to constructor.
7824 (source_win, disasm_win): New globals.
7825 (exec_info): Remove.
7826 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7827 Update.
7828 (tui_alloc_generic_win_info): Remove.
7829 (init_content_element): Use new.
7830 (tui_win_info::tui_win_info): Update.
7831 (free_content_elements) <case DATA_WIN>: Use delete.
7832
7833 2019-06-25 Tom Tromey <tom@tromey.com>
7834
7835 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7836 * tui/tui-windata.c (tui_first_data_item_displayed)
7837 (tui_delete_data_content_windows): Update.
7838 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7839 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7840 (tui_display_registers_from, tui_check_register_values): Update.
7841 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7842 pointer.
7843 * tui/tui-data.c (init_content_element): Update. Allocate the new
7844 window.
7845 (tui_free_data_content): Update.
7846 (free_content_elements) <case DATA_WIN>: Free the window.
7847
7848 2019-06-25 Tom Tromey <tom@tromey.com>
7849
7850 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7851 Update.
7852 * tui/tui-layout.c (make_command_window)
7853 (show_source_disasm_command, show_data, init_and_make_win)
7854 (show_source_or_disasm_and_command): Update.
7855 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7856 method.
7857 <can_highight, is_highlighted>: Now bool.
7858 (tui_set_win_highlight): Don't declare.
7859 * tui/tui-data.c (tui_set_win_highlight): Remove.
7860
7861 2019-06-25 Tom Tromey <tom@tromey.com>
7862
7863 * tui/tui-wingeneral.c (make_visible): Remove check of window
7864 type.
7865
7866 2019-06-25 Tom Tromey <tom@tromey.com>
7867
7868 * tui/tui-win.c (tui_win_info::max_height)
7869 (tui_cmd_window::max_height): New methods.
7870 (new_height_ok): Call max_height.
7871 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7872 <max_height>: New method.
7873
7874 2019-06-25 Tom Tromey <tom@tromey.com>
7875
7876 * tui/tui-win.c (tui_source_window_base::set_new_height)
7877 (tui_data_window::set_new_height): New methods.
7878 (make_invisible_and_set_new_height): Call set_new_height method.
7879 * tui/tui-data.h (struct tui_win_info)
7880 (struct tui_source_window_base, struct tui_data_window)
7881 <set_new_height>: New method.
7882
7883 2019-06-25 Tom Tromey <tom@tromey.com>
7884
7885 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7886 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7887 tui_refresh_data_win.
7888 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7889 method.
7890 (tui_refresh_all_win): Call the refresh_all method.
7891 (tui_set_focus): Likewise.
7892 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7893 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7894 Likewise.
7895
7896 2019-06-25 Tom Tromey <tom@tromey.com>
7897
7898 * tui/tui-winsource.h (tui_refill_source_window)
7899 (tui_set_is_exec_point_at): Don't declare.
7900 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7901 (tui_source_window_base::refill): Rename from
7902 tui_refill_source_window.
7903 (tui_source_window_base::do_scroll_horizontal): Update.
7904 (tui_source_window_base::set_is_exec_point_at): Rename from
7905 tui_set_is_exec_point_at.
7906 (tui_update_all_breakpoint_info): Update.
7907 * tui/tui-stack.c (tui_show_frame_info): Update.
7908 * tui/tui-layout.c (show_data): Add cast.
7909 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7910 * tui/tui-data.h (struct tui_source_window_base) <refill,
7911 set_is_exec_point_at>: New methods.
7912 (tui_source_windows, tui_add_to_source_windows): Update types.
7913 (tui_add_to_source_windows): Remove redundant declaration.
7914 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7915 (tui_source_windows): Change return type.
7916 (tui_clear_source_windows_detail): Update.
7917 (tui_add_to_source_windows): Change type of parameter.
7918 (tui_free_all_source_wins_content): Update.
7919
7920 2019-06-25 Tom Tromey <tom@tromey.com>
7921
7922 * tui/tui-wingeneral.c (tui_win_info::refresh)
7923 (tui_source_window_base::refresh): New methods.
7924 (tui_refresh_all): Call the refresh method.
7925 * tui/tui-data.h (struct tui_win_info)
7926 (struct tui_source_window_base) <refresh>: New method.
7927
7928 2019-06-25 Tom Tromey <tom@tromey.com>
7929
7930 * tui/tui.h (tui_is_window_visible): Return bool.
7931 * tui/tui.c (tui_is_window_visible): Return bool.
7932 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7933 (tui_make_visible, tui_make_invisible)
7934 (tui_win_info::make_visible)
7935 (tui_source_window_base::make_visible, make_all_visible)
7936 (tui_make_all_visible, tui_make_all_invisible): Update.
7937 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7938 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7939 bool.
7940 (struct tui_win_info, struct tui_source_window_base)
7941 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7942 * tui/tui-data.c (tui_init_generic_part): Update.
7943
7944 2019-06-25 Tom Tromey <tom@tromey.com>
7945
7946 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7947 (tui_source_window_base::make_visible): New methods.
7948 (make_all_visible): Make method call.
7949 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7950 (struct tui_source_window_base, struct tui_cmd_window): Override
7951 make_visible.
7952 (tui_win_is_source_type): Don't declare.
7953 * tui/tui-data.c (tui_win_is_source_type): Remove.
7954
7955 2019-06-25 Tom Tromey <tom@tromey.com>
7956
7957 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7958 NULL check.
7959
7960 2019-06-25 Tom Tromey <tom@tromey.com>
7961
7962 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7963 Inline constructor. Add initializers for members.
7964 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7965 constructors; now inline in class.
7966
7967 2019-06-25 Tom Tromey <tom@tromey.com>
7968
7969 * tui/tui-regs.c (tui_show_registers): Update.
7970 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7971 bool.
7972 * tui/tui-data.c (tui_data_window::clear_detail)
7973 (tui_data_window): Update.
7974
7975 2019-06-25 Tom Tromey <tom@tromey.com>
7976
7977 * tui/tui-windata.c (tui_display_all_data)
7978 (tui_display_data_from_line, tui_display_data_from)
7979 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7980 Update.
7981 * tui/tui-regs.c (tui_last_regs_line_no)
7982 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7983 (tui_show_registers, tui_show_register_group)
7984 (tui_display_registers_from, tui_display_reg_element_at_line)
7985 (tui_display_registers_from_line, tui_check_register_values)
7986 (tui_reg_next, tui_reg_prev): Update.
7987 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7988 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7989 tui_data_window.
7990 (struct tui_win_info) <detail>: Remove. Add new fields from
7991 tui_data_info.
7992 (TUI_DATA_WIN): Add cast.
7993 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7994 (~tui_data_window): Simplify.
7995
7996 2019-06-25 Tom Tromey <tom@tromey.com>
7997
7998 * tui/tui-layout.c (show_source_disasm_command)
7999 (show_source_or_disasm_and_command): Update.
8000 * tui/tui-io.c (update_cmdwin_start_line)
8001 (tui_redisplay_readline): Update.
8002 * tui/tui-data.h (struct tui_command_info): Remove.
8003 (struct tui_win_info) <detail>: Remove command_info member.
8004 (struct tui_data_window) <start_line>: New member, from
8005 tui_command_info.
8006 (TUI_CMD_WIN): Add casts.
8007
8008 2019-06-25 Tom Tromey <tom@tromey.com>
8009
8010 * tui/tui-winsource.c (tui_update_source_window)
8011 (tui_refill_source_window)
8012 (tui_source_window_base::do_scroll_horizontal)
8013 (tui_update_breakpoint_info, tui_set_exec_info_content)
8014 (tui_show_exec_info_content, tui_erase_exec_info_content)
8015 (tui_clear_exec_info_content): Update.
8016 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8017 Update.
8018 * tui/tui-win.c (make_invisible_and_set_new_height)
8019 (make_visible_with_new_height): Update.
8020 * tui/tui-source.c (tui_set_source_content)
8021 (tui_show_symtab_source): Update.
8022 * tui/tui-layout.c (extract_display_start_addr)
8023 (show_source_disasm_command, show_data)
8024 (make_source_or_disasm_window)
8025 (show_source_or_disasm_and_command): Update.
8026 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8027 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8028 "gdbarch".
8029 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8030 to tui_source_window_base.
8031 (struct tui_win_info) <detail>: Remove source_info member.
8032 (struct tui_source_window_base) <has_locator>: Inline.
8033 Move contents from tui_source_info; rename has_locator member to
8034 m_has_locator.
8035 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8036 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8037 header file.
8038 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8039 Simplify.
8040 (tui_free_all_source_wins_content): Cast to
8041 tui_source_window_base.
8042
8043 2019-06-25 Tom Tromey <tom@tromey.com>
8044
8045 * tui/tui-win.c (make_invisible_and_set_new_height)
8046 (make_visible_with_new_height): Call has_locator method.
8047 * tui/tui-layout.c (show_source_disasm_command, show_data)
8048 (show_source_or_disasm_and_command): Update for bool change.
8049 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8050 (tui_win_info) <has_locator>: New method.
8051 (struct tui_source_window_base) <has_locator>: New method.
8052 (tui_win_has_locator): Don't declare.
8053 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8054 from tui_win_has_locator.
8055 (tui_source_window_base): Use false, not FALSE.
8056
8057 2019-06-25 Tom Tromey <tom@tromey.com>
8058
8059 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8060 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8061 clear_detail method directly.
8062 (tui_clear_win_detail): Remove.
8063
8064 2019-06-25 Tom Tromey <tom@tromey.com>
8065
8066 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8067 "this", not TUI_DISASM_WIN.
8068
8069 2019-06-25 Tom Tromey <tom@tromey.com>
8070
8071 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8072 declare.
8073 * tui/tui-winsource.c
8074 (tui_source_window_base::do_scroll_horizontal): Rename from
8075 tui_horizontal_source_scroll.
8076 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8077 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8078 from tui_vertical_data_scroll.
8079 * tui/tui-win.h (tui_scroll): Don't declare.
8080 * tui/tui-win.c (tui_win_info::forward_scroll)
8081 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8082 (tui_win_info::right_scroll): Rename and update.
8083 (tui_scroll_forward_command, tui_scroll_backward_command)
8084 (tui_scroll_left_command, tui_scroll_right_command): Update.
8085 (tui_scroll): Remove.
8086 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8087 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8088 from tui_vertical_source_scroll.
8089 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8090 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8091 from tui_vertical_disassem_scroll.
8092 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8093 do_scroll_horizontal>: New methods.
8094 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8095 Likewise.
8096 (struct tui_source_window_base): Add do_scroll_horizontal.
8097 (struct tui_source_window, struct tui_disasm_window): Add
8098 do_scroll_vertical.
8099 (struct tui_data_window, struct tui_cmd_window): Add
8100 do_scroll_horizontal and do_scroll_vertical.
8101 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8102
8103 2019-06-25 Tom Tromey <tom@tromey.com>
8104
8105 * tui/tui-data.h (struct tui_source_window_base): New struct.
8106 (struct tui_source_window): Derive from tui_source_window_base.
8107 (struct tui_disasm_window): New struct.
8108 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8109 from tui_source_window::clear_detail.
8110 (tui_source_window_base): Rename from tui_source_window.
8111 (~tui_source_window_base): Rename from ~tui_source_window.
8112 (tui_alloc_win_info): Create a tui_disasm_window.
8113
8114 2019-06-25 Tom Tromey <tom@tromey.com>
8115
8116 * tui/tui-data.h (struct tui_source_window)
8117 (struct tui_data_window): Declare destructors.
8118 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8119 destructors.
8120 (tui_win_info): Simplify.
8121
8122 2019-06-25 Tom Tromey <tom@tromey.com>
8123
8124 * tui/tui-winsource.c (tui_display_main)
8125 (tui_update_source_windows_with_addr)
8126 (tui_update_all_breakpoint_info): Update.
8127 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8128 (new_height_ok, parse_scrolling_args): Update.
8129 * tui/tui-stack.c (tui_show_frame_info): Update.
8130 * tui/tui-data.h (struct tui_list): Remove.
8131 (tui_source_windows): Return a reference to a std::vector.
8132 * tui/tui-data.c (source_windows): Now a std::vector.
8133 (tui_source_windows): Change return type.
8134 (tui_clear_source_windows): Rewrite.
8135 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8136 (tui_free_all_source_wins_content): Rewrite.
8137
8138 2019-06-25 Tom Tromey <tom@tromey.com>
8139
8140 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8141 (struct tui_data_window, struct tui_cmd_window): Declare
8142 clear_detail method.
8143 * tui/tui-data.c (tui_source_window::clear_detail)
8144 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8145 methods.
8146 (tui_clear_win_detail): Simplify.
8147
8148 2019-06-25 Tom Tromey <tom@tromey.com>
8149
8150 * tui/tui-layout.c (make_source_window, make_disasm_window)
8151 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8152 Return the new window.
8153 (show_source_disasm_command, show_data)
8154 (show_source_or_disasm_and_command): Update.
8155
8156 2019-06-25 Tom Tromey <tom@tromey.com>
8157
8158 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8159 parameter. Return the new window.
8160 (show_source_disasm_command): Update and remove NULL check.
8161 (show_source_or_disasm_and_command): Update.
8162
8163 2019-06-25 Tom Tromey <tom@tromey.com>
8164
8165 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8166
8167 2019-06-25 Tom Tromey <tom@tromey.com>
8168
8169 * tui/tui-data.h (struct tui_win_info): Make constructor
8170 protected. Make destructor virtual. Add initializers.
8171 (tui_source_window, tui_data_window, tui_cmd_window): New
8172 classes.
8173 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8174 constructor. Add "type" parameter.
8175 (tui_source_window, tui_data_window, tui_cmd_window): New
8176 constructors.
8177 (tui_alloc_win_info): Instantiate the appropriate subclass.
8178
8179 2019-06-25 Tom Tromey <tom@tromey.com>
8180
8181 * tui/tui-win.c (tui_resize_all): Use delete.
8182 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8183 destructor.
8184 (tui_free_window): Don't declare.
8185 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8186 Update.
8187
8188 2019-06-25 Tom Tromey <tom@tromey.com>
8189
8190 * tui/tui-data.h (struct tui_win_info): Add constructor.
8191 * tui/tui-data.c (tui_alloc_win_info): Use new.
8192 (tui_free_window): Use delete.
8193
8194 2019-06-22 Tom Tromey <tom@tromey.com>
8195
8196 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8197 declare.
8198 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8199
8200 2019-06-22 Tom Tromey <tom@tromey.com>
8201
8202 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8203 declare.
8204 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8205
8206 2019-06-22 Tom de Vries <tdevries@suse.de>
8207
8208 * dwarf2read.c (create_addrmap_from_aranges)
8209 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8210 instead of '%zu'.
8211
8212 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8213
8214 * dwarf2read.h (dwarf2_section_info_def): Remove.
8215 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8216 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8217 std::vector<dwarf2_section_info>.
8218 (struct dwo_file) <~dwo_file>: Remove.
8219 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8220 types field.
8221 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8222 (dwarf2_read_debug_names): Likewise.
8223 (create_debug_types_hash_table): Change parameter type to
8224 array_view, adjust code accordingly.
8225 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8226 (partial_die_info::fixup): Likewise.
8227 (determine_prefix): Likewise.
8228 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8229
8230 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8231
8232 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8233 gdb_bfd_ref_ptr.
8234 <~dwo_file>: Remove call to gdb_bfd_unref.
8235 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8236 gdb_bfd_ref_ptr::get.
8237
8238 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8239
8240 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8241 type to htab_up.
8242 * dwarf2read.c (struct dwo_file): Initialize fields.
8243 <~dwo_file>: New.
8244 (free_dwo_file): Remove, move content to ~dwo_file.
8245 (struct dwo_file_deleter): Remove.
8246 (dwo_file_up>: Remove custom deleter.
8247 (free_dwo_files): Remove.
8248 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8249 dwo_files.
8250 (process_skeletonless_type_units): Call unique_ptr::get.
8251 (allocate_dwo_file_hash_table): Add deleter to created hash
8252 table. Change return type to htab_up.
8253 (lookup_dwo_file_slot): Don't memset dwo_file, call
8254 unique_ptr::get.
8255 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8256 (create_dwo_unit_in_dwp_v2): Likewise.
8257 (open_and_init_dwo_file): Likewise.
8258 (free_dwo_file_from_slot): Remove.
8259
8260 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8261
8262 * dwarf2read.h (struct dwarf2_section_info) <readin,
8263 is_virtual>: Change type to bool.
8264 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8265 true instead of 1.
8266
8267 2019-06-19 Tom Tromey <tom@tromey.com>
8268
8269 * tui/tui-data.h (tui_init_content_element): Don't declare.
8270
8271 2019-06-19 Tom Tromey <tom@tromey.com>
8272
8273 * tui/tui-data.h (tui_init_win_info): Don't declare.
8274
8275 2019-06-19 Tom de Vries <tdevries@suse.de>
8276
8277 * dwarf2read.h (abstract_to_concrete): Change type to
8278 std::unordered_map<sect_offset, std::vector<sect_offset>,
8279 gdb::hash_enum<sect_offset>>.
8280
8281 2019-06-19 Tom Tromey <tromey@adacore.com>
8282
8283 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8284 EVAL_AVOID_SIDE_EFFECTS specially.
8285
8286 2019-06-19 Tom Tromey <tromey@adacore.com>
8287
8288 * source-cache.c (highlighter): New global.
8289 (source_cache::get_source_lines): Create a highlighter on demand.
8290
8291 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8292
8293 * defs.h (deprecated_interactive_hook): Delete declaration.
8294 * interps.c (clear_interpreter_hooks): Remove use of
8295 deprecated_interactive_hook.
8296 * top.c (deprecated_interactive_hook): Delete definition.
8297 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8298
8299 2019-06-18 Tom de Vries <tdevries@suse.de>
8300
8301 PR gdb/24515
8302 * dwarf2read.h (abstract_to_concrete): Change type from
8303 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8304 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8305 * dwarf2read.c (read_variable): Update.
8306 (dwarf2_fetch_die_loc_sect_off): Update.
8307
8308 2019-06-17 Tom de Vries <tdevries@suse.de>
8309
8310 PR gdb/24617
8311 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8312 accessing parent[parent_len - 1].
8313
8314 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8315
8316 PR gdb/24364
8317 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8318 call dtrace_process_dof with NULL dof.
8319
8320 2019-06-16 Tom de Vries <tdevries@suse.de>
8321
8322 PR gdb/24445
8323 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8324
8325 2019-06-16 Tom Tromey <tom@tromey.com>
8326
8327 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8328 (make_all_visible): Use address of member.
8329
8330 2019-06-16 Tom Tromey <tom@tromey.com>
8331
8332 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8333 (tui_free_window, free_content, free_content_elements): Remove
8334 unnecessary cast.
8335 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8336 cast.
8337 * tui/tui-regs.c (tui_show_register_group)
8338 (tui_display_registers_from, tui_display_reg_element_at_line):
8339 Remove unnecessary cast.
8340
8341 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8342
8343 * linux-nat.c (normal_mask): Delete.
8344 (_initialize_linux_nat): Don't initialise normal_mask.
8345
8346 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8347
8348 PR gdb/24445
8349 * dwarf-index-write.h (write_psymtabs_to_index): Add
8350 dwz_basename parameter.
8351 * dwarf-index-write.c (write_gdbindex): Move file writing to
8352 write_gdbindex_1. Change return type void.
8353 (assert_file_size): Move up, remove filename parameter.
8354 (write_gdbindex_1): New function.
8355 (write_debug_names): Change return type to void, call
8356 assert_file_size.
8357 (struct index_wip_file): New struct.
8358 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8359 file logic to index_wip_file. Write index for dwz file if
8360 needed.
8361 (save_gdb_index_command): Pass basename of dwz file, if present.
8362 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8363 build-id of dwz file, if present.
8364 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8365 (dwarf2_get_dwz_file): Likewise.
8366 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8367 (dwarf2_get_dwz_file): Likewise.
8368
8369 2019-06-16 Tom Tromey <tom@tromey.com>
8370
8371 * coffread.c (process_coff_symbol): Use xstrdup.
8372 * value.c (create_internalvar): Use xstrdup.
8373
8374 2019-06-16 Tom Tromey <tom@tromey.com>
8375
8376 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8377 * breakpoint.c (stopin_command, stopat_command)
8378 (until_break_command, decode_location_default): Remove unnecessary
8379 cast.
8380 * utils.c (subset_compare): Remove unnecessary cast.
8381 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8382 cast.
8383 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8384 cast.
8385 * infcmd.c (path_command): Remove unnecessary cast.
8386 * coffread.c (decode_type): Remove unnecessary cast.
8387 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8388 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8389 * tui/tui-stack.c (tui_show_locator_content)
8390 (tui_show_frame_info): Remove unnecessary cast.
8391 * tui/tui-win.c (tui_scroll_forward_command)
8392 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8393 (parse_scrolling_args): Remove unnecessary cast.
8394 * tui/tui-data.c (init_win_info, tui_del_window)
8395 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8396 (free_content_elements): Remove unnecessary cast.
8397 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8398 unnecessary cast.
8399 * tui/tui-source.c (tui_set_source_content)
8400 (tui_vertical_source_scroll): Remove unnecessary cast.
8401 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8402 cast.
8403 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8404 * tui/tui-regs.c (tui_display_registers_from)
8405 (tui_display_register): Remove unnecessary cast.
8406 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8407 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8408 (make_visible): Remove unnecessary cast.
8409 * tui/tui-winsource.c (tui_erase_source_content)
8410 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8411 unnecessary cast.
8412 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8413 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8414 * stabsread.c (read_type, read_array_type, read_range_type):
8415 Remove unnecessary cast.
8416 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8417 (parse_symbol, parse_type, upgrade_type, parse_external)
8418 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8419 unnecessary cast.
8420 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8421
8422 2019-06-16 Tom Tromey <tom@tromey.com>
8423
8424 * tui/tui-data.c (tui_alloc_generic_win_info)
8425 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8426 checks.
8427
8428 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8429 Andrew Burgess <andrew.burgess@embecosm.com>
8430
8431 * f-typeprint.c (f_print_type): Don't return early for not
8432 associated or not allocated types.
8433 (f_type_print_varspec_suffix): Add print_rank parameter and print
8434 ranks of array types in case they dangling.
8435 (f_type_print_base): Add print_rank parameter.
8436
8437 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8438
8439 * NEWS: Mention new MI commands.
8440 * break-catch-throw.c (enum exception_event_kind): Move to
8441 breakpoint.h.
8442 (print_mention_exception_catchpoint): Output text as a single
8443 message.
8444 (catch_exception_command_1): Rename to...
8445 (catch_exception_event): ...this, make non-static, update header
8446 command, and change some parameter types.
8447 (catch_catch_command): Update for changes to
8448 catch_exception_command_1.
8449 (catch_throw_command): Likewise.
8450 (catch_rethrow_command): Likewise.
8451 * breakpoint.c (enum exception_event_kind): Delete.
8452 * breakpoint.h (enum exception_event_kind): Moved here from
8453 break-catch-throw.c.
8454 (catch_exception_event): Declare.
8455 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8456 (mi_cmd_catch_throw): New function.
8457 (mi_cmd_catch_rethrow): New function.
8458 (mi_cmd_catch_catch): New function.
8459 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8460 'catch-catch' entries.
8461 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8462 (mi_cmd_catch_rethrow): Declare.
8463 (mi_cmd_catch_catch): Declare.
8464
8465 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8466
8467 * annotate.c (annotate_source_line): Change return type to void,
8468 update implementation to match.
8469 * annotate.h (annotate_source_line): Change return type to void,
8470 update header comment.
8471 * stack.c (print_frame_info): Don't change what frame information
8472 is printed based on whether annotations are on or not.
8473
8474 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8475
8476 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8477 (annotate_source): Make static.
8478 (annotate_source_line): Moved from source.c and renamed from
8479 identify_source_line. Update the return type.
8480 * annotate.h (annotate_source): Delete declaration.
8481 (annotate_source_line): Declaration moved from source.h, and
8482 renamed from identify_source_line. Return type updated.
8483 * source.c (identify_source_line): Moved to annotate.c and renamed
8484 to annotate_source_line.
8485 (info_line_command): Remove check of annotation_level.
8486 * source.h (identify_source_line): Move declaration to annotate.h
8487 and rename to annotate_source_line.
8488 * stack.c: Add 'annotate.h' include.
8489 (print_frame_info): Remove check of annotation_level before
8490 calling annotate_source_line.
8491
8492 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8493
8494 * source-cache.c (source_cache::get_plain_source_lines): Use
8495 open_source_file_with_line_charpos instead of just
8496 open_source_file, remove call to find_source_lines.
8497 (source_cache::get_source_lines): Likewise.
8498 * source.c (find_source_lines): Make static.
8499 (get_filename_and_charpos): Renamed into...
8500 (open_source_file_with_line_charpos): ..this along with changes to
8501 return a scoped_fd, and some other minor clean ups.
8502 (identify_source_line): Use open_source_file_with_line_charpos.
8503 (search_command_helper): Use open_source_file_with_line_charpos
8504 instead of just open_source_file, remove call to
8505 find_source_lines.
8506 * source.h (open_source_file_with_line_charpos): Declare new
8507 function.
8508 (find_source_lines): Delete declaration.
8509
8510 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8511
8512 * source.c (get_filename_and_charpos): Remove fullname
8513 parameter.
8514 (identify_source_line): Update call to get_filename_and_charpos.
8515
8516 2019-06-14 Tom Tromey <tromey@adacore.com>
8517
8518 PR gdb/24502:
8519 * ui-style.h (skip_ansi_escape): Update comment.
8520 * ui-file.h (class no_terminal_escape_file): New class.
8521 * ui-file.c (no_terminal_escape_file::write)
8522 (no_terminal_escape_file::puts): New methods.
8523 * cli/cli-logging.c (handle_redirections): Use
8524 no_terminal_escape_file.
8525
8526 2019-06-14 Tom Tromey <tromey@adacore.com>
8527
8528 * NEWS: Move convenience variable news above Python news.
8529
8530 2019-06-14 Tom Tromey <tom@tromey.com>
8531
8532 * gnulib: Move directory to top-level.
8533 * configure.ac: Don't configure gnulib.
8534 * configure: Rebuild.
8535 * common/common-defs.h: Use new path to gnulib.
8536 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8537 (GNULIB_H): Remove.
8538 (INCGNU): Look in new gnulib location.
8539 (HFILES_NO_SRCDIR): Remove gnulib files.
8540 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8541 (generated_files): Remove GNULIB_H.
8542 ($(LIBGNU), all-lib): Remove targets.
8543 (distclean): Don't mention GNULIB_BUILDDIR.
8544 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8545
8546 2019-06-14 Tom Tromey <tromey@adacore.com>
8547
8548 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8549 Warn if symbol file does not provide any symbols.
8550
8551 2019-06-14 Tom Tromey <tromey@adacore.com>
8552
8553 * source.c (find_and_open_source): Respect basenames_may_differ.
8554
8555 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8556
8557 * annotate.c (annotate_breakpoints_invalid): Make use of
8558 scoped_restore_terminal_state.
8559 (annotate_frames_invalid): Likewise.
8560
8561 2019-06-14 Tom Tromey <tromey@adacore.com>
8562
8563 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8564 allow assignment to an internalvar.
8565
8566 2019-06-14 Tom Tromey <tromey@adacore.com>
8567
8568 * ada-lex.l: Allow "_" in attribute names.
8569
8570 2019-06-14 Tom Tromey <tromey@adacore.com>
8571
8572 PR gdb/24653:
8573 * regcache.c (registers_changed): Don't call alloca.
8574 * top.c (execute_command): Don't call alloca.
8575
8576 2019-06-13 Pedro Alves <palves@redhat.com>
8577
8578 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8579 'expression'. When parsing an expression, error out if there's
8580 junk after "unlimited".
8581 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8582 (do_set_command): Adjust calls to is_unlimited_literal.
8583
8584 2019-06-13 Pedro Alves <palves@redhat.com>
8585
8586 * compile/compile.c (make_compile_options_def_group): Add braces
8587 around array_view initializer.
8588 * thread.c (make_thread_apply_all_options_def_group)
8589 (make_thread_apply_all_options_def_group): Likewise.
8590
8591 2019-06-13 Pedro Alves <palves@redhat.com>
8592
8593 * NEWS (New commands): Mention "maint test-options
8594 require-delimiter", "maint test-options unknown-is-error", "maint
8595 test-options unknown-is-operand" and "maint show
8596 test-options-completion-result".
8597 (New command options, command completion): New section.
8598 (Completion improvements): New section.
8599 Mention that you can abbreviate "unlimited".
8600
8601 2019-06-13 Pedro Alves <palves@redhat.com>
8602
8603 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8604 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8605 * unittests/cli-utils-selftests.c (test_parse_flags)
8606 (test_parse_flags_qcs): Delete.
8607 (test_cli_utils): Don't call deleted functions.
8608
8609 2019-06-13 Pedro Alves <palves@redhat.com>
8610
8611 * thread.c: Include "cli/cli-option.h".
8612 (tp_array_compar_ascending): Global.
8613 (tp_array_compar): Delete function.
8614 (tp_array_compar_ascending, tp_array_compar_descending): New
8615 functions.
8616 (ascending_option_def, qcs_flag_option_def)
8617 (thr_qcs_flags_option_defs)
8618 (make_thread_apply_all_options_def_group)
8619 (make_thread_apply_options_def_group): New.
8620 (thread_apply_all_command): Use gdb::option::process_options.
8621 (thread_apply_command_completer)
8622 (thread_apply_all_command_completer): New.
8623 (thread_apply_command): Use gdb::option::process_options.
8624 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8625 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8626 to generate help text of "thread apply". Adjust "taas"'s help.
8627 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8628 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8629
8630 2019-06-13 Pedro Alves <palves@redhat.com>
8631
8632 * thread.c (thread_apply_command): Check for invalid TID with
8633 isdigit instead of !isalpha.
8634
8635 2019-06-13 Pedro Alves <palves@redhat.com>
8636
8637 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8638 (validate_flags_qcs): New.
8639 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8640 (validate_flags_qcs): Declare.
8641 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8642 (make_frame_apply_options_def_group): New.
8643 (frame_apply_command_count): Process options with
8644 gdb::option::process_options.
8645 (frame_apply_completer): New.
8646 (frame_apply_level_completer, frame_apply_all_completer)
8647 (frame_apply_completer): New.
8648 (_initialize_stack): Update help of "frame apply", "frame apply
8649 level", "frame apply all" and "faas" to mention supported options
8650 and install command completers.
8651 * stack.h (frame_apply_all_completer): Declare.
8652 * thread.c: Include "stack.h".
8653 (tfaas_command): Add "--".
8654 (_initialize_thread): Update help "tfaas" to mention supported
8655 options and install command completer.
8656
8657 2019-06-13 Pedro Alves <palves@redhat.com>
8658
8659 * completer.c (complete_nested_command_line): New.
8660 (gdb_completion_word_break_characters_throw): Add assertion.
8661 * completer.h (complete_nested_command_line): Declare.
8662
8663 2019-06-13 Pedro Alves <palves@redhat.com>
8664
8665 * stack.c (parse_backtrace_qualifiers): New.
8666 (backtrace_command): Use it.
8667 (backtrace_command_completer): Complete on qualifiers.
8668
8669 2019-06-13 Pedro Alves <palves@redhat.com>
8670
8671 * frame.c: Include "cli/cli-option.h.
8672 (user_set_backtrace_options): New.
8673 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8674 Delete.
8675 (get_prev_frame): Adjust.
8676 (boolean_option_def, uinteger_option_def)
8677 (set_backtrace_option_defs): New.
8678 (_initialize_frame): Adjust and use
8679 gdb::option::add_setshow_cmds_for_options to install "set
8680 backtrace past-main" and "set backtrace past-entry".
8681 * frame.h: Include "cli/cli-option.h".
8682 (struct frame_print_options): Forward declare.
8683 (print_frame_arguments_all, print_frame_arguments_scalars)
8684 (print_frame_arguments_none): Declare.
8685 (print_entry_values): Delete declaration.
8686 (struct frame_print_options, user_frame_print_options): New.
8687 (struct set_backtrace_options): New.
8688 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8689 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8690 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8691 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8692 (list_args_or_locals): Add frame_print_options parameter.
8693 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8694 * python/py-framefilter.c (enumerate_args): Pass down
8695 USER_FRAME_PRINT_OPTIONS.
8696 * stack.c: Include "cli/cli-option.h".
8697 (print_frame_arguments_all, print_frame_arguments_scalars)
8698 (print_frame_arguments_none): Declare.
8699 (print_raw_frame_arguments, print_entry_values): Delete.
8700 (user_frame_print_options): New.
8701 (boolean_option_def, enum_option_def, frame_print_option_defs):
8702 New.
8703 (struct backtrace_cmd_options): New.
8704 (bt_flag_option_def): New.
8705 (backtrace_command_option_defs): New.
8706 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8707 (print_frame_arg, read_frame_arg, print_frame_args)
8708 (print_frame_info, print_frame): Add frame_print_options parameter
8709 and use it.
8710 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8711 (backtrace_command_1): Add frame_print_options and
8712 backtrace_cmd_options parameters and use them.
8713 (make_backtrace_options_def_group): New.
8714 (backtrace_command): Process command options with
8715 gdb::option::process_options.
8716 (backtrace_command_completer): New.
8717 (_initialize_stack): Extend "backtrace"'s help to mention
8718 supported options. Install completer for "backtrace".
8719 Install some settings commands with add_setshow_cmds_for_options.
8720
8721 2019-06-13 Pedro Alves <palves@redhat.com>
8722
8723 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8724 and that "set/show print raw frame-arguments" are now deprecated.
8725
8726 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8727 command.
8728 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8729 * stack.c (_initialize_stack): Install "set/show print
8730 raw-frame-arguments", and deprecate "set/show print raw
8731 frame-arguments".
8732 * valprint.c (_initialize_valprint): Deprecate "set/show print
8733 raw".
8734
8735 2019-06-13 Pedro Alves <palves@redhat.com>
8736
8737 * compile/compile.c (struct compile_options): New.
8738 (compile_flag_option_def, compile_command_option_defs)
8739 (make_compile_options_def_group): New.
8740 (compile_file_command): Handle options with
8741 gdb::option::process_options.
8742 (compile_file_command_completer): New function.
8743 (compile_code_command): Handle options with
8744 gdb::option::process_options.
8745 (compile_code_command_completer): New function.
8746 (_initialize_compiler): Install completers for "compile code" and
8747 "compile file". Mention available options in "compile code" and
8748 "compile code"'s help.
8749 * completer.c (advance_to_completion_word): New, factored out from
8750 ...
8751 (advance_to_expression_complete_word_point): ... this.
8752 (advance_to_filename_complete_word_point): New.
8753 * completer.h (advance_to_filename_complete_word_point): New
8754 declaration.
8755
8756 2019-06-13 Pedro Alves <palves@redhat.com>
8757
8758 * compile/compile.c: Include "cli/cli-option.h".
8759 (compile_print_value): Scope data pointer is now a
8760 value_print_options pointer; adjust.
8761 (compile_print_command): Process options. Scope data pointer is
8762 now a value_print_options pointer; adjust.
8763 (_initialize_compile): Update "compile print"'s help to include
8764 supported options. Install a completer for "compile print".
8765 * cp-valprint.c (show_vtblprint, show_objectprint)
8766 (show_static_field_print): Delete.
8767 (_initialize_cp_valprint): Don't install "set print
8768 static-members", "set print vtbl", "set print object" here.
8769 * printcmd.c: Include "cli/cli-option.h" and
8770 "common/gdb_optional.h".
8771 (print_command_parse_format): Rework to fill in a
8772 value_print_options instead of a format_data.
8773 (print_value): Change parameter type from format_data pointer to
8774 value_print_options reference. Adjust.
8775 (print_command_1): Process options. Adjust to pass down a
8776 value_print_options.
8777 (print_command_completer): New.
8778 (_initialize_printcmd): Install print_command_completer as
8779 handle_brkchars completer for the "print" command. Update
8780 "print"'s help to include supported options.
8781 * valprint.c: Include "cli/cli-option.h".
8782 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8783 here from cp-valprint.c.
8784 (boolean_option_def, uinteger_option_def)
8785 (value_print_option_defs, make_value_print_options_def_group):
8786 New. Use gdb::option::add_setshow_cmds_for_options to install
8787 "set print elements", "set print null-stop", "set print repeats",
8788 "set print pretty", "set print union", "set print array", "set
8789 print address", "set print symbol", "set print array-indexes".
8790 * valprint.h: Include <string> and "cli/cli-option.h".
8791 (make_value_print_options_def_group): Declare.
8792 (print_value): Change parameter type from format_data pointer to
8793 value_print_options reference.
8794 (print_command_completer): Declare.
8795
8796 2019-06-13 Pedro Alves <palves@redhat.com>
8797
8798 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8799 (COMMON_SFILES): Add maint-test-settings.c.
8800 * cli/cli-decode.c (boolean_enums): New global, factored out from
8801 ...
8802 (add_setshow_boolean_cmd): ... here.
8803 * cli/cli-decode.h (boolean_enums): Declare.
8804 * cli/cli-option.c: New file.
8805 * cli/cli-option.h: New file.
8806 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8807 factored out from ...
8808 (parse_cli_boolean_value(const char *)): ... this.
8809 (is_unlimited_literal): Change parameter type to pointer to
8810 pointer. Adjust and advance ARG pointer.
8811 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8812 (parse_cli_var_enum): New, factored out from ...
8813 (do_set_command): ... this. Adjust.
8814 * cli/cli-setshow.h (parse_cli_boolean_value)
8815 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8816 (parse_cli_var_enum): Declare.
8817 * cli/cli-utils.c: Include "cli/cli-option.h".
8818 (get_ulongest): New.
8819 * cli/cli-utils.h (get_ulongest): Declare.
8820 (check_for_argument): New overloads.
8821 * maint-test-options.c: New file.
8822
8823 2019-06-13 Pedro Alves <palves@redhat.com>
8824
8825 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8826 parse a range if "-" is at the end of the string.
8827
8828 2019-06-13 Pedro Alves <palves@redhat.com>
8829
8830 * cli/cli-setshow.c (parse_auto_binary_operation)
8831 (parse_cli_boolean_value): Don't allow "o".
8832
8833 2019-06-13 Pedro Alves <palves@redhat.com>
8834
8835 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8836 * NEWS: Mention maint test-settings KIND.
8837 * maint-test-settings.c: New file.
8838
8839 2019-06-13 Pedro Alves <palves@redhat.com>
8840
8841 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8842 completer.
8843 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8844 "set" completers.
8845
8846 2019-06-13 Pedro Alves <palves@redhat.com>
8847
8848 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8849 after item.
8850
8851 2019-06-13 Pedro Alves <palves@redhat.com>
8852
8853 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8854
8855 2019-06-13 Pedro Alves <palves@redhat.com>
8856
8857 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8858 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8859 call.
8860 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8861 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8862 calls.
8863 (check_for_argument): Skip spaces after argument.
8864
8865 2019-06-13 Pedro Alves <palves@redhat.com>
8866
8867 * thread.c (thread_apply_command): Adjust TID parsing.
8868 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8869 detected before end of string.
8870 (tid_is_in_list): Error out if LIST is invalid.
8871
8872 2019-06-13 Pedro Alves <palves@redhat.com>
8873
8874 * completer.c (complete_line_internal_1): Rewind completion word
8875 point.
8876 (completion_tracker::advance_custom_word_point_by): Change
8877 parameter type to int.
8878 * completer.h (completion_tracker::advance_custom_word_point_by):
8879 Likewise.
8880
8881 2019-06-13 Pedro Alves <palves@redhat.com>
8882
8883 * completer.c (advance_to_completion_word): Handle delimiters.
8884
8885 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8886
8887 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8888
8889 2019-06-11 Tom Tromey <tom@tromey.com>
8890
8891 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8892 (xmalloc_failed): Move to alloc.c.
8893 * alloc.c: New file.
8894 * Makefile.in (COMMON_SFILES): Add alloc.c.
8895
8896 2019-06-11 Tom Tromey <tom@tromey.com>
8897
8898 * nat/linux-waitpid.c: Don't include server.h.
8899 (linux_debug): Remove.
8900 (my_waitpid): Update.
8901
8902 2019-06-11 Tom Tromey <tromey@adacore.com>
8903
8904 * infcall.c (_initialize_infcall): Remove trailing newline from
8905 help.
8906 * user-regs.c (_initialize_user_regs): Remove trailing newline
8907 from help.
8908 * typeprint.c (_initialize_typeprint): Remove trailing newline
8909 from help.
8910 * reverse.c (_initialize_reverse): Remove trailing newlines from
8911 help.
8912 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8913 from help.
8914 * language.c (add_set_language_command): Remove trailing newline
8915 from help.
8916 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8917 help.
8918 * disasm.c (_initialize_disasm): Remove trailing newline from
8919 help.
8920 * top.c (init_main): Remove trailing newline from help.
8921 * interps.c (_initialize_interpreter): Remove trailing newline
8922 from help.
8923 * btrace.c (_initialize_btrace): Remove trailing newlines from
8924 help.
8925 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8926 from help.
8927 * python/python.c (_initialize_python): Remove trailing newline
8928 from help.
8929 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8930 help.
8931 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8932 from help. Reformat some text.
8933 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8934 from help.
8935 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8936 newline from help.
8937
8938 2019-06-11 Tom Tromey <tromey@adacore.com>
8939
8940 * darwin-nat.c (darwin_decode_exception_message)
8941 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8942
8943 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8944
8945 * valops.c (value_slice): Check for not allocated or not
8946 associated values.
8947
8948 2019-06-10 Tom de Vries <tdevries@suse.de>
8949
8950 PR gdb/24618
8951 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8952 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8953 invalid.
8954
8955 2019-06-10 Tom de Vries <tdevries@suse.de>
8956
8957 PR gdb/24611
8958 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8959 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8960
8961 2019-06-10 Tom de Vries <tdevries@suse.de>
8962
8963 PR symtab/24545
8964 * symtab.c (struct demangled_name_entry): Add language field.
8965 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8966 static minimal symbol". Set and use language field.
8967
8968 2019-06-10 Tom Tromey <tromey@adacore.com>
8969
8970 * ada-lang.c (_initialize_ada_language): Update help text.
8971
8972 2019-06-10 Tom Tromey <tromey@adacore.com>
8973
8974 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8975 with a newline.
8976 * guile/guile.c (handle_boot_error): Don't end warning with a
8977 newline.
8978 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8979 warning with a newline.
8980 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8981 newline.
8982 (s12z_frame_cache): Likewise.
8983 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8984 a newline.
8985 * solib-svr4.c (disable_probes_interface): Don't end warning with
8986 a newline.
8987 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8988 newline.
8989 * python/python.c (do_finish_initialization): Don't end warning
8990 with a newline.
8991
8992 2019-06-10 Tom Tromey <tom@tromey.com>
8993
8994 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8995 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8996 gdbpy_enter.
8997
8998 2019-06-10 Tom Tromey <tromey@adacore.com>
8999
9000 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9001 data.
9002 (elf_new_init): Don't call stabsread_new_init.
9003 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9004 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9005 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9006
9007 2019-06-10 Tom de Vries <tdevries@suse.de>
9008
9009 PR symtab/16264
9010 PR symtab/24517
9011 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9012
9013 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9014
9015 * source.c (find_and_open_source): Also rewrite relative file
9016 names.
9017
9018 2019-04-26 Amos Bird <amosbird@gmail.com>
9019
9020 * annotate.c (annotate_thread_exited): Add "thread-exited"
9021 annotation.
9022
9023 2019-06-06 Tom Tromey <tromey@adacore.com>
9024
9025 * maint.h (class scoped_command_stats): Use
9026 DISABLE_COPY_AND_ASSIGN.
9027 <print_time>: New method.
9028 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9029 print_time.
9030 (scoped_command_stats::print_time): New method.
9031
9032 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9033
9034 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9035 instructions of lengths 6 or 8 bytes.
9036
9037 2019-06-04 Pedro Alves <palves@redhat.com>
9038
9039 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9040
9041 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9042 * breakpoint.c (condition_completer): Likewise.
9043 * cli/cli-dump.c (scan_expression): Likewise.
9044 * common/filestuff.c (mkdir_recursive): Likewise.
9045 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9046 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9047 (gdb_abspath): Likewise.
9048 * compile/compile-cplus-types.c
9049 (compile_cplus_instance::decl_name): Likewise.
9050 * completer.c (complete_explicit_location):
9051 (signal_completer, reg_or_group_completer_1): Likewise.
9052 * cp-support.c (cp_remove_params_if_any): Likewise.
9053 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9054 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9055 * infcmd.c (strip_bg_char): Likewise.
9056 * linespec.c (copy_token_string): Likewise.
9057 * mi/mi-main.c (output_cores): Likewise.
9058 * psymtab.c (psymtab_search_name):
9059 * symfile.c (test_set_ext_lang_command): Likewise.
9060 * target.c (target_fileio_read_stralloc): Likewise.
9061 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9062 * value.c (complete_internalvar): Likewise.
9063
9064 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9065
9066 Add objfile property to gdb.Type.
9067 * NEWS: Mention Python API addition.
9068 * python/py-type.c (typy_get_objfile): New method.
9069
9070 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9071
9072 * NEWS: Mention the new set|show style [title|highlight].
9073 Mention changes to "show style", "help" and "apropos".
9074
9075 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9076
9077 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9078 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9079 instead of print_help_for_command.
9080 (print_doc_of_command): New function.
9081 (help_list): Add 'apropos -v word' suggestion.
9082 (print_help_for_command): Style the command name using title style.
9083 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9084 (_initialize_cli_cmds): Describe -v in apropos_command help.
9085
9086 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9087
9088 * cli/cli-style.h (cli_style_option): Add name in constructor,
9089 add m_name class member, add constructor with intensity,
9090 add name class function.
9091 (cli_style_option::add_setshow_commands): Remove name argument.
9092 (highlight_style, title_style): New styles.
9093 * cli/cli-style.c (do_show): New function that shows a style
9094 characteristic styling the style name with itself.
9095 (set_style_name): New function.
9096 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9097 Update all callers according to the changes in cli/cli-style.h.
9098 * utils.h (fputs_highlighted): New function.
9099 * utils.c (fputs_highlighted): Likewise.
9100
9101 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9102
9103 * NEWS: Mention new pipe command and new convenience variables.
9104
9105 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9106
9107 * cli/cli-cmds.c (pipe_command): New function.
9108 (_initialize_cli_cmds): Call add_com for pipe_command.
9109 Define | as an alias for pipe.
9110 (exit_status_set_internal_vars): New function.
9111 (shell_escape): Call exit_status_set_internal_vars.
9112 cli/cli-decode.c (find_command_name_length): Recognize | as
9113 a single character command.
9114
9115 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9116
9117 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9118 top.c (execute_command_to_ui_file): New function, mostly a copy
9119 of execute_command_to_string.
9120 (execute_command_to_string): Implement by calling
9121 execute_command_to_ui_file.
9122
9123 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9124
9125 * top.h (saved_command_line): Remove declaration.
9126 * top.c (previous_saved_command_line, previous_repeat_arguments):
9127 New variables.
9128 (saved_command_line): Make static, define together with other
9129 'repeat variables'.
9130 (dont_repeat): Clear repeat_arguments.
9131 (repeat_previous, get_saved_command_line, save_command_line):
9132 New functions.
9133 (gdb_init): Initialize saved_command_line
9134 and previous_saved_command_line.
9135 * main.c (captured_main_1): Remove saved_command_line initialization.
9136 * event-top.c (handle_line_of_input): Update to use
9137 the new 'repeat' related functions instead of direct access to
9138 saved_command_line.
9139 * command.h (repeat_previous, get_saved_command_line,
9140 save_command_line): New declarations.
9141 (dont_repeat): Add comment.
9142
9143 2019-05-30 Tom Tromey <tromey@adacore.com>
9144
9145 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9146 Fix comment.
9147 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9148
9149 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9150
9151 PR cli/24587
9152 * completer.c (complete): Initialize variable word.
9153
9154 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9155
9156 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9157 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9158 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9159 'body' is NULL to the outter 'if', protecting the '!is_define'
9160 situation as well.
9161
9162 2019-05-29 Tom Tromey <tromey@adacore.com>
9163
9164 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9165 (dwarf_unknown): New function.
9166 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9167 (dwarf_type_encoding_name): Use dwarf_unknown.
9168
9169 2019-05-29 Tom Tromey <tromey@adacore.com>
9170
9171 PR c++/20020:
9172 * cp-valprint.c (cp_print_value_fields): Call
9173 cp_print_static_field inside "try".
9174
9175 2019-05-29 Tom Tromey <tromey@adacore.com>
9176
9177 * inflow.c (struct terminal_info): Add default operator=.
9178 * configure: Rebuild.
9179 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9180 -Wdeprecated-copy-dtor, -Wredundant-move.
9181
9182 2019-05-29 Tom Tromey <tromey@adacore.com>
9183
9184 * NEWS: Add entry.
9185 * infcmd.c (print_return_value_1): Handle finish_print
9186 option.
9187 (show_print_finish): New function.
9188 (_initialize_infcmd): Add "set/show print finish" commands.
9189 * valprint.c (user_print_options): Initialize new member.
9190 * valprint.h (struct value_print_options) <finish_print>: New
9191 member.
9192
9193 2019-05-28 Tom Tromey <tromey@adacore.com>
9194
9195 * ada-lang.c (ada_remove_Xbn_suffix)
9196 (find_old_style_renaming_symbol)
9197 (parse_old_style_renaming): Remove.
9198 (ada_find_renaming_symbol): Don't call
9199 find_old_style_renaming_symbol.
9200 (ada_is_renaming_symbol): Rename from
9201 ada_find_renaming_symbol. Remove "block" parameter. Return
9202 bool. Now static.
9203 (ada_read_var_value): Update and simplify.
9204 * ada-exp.y (write_var_or_type): Remove old code.
9205
9206 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9207
9208 PR gdb/25010
9209 * event-top.c: Remove include comment.
9210 * inflow.c (class scoped_ignore_sigttou): Move from here...
9211 * inflow.h (class scoped_ignore_sigttou): ...to here.
9212 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9213 * top.c: Remove include comment.
9214
9215 2019-05-27 Tom Tromey <tom@tromey.com>
9216
9217 * NEWS: Fix typo.
9218
9219 2019-05-22 Tom Tromey <tromey@adacore.com>
9220
9221 * target.c (target_follow_exec): Constify parameter.
9222 * target-delegates.c: Rebuild.
9223 * remote.c (remote_target::follow_exec): Constify parameter.
9224 * infrun.c (follow_exec): Constify parameter.
9225 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9226 (target_follow_exec): Likewise.
9227
9228 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9229
9230 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9231 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9232
9233 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9234
9235 * NEWS: Add debugredirect and testsuite sections.
9236
9237 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9238
9239 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9240 target descriptions using exclusively floating point register name
9241 aliases.
9242
9243 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9244
9245 PR gdb/18644:
9246 * f-lang.c (build_fortran_types): Handle the case where
9247 gdbarch_floatformat_for_type returns a nullptr.
9248
9249 2019-05-21 Tom de Vries <tdevries@suse.de>
9250
9251 PR cli/24587
9252 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9253
9254 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9255
9256 PR gdb/18644:
9257 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9258 16-byte floats.
9259 * i386-tdep.c (i386_floatformat_for_type): Use
9260 floatformats_ia64_quad for the 16-byte floating point component
9261 within a fortran 32-byte complex number.
9262
9263 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9264
9265 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9266 delete default constructor.
9267 (find_partial_die): Update to return const struct.
9268 (partial_die_parent_scope): Move variable declaration into scope
9269 of its use and change its type to auto.
9270 (guess_partial_die_structure_name): Likewise.
9271 (partial_die_info::fixup): Likewise.
9272
9273 2019-05-17 Tom Tromey <tromey@adacore.com>
9274
9275 * source.c (find_and_open_source): Remove cast.
9276
9277 2019-05-17 Tom Tromey <tromey@adacore.com>
9278
9279 * annotate.c (annotate_source): Make "filename" const.
9280 * annotate.h (annotate_source): Use const.
9281
9282 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9283
9284 * disasm.c (set_disassembler_options): Send errors to stderr.
9285
9286 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9287
9288 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9289 (cli_interp_base::set_logging): Check debug_redirect.
9290 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9291 * cli/cli-logging.c (debug_redirect): Add static variable.
9292 (pop_output_files): Add default param.
9293 (handle_redirections): Print debug setting.
9294 (show_logging_command): Likewise.
9295 (_initialize_cli_logging): Add debugredirect command.
9296 * interps.c (current_interp_set_logging): Add debug_redirect
9297 parameter.
9298 * interps.h (set_logging): Add debug_redirect parameter.
9299 (current_interp_set_logging): Likewise.
9300 * mi/mi-common.h: Likewise.
9301 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9302
9303 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9304 Tom Tromey <tromey@adacore.com>
9305
9306 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9307 directly.
9308 * cli/cli-interp.h (make_logging_output): Remove declaration.
9309 * cli/cli-logging.c (make_logging_output): Remove function.
9310 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9311 directly.
9312 * ui-file.c (tee_file::tee_file): Remove bools.
9313 (tee_file::~tee_file): Remove deletes.
9314 * ui-file.h (tee_file): Remove bools.
9315
9316 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9317
9318 * mi/mi-cmds.h (mi_cmd_complete): New function.
9319 * mi/mi-main.c (mi_cmd_complete): Likewise.
9320 * mi/mi-cmds.c: Define new MI command -complete.
9321 * NEWS: Mention new -complete command.
9322
9323 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9324
9325 * completer.h (complete): New function.
9326 * completer.c (complete): Likewise.
9327 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9328 function defined in completer.h.
9329
9330 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9331
9332 * MAINTAINERS (Write After Approval): Add myself.
9333
9334 2019-05-17 Tom de Vries <tdevries@suse.de>
9335
9336 PR gdb/24094
9337 * dwarf2read.c (struct cu_partial_die_info): New struct.
9338 (find_partial_die): Return cu_partial_die_info.
9339 (partial_die_parent_scope, guess_partial_die_structure_name)
9340 (partial_die_info::fixup): Handle new return type of find_partial_die.
9341
9342 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9343
9344 PR breakpoints/24541
9345 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9346 "std::string", simplifying the algorithm.
9347
9348 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9349
9350 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9351 (stap_static_probe_ops::get_probes): Likewise.
9352
9353 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9354
9355 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9356 '-')" and "else if".
9357 (stap_parse_single_operand): Join checks for
9358 "gdbarch_stap_parse_special_token_p" and
9359 "gdbarch_stap_parse_special_token" in the same "if" statement.
9360 Invert check when verifying for operation on register
9361 displacement.
9362
9363 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9364
9365 * stap-probe.c (stap_get_opcode): Update comment.
9366 (stap_get_expected_argument_type): Likewise.
9367 (handle_stap_probe): Likewise.
9368
9369 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9370
9371 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9372 return type to 'bool'. Adjust comment. Use 'bool' when
9373 appropriate.
9374 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9375 * stap-probe.c (stap_parse_argument_1): Likewise.
9376 (stap_is_operator): Likewise.
9377 (stap_is_generic_prefix): Likewise.
9378 (stap_is_register_prefix): Likewise.
9379 (stap_is_register_indirection_prefix): Likewise.
9380 (stap_is_integer_prefix): Likewise.
9381 (stap_generic_check_suffix): Likewise.
9382 (stap_check_integer_suffix): Likewise.
9383 (stap_check_register_suffix): Likewise.
9384 (stap_check_register_indirection_suffix): Likewise.
9385 (stap_parse_register_operand): Likewise.
9386 (stap_parse_single_operand): Likewise.
9387 (stap_parse_argument_1): Likewise.
9388 (stap_probe::get_argument_count): Likewise.
9389 (stap_is_operator): Likewise.
9390
9391 2019-05-16 Tom Tromey <tromey@adacore.com>
9392
9393 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9394 keyword to foreach.
9395
9396 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9397
9398 * linux-thread-db.c (try_thread_db_load_1): Change return type
9399 to bool.
9400 (try_thread_db_load): Likewise.
9401 (try_thread_db_load_from_pdir_1): Likewise.
9402 (try_thread_db_load_from_pdir): Likewise.
9403 (try_thread_db_load_from_sdir): Likewise.
9404 (try_thread_db_load_from_dir): Likewise.
9405 (thread_db_load_search): Likewise.
9406 (has_libpthread): Likewise.
9407 (thread_db_load): Likewise.
9408
9409 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9410
9411 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9412 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9413 NULL, and complain/return if that's the case.
9414
9415 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9416
9417 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9418 (advance, posn, abstract_read_memory): New functions.
9419 [struct mem_read_abstraction]: New struct.
9420 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9421
9422 2019-05-14 Tom Tromey <tromey@adacore.com>
9423
9424 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9425 value is not lval_memory.
9426
9427 2019-05-14 Tom Tromey <tromey@adacore.com>
9428
9429 * solib.c (info_sharedlibrary_command): Style the file name.
9430
9431 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9432
9433 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9434 (aarch64_vnv_type): Likewise.
9435 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9436 * common/tdesc.c: Likewise.
9437 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9438 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9439 * features/aarch64-fpu.xml: Add ieee half view.
9440 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9441 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9442 * gdbtypes.h (struct builtin_type): Likewise.
9443 (struct objfile_type): Likewise.
9444
9445 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9446
9447 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9448 typo.
9449 * location.h (string_to_event_location): Likewise.
9450
9451 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9452
9453 GDB 8.3 released.
9454
9455 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9456
9457 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9458 New variable declaration.
9459 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9460 New variable.
9461 (print_one_breakpoint): Use ui_out::test_flags and new global
9462 variable to compute use_fixed_output.
9463 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9464 Remove.
9465 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9466 (mi_multi_location_breakpoint_output_fixed): Remove.
9467 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9468 new variable.
9469 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9470 fix_multi_location_breakpoint_output flag if version >= 3.
9471 * ui-out.h (enum ui_out_flag)
9472 <fix_multi_location_breakpoint_output>: New enumerator.
9473
9474 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9475
9476 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9477
9478 2019-05-10 Tom Tromey <tromey@adacore.com>
9479
9480 * ada-lang.c (catch_ada_completer): New function.
9481 (_initialize_ada_language): Use it.
9482
9483 2019-05-10 Tom Tromey <tromey@adacore.com>
9484
9485 * thread.c (print_thread_info): Make "requested_threads" const.
9486 * gdbthread.h (print_thread_info): Make "requested_threads"
9487 const.
9488 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9489 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9490
9491 2019-05-08 Tom Tromey <tom@tromey.com>
9492
9493 * gdbtypes.c (objfile_type_data): Change type.
9494 (objfile_type, _initialize_gdbtypes): Update.
9495
9496 2019-05-08 Tom Tromey <tom@tromey.com>
9497
9498 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9499 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9500 (_initialize_dwarf2_frame): Update.
9501
9502 2019-05-08 Tom Tromey <tom@tromey.com>
9503
9504 * objc-lang.c (objc_objfile_data): Change type.
9505 (find_methods): Update.
9506 (_initialize_objc_lang): Remove.
9507
9508 2019-05-08 Tom Tromey <tom@tromey.com>
9509
9510 * stabsread.c (rs6000_builtin_type_data): Change type.
9511 (rs6000_builtin_type, _initialize_stabsread): Update.
9512
9513 2019-05-08 Tom Tromey <tom@tromey.com>
9514
9515 * mips-tdep.c (mips_pdr_data): Remove.
9516 (_initialize_mips_tdep): Update.
9517
9518 2019-05-08 Tom Tromey <tom@tromey.com>
9519
9520 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9521 (hppa_init_objfile_priv_data, read_unwind_info)
9522 (find_unwind_entry, _initialize_hppa_tdep): Update.
9523
9524 2019-05-08 Tom Tromey <tom@tromey.com>
9525
9526 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9527 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9528 on obstack.
9529 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9530
9531 2019-05-08 Tom Tromey <tom@tromey.com>
9532
9533 * mdebugread.c (basic_type_data): Change type.
9534 (basic_type, _initialize_mdebugread): Update.
9535
9536 2019-05-08 Tom Tromey <tom@tromey.com>
9537
9538 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9539
9540 2019-05-08 Tom Tromey <tom@tromey.com>
9541
9542 * nto-tdep.c (nto_inferior_data_reg): Change type.
9543 (nto_inferior_data): Update.
9544 (nto_inferior_data_cleanup, nto_new_inferior_data)
9545 (_initialize_nto_tdep): Remove.
9546 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9547
9548 2019-05-08 Tom Tromey <tom@tromey.com>
9549
9550 * ada-lang.c (struct ada_inferior_data): Add initializers.
9551 (ada_inferior_data): Change type.
9552 (ada_inferior_data_cleanup): Remove.
9553 (get_ada_inferior_data, ada_inferior_exit)
9554 (struct ada_pspace_data): Add initializers, destructor.
9555 (ada_pspace_data_handle): Change type.
9556 (get_ada_pspace_data): Update.
9557 (ada_pspace_data_cleanup): Remove.
9558
9559 2019-05-08 Tom Tromey <tom@tromey.com>
9560
9561 * coffread.c (struct coff_symfile_info): Add initializers.
9562 (coff_objfile_data_key): Move lower. Change type.
9563 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9564 Update.
9565 (coff_free_info): Remove.
9566
9567 2019-05-08 Tom Tromey <tom@tromey.com>
9568
9569 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9570 (fbsd_pspace_data_handle): Move lower. Change type.
9571 (get_fbsd_pspace_data): Update.
9572 (fbsd_pspace_data_cleanup): Remove.
9573 (_initialize_fbsd_tdep): Update.
9574
9575 2019-05-08 Tom Tromey <tom@tromey.com>
9576
9577 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9578 (get_ada_tasks_pspace_data): Update.
9579 (ada_tasks_pspace_data_cleanup): Remove.
9580 (_initialize_tasks): Update.
9581 (ada_tasks_inferior_data_handle): Change type.
9582 (get_ada_tasks_inferior_data): Update.
9583 (ada_tasks_inferior_data_cleanup): Remove.
9584 (struct ada_tasks_pspace_data): Add initializers.
9585
9586 2019-05-08 Tom Tromey <tom@tromey.com>
9587
9588 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9589 * symfile-debug.c (debug_sym_get_probes): Change type.
9590 * stap-probe.c (handle_stap_probe):
9591 (stap_static_probe_ops::get_probes): Change type.
9592 * probe.h (class static_probe_ops) <get_probes>: Change type.
9593 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9594 (parse_probes_in_pspace): Update.
9595 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9596 Update.
9597 (any_static_probe_ops::get_probes): Change type.
9598 * elfread.c (elfread_data): New typedef.
9599 (probe_key): Change type.
9600 (elf_get_probes): Likewise. Update.
9601 (probe_key_free): Remove.
9602 (_initialize_elfread): Update.
9603 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9604 Change type.
9605 (dtrace_process_dof_probe, dtrace_process_dof)
9606 (dtrace_static_probe_ops::get_probe): Change type.
9607
9608 2019-05-08 Tom Tromey <tom@tromey.com>
9609
9610 * xcoffread.c (struct xcoff_symfile_info): Rename from
9611 coff_symfile_info. Add initializers.
9612 (xcoff_objfile_data_key): Move lower. Change type.
9613 (XCOFF_DATA): Rewrite.
9614 (xcoff_free_info): Remove.
9615 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9616 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9617 (xcoff_initial_scan): Update.
9618
9619 2019-05-08 Tom Tromey <tom@tromey.com>
9620
9621 * solib-svr4.c (struct svr4_info): Add initializers and
9622 destructor.
9623 <probes_table>: Now an htab_up.
9624 (solib_svr4_pspace_data): Change type.
9625 (free_probes_table): Simplify.
9626 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9627 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9628 (probes_table_remove_objfile_probes, register_solib_event_probe)
9629 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9630 (_initialize_svr4_solib): Update.
9631
9632 2019-05-08 Tom Tromey <tom@tromey.com>
9633
9634 * remote.c (remote_pspace_data): Change type.
9635 (remote_pspace_data_cleanup): Remove.
9636 (get_remote_exec_file, set_pspace_remote_exec_file)
9637 (_initialize_remote): Update.
9638
9639 2019-05-08 Tom Tromey <tom@tromey.com>
9640
9641 * breakpoint.c (breakpoint_objfile_key): Change type.
9642 (get_breakpoint_objfile_data): Update.
9643 (free_breakpoint_objfile_data): Remove.
9644 (_initialize_breakpoint): Update.
9645
9646 2019-05-08 Tom Tromey <tom@tromey.com>
9647
9648 * linux-tdep.c (struct linux_info): Add initializers.
9649 (linux_inferior_data): Move. Change type.
9650 (invalidate_linux_cache_inf): Update.
9651 (linux_inferior_data_cleanup): Remove.
9652 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9653
9654 2019-05-08 Tom Tromey <tom@tromey.com>
9655
9656 * auxv.c (auxv_inferior_data): Move. Change type.
9657 (auxv_inferior_data_cleanup): Remove.
9658 (invalidate_auxv_cache_inf): Rewrite.
9659 (get_auxv_inferior_data, _initialize_auxv): Update.
9660
9661 2019-05-08 Tom Tromey <tom@tromey.com>
9662
9663 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9664 (symfile_debug_objfile_data_key): Change type.
9665 (symfile_debug_installed, debug_qf_has_symbols)
9666 (debug_qf_find_last_source_symtab)
9667 (debug_qf_forget_cached_source_info)
9668 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9669 (debug_qf_print_stats, debug_qf_dump)
9670 (debug_qf_expand_symtabs_for_function)
9671 (debug_qf_expand_all_symtabs)
9672 (debug_qf_expand_symtabs_with_fullname)
9673 (debug_qf_map_matching_symbols)
9674 (debug_qf_expand_symtabs_matching)
9675 (debug_qf_find_pc_sect_compunit_symtab)
9676 (debug_qf_map_symbol_filenames)
9677 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9678 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9679 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9680 (debug_sym_read_linetable, debug_sym_relocate): Update.
9681 (symfile_debug_free_objfile): Remove.
9682 (install_symfile_debug_logging, _initialize_symfile_debug):
9683 Update.
9684
9685 2019-05-08 Tom Tromey <tom@tromey.com>
9686
9687 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9688 allocate_on_obstack.
9689 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9690 (get_dwarf2_per_objfile): Update.
9691 (set_dwarf2_per_objfile): Remove.
9692 (dwarf2_has_info, dwarf2_get_section_info): Update.
9693 (dwarf2_free_objfile): Remove.
9694 (_initialize_dwarf2_read): Update.
9695
9696 2019-05-08 Tom Tromey <tom@tromey.com>
9697
9698 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9699 initializers.
9700 <unsupported_script_warning_printed,
9701 script_not_found_warning_printed>: Now bool.
9702 (auto_load_pspace_data): Change type.
9703 (~auto_load_pspace_info): Rename from
9704 auto_load_pspace_data_cleanup.
9705 (get_auto_load_pspace_data, init_loaded_scripts_info)
9706 (clear_section_scripts, maybe_print_unsupported_script_warning)
9707 (maybe_print_script_not_found_warning, _initialize_auto_load):
9708 Update.
9709
9710 2019-05-08 Tom Tromey <tom@tromey.com>
9711
9712 * objfiles.c (objfile_pspace_info): Add destructor and
9713 initializers.
9714 (objfiles_pspace_data): Change type.
9715 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9716 (get_objfile_pspace_data): Update.
9717 (objfiles_bfd_data): Change type.
9718 (get_objfile_bfd_data): Update.
9719 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9720
9721 2019-05-08 Tom Tromey <tom@tromey.com>
9722
9723 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9724 Change type.
9725 (get_catch_syscall_inferior_data): Update.
9726 (catch_syscall_inferior_data_cleanup): Remove.
9727 (_initialize_break_catch_syscall): Update.
9728
9729 2019-05-08 Tom Tromey <tom@tromey.com>
9730
9731 * inflow.c (struct terminal_info): Add destructor and
9732 initializers.
9733 (inflow_inferior_data): Change type.
9734 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9735 (get_inflow_inferior_data, inflow_inferior_exit)
9736 (swap_terminal_info, _initialize_inflow): Update.
9737
9738 2019-05-08 Tom Tromey <tom@tromey.com>
9739
9740 * target-dcache.c (target_dcache_cleanup): Remove.
9741 (target_dcache_aspace_key): Change type.
9742 (target_dcache_init_p, target_dcache_invalidate)
9743 (target_dcache_get, target_dcache_get_or_init)
9744 (_initialize_target_dcache): Update.
9745 * dcache.h (struct dcache_deleter): New.
9746
9747 2019-05-08 Tom Tromey <tom@tromey.com>
9748
9749 * symtab.c (struct symbol_cache): Add destructor and
9750 initializers.
9751 (symbol_cache_key): Move. Change type.
9752 (make_symbol_cache, free_symbol_cache): Remove.
9753 (get_symbol_cache): Update.
9754 (symbol_cache_cleanup): Remove.
9755 (ALL_PSPACES, symbol_cache_flush)
9756 (maintenance_print_symbol_cache)
9757 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9758 Update.
9759
9760 2019-05-08 Tom Tromey <tom@tromey.com>
9761
9762 * symtab.c (struct main_info): Add destructor and initializers.
9763 (main_progspace_key): Move. Change type.
9764 (get_main_info): Update.
9765 (main_info_cleanup): Remove.
9766 (_initialize_symtab): Update.
9767
9768 2019-05-08 Tom Tromey <tom@tromey.com>
9769
9770 * registry.h (DECLARE_REGISTRY): Define the _key class.
9771
9772 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9773
9774 * NEWS: Merge two 'New commands' sections.
9775
9776 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9777
9778 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9779 parameter and use Ada language definition instead.
9780 (ada_val_print_ptr): Remove unused language parameter.
9781 (ada_val_print_num): Remove language parameter and use Ada language
9782 definition instead.
9783 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9784 parameter.
9785 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9786 parameter and use Ada language definition instead.
9787 (ada_val_print_1): Update all ada_val_print_xxx calls.
9788 Remove language parameter.
9789 (ada_val_print): Update ada_val_print_1 call.
9790
9791 2019-05-08 Tom Tromey <tromey@adacore.com>
9792
9793 * remote.c (remote_hw_watchpoint_limit)
9794 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9795 Now static.
9796
9797 2019-05-08 Tom Tromey <tromey@adacore.com>
9798
9799 * maint.c (_initialize_maint_cmds): Move initialization code to
9800 remote.c.
9801 (watchdog, show_watchdog): Move to remote.c.
9802 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9803 "watchdog" static.
9804 (_initialize_remote): Move initialization code from maint.c.
9805 * defs.h (watchdog): Don't declare.
9806
9807 2019-05-08 Tom Tromey <tromey@adacore.com>
9808
9809 * tui/tui-interp.c: Include main.h.
9810 * interps.c: Include main.h.
9811 * main.h (interpreter_p): Declare.
9812 * defs.h (interpreter_p): Don't declare.
9813
9814 2019-05-08 Tom Tromey <tromey@adacore.com>
9815
9816 * dwarf2loc.c: Include dwarf2read.h.
9817 * defs.h (read_unsigned_leb128): Don't declare.
9818 * dwarf2read.h (read_unsigned_leb128): Declare.
9819
9820 2019-05-08 Tom Tromey <tromey@adacore.com>
9821
9822 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9823 method.
9824
9825 2019-05-08 Tom Tromey <tromey@adacore.com>
9826
9827 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9828 when no wrap column is set.
9829
9830 2019-05-08 Tom Tromey <tromey@adacore.com>
9831
9832 * c-lang.c (c_get_string): Handle non-C-style arrays.
9833
9834 2019-05-08 Tom Tromey <tromey@adacore.com>
9835
9836 * typeprint.c (print_offset_data::update): Print the bit offset,
9837 not the number of bits remaining.
9838
9839 2019-05-08 Tom Tromey <tromey@adacore.com>
9840
9841 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9842 padding at end of comment.
9843
9844 2019-05-08 Tom Tromey <tromey@adacore.com>
9845
9846 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9847 Compare main types.
9848
9849 2019-05-06 Tom Tromey <tom@tromey.com>
9850
9851 * common/scoped_mmap.c: Include common-defs.h.
9852 * common/scoped_mmap.h: Don't include config.h.
9853
9854 2019-05-04 Tom Tromey <tom@tromey.com>
9855
9856 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9857 (struct aarch64_call_info): Add initializers.
9858 <si>: Now a std::vector.
9859 (pass_on_stack, aarch64_push_dummy_call): Update.
9860
9861 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9862 Tom Tromey <tom@tromey.com>
9863
9864 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9865 (ppc_threads): Now a std::vector. Now static.
9866 (hwdebug_find_thread_points_by_tid)
9867 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9868 Update.
9869
9870 2019-05-04 Tom Tromey <tom@tromey.com>
9871
9872 * arc-tdep.c (arc_tdesc_init): Return bool.
9873
9874 2019-05-04 Tom Tromey <tom@tromey.com>
9875
9876 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9877 Use gdb_assert_not_reached.
9878
9879 2019-05-04 Tom Tromey <tom@tromey.com>
9880
9881 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9882 "false".
9883
9884 2019-05-04 Tom Tromey <tom@tromey.com>
9885
9886 * arc-tdep.c (arc_tdesc_init): Use bool.
9887
9888 2019-05-04 Tom Tromey <tom@tromey.com>
9889
9890 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9891
9892 2019-05-04 Tom Tromey <tom@tromey.com>
9893
9894 * cli/cli-cmds.c (valid_command_p): Return bool.
9895
9896 2019-05-04 Tom Tromey <tom@tromey.com>
9897
9898 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9899 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9900
9901 2019-05-04 Raul Tambre <raul@tambre.ee>
9902
9903 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9904 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9905 operator for comparison.
9906
9907 2019-05-04 Tom Tromey <tom@tromey.com>
9908
9909 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9910 (lookup_partial_symbol, print_partial_symbols)
9911 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9912 (psymbol_compare): Update.
9913 (add_psymbol_to_bcache): Clear the entire psymbol.
9914 (maintenance_check_psymtabs): Update.
9915 * psympriv.h (struct partial_symbol): Don't derive from
9916 general_symbol_info.
9917 <obj_section, unrelocated_address, address,
9918 set_unrelocated_address>: Update.
9919 <ginfo>: New member.
9920 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9921 (debug_names::write_psymbols): Update.
9922
9923 2019-05-04 Tom de Vries <tdevries@suse.de>
9924
9925 * contrib/cc-with-tweaks.sh: Support -n arg.
9926
9927 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9928
9929 * corelow.c (core_target::detach): Ensure frame cache and
9930 register caches are cleared.
9931 inferior.c (exit_inferior_1): Likewise.
9932
9933 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9934 Tom Tromey <tom@tromey.com>
9935
9936 * dictionary.c (collate_pending_symbols_by_language): Remove
9937 "struct" from foreach.
9938 * symtab.c (lookup_global_symbol_from_objfile)
9939 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9940 foreach.
9941 * ser-tcp.c (net_open): Remove "struct" from foreach.
9942 * objfiles.c (objfile_relocate, objfile_rebase)
9943 (objfile_has_symbols): Remove "struct" from foreach.
9944 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9945 from foreach.
9946 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9947 foreach.
9948 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9949 "struct" from foreach.
9950 * ada-lang.c (create_excep_cond_exprs)
9951 (ada_exception_catchpoint_cond_string): Remove "struct" from
9952 foreach.
9953
9954 2019-05-03 Tom Tromey <tromey@adacore.com>
9955
9956 * ada-exp.y (convert_char_literal): Check suffix of each
9957 enumerator.
9958
9959 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9960
9961 PR ada/21406:
9962 * ada-exp.y (yywrap): Don't define.
9963 * ada-lex.l (%option): Add noyywrap
9964 (yywrap): Remove.
9965
9966 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9967
9968 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9969 _WIN32_WINNT to the XP level, unless already defined to a higher
9970 level.
9971
9972 * unittests/parse-connection-spec-selftests.c:
9973 * ser-tcp.c:
9974 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9975 override.
9976
9977 * symfile.c (find_separate_debug_file): Remove colon from the
9978 drive spec of DOS/Windows file names of the target, so that the
9979 file name produced from DEBUGDIR and the target's directory will
9980 be valid on DOS/Windows systems.
9981
9982 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9983
9984 * rust-lang.c (val_print_struct): Handle printing structures
9985 containing strings.
9986
9987 2019-05-02 Tom Tromey <tromey@adacore.com>
9988
9989 * valarith.c (_initialize_valarith): Remove.
9990
9991 2019-05-01 Tom Tromey <tromey@adacore.com>
9992
9993 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9994 bitfields.
9995
9996 2019-05-01 Tom Tromey <tromey@adacore.com>
9997
9998 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9999 for big-endian copies.
10000
10001 2019-04-30 Ali Tamur <tamur@google.com>
10002 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10003 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10004 (read_3_bytes): New function.
10005
10006 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10007
10008 * windows-nat.c (main_thread_id): Delete.
10009 (handle_output_debug_string): Replace main_thread_id by
10010 current_event.dwThreadId.
10011 (fake_create_process): Likewise.
10012 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10013 Do not set main_thread_id.
10014 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10015 current_event.dwThreadId.
10016 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10017
10018 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10019
10020 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10021 Use current_event.dwThreadId instead of main_thread_id.
10022
10023 2019-04-30 Tom Tromey <tromey@adacore.com>
10024
10025 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10026 (create_excep_cond_exprs): Iterate over program spaces.
10027 (ada_exception_catchpoint_cond_string): Examine all minimal
10028 symbols for exception types.
10029
10030 2019-04-30 Tom Tromey <tromey@adacore.com>
10031
10032 PR c++/24470:
10033 * dwarf2read.c (process_structure_scope): Handle case where type
10034 has template parameters but no symbol was created.
10035
10036 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10037 Chris January <chris.january@arm.com>
10038
10039 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10040 qualifier.
10041 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10042
10043 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10044
10045 * f-typeprint.c (f_print_type): Update rules for printing
10046 whitespace.
10047 (f_type_print_varspec_suffix): Likewise.
10048
10049 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10050 Chris January <chris.january@arm.com>
10051
10052 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10053 function arguments.
10054
10055 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10056
10057 * f-lang.c (build_fortran_types): Change name of void type to
10058 lower case.
10059 * f-typeprint.c (f_type_print_base): Print the name of the void
10060 type, rather than a fixed string.
10061 * f-valprint.c (f_decorations): Use lower case void string.
10062
10063 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10064 Chris January <chris.january@arm.com>
10065
10066 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10067 types for Fortran.
10068
10069 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10070 Chris January <chris.january@arm.com>
10071 David Lecomber <david.lecomber@arm.com>
10072
10073 * f-exp.y (BINOP_INTRINSIC): New token.
10074 (exp): New parser rule handling BINOP_INTRINSIC.
10075 (f77_keywords): Add new builtin procedures.
10076 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10077 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10078 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10079 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10080 (print_unop_subexp_f): New function.
10081 (print_binop_subexp_f): New function.
10082 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10083 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10084 (dump_subexp_body_f): Likewise.
10085 (operator_check_f): Likewise.
10086 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10087 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10088
10089 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10090
10091 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10092 UNOP_KIND.
10093 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10094 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10095 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10096 (operator_length_f): New fuction.
10097 (print_subexp_f): New function.
10098 (op_name_f): New function.
10099 (dump_subexp_body_f): New function.
10100 (operator_check_f): New function.
10101 (exp_descriptor_f): Replace standard expression handling functions
10102 with new functions.
10103 * gdb/fortran-operator.def: New file.
10104 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10105 * gdb/std-operator.def: Remove UNOP_KIND.
10106
10107 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10108
10109 * std-operator.def: Remove unbalanced, stray double quote
10110 character.
10111
10112 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10113 Chris January <chris.january@arm.com>
10114 Daniel Everett <daniel.everett@arm.com>
10115 Nick Forrington <nick.forrington@arm.com>
10116 Richard Bunt <richard.bunt@arm.com>
10117
10118 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10119 of depth when printing anonymous structs or unions.
10120 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10121 Don't print either the top-level value, or the children if the
10122 max-depth is exceeded.
10123 (ppscm_print_children): When printing the key of a map, allow one
10124 extra level of depth.
10125 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10126 print either the top-level value, or the children if the max-depth
10127 is exceeded.
10128 (print_children): When printing the key of a map, allow one extra
10129 level of depth.
10130 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10131 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10132 (user_print_options): Initialise max_depth field.
10133 (val_print_scalar_or_string_type_p): New function.
10134 (val_print): Check to see if the max depth has been reached.
10135 (val_print_check_max_depth): Define new function.
10136 (show_print_max_depth): New function.
10137 (_initialize_valprint): Add 'print max-depth' option.
10138 * valprint.h (struct value_print_options) <max_depth>: New field.
10139 (val_print_check_max_depth): Declare new function.
10140 * NEWS: Document new feature.
10141
10142 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10143
10144 * ada-lang.c (ada_language_defn): Initialise new field.
10145 * c-lang.c (c_is_string_type_p): New function.
10146 (c_language_defn): Initialise new field.
10147 (cplus_language_defn): Initialise new field.
10148 (asm_language_defn): Initialise new field.
10149 (minimal_language_defn): Initialise new field.
10150 * c-lang.h (c_is_string_type_p): Declare new function.
10151 * d-lang.c (d_language_defn): Initialise new field.
10152 * f-lang.c (f_is_string_type_p): New function.
10153 (f_language_defn): Initialise new field.
10154 * go-lang.c (go_is_string_type_p): New function.
10155 (go_language_defn): Initialise new field.
10156 * language.c (default_is_string_type_p): New function.
10157 (unknown_language_defn): Initialise new field.
10158 (auto_language_defn): Initialise new field.
10159 * language.h (struct language_defn) <la_is_string_type_p>: New
10160 member variable.
10161 (default_is_string_type_p): Declare new function.
10162 * m2-lang.c (m2_language_defn): Initialise new field.
10163 * objc-lang.c (objc_language_defn): Initialise new field.
10164 * opencl-lang.c (opencl_language_defn): Initialise new field.
10165 * p-lang.c (pascal_is_string_type_p): New function.
10166 (pascal_language_defn): Initialise new field.
10167 * rust-lang.c (rust_is_string_type_p): New function.
10168 (rust_language_defn): Initialise new field.
10169
10170 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10171
10172 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10173 New field.
10174 * ada-lang.c (ada_language_defn): Initialise new field.
10175 * c-lang.c (c_language_defn): Likewise.
10176 (cplus_language_defn): Likewise.
10177 (asm_language_defn): Likewise.
10178 (minimal_language_defn): Likewise.
10179 * d-lang.c (d_language_defn): Likewise.
10180 * f-lang.c (f_language_defn): Likewise.
10181 * go-lang.c (go_language_defn): Likewise.
10182 * language.c (unknown_language_defn): Likewise.
10183 (auto_language_defn): Likewise.
10184 * m2-lang.c (m2_language_defn): Likewise.
10185 * objc-lang.c (objc_language_defn): Likewise.
10186 * opencl-lang.c (opencl_language_defn): Likewise.
10187 * p-lang.c (pascal_language_defn): Likewise.
10188 * rust-lang.c (rust_language_defn): Likewise.
10189
10190 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10191
10192 * ada-lang.c (ada_is_character_type): Change return type to bool.
10193 (ada_is_string_type): Likewise.
10194 * ada-lang.h (ada_is_character_type): Update declaration
10195 (ada_is_string_type): Likewise.
10196
10197 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10198
10199 Support style in 'frame|thread apply'
10200
10201 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10202 * record.c (record_start, record_stop): Update callers of
10203 execute_command_to_string with false.
10204 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10205 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10206 methods.
10207 (class string_file): New constructor with term_out parameter.
10208 Override methods term_out and can_emit_style_escape. New member
10209 term_out.
10210 (class stdio_file): Override can_emit_style_escape.
10211 (class tee_file): Override term_out and can_emit_style_escape.
10212 * utils.h (can_emit_style_escape): Remove.
10213 * utils.c (can_emit_style_escape): Likewise.
10214 Update all callers of can_emit_style_escape (SOMESTREAM) to
10215 SOMESTREAM->can_emit_style_escape.
10216 * source-cache.c (source_cache::get_source_lines): Likewise.
10217 * stack.c (frame_apply_command_count): Call execute_command_to_string
10218 passing the term_out characteristic of the current gdb_stdout.
10219 * thread.c (thr_try_catch_cmd): Likewise.
10220 * top.c (execute_command_to_string): pass term_out parameter
10221 to construct the string_file for the command output.
10222 * ui-file.c (term_cli_styling): New function (most code moved
10223 from utils.c can_emit_style_escape).
10224 (string_file::string_file, string_file::can_emit_style_escape,
10225 stdio_file::can_emit_style_escape, tee_file::term_out,
10226 tee_file::can_emit_style_escape): New functions.
10227
10228 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10229
10230 * NEWS: Mention the new set|show may-call-functions.
10231 * infcall.c (may_call_functions_p): New variable.
10232 (show_may_call_functions_p): New function.
10233 (call_function_by_hand_dummy): Throws an error if not
10234 may-call-functions.
10235 (_initialize_infcall): Call add_setshow_boolean_cmd for
10236 may-call-functions.
10237
10238 2019-04-25 Keith Seitz <keiths@redhat.com>
10239
10240 PR c++/24367
10241 * cp-support.c (inspect_type): Don't attempt substitutions
10242 of symbol with the same name.
10243
10244 2019-04-25 Tom Tromey <tromey@adacore.com>
10245
10246 PR gdb/24475:
10247 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10248 static.
10249
10250 2019-04-25 Tom Tromey <tromey@adacore.com>
10251
10252 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10253 rvalue reference.
10254 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10255 (gdb_xml_parser::parse): Use std::move.
10256 * python/python-internal.h (gdbpy_convert_exception): Take a const
10257 reference.
10258 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10259 std::move.
10260 * python/py-utils.c (gdbpy_convert_exception): Take a const
10261 reference.
10262 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10263 Use std::move.
10264 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10265 Use std::move.
10266 * mi/mi-main.c (mi_print_exception): Take a const reference.
10267 * main.c (handle_command_errors): Take a const reference.
10268 * linespec.c (parse_linespec): Use std::move.
10269 * infcall.c (run_inferior_call): Use std::move.
10270 (call_function_by_hand_dummy): Use std::move.
10271 * exec.c (try_open_exec_file): Use std::move.
10272 * exceptions.h (exception_print, exception_fprintf)
10273 (exception_print_same): Update.
10274 * exceptions.c (print_exception, exception_print)
10275 (exception_fprintf, exception_print_same): Change parameters to
10276 const reference.
10277 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10278 * common/new-op.c: Use std::move.
10279 * common/common-exceptions.h (struct gdb_exception): Add move
10280 constructor.
10281 (struct gdb_exception_error, struct gdb_exception_quit, struct
10282 gdb_quit_bad_alloc): Change constructor to move constructor.
10283 (throw_exception): Change parameter to rvalue reference.
10284 * common/common-exceptions.c (throw_exception): Take rvalue
10285 reference.
10286 * cli/cli-interp.c (safe_execute_command): Use std::move.
10287 * breakpoint.c (insert_bp_location, location_to_sals): Use
10288 std::move.
10289
10290 2019-04-25 Tom Tromey <tromey@adacore.com>
10291
10292 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10293 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10294 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10295 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10296 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10297 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10298 guile/scm-value.c: Use unpack.
10299 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10300 gdbscm_gdb_exception.
10301 (gdbscm_throw_gdb_exception): Likewise.
10302 (struct gdbscm_gdb_exception): New.
10303 (unpack): New function.
10304 (gdbscm_wrap): Use unpack.
10305
10306 2019-04-25 Tom Tromey <tromey@adacore.com>
10307
10308 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10309 (gdb_rl_callback_handler): Use std::move.
10310 * common/common-exceptions.h (struct gdb_exception): Add move
10311 assignment operator.
10312 (throw_exception_sjlj): Change "exception" to const reference.
10313 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10314 (throw_exception_sjlj): Change "exception" to const reference.
10315
10316 2019-04-25 Tom Tromey <tromey@adacore.com>
10317
10318 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10319 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10320 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10321 Update.
10322 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10323 Update.
10324 * mi/mi-interp.c (mi_interp::exec): Update.
10325 * linespec.c (parse_linespec): Update.
10326 * infcall.c (run_inferior_call): Update.
10327 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10328 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10329 (gdbscm_lookup_global_symbol): Update.
10330 * guile/scm-param.c (gdbscm_parameter_value): Update.
10331 * guile/scm-frame.c (gdbscm_frame_read_register)
10332 (gdbscm_frame_read_var): Update.
10333 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10334 * exec.c (try_open_exec_file): Update.
10335 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10336 (gdb_rl_callback_handler): Update.
10337 * common/common-exceptions.h (exception_none): Don't declare.
10338 * common/common-exceptions.c (exception_none): Don't define.
10339 (struct catcher) <exception>: Update.
10340 * cli/cli-interp.c (safe_execute_command): Update.
10341 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10342
10343 2019-04-25 Ali Tamur <tamur@google.com>
10344
10345 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10346 (read_attribute_value): Likewise.
10347 (dwarf2_read_addr_index): Update comment.
10348 (read_str_index): Add DW_FORM_strx.
10349 (dwarf2_string_attr): Likewise.
10350 (dwarf2_const_value_attr): Likewise.
10351 (dump_die_shallow): Likewise.
10352 (dwarf2_fetch_constant_bytes): Likewise.
10353 (skip_form_bytes): Likewise.
10354 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10355
10356 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10357
10358 PR corefiles/11608
10359 PR corefiles/18187
10360 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10361 OFFSET. Verify if current mapping contains an ELF header.
10362 (linux_find_memory_regions_full): Adjust call to
10363 dump_mapping_p.
10364
10365 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10366 Kang Li <kanglictf@gmail.com>
10367
10368 PR gdb/21600
10369
10370 * dwarf2-frame.c (read_initial_length): Be consistent about using
10371 unsigned representation of length.
10372 (decode_frame_entry_1): Likewise. Check for wraparound of
10373 end pointer as well as buffer overflow.
10374
10375 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10376
10377 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10378 "vq".
10379
10380 2019-04-24 Tom Tromey <tromey@adacore.com>
10381
10382 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10383
10384 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10385
10386 * s12z-tdep.c (s12z_unwind_pc): Delete.
10387 (s12z_unwind_sp): Delete.
10388 (s12z_gdbarch_init): Don't register deleted functions with
10389 gdbarch.
10390
10391 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10392
10393 * rl78-tdep.c (rl78_unwind_sp): Delete.
10394 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10395
10396 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10397
10398 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10399 (xstormy16_unwind_pc): Delete.
10400 (xstormy16_dummy_id): Delete.
10401 (xstormy16_gdbarch_init): Don't register deleted functions with
10402 gdbarch.
10403
10404 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10405
10406 * vax-tdep.c (vax_unwind_pc): Delete.
10407 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10408
10409 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10410
10411 * v850-tdep.c (v850_unwind_sp): Delete.
10412 (v850_unwind_pc): Delete.
10413 (v850_dummy_id): Delete.
10414 (v850_gdbarch_init): Don't register deleted functions with
10415 gdbarch.
10416
10417 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10418
10419 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10420 (tilegx_unwind_pc): Delete.
10421 (tilegx_unwind_dummy_id): Delete.
10422 (tilegx_gdbarch_init): Don't register deleted functions with
10423 gdbarch.
10424
10425 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10426
10427 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10428 (tic6x_dummy_id): Delete.
10429 (tic6x_gdbarch_init): Don't register deleted functions with
10430 gdbarch.
10431
10432 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10433
10434 * sparc-tdep.c (sparc_unwind_pc): Delete.
10435 (sparc32_gdbarch_init): Don't register deleted function with
10436 gdbarch.
10437
10438 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10439
10440 * sh-tdep.c (sh_unwind_sp): Delete.
10441 (sh_unwind_pc): Delete.
10442 (sh_dummy_id): Delete.
10443 (sh_gdbarch_init): Don't register deleted functions with
10444 gdbarch.
10445
10446 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10447
10448 * score-tdep.c (score_unwind_sp): Delete.
10449 (score_unwind_pc): Delete.
10450 (score_dummy_id): Delete.
10451 (score_gdbarch_init): Don't register deleted functions with
10452 gdbarch.
10453
10454 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10455
10456 * rx-tdep.c (rx_unwind_pc): Delete.
10457 (rx_unwind_sp): Delete.
10458 (rx_dummy_id): Delete.
10459 (rx_gdbarch_init): Don't register deleted functions with
10460 gdbarch. Update comment.
10461
10462 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10463
10464 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10465 (rs6000_dummy_id): Delete.
10466 (rs6000_gdbarch_init): Don't register deleted functions with
10467 gdbarch.
10468
10469 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10470
10471 * or1k-tdep.c (or1k_dummy_id): Delete.
10472 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10473
10474 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10475
10476 * nios2-tdep.c (nios2_dummy_id): Delete.
10477 (nios2_unwind_sp): Delete.
10478 (nios2_gdbarch_init): Don't register deleted functions with
10479 gdbarch.
10480
10481 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10482
10483 * nds32-tdep.c (nds32_dummy_id): Delete.
10484 (nds32_unwind_pc): Delete.
10485 (nds32_unwind_sp): Delete.
10486 (nds32_gdbarch_init): Don't register deleted functions with
10487 gdbarch.
10488
10489 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10490
10491 * msp430-tdep.c (msp430_unwind_pc): Delete.
10492 (msp430_unwind_sp): Delete.
10493 (msp430_dummy_id): Delete.
10494 (msp430_gdbarch_init): Don't register deleted functions with
10495 gdbarch.
10496
10497 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10498
10499 * moxie-tdep.c (moxie_unwind_sp): Delete.
10500 (moxie_unwind_pc): Delete.
10501 (moxie_dummy_id): Delete.
10502 (moxie_gdbarch_init): Don't register deleted functions with
10503 gdbarch.
10504
10505 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10506
10507 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10508 (mn10300_unwind_pc): Delete.
10509 (mn10300_unwind_sp): Delete.
10510 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10511 mn10300_unwind_sp.
10512 (mn10300_frame_unwind_init): Don't register deleted functions with
10513 gdbarch.
10514
10515 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10516
10517 * mep-tdep.c (mep_unwind_pc): Delete.
10518 (mep_unwind_sp): Delete.
10519 (mep_dummy_id): Delete.
10520 (mep_gdbarch_init): Don't register deleted functions with
10521 gdbarch.
10522
10523 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10524
10525 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10526 (m68hc11_unwind_sp): Delete.
10527 (m68hc11_gdbarch_init): Don't register deleted functions with
10528 gdbarch.
10529
10530 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10531
10532 * m32r-tdep.c (m32r_unwind_sp): Delete.
10533 (m32r_unwind_pc): Delete.
10534 (m32r_dummy_id): Delete.
10535 (m32r_gdbarch_init): Don't register deleted functions with
10536 gdbarch.
10537
10538 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10539
10540 * m32c-tdep.c (m32c_unwind_pc): Delete.
10541 (m32c_unwind_sp): Delete.
10542 (m32c_dummy_id): Delete.
10543 (m32c_gdbarch_init): Don't register deleted functions with
10544 gdbarch.
10545
10546 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10547
10548 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10549 (lm32_unwind_pc): Delete.
10550 (lm32_dummy_id): Delete.
10551 (lm32_gdbarch_init): Don't register deleted functions with
10552 gdbarch.
10553
10554 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10555
10556 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10557 (iq2000_unwind_pc): Delete.
10558 (iq2000_dummy_id): Delete.
10559 (iq2000_gdbarch_init): Don't register deleted functions with
10560 gdbarch.
10561
10562 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10563
10564 * nds32-tdep.c (nds32_type_align): Delete.
10565 (nds32_push_dummy_call): Use type_align instead.
10566
10567 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10568
10569 * arm-tdep.c (arm_type_align): Only handle vector override case.
10570 (arm_push_dummy_call): Use type_align.
10571 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10572
10573 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10574
10575 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10576 case.
10577 (pass_on_stack): Use type_align.
10578 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10579 function.
10580
10581 2019-04-23 Tom Tromey <tromey@adacore.com>
10582
10583 * dwarf2read.c (line_header::file_name_at): Remove unused
10584 overload.
10585
10586 2019-04-23 Tom de Vries <tdevries@suse.de>
10587
10588 PR gdb/24438
10589 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10590 invocation.
10591
10592
10593 2019-03-27 Ali Tamur <tamur@google.com>
10594
10595 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10596 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10597 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10598 (dwarf_expr_context::get_addr_index): Likewise
10599 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10600 (symbol_needs_eval_context::get_addr_index): Likewise
10601 (disassemble_dwarf_expression): Add DW_OP_addrx
10602 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10603 (read_cutu_die_from_dwo): Update comment
10604 (skip_one_die): Add DW_FORM_addrx
10605 (read_attribute_value): Likewise
10606 (var_decode_location): Add DW_OP_addrx
10607 (dwarf2_const_value_attr): Add DW_FORM_addrx
10608 (dump_die_shallow): Likewise
10609 (dwarf2_fetch_constant_bytes): Likewise
10610 (decode_locdesc): Add DW_OP_addrx
10611 (skip_form_bytes): Add DW_FORM_addrx
10612
10613 2019-04-22 Ali Tamur <tamur@google.com>
10614
10615 * MAINTAINERS (Write After Approval): Add self.
10616
10617 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10618
10619 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10620 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10621 (open_symbol_file_object): Likewise.
10622 (svr4_default_sos): Add info parameter.
10623 (svr4_read_so_list): Likewise.
10624 (svr4_current_sos_direct): Adjust functions calls to pass down
10625 info.
10626 (svr4_current_sos_1): Add info parameter.
10627 (svr4_current_sos): Call get_svr4_info, pass info down to
10628 svr4_current_sos_1.
10629 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10630 get_svr4_info.
10631 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10632 get_svr4_info.
10633 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10634 to get_svr4_info.
10635 (probes_table_remove_objfile_probes): Likewise.
10636 (register_solib_event_probe): Add info parameter.
10637 (solist_update_incremental): Pass info parameter down to
10638 svr4_read_so_list.
10639 (disable_probes_interface): Add info parameter.
10640 (svr4_handle_solib_event): Pass current_program_space to
10641 get_svr4_info. Adjust disable_probes_interface cleanup.
10642 (svr4_create_probe_breakpoints): Add info parameter, pass it
10643 down to register_solib_event_probe.
10644 (svr4_create_solib_event_breakpoints): Add info parameter,
10645 pass it down to svr4_create_probe_breakpoints.
10646 (enable_break): Pass info down to
10647 svr4_create_solib_event_breakpoints.
10648 (svr4_solib_create_inferior_hook): Pass current_program_space to
10649 get_svr4_info.
10650 (svr4_clear_solib): Likewise.
10651
10652 2019-04-22 Pedro Alves <palves@redhat.com>
10653
10654 * solib-svr4.c (svr4_free_objfile_observer): New.
10655 (probe_and_action::objfile): New field.
10656 (probes_table_htab_remove_objfile_probes)
10657 (probes_table_remove_objfile_probes): New functions.
10658 (register_solib_event_probe): Add 'objfile' parameter. Store it
10659 in the new probe_and_action. Don't store the probe in 'lookup'.
10660 (svr4_create_probe_breakpoints): Pass objfile to
10661 register_solib_event_probe.
10662 (_initialize_svr4_solib): Register a free_objfile observer.
10663
10664 2019-04-19 Tom Tromey <tom@tromey.com>
10665
10666 * common/queue.h: Remove.
10667
10668 2019-04-19 Tom Tromey <tom@tromey.com>
10669
10670 * event-loop.c: Don't include "common/queue.h".
10671
10672 2019-04-19 Tom Tromey <tom@tromey.com>
10673
10674 * remote.c (remote_target): Use delete.
10675 * remote-notif.h: Include <list>, not "common/queue.h".
10676 (notif_client_p): Remove typedef.
10677 (remote_notif_state): Add constructor, destructor, initializer.
10678 <notif_queue>: Now a std::list.
10679 (remote_notif_state_xfree): Don't declare.
10680 * remote-notif.c (remote_notif_process, handle_notification)
10681 (remote_notif_state_allocate): Update.
10682 (~remote_notif_state): Rename from remote_notif_state_xfree.
10683
10684 2019-04-19 Tom Tromey <tom@tromey.com>
10685
10686 * symfile.c (reread_symbols): Update.
10687 * objfiles.c (objfile_register_static_link)
10688 (objfile_lookup_static_link): Update
10689 (~objfile) Don't delete static_links.
10690 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10691
10692 2019-04-19 Tom Tromey <tom@tromey.com>
10693
10694 * type-stack.h (struct type_stack) <insert>: Constify string.
10695 * type-stack.c (type_stack::insert): Constify string.
10696 * gdbtypes.h (lookup_template_type): Update.
10697 (address_space_name_to_int): Update.
10698 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10699 const.
10700 (lookup_template_type): Make name const.
10701 * c-exp.y: Update rules.
10702 (lex_one_token, classify_name, classify_inner_name)
10703 (c_print_token): Update.
10704 * p-exp.y: Update rules.
10705 (yylex): Update.
10706 * f-exp.y: Update rules.
10707 (yylex): Update.
10708 * d-exp.y: Update rules.
10709 (lex_one_token, classify_name, classify_inner_name): Update.
10710 * parse.c (write_dollar_variable, copy_name): Return std::string.
10711 * parser-defs.h (copy_name): Change return type.
10712 * m2-exp.y: Update rules.
10713 (yylex): Update.
10714 * go-exp.y (lex_one_token): Update.
10715 Update rules.
10716 (classify_unsafe_function, classify_packaged_name)
10717 (classify_name, yylex): Update.
10718
10719 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10720
10721 * configure.ac: add --enable-source-highlight switch.
10722 * configure: Regenerate.
10723 * top.c (print_gdb_version): plumb --enable-source-highlight
10724 status to "show configuration".
10725
10726 2019-04-19 Tom Tromey <tromey@adacore.com>
10727
10728 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10729 Check ADA_TYPE_P.
10730 (empty_record, ada_template_to_fixed_record_type_1)
10731 (template_to_static_fixed_type)
10732 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10733 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10734 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10735 macros.
10736
10737 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10738
10739 PR symtab/24423:
10740 * source.c (print_source_lines_base): Advance "iter" when a
10741 control character is seen.
10742
10743 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10744
10745 * inferior.h (struct infcall_suspend_state_deleter):
10746 Catch exception in destructor to avoid crash.
10747
10748 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10749
10750 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10751 close to the add_com "shell".
10752
10753 2019-04-18 Tom Tromey <tromey@adacore.com>
10754
10755 * process-stratum-target.h (class process_stratum_target)
10756 <stratum>: Add "final".
10757
10758 2019-04-17 Tom Tromey <tromey@adacore.com>
10759
10760 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10761 against nullptr before use.
10762
10763 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10764
10765 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10766
10767 2019-04-17 Jim Wilson <jimw@sifive.com>
10768 Andrew Burgess <andrew.burgess@embecosm.com>
10769
10770 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10771 code read might fail, assume 4-byte breakpoint in that case.
10772
10773 2019-04-15 Leszek Swirski <leszeks@google.com>
10774
10775 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10776 rather than a hand-rolled POD check when checking for forced MEMORY
10777 classification.
10778
10779 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10780
10781 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10782 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10783 function.
10784 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10785 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10786 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10787 declaration.
10788
10789 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10790
10791 * aarch64-linux-nat.c
10792 (aarch64_linux_nat_target::thread_architecture): Add override.
10793 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10794 each VQ.
10795
10796 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10797
10798 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10799
10800 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10801
10802 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10803 target types of size 96-bits, add some additional comments, and
10804 check that the builtin type we found was the correct size.
10805
10806 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10807
10808 * utils.c (prompt_for_continue): Don't restore the styling at the
10809 end, as applied_style has the wrong value. This fixes styling in
10810 long lists of file names that are interrupted by the "Continue?"
10811 prompt.
10812
10813 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10814
10815 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10816 * c-lang.c (c_language_defn): Likewise.
10817 (cplus_language_defn): Likewise.
10818 (asm_language_defn): Likewise.
10819 (minimal_language_defn): Likewise.
10820 * d-lang.c (d_language_defn): Likewise.
10821 * f-lang.c (f_language_defn): Likewise.
10822 * go-lang.c (go_language_defn): Likewise.
10823 * language.c (unknown_language_defn): Likewise.
10824 (auto_language_defn): Likewise.
10825 * language.h (struct language_defn): Remove la_magic field.
10826 (LANG_MAGIC): Delete.
10827 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10828 * objc-lang.c (objc_language_defn): Likewise.
10829 * opencl-lang.c (opencl_language_defn): Likewise.
10830 * p-lang.c (pascal_language_defn): Likewise.
10831 * rust-lang.c (rust_language_defn): Likewise.
10832
10833 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10834
10835 * riscv-tdep.c (riscv_type_align): New function.
10836 (riscv_type_alignment): Delete.
10837 (riscv_arg_location): Use 'type_align'.
10838 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10839
10840 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10841
10842 * gdbtypes.c (type_align): A struct with no non-static fields also
10843 has alignment of 1.
10844
10845 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10846
10847 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10848 component to 0.
10849 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10850 member.
10851 (riscv_struct_info::analyse): New implementation using new
10852 analyse_inner member function.
10853 (riscv_struct_info::field_offset): New member function.
10854 (riscv_struct_info::m_offsets): New member variable.
10855 (riscv_struct_info::analyse_inner): New private member function,
10856 takes the old implementation of riscv_struct_info::analyse but
10857 extended to track field offsets.
10858 (riscv_call_arg_struct): Update the struct folding special cases
10859 to handle cases where empty C++ structs, which are non-zero
10860 length, are found.
10861 (riscv_arg_location): Initialise the length of each location, a
10862 non-zero length now indicates the location is in use.
10863 (riscv_push_dummy_call): Allow for the first location having a
10864 non-zero offset when setting up arguments.
10865 (riscv_return_value): Likewise, but for return values.
10866
10867 2019-04-11 Tom Tromey <tromey@adacore.com>
10868
10869 * utils.c (internal_vproblem): Make "msg" const.
10870
10871 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10872
10873 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10874 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10875 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10876 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10877
10878 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10879
10880 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10881 function.
10882 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10883 of amd64_collect_native_gregset.
10884 (amd64_linux_nat_target::store_registers): Likewise.
10885
10886 2019-04-10 Tom Tromey <tom@tromey.com>
10887
10888 * symtab.c (lookup_global_symbol_from_objfile)
10889 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10890 * objfiles.h (class separate_debug_iterator): New.
10891 (class separate_debug_range): New.
10892 (struct objfile) <separate_debug_objfiles>: New method.
10893 (objfile_separate_debug_iterate): Don't declare.
10894 * objfiles.c (separate_debug_iterator::operator++): Rename from
10895 objfile_separate_debug_iterate.
10896 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10897 iterator.
10898 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10899 iterator.
10900
10901 2019-04-10 Tom Tromey <tom@tromey.com>
10902
10903 * symfile.c (reread_symbols): Remove old comment.
10904 * objfiles.c (free_all_objfiles): Fix a typo.
10905
10906 2019-04-10 Tom Tromey <tom@tromey.com>
10907
10908 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10909 * minsyms.c (lookup_minimal_symbol): Use foreach.
10910 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10911 (lookup_minimal_symbol_solib_trampoline): Likewise.
10912 * symfile.c (reread_symbols): Use foreach.
10913
10914 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10915 Tom Tromey <tromey@adacore.com>
10916
10917 PR rust/24414:
10918 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10919 (rust_lex_int_test): Change "value" to be LONGEST.
10920 (rust_lex_tests): Add test for long integer literal.
10921
10922 2019-04-09 Tom Tromey <tromey@adacore.com>
10923
10924 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10925 to bool.
10926 (extended_remote_target::attach): Update.
10927 (remote_target::remote_notice_new_inferior): Update.
10928 (remote_target::add_current_inferior_and_thread): Update.
10929 * inferior.c (exit_inferior_1): Use "false".
10930 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10931
10932 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10933
10934 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10935 the "start" command.
10936
10937 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10938
10939 * python/py-inferior.c (infpy_thread_from_thread_handle):
10940 Adjust comments to reflect renaming of thread_from_thread_handle
10941 to thread_from_handle. Adjust keywords. Fix type error message.
10942 (inferior_object_methods): Add thread_from_handle. Retain
10943 thread_from_thread_handle, but mark it as deprecated.
10944
10945 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10946
10947 * gdbthread.h (find_thread_by_handle): Revise declaration.
10948 * thread.c (find_thread_by_handle): Likewise. Adjust
10949 implementation too.
10950 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10951 support for buffer objects as handles.
10952
10953 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10954
10955 * python/py-infthread.c (thpy_thread_handle): New function.
10956 (thread_object_methods): Register thpy_thread_handle.
10957
10958 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10959
10960 * gdbthread.h (thread_to_thread_handle): Declare.
10961 * thread.c (gdbtypes.h): Include.
10962 (thread_to_thread_handle): New function.
10963
10964 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10965 (target_thread_info_to_thread_handle): Declare.
10966 * target.c (target_thread_info_to_thread_handle): New function.
10967 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10968 * target-delegates.c: Regenerate.
10969
10970 * linux-thread-db.c (class thread_db_target): Add method
10971 thread_info_to_thread_handle.
10972 (thread_db_target::thread_info_to_thread_handle): Define.
10973 * remote.c (class remote_target): Add new method
10974 thread_info_to_thread_handle.
10975 (remote_target::thread_info_to_thread_handle): Define.
10976
10977 2019-04-08 Pedro Alves <palves@redhat.com>
10978
10979 * common/common-exceptions.c (throw_exception): Don't create
10980 named object to throw; throw directly.
10981 (throw_it): Likewise. Don't initialize gdb_exception::message
10982 here, with new; pass FMT and AP to the ctor instead.
10983 * common/common-exceptions.h: Include <string>.
10984 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10985 const char *, va_list)): New ctor. Use std::make_shared.
10986 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10987 errors)): Delete.
10988 (gdb_exception_error::gdb_exception_error(enum errors, const char
10989 *, va_list)): New.
10990 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10991 Add assertion.
10992 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10993 errors)): Delete.
10994 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10995 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10996 Add assertion.
10997
10998 2019-04-08 Tom Tromey <tom@tromey.com>
10999
11000 * valops.c (value_rtti_indirect_type): Replace throw_exception
11001 with throw.
11002 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11003 with throw.
11004 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11005 throw.
11006 * target.c (target_translate_tls_address): Replace throw_exception
11007 with throw.
11008 * stack.c (frame_apply_command_count): Replace throw_exception
11009 with throw.
11010 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11011 throw.
11012 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11013 with throw.
11014 * rs6000-tdep.c (rs6000_frame_cache)
11015 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11016 * remote.c: Replace throw_exception with throw.
11017 * record-full.c (record_full_message, record_full_wait_1)
11018 (record_full_restore): Replace throw_exception with throw.
11019 * record-btrace.c:
11020 (get_thread_current_frame_id, record_btrace_start_replaying)
11021 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11022 (cmd_record_btrace_start): Replace throw_exception with throw.
11023 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11024 throw.
11025 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11026 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11027 * linespec.c:
11028 (find_linespec_symbols): Replace throw_exception with throw.
11029 * infrun.c (displaced_step_prepare, resume): Replace
11030 throw_exception with throw.
11031 * infcmd.c (post_create_inferior): Replace throw_exception with
11032 throw.
11033 * inf-loop.c (inferior_event_handler): Replace throw_exception
11034 with throw.
11035 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11036 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11037 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11038 (get_prev_frame_always, get_frame_pc_if_available)
11039 (get_frame_address_in_block_if_available, get_frame_language):
11040 Replace throw_exception with throw.
11041 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11042 throw_exception with throw.
11043 * eval.c (fetch_subexp_value, evaluate_var_value)
11044 (evaluate_funcall, evaluate_subexp_standard): Replace
11045 throw_exception with throw.
11046 * dwarf2loc.c (call_site_find_chain)
11047 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11048 Replace throw_exception with throw.
11049 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11050 with throw.
11051 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11052 throw.
11053 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11054 * completer.c (complete_line_internal): Replace throw_exception
11055 with throw.
11056 * compile/compile-object-run.c (compile_object_run): Replace
11057 throw_exception with throw.
11058 * cli/cli-script.c (process_next_line): Replace throw_exception
11059 with throw.
11060 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11061 (btrace_enable, btrace_maint_update_pt_packets): Replace
11062 throw_exception with throw.
11063 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11064 throw_exception with throw.
11065 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11066 throw_exception with throw.
11067 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11068 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11069 * aarch64-tdep.c (aarch64_make_prologue_cache)
11070 (aarch64_make_stub_cache): Replace throw_exception with throw.
11071
11072 2019-04-08 Tom Tromey <tom@tromey.com>
11073
11074 * common/common-exceptions.c (throw_exception): Rename from
11075 throw_exception_cxx. Remove old copy. Make argument const.
11076 (throw_it): Create and throw exception objects directly.
11077 * common/common-exceptions.h (throw_exception): Make argument
11078 const.
11079 (struct gdb_exception_error): Add constructor.
11080 (struct gdb_exception_quit): Add constructor.
11081
11082 2019-04-08 Tom Tromey <tom@tromey.com>
11083
11084 * common/common-exceptions.h (exception_rethrow): Don't declare.
11085 (TRY_SJLJ): Update comment.
11086 (TRY, CATCH, END_CATCH): Remove.
11087 * common/common-exceptions.c (exception_rethrow): Remove.
11088
11089 2019-04-08 Tom Tromey <tom@tromey.com>
11090
11091 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11092 Remove.
11093 (gdb_exception_error): Rename from
11094 gdb_exception_RETURN_MASK_ERROR.
11095 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11096 (gdb_quit_bad_alloc): Update.
11097 * aarch64-tdep.c: Update.
11098 * ada-lang.c: Update.
11099 * ada-typeprint.c: Update.
11100 * ada-valprint.c: Update.
11101 * amd64-tdep.c: Update.
11102 * arch-utils.c: Update.
11103 * break-catch-throw.c: Update.
11104 * breakpoint.c: Update.
11105 * btrace.c: Update.
11106 * c-varobj.c: Update.
11107 * cli/cli-cmds.c: Update.
11108 * cli/cli-interp.c: Update.
11109 * cli/cli-script.c: Update.
11110 * common/common-exceptions.c: Update.
11111 * common/new-op.c: Update.
11112 * common/selftest.c: Update.
11113 * compile/compile-c-symbols.c: Update.
11114 * compile/compile-cplus-symbols.c: Update.
11115 * compile/compile-object-load.c: Update.
11116 * compile/compile-object-run.c: Update.
11117 * completer.c: Update.
11118 * corelow.c: Update.
11119 * cp-abi.c: Update.
11120 * cp-support.c: Update.
11121 * cp-valprint.c: Update.
11122 * darwin-nat.c: Update.
11123 * disasm-selftests.c: Update.
11124 * dtrace-probe.c: Update.
11125 * dwarf-index-cache.c: Update.
11126 * dwarf-index-write.c: Update.
11127 * dwarf2-frame-tailcall.c: Update.
11128 * dwarf2-frame.c: Update.
11129 * dwarf2loc.c: Update.
11130 * dwarf2read.c: Update.
11131 * eval.c: Update.
11132 * event-loop.c: Update.
11133 * event-top.c: Update.
11134 * exec.c: Update.
11135 * f-valprint.c: Update.
11136 * fbsd-tdep.c: Update.
11137 * frame-unwind.c: Update.
11138 * frame.c: Update.
11139 * gdbtypes.c: Update.
11140 * gnu-v3-abi.c: Update.
11141 * guile/guile-internal.h: Update.
11142 * guile/scm-block.c: Update.
11143 * guile/scm-breakpoint.c: Update.
11144 * guile/scm-cmd.c: Update.
11145 * guile/scm-disasm.c: Update.
11146 * guile/scm-frame.c: Update.
11147 * guile/scm-lazy-string.c: Update.
11148 * guile/scm-math.c: Update.
11149 * guile/scm-param.c: Update.
11150 * guile/scm-ports.c: Update.
11151 * guile/scm-pretty-print.c: Update.
11152 * guile/scm-symbol.c: Update.
11153 * guile/scm-symtab.c: Update.
11154 * guile/scm-type.c: Update.
11155 * guile/scm-value.c: Update.
11156 * i386-linux-tdep.c: Update.
11157 * i386-tdep.c: Update.
11158 * inf-loop.c: Update.
11159 * infcall.c: Update.
11160 * infcmd.c: Update.
11161 * infrun.c: Update.
11162 * jit.c: Update.
11163 * language.c: Update.
11164 * linespec.c: Update.
11165 * linux-fork.c: Update.
11166 * linux-nat.c: Update.
11167 * linux-tdep.c: Update.
11168 * linux-thread-db.c: Update.
11169 * main.c: Update.
11170 * mi/mi-cmd-break.c: Update.
11171 * mi/mi-cmd-stack.c: Update.
11172 * mi/mi-interp.c: Update.
11173 * mi/mi-main.c: Update.
11174 * objc-lang.c: Update.
11175 * p-valprint.c: Update.
11176 * parse.c: Update.
11177 * ppc-linux-tdep.c: Update.
11178 * printcmd.c: Update.
11179 * python/py-arch.c: Update.
11180 * python/py-breakpoint.c: Update.
11181 * python/py-cmd.c: Update.
11182 * python/py-finishbreakpoint.c: Update.
11183 * python/py-frame.c: Update.
11184 * python/py-framefilter.c: Update.
11185 * python/py-gdb-readline.c: Update.
11186 * python/py-inferior.c: Update.
11187 * python/py-infthread.c: Update.
11188 * python/py-lazy-string.c: Update.
11189 * python/py-linetable.c: Update.
11190 * python/py-objfile.c: Update.
11191 * python/py-param.c: Update.
11192 * python/py-prettyprint.c: Update.
11193 * python/py-progspace.c: Update.
11194 * python/py-record-btrace.c: Update.
11195 * python/py-record.c: Update.
11196 * python/py-symbol.c: Update.
11197 * python/py-type.c: Update.
11198 * python/py-unwind.c: Update.
11199 * python/py-utils.c: Update.
11200 * python/py-value.c: Update.
11201 * python/python.c: Update.
11202 * record-btrace.c: Update.
11203 * record-full.c: Update.
11204 * remote-fileio.c: Update.
11205 * remote.c: Update.
11206 * riscv-tdep.c: Update.
11207 * rs6000-aix-tdep.c: Update.
11208 * rs6000-tdep.c: Update.
11209 * rust-exp.y: Update.
11210 * rust-lang.c: Update.
11211 * s390-tdep.c: Update.
11212 * selftest-arch.c: Update.
11213 * solib-dsbt.c: Update.
11214 * solib-frv.c: Update.
11215 * solib-spu.c: Update.
11216 * solib-svr4.c: Update.
11217 * solib.c: Update.
11218 * sparc64-linux-tdep.c: Update.
11219 * stack.c: Update.
11220 * symfile-mem.c: Update.
11221 * symmisc.c: Update.
11222 * target.c: Update.
11223 * thread.c: Update.
11224 * top.c: Update.
11225 * tracefile-tfile.c: Update.
11226 * tui/tui.c: Update.
11227 * typeprint.c: Update.
11228 * unittests/cli-utils-selftests.c: Update.
11229 * unittests/parse-connection-spec-selftests.c: Update.
11230 * valops.c: Update.
11231 * valprint.c: Update.
11232 * value.c: Update.
11233 * varobj.c: Update.
11234 * windows-nat.c: Update.
11235 * x86-linux-nat.c: Update.
11236 * xml-support.c: Update.
11237
11238 2019-04-08 Tom Tromey <tom@tromey.com>
11239
11240 * xml-support.c: Use C++ exception handling.
11241 * x86-linux-nat.c: Use C++ exception handling.
11242 * windows-nat.c: Use C++ exception handling.
11243 * varobj.c: Use C++ exception handling.
11244 * value.c: Use C++ exception handling.
11245 * valprint.c: Use C++ exception handling.
11246 * valops.c: Use C++ exception handling.
11247 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11248 handling.
11249 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11250 * typeprint.c: Use C++ exception handling.
11251 * tui/tui.c: Use C++ exception handling.
11252 * tracefile-tfile.c: Use C++ exception handling.
11253 * top.c: Use C++ exception handling.
11254 * thread.c: Use C++ exception handling.
11255 * target.c: Use C++ exception handling.
11256 * symmisc.c: Use C++ exception handling.
11257 * symfile-mem.c: Use C++ exception handling.
11258 * stack.c: Use C++ exception handling.
11259 * sparc64-linux-tdep.c: Use C++ exception handling.
11260 * solib.c: Use C++ exception handling.
11261 * solib-svr4.c: Use C++ exception handling.
11262 * solib-spu.c: Use C++ exception handling.
11263 * solib-frv.c: Use C++ exception handling.
11264 * solib-dsbt.c: Use C++ exception handling.
11265 * selftest-arch.c: Use C++ exception handling.
11266 * s390-tdep.c: Use C++ exception handling.
11267 * rust-lang.c: Use C++ exception handling.
11268 * rust-exp.y: Use C++ exception handling.
11269 * rs6000-tdep.c: Use C++ exception handling.
11270 * rs6000-aix-tdep.c: Use C++ exception handling.
11271 * riscv-tdep.c: Use C++ exception handling.
11272 * remote.c: Use C++ exception handling.
11273 * remote-fileio.c: Use C++ exception handling.
11274 * record-full.c: Use C++ exception handling.
11275 * record-btrace.c: Use C++ exception handling.
11276 * python/python.c: Use C++ exception handling.
11277 * python/py-value.c: Use C++ exception handling.
11278 * python/py-utils.c: Use C++ exception handling.
11279 * python/py-unwind.c: Use C++ exception handling.
11280 * python/py-type.c: Use C++ exception handling.
11281 * python/py-symbol.c: Use C++ exception handling.
11282 * python/py-record.c: Use C++ exception handling.
11283 * python/py-record-btrace.c: Use C++ exception handling.
11284 * python/py-progspace.c: Use C++ exception handling.
11285 * python/py-prettyprint.c: Use C++ exception handling.
11286 * python/py-param.c: Use C++ exception handling.
11287 * python/py-objfile.c: Use C++ exception handling.
11288 * python/py-linetable.c: Use C++ exception handling.
11289 * python/py-lazy-string.c: Use C++ exception handling.
11290 * python/py-infthread.c: Use C++ exception handling.
11291 * python/py-inferior.c: Use C++ exception handling.
11292 * python/py-gdb-readline.c: Use C++ exception handling.
11293 * python/py-framefilter.c: Use C++ exception handling.
11294 * python/py-frame.c: Use C++ exception handling.
11295 * python/py-finishbreakpoint.c: Use C++ exception handling.
11296 * python/py-cmd.c: Use C++ exception handling.
11297 * python/py-breakpoint.c: Use C++ exception handling.
11298 * python/py-arch.c: Use C++ exception handling.
11299 * printcmd.c: Use C++ exception handling.
11300 * ppc-linux-tdep.c: Use C++ exception handling.
11301 * parse.c: Use C++ exception handling.
11302 * p-valprint.c: Use C++ exception handling.
11303 * objc-lang.c: Use C++ exception handling.
11304 * mi/mi-main.c: Use C++ exception handling.
11305 * mi/mi-interp.c: Use C++ exception handling.
11306 * mi/mi-cmd-stack.c: Use C++ exception handling.
11307 * mi/mi-cmd-break.c: Use C++ exception handling.
11308 * main.c: Use C++ exception handling.
11309 * linux-thread-db.c: Use C++ exception handling.
11310 * linux-tdep.c: Use C++ exception handling.
11311 * linux-nat.c: Use C++ exception handling.
11312 * linux-fork.c: Use C++ exception handling.
11313 * linespec.c: Use C++ exception handling.
11314 * language.c: Use C++ exception handling.
11315 * jit.c: Use C++ exception handling.
11316 * infrun.c: Use C++ exception handling.
11317 * infcmd.c: Use C++ exception handling.
11318 * infcall.c: Use C++ exception handling.
11319 * inf-loop.c: Use C++ exception handling.
11320 * i386-tdep.c: Use C++ exception handling.
11321 * i386-linux-tdep.c: Use C++ exception handling.
11322 * guile/scm-value.c: Use C++ exception handling.
11323 * guile/scm-type.c: Use C++ exception handling.
11324 * guile/scm-symtab.c: Use C++ exception handling.
11325 * guile/scm-symbol.c: Use C++ exception handling.
11326 * guile/scm-pretty-print.c: Use C++ exception handling.
11327 * guile/scm-ports.c: Use C++ exception handling.
11328 * guile/scm-param.c: Use C++ exception handling.
11329 * guile/scm-math.c: Use C++ exception handling.
11330 * guile/scm-lazy-string.c: Use C++ exception handling.
11331 * guile/scm-frame.c: Use C++ exception handling.
11332 * guile/scm-disasm.c: Use C++ exception handling.
11333 * guile/scm-cmd.c: Use C++ exception handling.
11334 * guile/scm-breakpoint.c: Use C++ exception handling.
11335 * guile/scm-block.c: Use C++ exception handling.
11336 * guile/guile-internal.h: Use C++ exception handling.
11337 * gnu-v3-abi.c: Use C++ exception handling.
11338 * gdbtypes.c: Use C++ exception handling.
11339 * frame.c: Use C++ exception handling.
11340 * frame-unwind.c: Use C++ exception handling.
11341 * fbsd-tdep.c: Use C++ exception handling.
11342 * f-valprint.c: Use C++ exception handling.
11343 * exec.c: Use C++ exception handling.
11344 * event-top.c: Use C++ exception handling.
11345 * event-loop.c: Use C++ exception handling.
11346 * eval.c: Use C++ exception handling.
11347 * dwarf2read.c: Use C++ exception handling.
11348 * dwarf2loc.c: Use C++ exception handling.
11349 * dwarf2-frame.c: Use C++ exception handling.
11350 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11351 * dwarf-index-write.c: Use C++ exception handling.
11352 * dwarf-index-cache.c: Use C++ exception handling.
11353 * dtrace-probe.c: Use C++ exception handling.
11354 * disasm-selftests.c: Use C++ exception handling.
11355 * darwin-nat.c: Use C++ exception handling.
11356 * cp-valprint.c: Use C++ exception handling.
11357 * cp-support.c: Use C++ exception handling.
11358 * cp-abi.c: Use C++ exception handling.
11359 * corelow.c: Use C++ exception handling.
11360 * completer.c: Use C++ exception handling.
11361 * compile/compile-object-run.c: Use C++ exception handling.
11362 * compile/compile-object-load.c: Use C++ exception handling.
11363 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11364 * compile/compile-c-symbols.c: Use C++ exception handling.
11365 * common/selftest.c: Use C++ exception handling.
11366 * common/new-op.c: Use C++ exception handling.
11367 * cli/cli-script.c: Use C++ exception handling.
11368 * cli/cli-interp.c: Use C++ exception handling.
11369 * cli/cli-cmds.c: Use C++ exception handling.
11370 * c-varobj.c: Use C++ exception handling.
11371 * btrace.c: Use C++ exception handling.
11372 * breakpoint.c: Use C++ exception handling.
11373 * break-catch-throw.c: Use C++ exception handling.
11374 * arch-utils.c: Use C++ exception handling.
11375 * amd64-tdep.c: Use C++ exception handling.
11376 * ada-valprint.c: Use C++ exception handling.
11377 * ada-typeprint.c: Use C++ exception handling.
11378 * ada-lang.c: Use C++ exception handling.
11379 * aarch64-tdep.c: Use C++ exception handling.
11380
11381 2019-04-08 Tom Tromey <tom@tromey.com>
11382
11383 * xml-support.c (gdb_xml_parser::parse): Update.
11384 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11385 * value.c (show_convenience): Update.
11386 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11387 (test_parse_flags_qcs): Update.
11388 * thread.c (thr_try_catch_cmd): Update.
11389 * target.c (target_translate_tls_address): Update.
11390 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11391 (info_frame_command_core, frame_apply_command_count): Update.
11392 * rust-exp.y (rust_lex_exception_test): Update.
11393 * riscv-tdep.c (riscv_print_one_register_info): Update.
11394 * remote.c (remote_target::enable_btrace): Update.
11395 * record-btrace.c (record_btrace_enable_warn): Update.
11396 * python/py-utils.c (gdbpy_convert_exception): Update.
11397 * printcmd.c (do_one_display, print_variable_and_value): Update.
11398 * mi/mi-main.c (mi_print_exception): Update.
11399 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11400 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11401 * linux-nat.c (linux_nat_target::attach): Update.
11402 * linux-fork.c (class scoped_switch_fork_info): Update.
11403 * infrun.c (displaced_step_prepare): Update.
11404 * infcall.c (call_function_by_hand_dummy): Update.
11405 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11406 * gnu-v3-abi.c (print_one_vtable): Update.
11407 * frame.c (get_prev_frame_always): Update.
11408 * f-valprint.c (info_common_command_for_block): Update.
11409 * exec.c (try_open_exec_file): Update.
11410 * exceptions.c (print_exception, exception_print)
11411 (exception_fprintf, exception_print_same): Update.
11412 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11413 * dwarf-index-cache.c (index_cache::store)
11414 (index_cache::lookup_gdb_index): Update.
11415 * darwin-nat.c (maybe_cache_shell): Update.
11416 * cp-valprint.c (cp_print_value_fields): Update.
11417 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11418 (gcc_cplus_symbol_address): Update.
11419 * compile/compile-c-symbols.c (gcc_convert_symbol)
11420 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11421 * common/selftest.c: Update.
11422 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11423 a std::string.
11424 (exception_try_scope_entry, exception_try_scope_exit): Don't
11425 declare.
11426 (struct exception_try_scope): Remove.
11427 (TRY): Don't use exception_try_scope.
11428 (struct gdb_exception): Add constructor, operator=.
11429 <what>: New method.
11430 (struct gdb_exception_RETURN_MASK_ALL)
11431 (struct gdb_exception_RETURN_MASK_ERROR)
11432 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11433 (struct gdb_quit_bad_alloc): Update.
11434 * common/common-exceptions.c (exception_none): Change
11435 initializer.
11436 (struct catcher) <state, exception>: Initialize inline.
11437 <prev>: Remove member.
11438 (current_catcher): Remove.
11439 (catchers): New global.
11440 (exceptions_state_mc_init): Simplify.
11441 (catcher_pop): Remove.
11442 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11443 (try_scope_depth, exception_try_scope_entry)
11444 (exception_try_scope_exit): Remove.
11445 (throw_exception_sjlj): Update.
11446 (exception_messages, exception_messages_size): Remove.
11447 (throw_it): Simplify.
11448 (gdb_exception_sliced_copy): Remove.
11449 (throw_exception_cxx): Update.
11450 * cli/cli-script.c (script_from_file): Update.
11451 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11452 Update.
11453 * ada-valprint.c (ada_val_print): Update.
11454 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11455 (create_excep_cond_exprs): Update.
11456
11457 2019-04-08 Tom Tromey <tom@tromey.com>
11458
11459 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11460 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11461 (TRY, CATCH, END_CATCH): Remove some definitions.
11462 * common/common-exceptions.c: Don't use GDB_XCPT.
11463 (catcher_list_size): Remove.
11464 (throw_exception, throw_it): Simplify.
11465
11466 2019-04-05 Tom Tromey <tom@tromey.com>
11467
11468 Revert the header-sorting patch.
11469 * ft32-tdep.c: Revert.
11470 * frv-tdep.c: Revert.
11471 * frv-linux-tdep.c: Revert.
11472 * frame.c: Revert.
11473 * frame-unwind.c: Revert.
11474 * frame-base.c: Revert.
11475 * fork-child.c: Revert.
11476 * findvar.c: Revert.
11477 * findcmd.c: Revert.
11478 * filesystem.c: Revert.
11479 * filename-seen-cache.h: Revert.
11480 * filename-seen-cache.c: Revert.
11481 * fbsd-tdep.c: Revert.
11482 * fbsd-nat.h: Revert.
11483 * fbsd-nat.c: Revert.
11484 * f-valprint.c: Revert.
11485 * f-typeprint.c: Revert.
11486 * f-lang.c: Revert.
11487 * extension.h: Revert.
11488 * extension.c: Revert.
11489 * extension-priv.h: Revert.
11490 * expprint.c: Revert.
11491 * exec.h: Revert.
11492 * exec.c: Revert.
11493 * exceptions.c: Revert.
11494 * event-top.c: Revert.
11495 * event-loop.c: Revert.
11496 * eval.c: Revert.
11497 * elfread.c: Revert.
11498 * dwarf2read.h: Revert.
11499 * dwarf2read.c: Revert.
11500 * dwarf2loc.c: Revert.
11501 * dwarf2expr.h: Revert.
11502 * dwarf2expr.c: Revert.
11503 * dwarf2-frame.c: Revert.
11504 * dwarf2-frame-tailcall.c: Revert.
11505 * dwarf-index-write.h: Revert.
11506 * dwarf-index-write.c: Revert.
11507 * dwarf-index-common.c: Revert.
11508 * dwarf-index-cache.h: Revert.
11509 * dwarf-index-cache.c: Revert.
11510 * dummy-frame.c: Revert.
11511 * dtrace-probe.c: Revert.
11512 * disasm.h: Revert.
11513 * disasm.c: Revert.
11514 * disasm-selftests.c: Revert.
11515 * dictionary.c: Revert.
11516 * dicos-tdep.c: Revert.
11517 * demangle.c: Revert.
11518 * dcache.h: Revert.
11519 * dcache.c: Revert.
11520 * darwin-nat.h: Revert.
11521 * darwin-nat.c: Revert.
11522 * darwin-nat-info.c: Revert.
11523 * d-valprint.c: Revert.
11524 * d-namespace.c: Revert.
11525 * d-lang.c: Revert.
11526 * ctf.c: Revert.
11527 * csky-tdep.c: Revert.
11528 * csky-linux-tdep.c: Revert.
11529 * cris-tdep.c: Revert.
11530 * cris-linux-tdep.c: Revert.
11531 * cp-valprint.c: Revert.
11532 * cp-support.c: Revert.
11533 * cp-namespace.c: Revert.
11534 * cp-abi.c: Revert.
11535 * corelow.c: Revert.
11536 * corefile.c: Revert.
11537 * continuations.c: Revert.
11538 * completer.h: Revert.
11539 * completer.c: Revert.
11540 * complaints.c: Revert.
11541 * coffread.c: Revert.
11542 * coff-pe-read.c: Revert.
11543 * cli-out.h: Revert.
11544 * cli-out.c: Revert.
11545 * charset.c: Revert.
11546 * c-varobj.c: Revert.
11547 * c-valprint.c: Revert.
11548 * c-typeprint.c: Revert.
11549 * c-lang.c: Revert.
11550 * buildsym.c: Revert.
11551 * buildsym-legacy.c: Revert.
11552 * build-id.h: Revert.
11553 * build-id.c: Revert.
11554 * btrace.c: Revert.
11555 * bsd-uthread.c: Revert.
11556 * breakpoint.h: Revert.
11557 * breakpoint.c: Revert.
11558 * break-catch-throw.c: Revert.
11559 * break-catch-syscall.c: Revert.
11560 * break-catch-sig.c: Revert.
11561 * blockframe.c: Revert.
11562 * block.c: Revert.
11563 * bfin-tdep.c: Revert.
11564 * bfin-linux-tdep.c: Revert.
11565 * bfd-target.c: Revert.
11566 * bcache.c: Revert.
11567 * ax-general.c: Revert.
11568 * ax-gdb.h: Revert.
11569 * ax-gdb.c: Revert.
11570 * avr-tdep.c: Revert.
11571 * auxv.c: Revert.
11572 * auto-load.c: Revert.
11573 * arm-wince-tdep.c: Revert.
11574 * arm-tdep.c: Revert.
11575 * arm-symbian-tdep.c: Revert.
11576 * arm-pikeos-tdep.c: Revert.
11577 * arm-obsd-tdep.c: Revert.
11578 * arm-nbsd-tdep.c: Revert.
11579 * arm-nbsd-nat.c: Revert.
11580 * arm-linux-tdep.c: Revert.
11581 * arm-linux-nat.c: Revert.
11582 * arm-fbsd-tdep.c: Revert.
11583 * arm-fbsd-nat.c: Revert.
11584 * arm-bsd-tdep.c: Revert.
11585 * arch-utils.c: Revert.
11586 * arc-tdep.c: Revert.
11587 * arc-newlib-tdep.c: Revert.
11588 * annotate.h: Revert.
11589 * annotate.c: Revert.
11590 * amd64-windows-tdep.c: Revert.
11591 * amd64-windows-nat.c: Revert.
11592 * amd64-tdep.c: Revert.
11593 * amd64-sol2-tdep.c: Revert.
11594 * amd64-obsd-tdep.c: Revert.
11595 * amd64-obsd-nat.c: Revert.
11596 * amd64-nbsd-tdep.c: Revert.
11597 * amd64-nbsd-nat.c: Revert.
11598 * amd64-nat.c: Revert.
11599 * amd64-linux-tdep.c: Revert.
11600 * amd64-linux-nat.c: Revert.
11601 * amd64-fbsd-tdep.c: Revert.
11602 * amd64-fbsd-nat.c: Revert.
11603 * amd64-dicos-tdep.c: Revert.
11604 * amd64-darwin-tdep.c: Revert.
11605 * amd64-bsd-nat.c: Revert.
11606 * alpha-tdep.c: Revert.
11607 * alpha-obsd-tdep.c: Revert.
11608 * alpha-nbsd-tdep.c: Revert.
11609 * alpha-mdebug-tdep.c: Revert.
11610 * alpha-linux-tdep.c: Revert.
11611 * alpha-linux-nat.c: Revert.
11612 * alpha-bsd-tdep.c: Revert.
11613 * alpha-bsd-nat.c: Revert.
11614 * aix-thread.c: Revert.
11615 * agent.c: Revert.
11616 * addrmap.c: Revert.
11617 * ada-varobj.c: Revert.
11618 * ada-valprint.c: Revert.
11619 * ada-typeprint.c: Revert.
11620 * ada-tasks.c: Revert.
11621 * ada-lang.c: Revert.
11622 * aarch64-tdep.c: Revert.
11623 * aarch64-ravenscar-thread.c: Revert.
11624 * aarch64-newlib-tdep.c: Revert.
11625 * aarch64-linux-tdep.c: Revert.
11626 * aarch64-linux-nat.c: Revert.
11627 * aarch64-fbsd-tdep.c: Revert.
11628 * aarch64-fbsd-nat.c: Revert.
11629 * aarch32-linux-nat.c: Revert.
11630
11631 2019-04-05 Tom Tromey <tom@tromey.com>
11632
11633 * ft32-tdep.c: Sort headers.
11634 * frv-tdep.c: Sort headers.
11635 * frv-linux-tdep.c: Sort headers.
11636 * frame.c: Sort headers.
11637 * frame-unwind.c: Sort headers.
11638 * frame-base.c: Sort headers.
11639 * fork-child.c: Sort headers.
11640 * findvar.c: Sort headers.
11641 * findcmd.c: Sort headers.
11642 * filesystem.c: Sort headers.
11643 * filename-seen-cache.h: Sort headers.
11644 * filename-seen-cache.c: Sort headers.
11645 * fbsd-tdep.c: Sort headers.
11646 * fbsd-nat.h: Sort headers.
11647 * fbsd-nat.c: Sort headers.
11648 * f-valprint.c: Sort headers.
11649 * f-typeprint.c: Sort headers.
11650 * f-lang.c: Sort headers.
11651 * extension.h: Sort headers.
11652 * extension.c: Sort headers.
11653 * extension-priv.h: Sort headers.
11654 * expprint.c: Sort headers.
11655 * exec.h: Sort headers.
11656 * exec.c: Sort headers.
11657 * exceptions.c: Sort headers.
11658 * event-top.c: Sort headers.
11659 * event-loop.c: Sort headers.
11660 * eval.c: Sort headers.
11661 * elfread.c: Sort headers.
11662 * dwarf2read.h: Sort headers.
11663 * dwarf2read.c: Sort headers.
11664 * dwarf2loc.c: Sort headers.
11665 * dwarf2expr.h: Sort headers.
11666 * dwarf2expr.c: Sort headers.
11667 * dwarf2-frame.c: Sort headers.
11668 * dwarf2-frame-tailcall.c: Sort headers.
11669 * dwarf-index-write.h: Sort headers.
11670 * dwarf-index-write.c: Sort headers.
11671 * dwarf-index-common.c: Sort headers.
11672 * dwarf-index-cache.h: Sort headers.
11673 * dwarf-index-cache.c: Sort headers.
11674 * dummy-frame.c: Sort headers.
11675 * dtrace-probe.c: Sort headers.
11676 * disasm.h: Sort headers.
11677 * disasm.c: Sort headers.
11678 * disasm-selftests.c: Sort headers.
11679 * dictionary.c: Sort headers.
11680 * dicos-tdep.c: Sort headers.
11681 * demangle.c: Sort headers.
11682 * dcache.h: Sort headers.
11683 * dcache.c: Sort headers.
11684 * darwin-nat.h: Sort headers.
11685 * darwin-nat.c: Sort headers.
11686 * darwin-nat-info.c: Sort headers.
11687 * d-valprint.c: Sort headers.
11688 * d-namespace.c: Sort headers.
11689 * d-lang.c: Sort headers.
11690 * ctf.c: Sort headers.
11691 * csky-tdep.c: Sort headers.
11692 * csky-linux-tdep.c: Sort headers.
11693 * cris-tdep.c: Sort headers.
11694 * cris-linux-tdep.c: Sort headers.
11695 * cp-valprint.c: Sort headers.
11696 * cp-support.c: Sort headers.
11697 * cp-namespace.c: Sort headers.
11698 * cp-abi.c: Sort headers.
11699 * corelow.c: Sort headers.
11700 * corefile.c: Sort headers.
11701 * continuations.c: Sort headers.
11702 * completer.h: Sort headers.
11703 * completer.c: Sort headers.
11704 * complaints.c: Sort headers.
11705 * coffread.c: Sort headers.
11706 * coff-pe-read.c: Sort headers.
11707 * cli-out.h: Sort headers.
11708 * cli-out.c: Sort headers.
11709 * charset.c: Sort headers.
11710 * c-varobj.c: Sort headers.
11711 * c-valprint.c: Sort headers.
11712 * c-typeprint.c: Sort headers.
11713 * c-lang.c: Sort headers.
11714 * buildsym.c: Sort headers.
11715 * buildsym-legacy.c: Sort headers.
11716 * build-id.h: Sort headers.
11717 * build-id.c: Sort headers.
11718 * btrace.c: Sort headers.
11719 * bsd-uthread.c: Sort headers.
11720 * breakpoint.h: Sort headers.
11721 * breakpoint.c: Sort headers.
11722 * break-catch-throw.c: Sort headers.
11723 * break-catch-syscall.c: Sort headers.
11724 * break-catch-sig.c: Sort headers.
11725 * blockframe.c: Sort headers.
11726 * block.c: Sort headers.
11727 * bfin-tdep.c: Sort headers.
11728 * bfin-linux-tdep.c: Sort headers.
11729 * bfd-target.c: Sort headers.
11730 * bcache.c: Sort headers.
11731 * ax-general.c: Sort headers.
11732 * ax-gdb.h: Sort headers.
11733 * ax-gdb.c: Sort headers.
11734 * avr-tdep.c: Sort headers.
11735 * auxv.c: Sort headers.
11736 * auto-load.c: Sort headers.
11737 * arm-wince-tdep.c: Sort headers.
11738 * arm-tdep.c: Sort headers.
11739 * arm-symbian-tdep.c: Sort headers.
11740 * arm-pikeos-tdep.c: Sort headers.
11741 * arm-obsd-tdep.c: Sort headers.
11742 * arm-nbsd-tdep.c: Sort headers.
11743 * arm-nbsd-nat.c: Sort headers.
11744 * arm-linux-tdep.c: Sort headers.
11745 * arm-linux-nat.c: Sort headers.
11746 * arm-fbsd-tdep.c: Sort headers.
11747 * arm-fbsd-nat.c: Sort headers.
11748 * arm-bsd-tdep.c: Sort headers.
11749 * arch-utils.c: Sort headers.
11750 * arc-tdep.c: Sort headers.
11751 * arc-newlib-tdep.c: Sort headers.
11752 * annotate.h: Sort headers.
11753 * annotate.c: Sort headers.
11754 * amd64-windows-tdep.c: Sort headers.
11755 * amd64-windows-nat.c: Sort headers.
11756 * amd64-tdep.c: Sort headers.
11757 * amd64-sol2-tdep.c: Sort headers.
11758 * amd64-obsd-tdep.c: Sort headers.
11759 * amd64-obsd-nat.c: Sort headers.
11760 * amd64-nbsd-tdep.c: Sort headers.
11761 * amd64-nbsd-nat.c: Sort headers.
11762 * amd64-nat.c: Sort headers.
11763 * amd64-linux-tdep.c: Sort headers.
11764 * amd64-linux-nat.c: Sort headers.
11765 * amd64-fbsd-tdep.c: Sort headers.
11766 * amd64-fbsd-nat.c: Sort headers.
11767 * amd64-dicos-tdep.c: Sort headers.
11768 * amd64-darwin-tdep.c: Sort headers.
11769 * amd64-bsd-nat.c: Sort headers.
11770 * alpha-tdep.c: Sort headers.
11771 * alpha-obsd-tdep.c: Sort headers.
11772 * alpha-nbsd-tdep.c: Sort headers.
11773 * alpha-mdebug-tdep.c: Sort headers.
11774 * alpha-linux-tdep.c: Sort headers.
11775 * alpha-linux-nat.c: Sort headers.
11776 * alpha-bsd-tdep.c: Sort headers.
11777 * alpha-bsd-nat.c: Sort headers.
11778 * aix-thread.c: Sort headers.
11779 * agent.c: Sort headers.
11780 * addrmap.c: Sort headers.
11781 * ada-varobj.c: Sort headers.
11782 * ada-valprint.c: Sort headers.
11783 * ada-typeprint.c: Sort headers.
11784 * ada-tasks.c: Sort headers.
11785 * ada-lang.c: Sort headers.
11786 * aarch64-tdep.c: Sort headers.
11787 * aarch64-ravenscar-thread.c: Sort headers.
11788 * aarch64-newlib-tdep.c: Sort headers.
11789 * aarch64-linux-tdep.c: Sort headers.
11790 * aarch64-linux-nat.c: Sort headers.
11791 * aarch64-fbsd-tdep.c: Sort headers.
11792 * aarch64-fbsd-nat.c: Sort headers.
11793 * aarch32-linux-nat.c: Sort headers.
11794
11795 2019-04-04 Tom Tromey <tom@tromey.com>
11796
11797 * varobj.c (varobj_create): Update.
11798 * rust-exp.y (struct rust_parser) <update_innermost_block,
11799 lookup_symbol>: New methods.
11800 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11801 Rename.
11802 (rust_parser::rust_lookup_type)
11803 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11804 * printcmd.c (display_command, do_one_display): Update.
11805 * parser-defs.h (struct parser_state) <parser_state>: Add
11806 "tracker" parameter.
11807 (block_tracker): New member.
11808 (class innermost_block_tracker) <innermost_block_tracker>: Add
11809 "types" parameter.
11810 <reset>: Remove method.
11811 (innermost_block): Don't declare.
11812 (null_post_parser): Update.
11813 * parse.c (innermost_block): Remove global.
11814 (write_dollar_variable): Update.
11815 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11816 Remove "tracker_types" parameter.
11817 (parse_expression): Add "tracker" parameter.
11818 (parse_expression_for_completion): Update.
11819 (null_post_parser): Add "tracker" parameter.
11820 * p-exp.y: Update rules.
11821 * m2-exp.y: Update rules.
11822 * language.h (struct language_defn) <la_post_parser>: Add
11823 "tracker" parameter.
11824 * go-exp.y: Update rules.
11825 * f-exp.y: Update rules.
11826 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11827 parameter.
11828 * d-exp.y: Update rules.
11829 * c-exp.y: Update rules.
11830 * breakpoint.c (set_breakpoint_condition): Create an
11831 innermost_block_tracker.
11832 (watch_command_1): Likewise.
11833 * ada-lang.c (resolve): Add "tracker" parameter.
11834 (resolve_subexp): Likewise.
11835 * ada-exp.y (write_var_from_sym): Update.
11836
11837 2019-04-04 Tom Tromey <tom@tromey.com>
11838
11839 * type-stack.h: New file.
11840 * type-stack.c: New file.
11841 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11842 type-stack.h.
11843 (insert_into_type_stack, insert_type, push_type, push_type_int)
11844 (insert_type_address_space, pop_type, pop_type_int)
11845 (pop_typelist, pop_type_stack, append_type_stack)
11846 (push_type_stack, get_type_stack, push_typelist)
11847 (follow_type_instance_flags, follow_types): Don't declare.
11848 * parse.c (type_stack): Remove global.
11849 (parse_exp_in_context): Update.
11850 (insert_into_type_stack, insert_type, push_type, push_type_int)
11851 (insert_type_address_space, pop_type, pop_type_int)
11852 (pop_typelist, pop_type_stack, append_type_stack)
11853 (push_type_stack, get_type_stack, push_typelist)
11854 (follow_type_instance_flags, follow_types): Remove (moved to
11855 type-stack.c).
11856 * f-exp.y (type_stack): New global.
11857 Update rules.
11858 (push_kind_type, f_parse): Update.
11859 * d-exp.y (type_stack): New global.
11860 Update rules.
11861 (d_parse): Update.
11862 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11863 Update rules.
11864 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11865 (HFILES_NO_SRCDIR): Add type-stack.h.
11866
11867 2019-04-04 Tom Tromey <tom@tromey.com>
11868
11869 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11870 (rust_parser::convert_ast_to_expression, rust_parse)
11871 (rust_lex_test_completion, rust_lex_tests): Update.
11872 * parser-defs.h (struct expr_completion_state): New.
11873 (struct parser_state) <parser_state>: Add completion parameter.
11874 <mark_struct_expression, mark_completion_tag>: New methods.
11875 <parse_completion, m_completion_state>: New members.
11876 (prefixify_expression, null_post_parser): Update.
11877 (mark_struct_expression, mark_completion_tag): Don't declare.
11878 * parse.c (parse_completion, expout_last_struct)
11879 (expout_tag_completion_type, expout_completion_name): Remove
11880 globals.
11881 (parser_state::mark_struct_expression)
11882 (parser_state::mark_completion_tag): Now methods.
11883 (prefixify_expression): Add last_struct parameter.
11884 (prefixify_subexp): Likewise.
11885 (parse_exp_1): Update.
11886 (parse_exp_in_context): Add cstate parameter. Update.
11887 (parse_expression_for_completion): Create an
11888 expr_completion_state.
11889 (null_post_parser): Add "completion" parameter.
11890 * p-exp.y: Update rules.
11891 (yylex): Update.
11892 * language.h (struct language_defn) <la_post_parser>: Add
11893 "completing" parameter.
11894 * go-exp.y: Update rules.
11895 (lex_one_token): Update.
11896 * expression.h (parse_completion): Don't declare.
11897 * d-exp.y: Update rules.
11898 (lex_one_token): Update rules.
11899 * c-exp.y: Update rules.
11900 (lex_one_token): Update.
11901 * ada-lang.c (resolve): Add "parse_completion" parameter.
11902 (resolve_subexp): Likewise.
11903 (ada_resolve_function): Likewise.
11904
11905 2019-04-04 Tom Tromey <tom@tromey.com>
11906
11907 * parser-defs.h (struct parser_state) <start_arglist,
11908 end_arglist>: New methods.
11909 <arglist_len, m_funcall_chain>: New members.
11910 (arglist_len, start_arglist, end_arglist): Don't declare.
11911 * parse.c (arglist_len, funcall_chain): Remove global.
11912 (start_arglist, end_arglist): Remove functions.
11913 (parse_exp_in_context): Update.
11914 * p-exp.y: Update rules.
11915 * m2-exp.y: Update rules.
11916 * go-exp.y: Update rules.
11917 * f-exp.y: Update rules.
11918 * d-exp.y: Update rules.
11919 * c-exp.y: Update rules.
11920
11921 2019-04-04 Tom Tromey <tom@tromey.com>
11922
11923 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11924 lex_operator, push_back>: New methods.
11925 Update all rules.
11926 (rust_parser::lex_hex, lex_escape): Rename and update.
11927 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11928 (rust_parser::lex_operator): Rename and update.
11929 (rust_parser::lex_number, rustyylex, rustyyerror)
11930 (rust_lex_test_init, rust_lex_test_sequence)
11931 (rust_lex_test_push_back, rust_lex_tests): Update.
11932 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11933 parameter.
11934 <lexptr, prev_lexptr>: New members.
11935 (lexptr, prev_lexptr): Don't declare.
11936 * parse.c (lexptr, prev_lexptr): Remove globals.
11937 (parse_exp_in_context): Update.
11938 * p-exp.y (yylex, yyerror): Update.
11939 * m2-exp.y (parse_number, yylex, yyerror): Update.
11940 * go-exp.y (lex_one_token, yyerror): Update.
11941 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11942 * d-exp.y (lex_one_token, yyerror): Update.
11943 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11944 (lex_one_token, yyerror): Update.
11945 * ada-lex.l (YY_INPUT): Update.
11946 (rewind_to_char): Update.
11947 * ada-exp.y (yyerror): Update.
11948
11949 2019-04-04 Tom Tromey <tom@tromey.com>
11950
11951 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11952 * parser-defs.h (struct parser_state) <parser_state>: Add new
11953 parameter.
11954 <comma_terminates>: New member.
11955 (comma_terminates): Don't declare global.
11956 * parse.c (comma_terminates): Remove global.
11957 (parse_exp_in_context): Update.
11958 * p-exp.y (yylex): Update.
11959 * m2-exp.y (yylex): Update.
11960 * go-exp.y (lex_one_token): Update.
11961 * f-exp.y (yylex): Update.
11962 * d-exp.y (lex_one_token): Update.
11963 * c-exp.y (lex_one_token): Update.
11964 * ada-lex.l: Update.
11965
11966 2019-04-04 Tom Tromey <tom@tromey.com>
11967
11968 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11969 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11970 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11971 * parser-defs.h (paren_depth): Don't declare.
11972 * parse.c (paren_depth): Remove global.
11973 (parse_exp_in_context): Update.
11974 * p-exp.y (paren_depth): New global.
11975 (pascal_parse): Initialize it.
11976 * m2-exp.y (paren_depth): New global.
11977 (m2_parse): Initialize it.
11978 * go-exp.y (paren_depth): New global.
11979 (go_parse): Initialize it.
11980 * f-exp.y (paren_depth): New global.
11981 (f_parse): Initialize it.
11982 * d-exp.y (paren_depth): New global.
11983 (d_parse): Initialize it.
11984 * c-exp.y (paren_depth): New global.
11985 (c_parse): Initialize it.
11986 * ada-lex.l (paren_depth): New global.
11987 (lexer_init): Initialize it.
11988
11989 2019-04-04 Tom Tromey <tom@tromey.com>
11990
11991 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11992 (rust_parser::convert_ast_to_type)
11993 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11994 * parser-defs.h (struct parser_state) <parser_state>: Add
11995 parameters. Initialize new members.
11996 <expression_context_block, expression_context_pc>: New members.
11997 * parse.c (expression_context_block, expression_context_pc):
11998 Remove globals.
11999 (parse_exp_in_context): Update.
12000 * p-exp.y: Update all rules.
12001 (yylex): Update.
12002 * m2-exp.y: Update all rules.
12003 (yylex): Update.
12004 * go-exp.y (yylex): Update.
12005 * f-exp.y (yylex): Update.
12006 * d-exp.y: Update all rules.
12007 (yylex): Update.
12008 * c-exp.y: Update all rules.
12009 (lex_one_token, classify_name, yylex, c_parse): Update.
12010 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12011
12012 2019-04-04 Tom Tromey <tom@tromey.com>
12013
12014 * gdbarch.h, gdbarch.c: Rebuild.
12015 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12016 * stap-probe.h:
12017 (struct stap_parse_info): Replace "parser_state" with
12018 "expr_builder".
12019 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12020 (parser_state): New class.
12021 * parse.c (expr_builder): Rename.
12022 (expr_builder::release): Rename.
12023 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12024 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12025 (write_exp_elt_longcst, write_exp_elt_floatcst)
12026 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12027 (write_exp_string_vector, write_exp_bitstring)
12028 (write_exp_msymbol, mark_struct_expression)
12029 (write_dollar_variable)
12030 (insert_type_address_space, increase_expout_size): Replace
12031 "parser_state" with "expr_builder".
12032 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12033 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12034 "parser_state" with "expr_builder".
12035
12036 2019-04-04 Tom Tromey <tom@tromey.com>
12037
12038 * rust-exp.y: Replace "parse_language" with method call.
12039 * p-exp.y:
12040 (yylex): Replace "parse_language" with method call.
12041 * m2-exp.y:
12042 (yylex): Replace "parse_language" with method call.
12043 * go-exp.y (classify_name): Replace "parse_language" with method
12044 call.
12045 * f-exp.y (yylex): Replace "parse_language" with method call.
12046 * d-exp.y (lex_one_token): Replace "parse_language" with method
12047 call.
12048 * c-exp.y:
12049 (lex_one_token, classify_name, yylex): Replace "parse_language"
12050 with method call.
12051 * ada-exp.y (find_primitive_type, type_char)
12052 (type_system_address): Replace "parse_language" with method call.
12053
12054 2019-04-04 Tom Tromey <tom@tromey.com>
12055
12056 * rust-exp.y: Replace "parse_gdbarch" with method call.
12057 * parse.c (write_dollar_variable, insert_type_address_space):
12058 Replace "parse_gdbarch" with method call.
12059 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12060 call.
12061 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12062 call.
12063 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12064 "parse_gdbarch" with method call.
12065 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12066 with method call.
12067 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12068 "parse_gdbarch" with method call.
12069 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12070 "parse_gdbarch" with method call.
12071 * c-exp.y (parse_type, parse_number, classify_name): Replace
12072 "parse_gdbarch" with method call.
12073 * ada-lex.l: Replace "parse_gdbarch" with method call.
12074 * ada-exp.y (parse_type, find_primitive_type, type_char)
12075 (type_system_address): Replace "parse_gdbarch" with method call.
12076
12077 2019-04-04 Tom Tromey <tom@tromey.com>
12078
12079 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12080 * stap-probe.c (stap_parse_argument): Update.
12081 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12082 initial_size parameter.
12083 * rust-exp.y (rust_lex_tests): Update.
12084 * parse.c (parser_state): Update.
12085 (parse_exp_in_context): Update.
12086 * parser-defs.h (struct parser_state) <parser_state>: Remove
12087 "initial_size" parameter.
12088
12089 2019-04-04 Tom Tromey <tom@tromey.com>
12090
12091 * parser-defs.h (increase_expout_size): Don't declare.
12092 * parse.c (increase_expout_size): Now static.
12093
12094 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12095
12096 * gnu-nat.c (gnu_nat_target::wait): Fix
12097 target_waitstatus_to_string call.
12098
12099 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12100
12101 * eval.c (evaluate_subexp_standard): Handle internal functions
12102 during Fortran function call handling.
12103
12104 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12105
12106 * NEWS: Mention new internal functions.
12107 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12108 (read_base_type): Use dwarf2_init_complex_target_type.
12109 * value.c (creal_internal_fn): New function.
12110 (cimag_internal_fn): New function.
12111 (_initialize_values): Register new internal functions.
12112
12113 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12114
12115 * infrun.c (stop_all_threads): If debug_infrun, always
12116 trace the wait status after wait_one, using
12117 target_waitstatus_to_string and target_pid_to_str.
12118 (handle_inferior_event): Replace various trace of
12119 wait status kind by a single trace.
12120 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12121 wait status kind image by target_waitstatus_to_string.
12122 * target/waitstatus.c (target_waitstatus_to_string): Fix
12123 obsolete comment.
12124
12125 2019-04-01 Tom Tromey <tromey@adacore.com>
12126
12127 PR symtab/23331:
12128 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12129
12130 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12131 Pedro Alves <palves@redhat.com>
12132
12133 * top.c (quit_force): Call 'finalize_values'.
12134 * value.c (finalize_values): New function.
12135 * value.h (finalize_values): Declare.
12136
12137 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12138
12139 * NEWS: Announce $_gdb_major and $_gdb_minor.
12140
12141 * top.c (init_gdb_version_vars): New function.
12142 (gdb_init): Call init_gdb_version_vars.
12143
12144 2019-03-29 Tom Tromey <tromey@adacore.com>
12145
12146 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12147 help text. Remove dead code.
12148
12149 2019-03-29 Keith Seitz <keiths@redhat.com>
12150
12151 From Siddhesh Poyarekar:
12152 * f-lang.h (f77_get_upperbound): Return LONGEST.
12153 (f77_get_lowerbound): Likewise.
12154 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12155 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12156 print them.
12157 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12158 plongest to format print it.
12159 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12160 (f77_get_upperbound): Likewise.
12161 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12162 LOWER_BOUND to LONGEST.
12163 (f77_create_arrayprint_offset_tbl): Likewise.
12164
12165 2019-03-29 Keith Seitz <keiths@redhat.com>
12166
12167 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12168 %s/pulongest for TYPE_LENGTH instead of %d in format
12169 strings.
12170 * ada-typerint.c (ada_print_type): Likewise.
12171 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12172 * compile/compile-c-support.c (generate_register_struct): Likewise.
12173 * gdbtypes.c (recursive_dump_type): Likewise.
12174 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12175 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12176 instead of %d in format strings.
12177 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12178 to std::min to ULONGEST.
12179 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12180 instead of %d in format strings.
12181 * tracepoint.c (info_scope_command): Likewise.
12182 * typeprint.c (print_offset_data::update)
12183 (print_offset_data::finish): Likewise.
12184 * xtensa-tdep.c (xtensa_store_return_value)
12185 (xtensa_push_dummy_call): Likewise.
12186
12187 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12188
12189 * windows-nat.c (display_selector): Fixed format specifications
12190 for 64-bit Cygwin.
12191
12192 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12193
12194 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12195
12196 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12197
12198 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12199 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12200 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12201 (nios2_linux_init_abi): Install it.
12202
12203 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12204
12205 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12206
12207 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12208
12209 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12210
12211 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12212 Tom Tromey <tromey@adacore.com>
12213
12214 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12215
12216 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12217
12218 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12219 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12220 method to compute the bounds of range types. Also print "[evaluated]"
12221 if the bounds' values come from a dynamic evaluation.
12222
12223 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12224
12225 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12226 whitespace when pretty printing is on.
12227
12228 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12229
12230 * ppc-linux-nat.c: Add include.
12231
12232 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12233
12234 * NEWS: Mention AArch64 Pointer Authentication.
12235
12236 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12237
12238 * arm-linux-nat.c: Add include.
12239
12240 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12241
12242 * source-cache.c (source_cache::get_source_lines): Re-read
12243 fullname after calling open_source_file.
12244
12245 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12246
12247 * NEWS: Mention TLS support for FreeBSD.
12248
12249 2019-03-25 Tom Tromey <tromey@adacore.com>
12250
12251 * minsyms.c (BUNCH_SIZE): Update comment.
12252 (~minimal_symbol_reader): Remove old comment.
12253 (compact_minimal_symbols): Update comment.
12254 (minimal_symbol_reader::install): Remove old comment. Update
12255 other comments.
12256
12257 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12258
12259 * s390-linux-nat.c: Add include.
12260
12261 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12262
12263 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12264 Call linux_get_hwcap.
12265 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12266 Likewise.
12267 (aarch64_linux_get_hwcap): Remove function.
12268 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12269 declaration.
12270 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12271 linux_get_hwcap.
12272 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12273 * linux-tdep.c (linux_get_hwcap): Add function.
12274 (linux_get_hwcap2): Likewise.
12275 * linux-tdep.h (linux_get_hwcap): Add declaration.
12276 (linux_get_hwcap2): Likewise.
12277 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12278 (ppc_linux_get_hwcap2): Likewise.
12279 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12280 linux_get_hwcap.
12281 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12282 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12283 (ppc_linux_nat_target::read_description): Likewise.
12284 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12285 * s390-linux-nat.c: Likewise.
12286 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12287
12288 2019-03-24 Tom Tromey <tom@tromey.com>
12289
12290 * ada-lang.c (standard_lookup): Simplify initialization.
12291 (ada_lookup_symbol_nonlocal): Simplify return.
12292 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12293 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12294 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12295 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12296 initialization.
12297 * solib.c (solib_global_lookup): Simplify.
12298 * symtab.c (null_block_symbol): Remove.
12299 (symbol_cache_lookup): Simplify returns.
12300 (lookup_language_this): Simplify returns.
12301 (lookup_symbol_aux): Simplify return.
12302 (lookup_local_symbol): Simplify returns.
12303 (lookup_global_symbol_from_objfile): Simplify return.
12304 (lookup_symbol_in_objfile_symtabs)
12305 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12306 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12307 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12308 * cp-namespace.c (cp_lookup_bare_symbol)
12309 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12310 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12311 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12312 (cp_lookup_symbol_via_imports): Simplify initialization.
12313 (find_symbol_in_baseclass): Likewise.
12314 * symtab.h (null_block_symbol): Remove.
12315 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12316 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12317 (d_lookup_symbol_module): Likewise.
12318 (find_symbol_in_baseclass): Simplify initialization.
12319
12320 2019-03-24 Tom Tromey <tom@tromey.com>
12321
12322 * expression.h: Don't include symtab.h.
12323 (struct block): Forward declare.
12324
12325 2019-03-24 Tom Tromey <tom@tromey.com>
12326
12327 * c-exp.y (typebase): Remove casts.
12328 * gdbtypes.c (lookup_unsigned_typename, )
12329 (lookup_signed_typename): Remove cast.
12330 * eval.c (parse_to_comma_and_eval): Remove cast.
12331 * parse.c (write_dollar_variable): Remove cast.
12332 * block.h (struct block) <superblock>: Now const.
12333 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12334 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12335 (map_block): Make "block" const.
12336 * symfile.h (struct quick_symbol_functions)
12337 <map_matching_symbols>: Constify block argument to "callback".
12338 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12339 const.
12340 (find_pc_sect_compunit_symtab): Make "b" const.
12341 (find_symbol_at_address): Likewise.
12342 (search_symbols): Likewise.
12343 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12344 (dw2_debug_names_lookup_symbol): Likewise.
12345 (dw2_map_matching_symbols): Update.
12346 * p-valprint.c (pascal_val_print): Remove "block".
12347 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12348 (aux_add_nonlocal_symbols): Make "block" const.
12349 (resolve_subexp): Remove cast.
12350 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12351 const.
12352 (iterate_over_file_blocks): Likewise.
12353 * f-exp.y (%union) <bval>: Remove.
12354 * coffread.c (patch_opaque_types): Make "b" const.
12355 * spu-tdep.c (spu_catch_start): Make "block" const.
12356 * c-valprint.c (print_unpacked_pointer): Remove "block".
12357 * symmisc.c (dump_symtab_1): Make "b" const.
12358 (block_depth): Make "block" const.
12359 * d-exp.y (%union) <bval>: Remove.
12360 * cp-support.h (cp_lookup_rtti_type): Update.
12361 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12362 * psymtab.c (psym_lookup_symbol): Make "block" const.
12363 (maintenance_check_psymtabs): Make "b" const.
12364 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12365 (enumerate_locals, enumerate_args): Update.
12366 * python/py-symtab.c (stpy_global_block): Make "block" const.
12367 (stpy_static_block): Likewise.
12368 * inline-frame.c (block_starting_point_at): Make "new_block"
12369 const.
12370 * block.c (find_block_in_blockvector): Make return type const.
12371 (blockvector_for_pc_sect): Make "b" const.
12372 (find_block_in_blockvector): Make "b" const.
12373
12374 2019-03-23 Tom Tromey <tom@tromey.com>
12375
12376 * varobj.c (varobj_create): Update.
12377 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12378 * printcmd.c (display_command, do_one_display): Don't reset
12379 innermost_block.
12380 * parser-defs.h (enum innermost_block_tracker_type): Move to
12381 expression.h.
12382 (innermost_block): Update comment.
12383 * parse.c (parse_exp_1): Add tracker_types parameter.
12384 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12385 tracker_types parameter. Reset innermost_block.
12386 (parse_exp_in_context): Remove.
12387 (parse_expression_for_completion): Update.
12388 * objfiles.c (~objfile): Don't reset expression_context_block or
12389 innermost_block.
12390 * expression.h (enum innermost_block_tracker_type): Move from
12391 parser-defs.h.
12392 (parse_exp_1): Add tracker_types parameter.
12393 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12394 reset innermost_block.
12395
12396 2019-03-23 Tom Tromey <tom@tromey.com>
12397
12398 * objfiles.h: Include bcache.h.
12399
12400 2019-03-23 Tom Tromey <tom@tromey.com>
12401
12402 * linespec.c (get_current_search_block): Use
12403 scoped_restore_current_language.
12404 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12405
12406 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12407 Jiong Wang <jiong.wang@arm.com>
12408
12409 * aarch64-linux-tdep.c
12410 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12411 section.
12412 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12413
12414 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12415 Jiong Wang <jiong.wang@arm.com>
12416
12417 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12418 instructions.
12419 (aarch64_analyze_prologue_test): Add PACIASP test.
12420 (aarch64_prologue_prev_register): Unmask PC value.
12421
12422 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12423 Jiong Wang <jiong.wang@arm.com>
12424
12425 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12426 (aarch64_dwarf2_prev_register): Unmask PC value.
12427 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12428 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12429 DW_CFA_AARCH64_negate_ra_state.
12430 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12431
12432 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12433 Jiong Wang <jiong.wang@arm.com>
12434
12435 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12436 registers.
12437 (aarch64_pseudo_register_name): Likewise.
12438 (aarch64_pseudo_register_type): Likewise.
12439 (aarch64_pseudo_register_reggroup_p): Likewise.
12440 (aarch64_gdbarch_init): Add pauth registers.
12441 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12442 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12443 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12444 (struct gdbarch_tdep): Add regnum for ra_state.
12445
12446 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12447 Jiong Wang <jiong.wang@arm.com>
12448
12449 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12450
12451 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12452 Jiong Wang <jiong.wang@arm.com>
12453
12454 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12455 function.
12456 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12457 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12458 (aarch64_gdbarch_init): Add puth registers.
12459 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12460 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12461 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12462
12463 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12464 Jiong Wang <jiong.wang@arm.com>
12465
12466 * aarch64-linux-nat.c
12467 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12468 * aarch64-linux-tdep.c
12469 (aarch64_linux_core_read_description): Likewise.
12470 (aarch64_linux_get_hwcap): New function.
12471 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12472 (aarch64_linux_get_hwcap): New declaration.
12473
12474 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12475 Jiong Wang <jiong.wang@arm.com>
12476
12477 * aarch64-linux-nat.c
12478 (aarch64_linux_nat_target::read_description): Add pauth param.
12479 * aarch64-linux-tdep.c
12480 (aarch64_linux_core_read_description): Likewise.
12481 * aarch64-tdep.c (struct target_desc): Add in pauth.
12482 (aarch64_read_description): Add pauth param.
12483 (aarch64_gdbarch_init): Likewise.
12484 * aarch64-tdep.h (aarch64_read_description): Likewise.
12485 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12486 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12487 * features/Makefile: Add new files.
12488 * features/aarch64-pauth.c: New file.
12489 * features/aarch64-pauth.xml: New file.
12490
12491 2019-03-20 Tom Tromey <tromey@adacore.com>
12492
12493 * infrun.c (handle_inferior_event): Rename from
12494 handle_inferior_event_1. Create a scoped_value_mark.
12495 (handle_inferior_event): Remove.
12496
12497 2019-03-19 Tom Tromey <tromey@adacore.com>
12498
12499 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12500 * infrun.h (print_stop_event): Add "displays" parameter.
12501 * infrun.c (print_stop_event): Add "displays" parameter.
12502
12503 2019-03-19 Pedro Alves <palves@redhat.com>
12504
12505 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12506 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12507 to -1. Fix TABs vs spaces.
12508 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12509 * tui/tui-out.h (tui_ui_out) Add intro comments.
12510 <m_line, m_start_of_line>: In-class initialize, and add describing
12511 comment.
12512
12513 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12514
12515 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12516 variable names.
12517 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12518
12519 2019-03-18 Pedro Alves <palves@redhat.com>
12520 Eli Zaretskii <eliz@gnu.org>
12521
12522 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12523 m_line and m_start_of_line.
12524
12525 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12526
12527 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12528 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12529 it returns a newline. This fixes a regression in TU mode, whereby
12530 the next line is output on the same screen line as the user input.
12531
12532 2019-03-18 Tom Tromey <tromey@adacore.com>
12533
12534 * minsyms.c (minimal_symbol_reader::install): Remove call to
12535 obstack_blank.
12536
12537 2019-03-18 Pedro Alves <palves@redhat.com>
12538
12539 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12540 New globals.
12541 (apply_style): New, factored out from ...
12542 (apply_ansi_escape): ... this. Handle reverse video mode.
12543 (tui_set_reverse_mode): New function.
12544 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12545 * tui/tui-winsource.c (tui_show_source_line): Use
12546 tui_set_reverse_mode instead of setting A_STANDOUT.
12547 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12548 New setter methods.
12549
12550 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12551
12552 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12553 Handle tabs.
12554
12555 2019-03-18 Tom Tromey <tromey@adacore.com>
12556
12557 * ada-lang.c (empty_array): Add "high" parameter.
12558 (ada_evaluate_subexp): Update.
12559
12560 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12561
12562 * unittests/string_view-selftests.c: Define
12563 _initialize_string_view_selftests unconditionally.
12564
12565 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12566
12567 PR gdb/24350
12568 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12569
12570 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12571
12572 PR gdb/24351
12573 * windows-nat.c (display_selector): Fix format specifiers.
12574
12575 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12576
12577 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12578 tui_refill_source_window instead of tui_refresh_win, to update the
12579 current execution line. This fixes redisplay of the current line
12580 when stepping through the code with "next" or "step".
12581
12582 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12583
12584 * source-cache.c (source_cache::get_source_lines): Call
12585 find_source_lines to initialize s->nlines. This fixes vertical
12586 scrolling of TUI source window when the DOWN arrow is pressed.
12587
12588 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12589
12590 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12591 linux-thread-db.c (_initialize_thread_db): Likewise.
12592
12593 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12594
12595 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12596 wclrtoeol in tui_show_source_line". This reverts changes made in
12597 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12598
12599 2019-03-15 Tom Tromey <tom@tromey.com>
12600
12601 * symtab.h (struct minimal_symbol): Derive from
12602 general_symbol_info.
12603 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12604 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12605 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12606 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12607 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12608 (MSYMBOL_SEARCH_NAME): Update.
12609 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12610 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12611 * minsyms.c (minimal_symbol_reader::record_full): Update.
12612
12613 2019-03-15 Tom Tromey <tom@tromey.com>
12614
12615 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12616
12617 2019-03-15 Tom Tromey <tom@tromey.com>
12618
12619 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12620 unique_xmalloc_ptr.
12621 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12622 Update.
12623 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12624 (build_minimal_symbol_hash_tables)
12625 (minimal_symbol_reader::install): Update.
12626
12627 2019-03-15 Tom Tromey <tom@tromey.com>
12628
12629 * symtab.c (create_demangled_names_hash): Update.
12630 (symbol_set_names): Update.
12631 * objfiles.h (struct objfile_per_bfd_storage)
12632 <demangled_names_hash>: Now an htab_up.
12633 * objfiles.c (objfile_per_bfd_storage): Simplify.
12634
12635 2019-03-15 Tom Tromey <tom@tromey.com>
12636
12637 * objfiles.h (struct objfile_per_bfd_storage): Declare
12638 destructor.
12639 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12640 New.
12641 (get_objfile_bfd_data): Use new. Don't initialize
12642 language_of_main.
12643 (free_objfile_per_bfd_storage): Remove.
12644 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12645
12646 2019-03-15 Tom Tromey <tom@tromey.com>
12647
12648 * symfile.c (reread_symbols): Update.
12649 * objfiles.c (objfile::objfile): Update.
12650 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12651 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12652 comment.
12653 (minimal_symbol_reader::install): Update.
12654 (terminate_minimal_symbol_table): Remove.
12655 * jit.c (jit_object_close_impl): Update.
12656
12657 2019-03-15 Tom Tromey <tom@tromey.com>
12658
12659 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12660 initializations.
12661
12662 2019-03-15 Tom Tromey <tom@tromey.com>
12663
12664 * objfiles.h (struct objfile_per_bfd_storage)
12665 <demangled_hash_languages>: Now a bitset.
12666 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12667 (lookup_minimal_symbol): Update.
12668
12669 2019-03-15 Tom Tromey <tom@tromey.com>
12670
12671 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12672 Don't return the symbol.
12673 * coffread.c (record_minimal_symbol): Use record_full.
12674
12675 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12676
12677 The MS-Windows port of ncurses fails to switch to a color pair if
12678 one or both of the colors are the implicit default colors. This
12679 change records the default colors when TUI is initialized, and
12680 then specifies them explicitly when a color pair uses the default
12681 colors. This allows color styling in TUI mode on MS-Windows.
12682
12683 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12684 ncurses_norm_attr.
12685 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12686 colors in ncurses_norm_attr.
12687 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12688 "none", replace it with the default color recorded in
12689 ncurses_norm_attr.
12690
12691 2019-03-14 Tom Tromey <tromey@adacore.com>
12692
12693 * source-cache.h (class source_cache) <get_source_lines>: Return
12694 std::string.
12695 * source-cache.c (source_cache::extract_lines): Handle case where
12696 first_pos==npos. Return std::string.
12697 (source_cache::get_source_lines): Update.
12698
12699 2019-03-14 Tom Tromey <tromey@adacore.com>
12700
12701 * NEWS: Add item for "style sources" commands.
12702 * source-cache.c (source_cache::get_source_lines): Check
12703 source_styling.
12704 * cli/cli-style.c (source_styling): New global.
12705 (_initialize_cli_style): Add "style sources" commands.
12706 (show_style_sources): New function.
12707 * cli/cli-style.h (source_styling): Declare.
12708
12709 2019-03-14 Pedro Alves <palves@redhat.com>
12710 Tom Tromey <tromey@adacore.com>
12711
12712 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12713 * tui/tui-winsource.c (tui_refill_source_window): New function,
12714 from...
12715 (tui_horizontal_source_scroll): ... here. Move some logic.
12716 * cli/cli-style.c (set_style_enabled): Notify new observable.
12717 * tui/tui-hooks.c (tui_redisplay_source): New function.
12718 (tui_attach_detach_observers): Attach or detach
12719 tui_redisplay_source.
12720 * observable.h (source_styling_changed): New observable.
12721 * observable.c: Define source_styling_changed observable.
12722
12723 2019-03-13 Tom Tromey <tromey@adacore.com>
12724
12725 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12726 (i386_gnu_nat_target::store_registers): Update.
12727 * target-debug.h (target_debug_print_std_string): New macro.
12728 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12729 * windows-tdep.c (display_one_tib): Update.
12730 * tui/tui-stack.c (tui_make_status_line): Update.
12731 * top.c (print_inferior_quit_action): Update.
12732 * thread.c (thr_try_catch_cmd): Update.
12733 (add_thread_with_info): Update.
12734 (thread_target_id_str): Update.
12735 (thr_try_catch_cmd): Update.
12736 (thread_command): Update.
12737 (thread_find_command): Update.
12738 * record-btrace.c (record_btrace_target::info_record)
12739 (record_btrace_resume_thread, record_btrace_target::resume)
12740 (record_btrace_cancel_resume, record_btrace_step_thread)
12741 (record_btrace_target::wait, record_btrace_target::wait)
12742 (record_btrace_target::wait, record_btrace_target::stop): Update.
12743 * progspace.c (print_program_space): Update.
12744 * process-stratum-target.c
12745 (process_stratum_target::thread_address_space): Update.
12746 * linux-fork.c (linux_fork_mourn_inferior)
12747 (detach_checkpoint_command, info_checkpoints_command)
12748 (linux_fork_context): Update.
12749 (linux_fork_detach): Update.
12750 (class scoped_switch_fork_info): Update.
12751 (delete_checkpoint_command): Update.
12752 * infrun.c (follow_fork_inferior): Update.
12753 (follow_fork_inferior): Update.
12754 (proceed_after_vfork_done): Update.
12755 (handle_vfork_child_exec_or_exit): Update.
12756 (follow_exec): Update.
12757 (displaced_step_prepare_throw): Update.
12758 (displaced_step_restore): Update.
12759 (start_step_over): Update.
12760 (resume_1): Update.
12761 (clear_proceed_status_thread): Update.
12762 (proceed): Update.
12763 (print_target_wait_results): Update.
12764 (do_target_wait): Update.
12765 (context_switch): Update.
12766 (stop_all_threads): Update.
12767 (restart_threads): Update.
12768 (finish_step_over): Update.
12769 (handle_signal_stop): Update.
12770 (switch_back_to_stepped_thread): Update.
12771 (keep_going_pass_signal): Update.
12772 (print_exited_reason): Update.
12773 (normal_stop): Update.
12774 * inferior.c (inferior_pid_to_str): Change return type.
12775 (print_selected_inferior): Update.
12776 (add_inferior): Update.
12777 (detach_inferior): Update.
12778 * dummy-frame.c (fprint_dummy_frames): Update.
12779 * dcache.c (dcache_info_1): Update.
12780 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12781 (btrace_fetch, btrace_clear): Update.
12782 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12783 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12784 type.
12785 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12786 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12787 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12788 * gdbarch.c, gdbarch.h: Rebuild.
12789 * gdbarch.sh (core_pid_to_str): Change return type.
12790 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12791 return type.
12792 (windows_nat_target::pid_to_str): Change return type.
12793 (windows_delete_thread): Update.
12794 (windows_nat_target::attach): Update.
12795 (windows_nat_target::files_info): Update.
12796 * target-delegates.c: Rebuild.
12797 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12798 return type.
12799 (sol_thread_target::pid_to_str): Change return type.
12800 * remote.c (class remote_target) <pid_to_str>: Change return
12801 type.
12802 (remote_target::pid_to_str): Change return type.
12803 (extended_remote_target::attach, remote_target::remote_stop_ns)
12804 (remote_target::remote_notif_remove_queued_reply)
12805 (remote_target::push_stop_reply, remote_target::disable_btrace):
12806 Update.
12807 (extended_remote_target::attach): Update.
12808 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12809 type.
12810 (gdbsim_target::pid_to_str): Change return type.
12811 * ravenscar-thread.c (struct ravenscar_thread_target)
12812 <pid_to_str>: Change return type.
12813 (ravenscar_thread_target::pid_to_str): Change return type.
12814 * procfs.c (class procfs_target) <pid_to_str>: Change return
12815 type.
12816 (procfs_target::pid_to_str): Change return type.
12817 (procfs_target::attach): Update.
12818 (procfs_target::detach): Update.
12819 (procfs_target::fetch_registers): Update.
12820 (procfs_target::store_registers): Update.
12821 (procfs_target::wait): Update.
12822 (procfs_target::files_info): Update.
12823 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12824 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12825 return type.
12826 (nto_procfs_target::pid_to_str): Change return type.
12827 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12828 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12829 return type.
12830 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12831 (exit_lwp): Update.
12832 (attach_proc_task_lwp_callback, get_detach_signal)
12833 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12834 (linux_nat_target::resume, wait_lwp, stop_callback)
12835 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12836 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12837 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12838 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12839 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12840 type.
12841 (inf_ptrace_target::attach): Update.
12842 (inf_ptrace_target::files_info): Update.
12843 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12844 type.
12845 (go32_nat_target::pid_to_str): Change return type.
12846 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12847 (gnu_nat_target::wait): Update.
12848 (gnu_nat_target::wait): Update.
12849 (gnu_nat_target::resume): Update.
12850 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12851 (fbsd_nat_target::wait): Update.
12852 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12853 type.
12854 (darwin_nat_target::attach): Update.
12855 * corelow.c (class core_target) <pid_to_str>: Change return type.
12856 (core_target::pid_to_str): Change return type.
12857 * target.c (normal_pid_to_str): Change return type.
12858 (default_pid_to_str): Likewise.
12859 (target_pid_to_str): Change return type.
12860 (target_translate_tls_address): Update.
12861 (target_announce_detach): Update.
12862 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12863 return type.
12864 (bsd_uthread_target::pid_to_str): Change return type.
12865 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12866 type.
12867 (bsd_kvm_target::pid_to_str): Change return type.
12868 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12869 return type.
12870 (aix_thread_target::pid_to_str): Change return type.
12871 * target.h (struct target_ops) <pid_to_str>: Change return type.
12872 (target_pid_to_str, normal_pid_to_str): Likewise.
12873 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12874 type.
12875 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12876 type.
12877 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12878 return type.
12879 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12880 type.
12881 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12882 type.
12883 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12884 return type.
12885
12886 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12887
12888 * NEWS: Mention that the new default MI version is 3. Mention
12889 changes to the output of commands and events that deal with
12890 multi-location breakpoints.
12891 * breakpoint.c: Include "mi/mi-out.h".
12892 (print_one_breakpoint): Change output syntax if using MI version
12893 >= 3.
12894 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12895 New.
12896 (mi_multi_location_breakpoint_output_fixed): New.
12897 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12898 (mi_cmd_fix_multi_location_breakpoint_output): New.
12899 (mi_multi_location_breakpoint_output_fixed): New.
12900 * mi/mi-cmds.c (mi_cmds): Register command
12901 -fix-multi-location-breakpoint-output.
12902 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12903 interpreter "mi".
12904
12905 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12906
12907 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12908 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12909 instantiate mi_ui_out based on interpreter name.
12910 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12911 * mi/mi-main.c (mi_load_progress): Likewise.
12912
12913 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12914
12915 * NEWS: Combine separate "New targets" sections for 8.3.
12916
12917 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12918
12919 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12920 (ppcfbsd_init_abi): Install gdbarch
12921 "fetch_tls_load_module_address" and "get_thread_local_address"
12922 methods.
12923
12924 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12925
12926 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12927 (riscv_fbsd_init_abi): Install gdbarch
12928 "fetch_tls_load_module_address" and "get_thread_local_address"
12929 methods.
12930
12931 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12932
12933 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12934 (i386fbsd_init_abi): Install gdbarch
12935 "fetch_tls_load_module_address" and "get_thread_local_address"
12936 methods.
12937
12938 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12939
12940 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12941 (amd64fbsd_init_abi): Install gdbarch
12942 "fetch_tls_load_module_address" and "get_thread_local_address"
12943 methods.
12944
12945 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12946
12947 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12948 (struct fbsd_pspace_data): New type.
12949 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12950 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12951 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12952 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12953 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12954
12955 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12956
12957 * gdbtypes.c (lookup_struct_elt): New function.
12958 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12959 * gdbtypes.h (struct struct_elt): New type.
12960 (lookup_struct_elt): New prototype.
12961
12962 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12963
12964 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12965 remove disabled code block.
12966
12967 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12968
12969 * gdbarch.sh (get_thread_local_address): New method.
12970 * gdbarch.h, gdbarch.c: Regenerate.
12971 * target.c (target_translate_tls_address): Use
12972 gdbarch_get_thread_local_address if present instead of
12973 target::get_thread_local_address.
12974
12975 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12976
12977 * target.h (target::get_thread_local_address): Update comment.
12978
12979 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12980
12981 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12982 objfile->separate_debug_objfile_backlink if not NULL.
12983
12984 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12985
12986 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12987 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12988 (amd64bsd_store_inferior_registers): Likewise.
12989 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12990 Enable segment base registers.
12991 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12992 PT_GETFSBASE and PT_GETGSBASE.
12993 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12994 PT_SETGSBASE.
12995 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12996 segment base registers.
12997 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12998
12999 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13000
13001 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13002 Update calls to i386_target_description to add 'segments'
13003 parameter.
13004 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13005 add segment base registers.
13006 * arch/i386.c (i386_create_target_description): Add 'segments'
13007 parameter to enable segment base registers.
13008 * arch/i386.h (i386_create_target_description): Likewise.
13009 * features/i386/32bit-segments.xml: New file.
13010 * features/i386/32bit-segments.c: Generate.
13011 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13012 call to i386_target_description to add 'segments' parameter.
13013 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13014 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13015 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13016 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13017 if feature is present.
13018 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13019 Add 'segments' parameter to call to i386_target_description.
13020 (i386_target_description): Add 'segments' parameter to enable
13021 segment base registers.
13022 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13023 to call to i386_target_description.
13024 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13025 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13026 Define I386_NUM_REGS.
13027 (i386_target_description): Add 'segments' parameter to enable
13028 segment base registers.
13029
13030 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13031
13032 PR/24325
13033 * source-cache.c: #undef open and close, to avoid unresolved
13034 externals during linking.
13035
13036 2019-03-12 Tom Tromey <tromey@adacore.com>
13037
13038 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13039 const. Add initializers.
13040 (_initialize_remote): Don't initialize ptid globals.
13041
13042 2019-03-12 Pedro Alves <palves@redhat.com>
13043
13044 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13045
13046 2019-03-12 Pedro Alves <palves@redhat.com>
13047
13048 * cp-name-parser.y (main): Remove unused 'len' variable.
13049
13050 2019-03-12 Tom Tromey <tromey@adacore.com>
13051
13052 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13053 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13054
13055 2019-03-12 Tom Tromey <tromey@adacore.com>
13056
13057 * linux-nat.c (iterate_over_lwps): Update.
13058 (stop_callback): Remove parameter.
13059 (stop_wait_callback, detach_callback, resume_set_callback)
13060 (select_singlestep_lwp_callback, set_ignore_sigint)
13061 (status_callback, resumed_callback, resume_clear_callback)
13062 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13063 data parameter.
13064 (linux_nat_target::detach, linux_nat_target::resume)
13065 (linux_stop_and_wait_all_lwps, select_event_lwp)
13066 (linux_nat_filter_event, linux_nat_wait_1)
13067 (linux_nat_target::kill, linux_nat_target::stop)
13068 (linux_nat_target::stop): Update.
13069 (linux_nat_resume_callback): Change type.
13070 (resume_stopped_resumed_lwps, count_events_callback)
13071 (select_event_lwp_callback): Likewise.
13072 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13073 * arm-linux-nat.c (struct update_registers_data): Remove.
13074 (update_registers_callback): Change type.
13075 (arm_linux_insert_hw_breakpoint1): Update.
13076 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13077 parameter.
13078 (x86_linux_dr_set_addr): Update.
13079 (x86_linux_dr_set_control): Update.
13080 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13081 (iterate_over_lwps): Use gdb::function_view.
13082 * nat/aarch64-linux-hw-point.c (struct
13083 aarch64_dr_update_callback_param): Remove.
13084 (debug_reg_change_callback): Change type.
13085 (aarch64_notify_debug_reg_change): Update.
13086 * s390-linux-nat.c (s390_refresh_per_info): Update.
13087
13088 2019-03-11 Tom Tromey <tromey@adacore.com>
13089
13090 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13091 redundant assignment to "this_cu".
13092
13093 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13094
13095 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13096
13097 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13098
13099 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13100 from...
13101 (rank_one_type): ... this.
13102
13103 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13104
13105 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13106 from...
13107 (rank_one_type): ... this.
13108
13109 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13110
13111 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13112 from...
13113 (rank_one_type): ... this.
13114
13115 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13116
13117 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13118 from...
13119 (rank_one_type): ... this.
13120
13121 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13122
13123 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13124 from...
13125 (rank_one_type): ... this.
13126
13127 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13128
13129 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13130 from...
13131 (rank_one_type): ... this.
13132
13133 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13134
13135 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13136 from...
13137 (rank_one_type): ... this.
13138
13139 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13140
13141 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13142 from...
13143 (rank_one_type): ... this.
13144
13145 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13146
13147 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13148 from...
13149 (rank_one_type): ... this.
13150
13151 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13152
13153 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13154 from...
13155 (rank_one_type): ... this.
13156
13157 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13158
13159 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13160 from...
13161 (rank_one_type): ... this.
13162
13163 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13164
13165 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13166 from...
13167 (rank_one_type): ... this.
13168
13169 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13170
13171 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13172 inferior-events' shows the example events.
13173
13174 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13175
13176 Support styling on native MS-Windows console
13177
13178 PR/24315
13179 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13180 on MS-Windows if $TERM is not defined.
13181
13182 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13183
13184 * posix-hdep.c (gdb_console_fputs):
13185 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13186 functions.
13187 * ui-file.h (gdb_console_fputs): Add prototype.
13188
13189 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13190 back to fputs only if the former returns zero.
13191
13192 2019-03-07 Tom Tromey <tom@tromey.com>
13193
13194 * symmisc.c (print_symbol_bcache_statistics): Update.
13195 (print_objfile_statistics): Update.
13196 * symfile.c (allocate_symtab): Update.
13197 * stabsread.c: Don't include bcache.h.
13198 * psymtab.h (struct psymbol_bcache): Don't declare.
13199 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13200 (psymbol_bcache_init, psymbol_bcache_free)
13201 (psymbol_bcache_get_bcache): Don't declare.
13202 * psymtab.c (struct psymbol_bcache): Remove.
13203 (psymtab_storage::psymtab_storage): Update.
13204 (psymtab_storage::~psymtab_storage): Update.
13205 (psymbol_bcache_init, psymbol_bcache_free)
13206 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13207 (add_psymbol_to_bcache): Update.
13208 (allocate_psymtab): Update.
13209 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13210 macro_cache>: No longer pointers.
13211 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13212 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13213 * macrotab.c (macro_bcache): Update.
13214 * macroexp.c: Don't include bcache.h.
13215 * gdbtypes.c (check_types_worklist): Update.
13216 (types_deeply_equal): Remove TRY/CATCH. Update.
13217 * elfread.c (elf_symtab_read): Update.
13218 * dwarf2read.c: Don't include bcache.h.
13219 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13220 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13221 (print_bcache_statistics, bcache_memory_used): Don't declare.
13222 (struct bcache): Move from bcache.c. Add constructor, destructor,
13223 methods. Rename all data members.
13224 * bcache.c (struct bcache): Move to bcache.h.
13225 (bcache::expand_hash_table): Rename from expand_hash_table.
13226 (bcache): Remove.
13227 (bcache::insert): Rename from bcache_full.
13228 (bcache::compare): Rename from bcache_compare.
13229 (bcache_xmalloc): Remove.
13230 (bcache::~bcache): Rename from bcache_xfree.
13231 (bcache::print_statistics): Rename from print_bcache_statistics.
13232 (bcache::memory_used): Rename from bcache_memory_used.
13233
13234 2019-03-07 Pedro Alves <palves@redhat.com>
13235
13236 * infrun.c (normal_stop): Also check for
13237 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13238
13239 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13240
13241 * f-lang.c (value_from_host_double): Moved to...
13242 * value.c (value_from_host_double): ...here.
13243 * value.h (value_from_host_double): Declare.
13244 * guile/scm-math.c (vlscm_convert_typed_number): Use
13245 value_from_host_double.
13246 (vlscm_convert_number): Likewise.
13247 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13248 * python/py-value.c (convert_value_from_python): Likewise.
13249
13250 2019-03-06 Tom Tromey <tom@tromey.com>
13251
13252 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13253
13254 2019-03-06 Tom Tromey <tom@tromey.com>
13255
13256 * utils.h (free_current_contents): Don't declare.
13257 * utils.c (free_current_contents): Remove.
13258
13259 2019-03-06 Tom Tromey <tom@tromey.com>
13260
13261 * top.c (quit_force): Update.
13262 * main.c (captured_command_loop): Update.
13263 * common/new-op.c (operator new): Update.
13264 * common/common-exceptions.c (struct catcher)
13265 <save_cleanup_chain>: Remove member.
13266 (exceptions_state_mc_init): Update.
13267 (exception_try_scope_entry): Return nullptr.
13268 (exception_try_scope_exit, exception_rethrow)
13269 (throw_exception_sjlj, throw_exception_cxx): Update.
13270 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13271 (all_cleanups, do_cleanups, discard_cleanups)
13272 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13273 (restore_cleanups, restore_final_cleanups): Don't declare.
13274 (do_final_cleanups): Remove parameter.
13275 * common/cleanups.c (cleanup_chain, make_cleanup)
13276 (make_cleanup_dtor, all_cleanups, do_cleanups)
13277 (discard_my_cleanups, discard_cleanups)
13278 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13279 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13280 (null_cleanup): Remove.
13281 (do_final_cleanups): Remove parameter.
13282
13283 2019-03-06 Tom Tromey <tom@tromey.com>
13284
13285 * remote.c (remote_target::remote_parse_stop_reply): Use
13286 unique_xmalloc_ptr.
13287
13288 2019-03-06 Tom Tromey <tom@tromey.com>
13289
13290 * stabsread.c (struct stabs_field_info): Rename from field_info.
13291 <list, fnlist>: Add initializers.
13292 <obstack>: New member.
13293 (read_member_functions, read_struct_fields, read_baseclasses):
13294 Allocate on obstack. Don't use cleanups.
13295 (read_one_struct_field, read_member_functions, read_struct_fields)
13296 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13297 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13298 (read_struct_type): Update.
13299
13300 2019-03-06 Tom Tromey <tom@tromey.com>
13301
13302 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13303 * common/filestuff.h (make_cleanup_close): Don't declare.
13304 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13305 Remove.
13306
13307 2019-03-06 Tom Tromey <tom@tromey.com>
13308
13309 * solib-aix.c: Use make_scope_exit.
13310
13311 2019-03-06 Tom Tromey <tom@tromey.com>
13312
13313 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13314 Use make_scope_exit.
13315
13316 2019-03-06 Tom Tromey <tom@tromey.com>
13317
13318 * solib-svr4.c (disable_probes_interface): Remove parameter.
13319 (svr4_handle_solib_event): Use make_scope_exit.
13320
13321 2019-03-06 Tom Tromey <tom@tromey.com>
13322
13323 * remote.c (struct stop_reply_deleter): Remove.
13324 (stop_reply_up): Update.
13325 (struct stop_reply): Derive from notif_event. Don't typedef.
13326 <regcache>: Now a std::vector.
13327 (stop_reply_xfree): Remove.
13328 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13329 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13330 (remote_target::discard_pending_stop_replies): Use delete.
13331 (remote_target::remote_parse_stop_reply): Update.
13332 (remote_target::process_stop_reply): Update.
13333 * remote-notif.h (struct notif_event): Add virtual destructor.
13334 Remove "dtr" member.
13335 (struct notif_client) <alloc_event>: Return a unique_ptr.
13336 (notif_event_xfree): Don't declare.
13337 (notif_event_up): New typedef.
13338 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13339 (notif_event_xfree, do_notif_event_xfree): Remove.
13340 (remote_notif_state_xfree): Update.
13341
13342 2019-03-06 Tom Tromey <tom@tromey.com>
13343
13344 * infrun.c (displaced_step_clear_cleanup): Now a
13345 forward_scope_exit type.
13346 (displaced_step_prepare_throw): Update.
13347 (displaced_step_fixup): Update.
13348
13349 2019-03-06 Tom Tromey <tom@tromey.com>
13350
13351 * inferior.h (class inferior): Update comment.
13352 * gdbthread.h (class thread_info): Update comment.
13353
13354 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13355 Tom Tromey <tom@tromey.com>
13356
13357 * stabsread.h (struct stab_section_list): Remove.
13358 (coffstab_build_psymtabs): Update.
13359 * dbxread.c (symbuf_sections): Now a std::vector.
13360 (sect_idx): New global.
13361 (fill_symbuf): Update.
13362 (coffstab_build_psymtabs): Change type of stabsects parameter.
13363 Update.
13364 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13365 std::vector.
13366 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13367 (coff_locate_sections): Update.
13368 (coff_symfile_read): Remove cleanups. Update.
13369 (init_stringtab): Add storage parameter.
13370 (free_stringtab, free_stringtab_cleanup): Remove.
13371 (init_lineno): Add storage parameter.
13372 (free_linetab, free_linetab_cleanup): Remove.
13373
13374 2019-03-06 Pedro Alves <palves@redhat.com>
13375
13376 * linux-fork.c (fork_info::clobber_regs): Delete.
13377 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13378 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13379 comment. Adjust.
13380 (scoped_switch_fork_info::scoped_switch_fork_info)
13381 (checkpoint_command, linux_fork_context): Adjust
13382 fork_save_infrun_state calls.
13383
13384 2019-03-06 Pedro Alves <palves@redhat.com>
13385
13386 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13387 (inf_has_multiple_threads): Return 'bool' and rewrite using
13388 inferior_info::threads().
13389
13390 2019-03-06 Pedro Alves <palves@redhat.com>
13391
13392 * linux-fork.c: Include <list>.
13393 (fork_list): Now a std::list instance.
13394 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13395 (forks_exist_p, find_last_fork): Adjust.
13396 (new_fork): Delete.
13397 (one_fork_p): New.
13398 (add_fork): Adjust.
13399 (free_fork): Delete, folded into fork_info::~fork_info().
13400 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13401 Adjust.
13402 (init_fork_list): Delete.
13403 (linux_fork_killall, linux_fork_mourn_inferior)
13404 (linux_fork_detach, info_checkpoints_command): Adjust.
13405 (_initialize_linux_fork): No longer call init_fork_list.
13406
13407 2019-03-06 Pedro Alves <palves@redhat.com>
13408
13409 * linux-fork.c (new_fork): New, split out of ...
13410 (add_fork): ... this. Return void. Move "first fork" special
13411 case from here, to ...
13412 (checkpoint_command): ... here.
13413 * linux-linux.h (add_fork): Return void.
13414
13415 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13416
13417 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13418
13419 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13420 Chris January <chris.january@arm.com>
13421 David Lecomber <david.lecomber@arm.com>
13422
13423 * f-exp.y: New token, UNOP_INTRINSIC.
13424 (exp): New pattern using UNOP_INTRINSIC token.
13425 (f77_keywords): Add 'abs' keyword.
13426 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13427 (value_from_host_double): New function.
13428 (evaluate_subexp_f): Support UNOP_ABS.
13429
13430 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13431
13432 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13433 types.
13434
13435 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13436
13437 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13438 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13439 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13440
13441 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13442
13443 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13444
13445 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13446 Chris January <chris.january@arm.com>
13447
13448 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13449 * f-exp.y: Define 'KIND' token.
13450 (exp): New pattern for KIND expressions.
13451 (ptype): Handle types with a kind extension.
13452 (direct_abs_decl): Extend to spot kind extensions.
13453 (f77_keywords): Add 'kind' to the list.
13454 (push_kind_type): New function.
13455 (convert_to_kind_type): New function.
13456 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13457 * parse.c (operator_length_standard): Likewise.
13458 * parser-defs.h (enum type_pieces): Add tp_kind.
13459 * std-operator.def: Add UNOP_KIND.
13460
13461 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13462
13463 * f-exp.y (f_parse): Set yydebug.
13464
13465 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13466
13467 * f-lang.c (evaluate_subexp_f): New function.
13468 (exp_descriptor_f): New global.
13469 (f_language_defn): Use exp_descriptor_f instead of
13470 exp_descriptor_standard.
13471
13472 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13473
13474 * f-exp.y (struct token): Add comments.
13475 (dot_ops): Remove uppercase versions and the end marker.
13476 (f77_keywords): Likewise.
13477 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13478 entries in the dot_ops array are case insensitive, and use
13479 strncasecmp to compare strings. Also some whitespace cleanup in
13480 this area. Similar for the f77_keywords array, except entries in
13481 this list might be case sensitive.
13482
13483 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13484
13485 * f-exp.y (struct f77_boolean_val): Add comments.
13486 (boolean_values): Remove uppercase versions, and end marker.
13487 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13488 and use strncasecmp to achieve case insensitivity. Additionally,
13489 perform whitespace cleanup around this code.
13490
13491 2019-03-06 Tom Tromey <tromey@adacore.com>
13492
13493 * remote-sim.c (gdbsim_target_open): Use result of
13494 gdb_argv::release.
13495
13496 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13497 Dirk Schubert <dirk.schubert@arm.com>
13498 Chris January <chris.january@arm.com>
13499
13500 * eval.c (evaluate_subexp_standard): Call Fortran argument
13501 wrapping logic.
13502 * f-lang.c (struct value): A value which can be passed into a
13503 Fortran function call.
13504 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13505 where appropriate.
13506 (struct type): Value ready for a Fortran function call.
13507 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13508 is needed.
13509 * f-lang.h (fortran_argument_convert): Declaration.
13510 (fortran_preserve_arg_pointer): Declaration.
13511 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13512
13513 2019-03-05 Tom Tromey <tromey@adacore.com>
13514
13515 * python/py-prettyprint.c (print_string_repr): Remove #if.
13516 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13517
13518 2019-03-05 Tom Tromey <tromey@adacore.com>
13519
13520 * target.c (the_dummy_target): Move later. Change type to
13521 "dummy_target".
13522 (initialize_targets): Don't initialize the_dummy_target.
13523
13524 2019-03-05 Tom Tromey <tromey@adacore.com>
13525
13526 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13527 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13528
13529 2019-03-05 Tom Tromey <tromey@adacore.com>
13530
13531 * windows-nat.c (windows_nat_target::attach)
13532 (windows_nat_target::detach): Don't call gdb_flush.
13533 * valprint.c (generic_val_print, val_print, val_print_string):
13534 Don't call gdb_flush.
13535 * utils.c (defaulted_query): Don't call gdb_flush.
13536 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13537 * target.c (target_announce_detach): Don't call gdb_flush.
13538 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13539 * remote.c (extended_remote_target::attach): Don't call
13540 gdb_flush.
13541 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13542 * printcmd.c (do_examine): Don't call gdb_flush.
13543 (info_display_command): Don't call gdb_flush.
13544 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13545 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13546 * memattr.c (info_mem_command): Don't call gdb_flush.
13547 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13548 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13549 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13550 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13551 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13552 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13553 (gnu_nat_target::detach): Don't call gdb_flush.
13554 * f-valprint.c (f_val_print): Don't call gdb_flush.
13555 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13556 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13557 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13558 gdb_flush.
13559 * c-valprint.c (c_val_print): Don't call gdb_flush.
13560 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13561
13562 2019-03-05 Tom Tromey <tromey@adacore.com>
13563
13564 * varobj.c (update_dynamic_varobj_children): Update.
13565 (install_default_visualizer): Use reset, not release.
13566 * value.c (set_internalvar): Update.
13567 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13568 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13569 ATTRIBUTE_UNUSED_RESULT.
13570
13571 2019-03-05 Tom Tromey <tromey@adacore.com>
13572
13573 * remote.c (class scoped_remote_fd) <release>: Add
13574 ATTRIBUTE_UNUSED_RESULT.
13575
13576 2019-03-05 Tom Tromey <tromey@adacore.com>
13577
13578 * macroexp.c (struct macro_buffer) <release>: Add
13579 ATTRIBUTE_UNUSED_RESULT.
13580
13581 2019-03-05 Tom Tromey <tromey@adacore.com>
13582
13583 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13584 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13585 ATTRIBUTE_UNUSED_RESULT.
13586
13587 2019-03-05 Tom Tromey <tromey@adacore.com>
13588
13589 * common/scoped_fd.h (class scoped_fd) <release>: Add
13590 ATTRIBUTE_UNUSED_RESULT.
13591
13592 2019-03-05 Tom Tromey <tromey@adacore.com>
13593
13594 * parser-defs.h (struct parser_state) <release>: Add
13595 ATTRIBUTE_UNUSED_RESULT.
13596
13597 2019-03-05 Tom Tromey <tromey@adacore.com>
13598
13599 * utils.h (class gdb_argv) <release>: Add
13600 ATTRIBUTE_UNUSED_RESULT.
13601 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13602
13603 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13604
13605 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13606 for-loop range, to avoid compiler warnings.
13607
13608 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13609 avoid compiler warnings about unused variables.
13610
13611 * NEWS: Mention end of support for native debugging on MS-Windows
13612 before XP.
13613
13614 PR gdb/24292
13615 * common/netstuff.c:
13616 * gdbserver/gdbreplay.c
13617 * gdbserver/remote-utils.c:
13618 * ser-tcp.c:
13619 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13620 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13621 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13622 'getaddrinfo' and 'freeaddrinfo' were not available before
13623 Windows XP, and mingw.org's MinGW headers by default define
13624 _WIN32_WINNT to 0x500.
13625
13626 2019-03-01 Gary Benson <gbenson@redhat.com>
13627
13628 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13629
13630 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13631 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13632
13633 PR gdb/8527
13634 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13635 set_sigint_trap, clear_sigint_trap.
13636
13637 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13638
13639 * target.c (target_detach): Clear the regcache and the
13640 frame cache.
13641
13642 2019-02-27 Pedro Alves <palves@redhat.com>
13643
13644 * utils.c (set_screen_size): When we cap the height/width sizes,
13645 tweak the corresponding command variable to show "unlimited":
13646
13647 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13648 Pedro Alves <palves@redhat.com>
13649
13650 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13651 before calling rl_set_screen_size.
13652
13653 2019-02-27 Tom Tromey <tromey@adacore.com>
13654
13655 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13656 define.
13657 * python/py-value.c: Remove Python 2.4 workaround.
13658 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13659 workaround.
13660 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13661 Python 2.4 workaround.
13662 * python/python-internal.h: Remove Python 2.4 comment.
13663 (Py_ssize_t): Don't define.
13664 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13665 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13666 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13667 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13668 * python/python.c (do_start_initialization): Remove Python 2.4
13669 workaround.
13670 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13671 (print_children): Remove Python 2.4 workaround.
13672 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13673 workaround.
13674 (CHARBUFFERPROC_NAME): Remove.
13675 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13676 Python 2.4 workaround.
13677
13678 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13679
13680 * NEWS: Note minimum Python version.
13681
13682 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13683
13684 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13685 code from these functions. Remove corresponding ifdefs. Use
13686 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13687 Remove gotos and target of gotos.
13688 (infpy_search_memory): Likewise.
13689
13690 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13691
13692 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13693 (hppa_gdbarch_init): Don't register deleted functions with
13694 gdbarch.
13695
13696 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13697
13698 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13699 (h8300_unwind_sp): Delete.
13700 (h8300_dummy_id): Delete.
13701 (h8300_gdbarch_init): Don't register deleted functions with
13702 gdbarch.
13703
13704 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13705
13706 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13707 (ft32_unwind_pc): Delete.
13708 (ft32_unwind_sp): Delete.
13709 (ft32_gdbarch_init): Don't register deleted functions with
13710 gdbarch.
13711
13712 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13713
13714 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13715 (frv_unwind_pc): Delete.
13716 (frv_unwind_sp): Delete.
13717 (frv_gdbarch_init): Don't register deleted functions with
13718 gdbarch.
13719
13720 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13721
13722 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13723 (riscv_unwind_pc): Delete.
13724 (riscv_unwind_sp): Delete.
13725 (riscv_gdbarch_init): Don't register deleted functions with
13726 gdbarch.
13727
13728 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13729
13730 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13731 (csky_unwind_pc): Delete.
13732 (csky_unwind_sp): Delete.
13733 (csky_gdbarch_init): Don't register deleted functions with
13734 gdbarch.
13735
13736 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13737
13738 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13739 (cris_unwind_pc): Delete.
13740 (cris_unwind_sp): Delete.
13741 (cris_gdbarch_init): Don't register deleted functions with
13742 gdbarch.
13743
13744 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13745
13746 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13747 (bfin_unwind_pc): Delete.
13748 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13749
13750 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13751
13752 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13753 (arm_unwind_pc): Delete.
13754 (arm_unwind_sp): Delete.
13755 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13756
13757 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13758
13759 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13760 (arc_unwind_pc): Delete.
13761 (arc_unwind_sp): Delete.
13762 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13763
13764 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13765
13766 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13767 (alpha_unwind_pc): Delete.
13768 (alpha_gdbarch_init): Don't register deleted functions with
13769 gdbarch.
13770
13771 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13772
13773 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13774 (aarch64_unwind_pc): Delete.
13775 (aarch64_unwind_sp): Delete.
13776 (aarch64_gdbarch_init): Don't register deleted functions with
13777 gdbarch.
13778
13779 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13780
13781 * gdbtypes.c (type_align): Don't consider static members when
13782 computing structure alignment.
13783
13784 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13785
13786 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13787 return 0 for other types.
13788 * arch-utils.c (default_type_align): Always return 0.
13789 * gdbarch.h: Regenerate.
13790 * gdbarch.sh (type_align): Extend comment.
13791 * gdbtypes.c (type_align): Add additional comments, always call
13792 gdbarch_type_align before applying the default rules.
13793 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13794 generic code will then apply a suitable default.
13795 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13796 types, return 0 for other types.
13797
13798 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13799
13800 * NEWS: Create a new section for the next release branch.
13801 Rename the section of the current branch, now that it has
13802 been cut.
13803
13804 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13805
13806 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13807 * version.in: Bump version to 8.3.50.DATE-git.
13808
13809 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13810
13811 * aix-thread.c (ptid_cmp): Remove unused variable.
13812 (get_signaled_thread): Likewise.
13813 (store_regs_user_thread): Likewise.
13814 (store_regs_kernel_thread): Likewise.
13815 (fetch_regs_kernel_thread): Remove shadowed variable.
13816
13817 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13818
13819 * features/riscv/32bit-cpu.xml: Add register numbers.
13820 * features/riscv/32bit-fpu.c: Regenerate.
13821 * features/riscv/32bit-fpu.xml: Add register numbers.
13822 * features/riscv/64bit-cpu.xml: Add register numbers.
13823 * features/riscv/64bit-fpu.c: Regenerate.
13824 * features/riscv/64bit-fpu.xml: Add register numbers.
13825
13826 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13827
13828 * NEWS: Mention two argument form of gdb.Value constructor.
13829 * python/py-value.c (convert_buffer_and_type_to_value): New
13830 function.
13831 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13832 Add support for handling an optional second argument. Call
13833 convert_buffer_and_type_to_value as appropriate.
13834 * python/python-internal.h (Py_buffer_deleter): New struct.
13835 (Py_buffer_up): New typedef.
13836
13837 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13838
13839 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13840 instead of releasing ownership.
13841
13842 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13843
13844 * dwarf2read.c (open_and_init_dwp_file): Call
13845 elf_numsections instead of bfd_count_sections to initialize
13846 dwp_file->num_sections.
13847
13848 2019-02-25 Tom Tromey <tromey@adacore.com>
13849
13850 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13851
13852 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13853
13854 * gcore.in: Add '--readnever' option when invoking GDB.
13855
13856 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13857
13858 * MAINTAINERS: Update my email address.
13859
13860 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13861
13862 * build-id.c (build_id_to_debug_bfd_1): New function.
13863 (build_id_to_debug_bfd): Look for separate debug file in
13864 sysroot.
13865
13866 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13867
13868 * gdbarch.sh: Update the copyright year range that is placed into
13869 generated files.
13870
13871 2019-02-22 Keith Seitz <keiths@redhat.com>
13872
13873 PR symtab/23853
13874 * linespec.c (create_sals_line_offset): Search for the default
13875 symtab's filename instead of its fullname.
13876
13877 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13878
13879 * NEWS: Update style defaults.
13880
13881 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13882
13883 * main.c (captured_main_1): Disable styling in batch mode.
13884
13885 2019-02-20 Tom Tromey <tom@tromey.com>
13886
13887 * symtab.c (symtab_symbol_info): Fix typos.
13888
13889 2019-02-20 Tom Tromey <tromey@adacore.com>
13890
13891 * findcmd.c (_initialize_mem_search): Use upper case for
13892 metasyntactic variables.
13893
13894 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13895
13896 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13897 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13898
13899 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13900
13901 * top.h (source_file_name): Change to std::string.
13902 * top.c (source_file_name): Likewise.
13903 (command_line_input): Adjust.
13904 * cli/cli-script.c (script_from_file): Adjust.
13905
13906 2019-02-19 Tom Tromey <tromey@adacore.com>
13907
13908 * ravenscar-thread.c
13909 (ravenscar_thread_target::update_thread_list): Don't call
13910 ada_build_task_list.
13911 * ada-lang.h (ada_build_task_list): Don't declare.
13912 * ada-tasks.c (struct ada_tasks_inferior_data)
13913 <task_list_valid_p>: Now bool.
13914 (read_known_tasks, ada_task_list_changed)
13915 (ada_tasks_invalidate_inferior_data): Update.
13916 (read_known_tasks_array): Return bool.
13917 (read_known_tasks_list): Likewise.
13918 (read_known_tasks): Return void.
13919 (ada_build_task_list): Now static.
13920
13921 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13922
13923 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13924 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13925
13926 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13927
13928 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13929 variant for ada_tasks_pspace_data_handle and
13930 ada_tasks_inferior_data_handle.
13931 (ada_tasks_pspace_data_cleanup): New function.
13932 (ada_tasks_inferior_data_cleanup): New function.
13933
13934 2019-02-17 Tom Tromey <tom@tromey.com>
13935
13936 * macrotab.h (macro_source_fullname): Return a std::string.
13937 * macrotab.c (macro_include, check_for_redefinition)
13938 (macro_undef, macro_lookup_definition, foreach_macro)
13939 (foreach_macro_in_scope): Update.
13940 (macro_source_fullname): Return a std::string.
13941 * macrocmd.c (show_pp_source_pos): Update.
13942
13943 2019-02-17 Tom Tromey <tom@tromey.com>
13944
13945 * macrocmd.c (show_pp_source_pos): Style the file names.
13946
13947 2019-02-17 Tom Tromey <tom@tromey.com>
13948
13949 PR tui/24197:
13950 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13951
13952 2019-02-17 Tom Tromey <tom@tromey.com>
13953
13954 * ada-lang.c (user_select_syms): Use filtered printing.
13955 * utils.c (wrap_style): New global.
13956 (desired_style): Remove.
13957 (emit_style_escape): Add stream parameter.
13958 (set_output_style, reset_terminal_style, prompt_for_continue):
13959 Update.
13960 (flush_wrap_buffer): Only flush gdb_stdout.
13961 (wrap_here): Set wrap_style.
13962 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13963 treat escape sequences as a character. Change when wrap buffer is
13964 flushed.
13965 (fputs_styled): Do not set the output style when the default is
13966 requested.
13967 * ui-style.h (struct ui_file_style) <is_default>: New method.
13968 * source.c (print_source_lines_base): Emit escape sequences in one
13969 piece.
13970
13971 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13972
13973 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13974 integers and enumeration types.
13975
13976 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13977
13978 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13979 instead of lookup_symbol_in_language
13980 (do_exact_match): New function.
13981 (ada_get_symbol_name_matcher): Return do_exact_match when
13982 doing a verbatim match.
13983
13984 2019-02-15 Tom Tromey <tromey@adacore.com>
13985
13986 * ravenscar-thread.c (ravenscar_thread_target::resume)
13987 (ravenscar_thread_target::wait): Special case wildcard requests.
13988
13989 2019-02-15 Tom Tromey <tromey@adacore.com>
13990
13991 * ravenscar-thread.c (base_ptid): Remove.
13992 (struct ravenscar_thread_target) <close>: New method.
13993 <m_base_ptid>: New member.
13994 <update_inferior_ptid, active_task, task_is_currently_active,
13995 runtime_initialized>: Declare methods.
13996 <ravenscar_thread_target>: Add constructor.
13997 (ravenscar_thread_target::task_is_currently_active)
13998 (ravenscar_thread_target::update_inferior_ptid)
13999 (ravenscar_runtime_initialized): Rename. Now methods.
14000 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14001 (ravenscar_thread_target::update_thread_list): Update.
14002 (ravenscar_thread_target::active_task): Now method.
14003 (ravenscar_thread_target::store_registers)
14004 (ravenscar_thread_target::prepare_to_store)
14005 (ravenscar_thread_target::prepare_to_store)
14006 (ravenscar_thread_target::mourn_inferior): Update.
14007 (ravenscar_inferior_created): Use "new" to create target.
14008 (ravenscar_thread_target::get_ada_task_ptid): Update.
14009 (_initialize_ravenscar): Don't initialize base_ptid.
14010 (ravenscar_ops): Remove global.
14011
14012 2019-02-15 Tom Tromey <tromey@adacore.com>
14013
14014 * target.h (push_target): Declare new overload.
14015 * target.c (push_target): New overload, taking an rvalue reference.
14016 * remote.c (remote_target::open_1): Use push_target overload.
14017 * corelow.c (core_target_open): Use push_target overload.
14018
14019 2019-02-15 Tom Tromey <tromey@adacore.com>
14020
14021 * ravenscar-thread.c (is_ravenscar_task)
14022 (ravenscar_task_is_currently_active): Return bool.
14023 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14024 (_initialize_ravenscar): Remove "(void)".
14025 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14026 Return bool.
14027
14028 2019-02-15 Tom Tromey <tromey@adacore.com>
14029
14030 * ravenscar-thread.c (ravenscar_runtime_initializer)
14031 (has_ravenscar_runtime, get_running_thread_id)
14032 (ravenscar_thread_target::resume): Fix indentation.
14033
14034 2019-02-15 Tom Tromey <tromey@adacore.com>
14035
14036 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14037 from ravenscar_arch_ops.
14038 (sparc_ravenscar_ops::fetch_registers)
14039 (sparc_ravenscar_ops::store_registers): Now methods.
14040 (sparc_ravenscar_prepare_to_store): Remove.
14041 (sparc_ravenscar_ops): Redefine.
14042 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14043 methods and destructor. Remove members.
14044 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14045 (ravenscar_thread_target::store_registers)
14046 (ravenscar_thread_target::prepare_to_store): Update.
14047 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14048 Remove.
14049 (struct ppc_ravenscar_powerpc_ops): Derive from
14050 ravenscar_arch_ops.
14051 (ppc_ravenscar_powerpc_ops::fetch_registers)
14052 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14053 (ppc_ravenscar_powerpc_ops): Redefine.
14054 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14055 (ppc_ravenscar_e500_ops::fetch_registers)
14056 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14057 (ppc_ravenscar_e500_ops): Redefine.
14058 * aarch64-ravenscar-thread.c
14059 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14060 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14061 (aarch64_ravenscar_fetch_registers)
14062 (aarch64_ravenscar_store_registers): Now methods.
14063 (aarch64_ravenscar_ops): Redefine.
14064
14065 2019-02-15 Tom Tromey <tromey@adacore.com>
14066
14067 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14068 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14069 (ravenscar_thread_target::stopped_by_watchpoint)
14070 (ravenscar_thread_target::stopped_data_address)
14071 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14072
14073 2019-02-15 Tom Tromey <tromey@adacore.com>
14074
14075 * ravenscar-thread.c: Fix some typos.
14076
14077 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14078 Tom Tromey <tromey@adacore.com>
14079
14080 * ada-lang.c (ada_exception_sal): Change addr_string to a
14081 std::string.
14082 (create_ada_exception_catchpoint): Update.
14083
14084 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14085 Tom Tromey <tromey@adacore.com>
14086
14087 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14088 (bp_location_ops): Remove.
14089 (base_breakpoint_allocate_location): Update.
14090 (free_bp_location): Update.
14091 * ada-lang.c (class ada_catchpoint_location)
14092 <ada_catchpoint_location>: Remove ops parameter.
14093 (ada_catchpoint_location_dtor): Remove.
14094 (ada_catchpoint_location_ops): Remove.
14095 (allocate_location_exception): Update.
14096 * breakpoint.h (struct bp_location_ops): Remove.
14097 (class bp_location) <bp_location>: Remove bp_location_ops
14098 parameter.
14099 <~bp_location>: Add destructor.
14100 <ops>: Remove.
14101
14102 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14103 Pedro Alves <palves@redhat.com>
14104
14105 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14106 'PATH_MAX'.
14107
14108 2019-02-14 David Michael <fedora.dm0@gmail.com>
14109 Samuel Thibault <samuel.thibault@gnu.org>
14110 Thomas Schwinge <thomas@codesourcery.com>
14111
14112 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14113 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14114
14115 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14116
14117 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14118 (check_empty): Use "const char *".
14119
14120 * gnu-nat.c (gnu_nat_target::detach): Instead of
14121 'detach_inferior (pid)' call
14122 'detach_inferior (find_inferior_pid (pid))'.
14123
14124 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14125 'nat/fork-inferior.o'.
14126 * gnu-nat.c: #include "nat/fork-inferior.h".
14127
14128 * gnu-nat.c (gnu_nat_target::detach): Instead of
14129 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14130 * gnu-nat.h: #include "inf-child.h".
14131 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14132 'i386_gnu_nat_target::fetch_registers'.
14133 (gnu_store_registers): Rename/move to
14134 'i386_gnu_nat_target::store_registers'.
14135
14136 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14137 * gnu-nat.h (mach_thread_info): New function.
14138 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14139
14140 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14141
14142 2019-02-14 Frederic Konrad <konrad@adacore.com>
14143
14144 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14145
14146 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14147
14148 * windows-nat.c (windows_add_thread): Add new parameter
14149 "main_thread_p" with default value set to false. Update
14150 function documentation as well as all callers.
14151 (windows_delete_thread): Likewise.
14152 (fake_create_process): Update call to windows_add_thread.
14153 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14154 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14155 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14156 call to windows_delete_thread.
14157
14158 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14159
14160 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14161
14162 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14163
14164 * symfile.c (find_separate_debug_file): Use canonical path of
14165 sysroot with child_path instead of gdb_sysroot if it is valid.
14166
14167 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14168
14169 * symfile.c (find_separate_debug_file): Use child_path to
14170 determine if an object file is under a sysroot.
14171
14172 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14173
14174 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14175 unittests/child-path-selftests.c.
14176 * common/pathstuff.c (child_path): New function.
14177 * common/pathstuff.h (child_path): New prototype.
14178 * unittests/child-path-selftests.c: New file.
14179
14180 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14181
14182 * symfile.c (find_separate_debug_file): Look for separate debug
14183 files in debug directories under the sysroot.
14184
14185 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14186
14187 * symtab.h (struct minimal_symbol data_p): New const method.
14188 (struct minimal_symbol text_p): Likewise.
14189 * symtab.c (output_source_filename): Use file name style
14190 to print file name.
14191 (print_symbol_info): Likewise.
14192 (print_msymbol_info): Use address style to print addresses.
14193 Use function name style to print executable text symbols.
14194 (expand_symtab_containing_pc): Use data_p.
14195 (find_pc_sect_compunit_symtab): Likewise.
14196
14197 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14198
14199 * breakpoint.c (describe_other_breakpoints): Use address style
14200 to print addresses.
14201 (say_where): Likewise.
14202
14203 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14204
14205 * ada-typeprint.c (print_func_type): Print function name
14206 style to print function name.
14207 * c-typeprint.c (c_print_type_1): Likewise.
14208
14209 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14210
14211 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14212 for execve.
14213
14214 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14215
14216 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14217 type_stack.
14218
14219 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14220
14221 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14222 TYPE_CODE_REF types.
14223
14224 2019-02-08 Jim Wilson <jimw@sifive.com>
14225
14226 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14227 (riscv_linux_fregset): New.
14228 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14229
14230 2019-02-07 Tom Tromey <tom@tromey.com>
14231
14232 * thread.c (thread_cancel_execution_command): Update.
14233 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14234 methods.
14235 (struct thread_fsm_ops): Remove.
14236 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14237 (thread_fsm_should_stop, thread_fsm_return_value)
14238 (thread_fsm_set_finished, thread_fsm_finished_p)
14239 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14240 Don't declare.
14241 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14242 * infrun.c (clear_proceed_status_thread)
14243 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14244 (print_stop_event): Update.
14245 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14246 Add constructor.
14247 (step_command_fsm_ops): Remove.
14248 (new_step_command_fsm): Remove.
14249 (step_1): Update.
14250 (step_command_fsm::should_stop): Rename from
14251 step_command_fsm_should_stop.
14252 (step_command_fsm::clean_up): Rename from
14253 step_command_fsm_clean_up.
14254 (step_command_fsm::do_async_reply_reason): Rename from
14255 step_command_fsm_async_reply_reason.
14256 (struct until_next_fsm): Inherit from thread_fsm. Add
14257 constructor.
14258 (until_next_fsm_ops): Remove.
14259 (new_until_next_fsm): Remove.
14260 (until_next_fsm::should_stop): Rename from
14261 until_next_fsm_should_stop.
14262 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14263 (until_next_fsm::do_async_reply_reason): Rename from
14264 until_next_fsm_async_reply_reason.
14265 (struct finish_command_fsm): Inherit from thread_fsm. Add
14266 constructor. Change type of breakpoint.
14267 (finish_command_fsm_ops): Remove.
14268 (new_finish_command_fsm): Remove.
14269 (finish_command_fsm::should_stop): Rename from
14270 finish_command_fsm_should_stop.
14271 (finish_command_fsm::clean_up): Rename from
14272 finish_command_fsm_clean_up.
14273 (finish_command_fsm::return_value): Rename from
14274 finish_command_fsm_return_value.
14275 (finish_command_fsm::do_async_reply_reason): Rename from
14276 finish_command_fsm_async_reply_reason.
14277 (finish_command): Update.
14278 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14279 Add constructor.
14280 (call_thread_fsm_ops): Remove.
14281 (call_thread_fsm::call_thread_fsm): Rename from
14282 new_call_thread_fsm.
14283 (call_thread_fsm::should_stop): Rename from
14284 call_thread_fsm_should_stop.
14285 (call_thread_fsm::should_notify_stop): Rename from
14286 call_thread_fsm_should_notify_stop.
14287 (run_inferior_call, call_function_by_hand_dummy): Update.
14288 * cli/cli-interp.c (should_print_stop_to_console): Update.
14289 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14290 Add constructor. Change type of location_breakpoint,
14291 caller_breakpoint.
14292 (until_break_fsm_ops): Remove.
14293 (new_until_break_fsm): Remove.
14294 (until_break_fsm::should_stop): Rename from
14295 until_break_fsm_should_stop.
14296 (until_break_fsm::clean_up): Rename from
14297 until_break_fsm_clean_up.
14298 (until_break_fsm::do_async_reply_reason): Rename from
14299 until_break_fsm_async_reply_reason.
14300 (until_break_command): Update.
14301 * thread-fsm.c: Remove.
14302 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14303
14304 2019-02-07 Tom Tromey <tom@tromey.com>
14305
14306 * yy-remap.h: Add include guard.
14307 * xtensa-tdep.h: Add include guard.
14308 * xcoffread.h: Rename include guard.
14309 * varobj-iter.h: Add include guard.
14310 * tui/tui.h: Rename include guard.
14311 * tui/tui-winsource.h: Rename include guard.
14312 * tui/tui-wingeneral.h: Rename include guard.
14313 * tui/tui-windata.h: Rename include guard.
14314 * tui/tui-win.h: Rename include guard.
14315 * tui/tui-stack.h: Rename include guard.
14316 * tui/tui-source.h: Rename include guard.
14317 * tui/tui-regs.h: Rename include guard.
14318 * tui/tui-out.h: Rename include guard.
14319 * tui/tui-layout.h: Rename include guard.
14320 * tui/tui-io.h: Rename include guard.
14321 * tui/tui-hooks.h: Rename include guard.
14322 * tui/tui-file.h: Rename include guard.
14323 * tui/tui-disasm.h: Rename include guard.
14324 * tui/tui-data.h: Rename include guard.
14325 * tui/tui-command.h: Rename include guard.
14326 * tic6x-tdep.h: Add include guard.
14327 * target/waitstatus.h: Rename include guard.
14328 * target/wait.h: Rename include guard.
14329 * target/target.h: Rename include guard.
14330 * target/resume.h: Rename include guard.
14331 * target-float.h: Rename include guard.
14332 * stabsread.h: Add include guard.
14333 * rs6000-tdep.h: Add include guard.
14334 * riscv-fbsd-tdep.h: Add include guard.
14335 * regformats/regdef.h: Rename include guard.
14336 * record.h: Rename include guard.
14337 * python/python.h: Rename include guard.
14338 * python/python-internal.h: Rename include guard.
14339 * python/py-stopevent.h: Rename include guard.
14340 * python/py-ref.h: Rename include guard.
14341 * python/py-record.h: Rename include guard.
14342 * python/py-record-full.h: Rename include guard.
14343 * python/py-record-btrace.h: Rename include guard.
14344 * python/py-instruction.h: Rename include guard.
14345 * python/py-events.h: Rename include guard.
14346 * python/py-event.h: Rename include guard.
14347 * procfs.h: Add include guard.
14348 * proc-utils.h: Add include guard.
14349 * p-lang.h: Add include guard.
14350 * or1k-tdep.h: Rename include guard.
14351 * observable.h: Rename include guard.
14352 * nto-tdep.h: Rename include guard.
14353 * nat/x86-linux.h: Rename include guard.
14354 * nat/x86-linux-dregs.h: Rename include guard.
14355 * nat/x86-gcc-cpuid.h: Add include guard.
14356 * nat/x86-dregs.h: Rename include guard.
14357 * nat/x86-cpuid.h: Rename include guard.
14358 * nat/ppc-linux.h: Rename include guard.
14359 * nat/mips-linux-watch.h: Rename include guard.
14360 * nat/linux-waitpid.h: Rename include guard.
14361 * nat/linux-ptrace.h: Rename include guard.
14362 * nat/linux-procfs.h: Rename include guard.
14363 * nat/linux-osdata.h: Rename include guard.
14364 * nat/linux-nat.h: Rename include guard.
14365 * nat/linux-namespaces.h: Rename include guard.
14366 * nat/linux-btrace.h: Rename include guard.
14367 * nat/glibc_thread_db.h: Rename include guard.
14368 * nat/gdb_thread_db.h: Rename include guard.
14369 * nat/gdb_ptrace.h: Rename include guard.
14370 * nat/fork-inferior.h: Rename include guard.
14371 * nat/amd64-linux-siginfo.h: Rename include guard.
14372 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14373 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14374 * nat/aarch64-linux.h: Rename include guard.
14375 * nat/aarch64-linux-hw-point.h: Rename include guard.
14376 * mn10300-tdep.h: Add include guard.
14377 * mips-linux-tdep.h: Add include guard.
14378 * mi/mi-parse.h: Rename include guard.
14379 * mi/mi-out.h: Rename include guard.
14380 * mi/mi-main.h: Rename include guard.
14381 * mi/mi-interp.h: Rename include guard.
14382 * mi/mi-getopt.h: Rename include guard.
14383 * mi/mi-console.h: Rename include guard.
14384 * mi/mi-common.h: Rename include guard.
14385 * mi/mi-cmds.h: Rename include guard.
14386 * mi/mi-cmd-break.h: Rename include guard.
14387 * m2-lang.h: Add include guard.
14388 * location.h: Rename include guard.
14389 * linux-record.h: Rename include guard.
14390 * linux-nat.h: Add include guard.
14391 * linux-fork.h: Add include guard.
14392 * i386-darwin-tdep.h: Rename include guard.
14393 * hppa-linux-offsets.h: Add include guard.
14394 * guile/guile.h: Rename include guard.
14395 * guile/guile-internal.h: Rename include guard.
14396 * gnu-nat.h: Rename include guard.
14397 * gdb-stabs.h: Rename include guard.
14398 * frv-tdep.h: Add include guard.
14399 * f-lang.h: Add include guard.
14400 * event-loop.h: Add include guard.
14401 * darwin-nat.h: Rename include guard.
14402 * cp-abi.h: Rename include guard.
14403 * config/sparc/nm-sol2.h: Rename include guard.
14404 * config/nm-nto.h: Rename include guard.
14405 * config/nm-linux.h: Add include guard.
14406 * config/i386/nm-i386gnu.h: Rename include guard.
14407 * config/djgpp/nl_types.h: Rename include guard.
14408 * config/djgpp/langinfo.h: Rename include guard.
14409 * compile/gcc-cp-plugin.h: Add include guard.
14410 * compile/gcc-c-plugin.h: Add include guard.
14411 * compile/compile.h: Rename include guard.
14412 * compile/compile-object-run.h: Rename include guard.
14413 * compile/compile-object-load.h: Rename include guard.
14414 * compile/compile-internal.h: Rename include guard.
14415 * compile/compile-cplus.h: Rename include guard.
14416 * compile/compile-c.h: Rename include guard.
14417 * common/xml-utils.h: Rename include guard.
14418 * common/x86-xstate.h: Rename include guard.
14419 * common/version.h: Rename include guard.
14420 * common/vec.h: Rename include guard.
14421 * common/tdesc.h: Rename include guard.
14422 * common/selftest.h: Rename include guard.
14423 * common/scoped_restore.h: Rename include guard.
14424 * common/scoped_mmap.h: Rename include guard.
14425 * common/scoped_fd.h: Rename include guard.
14426 * common/safe-iterator.h: Rename include guard.
14427 * common/run-time-clock.h: Rename include guard.
14428 * common/refcounted-object.h: Rename include guard.
14429 * common/queue.h: Rename include guard.
14430 * common/ptid.h: Rename include guard.
14431 * common/print-utils.h: Rename include guard.
14432 * common/preprocessor.h: Rename include guard.
14433 * common/pathstuff.h: Rename include guard.
14434 * common/observable.h: Rename include guard.
14435 * common/netstuff.h: Rename include guard.
14436 * common/job-control.h: Rename include guard.
14437 * common/host-defs.h: Rename include guard.
14438 * common/gdb_wait.h: Rename include guard.
14439 * common/gdb_vecs.h: Rename include guard.
14440 * common/gdb_unlinker.h: Rename include guard.
14441 * common/gdb_unique_ptr.h: Rename include guard.
14442 * common/gdb_tilde_expand.h: Rename include guard.
14443 * common/gdb_sys_time.h: Rename include guard.
14444 * common/gdb_string_view.h: Rename include guard.
14445 * common/gdb_splay_tree.h: Rename include guard.
14446 * common/gdb_setjmp.h: Rename include guard.
14447 * common/gdb_ref_ptr.h: Rename include guard.
14448 * common/gdb_optional.h: Rename include guard.
14449 * common/gdb_locale.h: Rename include guard.
14450 * common/gdb_assert.h: Rename include guard.
14451 * common/filtered-iterator.h: Rename include guard.
14452 * common/filestuff.h: Rename include guard.
14453 * common/fileio.h: Rename include guard.
14454 * common/environ.h: Rename include guard.
14455 * common/common-utils.h: Rename include guard.
14456 * common/common-types.h: Rename include guard.
14457 * common/common-regcache.h: Rename include guard.
14458 * common/common-inferior.h: Rename include guard.
14459 * common/common-gdbthread.h: Rename include guard.
14460 * common/common-exceptions.h: Rename include guard.
14461 * common/common-defs.h: Rename include guard.
14462 * common/common-debug.h: Rename include guard.
14463 * common/cleanups.h: Rename include guard.
14464 * common/buffer.h: Rename include guard.
14465 * common/btrace-common.h: Rename include guard.
14466 * common/break-common.h: Rename include guard.
14467 * cli/cli-utils.h: Rename include guard.
14468 * cli/cli-style.h: Rename include guard.
14469 * cli/cli-setshow.h: Rename include guard.
14470 * cli/cli-script.h: Rename include guard.
14471 * cli/cli-interp.h: Rename include guard.
14472 * cli/cli-decode.h: Rename include guard.
14473 * cli/cli-cmds.h: Rename include guard.
14474 * charset-list.h: Add include guard.
14475 * buildsym-legacy.h: Rename include guard.
14476 * bfin-tdep.h: Add include guard.
14477 * ax.h: Rename include guard.
14478 * arm-linux-tdep.h: Add include guard.
14479 * arm-fbsd-tdep.h: Add include guard.
14480 * arch/xtensa.h: Rename include guard.
14481 * arch/tic6x.h: Add include guard.
14482 * arch/i386.h: Add include guard.
14483 * arch/arm.h: Rename include guard.
14484 * arch/arm-linux.h: Rename include guard.
14485 * arch/arm-get-next-pcs.h: Rename include guard.
14486 * arch/amd64.h: Add include guard.
14487 * arch/aarch64-insn.h: Rename include guard.
14488 * arch-utils.h: Rename include guard.
14489 * annotate.h: Add include guard.
14490 * amd64-darwin-tdep.h: Rename include guard.
14491 * aarch64-linux-tdep.h: Add include guard.
14492 * aarch64-fbsd-tdep.h: Add include guard.
14493 * aarch32-linux-nat.h: Add include guard.
14494
14495 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14496
14497 * macrotab.c (macro_define_internal): New function that
14498 factorizes macro_define_object_internal and macro_define_function
14499 code.
14500 (macro_define_object_internal): Use macro_define_internal.
14501 (macro_define_function): Likewise.
14502
14503 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14504
14505 * macrocmd.c (extract_identifier): Return
14506 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14507 callers.
14508
14509 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14510
14511 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14512
14513 2019-02-05 Tom Tromey <tom@tromey.com>
14514
14515 * target.c (target_stack::unpush): Move assertion earlier.
14516
14517 2019-01-30 Tom Tromey <tom@tromey.com>
14518
14519 PR python/23615:
14520 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14521 (gdbpy_parse_and_eval): Likewise.
14522 * python/python-internal.h (gdbpy_allow_threads): New class.
14523
14524 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14525
14526 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14527 (aarch64_fbsd_fpregmap): Move earlier.
14528 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14529 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14530 instead of individual calls to trad_frame_set_reg_addr.
14531 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14532 earlier.
14533 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14534 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14535 instead of individual calls to trad_frame_set_reg_addr.
14536
14537 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14538
14539 * CONTRIBUTE: Replace contribution list with wiki link.
14540
14541 2019-01-25 Tom Tromey <tom@tromey.com>
14542
14543 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14544
14545 2019-01-25 Tom Tromey <tom@tromey.com>
14546
14547 * xtensa-linux-nat.c: Fix common/ includes.
14548 * xml-support.h: Fix common/ includes.
14549 * xml-support.c: Fix common/ includes.
14550 * x86-linux-nat.c: Fix common/ includes.
14551 * windows-nat.c: Fix common/ includes.
14552 * varobj.h: Fix common/ includes.
14553 * varobj.c: Fix common/ includes.
14554 * value.c: Fix common/ includes.
14555 * valops.c: Fix common/ includes.
14556 * utils.c: Fix common/ includes.
14557 * unittests/xml-utils-selftests.c: Fix common/ includes.
14558 * unittests/utils-selftests.c: Fix common/ includes.
14559 * unittests/unpack-selftests.c: Fix common/ includes.
14560 * unittests/tracepoint-selftests.c: Fix common/ includes.
14561 * unittests/style-selftests.c: Fix common/ includes.
14562 * unittests/string_view-selftests.c: Fix common/ includes.
14563 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14564 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14565 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14566 * unittests/rsp-low-selftests.c: Fix common/ includes.
14567 * unittests/parse-connection-spec-selftests.c: Fix common/
14568 includes.
14569 * unittests/optional-selftests.c: Fix common/ includes.
14570 * unittests/offset-type-selftests.c: Fix common/ includes.
14571 * unittests/observable-selftests.c: Fix common/ includes.
14572 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14573 * unittests/memrange-selftests.c: Fix common/ includes.
14574 * unittests/memory-map-selftests.c: Fix common/ includes.
14575 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14576 * unittests/function-view-selftests.c: Fix common/ includes.
14577 * unittests/environ-selftests.c: Fix common/ includes.
14578 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14579 * unittests/common-utils-selftests.c: Fix common/ includes.
14580 * unittests/cli-utils-selftests.c: Fix common/ includes.
14581 * unittests/array-view-selftests.c: Fix common/ includes.
14582 * ui-file.c: Fix common/ includes.
14583 * tui/tui-io.c: Fix common/ includes.
14584 * tracepoint.h: Fix common/ includes.
14585 * tracepoint.c: Fix common/ includes.
14586 * tracefile-tfile.c: Fix common/ includes.
14587 * top.h: Fix common/ includes.
14588 * top.c: Fix common/ includes.
14589 * thread.c: Fix common/ includes.
14590 * target/waitstatus.h: Fix common/ includes.
14591 * target/waitstatus.c: Fix common/ includes.
14592 * target.h: Fix common/ includes.
14593 * target.c: Fix common/ includes.
14594 * target-memory.c: Fix common/ includes.
14595 * target-descriptions.c: Fix common/ includes.
14596 * symtab.h: Fix common/ includes.
14597 * symfile.c: Fix common/ includes.
14598 * stap-probe.c: Fix common/ includes.
14599 * spu-linux-nat.c: Fix common/ includes.
14600 * sparc-nat.c: Fix common/ includes.
14601 * source.c: Fix common/ includes.
14602 * solib.c: Fix common/ includes.
14603 * solib-target.c: Fix common/ includes.
14604 * ser-unix.c: Fix common/ includes.
14605 * ser-tcp.c: Fix common/ includes.
14606 * ser-pipe.c: Fix common/ includes.
14607 * ser-base.c: Fix common/ includes.
14608 * selftest-arch.c: Fix common/ includes.
14609 * s12z-tdep.c: Fix common/ includes.
14610 * rust-exp.y: Fix common/ includes.
14611 * rs6000-aix-tdep.c: Fix common/ includes.
14612 * riscv-tdep.c: Fix common/ includes.
14613 * remote.c: Fix common/ includes.
14614 * remote-notif.h: Fix common/ includes.
14615 * remote-fileio.h: Fix common/ includes.
14616 * remote-fileio.c: Fix common/ includes.
14617 * regcache.h: Fix common/ includes.
14618 * regcache.c: Fix common/ includes.
14619 * record-btrace.c: Fix common/ includes.
14620 * python/python.c: Fix common/ includes.
14621 * python/py-type.c: Fix common/ includes.
14622 * python/py-inferior.c: Fix common/ includes.
14623 * progspace.h: Fix common/ includes.
14624 * producer.c: Fix common/ includes.
14625 * procfs.c: Fix common/ includes.
14626 * proc-api.c: Fix common/ includes.
14627 * printcmd.c: Fix common/ includes.
14628 * ppc-linux-nat.c: Fix common/ includes.
14629 * parser-defs.h: Fix common/ includes.
14630 * osdata.c: Fix common/ includes.
14631 * obsd-nat.c: Fix common/ includes.
14632 * nat/x86-linux.c: Fix common/ includes.
14633 * nat/x86-linux-dregs.c: Fix common/ includes.
14634 * nat/x86-dregs.h: Fix common/ includes.
14635 * nat/x86-dregs.c: Fix common/ includes.
14636 * nat/ppc-linux.c: Fix common/ includes.
14637 * nat/mips-linux-watch.h: Fix common/ includes.
14638 * nat/mips-linux-watch.c: Fix common/ includes.
14639 * nat/linux-waitpid.c: Fix common/ includes.
14640 * nat/linux-ptrace.h: Fix common/ includes.
14641 * nat/linux-ptrace.c: Fix common/ includes.
14642 * nat/linux-procfs.c: Fix common/ includes.
14643 * nat/linux-personality.c: Fix common/ includes.
14644 * nat/linux-osdata.c: Fix common/ includes.
14645 * nat/linux-namespaces.c: Fix common/ includes.
14646 * nat/linux-btrace.h: Fix common/ includes.
14647 * nat/linux-btrace.c: Fix common/ includes.
14648 * nat/fork-inferior.c: Fix common/ includes.
14649 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14650 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14651 * nat/aarch64-linux.c: Fix common/ includes.
14652 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14653 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14654 * namespace.h: Fix common/ includes.
14655 * mips-linux-tdep.c: Fix common/ includes.
14656 * minsyms.c: Fix common/ includes.
14657 * mi/mi-parse.h: Fix common/ includes.
14658 * mi/mi-main.c: Fix common/ includes.
14659 * mi/mi-cmd-env.c: Fix common/ includes.
14660 * memrange.h: Fix common/ includes.
14661 * memattr.c: Fix common/ includes.
14662 * maint.h: Fix common/ includes.
14663 * maint.c: Fix common/ includes.
14664 * main.c: Fix common/ includes.
14665 * machoread.c: Fix common/ includes.
14666 * location.c: Fix common/ includes.
14667 * linux-thread-db.c: Fix common/ includes.
14668 * linux-nat.c: Fix common/ includes.
14669 * linux-fork.c: Fix common/ includes.
14670 * inline-frame.c: Fix common/ includes.
14671 * infrun.c: Fix common/ includes.
14672 * inflow.c: Fix common/ includes.
14673 * inferior.h: Fix common/ includes.
14674 * inferior.c: Fix common/ includes.
14675 * infcmd.c: Fix common/ includes.
14676 * inf-ptrace.c: Fix common/ includes.
14677 * inf-child.c: Fix common/ includes.
14678 * ia64-linux-nat.c: Fix common/ includes.
14679 * i387-tdep.c: Fix common/ includes.
14680 * i386-tdep.c: Fix common/ includes.
14681 * i386-linux-tdep.c: Fix common/ includes.
14682 * i386-linux-nat.c: Fix common/ includes.
14683 * i386-go32-tdep.c: Fix common/ includes.
14684 * i386-fbsd-tdep.c: Fix common/ includes.
14685 * i386-fbsd-nat.c: Fix common/ includes.
14686 * guile/scm-type.c: Fix common/ includes.
14687 * guile/guile.c: Fix common/ includes.
14688 * go32-nat.c: Fix common/ includes.
14689 * gnu-nat.c: Fix common/ includes.
14690 * gdbthread.h: Fix common/ includes.
14691 * gdbarch-selftests.c: Fix common/ includes.
14692 * gdb_usleep.c: Fix common/ includes.
14693 * gdb_select.h: Fix common/ includes.
14694 * gdb_bfd.c: Fix common/ includes.
14695 * gcore.c: Fix common/ includes.
14696 * fork-child.c: Fix common/ includes.
14697 * findvar.c: Fix common/ includes.
14698 * fbsd-nat.c: Fix common/ includes.
14699 * event-top.c: Fix common/ includes.
14700 * event-loop.c: Fix common/ includes.
14701 * dwarf2read.c: Fix common/ includes.
14702 * dwarf2loc.c: Fix common/ includes.
14703 * dwarf2-frame.c: Fix common/ includes.
14704 * dwarf-index-cache.c: Fix common/ includes.
14705 * dtrace-probe.c: Fix common/ includes.
14706 * disasm-selftests.c: Fix common/ includes.
14707 * defs.h: Fix common/ includes.
14708 * csky-tdep.c: Fix common/ includes.
14709 * cp-valprint.c: Fix common/ includes.
14710 * cp-support.h: Fix common/ includes.
14711 * cp-support.c: Fix common/ includes.
14712 * corelow.c: Fix common/ includes.
14713 * completer.h: Fix common/ includes.
14714 * completer.c: Fix common/ includes.
14715 * compile/compile.c: Fix common/ includes.
14716 * compile/compile-loc2c.c: Fix common/ includes.
14717 * compile/compile-cplus-types.c: Fix common/ includes.
14718 * compile/compile-cplus-symbols.c: Fix common/ includes.
14719 * command.h: Fix common/ includes.
14720 * cli/cli-dump.c: Fix common/ includes.
14721 * cli/cli-cmds.c: Fix common/ includes.
14722 * charset.c: Fix common/ includes.
14723 * build-id.c: Fix common/ includes.
14724 * btrace.h: Fix common/ includes.
14725 * btrace.c: Fix common/ includes.
14726 * breakpoint.h: Fix common/ includes.
14727 * breakpoint.c: Fix common/ includes.
14728 * ax.h:
14729 (enum agent_op): Fix common/ includes.
14730 * ax-general.c (struct aop_map): Fix common/ includes.
14731 * ax-gdb.c: Fix common/ includes.
14732 * auxv.c: Fix common/ includes.
14733 * auto-load.c: Fix common/ includes.
14734 * arm-tdep.c: Fix common/ includes.
14735 * arch/riscv.c: Fix common/ includes.
14736 * arch/ppc-linux-common.c: Fix common/ includes.
14737 * arch/i386.c: Fix common/ includes.
14738 * arch/arm.c: Fix common/ includes.
14739 * arch/arm-linux.c: Fix common/ includes.
14740 * arch/arm-get-next-pcs.c: Fix common/ includes.
14741 * arch/amd64.c: Fix common/ includes.
14742 * arch/aarch64.c: Fix common/ includes.
14743 * arch/aarch64-insn.c: Fix common/ includes.
14744 * arch-utils.c: Fix common/ includes.
14745 * amd64-windows-tdep.c: Fix common/ includes.
14746 * amd64-tdep.c: Fix common/ includes.
14747 * amd64-sol2-tdep.c: Fix common/ includes.
14748 * amd64-obsd-tdep.c: Fix common/ includes.
14749 * amd64-nbsd-tdep.c: Fix common/ includes.
14750 * amd64-linux-tdep.c: Fix common/ includes.
14751 * amd64-linux-nat.c: Fix common/ includes.
14752 * amd64-fbsd-tdep.c: Fix common/ includes.
14753 * amd64-fbsd-nat.c: Fix common/ includes.
14754 * amd64-dicos-tdep.c: Fix common/ includes.
14755 * amd64-darwin-tdep.c: Fix common/ includes.
14756 * agent.c: Fix common/ includes.
14757 * ada-lang.h: Fix common/ includes.
14758 * ada-lang.c: Fix common/ includes.
14759 * aarch64-tdep.c: Fix common/ includes.
14760
14761 2019-01-25 Tom Tromey <tom@tromey.com>
14762
14763 * common/create-version.sh: Use common/version.h.
14764
14765 2019-01-24 Pedro Alves <palves@redhat.com>
14766
14767 * infrun.c (signal_stop, signal_print, signal_program)
14768 (signal_catch, signal_pass): Now arrays instead of pointers.
14769 (update_signals_program_target, do_target_resume)
14770 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14771 * linux-nat.c (linux_nat_target::pass_signals)
14772 (linux_nat_target::create_inferior, linux_nat_target::attach):
14773 Adjust.
14774 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14775 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14776 * procfs.c (procfs_target::pass_signals): Adjust.
14777 * record-full.c (record_full_target::resume): Adjust.
14778 * remote.c (remote_target::pass_signals)
14779 (remote_target::program_signals): Adjust.
14780 * target-debug.h (target_debug_print_signals): Now takes a
14781 gdb::array_view as parameter. Adjust.
14782 * target.h (target_ops) <pass_signals, program_signals>: Replace
14783 pointer and length parameters with gdb::array_view.
14784 (target_pass_signals, target_program_signals): Likewise.
14785 * target-delegates.c: Regenerate.
14786
14787 2019-01-24 Pedro Alves <palves@redhat.com>
14788
14789 * common/forward-scope-exit.h
14790 (forward_scope_exit::forward_scope_exit): Pass arguments to
14791 m_bind_function directly, instead of creating a std::bind and
14792 copying that.
14793
14794 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14795
14796 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14797 for static members.
14798 (pass_in_v_vfp_candidate): Likewise.
14799
14800 2019-01-23 Tom Tromey <tom@tromey.com>
14801 Pedro Alves <palves@redhat.com>
14802
14803 * regcache.c (class regcache_invalidator): Remove.
14804 (regcache::raw_write): Use make_scope_exit.
14805
14806 2019-01-23 Tom Tromey <tom@tromey.com>
14807
14808 * ui-out.h (class ui_out_emit_type): Update comment.
14809
14810 2019-01-23 Tom Tromey <tom@tromey.com>
14811
14812 * infrun.c (fetch_inferior_event): Update comment.
14813
14814 2019-01-23 Tom Tromey <tom@tromey.com>
14815 Pedro Alves <palves@redhat.com>
14816
14817 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14818 parameter.
14819 (fetch_inferior_event): Use SCOPE_EXIT.
14820
14821
14822 2019-01-23 Tom Tromey <tom@tromey.com>
14823 Pedro Alves <palves@redhat.com>
14824
14825 * infrun.c (disable_thread_events): Delete.
14826 (stop_all_threads): Use SCOPE_EXIT.
14827
14828 2019-01-23 Tom Tromey <tom@tromey.com>
14829 Pedro Alves <palves@redhat.com>
14830
14831 * symfile.c: Include forward-scope-exit.h.
14832 (clear_symtab_users_cleanup): Replace forward declaration with
14833 a FORWARD_SCOPE_EXIT.
14834 (syms_from_objfile_1): Use the forward_scope_exit and
14835 gdb::optional instead of cleanup_function.
14836 (reread_symbols): Use the forward_scope_exit instead of
14837 cleanup_function.
14838 (clear_symtab_users_cleanup): Remove function.
14839
14840 2019-01-23 Tom Tromey <tom@tromey.com>
14841 Pedro Alves <palves@redhat.com>
14842
14843 * linux-nat.c: Include scope-exit.h.
14844 (cleanup_target_stop): Remove.
14845 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14846 SCOPE_EXIT.
14847
14848 2019-01-23 Tom Tromey <tom@tromey.com>
14849 Pedro Alves <palves@redhat.com>
14850
14851 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14852 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14853
14854 2019-01-23 Tom Tromey <tom@tromey.com>
14855 Andrew Burgess <andrew.burgess@embecosm.com>
14856 Pedro Alves <palves@redhat.com>
14857
14858 * infrun.c (fetch_inferior_event): Use scope_exit.
14859 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14860 * top.c (execute_command): Use scope_exit.
14861 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14862 * utils.c (do_bpstat_clear_actions_cleanup)
14863 (make_bpstat_clear_actions_cleanup): Remove.
14864
14865 2019-01-23 Tom Tromey <tom@tromey.com>
14866 Pedro Alves <palves@redhat.com>
14867
14868 * infrun.c: Include "common/scope-exit.h"
14869 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14870 (wait_for_inferior): Use SCOPE_EXIT.
14871 (fetch_inferior_event): Use scope_exit.
14872
14873 2019-01-23 Tom Tromey <tom@tromey.com>
14874 Pedro Alves <palves@redhat.com>
14875
14876 * breakpoint.c (create_breakpoint): Remove cleanup.
14877
14878 2019-01-23 Tom Tromey <tom@tromey.com>
14879 Andrew Burgess <andrew.burgess@embecosm.com>
14880 Pedro Alves <palves@redhat.com>
14881
14882 2019-01-23 Pedro Alves <palves@redhat.com>
14883
14884 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14885
14886 2019-01-23 Pedro Alves <palves@redhat.com>
14887 Andrew Burgess <andrew.burgess@embecosm.com>
14888
14889 * gdbthread.h: Include "common/forward-scope-exit.h".
14890 (scoped_finish_thread_state): Redefine custom class in terms of
14891 forward_scope_exit.
14892
14893 2019-01-23 Pedro Alves <palves@redhat.com>
14894 Andrew Burgess <andrew.burgess@embecosm.com>
14895
14896 * common/forward-scope-exit.h: New file.
14897
14898 2019-01-23 Pedro Alves <palves@redhat.com>
14899 Andrew Burgess <andrew.burgess@embecosm.com>
14900 Tom Tromey <tom@tromey.com>
14901
14902 * common/scope-exit.h: New file.
14903
14904 2019-01-23 Pedro Alves <palves@redhat.com>
14905
14906 * common/preprocessor.h (ESC): Rename to ...
14907 (ESC_PARENS): ... this.
14908 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14909 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14910
14911 2019-01-23 Tom Tromey <tom@tromey.com>
14912
14913 * language.h (class scoped_switch_to_sym_language_if_auto):
14914 Initialize m_lang in both cases.
14915
14916 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14917
14918 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14919 with XCNEW.
14920
14921 2019-01-22 Tom Tromey <tom@tromey.com>
14922
14923 * corelow.c: Do not include sys/file.h.
14924
14925 2019-01-22 Tom Tromey <tom@tromey.com>
14926
14927 * tui/tui-wingeneral.h: Include gdb_curses.h.
14928
14929 2019-01-22 Tom Tromey <tom@tromey.com>
14930
14931 * source-cache.h (class source_cache) <get_source_lines,
14932 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14933
14934 2019-01-22 Tom Tromey <tom@tromey.com>
14935
14936 * remote-fileio.h (struct remote_target): Declare.
14937
14938 2019-01-22 Tom Tromey <tom@tromey.com>
14939
14940 * python/py-arch.c: Do not include py-ref.h.
14941 * python/py-bpevent.c: Do not include py-ref.h.
14942 * python/py-cmd.c: Do not include py-ref.h.
14943 * python/py-continueevent.c: Do not include py-ref.h.
14944 * python/py-event.h: Do not include py-ref.h.
14945 * python/py-evtregistry.c: Do not include py-ref.h.
14946 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14947 * python/py-frame.c: Do not include py-ref.h.
14948 * python/py-framefilter.c: Do not include py-ref.h.
14949 * python/py-function.c: Do not include py-ref.h.
14950 * python/py-infevents.c: Do not include py-ref.h.
14951 * python/py-linetable.c: Do not include py-ref.h.
14952 * python/py-objfile.c: Do not include py-ref.h.
14953 * python/py-param.c: Do not include py-ref.h.
14954 * python/py-prettyprint.c: Do not include py-ref.h.
14955 * python/py-progspace.c: Do not include py-ref.h.
14956 * python/py-symbol.c: Do not include py-ref.h.
14957 * python/py-symtab.c: Do not include py-ref.h.
14958 * python/py-type.c: Do not include py-ref.h.
14959 * python/py-unwind.c: Do not include py-ref.h.
14960 * python/py-utils.c: Do not include py-ref.h.
14961 * python/py-value.c: Do not include py-ref.h.
14962 * python/py-varobj.c: Do not include py-ref.h.
14963 * python/py-xmethods.c: Do not include py-ref.h.
14964 * python/python.c: Do not include py-ref.h.
14965 * varobj.c: Do not include py-ref.h.
14966
14967 2019-01-22 Tom Tromey <tom@tromey.com>
14968
14969 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14970 keyword for bcache.
14971
14972 2019-01-22 Tom Tromey <tom@tromey.com>
14973
14974 * compile/compile-cplus-types.c: Remove a comment by #include.
14975
14976 2019-01-22 Tom Tromey <tom@tromey.com>
14977
14978 * compile/gcc-c-plugin.h: Include compile-internal.h.
14979
14980 2019-01-22 Tom Tromey <tom@tromey.com>
14981
14982 * stabsread.c (EXTERN): Do not define.
14983 (symnum, next_symbol_text_func, processing_gcc_compilation)
14984 (within_function, global_sym_chain, global_stabs)
14985 (previous_stab_code, this_object_header_files)
14986 (n_this_object_header_files)
14987 (n_allocated_this_object_header_files): Define.
14988 * stabsread.h (EXTERN): Never define. Use "extern".
14989
14990 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14991
14992 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14993 history_value.
14994
14995 2019-01-21 Tom Tromey <tom@tromey.com>
14996
14997 * ui-out.c: Fix includes.
14998 * tui/tui-source.c: Fix includes.
14999 * target.c: Fix includes.
15000 * remote.c: Fix includes.
15001 * regcache.c: Fix includes.
15002 * python/py-block.c: Fix includes.
15003 * printcmd.c: Fix includes.
15004 * or1k-tdep.c: Fix includes.
15005 * mi/mi-main.c: Fix includes.
15006 * m32r-tdep.c: Fix includes.
15007 * csky-tdep.c: Fix includes.
15008 * compile/compile-cplus-types.c: Fix includes.
15009 * cli/cli-interp.c: Fix includes.
15010
15011 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15012
15013 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15014 for padding.
15015
15016 2019-01-16 Tom Tromey <tom@tromey.com>
15017
15018 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15019 earlier.
15020 (struct objfile) <msymbols_range>: Move from top level.
15021 <msymbols>: New method.
15022 (class objfile_msymbols): Remove.
15023 * symtab.c (default_collect_symbol_completion_matches_break_on):
15024 Update.
15025 * symmisc.c (dump_msymbols): Update.
15026 * stabsread.c (scan_file_globals): Update.
15027 * objc-lang.c (info_selectors_command, info_classes_command)
15028 (find_methods): Update.
15029 * minsyms.c (find_solib_trampoline_target): Update.
15030 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15031 * coffread.c (coff_symfile_read): Update.
15032 * ada-lang.c (ada_lookup_simple_minsym)
15033 (ada_collect_symbol_completion_matches): Update.
15034
15035 2019-01-16 Tom Tromey <tom@tromey.com>
15036
15037 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15038 type. Remove no-argument constructor.
15039 <iterator::operator++>: Simplify.
15040 <begin>: Update.
15041 <end>: Use minimal_symbol_count.
15042
15043 2019-01-16 Tom Tromey <tom@tromey.com>
15044
15045 * objfiles.h (struct objfile) <psymtabs>: New method.
15046 (class objfile_psymtabs): Remove.
15047 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15048 typedef.
15049 <range>: New method.
15050 (require_partial_symbols): Change return type.
15051 * psymtab.c (require_partial_symbols)
15052 (psym_expand_symtabs_matching): Update.
15053 * mdebugread.c (parse_partial_symbols): Update.
15054 * dbxread.c (dbx_end_psymtab): Update.
15055
15056 2019-01-15 Tom Tromey <tom@tromey.com>
15057
15058 * symtab.c (lookup_objfile_from_block)
15059 (lookup_symbol_in_objfile_symtabs)
15060 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15061 (find_line_symtab, info_sources_command)
15062 (default_collect_symbol_completion_matches_break_on)
15063 (make_source_files_completion_list): Update.
15064 * symmisc.c (print_objfile_statistics, dump_objfile)
15065 (maintenance_print_symbols, maintenance_info_symtabs)
15066 (maintenance_check_symtabs, maintenance_info_line_tables):
15067 Update.
15068 * source.c (select_source_symtab)
15069 (forget_cached_source_info_for_objfile): Update.
15070 * objfiles.h (class objfile_compunits): Remove.
15071 (struct objfile) <compunits_range>: New typedef.
15072 (compunits): New method.
15073 * objfiles.c (objfile_relocate1): Update.
15074 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15075 * maint.c (count_symtabs_and_blocks): Update.
15076 * linespec.c (iterate_over_all_matching_symtabs): Update.
15077 * cp-support.c (add_symbol_overload_list_qualified): Update.
15078 * coffread.c (coff_symtab_read): Update.
15079 * ada-lang.c (add_nonlocal_symbols)
15080 (ada_collect_symbol_completion_matches)
15081 (ada_add_global_exceptions): Update.
15082
15083 2019-01-15 Tom Tromey <tom@tromey.com>
15084
15085 * progspace.h (program_space) <objfiles_safe_range>: New
15086 typedef.
15087 <objfiles_safe>: New method.
15088 * objfiles.h (class all_objfiles_safe): Remove.
15089 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15090 * jit.c (jit_inferior_exit_hook): Update.
15091
15092 2019-01-17 Tom Tromey <tom@tromey.com>
15093
15094 * progspace.h (program_space) <objfiles_range>: New typedef.
15095 <objfiles>: New method.
15096 <objfiles_head>: Rename from objfiles.
15097 (object_files): Update.
15098 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15099 * guile/scm-pretty-print.c
15100 (ppscm_find_pretty_printer_from_objfiles): Update.
15101 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15102 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15103 Update.
15104 * python/py-progspace.c (pspy_get_objfiles): Update.
15105 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15106 Update.
15107 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15108 (objfpy_lookup_objfile_by_build_id): Update.
15109 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15110 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15111 Update.
15112 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15113 (expand_symtab_containing_pc, lookup_objfile_from_block)
15114 (lookup_static_symbol, basic_lookup_transparent_type)
15115 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15116 (find_line_symtab, info_sources_command)
15117 (default_collect_symbol_completion_matches_break_on)
15118 (make_source_files_completion_list, find_main_name): Update.
15119 * symmisc.c (print_symbol_bcache_statistics)
15120 (print_objfile_statistics, maintenance_print_symbols)
15121 (maintenance_print_msymbols, maintenance_print_objfiles)
15122 (maintenance_info_symtabs, maintenance_check_symtabs)
15123 (maintenance_expand_symtabs, maintenance_info_line_tables):
15124 Update.
15125 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15126 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15127 (map_overlay_command, unmap_overlay_command)
15128 (simple_overlay_update, expand_symtabs_matching)
15129 (map_symbol_filenames): Update.
15130 * symfile-debug.c (set_debug_symfile): Update.
15131 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15132 Update.
15133 * source.c (select_source_symtab, forget_cached_source_info):
15134 Update.
15135 * solib.c (solib_read_symbols): Update.
15136 * solib-spu.c (append_ocl_sos): Update.
15137 * psymtab.c (maintenance_print_psymbols)
15138 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15139 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15140 * printcmd.c (info_symbol_command): Update.
15141 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15142 Update.
15143 * objfiles.h (class all_objfiles): Remove.
15144 * objfiles.c (have_partial_symbols, have_full_symbols)
15145 (have_minimal_symbols, qsort_cmp, update_section_map)
15146 (shared_objfile_contains_address_p)
15147 (default_iterate_over_objfiles_in_search_order): Update.
15148 * objc-lang.c (info_selectors_command, info_classes_command)
15149 (find_methods): Update.
15150 * minsyms.c (find_solib_trampoline_target): Update.
15151 * maint.c (maintenance_info_sections)
15152 (maintenance_translate_address, count_symtabs_and_blocks):
15153 Update.
15154 * main.c (captured_main_1): Update.
15155 * linux-thread-db.c (try_thread_db_load_from_pdir)
15156 (has_libpthread): Update.
15157 * linespec.c (iterate_over_all_matching_symtabs)
15158 (search_minsyms_for_name): Update.
15159 * jit.c (jit_find_objf_with_entry_addr): Update.
15160 * hppa-tdep.c (find_unwind_entry)
15161 (hppa_lookup_stub_minimal_symbol): Update.
15162 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15163 Update.
15164 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15165 (elf_gnu_ifunc_resolve_by_got): Update.
15166 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15167 * dwarf-index-write.c (save_gdb_index_command): Update.
15168 * cp-support.c (add_symbol_overload_list_qualified): Update.
15169 * breakpoint.c (create_overlay_event_breakpoint)
15170 (create_longjmp_master_breakpoint)
15171 (create_std_terminate_master_breakpoint)
15172 (create_exception_master_breakpoint): Update.
15173 * blockframe.c (find_pc_partial_function): Update.
15174 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15175 (ada_collect_symbol_completion_matches)
15176 (ada_add_global_exceptions): Update.
15177
15178 2019-01-17 Tom Tromey <tom@tromey.com>
15179
15180 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15181 declare VEC.
15182 (solib_target_parse_libraries): Change return type.
15183 (library_list_start_segment, library_list_start_section)
15184 (library_list_end_library, library_list_start_library); Update.
15185 (solib_target_free_library_list): Remove.
15186 (solib_target_parse_libraries): Remove cleanup. Change return
15187 type.
15188 (solib_target_current_sos): Update.
15189
15190 2019-01-17 Tom Tromey <tromey@bapiya>
15191
15192 * valprint.c: Replace "the the" with "the".
15193 * symtab.c: Replace "the the" with "the".
15194 * solib.c: Replace "the the" with "the".
15195 * solib-dsbt.c: Replace "the the" with "the".
15196 * linespec.c: Replace "the the" with "the".
15197 * dwarf2loc.h: Replace "the the" with "the".
15198 * amd64-windows-tdep.c: Replace "the the" with "the".
15199 * aarch64-tdep.c: Replace "the the" with "the".
15200
15201 2019-01-16 Keith Seitz <keiths@redhat.com>
15202
15203 PR gdb/23773
15204 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15205 <builder>: Rename to ..
15206 <m_builder>: ... this and make private.
15207 (dwarf2_cu::get_builder): New method. Change all users of
15208 `builder' to use this method.
15209 (dwarf2_start_symtab): Move to ...
15210 (dwarf2_cu::start_symtab): ... here. Update all callers
15211 (setup_type_unit_groups): Move to ...
15212 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15213 callers.
15214 (dwarf2_cu::reset_builder): New method.
15215 (process_full_compunit, process_full_type_unit): Use
15216 dwarf2_cu::reset_builder.
15217 (follow_die_offset): Record the ancestor CU if it is different
15218 from the followed DIE's CU.
15219 (follow_die_sig_1): Likewise.
15220
15221 2019-01-15 Tom Tromey <tom@tromey.com>
15222
15223 * remote.c (class remote_state) <buf>: Now a char_vector.
15224 <buf_size>: Remove.
15225 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15226 parameter.
15227 (remote_target::getpkt_or_notif_sane_1)
15228 (remote_target::getpkt_sane)
15229 (remote_target::getpkt_or_notif_sane): Likewise.
15230 (class remote_target) <putpkt>: New overload.
15231 (remote_target::read_frame): Change type of "buf_p". Remove
15232 sizeof_p parameter.
15233 (packet_ok): New overload.
15234 (packet_check_result): New overload.
15235 Update all uses.
15236
15237 2019-01-14 Tom Tromey <tom@tromey.com>
15238
15239 * remote-notif.c (handle_notification, remote_notif_ack)
15240 (remote_notif_parse): Make "buf" const.
15241 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15242 const.
15243 (remote_notif_parse, remote_notif_ack, handle_notification):
15244 Likewise.
15245 * remote.c (remote_notif_stop_parse): Make "buf" const.
15246 (remote_target::remote_parse_stop_reply): Make "buf" const.
15247 (remote_notif_stop_ack): Make "buf" const.
15248
15249 2019-01-14 Tom Tromey <tom@tromey.com>
15250
15251 * remote.c (remote_console_output): Make parameter const.
15252
15253 2019-01-14 Tom Tromey <tom@tromey.com>
15254
15255 * target-debug.h (target_debug_print_signals): Constify.
15256 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15257 * procfs.c (procfs_target::pass_signals): Update.
15258 * linux-nat.c (linux_nat_target::pass_signals): Update.
15259 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15260 * target-delegates.c: Rebuild.
15261 * remote.c (remote_target::program_signals): Update.
15262 (remote_target::pass_signals): Update.
15263 * target.c (target_pass_signals): Constify argument.
15264 (target_program_signals): Likewise.
15265 * target.h (struct target_ops) <pass_signals, program_signals>:
15266 Constify argument.
15267 (target_pass_signals, target_program_signals): Constify argument.
15268
15269 2019-01-14 Tom Tromey <tom@tromey.com>
15270
15271 PR tui/28819:
15272 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15273
15274 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15275
15276 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15277 field.
15278 * rs6000-tdep.c: Include reggroups.h.
15279 (IS_V_ALIAS_PSEUDOREG): Define.
15280 (rs6000_register_name): Return names for the "vX" aliases.
15281 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15282 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15283 aliases. Call default_register_reggroup_p for all other
15284 pseudo-registers.
15285 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15286 New functions.
15287 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15288 Handle "vX" aliases.
15289 (v_alias_pseudo_register_collect): New function.
15290 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15291 (rs6000_gdbarch_init): Initialize "vX" aliases as
15292 pseudo-registers. Restore registration of
15293 rs6000_pseudo_register_reggroup_p with
15294 set_tdesc_pseudo_register_reggroup_p.
15295
15296 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15297
15298 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15299 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15300 set_gdbarch_num_pseudo_regs.
15301
15302 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15303
15304 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15305 Remove arg prefixname, add do_set and do_show.
15306 Add member functions set_list and show_list.
15307 * cli/cli-style.c (class cli_style_option): Update accordingly.
15308 (style_set_list): Move to file scope.
15309 (style_show_list): Likewise.
15310 (set_style): Call help_list.
15311 (show_style): Call cmd_show_list.
15312 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15313 Update to use the new macro.
15314
15315 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15316
15317 * ada-lang.c (_initialize_ada_language): Expand the help text
15318 for the "catch exception" command.
15319
15320 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15321
15322 * symtab.c (matching_obj_sections): Initialize obj,
15323 declare it closer to its usage.
15324
15325 2019-01-10 Tom Tromey <tom@tromey.com>
15326
15327 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15328 (basic_inf_threads_range): Remove.
15329 (inf_threads_range, inf_non_exited_threads_range)
15330 (safe_inf_threads_range): Use next_adapter.
15331
15332 2019-01-10 Keith Seitz <keiths@redhat.com>
15333
15334 PR gdb/23712
15335 PR symtab/23010
15336 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15337 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15338
15339 2019-01-10 Keith Seitz <keiths@redhat.com>
15340
15341 PR gdb/23712
15342 PR symtab/23010
15343 * dictionary.c (pending_to_vector): Remove.
15344 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15345 Remove _1 suffix, replacing functions of the same name. Update
15346 all callers.
15347 (dict_create_hashed, dict_create_hashed_expandable)
15348 (dict_create_linear, dict_create_linear_expandable, dict_free)
15349 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15350 Make functions static.
15351
15352 2019-01-10 Keith Seitz <keiths@redhat.com>
15353
15354 PR gdb/23712
15355 PR symtab/23010
15356 * dictionary.h (struct dictionary): Replace declaration with
15357 multidictionary.
15358 (dict_create_hashed, dict_create_hashed_expandable)
15359 (dict_create_linear, dict_create_linear_expandable)
15360 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15361 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15362 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15363 taking multidictionary argument.
15364 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15365 * block.h (struct block) <dict>: Change to multidictionary
15366 and rename `multidict'.
15367 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15368 symmisc.c: Update all dictionary references to multidictionary.
15369
15370 2019-01-10 Keith Seitz <keiths@redhat.com>
15371
15372 PR gdb/23712
15373 PR symtab/23010
15374 * dictionary.c: Include unordered_map.
15375 (pending_to_vector): New function.
15376 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15377 Rewrite the non-"_1" functions to take vector instead
15378 of linked list.
15379 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15380 "new" _1 versions of the same name.
15381 (multidictionary): Define.
15382 (std::hash<enum language): New definition.
15383 (collate_pending_symbols_by_language, mdict_create_hashed)
15384 (mdict_create_hashed_expandable, mdict_create_linear)
15385 (mdict_create_linear_expandable, mdict_free)
15386 (find_language_dictionary, create_new_language_dictionary)
15387 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15388 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15389 (mdict_size, mdict_empty): New functions.
15390 * dictionary.h (mdict_iterator): Define.
15391
15392 2019-01-10 Pedro Alves <palves@redhat.com>
15393
15394 * breakpoint.c (read_uploaded_action)
15395 (create_tracepoint_from_upload): Adjust to use
15396 gdb::unique_xmalloc_ptr.
15397 * ctf.c (ctf_write_uploaded_tp):
15398 (SET_ARRAY_FIELD): Use emplace_back.
15399 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15400 * tracefile-tfile.c (tfile_write_uploaded_tp):
15401 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15402 gdb::unique_xmalloc_ptr.
15403 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15404 at_string, cond_string, cmd_strings>: Replace char pointers
15405 with gdb::unique_xmalloc_ptr.
15406
15407 2019-01-10 Pedro Alves <palves@redhat.com>
15408
15409 * solib-target.c (library_list_start_library): Don't xstrdup name.
15410
15411 2019-01-10 Pedro Alves <palves@redhat.com>
15412
15413 * mdebugread.c (parse_partial_symbols): Use
15414 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15415
15416 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15417
15418 * linux-fork.c (scoped_switch_fork_info)
15419 <~scoped_switch_fork_info>: Fix incorrect variable name.
15420
15421 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15422
15423 * linux-fork.c (scoped_switch_fork_info)
15424 <scoped_switch_fork_info>: Make explicit.
15425 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15426
15427 2019-01-10 Tom Tromey <tom@tromey.com>
15428
15429 * objfiles.h (objfile::reset_psymtabs): Update.
15430 * objfiles.c (objfile::objfile): Update.
15431 * psymtab.h (psymtab_storage::obstack): Update.
15432 (psymtab_storage::m_obstack): Use gdb::optional.
15433 (class psymtab_storage): Update comment. Remove objfile
15434 parameter.
15435 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15436
15437 2019-01-10 Tom Tromey <tom@tromey.com>
15438
15439 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15440 <free_psymtabs>: Now private.
15441 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15442 (allocate_psymtab): Use new method.
15443
15444 2019-01-10 Tom Tromey <tom@tromey.com>
15445
15446 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15447 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15448 * mdebugread.c (parse_partial_symbols): Use
15449 allocate_dependencies.
15450 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15451 allocate_dependencies.
15452 (process_psymtab_comp_unit_reader)
15453 (build_type_psymtab_dependencies): Likewise.
15454 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15455
15456 2019-01-10 Tom Tromey <tom@tromey.com>
15457
15458 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15459 PSYMBOL_SET_LANGUAGE.
15460 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15461
15462 2019-01-10 Tom Tromey <tom@tromey.com>
15463
15464 * psymtab.h (psymtab_storage::obstack): New method.
15465 <m_obstack>: Rename from obstack; now private.
15466 * psymtab.c (psymtab_storage): Update.
15467 * dwarf2read.c (create_addrmap_from_index)
15468 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15469 Update.
15470
15471 2019-01-10 Tom Tromey <tom@tromey.com>
15472
15473 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15474 * objfiles.h (objfile::reset_psymtabs): New method.
15475
15476 2019-01-10 Tom Tromey <tom@tromey.com>
15477
15478 * symmisc.c (print_symbol_bcache_statistics): Update.
15479 (print_objfile_statistics): Update.
15480 * symfile.c (reread_symbols): Update.
15481 * psymtab.h (class psymtab_storage): New.
15482 * psymtab.c (psymtab_storage): New constructor.
15483 (~psymtab_storage): New destructor.
15484 (require_partial_symbols): Update.
15485 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15486 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15487 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15488 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15489 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15490 (start_psymtab_common, end_psymtab_common)
15491 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15492 (allocate_psymtab): Update.
15493 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15494 Update.
15495 (dump_psymtab_addrmap, maintenance_print_psymbols)
15496 (maintenance_check_psymtabs): Update.
15497 (class objfile_psymtabs): Move to objfiles.h.
15498 * psympriv.h (discard_psymtab): Now inline.
15499 (psymtab_discarder::psymtab_discarder): Update.
15500 (psymtab_discarder::~psymtab_discarder): Update.
15501 (ALL_OBJFILE_PSYMTABS): Rewrite.
15502 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15503 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15504 Remove fields.
15505 <partial_symtabs>: New field.
15506 (class objfile_psymtabs): Move from psymtab.h. Update.
15507 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15508 psymbol_cache.
15509 (objfile::~objfile): Don't destroy psymbol_cache.
15510 * mdebugread.c (parse_partial_symbols): Update.
15511 * dwarf2read.c (create_addrmap_from_index)
15512 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15513 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15514 (add_partial_subprogram, dwarf2_ranges_read): Update.
15515 * dwarf-index-write.c (write_address_map)
15516 (write_one_signatured_type, recursively_write_psymbols)
15517 (class debug_names, class debug_names, write_psymtabs_to_index):
15518 Update.
15519
15520 2019-01-10 Tom Tromey <tom@tromey.com>
15521
15522 * symtab.h (SYMBOL_SET_NAMES): Update.
15523 (symbol_set_names): Update.
15524 (MSYMBOL_SET_NAMES): Update.
15525 * symtab.c (symbol_set_names): Change argument to be an
15526 objfile_per_bfd_storage.
15527 * psymtab.c (add_psymbol_to_bcache): Update.
15528 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15529
15530 2019-01-10 Tom Tromey <tom@tromey.com>
15531
15532 * symtab.c (create_demangled_names_hash): Change argument to be an
15533 objfile_per_bfd_storage.
15534 (symbol_set_names): Update.
15535
15536 2019-01-10 Tom Tromey <tom@tromey.com>
15537
15538 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15539 init_psymbol_list.
15540 * psymtab.c (init_psymbol_list): Do nothing if already called.
15541 * psympriv.h (init_psymbol_list): Add comment.
15542 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15543 init_psymbol_list.
15544 * dbxread.c (dbx_symfile_read): Unconditionally call
15545 init_psymbol_list.
15546
15547 2019-01-10 Tom Tromey <tom@tromey.com>
15548
15549 * xcoffread.c (scan_xcoff_symtab): Update.
15550 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15551 "where".
15552 * mdebugread.c (parse_partial_symbols)
15553 (handle_psymbol_enumerators): Update.
15554 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15555 * dbxread.c (read_dbx_symtab): Update.
15556 * psympriv.h (psymbol_placement): New enum.
15557 (add_psymbol_to_list): Update.
15558
15559 2019-01-10 Tom Tromey <tom@tromey.com>
15560
15561 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15562 static_psymbols parameters.
15563 (scan_xcoff_symtab): Update.
15564 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15565 static_psymbols parameters.
15566 * psympriv.h (start_psymtab_common): Update.
15567 * mdebugread.c (parse_partial_symbols): Update.
15568 * dwarf2read.c (create_partial_symtab): Update.
15569 * dbxread.c (read_dbx_symtab): Update.
15570 (start_psymtab): Remove global_psymbols and static_psymbols
15571 parameters.
15572
15573 2019-01-10 Tom Tromey <tom@tromey.com>
15574
15575 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15576 * psymtab.c (allocate_psymtab): Add comment.
15577 * psympriv.h (allocate_psymtab): Add comment.
15578 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15579 initializations.
15580 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15581
15582 2019-01-10 Tom Tromey <tom@tromey.com>
15583
15584 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15585 Don't declare.
15586 * mipsread.c: Include mdebugread.h.
15587 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15588 Declare.
15589 * elfread.c: Include mdebugread.h.
15590
15591 2019-01-09 Tom Tromey <tom@tromey.com>
15592
15593 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15594 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15595 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15596 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15597 (psym_lookup_symbol, psym_find_last_source_symtab)
15598 (psym_forget_cached_source_info, psym_print_stats)
15599 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15600 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15601 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15602 (psym_find_compunit_symtab_by_address)
15603 (maintenance_print_psymbols, maintenance_info_psymtabs)
15604 (maintenance_check_psymtabs): Use ranged for.
15605 * psymtab.h (class objfile_psymtabs): New.
15606 (require_partial_symbols): Return objfile_psymtabs.
15607 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15608
15609 2019-01-09 Tom Tromey <tom@tromey.com>
15610
15611 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15612 (find_pc_mapped_section, list_overlays_command)
15613 (map_overlay_command, unmap_overlay_command)
15614 (simple_overlay_update): Use all_objfiles.
15615 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15616 * printcmd.c (info_symbol_command): Use all_objfiles.
15617 * objfiles.h (ALL_OBJSECTIONS): Remove.
15618 * maint.c (maintenance_translate_address): Use all_objfiles.
15619 * gcore.c (gcore_create_callback): Use all_objfiles.
15620 (objfile_find_memory_regions): Likewise.
15621
15622 2019-01-09 Tom Tromey <tom@tromey.com>
15623
15624 * symtab.c (find_line_symtab, info_sources_command)
15625 (make_source_files_completion_list): Use objfile_compunits.
15626 * source.c (select_source_symtab): Use objfile_compunits.
15627 * objfiles.h (struct objfile): Update comment.
15628 (ALL_OBJFILES): Remove.
15629 (ALL_FILETABS): Remove.
15630 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15631 objfile_compunits.
15632
15633 2019-01-09 Tom Tromey <tom@tromey.com>
15634
15635 * symmisc.c (print_objfile_statistics, dump_objfile)
15636 (maintenance_print_symbols): Use compunit_filetabs.
15637 * source.c (forget_cached_source_info_for_objfile): Use
15638 compunit_filetabs.
15639 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15640 (ALL_FILETABS): Use compunit_filetabs.
15641 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15642 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15643
15644 2019-01-09 Tom Tromey <tom@tromey.com>
15645
15646 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15647 (compunit_filetabs): New.
15648 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15649 compunit_filetabs.
15650 (info_sources_command, make_source_files_completion_list): Remove
15651 declaration.
15652 * symmisc.c (print_objfile_statistics, dump_objfile)
15653 (maintenance_print_symbols): Remove declaration.
15654 (maintenance_info_symtabs): Use compunit_filetabs.
15655 (maintenance_info_line_tables): Likewise.
15656 * source.c (select_source_symtab): Change local variable name.
15657 (forget_cached_source_info_for_objfile): Remove declaration.
15658 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15659 * objfiles.c (objfile_relocate1): Remove declaration.
15660 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15661 declaration.
15662 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15663 * coffread.c (coff_symtab_read): Remove declaration.
15664 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15665 compunit_filetabs.
15666
15667 2019-01-09 Tom Tromey <tom@tromey.com>
15668
15669 * symtab.c (lookup_objfile_from_block)
15670 (find_pc_sect_compunit_symtab, search_symbols)
15671 (default_collect_symbol_completion_matches_break_on): Use
15672 objfile_compunits.
15673 * objfiles.h (ALL_COMPUNITS): Remove.
15674 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15675 * cp-support.c (add_symbol_overload_list_qualified): Use
15676 objfile_compunits.
15677 * ada-lang.c (ada_collect_symbol_completion_matches)
15678 (ada_add_global_exceptions): Use objfile_compunits.
15679
15680 2019-01-09 Tom Tromey <tom@tromey.com>
15681
15682 * source.c (select_source_symtab)
15683 (forget_cached_source_info_for_objfile): Remove declaration.
15684 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15685 declaration.
15686 * maint.c (count_symtabs_and_blocks): Remove declaration.
15687 * cp-support.c (add_symbol_overload_list_qualified): Remove
15688 declaration.
15689 * coffread.c (coff_symtab_read): Remove declaration.
15690 * symtab.c (lookup_symbol_in_objfile_symtabs)
15691 (basic_lookup_transparent_type_1): Use objfile_compunits.
15692 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15693 (info_sources_command, search_symbols)
15694 (default_collect_symbol_completion_matches_break_on)
15695 (make_source_files_completion_list): Remove declaration.
15696 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15697 (ada_collect_symbol_completion_matches)
15698 (ada_add_global_exceptions): Remove declaration.
15699 * linespec.c (iterate_over_all_matching_symtabs): Use
15700 objfile_compunits.
15701 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15702 (class objfile_compunits): New.
15703 (ALL_COMPUNITS): Use objfile_compunits.
15704 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15705 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15706 objfile_compunits.
15707 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15708
15709 2019-01-09 Tom Tromey <tom@tromey.com>
15710
15711 * symtab.c (search_symbols)
15712 (default_collect_symbol_completion_matches_break_on): Use
15713 objfile_msymbols.
15714 * ada-lang.c (ada_lookup_simple_minsym)
15715 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15716 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15717 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15718 objfile_msymbols.
15719 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15720 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15721 * objc-lang.c (find_methods): Use objfile_msymbols.
15722 (info_selectors_command, info_classes_command): Likewise.
15723 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15724 * objfiles.h (class objfile_msymbols): New.
15725 (ALL_OBJFILE_MSYMBOLS): Remove.
15726 (ALL_MSYMBOLS): Remove.
15727
15728 2019-01-09 Tom Tromey <tom@tromey.com>
15729
15730 * common/next-iterator.h (next_adapter): Add Iterator template
15731 parameter.
15732 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15733 (class all_objfiles_safe): New.
15734 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15735 * objfiles.c (put_objfile_before): Update comment.
15736 (add_separate_debug_objfile): Likewise.
15737 (free_all_objfiles): Use all_objfiles_safe.
15738 (objfile_purge_solibs): Likewise.
15739
15740 2019-01-09 Tom Tromey <tom@tromey.com>
15741
15742 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15743 (expand_symtab_containing_pc, lookup_static_symbol)
15744 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15745 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15746 all_objfiles.
15747 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15748 * breakpoint.c (create_overlay_event_breakpoint)
15749 (create_longjmp_master_breakpoint)
15750 (create_std_terminate_master_breakpoint)
15751 (create_exception_master_breakpoint): Use all_objfiles.
15752 * linux-thread-db.c (try_thread_db_load_from_pdir)
15753 (has_libpthread): Use all_objfiles.
15754 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15755 * linespec.c (iterate_over_all_matching_symtabs)
15756 (search_minsyms_for_name): Use all_objfiles.
15757 * maint.c (maintenance_info_sections): Use all_objfiles.
15758 * main.c (captured_main_1): Use all_objfiles.
15759 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15760 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15761 * guile/scm-pretty-print.c
15762 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15763 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15764 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15765 (maintenance_print_msymbols): Use all_objfiles.
15766 * source.c (select_source_symtab): Use all_objfiles.
15767 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15768 * symfile.c (remove_symbol_file_command)
15769 (expand_symtabs_matching, map_symbol_filenames): Use
15770 all_objfiles.
15771 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15772 all_objfiles.
15773 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15774 * objc-lang.c (find_methods): Use all_objfiles.
15775 * objfiles.c (have_partial_symbols, have_full_symbols)
15776 (have_minimal_symbols, qsort_cmp)
15777 (default_iterate_over_objfiles_in_search_order): Use
15778 all_objfiles.
15779 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15780 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15781 (maintenance_check_psymtabs): Use all_objfiles.
15782 (ALL_PSYMTABS): Remove.
15783 * compile/compile-object-run.c (do_module_cleanup): Use
15784 all_objfiles.
15785 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15786 * cp-support.c (add_symbol_overload_list_qualified): Use
15787 all_objfiles.
15788 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15789 Use all_objfiles.
15790 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15791 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15792 all_objfiles.
15793 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15794 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15795 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15796 Uses all_objfiles.
15797 * solib.c (solib_read_symbols): Use all_objfiles
15798
15799 2019-01-09 Tom Tromey <tom@tromey.com>
15800
15801 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15802 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15803 all_objfiles.
15804 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15805 * symmisc.c (print_symbol_bcache_statistics)
15806 (print_objfile_statistics, maintenance_print_objfiles)
15807 (maintenance_info_symtabs, maintenance_check_symtabs)
15808 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15809 all_objfiles.
15810 * source.c (forget_cached_source_info): Use all_objfiles.
15811 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15812 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15813 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15814 * objfiles.c (update_section_map): Use all_objfiles.
15815 (shared_objfile_contains_address_p): Likewise.
15816 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15817 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15818
15819 2019-01-09 Tom Tromey <tom@tromey.com>
15820
15821 * common/next-iterator.h: New file.
15822 * objfiles.h (class all_objfiles): New.
15823 (struct objfile_iterator): New.
15824
15825 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15826
15827 * NEWS: Move the description of the changed "frame", "select-frame",
15828 and "info frame" commands to the Changed commands section.
15829
15830 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15831
15832 * gdbtypes.c (check_stub_method_group): Remove handling of old
15833 mangling schemes.
15834 * linespec.c (find_methods): Likewise.
15835 * stabsread.c (read_member_functions): Likewise.
15836 * valops.c (search_struct_method): Likewise.
15837 (value_struct_elt_for_reference): Likewise.
15838 * NEWS: Mention this change.
15839
15840 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15841
15842 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15843 print_source_lines.
15844 * source.c (print_source_lines_base): Update line number check.
15845 (print_source_lines): New function.
15846 (source_lines_range::source_lines_range): New function.
15847 * source.h (class source_lines_range): New class.
15848 (print_source_lines): New declaration.
15849
15850 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15851
15852 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15853
15854 2019-01-08 Tom Tromey <tom@tromey.com>
15855 Simon Marchi <simon.marchi@ericsson.com>
15856
15857 PR gdb/24060
15858 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15859 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15860 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15861 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15862 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15863 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15864
15865 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15866
15867 * source.c (select_source_symtab): Move header comment to
15868 declaration in source.h.
15869 (forget_cached_source_info_for_objfile): Likewise.
15870 (forget_cached_source_info): Likewise.
15871 (identify_source_line): Likewise.
15872 * source.h (identify_source_line): Move declaration from symtab.h
15873 and add comment from source.c
15874 (print_source_lines): Likewise.
15875 (forget_cached_source_info_for_objfile): Likewise.
15876 (forget_cached_source_info): Likewise.
15877 (select_source_symtab): Likewise.
15878 (enum print_source_lines_flag): Move definition from symtab.h.
15879 * symtab.h (identify_source_line): Move declaration to source.h.
15880 (print_source_lines): Likewise.
15881 (forget_cached_source_info_for_objfile): Likewise.
15882 (forget_cached_source_info): Likewise.
15883 (select_source_symtab): Likewise.
15884 (enum print_source_lines_flag): Move definition to source.h.
15885 * tui/tui-hooks.c: Add 'source.h' include.
15886
15887 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15888
15889 * source.c (print_source_lines_base): Handle requests to print
15890 reverse line number sequences, and guard against empty lines
15891 string.
15892
15893 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15894
15895 * source.c (print_source_lines_base): Fix skip of '\r' if next
15896 character is '\n'.
15897
15898 2019-01-06 Tom Tromey <tom@tromey.com>
15899
15900 * c-exp.y (struct c_parse_state) <macro_original_text,
15901 expansion_obstack>: New member.
15902 (macro_original_text, expansion_obstack): Remove globals.
15903 (scan_macro_expansion, scanning_macro_expansion)
15904 (finished_macro_expansion): Update.
15905 (scan_macro_cleanup): Remove.
15906 (yylex, c_parse): Update.
15907
15908 2019-01-06 Tom Tromey <tom@tromey.com>
15909
15910 * c-exp.y (struct c_parse_state) <strings>: New member.
15911 (operator_stoken): Update.
15912
15913 2019-01-06 Tom Tromey <tom@tromey.com>
15914
15915 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15916 (union type_stack_elt) <typelist_val>: Now a pointer to
15917 std::vector.
15918 (type_stack_cleanup): Don't declare.
15919 (push_typelist): Update.
15920 * parse.c (pop_typelist): Return a std::vector.
15921 (push_typelist): Take a std::vector.
15922 (follow_types): Update. Do not free args.
15923 (type_stack_cleanup): Remove.
15924 * c-exp.y (struct c_parse_state): New.
15925 (cpstate): New global.
15926 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15927 (nonempty_typelist): Update.
15928 (func_mod): Create a new vector.
15929 (c_parse): Create a c_parse_state.
15930 (check_parameter_typelist): Do not delete params.
15931 (function_method): Update. Do not delete type_list.
15932
15933 2019-01-06 Tom Tromey <tom@tromey.com>
15934
15935 PR gdb/28155:
15936 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15937 check_typedef.
15938 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15939 (print_return_value): Likewise.
15940
15941 2019-01-05 Tom Tromey <tom@tromey.com>
15942
15943 * contrib/cleanup_check.py: Remove.
15944 * contrib/gcc-with-excheck: Remove.
15945 * contrib/exsummary.py: Remove.
15946 * contrib/excheck.py: Remove.
15947
15948 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15949
15950 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15951 NULL. Initialize tpprev to NULL instead of assigning it
15952 to NULL on the next statement.
15953 * windows-nat.c (windows_delete_thread): Remove check for
15954 main_thread_id before printing thread exit notifications.
15955 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15956 Remove thread ID check against main_thread_id.
15957 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15958 windows_delete_thread.
15959 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15960
15961 2019-01-04 Tom Tromey <tom@tromey.com>
15962
15963 * compile/compile.c (_initialize_compile): Use upper case for
15964 metasyntactic variables.
15965 * symmisc.c (_initialize_symmisc): Use upper case for
15966 metasyntactic variables.
15967 * psymtab.c (_initialize_psymtab): Use upper case for
15968 metasyntactic variables.
15969 * demangle.c (demangle_command): Use upper case for metasyntactic
15970 variables.
15971 (_initialize_demangler): Likewise.
15972 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15973 variables.
15974
15975 2019-01-03 Tom Tromey <tom@tromey.com>
15976
15977 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15978
15979 2019-01-03 Tom Tromey <tom@tromey.com>
15980
15981 * python/py-symtab.c (salpy_str): Update.
15982 (struct salpy_sal_object) <symtab>: Now a PyObject.
15983 (salpy_dealloc): Update.
15984 (del_objfile_sal): Use gdbpy_ref.
15985
15986 2019-01-03 Tom Tromey <tom@tromey.com>
15987
15988 * python/py-type.c (convert_field): Use new_reference. Return
15989 gdbpy_ref.
15990 (make_fielditem): Return gdbpy_ref.
15991 (typy_fields): Update.
15992 (typy_getitem): Update.
15993 (field_name): Return gdbpy_ref. Use new_reference.
15994 (typy_iterator_iternext): Update.
15995
15996 2019-01-03 Tom Tromey <tom@tromey.com>
15997
15998 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15999
16000 2019-01-03 Tom Tromey <tom@tromey.com>
16001
16002 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16003 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16004 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16005 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16006 (pspy_set_type_printers): Likewise.
16007 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16008 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16009 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16010 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16011 (objfpy_set_type_printers): Likewise.
16012
16013 2019-01-03 Tom Tromey <tom@tromey.com>
16014
16015 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16016 (gdbpy_print_stack): Use gdbpy_err_fetch.
16017 * python/python-internal.h (class gdbpy_err_fetch): New class.
16018 (class gdbpy_enter) <m_error_type, m_error_value,
16019 m_error_traceback>: Remove.
16020 <m_error>: New member.
16021 (gdbpy_exception_to_string): Don't declare.
16022 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16023 * python/py-value.c (convert_value_from_python): Use
16024 gdbpy_err_fetch.
16025 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16026 gdbpy_exception_to_string.
16027 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16028 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16029 gdbpy_err_fetch.
16030
16031 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16032
16033 * linux-nat.c (delete_lwp_cleanup): Delete.
16034 (struct lwp_deleter): New struct.
16035 (lwp_info_up): New typedef.
16036 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16037 lwp_info_up.
16038
16039 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16040
16041 * linux-fork.c (class scoped_switch_fork_info): New class.
16042 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16043
16044 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16045
16046 * valops.c (find_overload_match): Remove use of null_cleanup, and
16047 calls to do_cleanups.
16048
16049 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16050
16051 * compile/compile-cplus-types.c
16052 (compile_cplus_instance::decl_name): Handle changes to
16053 cp_func_name.
16054 * cp-support.c (cp_func_name): Update header comment, update
16055 return type.
16056 * cp-support.h (cp_func_name): Update return type in declaration.
16057 * valops.c (find_overload_match): Move temp_func local to top
16058 level of function and change its type. Use temp_func to hold and
16059 delete temporary string obtained from cp_func_name.
16060
16061 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16062
16063 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16064 gdb::char_vector, remove cleanup, and update uses of `msg`.
16065
16066 2019-01-03 Jim Wilson <jimw@sifive.com>
16067
16068 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16069
16070 2019-01-02 Tom Tromey <tom@tromey.com>
16071
16072 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16073 (tdesc_parse_xml): Remove cleanups.
16074 * target-descriptions.h (make_cleanup_free_target_description):
16075 Don't declare.
16076 (target_desc_deleter): New struct.
16077 (target_desc_up): New typedef.
16078 * target-descriptions.c (target_desc_deleter::operator()): Rename
16079 from free_target_description.
16080 (make_cleanup_free_target_description): Remove.
16081
16082 2019-01-02 Tom Tromey <tom@tromey.com>
16083
16084 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16085 constructor, destructor.
16086 (linespec_parser): Remove typedef.
16087 (~linespec_parser): Rename from linespec_parser_delete.
16088 (linespec_lex_to_end, linespec_complete_label)
16089 (linespec_complete): Update.
16090 (decode_line_full): Remove cleanups.
16091 (decode_line_1): Update.
16092
16093 2019-01-02 Tom Tromey <tom@tromey.com>
16094
16095 * python/python-internal.h (inferior_to_inferior_object): Change
16096 return type.
16097 * python/py-exitedevent.c (create_exited_event_object): Update.
16098 * python/py-inferior.c (inferior_to_inferior_object): Return
16099 gdbpy_ref.
16100 (python_new_inferior, python_inferior_deleted)
16101 (thread_to_thread_object, delete_thread_object)
16102 (build_inferior_list, gdbpy_selected_inferior): Update.
16103 * python/py-infthread.c (create_thread_object): Update. Also fail
16104 if inferior_to_inferior_object fails.
16105
16106 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16107
16108 * inferior.h (class inferior) <displaced_step_state>: New field.
16109 * infrun.h (struct displaced_step_state): Move here from
16110 infrun.c. Initialize fields, add constructor.
16111 <inf>: Remove field.
16112 <reset>: New method.
16113 * infrun.c (struct displaced_step_inferior_state): Move to
16114 infrun.h.
16115 (displaced_step_inferior_states): Remove.
16116 (get_displaced_stepping_state): Adust.
16117 (displaced_step_in_progress_any_inferior): Adjust.
16118 (displaced_step_in_progress_thread): Adjust.
16119 (displaced_step_in_progress): Adjust.
16120 (add_displaced_stepping_state): Remove.
16121 (get_displaced_step_closure_by_addr): Adjust.
16122 (remove_displaced_stepping_state): Remove.
16123 (infrun_inferior_exit): Call displaced_step_state.reset.
16124 (use_displaced_stepping): Don't check for NULL.
16125 (displaced_step_prepare_throw): Call
16126 get_displaced_stepping_state.
16127 (displaced_step_fixup): Don't check for NULL.
16128 (prepare_for_detach): Don't check for NULL.
16129
16130 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16131
16132 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16133 in case of call that did not complete.
16134
16135 2019-01-02 Andrey Utkin <autkin@undo.io>
16136
16137 * symfile.c (find_separate_debug_file): Fix search of debug files for
16138 remote debuggee.
16139
16140 2019-01-02 Tom Tromey <tom@tromey.com>
16141
16142 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16143 indentation.
16144 * python/py-frame.c (frapy_older): Remove cast.
16145 (frapy_newer): Likewise.
16146 * python/py-breakpoint.c (local_setattro): Remove cast.
16147 * python/py-arch.c (archpy_name): Remove local variable.
16148 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16149
16150 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16151
16152 * unittests/basic_string_view/element_access/char/empty.cc:
16153 Fix year range in copyright header.
16154
16155 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16156
16157 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16158 Delete.
16159 <operator==>: Update with for removed field.
16160 <hash>: Likewise.
16161 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16162 <isa_features>: ...this.
16163 <abi_features>: New field.
16164 (riscv_isa_flen): Update comment.
16165 (riscv_abi_xlen): New declaration.
16166 (riscv_abi_flen): New declaration.
16167 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16168 isa_features.
16169 (riscv_abi_xlen): New function.
16170 (riscv_isa_flen): Update to get answer from isa_features.
16171 (riscv_abi_flen): New function.
16172 (riscv_has_fp_abi): Update to get answer from abi_features.
16173 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16174 xlen and flen.
16175 (riscv_call_info) <xlen, flen>: Update comment.
16176 (riscv_call_arg_struct): Remove invalid assertions
16177 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16178 is removed.
16179 (riscv_gdbarch_init): Gather isa features and abi features
16180 separately, ensure both match on the gdbarch when reusing an old
16181 gdbarch. Relax an error check to allow 32-bit abi float to run on
16182 a target with 64-bit float hardware.
16183
16184 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16185
16186 * source.c (search_command_helper): Stop reverse search
16187 when line 1 has been searched.
16188
16189 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16190
16191 * record-full.c (record_full_base_target::close): Rewrite
16192 record_full_core_buf_list free logic.
16193
16194 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16195
16196 * break-catch-syscall.c (print_one_catch_syscall): xfree
16197 the last text.
16198
16199 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16200
16201 * top.c (print_gdb_version): Update Copyright year in version
16202 message.
16203
16204 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16205
16206 Update copyright year range in all GDB files.
16207
16208 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16209
16210 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16211
16212 For older changes see ChangeLog-2018.
16213 \f
16214 Local Variables:
16215 mode: change-log
16216 left-margin: 8
16217 fill-column: 74
16218 version-control: never
16219 coding: utf-8
16220 End:
16221
This page took 0.405378 seconds and 4 git commands to generate.