Suppress the "unused function" warning for select_strerror_r
[binutils-gdb.git] / gdb / ChangeLog
1 2019-12-10 Christian Biesinger <cbiesinger@google.com>
2
3 * gdbsupport/safe-strerror.c: Supress the unused function warning
4 for select_strerror_r.
5
6 2019-12-10 Christian Biesinger <cbiesinger@google.com>
7
8 * config.in: Regenerate.
9 * configure: Regenerate.
10 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
11 safe_strerror instead of strerror.
12 * gdbsupport/common.m4: Don't check for strerror.
13 * gdbsupport/safe-strerror.c: Support both the glibc version
14 of strerror_r and the XSI version.
15
16 2019-12-10 Tom Tromey <tromey@adacore.com>
17
18 * ada-typeprint.c (print_choices): Use a single "?".
19 (print_variant_part): Print "?" if the discriminant name
20 is not known.
21
22 2019-12-10 George Barrett <bob@bob131.so>
23
24 Fix scripted probe breakpoints.
25 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
26 declaration forward.
27 (breakpoint_ops_for_event_location_type)
28 (breakpoint_ops_for_event_location): Add function definitions.
29 (break_command_1, trace_command): Use
30 breakpoint_ops_for_event_location.
31 * breakpoint.h (breakpoint_ops_for_event_location): Add function
32 declarations.
33 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
34 breakpoint_ops_for_event_location.
35 * python/py-breakpoint.c (bppy_init): Use
36 breakpoint_ops_for_event_location.
37
38 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
39
40 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
41 when ranking an lvalue argument for an rvalue parameter.
42
43 2019-12-08 Wataru Ashihara <wataash@wataash.com>
44
45 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
46 template argument for scoped_restore_tmpl from bool to int.
47
48 2019-12-07 Keith Seitz <keiths@redhat.com>
49
50 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
51 (build_id_to_debug_bfd): Make static, rewriting to use
52 build_id_to_bfd_suffix.
53 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
54 adding `suffix' parameter. Append SUFFIX to file names
55 when searching for matching files.
56 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
57 (build_id_to_exec_bfd): Likewise.
58 * build-id.h (build_id_to_debug_bfd): Clarify that function
59 searches for BFD of debug info file.
60 (build_id_to_exec_bfd): Declare.
61 * corelow.c: Include build-id.h.
62 (locate_exec_from_corefile_build_id): New function.
63 (core_target_open): If no executable BFD is found,
64 search for a core file BFD using build-id.
65
66 2019-12-06 Christian Biesinger <cbiesinger@google.com>
67
68 * bcache.c: Put in namespace gdb.
69 * bcache.h: Likewise.
70 * gdbtypes.c (check_types_worklist): Update.
71 (types_deeply_equal): Update.
72 * macrotab.c (struct macro_table) <bcache>: Update.
73 (new_macro_table): Update.
74 * macrotab.h (struct bcache): Put this forward declaration
75 inside namespace gdb.
76 (new_macro_table): Update.
77 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
78 Update.
79 <macro_cache>: Update.
80 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
81
82 2019-12-06 Tom de Vries <tdevries@suse.de>
83
84 PR symtab/24971
85 * block.c (best_symbol, better_symbol): New function.
86 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
87 decl.
88
89 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
90
91 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
92 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
93 for ranking see-through reference cases.
94
95 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
96 * stack.c (faas_command): Check a command is provided.
97 * thread.c (taas_command, tfaas_command): Likewise.
98
99 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
100 * inferior.c (prune_inferiors): Only call delete_inferior,
101 Do not modify the inferior list.
102
103 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
104
105 * c-exp.y: Update calls to lookup_typename,
106 lookup_signed_typename and lookup_unsigned_typename.
107 * c-lang.c (evaluate_subexp_c): Likewise.
108 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
109 Likewise.
110 * eval.c (binop_promote): Likewise.
111 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
112 (lookup_unsigned_typename): Likewise.
113 (lookup_signed_typename): Likewise.
114 * gdbtypes.h (lookup_unsigned_typename): Likewise.
115 (lookup_signed_typename): Likewise.
116 (lookup_typename): Likewise.
117 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
118 lookup_typename, lookup_signed_typename,
119 lookup_unsigned_typename.
120 * m2-exp.y: Likewise.
121 * printcmd.c (printf_wide_c_string): Likewise.
122 (ui_printf): Likewise.
123 * python/py-type.c (typy_lookup_typename): Likewise.
124 * python/py-xmethods.c (python_xmethod_worker::invoke):
125 Likewise.
126 * rust-exp.y: Likewise.
127
128 2019-12-04 Christian Biesinger <cbiesinger@google.com>
129
130 * configure.nat (obsd64): Add missing files x86-nat.o and
131 nat/x86-dregs.o.
132
133 2019-12-04 Tom Tromey <tom@tromey.com>
134
135 * valprint.c (val_print_string): Use metadata_style.
136 * go-valprint.c (print_go_string): Use metadata style.
137 * p-valprint.c (pascal_object_print_static_field): Use metadata
138 style.
139 * cp-valprint.c (cp_print_static_field): Use metadata style.
140
141 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
142 Chris January <chris.january@arm.com>
143
144 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
145 tokens.
146 (typebase): New patterns for complex, single/double precision, and
147 single/double complex.
148 (f77_keywords): Change token for complex keyword, and add single,
149 double, and precision keywords.
150
151 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
152
153 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
154 "info io_registers".
155
156 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
157
158 * regcache.c (cooked_read_test): Initialize thread list of
159 mock_inferior.
160
161 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
162
163 * aarch64-linux-tdep.c: Remove includes.
164
165 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
166
167 * aarch64-tdep.c: Remove includes.
168
169 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
170
171 * filtered-iterator.h (filtered_iterator) <operator==,
172 operator!=>: Compare wrapped iterators, not wrapped pointers.
173 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
174 unittests/filtered_iterator-selftests.c.
175 * unittests/filtered_iterator-selftests.c: New file.
176
177 2019-12-04 Tom Tromey <tromey@adacore.com>
178
179 * gdbtypes.c (create_range_type): Inherit endianity
180 from base type.
181
182 2019-12-04 Tom Tromey <tromey@adacore.com>
183
184 * ada-lang.c (decode_constrained_packed_array)
185 (ada_value_assign, value_assign_to_component): Update.
186 * dwarf2loc.c (rw_pieced_value, access_memory)
187 (dwarf2_compile_expr_to_ax): Update.
188 * dwarf2read.c (dwarf2_add_field): Update.
189 * eval.c (evaluate_subexp_standard): Update.
190 * gdbarch.c, gdbarch.h: Rebuild.
191 * gdbarch.sh (bits_big_endian): Remove.
192 * gdbtypes.h (union field_location): Update comment.
193 * target-descriptions.c (make_gdb_type): Update.
194 * valarith.c (value_bit_index): Update.
195 * value.c (struct value) <bitpos>: Update comment.
196 (unpack_bits_as_long, modify_field): Update.
197 * value.h (value_bitpos): Update comment.
198
199 2019-12-04 Tom Tromey <tromey@adacore.com>
200
201 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
202 endian-ness.
203
204 2019-12-04 Tom Tromey <tromey@adacore.com>
205
206 * dwarf2read.c (dwarf2_init_float_type)
207 (dwarf2_init_complex_target_type): Add byte_order parameter.
208 (read_base_type): Compute byte order earlier.
209 * gdbtypes.c (init_float_type): Add byte_order parameter.
210 * gdbtypes.h (init_float_type): Add byte_order parameter.
211
212 2019-12-04 Tom Tromey <tromey@adacore.com>
213
214 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
215
216 2019-12-04 Tom Tromey <tromey@adacore.com>
217
218 * dwarf2read.c (process_structure_scope): Initialize
219 "discr_offset".
220
221 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
222
223 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
224 add it into the search spec.
225 (parse_max_results_option): New function.
226 (mi_info_functions_or_variables): Parse -max-results flag and pass
227 it to mi_symbol_info.
228 (mi_cmd_symbol_info_modules): Likewise.
229 (mi_cmd_symbol_info_types): Likewise.
230 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
231 return type to bool, change result container into a set, and don't
232 add new results if we have enough already.
233 (global_symbol_searcher::add_matching_msymbols): Change return
234 type to bool, and don't add new results if we have enough already.
235 (sort_search_symbols_remove_dups): Delete.
236 (global_symbol_searcher::search): Early exit from search loop when
237 we have enough results. Use a std::set to collect the results
238 from calling add_matching_symbols.
239 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
240 member function.
241 (global_symbol_searcher) <m_max_search_results>: New member
242 variable.
243 (global_symbol_searcher) <add_matching_symbols>: Update header
244 comment and change return type to bool.
245 (global_symbol_searcher) <add_matching_msymbols>: Update header
246 comment and change return type to bool.
247
248 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
249
250 * symtab.c (symbol_search::compare_search_syms): Update header
251 comment.
252 (global_symbol_searcher::is_suitable_msymbol): New function.
253 (global_symbol_searcher::expand_symtabs): New function.
254 (global_symbol_searcher::add_matching_symbols): New function.
255 (global_symbol_searcher::add_matching_msymbols): New function.
256 (global_symbol_searcher::search): Move most of the content
257 into the new functions above, and call them as needed.
258 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
259 function.
260 (global_symbol_searcher) <add_matching_symbols>: New member
261 function.
262 (global_symbol_searcher) <add_matching_msymbols>: New member
263 function.
264 (global_symbol_searcher) <is_suitable_msymbol>: New member
265 function.
266
267 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
268
269 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
270 -symbol-info-module-variables entries.
271 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
272 (mi_cmd_symbol_info_module_variables): Declare.
273 * mi/mi-symbol-cmds.c
274 (module_symbol_search_iterator): New typedef.
275 (output_module_symbols_in_single_module_and_file): New function.
276 (output_module_symbols_in_single_module): New function.
277 (mi_info_module_functions_or_variables): New function.
278 (mi_cmd_symbol_info_module_functions): New function.
279 (mi_cmd_symbol_info_module_variables): New function.
280 * NEWS: Mention new MI command.
281
282 2019-12-03 Christian Biesinger <cbiesinger@google.com>
283
284 * bcache.c (hash): Remove.
285 (hash_continue): Remove.
286 * bcache.h (hash): Remove.
287 (hash_continue): Remove.
288 (struct bcache) <ctor>: Update.
289 * psymtab.c (psymbol_hash): Update.
290 * stabsread.c (hashname): Update.
291 * utils.h (fast_hash): Add an argument for a start value,
292 defaulting to zero.
293
294 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
295 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
296 (destroy_block_symbol_cache): New function.
297 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
298 (resize_symbol_cache): Likewise.
299
300 2019-12-02 Tom Tromey <tom@tromey.com>
301
302 * unittests/tui-selftests.c (run_tests): Make conditional.
303 (_initialize_tui_selftest): Make conditional.
304
305 2019-12-02 Christian Biesinger <cbiesinger@google.com>
306
307 * aix-thread.c (debug_aix_thread): Change type to bool.
308
309 2019-12-02 Luis Machado <luis.machado@linaro.org>
310
311 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
312
313 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
314
315 * dwarf2read.c (read_tag_string_type): Read the fields required to
316 make a dynamic string, and possibly create a dynamic range for the
317 string.
318 (attr_to_dynamic_prop): Setup is_reference based on the type of
319 attribute being processed.
320 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
321 (resolve_dynamic_array): Rename to...
322 (resolve_dynamic_array_or_string): ...this, update header comment,
323 and accept TYPE_CODE_STRING.
324 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
325
326 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
327
328 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
329 of its implementation from...
330 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
331 the new function.
332
333 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
334
335 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
336 create a range with stride where appropriate.
337 * f-valprint.c: Include 'gdbarch.h'.
338 (f77_print_array_1): Take the stride into account when walking the
339 array. Also convert the stride into addressable units.
340 * gdbtypes.c (create_range_type): Initialise the stride to
341 constant zero.
342 (create_range_type_with_stride): New function, initialise the
343 range as normal, and then setup the stride.
344 (has_static_range): Include the stride here. Also change the
345 return type to bool.
346 (create_array_type_with_stride): Consider the range stride if the
347 array isn't given its own stride.
348 (resolve_dynamic_range): Resolve the stride if needed.
349 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
350 (struct range_bounds) <flag_is_byte_stride>: New member variable.
351 (TYPE_BIT_STRIDE): Define.
352 (TYPE_ARRAY_BIT_STRIDE): Define.
353 (create_range_type_with_stride): Declare.
354 * valarith.c (value_subscripted_rvalue): Take range stride into
355 account when walking the array.
356
357 2019-12-01 Tom Tromey <tom@tromey.com>
358
359 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
360 specially.
361
362 2019-12-01 Tom Tromey <tom@tromey.com>
363
364 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
365 \0.
366 * unittests/tui-selftests.c: New file.
367 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
368
369 2019-12-01 Tom Tromey <tom@tromey.com>
370
371 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
372
373 2019-12-01 Tom Tromey <tom@tromey.com>
374
375 * NEWS: Document new settings.
376 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
377 * tui/tui-win.c (_initialize_tui_win): Add border style
378 observers.
379 * tui/tui-io.h (tui_apply_style): Declare.
380 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
381 longer static.
382 (apply_ansi_escape, tui_set_reverse_mode): Update.
383 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
384 Add "skip_intensity" parameter.
385 <changed>: New member.
386 <do_set_value>: Declare.
387 (tui_border_style, tui_active_border_style): Declare.
388 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
389 globals.
390 (cli_style_option): Initialize "changed".
391 (cli_style_option::do_set_value): New function.
392 (cli_style_option::add_setshow_commands): Add "skip_intensity"
393 parameter. Update.
394 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
395 (_initialize_cli_style): Update. Create TUI border style
396 commands.
397
398 2019-12-01 Tom Tromey <tom@tromey.com>
399
400 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
401 parameter.
402 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
403 parameter.
404 * tui/tui-win.h (compact_source): Declare.
405 * tui/tui-win.c (compact_source): New global.
406 (tui_set_compact_source, tui_show_compact_source): New functions.
407 (_initialize_tui_win): Add "compact-source" setting.
408 * tui/tui-source.c (tui_source_window::set_contents): Handle
409 compact_source setting.
410 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
411 * NEWS: Document new setting.
412
413 2019-11-30 Tom Tromey <tom@tromey.com>
414
415 * dwarf2read.c (dwarf2_add_field): Include field offset when
416 computing variant part length.
417
418 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
419 * NEWS: Mention define-prefix. Tell that command names can now
420 contain a . character.
421
422 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
423
424 * command.h (valid_cmd_char_p): Declare.
425 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
426 the check of valid command char.
427 (find_command_name_length, valid_user_defined_cmd_name_p): Use
428 valid_cmd_char_p.
429 * cli/cli-script.c (validate_comname): Likewise.
430 * completer.c (gdb_completer_command_word_break_characters):
431 Do not remove . from the word break char, update comments.
432 (complete_line_internal_1): Use valid_cmd_char_p.
433 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
434 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
435
436 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
437
438 * cli/cli-script.c (do_define_command): Ensure a redefined
439 prefix command is kept as a prefix command.
440 (define_prefix_command): New function.
441 (show_user_1): Report user defined prefixes.
442 (_initialize_cli_script): Create the new 'define-prefix' command.
443 Add completers for 'define' and 'document'.
444 * top.c (execute_command): If command is a user-defined prefix only
445 command, report the list of commands for this prefix command.
446
447 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
448
449 * valops.c (find_oload_champ): Improve debug output.
450
451 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
452
453 * valops.c (find_oload_champ): Print part of debug messages
454 before the badness vector is std::move'd.
455
456 2019-11-28 Tom Tromey <tom@tromey.com>
457
458 * value.c (creal_internal_fn): Fix comment.
459
460 2019-11-28 Tom Tromey <tom@tromey.com>
461
462 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
463 flag_bound_evaluated>: Now unsigned.
464
465 2019-11-28 Tom Tromey <tom@tromey.com>
466
467 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
468 declare.
469
470 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
471
472 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
473 debug output.
474 * jit.c (jit_unregister_code): Add debug print to match
475 `jit_register_code`.
476
477 2019-11-27 Christian Biesinger <cbiesinger@google.com>
478
479 * NEWS: Mention the new multithreaded symbol loading.
480
481 2019-11-27 Christian Biesinger <cbiesinger@google.com>
482
483 * maint.c (n_worker_threads): Default to 0.
484 (worker_threads_disabled): New function.
485 * maint.h (worker_threads_disabled): New function.
486 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
487 here if worker_threads_disabled () is true.
488 (minimal_symbol_reader::install): Skip all threading if
489 worker_threads_disabled () is true.
490
491 2019-11-27 Christian Biesinger <cbiesinger@google.com>
492
493 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
494 hash code if possible.
495 (add_minsym_to_demangled_hash_table): Likewise.
496 (minimal_symbol_reader::install): Compute the hash codes for msymbol
497 on the background thread.
498 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
499 Add these fields.
500
501 2019-11-27 Christian Biesinger <cbiesinger@google.com>
502
503 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
504 of the mangled name on the background thread.
505 * symtab.c (symbol_set_names): Allow passing in the hash of the
506 linkage_name.
507 * symtab.h (symbol_set_names): Likewise.
508
509 2019-11-27 Kevin Buettner <kevinb@redhat.com>
510
511 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
512 physnames are computed for inherited DIEs.
513
514 2019-11-27 Tom Tromey <tromey@adacore.com>
515
516 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
517 backslashes.
518 * cp-support.c: Remove unnecessary backslashes.
519
520 2019-11-27 Christian Biesinger <cbiesinger@google.com>
521
522 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
523 with sym->set_linkage_name.
524 * coffread.c (coff_read_enum_type): Likewise.
525 * mdebugread.c (parse_symbol): Likewise.
526 * stabsread.c (patch_block_stabs): Likewise.
527 (define_symbol): Likewise.
528 (read_enum_type): Likewise.
529 (common_block_end): Likewise.
530 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
531 function.
532 (SYMBOL_SET_LINKAGE_NAME): Remove.
533 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
534 with sym->set_linkage_name.
535
536 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
537
538 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
539 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
540 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
541 * NEWS: Mention new MI command.
542
543 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
546 '-symbol-info-types', and '-symbol-info-variables'.
547 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
548 (mi_cmd_symbol_info_types): Declare.
549 (mi_cmd_symbol_info_variables): Declare.
550 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
551 (output_debug_symbol): New function.
552 (output_nondebug_symbol): New function.
553 (mi_symbol_info): New function.
554 (mi_info_functions_or_variables): New function.
555 (mi_cmd_symbol_info_functions): New function.
556 (mi_cmd_symbol_info_types): New function.
557 (mi_cmd_symbol_info_variables): New function.
558 * NEWS: Mention new commands.
559
560 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
561
562 * symtab.c (symbol_to_info_string): New function, most content
563 moved from print_symbol_info, but updated to return a std::string.
564 (print_symbol_info): Update to use symbol_to_info_string and print
565 returned string.
566 * symtab.h (symbol_to_info_string): Declare new function.
567
568 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
569
570 * python/python.c (gdbpy_rbreak): Convert to using
571 global_symbol_searcher.
572 * symtab.c (file_matches): Convert return type to bool, change
573 file list to std::vector, update header comment.
574 (search_symbols): Rename to...
575 (global_symbol_searcher::search): ...this and update now its
576 a member function of global_symbol_searcher. Take account of the
577 changes to file_matches.
578 (symtab_symbol_info): Convert to using global_symbol_searcher.
579 (rbreak_command): Likewise.
580 (search_module_symbols): Likewise.
581 * symtab.h (enum symbol_search): Update comment.
582 (search_symbols): Remove declaration.
583 (class global_symbol_searcher): New class.
584
585 2019-11-26 Tom Tromey <tromey@adacore.com>
586
587 * cp-support.c (_initialize_cp_support): Conditionally initialize
588 gdb_demangle_attempt_core_dump.
589
590 2019-11-26 Tom Tromey <tom@tromey.com>
591
592 * python/py-function.c (fnpy_init): Update.
593 * value.h (add_internal_function): Adjust declaration.
594 * value.c (function_destroyer): Remove.
595 (do_add_internal_function): Don't set destroyer or copy name.
596 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
597 Set name_allocated.
598 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
599 (cmdpy_init): Set name_allocated.
600 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
601 member.
602 (~cmd_list_element): Free "name" if needed.
603
604 2019-11-26 Tom Tromey <tom@tromey.com>
605
606 * value.h (add_internal_function): Add new overload. Move
607 documentation from value.h.
608 * value.c (do_add_internal_function): New function.
609 (add_internal_function): Use it. Add new overload.
610 (function_destroyer): Don't free doc.
611 * python/py-function.c (fnpy_init): Update.
612
613 2019-11-26 Tom Tromey <tom@tromey.com>
614
615 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
616 (cmdpy_init): Set "doc_allocated".
617
618 2019-11-26 Tom Tromey <tom@tromey.com>
619
620 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
621 name of worker thread.
622 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
623 pthread_setname_np.
624 * configure, config.in: Rebuild.
625
626 2019-11-26 Tom Tromey <tom@tromey.com>
627
628 * python/python.c (class gdbpy_gil): New.
629 (struct gdbpy_event): Add constructor, destructor, operator().
630 (gdbpy_post_event): Use run_on_main_thread.
631 (gdbpy_initialize_events): Remove.
632 (do_start_initialization): Update.
633
634 2019-11-26 Tom Tromey <tom@tromey.com>
635
636 * NEWS: Add entry.
637 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
638 commands. Call update_thread_pool_size.
639 (update_thread_pool_size, maintenance_set_worker_threads): New
640 functions.
641 (n_worker_threads): New global.
642
643 2019-11-26 Christian Biesinger <cbiesinger@google.com>
644 Tom Tromey <tom@tromey.com>
645
646 * minsyms.c (minimal_symbol_reader::install): Use
647 parallel_for_each.
648 * gdbsupport/parallel-for.h: New file.
649 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
650
651 2019-11-26 Christian Biesinger <cbiesinger@google.com>
652 Tom Tromey <tom@tromey.com>
653
654 * gdbsupport/thread-pool.h: New file.
655 * gdbsupport/thread-pool.c: New file.
656 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
657 (HFILES_NO_SRCDIR): Add thread-pool.h.
658
659 2019-11-26 Tom Tromey <tom@tromey.com>
660
661 * event-top.h (thread_local_segv_handler): Declare.
662 * event-top.c (thread_local_segv_handler): New global.
663 (install_handle_sigsegv, handle_sigsegv): New functions.
664 (async_init_signals): Install SIGSEGV handler.
665 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
666 thread-local.
667 (report_failed_demangle): New function.
668 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
669 handler-setting code, instead use segv_handler. Run warning code
670 on main thread.
671
672 2019-11-26 Tom Tromey <tom@tromey.com>
673
674 * run-on-main-thread.c: New file.
675 * run-on-main-thread.h: New file.
676 * unittests/main-thread-selftests.c: New file.
677 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
678 main-thread-selftests.c.
679 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
680 (COMMON_SFILES): Add run-on-main-thread.c.
681
682 2019-11-26 Tom Tromey <tom@tromey.com>
683
684 * main.c (setup_alternate_signal_stack): Remove.
685 (captured_main_1): Use gdb::alternate_signal_stack.
686 * gdbsupport/alt-stack.h: New file.
687
688 2019-11-26 Tom Tromey <tom@tromey.com>
689
690 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
691 Remove comment.
692 (save_original_signals_state, restore_original_signals_state): Use
693 gdb_sigmask.
694 * linux-nat.c (block_child_signals, restore_child_signals_mask)
695 (_initialize_linux_nat): Use gdb_sigmask.
696 * guile/guile.c (_initialize_guile): Use block_signals.
697 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
698 * gdbsupport/gdb-sigmask.h: New file.
699 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
700 * cp-support.c (gdb_demangle): Use gdb_sigmask.
701 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
702 pthread_sigmask.
703 * configure, config.in: Rebuild.
704 * gdbsupport/block-signals.h: New file.
705
706 2019-11-26 Tom Tromey <tom@tromey.com>
707
708 * acinclude.m4: Include ax_pthread.m4.
709 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
710 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
711 (CLIBS): Use PTHREAD_LIBS.
712 (aclocal_m4_deps): Add ax_pthread.m4.
713 * config.in, configure: Rebuild.
714 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
715
716 2019-11-26 Tom Tromey <tom@tromey.com>
717
718 * symtab.h (struct minimal_symbol) <name_set>: New member.
719 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
720 Don't call symbol_set_names.
721 (minimal_symbol_reader::install): Call symbol_set_names.
722
723 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
724
725 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
726 restore_active_ext_lang, as GIL is needed for (indirectly)
727 called PyOS_InterruptOccurred.
728
729 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
730
731 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
732 definition.
733
734 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
735
736 * remote-sim.c (simulator_command): Make static, remove
737 declaration.
738
739 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
740
741 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
742 static.
743 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
744 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
745 (main): Likewise.
746 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
747 (main): Likewise.
748 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
749 (main): Likewise.
750 * unittests/basic_string_view/element_access/char/1.cc (test01):
751 Likewise.
752 (main): Likewise.
753 * unittests/basic_string_view/element_access/char/empty.cc (main):
754 Likewise.
755 * unittests/basic_string_view/element_access/char/front_back.cc
756 (test01): Likewise.
757 (main): Likewise.
758 * unittests/basic_string_view/inserters/char/2.cc (test05):
759 Likewise.
760 (main): Likewise.
761 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
762 (test01): Likewise.
763 (main): Likewise.
764 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
765 (test01): Likewise.
766 (main): Likewise.
767 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
768 Likewise.
769 * unittests/basic_string_view/operations/compare/char/1.cc
770 (test01): Likewise.
771 (main): Likewise.
772 * unittests/basic_string_view/operations/compare/char/13650.cc
773 (test01): Likewise.
774 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
775 Likewise.
776 (main): Likewise.
777 * unittests/basic_string_view/operations/data/char/1.cc (test01):
778 Likewise.
779 (main): Likewise.
780 * unittests/basic_string_view/operations/find/char/1.cc (test01):
781 Likewise.
782 (main): Likewise.
783 * unittests/basic_string_view/operations/find/char/2.cc (test02):
784 Likewise.
785 (main): Likewise.
786 * unittests/basic_string_view/operations/find/char/3.cc (test03):
787 Likewise.
788 (main): Likewise.
789 * unittests/basic_string_view/operations/find/char/4.cc (main):
790 Likewise.
791 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
792 Likewise.
793 (main): Likewise.
794 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
795 Likewise.
796 (main): Likewise.
797 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
798 Likewise.
799 (main): Likewise.
800 * unittests/basic_string_view/operations/substr/char/1.cc
801 (test01): Likewise.
802 (main): Likewise.
803 * unittests/basic_string_view/operators/char/2.cc (main):
804 Likewise.
805 * unittests/optional/assignment/1.cc (test): Likewise.
806 * unittests/optional/assignment/2.cc (test): Likewise.
807 * unittests/optional/assignment/3.cc (test): Likewise.
808 * unittests/optional/assignment/4.cc (test): Likewise.
809 * unittests/optional/assignment/5.cc (test): Likewise.
810 * unittests/optional/assignment/6.cc (test): Likewise.
811 * unittests/optional/assignment/7.cc (test): Likewise.
812 * unittests/optional/cons/copy.cc (test): Likewise.
813 * unittests/optional/cons/default.cc (test): Likewise.
814 * unittests/optional/cons/move.cc (test): Likewise.
815 * unittests/optional/cons/value.cc (test): Likewise.
816 * unittests/optional/in_place.cc (test): Likewise.
817 * unittests/optional/observers/1.cc (test): Likewise.
818 * unittests/optional/observers/2.cc (test): Likewise.
819
820 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
821
822 * tui-win.h (tui_set_var_cmd): Remove.
823 * tui-win.c (tui_set_var_cmd): Make static.
824
825 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
826
827 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
828 rbreak_command_wrapper): Remove.
829 * symtab.c (rbreak_command_wrapper): Remove.
830
831 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
832
833 * inferior.h (info_terminal_command): Remove declaration.
834 * inflow.c (info_terminal_command): Make static.
835
836 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
837
838 * inferior.c (exit_inferior_silent): Remove.
839
840 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
841
842 * dictionary.c (dict_empty, mdict_empty): Remove.
843 * dictionary.c (mdict_empty): Remove.
844
845 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
846
847 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
848 (arc_insn_get_memory_offset): Likewise.
849 (arc_insn_dump): Likewise.
850 * cp-support.c (test_cp_symbol_name_matches): Likewise.
851 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
852 * dictionary.c (dict_iterator_next): Likewise.
853 (dict_iter_match_first): Likewise.
854 (dict_iter_match_next): Likewise.
855 * f-lang.c (evaluate_subexp_f): Likewise.
856 * hppa-tdep.c (hppa_read_pc): Likewise.
857 * i386-tdep.c (i386_floatformat_for_type): Likewise.
858 * parse.c (write_exp_elt_msym): Likewise.
859 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
860 * remote.c (remote_packet_size): Likewise.
861 (remote_notif_stop_parse): Likewise.
862 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
863 * s12z-tdep.c (s12z_disassemble_info): Likewise.
864 * source.c (prepare_path_for_appending): Likewise.
865 * sparc64-linux-tdep.c
866 (sparc64_linux_handle_segmentation_fault); Likewise.
867 * stack.c (frame_selection_by_function_completer): Likewise.
868
869 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
870
871 * completer.c (set_gdb_completion_word_break_characters):
872 Remove.
873
874 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
875
876 * dwarf-index-write.c: Include dwarf-index-write.h.
877 * mi/mi-interp.c: Include mi/mi-interp.h.
878
879 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
880
881 * aarch32-tdep.c: Include aarch32-tdep.h.
882 * aarch32-tdep.h: Forward-declare struct target_desc.
883
884 2019-11-26 Christian Biesinger <cbiesinger@google.com>
885
886 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
887 strerror.
888 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
889 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
890
891 2019-11-25 Tom de Vries <tdevries@suse.de>
892
893 * contrib/words.sh: Add -c option.
894
895 2019-11-25 Christian Biesinger <cbiesinger@google.com>
896
897 * solib.c (solib_find_1): Change int to bool.
898 (exec_file_find): Change int to bool.
899 (solib_find): Change int to bool.
900 (solib_read_symbols): Change int to bool.
901 (solib_used): Change int to bool.
902 (solib_add): Change int to bool.
903 (info_sharedlibrary_command): Change int to bool.
904 (solib_contains_address_p): Change int to bool.
905 (solib_keep_data_in_core): Change int to bool.
906 (in_solib_dynsym_resolve_code): Change int to bool.
907 (reload_shared_libraries_1): Change int to bool.
908 (gdb_sysroot_changed): Change int to bool.
909 * solib.h (solib_read_symbols): Change int to bool.
910 (solib_contains_address_p): Change int to bool.
911 (solib_keep_data_in_core): Change int to bool.
912 (in_solib_dynsym_resolve_code): Change int to bool.
913 (libpthread_name_p): Change int to bool.
914
915 2019-11-25 Luis Machado <luis.machado@linaro.org>
916
917 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
918 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
919 (remote_packet_max_chars): New static global.
920 (show_remote_packet_max_chars): New function.
921 (remote_target::putpkt_binary): Adjust to use new
922 remote_packet_max_chars option.
923 (remote_target::getpkt_or_notif_sane_1): Likewise.
924 (_initialize_remote): Register new remote-packet-max-chars option.
925
926 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
927
928 * m68k-linux-nat.c: Include gdbarch.h.
929
930 2019-11-24 Tom Tromey <tom@tromey.com>
931
932 * symfile.c (read_symbols): Update.
933 * psymtab.c (require_partial_symbols): Change type of "verbose" to
934 bool.
935 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
936 (psym_lookup_symbol, psym_find_last_source_symtab)
937 (psym_forget_cached_source_info, psym_print_stats)
938 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
939 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
940 (psym_map_matching_symbols, psym_expand_symtabs_matching)
941 (psym_find_compunit_symtab_by_address)
942 (maintenance_print_psymbols, maintenance_info_psymtabs)
943 (maintenance_check_psymtabs): Update.
944 * psymtab.h (require_partial_symbols): Change type of "verbose" to
945 bool.
946
947 2019-11-22 Tom Tromey <tom@tromey.com>
948
949 * observable.h: Update comments.
950
951 2019-11-22 Tom Tromey <tromey@adacore.com>
952
953 * ada-tasks.c (ada_task_is_alive): Make parameter const.
954 (print_ada_task_info): Don't try to fetch thread id if task is not
955 alive.
956
957 2019-11-22 Christian Biesinger <cbiesinger@google.com>
958
959 * ada-exp.y: Update.
960 * ada-lang.c (sort_choices): Update.
961 (ada_print_symbol_signature): Update.
962 (resolve_subexp): Update.
963 (ada_parse_renaming): Update.
964 (ada_read_renaming_var_value): Update.
965 (lesseq_defined_than): Update.
966 (remove_extra_symbols): Update.
967 (remove_irrelevant_renamings): Update.
968 (ada_add_block_symbols): Update.
969 (ada_collect_symbol_completion_matches): Update.
970 (ada_is_renaming_symbol): Update.
971 (aggregate_assign_from_choices): Update.
972 (ada_evaluate_subexp): Update.
973 (ada_has_this_exception_support): Update.
974 (ada_is_non_standard_exception_sym): Update.
975 (ada_add_exceptions_from_frame): Update.
976 (ada_add_global_exceptions): Update.
977 (ada_print_subexp): Update.
978 * ax-gdb.c (gen_var_ref): Update.
979 (gen_maybe_namespace_elt): Update.
980 (gen_expr_for_cast): Update.
981 (gen_expr): Update.
982 * block.h: Update.
983 * blockframe.c (find_pc_partial_function): Update.
984 * breakpoint.c (print_breakpoint_location): Update.
985 (update_static_tracepoint): Update.
986 * btrace.c (ftrace_print_function_name): Update.
987 (ftrace_function_switched): Update.
988 * buildsym.c (find_symbol_in_list): Update.
989 * c-exp.y: Update.
990 * c-typeprint.c (c_print_typedef): Update.
991 (c_type_print_template_args): Update.
992 * cli/cli-cmds.c (edit_command): Update.
993 (list_command): Update.
994 (print_sal_location): Update.
995 * coffread.c (patch_opaque_types): Update.
996 (process_coff_symbol): Update.
997 (coff_read_enum_type): Update.
998 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
999 (convert_one_symbol): Update.
1000 (hash_symname): Update.
1001 (eq_symname): Update.
1002 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1003 * compile/compile-cplus-types.c (debug_print_scope): Update.
1004 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1005 * compile/compile-object-load.c (get_out_value_type): Update.
1006 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1007 (search_symbol_list): Update.
1008 (cp_lookup_symbol_imports_or_template): Update.
1009 * cp-support.c (overload_list_add_symbol): Update.
1010 * ctfread.c (psymtab_to_symtab): Update.
1011 * dbxread.c (cp_set_block_scope): Update.
1012 * dictionary.c (iter_match_first_hashed): Update.
1013 (iter_match_next_hashed): Update.
1014 (insert_symbol_hashed): Update.
1015 (iter_match_next_linear): Update.
1016 * dictionary.h: Update.
1017 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1018 (locexpr_describe_location_piece): Update.
1019 (locexpr_describe_location_1): Update.
1020 (locexpr_generate_c_location): Update.
1021 (loclist_describe_location): Update.
1022 (loclist_generate_c_location): Update.
1023 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1024 (read_func_scope): Update.
1025 (process_enumeration_scope): Update.
1026 (new_symbol): Update.
1027 (dwarf2_const_value): Update.
1028 (dwarf2_symbol_mark_computed): Update.
1029 * eval.c (evaluate_funcall): Update.
1030 (evaluate_subexp_standard): Update.
1031 * expprint.c (print_subexp_standard): Update.
1032 (dump_subexp_body_standard): Update.
1033 * f-valprint.c (info_common_command_for_block): Update.
1034 * findvar.c (get_hosting_frame): Update.
1035 (default_read_var_value): Update.
1036 * go-lang.c (go_symbol_package_name): Update.
1037 * guile/scm-block.c (bkscm_print_block_smob): Update.
1038 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1039 (gdbscm_symbol_name): Update.
1040 (gdbscm_symbol_linkage_name): Update.
1041 (gdbscm_symbol_print_name): Update.
1042 * infcall.c (get_function_name): Update.
1043 * infcmd.c (jump_command): Update.
1044 (finish_command): Update.
1045 * infrun.c (insert_exception_resume_breakpoint): Update.
1046 * linespec.c (canonicalize_linespec): Update.
1047 (create_sals_line_offset): Update.
1048 (convert_linespec_to_sals): Update.
1049 (complete_label): Update.
1050 (find_label_symbols_in_block): Update.
1051 * m2-typeprint.c (m2_print_typedef): Update.
1052 * mdebugread.c (mdebug_reg_to_regnum): Update.
1053 (parse_symbol): Update.
1054 (mylookup_symbol): Update.
1055 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1056 (list_args_or_locals): Update.
1057 * objc-lang.c (compare_selectors): Update.
1058 (info_selectors_command): Update.
1059 (compare_classes): Update.
1060 (info_classes_command): Update.
1061 (find_imps): Update.
1062 * p-typeprint.c (pascal_print_typedef): Update.
1063 * printcmd.c (build_address_symbolic): Update.
1064 (info_address_command): Update.
1065 (print_variable_and_value): Update.
1066 * python/py-framefilter.c (extract_sym): Update.
1067 (py_print_single_arg): Update.
1068 * python/py-symbol.c (sympy_str): Update.
1069 (sympy_get_name): Update.
1070 (sympy_get_linkage_name): Update.
1071 * python/python.c (gdbpy_rbreak): Update.
1072 * record-btrace.c (btrace_get_bfun_name): Update.
1073 (btrace_call_history): Update.
1074 * rust-lang.c (rust_print_typedef): Update.
1075 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1076 * stabsread.c (stab_reg_to_regnum): Update.
1077 (define_symbol): Update.
1078 (read_enum_type): Update.
1079 (common_block_end): Update.
1080 (cleanup_undefined_types_1): Update.
1081 (scan_file_globals): Update.
1082 * stack.c (print_frame_arg): Update.
1083 (print_frame_args): Update.
1084 (find_frame_funname): Update.
1085 (info_frame_command_core): Update.
1086 (iterate_over_block_locals): Update.
1087 (print_block_frame_labels): Update.
1088 (do_print_variable_and_value): Update.
1089 (iterate_over_block_arg_vars): Update.
1090 (return_command): Update.
1091 * symmisc.c (dump_symtab_1): Update.
1092 (print_symbol): Update.
1093 * symtab.c (eq_symbol_entry): Update.
1094 (symbol_cache_dump): Update.
1095 (lookup_language_this): Update.
1096 (find_pc_sect_line): Update.
1097 (skip_prologue_sal): Update.
1098 (symbol_search::compare_search_syms): Update.
1099 (treg_matches_sym_type_name): Update.
1100 (search_symbols): Update.
1101 (print_symbol_info): Update.
1102 (rbreak_command): Update.
1103 (completion_list_add_symbol): Update.
1104 (find_gnu_ifunc): Update.
1105 (get_symbol_address): Update.
1106 (search_module_symbols): Update.
1107 (info_module_subcommand): Update.
1108 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1109 (SYMBOL_LINKAGE_NAME): Remove.
1110 (SYMBOL_DEMANGLED_NAME): Remove.
1111 (SYMBOL_PRINT_NAME): Remove.
1112 (SYMBOL_SEARCH_NAME): Remove.
1113 * tracepoint.c (set_traceframe_context): Update.
1114 (validate_actionline): Update.
1115 (collection_list::collect_symbol): Update.
1116 (encode_actions_1): Update.
1117 (info_scope_command): Update.
1118 (print_one_static_tracepoint_marker): Update.
1119 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1120 * valops.c (address_of_variable): Update.
1121 (find_overload_match): Update.
1122 (find_oload_champ): Update.
1123
1124 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1125
1126 * ada-lang.c (ada_lookup_simple_minsym): Update.
1127 (ada_collect_symbol_completion_matches): Update.
1128 * ada-tasks.c (read_atcb): Update.
1129 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1130 (amd64_windows_skip_trampoline_code): Update.
1131 * arm-tdep.c (skip_prologue_function): Update.
1132 (arm_skip_stack_protector): Update.
1133 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1134 (arm_wince_skip_main_prologue): Update.
1135 * ax-gdb.c (gen_expr): Update.
1136 * block.c (call_site_for_pc): Update.
1137 * blockframe.c (find_pc_partial_function): Update.
1138 * breakpoint.c (set_breakpoint_location_function): Update.
1139 * btrace.c (ftrace_print_function_name): Update.
1140 (ftrace_function_switched): Update.
1141 * c-valprint.c (print_unpacked_pointer): Update.
1142 * coffread.c (coff_symfile_read): Update.
1143 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1144 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1145 * dwarf-index-write.c (write_psymbols): Update.
1146 * dwarf2loc.c (call_site_to_target_addr): Update.
1147 (func_verify_no_selftailcall): Update.
1148 (tailcall_dump): Update.
1149 (call_site_find_chain_1): Update.
1150 (dwarf_expr_reg_to_entry_parameter): Update.
1151 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1152 * eval.c (evaluate_funcall): Update.
1153 (evaluate_subexp_standard): Update.
1154 (evaluate_subexp_for_sizeof): Update.
1155 * expprint.c (print_subexp_standard): Update.
1156 (dump_subexp_body_standard): Update.
1157 * frame.c (get_prev_frame_always_1): Update.
1158 * frv-tdep.c (frv_skip_main_prologue): Update.
1159 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1160 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1161 (gnuv3_get_typename_from_type_info): Update.
1162 (gnuv3_skip_trampoline): Update.
1163 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1164 * i386-tdep.c (i386_skip_main_prologue): Update.
1165 (i386_pe_skip_trampoline_code): Update.
1166 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1167 * infcall.c (get_function_name): Update.
1168 * linespec.c (minsym_found): Update.
1169 * linux-fork.c (info_checkpoints_command): Update.
1170 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1171 (m32c_m16c_pointer_to_address): Update.
1172 * maint.c (maintenance_translate_address): Update.
1173 * minsyms.c (add_minsym_to_hash_table): Update.
1174 (add_minsym_to_demangled_hash_table): Update.
1175 (lookup_minimal_symbol_mangled): Update.
1176 (lookup_minimal_symbol_demangled): Update.
1177 (lookup_minimal_symbol_linkage): Update.
1178 (lookup_minimal_symbol_text): Update.
1179 (lookup_minimal_symbol_by_pc_name): Update.
1180 (minimal_symbol_is_less_than): Update.
1181 (compact_minimal_symbols): Update.
1182 (build_minimal_symbol_hash_tables): Update.
1183 (find_solib_trampoline_target): Update.
1184 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1185 (mips_skip_pic_trampoline_code): Update.
1186 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1187 * objc-lang.c (info_selectors_command): Update.
1188 (info_classes_command): Update.
1189 (find_methods): Update.
1190 (find_imps): Update.
1191 * p-valprint.c (pascal_val_print): Update.
1192 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1193 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1194 * printcmd.c (build_address_symbolic): Update.
1195 (info_symbol_command): Update.
1196 * psymtab.c (psymbol_name_matches): Update.
1197 (match_partial_symbol): Update.
1198 (lookup_partial_symbol): Update.
1199 (print_partial_symbols): Update.
1200 (sort_pst_symbols): Update.
1201 (maintenance_check_psymtabs): Update.
1202 * python/py-framefilter.c (py_print_frame): Update.
1203 * python/python.c (gdbpy_rbreak): Update.
1204 * record-btrace.c (btrace_get_bfun_name): Update.
1205 (btrace_call_history): Update.
1206 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1207 (rs6000_skip_trampoline_code): Update.
1208 * sol-thread.c (info_cb): Update.
1209 * stabsread.c (scan_file_globals): Update.
1210 * stack.c (find_frame_funname): Update.
1211 (info_frame_command_core): Update.
1212 * symmisc.c (dump_msymbols): Update.
1213 * symtab.c (symbol_natural_name): Rename to..,
1214 (general_symbol_info::natural_name): ...this.
1215 (symbol_demangled_name): Rename to...
1216 (general_symbol_info::demangled_name): ...this.
1217 (symbol_search_name): Rename to...
1218 (general_symbol_info::search_name): ...this.
1219 (symbol_matches_search_name): Update.
1220 (find_pc_sect_line): Update.
1221 (skip_prologue_sal): Update.
1222 (search_symbols): Update.
1223 (print_msymbol_info): Update.
1224 (rbreak_command): Update.
1225 (completion_list_add_msymbol): Update.
1226 (completion_list_objc_symbol): Update.
1227 (get_msymbol_address): Update.
1228 * symtab.h (struct general_symbol_info): Add member functions
1229 natural_name (), linkage_name (), print_name (), demangled_name (),
1230 and search_name ().
1231 (SYMBOL_NATURAL_NAME): Update.
1232 (symbol_natural_name): Move to a member function on general_symbol_info.
1233 (SYMBOL_DEMANGLED_NAME): Update.
1234 (symbol_demangled_name): Move to a member function on
1235 general_symbol_info.
1236 (SYMBOL_SEARCH_NAME): Update.
1237 (symbol_search_name): Move to a member function on general_symbol_info.
1238 (MSYMBOL_NATURAL_NAME): Remove.
1239 (MSYMBOL_LINKAGE_NAME): Remove.
1240 (MSYMBOL_PRINT_NAME): Remove.
1241 (MSYMBOL_DEMANGLED_NAME): Remove.
1242 (MSYMBOL_SEARCH_NAME): Remove.
1243 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1244
1245 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1246
1247 * symtab.c (create_demangled_names_hash): Use per_bfd->
1248 minimal_symbol_count for computing the initial size, if greater
1249 than our default size.
1250
1251 2019-11-22 Tom de Vries <tdevries@suse.de>
1252
1253 * contrib/words.sh: Improve words extraction.
1254
1255 2019-11-22 Tom de Vries <tdevries@suse.de>
1256
1257 * contrib/words.sh: Combine sed invocations.
1258
1259 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1260
1261 * Makefile.in: Update.
1262 * demangle.c: Rename to...
1263 * gdb-demangle.c: ..this.
1264 (is_cplus_marker): Change return type to bool.
1265 (_initialize_demangler): Rename to...
1266 (_initialize_gdb_demangle): ...this.
1267 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1268 * symtab.h (demangle): Remove declaration; instead include
1269 gdb-demangle.h.
1270
1271 2019-11-21 Tom Tromey <tromey@adacore.com>
1272
1273 * gdbsupport/format.c (format_pieces): Parse %I64d.
1274 * unittests/format_pieces-selftests.c (test_windows_formats): New
1275 function.
1276 (run_tests): Call it.
1277
1278 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1279
1280 Byte reverse display of variables with DW_END_big, DW_END_little
1281 (DW_AT_endianity) dwarf attributes if different than the native
1282 byte order.
1283 * ada-lang.c (ada_value_binop):
1284 Use type_byte_order instead of gdbarch_byte_order.
1285 * ada-valprint.c (printstr):
1286 (ada_val_print_string):
1287 * ada-lang.c (value_pointer):
1288 (ada_value_binop):
1289 Use type_byte_order instead of gdbarch_byte_order.
1290 * c-lang.c (c_get_string):
1291 Use type_byte_order instead of gdbarch_byte_order.
1292 * c-valprint.c (c_val_print_array):
1293 Use type_byte_order instead of gdbarch_byte_order.
1294 * cp-valprint.c (cp_print_class_member):
1295 Use type_byte_order instead of gdbarch_byte_order.
1296 * dwarf2loc.c (rw_pieced_value):
1297 Use type_byte_order instead of gdbarch_byte_order.
1298 * dwarf2read.c (read_base_type): Handle DW_END_big,
1299 DW_END_little
1300 * f-lang.c (f_get_encoding):
1301 Use type_byte_order instead of gdbarch_byte_order.
1302 * findvar.c (default_read_var_value):
1303 Use type_byte_order instead of gdbarch_byte_order.
1304 * gdbtypes.c (check_types_equal):
1305 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1306 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1307 and TYPE_ENDIANITY_LITTLE if set.
1308 (type_byte_order): new function.
1309 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1310 (struct main_type) <flag_endianity_not_default>:
1311 New field.
1312 (type_byte_order): New function.
1313 * infcmd.c (default_print_one_register_info):
1314 Use type_byte_order instead of gdbarch_byte_order.
1315 * p-lang.c (pascal_printstr):
1316 Use type_byte_order instead of gdbarch_byte_order.
1317 * p-valprint.c (pascal_val_print):
1318 Use type_byte_order instead of gdbarch_byte_order.
1319 * printcmd.c (print_scalar_formatted):
1320 Use type_byte_order instead of gdbarch_byte_order.
1321 * solib-darwin.c (darwin_current_sos):
1322 Use type_byte_order instead of gdbarch_byte_order.
1323 * solib-svr4.c (solib_svr4_r_ldsomap):
1324 Use type_byte_order instead of gdbarch_byte_order.
1325 * stap-probe.c (stap_modify_semaphore):
1326 Use type_byte_order instead of gdbarch_byte_order.
1327 * target-float.c (target_float_same_format_p):
1328 Use type_byte_order instead of gdbarch_byte_order.
1329 * valarith.c (scalar_binop):
1330 (value_bit_index):
1331 Use type_byte_order instead of gdbarch_byte_order.
1332 * valops.c (value_cast):
1333 Use type_byte_order instead of gdbarch_byte_order.
1334 * valprint.c (generic_emit_char):
1335 (generic_printstr):
1336 (val_print_string):
1337 Use type_byte_order instead of gdbarch_byte_order.
1338 * value.c (unpack_long):
1339 (unpack_bits_as_long):
1340 (unpack_value_bitfield):
1341 (modify_field):
1342 (pack_long):
1343 (pack_unsigned_long):
1344 Use type_byte_order instead of gdbarch_byte_order.
1345 * findvar.c (unsigned_pointer_to_address):
1346 (signed_pointer_to_address):
1347 (unsigned_address_to_pointer):
1348 (address_to_signed_pointer):
1349 (default_read_var_value):
1350 (default_value_from_register):
1351 Use type_byte_order instead of gdbarch_byte_order.
1352 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1353 Use type_byte_order instead of gdbarch_byte_order.
1354 * riscv-tdep.c (riscv_print_one_register_info):
1355 Use type_byte_order instead of gdbarch_byte_order.
1356
1357 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1358
1359 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1360 (current_ui_gdb_stdin_ptr): Likewise.
1361 (current_ui_gdb_stderr_ptr): Likewise.
1362 (current_ui_gdb_stdlog_ptr): Likewise.
1363 (current_ui_current_uiout_ptr): Likewise.
1364 (gen_ret_current_ui_field_ptr): Remove.
1365
1366 2019-11-21 Tom de Vries <tdevries@suse.de>
1367
1368 PR gdb/24956
1369 * cli/cli-script.c (execute_control_command): Only switch to
1370 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1371
1372 2019-11-19 Tom Tromey <tom@tromey.com>
1373
1374 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1375 Now static. Change type of "name".
1376 (tui_set_win_height_command): Don't copy "arg".
1377 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1378 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1379
1380 2019-11-19 Ali Tamur <tamur@google.com>
1381
1382 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1383 "if (attr != nullptr)".
1384 (dwarf2_find_base_address): Likewise.
1385 (dwarf2_build_include_psymtabs): Likewise.
1386 (read_cutu_die_from_dwo): Likewise.
1387 (read_func_scope): Likewise.
1388 (read_call_site_scope): Likewise.
1389 (dwarf2_get_pc_bounds): Likewise.
1390 (dwarf2_record_block_ranges): Likewise.
1391 (dwarf2_add_field): Likewise.
1392 (dwarf2_add_member_fn): Likewise.
1393 (read_structure_type): Likewise.
1394 (read_enumeration_type): Likewise.
1395 (read_array_type): Likewise.
1396 (read_array_order): Likewise.
1397 (read_set_type): Likewise.
1398 (read_common_block): Likewise.
1399 (read_tag_reference_type): Likewise.
1400 (read_tag_string_type): Likewise.
1401 (read_subroutine_type): Likewise.
1402 (read_base_type): Likewise.
1403 (read_subrange_type): Likewise.
1404 (new_symbol): Likewise.
1405 (prepare_one_comp_unit): Likewise.
1406
1407 2019-11-19 Tom Tromey <tromey@adacore.com>
1408
1409 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1410 result in error when DebugActiveProcess fails.
1411
1412 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1413 Pedro Alves <palves@redhat.com>
1414
1415 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1416 * target.c (target_stack::push): Call 'unpush' if there's a
1417 target on top of the stack.
1418
1419 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1420
1421 * python/py-block.c (blpy_dealloc): Call tp_free.
1422 (blpy_block_syms_dealloc): Likewise.
1423 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1424 * python/py-inferior.c (infpy_dealloc): Likewise.
1425 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1426 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1427 * python/py-symbol.c (sympy_dealloc): Likewise.
1428 * python/py-symtab.c (stpy_dealloc): Likewise.
1429 * python/py-type.c (typy_iterator_dealloc): Likewise.
1430
1431 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1432
1433 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1434 constructor instead of using a class initializer.
1435
1436 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1437
1438 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1439 * configure: Regenerate.
1440 * configure.ac: Don't source common.host.
1441 * gdbsupport/common.host: Remove.
1442 * gdbsupport/mingw-strerror.c: Remove.
1443 * gdbsupport/posix-strerror.c: Rename to...
1444 * gdbsupport/safe-strerror.c: ...this.
1445
1446 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1447
1448 * maint.c (scoped_command_stats::print_time): Use localtime_r
1449 instead of localtime (provided through gnulib if necessary).
1450 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1451 of ctime.
1452
1453 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1454
1455 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1456 avoid compile errors.
1457
1458 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1459
1460 * config.in: Regenerate.
1461 * configure: Regenerate.
1462 * gdbsupport/common.m4: No longer check for strerror_r.
1463 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1464 POSIX version of strerror_r, now that gnulib provides it if
1465 necessary.
1466
1467 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1468
1469 * README (`configure' options): Update.
1470
1471 2019-11-14 Tom Tromey <tromey@adacore.com>
1472
1473 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1474 expected type for the RHS if the LHS is a convenience variable.
1475
1476 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1477
1478 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1479 Provide explicit default and copy constructor.
1480
1481 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1482
1483 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1484 only call Py_INCREF (newbp) in the bppy_pending_object case.
1485
1486 2019-11-13 Tom Tromey <tromey@adacore.com>
1487
1488 PR build/25182:
1489 * psympriv.h (partial_symbol): Remove static assert.
1490 * symtab.h (general_symbol_info, symbol): Remove static assert.
1491
1492 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1493
1494 * gdbsupport/format.c (format_pieces::format_pieces): Support
1495 printf 'z' size modifier.
1496 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1497 * printcmd.c (ui_printf): Handle size_t_arg.
1498 * ui-out.c (ui_out::vmessage): Likewise.
1499 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1500 function.
1501 (run_tests): Call test_format_int_sizes.
1502
1503 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1504
1505 * ada-exp.y (write_ambiguous_var): Update.
1506 * buildsym.c (add_symbol_to_list): Update.
1507 * dwarf2read.c (read_variable): Update.
1508 (new_symbol): Update.
1509 * jit.c (finalize_symtab): Update.
1510 * language.c (language_alloc_type_symbol): Update.
1511 * symtab.c (fixup_symbol_section): Update.
1512 (initialize_objfile_symbol_1): Move code to...
1513 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1514 (allocate_symbol): Update.
1515 (allocate_template_symbol): Update.
1516 (get_symbol_address): Update.
1517 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1518 of having as a field, and add a constructor.
1519 (SYMBOL_VALUE): Update.
1520 (SYMBOL_VALUE_ADDRESS): Update.
1521 (SET_SYMBOL_VALUE_ADDRESS): Update.
1522 (SYMBOL_VALUE_BYTES): Update.
1523 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1524 (SYMBOL_BLOCK_VALUE): Update.
1525 (SYMBOL_VALUE_CHAIN): Update.
1526 (SYMBOL_LANGUAGE): Update.
1527 (SYMBOL_SECTION): Update.
1528 (SYMBOL_OBJ_SECTION): Update.
1529 (SYMBOL_SET_LANGUAGE): Update.
1530 (SYMBOL_SET_LINKAGE_NAME): Update.
1531 (SYMBOL_SET_NAMES): Update.
1532 (SYMBOL_NATURAL_NAME): Update.
1533 (SYMBOL_LINKAGE_NAME): Update.
1534 (SYMBOL_DEMANGLED_NAME): Update.
1535 (SYMBOL_SEARCH_NAME): Update.
1536 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1537 (struct symbol): Update.
1538 (struct template_symbol): Update.
1539 (struct rust_vtable_symbol): Update.
1540 * xcoffread.c (SYMBOL_DUP): Update.
1541
1542 2019-11-12 Tom Tromey <tom@tromey.com>
1543
1544 * tui/tui-layout.c (show_layout): Set current_layout.
1545 (show_source_disasm_command, show_data)
1546 (show_source_or_disasm_and_command): Don't set current_layout.
1547
1548 2019-11-12 Tom Tromey <tom@tromey.com>
1549
1550 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1551
1552 2019-11-12 Tom Tromey <tom@tromey.com>
1553
1554 * tui/tui-win.c (resize_message): New global.
1555 (show_tui_resize_message): New function.
1556 (tui_async_resize_screen): Print message if requested.
1557 (_initialize_tui_win): Add tui-resize-message setting.
1558 * NEWS: Add entry for new commands.
1559
1560 2019-11-11 Tom Tromey <tom@tromey.com>
1561
1562 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1563 functions.
1564
1565 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1566
1567 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1568
1569 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1570
1571 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1572 function.
1573 * python/python-internal.h (gdbpy_lookup_static_symbols):
1574 Declare new function.
1575 * python/python.c (python_GdbMethods): Add
1576 gdb.lookup_static_symbols method.
1577 * NEWS: Mention gdb.lookup_static_symbols.
1578
1579 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1580
1581 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1582 static block of current object file first. Also fix typo in
1583 header comment.
1584
1585 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1586
1587 * stack.c (set_last_displayed_sal): Delete.
1588 (last_displayed_sal_valid): Delete.
1589 (last_displayed_pspace): Delete.
1590 (last_displayed_addr): Delete.
1591 (last_displayed_symtab): Delete.
1592 (last_displayed_line): Delete.
1593 (class last_displayed_symtab_info_type): New.
1594 (last_displayed_symtab_info): New static global variable.
1595 (print_frame_info): Call methods on last_displayed_symtab_info.
1596 (clear_last_displayed_sal): Update header comment, and make use of
1597 last_displayed_symtab_info.
1598 (last_displayed_sal_is_valid): Likewise.
1599 (get_last_displayed_pspace): Likewise.
1600 (get_last_displayed_addr): Likewise.
1601 (get_last_displayed_symtab): Likewise.
1602 (get_last_displayed_line): Likewise.
1603 (get_last_displayed_sal): Likewise.
1604 * stack.h (clear_last_displayed_sal): Update header comment.
1605 (last_displayed_sal_is_valid): Likewise.
1606 (get_last_displayed_pspace): Likewise.
1607 (get_last_displayed_addr): Likewise.
1608 (get_last_displayed_symtab): Likewise.
1609 (get_last_displayed_line): Likewise.
1610 (get_last_displayed_sal): Likewise.
1611
1612 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1613
1614 * stack.c (frame_show_address): Convert return type to bool.
1615 * stack.h (frame_show_address): Likewise, and update header
1616 comment.
1617
1618 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1619
1620 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1621 * unittests/vec-utils-selftests.c: New file.
1622 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1623
1624 2019-11-10 Tom Tromey <tom@tromey.com>
1625
1626 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1627 (tui_highlight_win): Likewise.
1628 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1629 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1630 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1631 Don't set can_highlight.
1632
1633 2019-11-10 Tom Tromey <tom@tromey.com>
1634
1635 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1636 Remove unused declaration.
1637
1638 2019-11-08 Tom Tromey <tromey@adacore.com>
1639
1640 * top.c (read_command_file): Update.
1641 (command_line_input): Make return type const.
1642 * python/py-gdb-readline.c: Update.
1643 * linespec.c (decode_line_2): Update.
1644 * defs.h (command_line_input): Make return type const.
1645 * cli/cli-script.c (read_next_line): Make return type const.
1646 * ada-lang.c (get_selections): Update.
1647
1648 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1649
1650 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1651 * mi/mi-main.c (output_cores): Likewise.
1652 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1653 (linux_xfer_osdata_modules): Likewise.
1654 * remote.c (register_remote_support_xml): Likewise.
1655 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1656 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1657
1658 2019-11-06 Tom Tromey <tom@tromey.com>
1659
1660 * tui/tui-interp.c: Don't include readline.h.
1661 * tui/tui-hooks.c: Don't include readline.h.
1662 * symmisc.c: Include tilde.h, not readline.h.
1663 * symfile.c: Include tilde.h, not readline.h.
1664 * source.c: Include tilde.h, not readline.h.
1665 * solib.c: Include tilde.h, not readline.h.
1666 * psymtab.c: Include tilde.h, not readline.h.
1667 * exec.c: Include tilde.h, not readline.h.
1668 * corelow.c: Include tilde.h, not readline.h.
1669 * cli/cli-dump.c: Include tilde.h, not readline.h.
1670 * cli/cli-cmds.c: Don't include readline.h.
1671
1672 2019-11-05 Tom Tromey <tom@tromey.com>
1673
1674 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1675 (tui_disassemble): Set addr_size.
1676 (tui_disasm_window::set_contents): Use addr_size.
1677
1678 2019-11-05 Tom Tromey <tom@tromey.com>
1679
1680 * rust-lang.c (rust_language_defn): Update.
1681 * python/py-value.c (valpy_string): Call c_get_string.
1682 * p-lang.c (pascal_language_defn): Update.
1683 * opencl-lang.c (opencl_language_defn): Update.
1684 * objc-lang.c (objc_language_defn): Update.
1685 * m2-lang.c (m2_language_defn): Update.
1686 * language.c (unknown_language_defn, auto_language_defn): Update.
1687 (default_get_string): Remove.
1688 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1689 * go-lang.c (go_language_defn): Update.
1690 * f-lang.c (f_language_defn): Update.
1691 * d-lang.c (d_language_defn): Update.
1692 * c-lang.c (c_language_defn, cplus_language_defn)
1693 (asm_language_defn, minimal_language_defn): Update.
1694 * ada-lang.c (ada_language_defn): Update.
1695 * language.h (struct language_defn) <la_get_string>: Remove.
1696 (LA_GET_STRING): Remove.
1697 (default_get_string): Don't declare.
1698
1699 2019-11-05 Tom Tromey <tom@tromey.com>
1700
1701 * tui/tui-source.h (struct tui_source_window): Inline
1702 constructor. Remove destructor.
1703 <style_changed, m_observable>: Move to superclass.
1704 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1705 (struct tui_source_window_base): Move private members to end.
1706 <style_changed, m_observable>: Move from tui_source_window.
1707 * tui/tui-winsource.c (tui_copy_source_line): Move from
1708 tui-source.c. Rename from copy_source_line. Add special handling
1709 for negative line number.
1710 (tui_source_window_base::style_changed): Move from
1711 tui_source_window.
1712 (tui_source_window_base): Register observer.
1713 (~tui_source_window_base): New.
1714 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1715 rename.
1716 (tui_source_window::set_contents): Use tui_copy_source_line.
1717 (tui_source_window::tui_source_window): Move to tui-source.h.
1718 (tui_source_window::~tui_source_window): Remove.
1719 (tui_source_window::style_changed): Move to superclass.
1720 * tui/tui-disasm.c (tui_disassemble): Create string file with
1721 styling, when possible. Add "addr_size" parameter.
1722 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1723 Don't compute maximum size.
1724 (len_without_escapes): New function
1725
1726 2019-11-05 Tom Tromey <tom@tromey.com>
1727
1728 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1729 std::string.
1730 * tui/tui-winsource.c (tui_show_source_line): Update.
1731 * tui/tui-source.c (tui_source_window::set_contents): Update.
1732 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1733
1734 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1735
1736 * symtab.h (gdb_static_assert): Put && operator at the beginning
1737 of the line instead of the end.
1738
1739 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1740
1741 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1742 and sizeof (symbol).
1743 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1744
1745 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1746
1747 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1748 * configure.host: Mark *-*-solaris2.10* obsolete.
1749 * configure.tgt: Mark Solaris < 11 obsolete.
1750 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1751 Update target triplet.
1752
1753 2019-11-01 Tom Tromey <tromey@adacore.com>
1754
1755 * utils.c (print_sys_errmsg): Simplify.
1756
1757 2019-11-01 Tom Tromey <tromey@adacore.com>
1758
1759 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1760
1761 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1762
1763 * configure: Regenerate.
1764 * configure.ac: Remove check for strerror_r.
1765 * gdbsupport/common.m4: Check for strerror_r.
1766
1767 2019-11-01 Luis Machado <luis.machado@linaro.org>
1768
1769 PR gdb/25124
1770
1771 * arm-tdep.c (arm_per_objfile): Rename to ...
1772 (arm_per_bfd): ... this.
1773 (arm_objfile_data_key): Rename to ...
1774 (arm_bfd_data_key): ... this.
1775 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1776 data.
1777 (arm_record_special_symbol): Likewise.
1778
1779 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1780
1781 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1782 end.
1783 * c-typeprint.c (c_print_typedef): Likewise.
1784 * f-typeprint.c (f_print_typedef): Likewise.
1785 * m2-typeprint.c (m2_print_typedef): Likewise.
1786 * p-typeprint.c (pascal_print_typedef): Likewise.
1787 * rust-lang.c (rust_print_typedef): Likewise.
1788 * symtab.c (print_symbol_info): Print a newline after calling
1789 typedef_print.
1790
1791 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1792
1793 * symtab.c (info_module_cmdlist): New variable.
1794 (info_module_command): New function.
1795 (search_module_symbols): New function.
1796 (info_module_subcommand): New function.
1797 (struct info_modules_var_func_options): New struct.
1798 (info_modules_var_func_options_defs): New variable.
1799 (make_info_modules_var_func_options_def_group): New function.
1800 (info_module_functions_command): New function.
1801 (info_module_variables_command): New function.
1802 (info_module_var_func_command_completer): New function.
1803 (_initialize_symtab): Register new 'info module functions' and
1804 'info module variables' commands.
1805 * symtab.h (typedef symbol_search_in_module): New typedef.
1806 (search_module_symbols): Declare new function.
1807 * NEWS: Mention new commands.
1808
1809 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1810
1811 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1812 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1813 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1814 MODULES_DOMAIN.
1815 (scan_partial_symbols): Only create partial module symbols for non
1816 declarations.
1817 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1818 and MODULES_DOMAIN.
1819 * symtab.c (search_domain_name): Likewise.
1820 (search_symbols): Likewise.
1821 (print_symbol_info): Likewise.
1822 (symtab_symbol_info): Likewise.
1823 (info_modules_command): New function.
1824 (_initialize_symtab): Register 'info modules' command.
1825 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1826 * NEWS: Mention new 'info modules' command.
1827
1828 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1829
1830 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1831 and $_gdb_maint_setting_str.
1832
1833 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1834
1835 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1836 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1837 (str_value_from_setting, gdb_setting_str_internal_fn)
1838 (gdb_maint_setting_str_internal_fn): New functions.
1839 (_initialize_cli_cmds): Define the new convenience functions.
1840 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1841 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1842
1843 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1844
1845 * agent.c (set_can_use_agent): When the setting is turned on,
1846 look up agent symbols if we don't have them yet.
1847 (agent_new_objfile): Don't look up agent symbols when the agent
1848 setting is off.
1849
1850 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1851
1852 * config.in: Regenerate.
1853
1854 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1855
1856 * configure: Regenerate.
1857 * configure.ac: Check for strerror_r.
1858 * gdbsupport/common-utils.h (safe_strerror): Change return value
1859 to const char * and document that this function is now threadsafe.
1860 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1861 thread_local and call strerror_r, if available.
1862 * utils.c (perror_string): Update.
1863 (print_sys_errmsg): Update.
1864
1865 2019-10-31 Luis Machado <luis.machado@linaro.org>
1866
1867 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1868 objfile_key.
1869 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1870 objfile to fetch per-bfd data.
1871 (arm_find_exidx_entry): Likewise.
1872
1873 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1874
1875 * gdbsupport/agent.c (debug_agent): Change type to bool.
1876 (use_agent): Likewise.
1877 (all_agent_symbols_look_up): Likewise.
1878 (agent_loaded_p): Change return value to bool.
1879 (agent_look_up_symbols): Update.
1880 (agent_capability_check): Change return value to bool.
1881 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1882 (debug_agent): Change type to bool.
1883 (use_agent): Likewise.
1884 (agent_capability_check): Change return value to bool.
1885
1886 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1887
1888 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1889 (build_minimal_symbol_hash_tables): Code to clear the table moved
1890 to clear_minimal_symbol_hash_tables.
1891 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1892 when needed.
1893
1894 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1895
1896 * infcmd.c: Remove includes.
1897 * infrun.c: Remove includes.
1898
1899 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1900
1901 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1902 (grow_vect): Remove declaration.
1903 (ada_type_of_array): Remove declaration.
1904 (ada_update_initial_language): Remove declaration.
1905 (ada_fold_name): Remove declaration.
1906 (ada_fill_in_ada_prototype): Remove declaration.
1907 (user_select_syms): Remove declaration.
1908 (get_selections): Remove declaration.
1909 (ada_tag_type): Remove declaration.
1910 (ada_value_tag): Remove declaration.
1911 (ada_is_others_clause): Remove declaration.
1912 (ada_in_variant): Remove declaration.
1913 (ada_value_struct_elt): Remove declaration.
1914 (ada_attribute_name): Remove declaration.
1915 (ada_system_address_type): Remove declaration.
1916 * ada-lang.c (ada_watch_location_expression): Make static.
1917 (GROW_VECT): Move here from ada-lang.h.
1918 (grow_vect): Make static.
1919 (ada_update_initial_language): Make static.
1920 (ada_fold_name): Make static.
1921 (ada_type_of_array): Make static.
1922 (encoded_ordered_before): Move up.
1923 (sort_choices): Move up.
1924 (print_signatures): Move up.
1925 (ada_print_symbol_signature): Move up.
1926 (get_selections): Move up and make static.
1927 (user_select_syms): Move up and make static.
1928 (ada_value_struct_elt): Move up and make static.
1929 (ada_tag_type): Make static.
1930 (ada_value_tag): Make static.
1931 (ada_is_others_clause): Make static.
1932 (ada_in_variant): Make static.
1933 (ada_attribute_name): Make static.
1934
1935 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1936
1937 * ada-lang.c: Remove includes.
1938 * ada-typeprint.c: Remove includes.
1939 * ada-valprint.c: Remove includes.
1940
1941 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1942
1943 * addrmap.c: Add static assertions of type size, moved from
1944 _initialize_addrmap.
1945 (_initialize_addrmap): Remove.
1946
1947 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1948
1949 * coffread.c (record_minimal_symbol): Update.
1950 (process_coff_symbol): Update.
1951 * dbxread.c (read_dbx_symtab): Update.
1952 * dwarf2read.c (add_partial_symbol): Update.
1953 (fixup_go_packaging): Update.
1954 (load_partial_dies): Update.
1955 (new_symbol): Update.
1956 * elfread.c (record_minimal_symbol): Change signature to use
1957 gdb::string_view instead of name+len.
1958 (elf_symtab_read): Update.
1959 (elf_rel_plt_read): Update.
1960 * mdebugread.c (parse_partial_symbols): Update.
1961 (handle_psymbol_enumerators): Update.
1962 (new_symbol): Update.
1963 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1964 to use gdb::string_view instead of name+len.
1965 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1966 * psympriv.h (add_psymbol_to_list): Likewise.
1967 * psymtab.c (add_psymbol_to_bcache): Likewise.
1968 (add_psymbol_to_list): Likewise.
1969 * stabsread.c (define_symbol): Update.
1970 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1971 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1972 (symbol_set_names): Likewise.
1973 * xcoffread.c (scan_xcoff_symtab): Update.
1974
1975 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1976
1977 * symtab.h (symbol_set_names): Document that copy_name must be
1978 set to true for non-nullterminated strings.
1979 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1980 linkage_name if the entry was not found and we need to demangle.
1981
1982 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1983
1984 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1985 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1986 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1987 * gdbsupport/gdb_binary_search.h: New file.
1988
1989 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1990
1991 * NEWS: Mention new --with-system-gdbinit-dir option.
1992 * config.in: Regenerate.
1993 * configure: Regenerate.
1994 * configure.ac: Add new option --with-system-gdbinit-dir.
1995 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1996 for a ".gdb" suffix.
1997 * main.c (get_init_files): Change system_gdbinit argument to
1998 a vector and return the files in SYSTEM_GDBINIT_DIR in
1999 addition to SYSTEM_GDBINIT.
2000 (captured_main_1): Update.
2001 (print_gdb_help): Update.
2002 * top.c (print_gdb_configuration): Also print the value of
2003 SYSTEM_GDBINIT_DIR.
2004
2005 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2006
2007 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2008 that takes gdb::string_view arguments.
2009
2010 2019-10-26 Tom de Vries <tdevries@suse.de>
2011
2012 * aarch64-linux-tdep.c: Fix typos in comments.
2013 * aarch64-tdep.c: Same.
2014 * ada-lang.c: Same.
2015 * amd64-nat.c: Same.
2016 * arc-tdep.c: Same.
2017 * arch/aarch64-insn.c: Same.
2018 * block.c: Same.
2019 * breakpoint.h: Same.
2020 * btrace.h: Same.
2021 * c-varobj.c: Same.
2022 * cli/cli-decode.c: Same.
2023 * cli/cli-script.c: Same.
2024 * cli/cli-utils.h: Same.
2025 * coff-pe-read.c: Same.
2026 * coffread.c: Same.
2027 * compile/compile-cplus-symbols.c: Same.
2028 * compile/compile-object-run.c: Same.
2029 * completer.c: Same.
2030 * corelow.c: Same.
2031 * cp-support.c: Same.
2032 * demangle.c: Same.
2033 * dwarf-index-write.c: Same.
2034 * dwarf2-frame.c: Same.
2035 * dwarf2-frame.h: Same.
2036 * eval.c: Same.
2037 * frame-base.h: Same.
2038 * frame.h: Same.
2039 * gdbcmd.h: Same.
2040 * gdbtypes.h: Same.
2041 * gnu-nat.c: Same.
2042 * guile/scm-objfile.c: Same.
2043 * i386-tdep.c: Same.
2044 * i386-tdep.h: Same.
2045 * infcall.c: Same.
2046 * infcall.h: Same.
2047 * linux-nat.c: Same.
2048 * m68k-tdep.c: Same.
2049 * macroexp.c: Same.
2050 * memattr.c: Same.
2051 * mi/mi-cmd-disas.c: Same.
2052 * mi/mi-getopt.h: Same.
2053 * mi/mi-main.c: Same.
2054 * minsyms.c: Same.
2055 * nat/aarch64-sve-linux-sigcontext.h: Same.
2056 * objfiles.h: Same.
2057 * ppc-linux-nat.c: Same.
2058 * ppc-linux-tdep.c: Same.
2059 * ppc-tdep.h: Same.
2060 * progspace.h: Same.
2061 * prologue-value.h: Same.
2062 * python/py-evtregistry.c: Same.
2063 * python/py-instruction.h: Same.
2064 * record-btrace.c: Same.
2065 * record-full.c: Same.
2066 * remote.c: Same.
2067 * rs6000-tdep.c: Same.
2068 * ser-tcp.c: Same.
2069 * sol-thread.c: Same.
2070 * sparc-sol2-tdep.c: Same.
2071 * sparc64-tdep.c: Same.
2072 * stabsread.c: Same.
2073 * symfile.c: Same.
2074 * symtab.h: Same.
2075 * target.c: Same.
2076 * tracepoint.c: Same.
2077 * tui/tui-data.h: Same.
2078 * tui/tui-io.c: Same.
2079 * tui/tui-win.c: Same.
2080 * tui/tui.c: Same.
2081 * unittests/rsp-low-selftests.c: Same.
2082 * user-regs.h: Same.
2083 * utils.c: Same.
2084 * utils.h: Same.
2085 * valarith.c: Same.
2086 * valops.c: Same.
2087 * valprint.c: Same.
2088 * valprint.h: Same.
2089 * value.c: Same.
2090 * value.h: Same.
2091 * varobj.c: Same.
2092 * x86-nat.h: Same.
2093 * xtensa-tdep.c: Same.
2094
2095 2019-10-25 Ali Tamur <tamur@google.com>
2096
2097 * charset.c (find_charset_names): Reflect API change.
2098
2099 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2100
2101 * symtab.c (struct demangled_name_entry): Change demangled name
2102 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2103 part of the struct anymore.
2104 (symbol_set_names): No longer obstack allocate + copy the demangled
2105 name, just store the allocated name from bfd.
2106
2107 2019-10-25 Tom Tromey <tromey@adacore.com>
2108
2109 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2110 (bsearch_cie_cmp, add_cie): Remove.
2111 (find_cie): Reimplement.
2112 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2113 (dwarf2_build_frame_info): Update.
2114
2115 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2116
2117 PR gdb/25126
2118 * symfile.c (reread_symbols): Call forget_cached_source_info to
2119 clear the stale source cache.
2120
2121 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2122
2123 * configure: Regenerate.
2124 * configure.ac: Remove code that sets python_has_threads.
2125
2126 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2127
2128 * config.in: Regenerate.
2129 * configure: Regenerate.
2130 * configure.ac: Remove the code that uses sed to get the python
2131 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2132
2133 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2134
2135 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2136 error paths.
2137
2138 2019-10-23 Tom Tromey <tom@tromey.com>
2139
2140 * arc-tdep.c: Remove ".." from include.
2141 * frv-tdep.c: Remove ".." from include.
2142 * lm32-tdep.c: Remove ".." from include.
2143 * microblaze-tdep.c: Remove ".." from include.
2144 * or1k-tdep.h: Remove ".." from include.
2145 * s12z-tdep.c: Remove ".." from include.
2146 * Makefile.in (OPCODES_CFLAGS): Add comment.
2147 (TOP_CFLAGS): New variable.
2148 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2149
2150 2019-10-23 Tom Tromey <tom@tromey.com>
2151
2152 * Makefile.in (READLINE_DIR): Update.
2153
2154 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2155
2156 * infcall.c (call_function_by_hand_dummy): Fix the function
2157 comment. And extract out a code section into...
2158 (reserve_stack_space): ...this new function.
2159
2160 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2161
2162 * infcall.c (value_arg_coerce): Remove an unused parameter.
2163 (call_function_by_hand_dummy): Update the call to
2164 'value_arg_coerce'.
2165
2166 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2167
2168 * infcall.c (call_function_by_hand_dummy): Refactor.
2169
2170 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2171
2172 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2173
2174 2019-10-23 Tom Tromey <tom@tromey.com>
2175
2176 * configure: Rebuild.
2177 * configure.ac: Don't check for sigprocmask.
2178 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2179
2180 2019-10-23 Tom Tromey <tom@tromey.com>
2181
2182 * configure: Rebuild.
2183 * acinclude.m4: Use m4_include, not sinclude.
2184
2185 2019-10-23 Tom de Vries <tdevries@suse.de>
2186
2187 PR breakpoints/24687
2188 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2189
2190 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2191
2192 * symtab.c (struct demangled_name_entry) <language>: Change from
2193 bitfield to regular variable.
2194
2195 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2196
2197 * symtab.c (struct demangled_name_entry): Add a constructor.
2198 (free_demangled_name_entry): New function to call the destructor
2199 for demangled_name_entry.
2200 (create_demangled_names_hash): Pass free_demangled_name_entry to
2201 htab_create_alloc.
2202 (symbol_set_names): Call placement new for demangled_name_entry.
2203 * utils.c: No longer include xxhash.h here, now that fast_hash
2204 is inlined in the header.
2205 * utils.h: Instead, include it here.
2206
2207 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2208
2209 * Makefile.in: Link with libxxhash.
2210 * config.in: Regenerate.
2211 * configure: Regenerate.
2212 * configure.ac: Search for libxxhash.
2213 * utils.c (fast_hash): Use xxhash if present.
2214
2215 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2216
2217 * utils.h (fast_hash): New function.
2218 * symtab.c (hash_demangled_name_entry): Call new function
2219 fast_hash.
2220
2221 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2222
2223 * symtab.c (struct demangled_name_entry): Change type of mangled
2224 to gdb::string_view. Also adds a constructor that takes the
2225 mangled name.
2226 (hash_demangled_name_entry): Update.
2227 (eq_demangled_name_entry): Update.
2228 (free_demangled_name_entry): New function to call the destructor
2229 now that this is not a POD anymore.
2230 (create_demangled_names_hash): Pass free_demangled_name_entry to
2231 htab_create_alloc.
2232 (symbol_set_names): Update.
2233
2234 2019-10-21 Ali Tamur <tamu@google.com>
2235
2236 * dwarf2read.c (dir_index): Change type.
2237 (file_name_index): Likewise.
2238 (line_header::include_dir_at): Change comment and implementation on
2239 whether it is DWARF 5.
2240 (line_header::is_valid_file_index): New function.
2241 (line_header::file_name_at): Change comment and implementation on
2242 whether it is DWARF 5.
2243 (line_header::file_names): Change to private field renamed as
2244 m_file_names and introduce a new accessor method.
2245 (line_header::file_names_size): New method.
2246 (line_header::include_dirs): Change to private field and rename as
2247 m_include_dirs.
2248 (dw2_get_file_names_reader): Define local var at a smaller scope and
2249 reflect API change.
2250 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2251 (process_structure_scope): Likewise.
2252 (line_header::add_include_dir): Change message and reflect renaming.
2253 (line_header::add_file_name): Likewise.
2254 (read_formatted_entries): Handle DW_FORM_data16.
2255 (dwarf_decode_line_header): Fix line header length calculation.
2256 (psymtab_include_file_name): Change comment and API.
2257 (lnp_state_machine::m_file): Update comment and reflect type change.
2258 (lnp_state_machine::record_line): Reflect type change.
2259 (dwarf_decode_lines): Reflect API change.
2260 (file_file_name): Likewise.
2261 (file_full_name): Likewise.
2262
2263 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2264
2265 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2266
2267 2019-10-21 Tom Tromey <tom@tromey.com>
2268
2269 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2270
2271 2019-10-21 Tom Tromey <tom@tromey.com>
2272
2273 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2274 NM_H. Use AC_CONFIG_LINKS.
2275 * configure: Rebuild.
2276 * Makefile.in (NM_H): New variable.
2277 (generated_files): Add NM_H. Remove gcore.
2278 (nm.h, stamp-nmh): New targets.
2279
2280 2019-10-20 Tom Tromey <tom@tromey.com>
2281
2282 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2283 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2284 obsolete comment.
2285 (put_objfile_before): Now static.
2286
2287 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2288
2289 * gdbsupport/common-utils.h (startswith): Change return type to
2290 bool.
2291
2292 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2293
2294 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2295 * breakpoint.c (bp_locations_compare): Rename to...
2296 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2297 (update_global_location_list): Use std::sort instead of qsort.
2298 * buildsym.c (compare_line_numbers): Rename to...
2299 (lte_is_less_than): ...this, and change to std::sort semantics.
2300 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2301 instead of qsort.
2302 * disasm.c (compare_lines): Rename to...
2303 (line_is_less_than): ...this, and change to std::sort semantics.
2304 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2305 of qsort.
2306 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2307 (fde_is_less_than): ...this, and change to std::sort semantics.
2308 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2309 * mdebugread.c (compare_blocks):
2310 (block_is_less_than): ...this, and change to std::sort semantics.
2311 (sort_blocks): Call std::sort instead of qsort.
2312 * objfiles.c (qsort_cmp): Rename to...
2313 (sort_cmp): ...this, and change to std::sort semantics.
2314 (update_section_map): Call std::sort instead of qsort.
2315 * remote.c (compare_pnums): Remove.
2316 (map_regcache_remote_table): Call std::sort instead of qsort.
2317 * utils.c (compare_positive_ints): Remove.
2318 * utils.h (compare_positive_ints): Remove.
2319 * xcoffread.c (compare_lte): Remove.
2320 (arrange_linetable): Call std::sort instead of qsort.
2321
2322 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2323
2324 * symfile.c (init_entry_point_info): Fix typo.
2325 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2326
2327 2019-10-18 Tom de Vries <tdevries@suse.de>
2328
2329 * aarch64-tdep.c: Fix typos in comments.
2330 * ada-lang.c: Same.
2331 * ada-tasks.c: Same.
2332 * alpha-tdep.c: Same.
2333 * alpha-tdep.h: Same.
2334 * amd64-nat.c: Same.
2335 * amd64-windows-tdep.c: Same.
2336 * arc-tdep.c: Same.
2337 * arc-tdep.h: Same.
2338 * arch-utils.c: Same.
2339 * arm-nbsd-tdep.c: Same.
2340 * arm-tdep.c: Same.
2341 * ax-gdb.c: Same.
2342 * blockframe.c: Same.
2343 * btrace.c: Same.
2344 * c-varobj.c: Same.
2345 * coff-pe-read.c: Same.
2346 * coffread.c: Same.
2347 * cris-tdep.c: Same.
2348 * darwin-nat.c: Same.
2349 * dbxread.c: Same.
2350 * dcache.c: Same.
2351 * disasm.c: Same.
2352 * dtrace-probe.c: Same.
2353 * dwarf-index-write.c: Same.
2354 * dwarf2-frame-tailcall.c: Same.
2355 * dwarf2-frame.c: Same.
2356 * dwarf2read.c: Same.
2357 * eval.c: Same.
2358 * exceptions.c: Same.
2359 * fbsd-tdep.c: Same.
2360 * findvar.c: Same.
2361 * frame.c: Same.
2362 * frv-tdep.c: Same.
2363 * gnu-v3-abi.c: Same.
2364 * go32-nat.c: Same.
2365 * h8300-tdep.c: Same.
2366 * hppa-tdep.c: Same.
2367 * i386-linux-tdep.c: Same.
2368 * i386-tdep.c: Same.
2369 * ia64-libunwind-tdep.c: Same.
2370 * ia64-tdep.c: Same.
2371 * infcmd.c: Same.
2372 * infrun.c: Same.
2373 * linespec.c: Same.
2374 * linux-nat.c: Same.
2375 * linux-thread-db.c: Same.
2376 * machoread.c: Same.
2377 * mdebugread.c: Same.
2378 * mep-tdep.c: Same.
2379 * mn10300-tdep.c: Same.
2380 * namespace.c: Same.
2381 * objfiles.c: Same.
2382 * opencl-lang.c: Same.
2383 * or1k-tdep.c: Same.
2384 * osabi.c: Same.
2385 * ppc-linux-nat.c: Same.
2386 * ppc-linux-tdep.c: Same.
2387 * ppc-sysv-tdep.c: Same.
2388 * printcmd.c: Same.
2389 * procfs.c: Same.
2390 * record-btrace.c: Same.
2391 * record-full.c: Same.
2392 * remote-fileio.c: Same.
2393 * remote.c: Same.
2394 * rs6000-tdep.c: Same.
2395 * s12z-tdep.c: Same.
2396 * score-tdep.c: Same.
2397 * ser-base.c: Same.
2398 * ser-go32.c: Same.
2399 * skip.c: Same.
2400 * sol-thread.c: Same.
2401 * solib-svr4.c: Same.
2402 * solib.c: Same.
2403 * source.c: Same.
2404 * sparc-nat.c: Same.
2405 * sparc-sol2-tdep.c: Same.
2406 * sparc-tdep.c: Same.
2407 * sparc64-tdep.c: Same.
2408 * stabsread.c: Same.
2409 * stack.c: Same.
2410 * symfile.c: Same.
2411 * symtab.c: Same.
2412 * target-descriptions.c: Same.
2413 * target-float.c: Same.
2414 * thread.c: Same.
2415 * utils.c: Same.
2416 * valops.c: Same.
2417 * valprint.c: Same.
2418 * value.c: Same.
2419 * varobj.c: Same.
2420 * windows-nat.c: Same.
2421 * xcoffread.c: Same.
2422 * xstormy16-tdep.c: Same.
2423 * xtensa-tdep.c: Same.
2424
2425 2019-10-17 Tom Tromey <tromey@adacore.com>
2426
2427 * configure: Rebuild.
2428 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2429 in AC_CONFIG_FILES invocation.
2430 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2431 new-style config.status invocation.
2432
2433 2019-10-17 Tom de Vries <tdevries@suse.de>
2434
2435 * arm-nbsd-nat.c: Fix typos in comments.
2436 * arm-tdep.c: Same.
2437 * darwin-nat-info.c: Same.
2438 * dwarf2read.c: Same.
2439 * elfread.c: Same.
2440 * event-top.c: Same.
2441 * findvar.c: Same.
2442 * gdbtypes.c: Same.
2443 * hppa-tdep.c: Same.
2444 * i386-tdep.c: Same.
2445 * jit.c: Same.
2446 * main.c: Same.
2447 * mdebugread.c: Same.
2448 * moxie-tdep.c: Same.
2449 * nto-procfs.c: Same.
2450 * osabi.c: Same.
2451 * ppc-linux-tdep.c: Same.
2452 * remote.c: Same.
2453 * riscv-tdep.c: Same.
2454 * s390-tdep.c: Same.
2455 * sh-tdep.c: Same.
2456 * sparc-linux-tdep.c: Same.
2457 * sparc-nat.c: Same.
2458 * stack.c: Same.
2459 * target-descriptions.c: Same.
2460 * top.c: Same.
2461 * varobj.c: Same.
2462
2463 2019-10-16 Tom Tromey <tom@tromey.com>
2464
2465 * objfiles.h (struct objfile) <original_name>: Now const.
2466
2467 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2468
2469 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2470 pass on to sigsetjmp's second argument.
2471 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2472
2473 2019-10-16 Keith Seitz <keiths@redhat.com>
2474
2475 PR gdb/23567
2476 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2477 sections whose size is greater than the file size.
2478
2479 2019-10-16 Jim Wilson <jimw@sifive.com>
2480
2481 * riscv-tdep.c (riscv_gcc_target_options): New.
2482 (riscv_gnu_triplet_regexp): New.
2483 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2484 set_gdbarch_gnu_triplet_regexp.
2485
2486 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2487
2488 * Makefile.in: Add xml-builtin.h.
2489 * features/feature_to_c.sh: Add an include for xml-builtin.h
2490 to ensure that the compiler checks that the types match.
2491 * xml-builtin.h: New file.
2492 * xml-support.c (fetch_xml_builtin): Add missing const.
2493 * xml-support.h: Remove declaration of xml_builtins.
2494
2495 2019-10-16 Tom de Vries <tdevries@suse.de>
2496
2497 PR tdep/25096
2498 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2499 (amd64_classify_aggregate): ... here.
2500 (amd64_classify_aggregate_field): Handled fiels of nested structs
2501 recursively.
2502
2503 2019-10-16 Tom de Vries <tdevries@suse.de>
2504
2505 PR tdep/24104
2506 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2507 that handles 'theclass'.
2508
2509 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2510
2511 * linespec.c (decode_digits_ordinary): Update comment.
2512 * make-target-delegates: No longer need to handle VEC case.
2513 * memrange.c (normalize_mem_ranges): Update comment.
2514 * namespace.c (add_using_directive): Update comment.
2515 * objc-lang.c (uniquify_strings): Update comment.
2516 * ppc-linux-nat.c (struct thread_points): Update comment.
2517 * probe.h (find_probes_in_objfile): Update comment.
2518 * target.h (enum flash_preserve_mode): Update comment.
2519 * varobj.c (varobj_restrict_range): Update comment.
2520 * varobj.h (varobj_list_children): Update comment.
2521
2522 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2523
2524 * Makefile.in: Remove references to vec.h and vec.c.
2525 * aarch64-tdep.c: No longer include vec.h.
2526 * ada-lang.c: Likewise.
2527 * ada-lang.h: Likewise.
2528 * arm-tdep.c: Likewise.
2529 * ax.h: Likewise.
2530 * breakpoint.h: Likewise.
2531 * charset.c: Likewise.
2532 * cp-support.h: Likewise.
2533 * dtrace-probe.c: Likewise.
2534 * dwarf2read.c: Likewise.
2535 * extension.h: Likewise.
2536 * gdb_bfd.c: Likewise.
2537 * gdbsupport/gdb_vecs.h: Likewise.
2538 * gdbsupport/vec.c: Remove.
2539 * gdbsupport/vec.h: Remove.
2540 * gdbthread.h: Likewise.
2541 * guile/scm-type.c: Likewise.
2542 * inline-frame.c: Likewise.
2543 * machoread.c: Likewise.
2544 * memattr.c: Likewise.
2545 * memrange.h: Likewise.
2546 * namespace.h: Likewise.
2547 * nat/linux-btrace.h: Likewise.
2548 * osdata.c: Likewise.
2549 * parser-defs.h: Likewise.
2550 * progspace.h: Likewise.
2551 * python/py-type.c: Likewise.
2552 * record-btrace.c: Likewise.
2553 * rust-exp.y: Likewise.
2554 * solib-target.c: Likewise.
2555 * stap-probe.c: Likewise.
2556 * target-descriptions.c: Likewise.
2557 * target-memory.c: Likewise.
2558 * target.h: Likewise.
2559 * varobj.c: Likewise.
2560 * varobj.h: Likewise.
2561 * xml-support.h: Likewise.
2562
2563 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2564
2565 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2566 Update for new std::vector based implementation.
2567 (process_psymtab_comp_unit_reader): Likewise.
2568 (scan_partial_symbols): Likewise.
2569 (recursively_compute_inclusions): Likewise.
2570 (compute_compunit_symtab_includes): Likewise.
2571 (process_imported_unit_die): Likewise.
2572 (queue_and_load_dwo_tu): Likewise.
2573 (follow_die_sig_1): Likewise.
2574 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2575 (typedef dwarf2_per_cu_ptr): Remove.
2576 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2577 function.
2578 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2579 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2580 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2581 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2582 std::vector.
2583
2584 2019-10-15 Tom Tromey <tromey@adacore.com>
2585
2586 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2587 TID.
2588
2589 2019-10-15 Tom Tromey <tromey@adacore.com>
2590
2591 * windows-nat.c (windows_nat_target::fetch_registers)
2592 (windows_nat_target::store_registers): Rename "pid" to "tid".
2593
2594 2019-10-15 Tom Tromey <tromey@adacore.com>
2595
2596 * gdbarch.h, gdbarch.c: Rebuild.
2597 * gdbarch.sh (gcc_target_options): Change return type to
2598 std::string.
2599 * compile/compile.c (get_args): Update.
2600 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2601 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2602 std::string.
2603 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2604 std::string.
2605 * arch-utils.c (default_gcc_target_options): Return std::string.
2606 * arch-utils.h (default_gcc_target_options): Return std::string.
2607 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2608
2609 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2610
2611 * breakpoint.c (breakpoint_chain): Make static.
2612 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2613 of accessing breakpoint_chain.
2614
2615 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2616
2617 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2618 to a gdb::function_view and return value to bool.
2619 * breakpoint.h (iterate_over_breakpoints): Likewise.
2620 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2621 (pop_dummy_frame): Update.
2622 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2623 (gdbscm_breakpoints): Update.
2624 * python/py-breakpoint.c (build_bp_list): Update.
2625 (gdbpy_breakpoints): Update.
2626 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2627 Update.
2628 (bpfinishpy_handle_stop): Update.
2629 (bpfinishpy_handle_exit): Update.
2630 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2631 (svr4_update_solib_event_breakpoints): Update.
2632
2633 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2634
2635 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2636 when unwrapping single-field structs.
2637
2638 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2639
2640 * dwarf2read.c: Remove includes.
2641
2642 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2643
2644 * ui-out.c (ui_out::call_do_message): Silence
2645 -Wformat-nonliteral warning.
2646
2647 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2648
2649 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2650 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2651 include: readline/tilde.h.
2652
2653 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2654
2655 * remote.c (remote_target::get_trace_status): Remove declaration of
2656 trace_regblock_size.
2657
2658 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2659
2660 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2661 (show_user): Remove declaration of cmdlist.
2662 * cli/cli-cmds.h (max_user_call_depth): Declare.
2663 * cli/cli-script.c (execute_user_command): Remove declaration
2664 of max_user_call_depth.
2665
2666 2019-10-11 Jim Wilson <jimw@sifive.com>
2667
2668 * gdbsupport/print-utils.h (pulongest): Fix comment.
2669 (plongest): Likewise.
2670 (phex): Add missing comment, mention leading zeros.
2671 (phex_nz): Add mention of no leading zeros to comment.
2672
2673 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2674 plongest instead of unsigned long long cast.
2675
2676 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2677
2678 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2679 for external_editor_command and gdbtk_test.
2680
2681 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2682
2683 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2684 * varobj.c (varobjdebug): Move comment to...
2685 * varobj.h (varobjdebug): ...here, and declare.
2686
2687 2019-10-09 Tom Tromey <tom@tromey.com>
2688
2689 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2690 erase_data_content.
2691
2692 2019-10-09 Tom Tromey <tom@tromey.com>
2693
2694 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2695 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2696 * tui/tui-command.c (tui_cmd_window::resize)
2697 (tui_refresh_cmd_win): Update.
2698 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2699 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2700 * tui/tui-data.c (~tui_gen_win_info): Remove.
2701 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2702 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2703 (tui_redisplay_readline, tui_mld_flush)
2704 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2705 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2706 (tui_data_window::erase_data_content)
2707 (tui_data_item_window::rerender)
2708 (tui_data_item_window::refresh_window): Update.
2709 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2710 (box_win, tui_gen_win_info::make_window)
2711 (tui_gen_win_info::make_visible): Update.
2712 (tui_delete_win): Remove.
2713 * tui/tui-winsource.c
2714 (tui_source_window_base::do_erase_source_content): Update.
2715 (tui_show_source_line, tui_source_window_base::update_tab_width)
2716 (tui_source_window_base::update_exec_info): Update.
2717 * tui/tui-data.h (struct curses_deleter): New.
2718 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2719 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2720
2721 2019-10-09 Tom Tromey <tom@tromey.com>
2722
2723 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2724
2725 2019-10-09 Tom Tromey <tom@tromey.com>
2726
2727 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2728 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2729
2730 2019-10-09 Tom Tromey <tom@tromey.com>
2731
2732 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2733 window height directly.
2734 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2735 declare.
2736 * tui/tui-layout.c (tui_default_win_height): Remove.
2737 (tui_default_win_viewport_height): Remove.
2738
2739 2019-10-09 Tom Tromey <tom@tromey.com>
2740
2741 * tui/tui.h: Remove comments.
2742
2743 2019-10-09 Tom de Vries <tdevries@suse.de>
2744
2745 * python/lib/gdb/printer/bound_registers.py: Use
2746 '^builtin_type_bound128' as regexp argument for
2747 add_builtin_pretty_printer.
2748
2749 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2750
2751 * guile/guile.c (guile_extension_script_ops): Remove forward
2752 declaration and mark as static.
2753 (guile_script_ops): Likewise.
2754 (extension_language_guile): Move further down in the file so
2755 it can reference the definitions for guile_{extension_,}script_ops.
2756
2757 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2758
2759 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2760 except SORTL, DFLTCC, and KDSA.
2761
2762 2019-10-08 Tom Tromey <tromey@adacore.com>
2763
2764 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2765 (struct safe_symbol_file_add_args): Remove.
2766
2767 2019-10-08 Tom Tromey <tromey@adacore.com>
2768
2769 * windows-nat.c: Don't include buildsym-legacy.h.
2770
2771 2019-10-08 Tom Tromey <tromey@adacore.com>
2772
2773 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2774
2775 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2776
2777 * gdbtypes.c (overload_debug): Move comment to header.
2778 * gdbtypes.h (overload_debug): Declare.
2779 * valops.c: Remove declaration of overload_debug, instead
2780 include gdbtypes.h.
2781
2782 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2783
2784 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2785 through _().
2786 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2787 move comment...
2788 * language.h (lang_frame_mismatch_warn): ... here. Also add
2789 declaration.
2790 * top.c (lang_frame_mismatch_warn): Remove declaration.
2791 (check_frame_language_change): Pass lang_frame_mismatch_warn
2792 through _().
2793
2794 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2795
2796 * c-lang.h (vtbl_ptr_name): Declare.
2797 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2798 it from the header.
2799 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2800
2801 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2802
2803 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2804 gdb_static_assert.
2805
2806 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2807
2808 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2809 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2810 * ctfread.c: New file.
2811 * ctfread.h: New file.
2812 * elfread.c: Include ctfread.h.
2813 (struct elfinfo text_p): New member ctfsect.
2814 (elf_locate_sections): Mark CTF section.
2815 (elf_symfile_read): Call elfctf_build_psymtabs.
2816 * Makefile.in (LIBCTF): Add.
2817 (CLIBS): Use it.
2818 (CDEPS): Likewise.
2819 (DIST): Add ctfread.c.
2820
2821 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2822
2823 * ctfread.c (struct nextfield): Renamed to ...
2824 (struct ctf_nextfield): ... this.
2825 (struct field_info): Renamed to ...
2826 (strut ctf_field_info): ... this.
2827 (attach_fields_to_type): Update for renamed structures.
2828 (ctf_add_member_cb): Likewise.
2829 (ctf_add_enum_member_cb): Likewise.
2830 (process_struct_members): Likewise.
2831 (process_enum_type): Likewise.
2832
2833 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2834
2835 * tracectf.h: Rename, was ctf.h.
2836 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2837 * tracefile.c: Likewise.
2838 * tracepoint.c: Remove unused include ctf.h.
2839 * mi/mi-main.c: Likewise.
2840 * Makefile.in Replace ctf.c with tracectf.c.
2841
2842 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2843
2844 * version.in: Change version number to "9.0.50.DATE-git".
2845
2846 2019-10-03 Tom Tromey <tom@tromey.com>
2847
2848 PR rust/24976:
2849 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2850
2851 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2852
2853 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2854 cp_search_name_hash.
2855 * NEWS: Add entry about nested function support.
2856
2857 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2858 Andrew Burgess <andrew.burgess@embecosm.com>
2859
2860 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2861 for nested static variables when searchin VAR_DOMAIN.
2862 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2863 global scope, update comment.
2864 (add_partial_subprogram): Call add_partial_subprogram recursively
2865 for nested subroutines when processinng Fortran.
2866 (load_partial_dies): Process the child entities of a subprogram
2867 when processing Fortran.
2868 (partial_die_parent_scope): Handle building scope
2869 for Fortran nested functions.
2870 (process_die): Record that nested functions have a scope.
2871 (new_symbol): Always record Fortran subprograms on the global
2872 symbol list.
2873 (determine_prefix): How to build the prefix for Fortran
2874 subprograms.
2875
2876 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2877
2878 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2879 have just sent the thread a SIGSTOP and are waiting for it to
2880 arrive.
2881
2882 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2883
2884 * btrace.c (btrace_add_pc): Remove whitespace before the template
2885 parameter in 'std::vector <...>'.
2886 (parse_xml_btrace_block): Likewise.
2887 (btrace_maint_decode_pt): Likewise.
2888 (btrace_maint_update_packets): Likewise.
2889 (btrace_maint_print_packets): Likewise.
2890 * btrace.h (struct btrace_maint_info): Likewise.
2891 * dwarf2read.c (struct type_unit_group): Likewise.
2892 (build_type_psymtabs_reader): Likewise.
2893 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2894 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2895 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2896
2897 2019-10-03 Tom de Vries <tdevries@suse.de>
2898
2899 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2900 the first line of the help text for set/show style metadata.
2901
2902 2019-10-02 Tom Tromey <tromey@adacore.com>
2903
2904 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2905 * gdbsupport/common-inferior.c: New file.
2906 * infcmd.c (startup_with_shell): Don't define.
2907 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2908 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2909 * inferior.h (startup_with_shell): Don't declare.
2910
2911 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2912
2913 * gdbsupport/gdb_assert.h: Include errors.h.
2914 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2915
2916 2019-10-02 Tom Tromey <tromey@adacore.com>
2917
2918 * NEWS: Add $_ada_exception entry.
2919 * ada-lang.c (struct ada_catchpoint): Add constructor.
2920 <m_kind>: New member.
2921 (allocate_location_exception, re_set_exception): Remove
2922 "ex" parameter.
2923 (should_stop_exception): Compute $_ada_exception.
2924 (check_status_exception, print_it_exception)
2925 (print_one_exception, print_mention_exception): Remove
2926 "ex" parameter.
2927 (allocate_location_catch_exception, re_set_catch_exception)
2928 (check_status_exception, print_it_catch_exception)
2929 (print_one_catch_exception, print_mention_catch_exception)
2930 (print_recreate_catch_exception)
2931 (allocate_location_catch_exception_unhandled)
2932 (re_set_catch_exception_unhandled)
2933 (check_status_exception, print_it_catch_exception_unhandled)
2934 (print_one_catch_exception_unhandled)
2935 (print_mention_catch_exception_unhandled)
2936 (print_recreate_catch_exception_unhandled)
2937 (allocate_location_catch_assert, re_set_catch_assert)
2938 (check_status_assert, print_it_catch_assert)
2939 (print_one_catch_assert, print_mention_catch_assert)
2940 (print_recreate_catch_assert)
2941 (allocate_location_catch_handlers, re_set_catch_handlers)
2942 (check_status_handlers, print_it_catch_handlers)
2943 (print_one_catch_handlers, print_mention_catch_handlers)
2944 (print_recreate_catch_handlers): Remove.
2945 (create_ada_exception_catchpoint): Update.
2946 (initialize_ada_catchpoint_ops): Update.
2947
2948 2019-10-02 Tom Tromey <tromey@adacore.com>
2949
2950 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2951 (create_excep_cond_exprs): Simplify exception string computation.
2952 (ada_exception_catchpoint_cond_string): Likewise.
2953
2954 2019-10-02 Tom Tromey <tromey@adacore.com>
2955
2956 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2957 * ada-lang.c (lesseq_defined_than): Handle
2958 LOC_STATIC.
2959 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2960 parameter.
2961 (dwarf2_has_info): Likewise.
2962 (new_symbol): Set maybe_copied on symbol when
2963 appropriate.
2964 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2965 parameter.
2966 <can_copy>: New member.
2967 * elfread.c (record_minimal_symbol): Set maybe_copied
2968 on symbol when appropriate.
2969 (elf_symfile_read): Update call to dwarf2_has_info.
2970 * minsyms.c (lookup_minimal_symbol_linkage): New
2971 function.
2972 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2973 * symtab.c (get_symbol_address, get_msymbol_address):
2974 New functions.
2975 * symtab.h (get_symbol_address, get_msymbol_address):
2976 Declare.
2977 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2978 maybe_copied.
2979 (struct symbol, struct minimal_symbol) <maybe_copied>:
2980 New member.
2981
2982 2019-10-02 Tom Tromey <tromey@adacore.com>
2983
2984 * source.c (struct current_source_location): New.
2985 (current_source_key): New global.
2986 (current_source_symtab, current_source_line)
2987 (current_source_pspace): Remove.
2988 (get_source_location): New function.
2989 (get_current_source_symtab_and_line)
2990 (set_default_source_symtab_and_line)
2991 (set_current_source_symtab_and_line)
2992 (clear_current_source_symtab_and_line, select_source_symtab)
2993 (info_source_command, print_source_lines_base)
2994 (info_line_command, search_command_helper, _initialize_source):
2995 Update.
2996
2997 2019-10-02 Tom Tromey <tromey@adacore.com>
2998
2999 * source.c (select_source_symtab): Don't call
3000 decode_line_with_current_source.
3001
3002 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3003
3004 * symtab.c (lookup_global_symbol): Search global block.
3005
3006 2019-10-02 Tom Tromey <tromey@adacore.com>
3007
3008 * coffread.c (process_coff_symbol): Update.
3009 * dwarf2read.c (var_decode_location, new_symbol): Update.
3010 * mdebugread.c (parse_symbol): Update.
3011 * objfiles.c (relocate_one_symbol): Update.
3012 * stabsread.c (define_symbol, fix_common_block)
3013 (scan_file_globals): Update.
3014 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3015 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3016 * xcoffread.c (process_xcoff_symbol): Update.
3017
3018 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3019
3020 * MAINTAINERS: Update my email address.
3021
3022 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3023
3024 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3025 std::vector.
3026 (build_type_psymtabs_reader): Update for std::vector.
3027 (build_type_psymtab_dependencies): Likewise.
3028 * dwarf2read.h: Remove use of DEF_VEC_P.
3029 (typedef sig_type_ptr): Delete.
3030
3031 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3032
3033 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3034 to std::vector.
3035 (btrace_maint_decode_pt): Likewise, and move allocation of the
3036 vector outside of the loop.
3037 (btrace_maint_update_packets): Update to handle change from VEC to
3038 std::vector.
3039 (btrace_maint_print_packets): Likewise.
3040 (maint_info_btrace_cmd): Likewise.
3041 * btrace.h: Remove use of DEF_VEC_O.
3042 (typedef btrace_pt_packet_s): Delete.
3043 (struct btrace_maint_info) <packets>: Change fromm VEC to
3044 std::vector.
3045 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3046
3047 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3048
3049 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3050 make accesses into the vector constant references.
3051 (btrace_add_pc): Update for std::vector.
3052 (btrace_stitch_bts): Likewise.
3053 (parse_xml_btrace_block): Likewise.
3054 (btrace_maint_update_packets): Likewise.
3055 (btrace_maint_print_packets): Likewise.
3056 (maint_info_btrace_cmd): Likewise.
3057 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3058 std::vector.
3059 (btrace_data::empty): Likewise.
3060 (btrace_data_append): Likewise.
3061 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3062 (typedef btrace_block_s): Delete.
3063 (struct btrace_block): Add constructor.
3064 (struct btrace_data_bts) <blocks>: Change to std::vector.
3065 * nat/linux-btrace.c (perf_event_read_bts): Update for
3066 std::vector.
3067 (linux_read_bts): Likewise.
3068
3069 2019-10-01 Tom Tromey <tom@tromey.com>
3070
3071 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3072
3073 2019-10-01 Tom Tromey <tom@tromey.com>
3074
3075 * stack.c (print_frame, info_frame_command_core): Use
3076 styled_string.
3077 * linux-thread-db.c (try_thread_db_load_1)
3078 (try_thread_db_load_from_pdir_1): Use styled_string.
3079 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3080 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3081 (maybe_print_unsupported_script_warning)
3082 (maybe_print_script_not_found_warning): Use styled_string.
3083 * ada-lang.c (user_select_syms): Use styled_string.
3084
3085 2019-10-01 Tom Tromey <tom@tromey.com>
3086
3087 * p-lang.c (pascal_printstr): Use metadata style.
3088 * value.c (show_convenience): Use metadata style.
3089 * valprint.c (valprint_check_validity, val_print_optimized_out)
3090 (val_print_not_saved, val_print_unavailable)
3091 (val_print_invalid_address, generic_val_print, val_print)
3092 (value_check_printable, val_print_array_elements): Use metadata
3093 style.
3094 * ui-out.h (class ui_out) <field_fmt>: New overload.
3095 <do_field_fmt>: Add style parameter.
3096 * ui-out.c (ui_out::field_fmt): New overload.
3097 * typeprint.c (type_print_unknown_return_type)
3098 (val_print_not_allocated, val_print_not_associated): Use metadata
3099 style.
3100 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3101 parameter.
3102 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3103 * tracepoint.c (tvariables_info_1): Use metadata style.
3104 * stack.c (print_frame_arg, print_frame_info, print_frame)
3105 (info_frame_command_core): Use metadata style.
3106 * skip.c (info_skip_command): Use metadata style.
3107 * rust-lang.c (rust_print_enum): Use metadata style.
3108 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3109 metadata style.
3110 * python/py-framefilter.c (py_print_single_arg): Use metadata
3111 style.
3112 * printcmd.c (do_one_display, print_variable_and_value): Use
3113 metadata style.
3114 * p-valprint.c (pascal_val_print)
3115 (pascal_object_print_value_fields): Use metadata style.
3116 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3117 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3118 parameter.
3119 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3120 * m2-valprint.c (m2_print_long_set): Use metadata style.
3121 * m2-typeprint.c (m2_print_type): Use metadata style.
3122 * infcmd.c (print_return_value_1): Use metadata style.
3123 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3124 * f-valprint.c (info_common_command_for_block): Use metadata
3125 style.
3126 * f-typeprint.c (f_type_print_base): Use metadata style.
3127 * expprint.c (print_subexp_standard): Use metadata style.
3128 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3129 * cli/cli-style.h (class cli_style_option): Add constructor.
3130 (metadata_style): Declare.
3131 * cli/cli-style.c (metadata_style): New global.
3132 (_initialize_cli_style): Register metadata style.
3133 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3134 parameter.
3135 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3136 * c-typeprint.c (c_type_print_base_struct_union)
3137 (c_type_print_base_1): Use metadata style.
3138 * breakpoint.c (watchpoint_value_print)
3139 (print_one_breakpoint_location): Use metadata style.
3140 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3141 style.
3142 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3143 style.
3144 * ada-valprint.c (val_print_packed_array_elements, printstr)
3145 (print_field_values, ada_val_print_ref, ada_val_print): Use
3146 metadata style.
3147 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3148 style.
3149 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3150 style.
3151 * ada-lang.c (user_select_syms): Use metadata style.
3152
3153 2019-10-01 Tom Tromey <tom@tromey.com>
3154
3155 * cli/cli-cmds.c (pwd_command): Style output.
3156
3157 2019-10-01 Pedro Alves <palves@redhat.com>
3158 Tom Tromey <tom@tromey.com>
3159
3160 * symtab.c (print_symbol_info): Use %ps.
3161 (print_msymbol_info): Use %ps.
3162 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3163 * printcmd.c (print_variable_and_value): Use %ps.
3164 * macrocmd.c (show_pp_source_pos): Use %ps.
3165 * infrun.c (print_exited_reason): Use ui_out::message.
3166 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3167 (describe_other_breakpoints): Use ui_out::message and new
3168 formats.
3169 (say_where): Use new formats.
3170 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3171 and new formats.
3172
3173 2019-10-01 Pedro Alves <palves@redhat.com>
3174 Tom Tromey <tom@tromey.com>
3175
3176 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3177 (test_gdb_formats): New function.
3178 (run_tests): Call it.
3179 (test_format_specifier): Update.
3180 * utils.h (fputs_filtered): Update comment.
3181 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3182 (fputs_styled_unfiltered): Declare.
3183 * utils.c (fputs_styled_unfiltered): New function.
3184 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3185 (vfprintf_filtered): Update.
3186 (vfprintf_unfiltered, vprintf_filtered): Update.
3187 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3188 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3189 disallow_ui_out_field>: New constants.
3190 (enum class field_kind): New.
3191 (struct base_field_s, struct signed_field_s): New.
3192 (signed_field): New function.
3193 (struct string_field_s): New.
3194 (string_field): New function.
3195 (struct styled_string_s): New.
3196 (styled_string): New function.
3197 (class ui_out) <message>: Add comment.
3198 <vmessage, call_do_message>: New methods.
3199 <do_message>: Add style parameter.
3200 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3201 methods.
3202 (ui_out::message): Rewrite.
3203 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3204 parameter.
3205 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3206 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3207 gdb_extensions parameter.
3208 (class format_piece): Add parameter to constructor.
3209 (n_int_args): New field.
3210 * gdbsupport/format.c (format_pieces::format_pieces): Add
3211 gdb_extensions parameter. Handle '*'.
3212 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3213 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3214 vfprintf_styled_no_gdbfmt.
3215 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3216 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3217 unfiltered output.
3218 * ui-style.h (struct ui_file_style) <ptr>: New method.
3219
3220 2019-10-01 Tom Tromey <tom@tromey.com>
3221
3222 * unittests/format_pieces-selftests.c: Update. Add final format.
3223 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3224 empty literal pieces.
3225
3226 2019-10-01 Tom Tromey <tom@tromey.com>
3227
3228 * ui-out.h (enum class ui_out_style_kind): Remove.
3229 (class ui_out) <field_string, field_stsream, do_field_string>:
3230 Change type of "style".
3231 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3232 (ui_out::field_string): Update.
3233 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3234 of "style".
3235 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3236 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3237 * stack.c (print_frame_arg, print_frame_info, print_frame):
3238 Update.
3239 * source.c (print_source_lines_base): Update.
3240 * solib.c (info_sharedlibrary_command): Update.
3241 * skip.c (info_skip_command): Update.
3242 * record-btrace.c (btrace_call_history_src_line)
3243 (btrace_call_history): Update.
3244 * python/py-framefilter.c (py_print_frame): Update.
3245 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3246 "style".
3247 * mi/mi-out.c (mi_ui_out::do_table_header)
3248 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3249 (mi_ui_out::do_field_string): Update.
3250 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3251 Update.
3252 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3253 "style".
3254 * cli-out.c (cli_ui_out::do_table_header)
3255 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3256 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3257 (cli_ui_out::do_field_fmt): Update.
3258 * breakpoint.c (print_breakpoint_location): Update.
3259 (update_static_tracepoint): Update.
3260
3261 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3262
3263 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3264 conversion of gdb_datadir.
3265 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3266 remove not needed c_str ().
3267
3268 2019-09-30 Ali Tamur <tamur@google.com>
3269
3270 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3271 (dwarf2_string_attr): Likewise.
3272
3273 2019-09-30 Ali Tamur <tamur@google.com>
3274
3275 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3276 (process_full_type_unit): Likewise.
3277 (dump_die_shallow): Likewise.
3278 (cu_debug_loc_section): Likewise.
3279
3280 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3281
3282 * minsyms.c (compare_minimal_symbols): Rename to...
3283 (minimal_symbol_is_less_than): ...this, and adjust to STL
3284 conventions (return bool, take arguments as references)
3285 (minimal_symbol_reader::install): Call std::sort instead
3286 of qsort.
3287
3288 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3289
3290 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3291 hash and why.
3292 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3293 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3294
3295 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3296
3297 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3298 * psympriv.h (add_psymbol_to_list): Move comment here and update
3299 it.
3300
3301 2019-09-29 Tom de Vries <tdevries@suse.de>
3302
3303 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3304 Use $tmpdir/$(basename "$output_file").dwz instead of
3305 "${output_file}.dwz".
3306
3307 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3308
3309 PR gdb/25045
3310 * hppa-linux-nat.c: Include gdbarch.h.
3311
3312 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3313
3314 * blockframe.c (find_pc_partial_function): Change return type to bool.
3315 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3316 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3317 (stub_gnu_ifunc_resolve_name): Likewise.
3318 * symtab.c (compare_filenames_for_search): Likewise.
3319 (compare_glob_filenames_for_search): Likewise.
3320 (matching_obj_sections): Likewise.
3321 (symbol_matches_domain): Likewise.
3322 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3323 (find_line_pc): Change return type to bool.
3324 (find_line_pc_range): Likewise.
3325 (producer_is_realview): Likewise.
3326 * symtab.h (symbol_matches_domain): Likewise.
3327 (find_pc_partial_function): Likewise.
3328 (find_pc_line_pc_range): Likewise.
3329 (in_gnu_ifunc_stub): Likewise.
3330 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3331 (find_line_pc): Likewise.
3332 (find_line_pc_range): Likewise.
3333 (matching_obj_sections): Likewise.
3334 (find_line_symtab): Change out parameter to bool.
3335 (producer_is_realview): Change return type to bool.
3336 (compare_filenames_for_search): Likewise.
3337 (compare_glob_filenames_for_search): Likewise.
3338
3339 2019-09-26 Tom Tromey <tom@tromey.com>
3340
3341 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3342 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3343 * gdb_usleep.h: Remove.
3344 * gdb_usleep.c: Remove.
3345 * utils.c: Don't include gdb_usleep.h.
3346
3347 2019-09-26 Tom Tromey <tromey@adacore.com>
3348
3349 * python/py-type.c (type_to_type_object): Call check_typedef
3350 for stub types.
3351
3352 2019-09-26 Tom Tromey <tom@tromey.com>
3353
3354 * utils.h (initialize_utils): Don't declare.
3355 * top.c (gdb_init): Don't call initialize_utils.
3356 * utils.c (initialize_utils): Remove. Move contents...
3357 (_initialize_utils): ... here.
3358
3359 2019-09-25 Tom Tromey <tom@tromey.com>
3360
3361 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3362 * utils.h (make_hex_string): Don't declare.
3363 * utils.c (make_hex_string): Remove.
3364
3365 2019-09-24 Tom de Vries <tdevries@suse.de>
3366
3367 PR gdb/23815
3368 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3369 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3370
3371 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3372
3373 * NEWS: Mention new simulator port for PRU.
3374
3375 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3376
3377 * ada-exp.y (write_object_remaining): Update.
3378 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3379 and eliminate the static buffer.
3380 (ada_decode_symbol): Update.
3381 (ada_la_decode): Update.
3382 (ada_sniff_from_mangled_name): Update.
3383 (is_valid_name_for_wild_match): Update.
3384 (ada_lookup_name_info::matches): Update and simplify.
3385 (name_matches_regex): Update.
3386 (ada_add_global_exceptions): Update.
3387 * ada-lang.h (ada_decode): Update signature.
3388 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3389 * dwarf-index-write.c (debug_names::insert): Update.
3390
3391 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3392
3393 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3394 formatting.
3395
3396 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3397
3398 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3399 Change "nonzero" to "true" in documentation.
3400
3401 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3402
3403 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3404 (_initialize_darwin_solib): Don't set
3405 darwin_so_ops.lookup_lib_global_symbol.
3406 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3407 set_gdbarch_iterate_over_objfiles_in_search_order.
3408 (elf_lookup_lib_symbol): Rename to...
3409 (svr4_iterate_over_objfiles_in_search_order): this, and update
3410 to iterate semantics.
3411 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3412 * solib.c (solib_global_lookup): Remove.
3413 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3414 (solib_global_lookup): Remove.
3415 * symtab.c (lookup_global_or_static_symbol): Remove call to
3416 solib_global_lookup.
3417
3418 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3419
3420 * NEWS: Move entries about default MI version now being
3421 version 3, and about the GDB/MI fix for multi-location
3422 breakpoints to the "since GDB 8.3" section.
3423
3424 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3425
3426 GDB 8.3.1 released.
3427
3428 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3429
3430 * NEWS: Mention that Cell/B.E. debugging support was removed.
3431 * MAINTAINERS: Remove spu target.
3432
3433 * config/djgpp/fnchange.lst: Remove entries for removed files.
3434
3435 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3436 spu-multiarch.o, and spu-tdep.o.
3437 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3438 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3439 spu-multiarch.c, and spu-tdep.c.
3440 * spu-linux-nat.c: Remove file.
3441 * spu-multiarch.c: Remove file.
3442 * spu-tdep.c: Remove file.
3443 * spu-tdep.h: Remove file.
3444 * solib-spu.c: Remove file.
3445 * solib-spu.h: Remove file.
3446
3447 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3448 * configure.nat (spu-linux): Remove.
3449 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3450 solib-multiarch.o from gdb_target_obs.
3451 (spu*-*-*): Remove.
3452
3453 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3454 feature flag.
3455 (ppc_linux_no_features): Update.
3456 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3457 Cell/B.E. support.
3458 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3459 (tdesc_powerpc_cell64l): Likewise.
3460 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3461 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3462 Cell/B.E. support.
3463 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3464 Do not include "features/rs6000/powerpc-cell32l.c" or
3465 "features/rs6000/powerpc-cell64l.c".
3466 (ppc_linux_spu_section): Remove.
3467 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3468 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3469 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3470 (ppc_linux_spe_context_lookup): Remove.
3471 (ppc_linux_spe_context_inferior_created): Remove.
3472 (ppc_linux_spe_context_solib_loaded): Remove.
3473 (ppc_linux_spe_context_solib_unloaded): Remove.
3474 (ppc_linux_spe_context): Remove.
3475 (struct ppu2spu_cache): Remove.
3476 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3477 (struct ppu2spu_data): Remove.
3478 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3479 ppu2spu_unwind): Remove.
3480 (ppc_linux_init_abi): Remove Cell/B.E. support.
3481 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3482
3483 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3484 (rs6000/powerpc-cell64l-expedite): Likewise
3485 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3486 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3487 rs6000/powerpc-cell64l.xml.
3488 * features/rs6000/powerpc-cell32l.xml: Remove.
3489 * features/rs6000/powerpc-cell64l.xml: Likewise.
3490 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3491 * features/rs6000/powerpc-cell64l.c: Likewise.
3492 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3493 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3494 * regformats/reg-spu.dat: Remove.
3495
3496 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3497 * corelow.c (struct spuid_list): Remove.
3498 (add_to_spuid_list): Remove.
3499 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3500 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3501 (remote_protocol_features): Remove associated entries.
3502 (_initialize_remote): No longer initialize them.
3503 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3504 * linux-nat.c (SPUFS_MAGIC): Remove.
3505 (linux_proc_xfer_spu): Remove.
3506 (spu_enumerate_spu_ids): Remove.
3507 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3508 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3509 (linux_make_corefile_notes): No longer call it.
3510
3511 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3512 (cooked_write_test): Likewise.
3513
3514 2019-09-20 Tom Tromey <tom@tromey.com>
3515
3516 * NEWS: Mention case-sensitivity of TUI commands.
3517 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3518 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3519 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3520
3521 2019-09-20 Tom Tromey <tom@tromey.com>
3522
3523 * tui/tui-source.c (tui_source_window::set_contents): Use
3524 make_unique_xstrdup.
3525 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3526 make_unique_xstrdup.
3527
3528 2019-09-20 Tom Tromey <tom@tromey.com>
3529
3530 * tui/tui-data.c: Remove separator comments.
3531 * tui/tui-layout.c: Remove separator comments.
3532 * tui/tui-win.c: Remove separator comments.
3533 * tui/tui-wingeneral.c: Remove separator comments.
3534
3535 2019-09-20 Tom Tromey <tom@tromey.com>
3536
3537 * tui/tui.h (strcat_to_buf): Don't declare.
3538 * tui/tui.c (strcat_to_buf): Remove.
3539
3540 2019-09-20 Tom Tromey <tom@tromey.com>
3541
3542 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3543 from "fullname".
3544 * tui/tui-source.c (tui_source_window::set_contents)
3545 (tui_source_window::location_matches_p)
3546 (tui_source_window::maybe_update): Update.
3547
3548 2019-09-20 Tom Tromey <tom@tromey.com>
3549
3550 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3551 Update.
3552 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3553 prefix.
3554 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3555 (tui_data_window::line_from_reg_element_no)
3556 (tui_data_window::first_reg_element_no_inline)
3557 (tui_data_window::show_registers)
3558 (tui_data_window::show_register_group)
3559 (tui_data_window::display_registers_from)
3560 (tui_data_window::display_registers_from_line)
3561 (tui_data_window::first_data_item_displayed)
3562 (tui_data_window::delete_data_content_windows)
3563 (tui_data_window::erase_data_content)
3564 (tui_data_window::do_scroll_vertical)
3565 (tui_data_window::refresh_window)
3566 (tui_data_window::check_register_values): Update.
3567
3568 2019-09-20 Tom Tromey <tom@tromey.com>
3569
3570 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3571 (struct tui_locator_window) <full_name, proc_name>: Now
3572 std::string.
3573 * tui/tui-stack.c (tui_locator_window::make_status_line)
3574 (tui_locator_window::set_locator_fullname)
3575 (tui_locator_window::set_locator_info): Update.
3576 * tui/tui-source.c (tui_source_window::set_contents)
3577 (tui_source_window::showing_source_p): Update.
3578
3579 2019-09-20 Tom Tromey <tom@tromey.com>
3580
3581 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3582 Don't call tui_locator_win_info_ptr.
3583
3584 2019-09-20 Tom Tromey <tom@tromey.com>
3585
3586 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3587
3588 2019-09-20 Tom Tromey <tom@tromey.com>
3589
3590 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3591 height for locator.
3592 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3593 * tui/tui-layout.c (show_source_disasm_command, show_data)
3594 (show_source_or_disasm_and_command): Use 1 as height for locator.
3595
3596 2019-09-20 Tom Tromey <tom@tromey.com>
3597
3598 * tui/tui.c (tui_enable): Update.
3599 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3600 Update.
3601 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3602 Update.
3603 * tui/tui-data.c (win_resized): Now bool.
3604 (tui_win_resized): Return bool.
3605 (tui_set_win_resized_to): Accept a bool.
3606
3607 2019-09-20 Tom Tromey <tom@tromey.com>
3608
3609 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3610 Change type of "refresh_values_only".
3611 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3612 type of "refresh_values_only".
3613
3614 2019-09-20 Tom Tromey <tom@tromey.com>
3615
3616 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3617 std::string.
3618 (tui_disassemble): Add "pos" parameter.
3619 (tui_disasm_window::set_contents): Simplify.
3620
3621 2019-09-20 Tom Tromey <tom@tromey.com>
3622
3623 * tui/tui-winsource.h (struct tui_source_window_base)
3624 <show_source_content>: Now private.
3625 * tui/tui-winsource.c
3626 (tui_source_window_base::show_source_content): Don't handle empty
3627 content case.
3628
3629 2019-09-20 Tom Tromey <tom@tromey.com>
3630
3631 * tui/tui-layout.c (show_source_disasm_command)
3632 (show_source_or_disasm_and_command): Don't call
3633 show_source_content.
3634
3635 2019-09-20 Tom Tromey <tom@tromey.com>
3636
3637 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3638 Declare.
3639 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3640 from tui_make_status_line.
3641 (tui_locator_window::rerender): Update.
3642
3643 2019-09-20 Tom Tromey <tom@tromey.com>
3644
3645 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3646 (tui_locator_window::rerender): Update.
3647
3648 2019-09-20 Tom Tromey <tom@tromey.com>
3649
3650 * tui/tui-winsource.h (struct tui_source_window_base)
3651 <~tui_source_window_base>: Don't declare.
3652 <fullname>: Remove.
3653 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3654 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3655 member.
3656 * tui/tui-source.c (tui_source_window::set_contents): Update.
3657 (tui_source_window::location_matches_p)
3658 (tui_source_window::maybe_update): Update.
3659
3660 2019-09-20 Tom Tromey <tom@tromey.com>
3661
3662 * tui/tui-winsource.h (~tui_source_element): Remove.
3663 (tui_source_element): Update.
3664 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3665 * tui/tui-winsource.c (tui_show_source_line): Update.
3666 * tui/tui-source.c (tui_source_window::set_contents): Update.
3667 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3668
3669 2019-09-20 Tom Tromey <tom@tromey.com>
3670
3671 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3672 declare.
3673 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3674 tui_clear_source_windows_detail.
3675 * tui/tui-winsource.h (struct tui_source_window_base)
3676 <clear_detail>: Don't declare.
3677 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3678 Remove.
3679 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3680
3681 2019-09-20 Tom Tromey <tromey@adacore.com>
3682
3683 PR ada/24919:
3684 * block.c (contained_in): Fix final return value.
3685
3686 2019-09-20 Alan Modra <amodra@gmail.com>
3687
3688 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3689 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3690 (read_indirect_string_from_dwz): Use bfd accessor.
3691 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3692 * machoread.c (macho_symfile_read_all_oso): Likewise.
3693 * solib.c (solib_bfd_open): Likewise.
3694
3695 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3696
3697 * eval.c: Move declaration of overload_resolution to...
3698 * value.h: ...here.
3699
3700 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3701
3702 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3703 * arm-linux-tdep.c: Likewise.
3704 * arm-nbsd-nat.c: Likewise.
3705 * arm-tdep.h: Declare arm_apcs_32.
3706 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3707
3708 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3709
3710 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3711 * dwarf2read.h: Declare dwarf_always_disassemble.
3712
3713 2019-09-19 Tom de Vries <tdevries@suse.de>
3714
3715 PR gdb/25009
3716 * source-cache.c (source_cache::ensure): Catch exception thrown during
3717 construction of the highlighter.
3718
3719 2019-09-18 Alan Modra <amodra@gmail.com>
3720
3721 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3722 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3723 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3724 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3725 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3726 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3727 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3728 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3729 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3730 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3731 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3732 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3733 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3734 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3735 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3736 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3737 * mi/mi-interp.c: Update throughout for bfd section macro and
3738 function changes.
3739 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3740 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3741
3742 2019-09-18 Tom Tromey <tom@tromey.com>
3743
3744 * NEWS: Add entry.
3745 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3746 call rl_initialize.
3747 (tui_enable): Do not call rl_initialize.
3748
3749 2019-09-18 Christian Groessler <chris@groessler.org>
3750
3751 * alpha-linux-nat.c: Include gdbarch.h.
3752
3753 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3754
3755 * ui-file.c: Include cli/cli-style.h.
3756 (term_cli_styling): Remove cli_styling declaration.
3757
3758 2019-09-18 Alan Modra <amodra@gmail.com>
3759
3760 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3761 to bfd_asymbol_section.
3762
3763 2019-09-18 Alan Modra <amodra@gmail.com>
3764
3765 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3766 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3767 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3768
3769 2019-09-18 Alan Modra <amodra@gmail.com>
3770
3771 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3772 * spu-linux-nat.c (spu_bfd_open): Likewise.
3773
3774 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3775
3776 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3777 to bool to match definition in dwarf2read.c.
3778
3779 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3780
3781 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3782 (print_signatures): Likewise.
3783 (trust_pad_over_xvs): Likewise.
3784 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3785 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3786 * arm-linux-nat.c (arm_apcs_32): Likewise.
3787 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3788 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3789 * arm-tdep.c (arm_debug): Likewise.
3790 (arm_apcs_32): Likewise.
3791 * auto-load.c (debug_auto_load): Likewise.
3792 (auto_load_gdb_scripts): Likewise.
3793 (global_auto_load): Likewise.
3794 (auto_load_local_gdbinit): Likewise.
3795 (auto_load_local_gdbinit_loaded): Likewise.
3796 * auto-load.h (global_auto_load): Likewise.
3797 (auto_load_local_gdbinit): Likewise.
3798 (auto_load_local_gdbinit_loaded): Likewise.
3799 * breakpoint.c (disconnected_dprintf): Likewise.
3800 (breakpoint_proceeded): Likewise.
3801 (automatic_hardware_breakpoints): Likewise.
3802 (always_inserted_mode): Likewise.
3803 (target_exact_watchpoints): Likewise.
3804 (_initialize_breakpoint): Update.
3805 * breakpoint.h (target_exact_watchpoints): Change to bool.
3806 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3807 * cli/cli-cmds.c (trace_commands): Likewise.
3808 * cli/cli-cmds.h (trace_commands): Likewise.
3809 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3810 to bool*.
3811 * cli/cli-logging.c (logging_overwrite): Change to bool.
3812 (logging_redirect): Likewise.
3813 (debug_redirect): Likewise.
3814 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3815 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3816 to bool.
3817 <boolean_option_def>: Update.
3818 (struct flag_option_def): Change default type of Context to bool
3819 from int.
3820 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3821 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3822 (get_setshow_command_value_string): Likewise.
3823 * cli/cli-style.c (cli_styling): Change to bool.
3824 (source_styling): Likewise.
3825 * cli/cli-style.h (source_styling): Likewise.
3826 (cli_styling): Likewise.
3827 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3828 to bool.
3829 * command.h (var_types): Update comment.
3830 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3831 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3832 bool.
3833 (debug_compile_cplus_scopes): Likewise.
3834 * compile/compile-internal.h (compile_debug): Likewise.
3835 * compile/compile.c (compile_debug): Likewise.
3836 (struct compile_options) <raw>: Likewise.
3837 * cp-support.c (catch_demangler_crashes): Likewise.
3838 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3839 (usr_cmd_cris_dwarf2_cfi): Likewise.
3840 * csky-tdep.c (csky_debug): Likewise.
3841 * darwin-nat.c (enable_mach_exceptions): Likewise.
3842 * dcache.c (dcache_enabled_p): Likewise.
3843 * defs.h (info_verbose): Likewise.
3844 * demangle.c (demangle): Likewise.
3845 (asm_demangle): Likewise.
3846 * dwarf-index-cache.c (debug_index_cache): Likewise.
3847 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3848 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3849 * dwarf2read.c (check_physname): Likewise.
3850 (use_deprecated_index_sections): Likewise.
3851 (dwarf_always_disassemble): Likewise.
3852 * eval.c (overload_resolution): Likewise.
3853 * event-top.c (set_editing_cmd_var): Likewise.
3854 (exec_done_display_p): Likewise.
3855 * event-top.h (set_editing_cmd_var): Likewise.
3856 (exec_done_display_p): Likewise.
3857 * exec.c (write_files): Likewise.
3858 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3859 (debug_fbsd_nat): Likewise.
3860 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3861 Likewise.
3862 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3863 <backtrace_past_entry> Likewise.
3864 * gdb-demangle.h (demangle): Likewise.
3865 (asm_demangle): Likewise.
3866 * gdb_bfd.c (bfd_sharing): Likewise.
3867 * gdbcore.h (write_files): Likewise.
3868 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3869 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3870 * gdbthread.h (print_thread_events): Likewise.
3871 * gdbtypes.c (opaque_type_resolution): Likewise.
3872 (strict_type_checking): Likewise.
3873 * gnu-nat.c (gnu_debug_flag): Likewise.
3874 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3875 * guile/scm-param.c (pascm_variable): Add boolval.
3876 (add_setshow_generic): Update.
3877 (pascm_param_value): Update.
3878 (pascm_set_param_value_x): Update.
3879 * hppa-tdep.c (hppa_debug): Change to bool..
3880 * infcall.c (may_call_functions_p): Likewise.
3881 (coerce_float_to_double_p): Likewise.
3882 (unwind_on_signal_p): Likewise.
3883 (unwind_on_terminating_exception_p): Likewise.
3884 * infcmd.c (startup_with_shell): Likewise.
3885 * inferior.c (print_inferior_events): Likewise.
3886 * inferior.h (startup_with_shell): Likewise.
3887 (print_inferior_events): Likewise.
3888 * infrun.c (step_stop_if_no_debug): Likewise.
3889 (detach_fork): Likewise.
3890 (debug_displaced): Likewise.
3891 (disable_randomization): Likewise.
3892 (non_stop): Likewise.
3893 (non_stop_1): Likewise.
3894 (observer_mode): Likewise.
3895 (observer_mode_1): Likewise.
3896 (set_observer_mode): Update.
3897 (sched_multi): Change to bool.
3898 * infrun.h (debug_displaced): Likewise.
3899 (sched_multi): Likewise.
3900 (step_stop_if_no_debug): Likewise.
3901 (non_stop): Likewise.
3902 (disable_randomization): Likewise.
3903 * linux-tdep.c (use_coredump_filter): Likewise.
3904 (dump_excluded_mappings): Likewise.
3905 * linux-thread-db.c (auto_load_thread_db): Likewise.
3906 (check_thread_db_on_load): Likewise.
3907 * main.c (captured_main_1): Update.
3908 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3909 xx2_opt, boolean_opt>: Change to bool.
3910 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3911 * maint.c (maintenance_profile_p): Likewise.
3912 (per_command_time): Likewise.
3913 (per_command_space): Likewise.
3914 (per_command_symtab): Likewise.
3915 * memattr.c (inaccessible_by_default): Likewise.
3916 * mi/mi-main.c (mi_async): Likewise.
3917 (mi_async_1): Likewise.
3918 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3919 * nat/fork-inferior.h (startup_with_shell): Likewise.
3920 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3921 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3922 * nios2-tdep.c (nios2_debug): Likewise.
3923 * or1k-tdep.c (or1k_debug): Likewise.
3924 * parse.c (parser_debug): Likewise.
3925 * parser-defs.h (parser_debug): Likewise.
3926 * printcmd.c (print_symbol_filename): Likewise.
3927 * proc-api.c (procfs_trace): Likewise.
3928 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3929 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3930 (set_parameter_value): Update.
3931 (add_setshow_generic): Update.
3932 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3933 to bool*.
3934 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3935 int*.
3936 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3937 * record-btrace.c (record_btrace_target::store_registers): Update.
3938 * record-full.c (record_full_memory_query): Change to bool.
3939 (record_full_stop_at_limit): Likewise.
3940 * record-full.h (record_full_memory_query): Likewise.
3941 * remote-notif.c (notif_debug): Likewise.
3942 * remote-notif.h (notif_debug): Likewise.
3943 * remote.c (use_range_stepping): Likewise.
3944 (interrupt_on_connect): Likewise.
3945 (remote_break): Likewise.
3946 * ser-tcp.c (tcp_auto_retry): Likewise.
3947 * ser-unix.c (serial_hwflow): Likewise.
3948 * skip.c (debug_skip): Likewise.
3949 * solib-aix.c (solib_aix_debug): Likewise.
3950 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3951 (spu_auto_flush_cache_p): Likewise.
3952 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3953 Likewise.
3954 (struct info_print_options) <quiet>: Likewise.
3955 * symfile-debug.c (debug_symfile): Likewise.
3956 * symfile.c (auto_solib_add): Likewise.
3957 (separate_debug_file_debug): Likewise.
3958 * symfile.h (auto_solib_add): Likewise.
3959 (separate_debug_file_debug): Likewise.
3960 * symtab.c (basenames_may_differ): Likewise.
3961 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3962 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3963 (struct info_types_options) <quiet>: Likewise.
3964 * symtab.h (demangle): Likewise.
3965 (basenames_may_differ): Likewise.
3966 * target-dcache.c (stack_cache_enabled_1): Likewise.
3967 (code_cache_enabled_1): Likewise.
3968 * target.c (trust_readonly): Likewise.
3969 (may_write_registers): Likewise.
3970 (may_write_memory): Likewise.
3971 (may_insert_breakpoints): Likewise.
3972 (may_insert_tracepoints): Likewise.
3973 (may_insert_fast_tracepoints): Likewise.
3974 (may_stop): Likewise.
3975 (auto_connect_native_target): Likewise.
3976 (target_stop_and_wait): Update.
3977 (target_async_permitted): Change to bool.
3978 (target_async_permitted_1): Likewise.
3979 (may_write_registers_1): Likewise.
3980 (may_write_memory_1): Likewise.
3981 (may_insert_breakpoints_1): Likewise.
3982 (may_insert_tracepoints_1): Likewise.
3983 (may_insert_fast_tracepoints_1): Likewise.
3984 (may_stop_1): Likewise.
3985 * target.h (target_async_permitted): Likewise.
3986 (may_write_registers): Likewise.
3987 (may_write_memory): Likewise.
3988 (may_insert_breakpoints): Likewise.
3989 (may_insert_tracepoints): Likewise.
3990 (may_insert_fast_tracepoints): Likewise.
3991 (may_stop): Likewise.
3992 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3993 (make_thread_apply_all_options_def_group): Change argument from int*
3994 to bool*.
3995 (thread_apply_all_command): Update.
3996 (print_thread_events): Change to bool.
3997 * top.c (confirm): Likewise.
3998 (command_editing_p): Likewise.
3999 (history_expansion_p): Likewise.
4000 (write_history_p): Likewise.
4001 (info_verbose): Likewise.
4002 * top.h (confirm): Likewise.
4003 (history_expansion_p): Likewise.
4004 * tracepoint.c (disconnected_tracing): Likewise.
4005 (circular_trace_buffer): Likewise.
4006 * typeprint.c (print_methods): Likewise.
4007 (print_typedefs): Likewise.
4008 * utils.c (debug_timestamp): Likewise.
4009 (sevenbit_strings): Likewise.
4010 (pagination_enabled): Likewise.
4011 * utils.h (sevenbit_strings): Likewise.
4012 (pagination_enabled): Likewise.
4013 * valops.c (overload_resolution): Likewise.
4014 * valprint.h (struct value_print_options) <prettyformat_arrays,
4015 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4016 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4017 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4018 Likewise.
4019 * windows-nat.c (new_console): Likewise.
4020 (cygwin_exceptions): Likewise.
4021 (new_group): Likewise.
4022 (debug_exec): Likewise.
4023 (debug_events): Likewise.
4024 (debug_memory): Likewise.
4025 (debug_exceptions): Likewise.
4026 (useshell): Likewise.
4027 * windows-tdep.c (maint_display_all_tib): Likewise.
4028 * xml-support.c (debug_xml): Likewise.
4029
4030 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4031
4032 * source.c (prepare_path_for_appending): New function.
4033 (openp): Make use of new function.
4034 (find_and_open_source): Search for the compilation directory and
4035 source file as a relative path beneath the directory search path.
4036
4037 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4038
4039 * source-cache.c (source_cache::get_line_charpos): Catch
4040 exceptions and return false, this matches the behaviour documented
4041 in the header file.
4042
4043 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4044
4045 * ada-tasks.c (info_task): Remove quoting of the task's name.
4046
4047 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4048
4049 * symfile.c (auto_solib_add): Replace comment with a reference
4050 to the header file.
4051
4052 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4053
4054 * NEWS: Mention that gdb can now be compiled with Python 3
4055 on Windows.
4056
4057 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4058
4059 * maint.c (maint_print_section_data::maint_print_section_data):
4060 Force use of 'float log10 (float)' by casting the argument to
4061 float.
4062
4063 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4064
4065 * maint.c: Add 'cmath' include.
4066 (struct maint_print_section_data): New structure.
4067 (print_section_index): New function.
4068 (print_bfd_section_info): Add header comment, small whitespace
4069 cleanup, and update to call new print_section_index function.
4070 (print_objfile_section_info): Likewise.
4071 (maint_obj_section_from_bfd_section): New function.
4072 (print_bfd_section_info_maybe_relocated): New function.
4073 (maintenance_info_sections): Add header comment, always use
4074 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4075
4076 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4077
4078 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4079 inner scope, add check that the objfile has psymtabs before
4080 checking psymtabs_addrmap.
4081 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4082
4083 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4084
4085 * NEWS: Announce that Ada task names are now shown at more places,
4086 and between quotes (except in info task output).
4087 * gdb/ada-tasks.c (task_to_str): New function.
4088 (display_current_task_id): Call task_to_str.
4089 (task_command_1): Likewise.
4090 (print_ada_task_info): In non-mi mode, Properly align headers and data
4091 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4092
4093 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4094
4095 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4096 prstatus.pr_lwp.pr_info instead of making it up.
4097
4098 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4099
4100 * auto-load.c (auto_load_expand_dir_vars): Update.
4101 * defs.h (gdb_datadir): Change to std::string.
4102 (python_libdir): Likewise.
4103 (relocate_gdb_directory): Change return type to std::string.
4104 * guile/guile.c (gdbscm_data_directory): Update.
4105 (initialize_scheme_side): Update.
4106 * jit.c (jit_reader_dir): Change to std::string.
4107 (jit_reader_load_command): Update.
4108 * main.c (gdb_datadir): Change to std::string.
4109 (python_libdir): Likewise.
4110 (set_gdb_data_directory): Update.
4111 (relocate_path): Change to return std::string.
4112 (relocate_gdb_directory): Change to return std::string.
4113 (relocate_gdbinit_path_maybe_in_datadir): Update.
4114 (captured_main_1): Update.
4115 * python/python.c (do_start_initialization): Update.
4116 * top.c (show_gdb_datadir): Update.
4117 * xml-syscall.c (xml_init_syscalls_info): Update.
4118 (init_syscalls_info): Update.
4119
4120 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4121
4122 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4123 out of get_init_files.
4124 (get_init_files): Update.
4125
4126 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4127
4128 * main.c (get_init_files): Change to use std::string.
4129 (captured_main_1): Update.
4130 (print_gdb_help): Update.
4131
4132 2019-09-11 Ali Tamur <tamur@google.com>
4133
4134 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4135 implementation.
4136
4137 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4138
4139 * dbxread.c (read_dbx_symtab): Update.
4140 * dwarf2read.c (load_partial_dies): Update.
4141 * mdebugread.c (parse_partial_symbols): Update.
4142 (handle_psymbol_enumerators): Update.
4143 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4144 * psymtab.c (add_psymbol_to_bcache): Likewise.
4145 (add_psymbol_to_list): Likewise.
4146 * symtab.c (symbol_set_names): Likewise.
4147 * symtab.h (symbol_set_names): Likewise.
4148 * xcoffread.c (scan_xcoff_symtab): Update.
4149
4150 2019-09-11 Tom Tromey <tom@tromey.com>
4151
4152 * symfile-mem.c (symbol_file_add_from_memory): Use
4153 bfd_set_filename.
4154 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4155 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4156
4157 2019-09-10 Tom Tromey <tromey@adacore.com>
4158
4159 * dwarf-index-write.c (write_psymbols): Extend error message.
4160 (debug_names::insert): Add Ada code.
4161 (debug_names::write_psymbols): Remove Ada check.
4162 (debug_names) <m_string_obstack>: New member.
4163 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4164 (gdb_index_symbol_name_matcher::matches): Remove.
4165 (mapped_index_base::find_name_components_bounds): Add "lang"
4166 parameter.
4167 (mapped_index_base::build_name_components): Also split names
4168 according to Ada syntax.
4169 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4170 type of "match_callback".
4171 (check_match, check_find_bounds_finds)
4172 (dw2_expand_symtabs_matching): Update.
4173 (dw2_debug_names_iterator): Add new constructor.
4174 (dw2_debug_names_map_matching_symbols): New function.
4175 (dw2_debug_names_expand_symtabs_matching): Update.
4176 (dwarf2_debug_names_functions): Use
4177 dw2_debug_names_map_matching_symbols.
4178
4179 2019-09-10 Tom Tromey <tromey@adacore.com>
4180
4181 * dwarf2read.c (dw2_get_file_names_reader): Add the
4182 CU's file name to the results.
4183
4184 2019-09-10 Tom Tromey <tromey@adacore.com>
4185
4186 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4187 map_matching_symbols. Update.
4188 * dwarf2read.c (dw2_map_matching_symbols): Update.
4189 * psymtab.c (match_partial_symbol): Change type; update.
4190 (psym_map_matching_symbols): Likewise.
4191 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4192 type; update.
4193 * symfile.h (struct quick_symbol_functions)
4194 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4195 Remove "match".
4196
4197 2019-09-10 Tom Tromey <tromey@adacore.com>
4198
4199 * psymtab.c (map_block): Remove.
4200 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4201 * symtab.c (iterate_over_symbols_terminated): New function.
4202 * symtab.c (iterate_over_symbols_terminated): Declare.
4203
4204 2019-09-10 Tom Tromey <tromey@adacore.com>
4205
4206 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4207 * language.h (struct language_defn) <la_iterate_over_symbols>:
4208 Return bool.
4209 * symtab.c (iterate_over_symbols): Return bool.
4210 * symtab.h (iterate_over_symbols): Return bool.
4211
4212 2019-09-10 Tom Tromey <tromey@adacore.com>
4213
4214 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4215 (add_nonlocal_symbols): Update.
4216 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4217 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4218 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4219 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4220 Change type of "callback". Remove "data".
4221
4222
4223 2019-09-09 Ali Tamur <tamur@google.com>
4224
4225 * dwarf2read.c (comp_unit_head): Update comment.
4226 (dwarf2_dwo_name): New function declaration.
4227 (dwarf_unit_type_name): New function declaration.
4228 (read_comp_unit_head): Add support for new compilation units,
4229 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4230 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4231 (currently named as "signature") in their header. Also clarify error
4232 messages.
4233 (lookup_dwo_id): New function. Returns the dwo id of the given
4234 compile unit.
4235 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4236 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4237 functions.
4238 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4239 (dwarf2_dwo_name): Get the dwo name if present.
4240 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4241 purposes.
4242
4243 2019-09-09 Tom Tromey <tom@tromey.com>
4244
4245 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4246
4247 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4248
4249 * python/python.c (do_start_initialization): Make progname_copy static,
4250 to avoid a leak report.
4251
4252 2019-09-08 Tom Tromey <tom@tromey.com>
4253
4254 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4255
4256 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4257
4258 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4259 Change type to gdb::optional<block_enum>.
4260 (dw2_symtab_iter_init): Change block_index parameter type
4261 to gdb::optional<block_enum>.
4262 (dw2_lookup_symbol): Change block_index parameter
4263 type to block_enum.c
4264 (dw2_debug_names_lookup_symbol): Likewise.
4265 * psymtab.c (psym_lookup_symbol): Likewise.
4266 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4267 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4268 Likewise.
4269
4270 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4271
4272 * defs.h (relocate_gdb_directory): Change int to bool in
4273 signature and rename flag to relocatable.
4274 * main.c (relocate_path): Likewise.
4275 (relocate_gdb_directory): Likewise.
4276
4277 2019-09-06 Alan Modra <amodra@gmail.com>
4278
4279 * coffread.c (coff_symfile_read): Constify filename variable.
4280 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4281 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4282 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4283 * solib.c (reload_shared_libraries_1): Likewise.
4284 * symfile.c (reread_symbols): Likewise.
4285 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4286 * solib-darwin.c (darwin_bfd_open): Likewise.
4287 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4288
4289 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4290
4291 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4292 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4293
4294 2019-09-03 Tom Tromey <tromey@adacore.com>
4295
4296 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4297 types.
4298 (has_negatives): Unbias a range type bound.
4299 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4300 * gdbtypes.c (operator==): Handle new field.
4301 (create_range_type): Add "bias" parameter.
4302 (create_static_range_type, resolve_dynamic_range): Update.
4303 * gdbtypes.h (struct range_bounds) <bias>: New member.
4304 (create_range_type): Add bias parameter.
4305 * printcmd.c (print_scalar_formatted): Unbias range types.
4306 * value.c (unpack_long): Unbias range types.
4307 (pack_long): Bias range types.
4308
4309 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4310
4311 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4312 probe arguments.
4313
4314 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4315
4316 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4317 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4318 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4319 (compile_probe_arg): Likewise.
4320 * probe.h (get_argument_count): Likewise.
4321 * solib-svr4.c (solib_event_probe_action): Likewise.
4322 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4323
4324 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4325
4326 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4327 code to here...
4328 (svr4_create_solib_event_breakpoints): ...from here.
4329
4330 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4331
4332 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4333 suffix from warning message.
4334
4335 2019-08-30 Tom Tromey <tom@tromey.com>
4336
4337 * tui/tui-winsource.h (struct tui_source_window_base)
4338 <refresh_all>: Don't declare.
4339 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4340 Remove.
4341 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4342 tui_show_locator_content.
4343 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4344 declare.
4345 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4346 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4347 declare.
4348
4349 2019-08-30 Tom Tromey <tom@tromey.com>
4350
4351 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4352
4353 2019-08-30 Tom Tromey <tom@tromey.com>
4354
4355 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4356 Remove unnecessary forward declarations.
4357
4358 2019-08-30 Tom Tromey <tom@tromey.com>
4359
4360 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4361 rerender.
4362 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4363 tui_show_locator_content.
4364
4365 2019-08-30 Tom Tromey <tom@tromey.com>
4366
4367 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4368 (tui_locator_window::rerender): Rewrite using body of previous
4369 tui_show_locator_content.
4370
4371 2019-08-30 Tom Tromey <tom@tromey.com>
4372
4373 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4374 set_locator_fullname>: New methods.
4375 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4376 Rename from tui_set_locator_fullname.
4377 (tui_locator_window::set_locator_info): Rename from
4378 tui_set_locator_info. Return bool.
4379 (tui_update_locator_fullname, tui_show_frame_info): Update.
4380
4381 2019-08-30 Tom Tromey <tom@tromey.com>
4382
4383 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4384
4385 2019-08-30 Tom Tromey <tom@tromey.com>
4386
4387 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4388 call touchwin.
4389
4390 2019-08-30 Tom Tromey <tom@tromey.com>
4391
4392 * tui/tui-wingeneral.c (box_win): Assume win_info and
4393 win_info->handle cannot be NULL.
4394
4395 2019-08-30 Tom Tromey <tom@tromey.com>
4396
4397 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4398 refresh_window>: Declare.
4399 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4400 resize.
4401 (tui_data_item_window::rerender): Rename from
4402 tui_display_register.
4403 (tui_data_item_window::refresh_window): New method.
4404 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4405 no-op.
4406
4407 2019-08-30 Tom Tromey <tom@tromey.com>
4408
4409 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4410 regs_column_count, current_group>: Move later. Now private.
4411 <get_current_group>: New method.
4412 * tui/tui-regs.c (tui_reg_command): Update.
4413 * tui/tui-layout.c (tui_set_layout): Update.
4414
4415 2019-08-30 Tom Tromey <tom@tromey.com>
4416
4417 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4418 (tui_data_window::rerender): Don't call
4419 check_and_display_highlight_if_needed.
4420 (tui_data_window::refresh_all): Remove call to
4421 erase_data_content.
4422
4423 2019-08-30 Tom Tromey <tom@tromey.com>
4424
4425 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4426 (tui_data_window::display_registers_from)
4427 (tui_data_window::display_reg_element_at_line)
4428 (tui_data_window::display_registers_from_line): Remove checks of
4429 "empty".
4430
4431 2019-08-30 Tom Tromey <tom@tromey.com>
4432
4433 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4434 Don't declare.
4435 * tui/tui-regs.c (tui_data_window::show_registers): Call
4436 rerender.
4437 (tui_data_window::rerender): Rename from display_all_data.
4438 (tui_data_window::rerender): Remove old implementation.
4439
4440 2019-08-30 Tom Tromey <tom@tromey.com>
4441
4442 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4443 text.
4444 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4445
4446 2019-08-29 Bernhard Wodok <barto@gmx.net>
4447 Sergio Durigan Junior <sergiodj@redhat.com>
4448
4449 PR win32/24284
4450 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4451
4452 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4453
4454 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4455 when searching for types.
4456
4457 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4458
4459 * f-lang.c (f_language_defn): Use f_print_typedef.
4460 * f-lang.h (f_print_typedef): Declare.
4461 * f-typeprint.c (f_print_typedef): Define.
4462
4463 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4464
4465 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4466
4467 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4468
4469 * cli/cli-utils.c (info_print_options_defs): Delete.
4470 (make_info_print_options_def_group): Delete.
4471 (extract_info_print_options): Delete.
4472 (info_print_command_completer): Delete.
4473 (info_print_args_help): Add extra parameter, and optionally
4474 include text about -n flag.
4475 * cli/cli-utils.h (struct info_print_options): Delete.
4476 (extract_info_print_options): Delete declaration.
4477 (info_print_command_completer): Delete declaration.
4478 (info_print_args_help): Add extra parameter, extend header
4479 comment.
4480 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4481 search_symbols.
4482 * stack.c (struct info_print_options): New type.
4483 (info_print_options_defs): New file scoped variable.
4484 (make_info_print_options_def_group): New static function.
4485 (info_print_command_completer): New static function.
4486 (info_locals_command): Update to use new local functions.
4487 (info_args_command): Likewise.
4488 (_initialize_stack): Add extra parameter to calls to
4489 info_print_args_help.
4490 * symtab.c (search_symbols): Add extra parameter, use this to
4491 possibly excluse non-debug symbols.
4492 (symtab_symbol_info): Add extra parameter, which is passed on to
4493 search_symbols.
4494 (struct info_print_options): New type.
4495 (info_print_options_defs): New file scoped variable.
4496 (make_info_print_options_def_group): New static function.
4497 (info_print_command_completer): New static function.
4498 (info_variables_command): Update to use local functions, and pass
4499 extra parameter through to symtab_symbol_info.
4500 (info_functions_command): Likewise.
4501 (info_types_command): Pass additional argument through to
4502 symtab_symbol_info.
4503 (rbreak_command): Pass extra argument to search_symbols.
4504 (_initialize_symtab): Add extra arguments for calls to
4505 info_print_args_help, and update help text for 'info variables',
4506 'whereis', and 'info functions' commands.
4507 * symtab.h (search_symbols): Add extra argument to declaration.
4508 * NEWS: Mention new flags.
4509
4510 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4511
4512 * symtab.c (lookup_static_symbol): Call the new function (and move
4513 it down to be next to lookup_global_symbol).
4514 (struct global_sym_lookup_data): Add block_enum member and rename to...
4515 (struct global_or_static_sym_lookup_data): ...this.
4516 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4517 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4518 (lookup_symbol_global_or_static_iterator_cb): ...this.
4519 (lookup_global_or_static_symbol): New function.
4520 (lookup_global_symbol): Call new function.
4521
4522 2019-08-26 Tom de Vries <tdevries@suse.de>
4523
4524 PR c++/24852
4525 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4526 when pc_probe.prob == NULL.
4527
4528 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4529
4530 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4531 variable symbol_linkage to symbol_linkage_.
4532
4533 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4534
4535 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4536 represent whether the symbol is static, dynamic, or we don't
4537 know.
4538
4539 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4540
4541 * gdb/rx-tdep.c (rx_register_names): New.
4542 (rx_register_name): Delete.
4543 (rx_psw_type): Delete.
4544 (rx_fpsw_type): Delete.
4545 (rx_register_type): Delete.
4546 (rx_gdbarch_init): Convert target-descriptions.
4547 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4548 * gdb/features/Makefile: Add rx.xml.
4549 * gdb/features/rx.xml: New.
4550 * gdb/features/rx.c: Generated.
4551 * gdb/NEWS: Mention target description support.
4552
4553 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4554
4555 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4556 *slot_ptr.
4557
4558 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4559
4560 * configure.ac: Don't check for 'dlfcn.h' (moved to
4561 gdbsupport/common.m4).
4562 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4563 'gdbsupport/'.
4564 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4565 * compile/compile-c-support.c: Include
4566 'gdbsupport/gdb-dlfcn.h'.
4567 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4568 * gdb-dlfcn.c: Move to...
4569 * gdbsupport/gdb-dlfcn.c: ... here.
4570 * gdb-dlfcn.h: Move to...
4571 * gdbsupport/gdb-dlfcn.h: ... here.
4572
4573 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4574
4575 * nios2-tdep.c (struct reg_value): Improve comments. Make
4576 the offset field signed.
4577
4578 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4579
4580 * python/lib/gdb/__init__.py (_execute_file): New function.
4581 * python/python.c (python_run_simple_file): Call gdb._execute_file
4582 on Windows.
4583
4584 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4585
4586 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4587 all uses as this was never set to anything but a zero value.
4588
4589 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4590
4591 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4592
4593 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4594
4595 * tui/tui-data.h (tui_gen_win_info): Add an =default
4596 move constructor, required by some GCC versions.
4597
4598 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4599
4600 * go32-nat.c (go32_sysinfo): Add hygon_p.
4601
4602 2019-08-20 Tom Tromey <tom@tromey.com>
4603
4604 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4605 line_from_reg_element_no, first_reg_element_no_inline,
4606 display_all_data, delete_data_content_windows,
4607 erase_data_content>: Now private.
4608
4609 2019-08-20 Tom Tromey <tom@tromey.com>
4610
4611 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4612 (tui_unhighlight_win, tui_highlight_win)
4613 (tui_win_info::make_window): Update.
4614 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4615
4616 2019-08-20 Tom Tromey <tom@tromey.com>
4617
4618 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4619 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4620 (MAX_PID_WIDTH): Move to tui-stack.c.
4621 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4622 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4623 (MAX_PID_WIDTH): Move from tui-data.h.
4624
4625 2019-08-20 Tom Tromey <tom@tromey.com>
4626
4627 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4628 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4629 (box_win): Update.
4630 (tui_gen_win_info::make_window): Rename from tui_make_window.
4631 (tui_win_info::make_window): New method.
4632 (tui_gen_win_info::make_visible): Update.
4633 * tui/tui-source.c (tui_source_window::set_contents): Update.
4634 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4635 (tui_data_window::display_registers_from): Update.
4636 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4637 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4638 Declare.
4639 <can_box>: Remove.
4640 <title>: Remove.
4641 (struct tui_win_info) <make_window>: Declare.
4642 <can_box>: Now virtual.
4643 <title>: New member.
4644 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4645 * tui/tui-command.c (tui_cmd_window::resize): Update.
4646
4647 2019-08-20 Tom Tromey <tom@tromey.com>
4648
4649 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4650 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4651 (tui_data_window::check_register_values): Update.
4652
4653 2019-08-20 Tom Tromey <tom@tromey.com>
4654
4655 * tui/tui-regs.h (struct tui_data_window): Use
4656 DISABLE_COPY_AND_ASSIGN.
4657 <regs_content>: Change type, removing unique_ptr.
4658 <tui_data_window>: Add move constructor.
4659 * tui/tui-regs.c (tui_data_window::show_registers)
4660 (tui_data_window::show_register_group)
4661 (tui_data_window::display_registers_from)
4662 (tui_data_window::display_registers_from)
4663 (tui_data_window::first_data_item_displayed)
4664 (tui_data_window::delete_data_content_windows)
4665 (tui_data_window::rerender, tui_data_window::refresh_window)
4666 (tui_data_window::check_register_values): Update.
4667
4668 2019-08-20 Tom Tromey <tom@tromey.com>
4669
4670 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4671 show_register_group>: Declare.
4672 (tui_show_register_group): Don't declare.
4673 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4674 tui_show_registers.
4675 (tui_data_window::show_register_group): Rename from
4676 tui_show_register_group.
4677 (tui_data_window::check_register_values, tui_reg_command):
4678 Update.
4679 * tui/tui-layout.c (tui_set_layout): Update.
4680
4681 2019-08-20 Tom Tromey <tom@tromey.com>
4682
4683 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4684 Declare.
4685 (tui_check_register_values): Don't declare.
4686 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4687 from tui_check_register_values.
4688 * tui/tui-hooks.c (tui_register_changed): Update.
4689
4690 2019-08-20 Tom Tromey <tom@tromey.com>
4691
4692 * tui/tui-regs.c (tui_reg_layout): Move later.
4693 (tui_show_registers): Don't enable TUI mode or change layout.
4694
4695 2019-08-20 Tom Tromey <tom@tromey.com>
4696
4697 * tui/tui-regs.h (struct tui_data_item_window)
4698 <~tui_data_item_window>: Remove.
4699 <content>: Now a unique_xmalloc_ptr.
4700 * tui/tui-regs.c (tui_register_format): Return a
4701 unique_xmalloc_ptr.
4702 (tui_get_register): Update.
4703 (~tui_data_item_window): Remove.
4704 (tui_data_window::display_registers_from, tui_display_register):
4705 Update.
4706 * tui/tui-io.h (tui_expand_tabs): Update.
4707 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4708 Remove "col" parameter.
4709
4710 2019-08-20 Tom Tromey <tom@tromey.com>
4711
4712 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4713 field.
4714 * tui/tui-regs.c (~tui_data_item_window): Update.
4715
4716 2019-08-20 Tom Tromey <tom@tromey.com>
4717
4718 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4719 earlier.
4720
4721 2019-08-20 Tom Tromey <tom@tromey.com>
4722
4723 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4724
4725 2019-08-20 Tom Tromey <tom@tromey.com>
4726
4727 * tui/tui-source.h (struct tui_source_window): Update.
4728 * tui/tui-regs.c (tui_show_registers): Update.
4729 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4730 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4731 (NO_REGS_STRING): Remove defines.
4732
4733 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4734
4735 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4736 unnecessary thread walk if remote doesn't support the packet.
4737
4738 2019-08-19 Tom Tromey <tromey@adacore.com>
4739
4740 * python/py-value.c (value_has_field): Fix indentation.
4741
4742 2019-08-19 Tom Tromey <tromey@adacore.com>
4743
4744 * printcmd.c (do_one_display, info_display_command): Update.
4745 * block.h (contained_in): Return bool. Add allow_nested
4746 parameter.
4747 * block.c (contained_in): Return bool. Add allow_nested
4748 parameter.
4749
4750 2019-08-19 Tom Tromey <tom@tromey.com>
4751
4752 * configure: Rebuild.
4753 * configure.ac: Disallow the combination of -static-libstdc++ and
4754 source highlight.
4755 * source-cache.c (get_language_name): Handle rust.
4756 (source_cache::get_source_lines): Ignore highlighting exceptions.
4757
4758 2019-08-16 Tom Tromey <tom@tromey.com>
4759
4760 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4761 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4762 (struct tui_source_window_base) <make_visible, refresh_window,
4763 resize>: Remove methods.
4764 <execution_info>: Remove field.
4765 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4766 (tui_show_source_line, tui_source_window_base)
4767 (~tui_source_window_base): Update.
4768 (tui_source_window_base::resize)
4769 (tui_source_window_base::make_visible)
4770 (tui_source_window_base::refresh_window): Remove.
4771 (tui_source_window_base::update_exec_info): Update.
4772 * tui/tui-source.c (tui_source_window::set_contents): Update.
4773 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4774
4775 2019-08-16 Tom Tromey <tom@tromey.com>
4776
4777 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4778 deprecated_query_hook.
4779
4780 2019-08-16 Tom Tromey <tom@tromey.com>
4781
4782 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4783 (tui_update_source_windows_with_line): Update.
4784 * tui/tui-source.h (struct tui_source_window)
4785 <show_symtab_source>: Declare.
4786 (tui_show_symtab_source): Don't declare.
4787 * tui/tui-source.c (tui_show_symtab_source): Rename from
4788 tui_show_symtab_source.
4789
4790 2019-08-16 Tom Tromey <tom@tromey.com>
4791
4792 * tui/tui-winsource.h (struct tui_source_window_base)
4793 <set_contents>: Declare.
4794 * tui/tui-winsource.c
4795 (tui_source_window_base::update_source_window_as_is): Update.
4796 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4797 Declare.
4798 (tui_set_source_content): Don't declare.
4799 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4800 tui_set_source_content.
4801 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4802 Declare.
4803 (tui_set_disassem_content): Don't declare.
4804 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4805 tui_set_disassem_content.
4806
4807 2019-08-16 Tom Tromey <tom@tromey.com>
4808
4809 * tui/tui-winsource.h (struct tui_source_window_base)
4810 <update_breakpoint_info>: Declare.
4811 (tui_update_breakpoint_info): Don't declare.
4812 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4813 (tui_update_all_breakpoint_info): Update.
4814 (tui_source_window_base::update_breakpoint_info): Rename from
4815 tui_update_breakpoint_info.
4816 (tui_source_window_base::update_exec_info): Update.
4817
4818 2019-08-16 Tom Tromey <tom@tromey.com>
4819
4820 * tui/tui-winsource.h (struct tui_source_window_base)
4821 <update_source_window>: Declare.
4822 (tui_update_source_window): Don't declare.
4823 * tui/tui-winsource.c
4824 (tui_source_window_base::update_source_window): Rename from
4825 tui_update_source_window.
4826 (tui_source_window_base::rerender): Update.
4827 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4828 * tui/tui-disasm.c (tui_show_disassem)
4829 (tui_show_disassem_and_update_source)
4830 (tui_disasm_window::maybe_update): Update.
4831
4832 2019-08-16 Tom Tromey <tom@tromey.com>
4833
4834 * tui/tui-winsource.h (struct tui_source_window_base)
4835 <update_source_window_as_is>: Declare.
4836 (tui_update_source_window_as_is): Don't declare.
4837 * tui/tui-winsource.c (tui_update_source_window): Update
4838 (tui_source_window_base::update_source_window_as_is): Rename from
4839 tui_update_source_window_as_is.
4840 (tui_source_window_base::refill): Update.
4841 * tui/tui-source.c (tui_show_symtab_source): Update.
4842 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4843 Update.
4844
4845 2019-08-16 Tom Tromey <tom@tromey.com>
4846
4847 * tui/tui-winsource.h (tui_update_source_window)
4848 (tui_update_source_window_as_is): Remove "noerror" parameter.
4849 * tui/tui-winsource.c (tui_update_source_window)
4850 (tui_update_source_window_as_is): Remove "noerror" parameter.
4851 (tui_update_source_windows_with_addr)
4852 (tui_update_source_windows_with_line)
4853 (tui_source_window_base::rerender)
4854 (tui_source_window_base::refill): Update.
4855 * tui/tui-source.h (tui_set_source_content)
4856 (tui_show_symtab_source): Remove "noerror" parameter.
4857 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4858 parameter.
4859 (tui_show_symtab_source): Likewise.
4860 (tui_source_window::maybe_update): Update.
4861 * tui/tui-disasm.c (tui_show_disassem)
4862 (tui_show_disassem_and_update_source)
4863 (tui_disasm_window::do_scroll_vertical)
4864 (tui_disasm_window::maybe_update): Update.
4865
4866 2019-08-16 Tom Tromey <tom@tromey.com>
4867
4868 * tui/tui.c (tui_is_window_visible): Update.
4869 * tui/tui-wingeneral.c (tui_make_window)
4870 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4871 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4872 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4873 (tui_set_win_height_command, parse_scrolling_args): Update.
4874 * tui/tui-source.c (tui_source_window::style_changed): Update.
4875 * tui/tui-regs.c (tui_show_registers)
4876 (tui_data_window::first_data_item_displayed)
4877 (tui_data_window::delete_data_content_windows)
4878 (tui_check_register_values, tui_reg_command): Update.
4879 * tui/tui-disasm.c (tui_show_disassem): Update.
4880 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4881 method.
4882 <is_visible>: Remove field.
4883 * tui/tui-data.c (tui_next_win, tui_prev_win)
4884 (tui_delete_invisible_windows): Update.
4885
4886 2019-08-16 Tom Tromey <tom@tromey.com>
4887
4888 * tui/tui-winsource.h (struct tui_source_window_base)
4889 <m_has_locator>: Remove.
4890 * tui/tui-layout.c (show_source_disasm_command, show_data)
4891 (show_source_or_disasm_and_command): Update.
4892
4893 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4894
4895 * NEWS (Other MI changes): New subsection.
4896 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4897 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4898 * arch-utils.c (default_get_pc_address_flags): New function.
4899 * arch-utils.h (default_get_pc_address_flags): New declaration.
4900 * gdbarch.sh: Add get_pc_address_flags.
4901 * gdbarch.c: Regenerate.
4902 * gdbarch.h: Likewise.
4903 * stack.c (print_pc): New function.
4904 (print_frame_info) (print_frame): Call print_pc.
4905
4906 2019-08-16 Tom de Vries <tdevries@suse.de>
4907
4908 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4909 print_objfile_section_info.
4910
4911 2019-08-15 Tom Tromey <tom@tromey.com>
4912
4913 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4914 calling update_cmdwin_start_line.
4915 * tui/tui-winsource.h (struct tui_source_window_base)
4916 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4917 <rerender>: Declare.
4918 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4919 Call rerender.
4920 (tui_source_window_base::set_new_height): Remove.
4921 (tui_source_window_base::rerender): Rename from
4922 do_make_visible_with_new_height.
4923 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4924 resize method.
4925 (tui_win_info::make_invisible_and_set_new_height)
4926 (tui_win_info::make_visible_with_new_height): Remove.
4927 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4928 Declare.
4929 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4930 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4931 do_make_visible_with_new_height>: Don't declare.
4932 <rerender>: Declare.
4933 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4934 set_new_height.
4935 (tui_data_window::do_make_visible_with_new_height): Remove.
4936 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4937 call tui_show_locator_content.
4938 (tui_gen_win_info::resize): Call rerender.
4939 (show_source_or_disasm_and_command): Don't call
4940 tui_show_locator_content.
4941 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4942 method.
4943 (struct tui_win_info) <rerender>: Declare.
4944 <set_new_height, make_invisible_and_set_new_height,
4945 make_visible_with_new_height>: Don't declare.
4946 * tui/tui-data.c (tui_win_list::rerender): New method.
4947 * tui/tui-command.h (struct tui_cmd_window)
4948 <do_make_visible_with_new_height>: Don't declare.
4949 * tui/tui-command.c
4950 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4951
4952 2019-08-15 Tom Tromey <tromey@adacore.com>
4953
4954 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4955 * ada-lang.c (ada_enum_name): Likewise.
4956
4957 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4958
4959 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4960 leading underscore.
4961 (GdbOutputErrorFile): Likewise.
4962 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4963 accordingly.
4964 (execute_unwinders): Rename to have a leading underscore.
4965 (auto_load_packages): Likewise.
4966 (global scope): Adjust call to auto_load_packages accordingly.
4967 (GdbSetPythonDirectory): Likewise.
4968 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4969 instead of execute_unwinders.
4970
4971 2019-08-15 Tom Tromey <tom@tromey.com>
4972
4973 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4974 (show_data): Don't change window visibility.
4975 (tui_gen_win_info::resize): Remove special case for command
4976 window. Use wresize, when available.
4977 (show_source_or_disasm_and_command): Don't change window
4978 visibility.
4979 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4980 <make_visible>: New method.
4981 * tui/tui-command.c (tui_cmd_window::resize): New method.
4982
4983 2019-08-15 Tom Tromey <tom@tromey.com>
4984
4985 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4986 (struct tui_source_windows): New.
4987 * tui/tui-winsource.c (tui_display_main): Update.
4988 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4989 (new_height_ok, parse_scrolling_args): Update.
4990 * tui/tui-layout.c (show_layout, show_data): Update.
4991 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4992 (tui_add_to_source_windows): Don't declare.
4993 * tui/tui-data.c (source_windows, tui_source_windows)
4994 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4995
4996 2019-08-15 Tom Tromey <tom@tromey.com>
4997
4998 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4999 Rename from reset.
5000 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5001 * tui/tui-layout.c (show_source_disasm_command, show_data):
5002 Update.
5003 (tui_gen_win_info::resize): Rename.
5004 (show_source_or_disasm_and_command): Update.
5005 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5006 reset.
5007
5008 2019-08-15 Tom Tromey <tom@tromey.com>
5009
5010 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5011 * tui/tui-interp.c (tui_interp::init): Don't call
5012 tui_initialize_static_data.
5013 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5014
5015 2019-08-15 Tom Tromey <tom@tromey.com>
5016
5017 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5018 examine tui_win_list.
5019
5020 2019-08-15 Tom Tromey <tom@tromey.com>
5021
5022 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5023 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5024 tui_clear_source_content.
5025 (tui_clear_source_content): Remove.
5026 (tui_source_window_base::do_erase_source_content): Hoist call to
5027 content.clear().
5028 * tui/tui-stack.c (tui_show_frame_info): Don't call
5029 tui_clear_source_content.
5030
5031 2019-08-15 Tom Tromey <tom@tromey.com>
5032
5033 * tui/tui-winsource.h (struct tui_source_window_base)
5034 <do_erase_source_content>: New method.
5035 <erase_source_content>: New method.
5036 (tui_erase_source_content): Don't declare.
5037 * tui/tui-winsource.c (tui_clear_source_content): Update.
5038 (tui_source_window_base::do_erase_source_content): Rename from
5039 tui_erase_source_content.
5040 (tui_source_window_base::show_source_content): Update.
5041 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5042 * tui/tui-source.h (struct tui_source_window)
5043 <erase_source_content>: New method.
5044 * tui/tui-disasm.h (struct tui_disasm_window)
5045 <erase_source_content>: New method.
5046
5047 2019-08-15 Tom Tromey <tom@tromey.com>
5048
5049 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5050 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5051 constructor.
5052 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5053 * tui/tui-source.c (tui_set_source_content): Update.
5054 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5055
5056 2019-08-15 Tom Tromey <tom@tromey.com>
5057
5058 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5059 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5060 tui-source.c.
5061 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5062 Declare.
5063 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5064 method.
5065 (tui_source_window::maybe_update): Update.
5066
5067 2019-08-15 Tom Tromey <tom@tromey.com>
5068
5069 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5070 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5071 tui-disasm.c.
5072 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5073 Declare.
5074 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5075 method.
5076 (tui_disasm_window::maybe_update): Update.
5077
5078 2019-08-15 Tom Tromey <tom@tromey.com>
5079
5080 * tui/tui-winsource.h (struct tui_source_window_base)
5081 <maybe_update>: Declare.
5082 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5083 method.
5084 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5085 Declare.
5086 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5087 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5088 Declare.
5089 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5090
5091 2019-08-15 Tom Tromey <tom@tromey.com>
5092
5093 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5094
5095 2019-08-15 Tom Tromey <tom@tromey.com>
5096
5097 * tui/tui-wingeneral.c: Include tui-stack.h.
5098 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5099 (struct tui_locator_window): Move from tui-data.h.
5100 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5101 (tui_initialize_static_data): Move from tui-data.c.
5102 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5103 (struct tui_locator_window): Move to tui-stack.c.
5104 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5105 (tui_initialize_static_data): Move to tui-stack.c.
5106
5107 2019-08-15 Tom Tromey <tom@tromey.com>
5108
5109 * tui/tui-layout.c (show_source_disasm_command)
5110 (show_source_or_disasm_and_command): Use make_visible method, not
5111 tui_make_window.
5112 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5113 Remove.
5114
5115 2019-08-15 Tom Tromey <tom@tromey.com>
5116
5117 * tui/tui-wingeneral.h (tui_make_window): Update.
5118 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5119 parameter.
5120 (tui_gen_win_info::make_visible): Update.
5121 * tui/tui-regs.c (tui_data_window::display_registers_from):
5122 Update.
5123 * tui/tui-layout.c (show_source_disasm_command)
5124 (show_source_or_disasm_and_command): Update.
5125 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5126 (enum tui_box): Remove.
5127 (struct tui_win_info) <can_box>: New method.
5128 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5129 method.
5130
5131 2019-08-15 Tom de Vries <tdevries@suse.de>
5132
5133 * linux-nat-trad.c: Include gdbarch.h.
5134
5135 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5136
5137 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5138 register sizes.
5139
5140 2019-08-14 Tom Tromey <tromey@adacore.com>
5141
5142 * darwin-nat.c: Include gdbarch.h.
5143 * darwin-nat-info.c: Include gdbarch.h.
5144
5145 2019-08-13 Tom Tromey <tom@tromey.com>
5146
5147 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5148 Remove.
5149 * tui/tui-data.c (tui_initialize_static_data): Update.
5150
5151 2019-08-13 Tom Tromey <tom@tromey.com>
5152
5153 * tui/tui-winsource.h (struct tui_exec_info_window)
5154 <~tui_exec_info_window, maybe_allocate_content, get_content,
5155 m_content>: Remove.
5156 (struct tui_source_window_base) <set_exec_info_content,
5157 show_exec_info_content>: Don't declare.
5158 * tui/tui-winsource.c
5159 (tui_exec_info_window::maybe_allocate_content): Remove.
5160 (tui_source_window_base::update_exec_info): Rename from
5161 set_exec_info_content.
5162 (tui_source_window_base::show_exec_info_content)
5163 (tui_source_window_base::update_exec_info): Remove.
5164
5165 2019-08-13 Tom Tromey <tom@tromey.com>
5166
5167 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5168 declare.
5169 * tui/tui-winsource.c (tui_update_source_window_as_is)
5170 (tui_update_source_windows_with_addr, tui_erase_source_content):
5171 Update.
5172 (tui_clear_exec_info_content): Remove.
5173
5174 2019-08-13 Tom Tromey <tom@tromey.com>
5175
5176 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5177 declare.
5178 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5179 call tui_erase_exec_info_content.
5180 (tui_clear_exec_info_content): Rename from
5181 tui_erase_exec_info_content.
5182 (tui_clear_exec_info_content): Delete.
5183
5184 2019-08-13 Tom Tromey <tom@tromey.com>
5185
5186 * tui/tui-winsource.h (struct tui_source_window_base)
5187 <show_exec_info_content>: Declare.
5188 (tui_show_exec_info_content): Don't declare.
5189 * tui/tui-winsource.c
5190 (tui_source_window_base::show_exec_info_content): Rename from
5191 tui_show_exec_info_content.
5192 (tui_source_window_base::update_exec_info): Update.
5193
5194 2019-08-13 Tom Tromey <tom@tromey.com>
5195
5196 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5197 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5198 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5199 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5200 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5201 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5202 ... here.
5203
5204 2019-08-13 Tom Tromey <tom@tromey.com>
5205
5206 * tui/tui-winsource.h (struct tui_source_window_base)
5207 <update_exec_info>: Declare.
5208 (tui_update_exec_info): Don't declare.
5209 * tui/tui-winsource.c (tui_update_source_window_as_is)
5210 (tui_source_window_base::refresh_all)
5211 (tui_update_all_breakpoint_info): Update.
5212 (tui_source_window_base::update_exec_info): Rename from
5213 tui_update_exec_info.
5214 * tui/tui-stack.c (tui_show_frame_info): Update.
5215
5216 2019-08-13 Tom Tromey <tom@tromey.com>
5217
5218 * tui/tui-winsource.h (struct tui_source_window_base)
5219 <set_exec_info_content>: Declare.
5220 (tui_set_exec_info_content): Don't declare.
5221 * tui/tui-winsource.c
5222 (tui_source_window_base::set_exec_info_content): Rename from
5223 tui_set_exec_info_content.
5224 (tui_update_exec_info): Update.
5225
5226 2019-08-13 Tom Tromey <tom@tromey.com>
5227
5228 * tui/tui-winsource.h (struct tui_source_window_base)
5229 <show_source_content>: Declare.
5230 (tui_show_source_content): Don't declare.
5231 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5232 (tui_source_window_base::show_source_content): Rename from
5233 tui_show_source_content.
5234 (tui_source_window_base::refresh_all): Update.
5235 * tui/tui-layout.c (show_source_disasm_command)
5236 (show_source_or_disasm_and_command): Update.
5237
5238 2019-08-13 Tom Tromey <tom@tromey.com>
5239
5240 * tui/tui-winsource.c (tui_erase_source_content)
5241 (tui_show_source_content, tui_source_window_base::refresh_all):
5242 Update.
5243 * tui/tui-wingeneral.h
5244 (tui_check_and_display_highlight_if_needed): Don't declare.
5245 * tui/tui-wingeneral.c
5246 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5247 check_and_display_highlight_if_needed.
5248 * tui/tui-win.c (tui_rehighlight_all)
5249 (tui_win_info::make_visible_with_new_height): Update.
5250 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5251 (tui_data_window::erase_data_content)
5252 (tui_data_window::display_all_data): Update.
5253 * tui/tui-data.h (struct tui_win_info)
5254 <check_and_display_highlight_if_needed>: Declare.
5255
5256 2019-08-13 Tom Tromey <tom@tromey.com>
5257
5258 * tui/tui-win.c (tui_resize_all): Call
5259 tui_delete_invisible_windows.
5260 * tui/tui-layout.c (show_layout): Call
5261 tui_delete_invisible_windows.
5262 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5263 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5264
5265 2019-08-13 Tom Tromey <tom@tromey.com>
5266
5267 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5268 tui_add_win_to_layout.
5269
5270 2019-08-13 Tom Tromey <tom@tromey.com>
5271
5272 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5273 * tui/tui-layout.c (tui_default_win_height): Now static.
5274
5275 2019-08-13 Tom Tromey <tom@tromey.com>
5276
5277 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5278 single switch.
5279 (show_source_disasm_command, show_source_or_disasm_and_command):
5280 Don't check current layout.
5281
5282 2019-08-13 Tom Tromey <tom@tromey.com>
5283
5284 * tui/tui-wingeneral.c (make_all_visible): Remove.
5285 (tui_make_all_invisible): Simplify.
5286 * tui/tui-layout.c (tui_make_all_invisible): Move from
5287 tui-wingeneral.c; simplify.
5288 (show_layout): Hoist call to tui_make_all_invisible.
5289 (show_data): Don't call tui_make_all_invisible.
5290
5291 2019-08-13 Tom Tromey <tom@tromey.com>
5292
5293 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5294 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5295
5296 2019-08-13 Tom Tromey <tom@tromey.com>
5297
5298 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5299 tui-data.c.
5300 (show_source_disasm_command, show_data)
5301 (show_source_or_disasm_and_command): Don't use
5302 tui_set_current_layout_to.
5303 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5304 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5305 tui-layout.c.
5306 (tui_set_current_layout_to): Remove.
5307
5308 2019-08-13 Tom Tromey <tom@tromey.com>
5309
5310 * tui/tui-layout.c (tui_set_layout): Update.
5311 * tui/tui-data.h (struct tui_layout_def): Remove.
5312 (tui_layout_def): Don't declare.
5313 * tui/tui-data.c (layout_def): Remove.
5314 (tui_layout_def): Remove.
5315
5316 2019-08-13 Tom Tromey <tom@tromey.com>
5317
5318 * tui/tui-winsource.h (struct tui_source_window_base)
5319 <clear_detail>: No longer "override".
5320 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5321 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5322 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5323 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5324 Remove.
5325 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5326
5327 2019-08-13 Tom Tromey <tromey@adacore.com>
5328
5329 * tracepoint.c: Don't include readline.h or history.h.
5330
5331 2019-08-12 Tom Tromey <tom@tromey.com>
5332
5333 * configure: Rebuild.
5334 * configure.ac: Check for readline 7.
5335 * NEWS: Mention readline 7 requirement.
5336 * README: Update.
5337
5338 2019-08-12 Tom Tromey <tom@tromey.com>
5339
5340 * mingw-hdep.c (gdb_select): Remove readline hack.
5341
5342 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5343
5344 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5345 when the function fails.
5346
5347 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5348
5349 * s390-tdep.c (s390_type_align): New function.
5350 (s390_gdbarch_init): Set it as type_align gdbarch method.
5351
5352 2019-08-09 Tom de Vries <tdevries@suse.de>
5353
5354 PR gdb/24591
5355 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5356 pc_low with relocation offset.
5357
5358 2019-08-07 Tom Tromey <tromey@adacore.com>
5359
5360 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5361 (print_frame_args): Update.
5362 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5363 Update.
5364 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5365 * frame.h (struct frame_arg): Add initializers.
5366 <error>: Now a unique_xmalloc_ptr.
5367
5368 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5369
5370 * NEWS: Expand the Pointer Authentication entry.
5371 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5372 (aarch64_frame_unmask_lr): ... to this.
5373 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5374 Call aarch64_frame_unmask_lr.
5375 * frame.c (struct frame_info): Add "masked" variable.
5376 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5377 (fprint_frame): Check for masked pc.
5378 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5379 declarations.
5380 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5381 * stack.c (print_frame): Check for masked pc.
5382
5383 2019-08-06 Tom Tromey <tom@tromey.com>
5384
5385 * stabsread.c (patch_block_stabs, read_one_struct_field)
5386 (read_enum_type): Use obstack_strndup.
5387 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5388 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5389 * dwarf2read.c (guess_full_die_structure_name)
5390 (anonymous_struct_prefix): Use obstack_strndup.
5391 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5392 * c-exp.y (yylex): Use obstack_strndup.
5393 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5394 (write_var_or_type): Use obstack_strndup.
5395
5396 2019-08-06 Tom Tromey <tom@tromey.com>
5397
5398 * symfile.c (reread_symbols): Use obstack_strdup.
5399 * stabsread.c (read_type): Use obstack_strdup.
5400 * gdb_obstack.h (obstack_strdup): New overload.
5401 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5402 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5403 (dwarf2_canonicalize_name): Use obstack_strdup.
5404 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5405 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5406 Use obstack_strdup.
5407
5408 2019-08-06 Tom Tromey <tom@tromey.com>
5409
5410 * gdb_obstack.h (obstack_strdup): Define.
5411 * gdb_obstack.c (obstack_strdup): Don't define.
5412
5413 2019-08-06 Tom Tromey <tom@tromey.com>
5414
5415 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5416 obstack_strdup.
5417 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5418 obstack_strdup.
5419 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5420 * stabsread.c (common_block_start): Use obstack_strdup.
5421 * objfiles.c (set_objfile_main_name, objfile): Use
5422 obstack_strdup.
5423 * namespace.c (add_using_directive): Use obstack_strdup.
5424 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5425 * jit.c (finalize_symtab): Use obstack_strdup.
5426 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5427 (guess_partial_die_structure_name, partial_die_info::fixup)
5428 (dwarf2_name): Use obstack_strdup.
5429 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5430 obstack_strdup.
5431 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5432 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5433 obstack_strdup.
5434 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5435
5436 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5437
5438 * unittests/help-doc-selftests.c: New file.
5439 * Makefile.in: Add the new file.
5440
5441 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5442
5443 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5444 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5445 the full first line, except when FOR_VALUE_PREFIX. In this case,
5446 the trailing '.' is not output, and the first character is uppercased.
5447 (print_help_for_command): Update call to print_doc_line.
5448 (print_doc_of_command): Likewise.
5449 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5450 * cli/cli-option.c (append_indented_doc): Do not append newline.
5451 (build_help_option): Append newline after first appended_indented_doc
5452 only if a second call is done.
5453 (build_help): Append 2 new lines before each option, except the first
5454 one.
5455 * compile/compile.c (_initialize_compile): Add new lines after
5456 %OPTIONS%, when not at the end of the help.
5457 Change help doc or code
5458 producing the help doc to respect the invariants.
5459 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5460 Also removed the new line after 'Options:', as all other commands
5461 do not put an empty line between 'Options:' and the first option.
5462 * printcmd.c (_initialize_printcmd): Likewise.
5463 * stack.c (_initialize_stack): Likewise.
5464 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5465 incorrectly telling COMMAND is optional.
5466 * ada-lang.c (_initialize_ada_language): Change help doc or code
5467 producing the help doc to respect the invariants.
5468 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5469 * breakpoint.c (_initialize_breakpoint): Likewise.
5470 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5471 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5472 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5473 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5474 _initialize_cli_style): Likewise.
5475 * corelow.c (core_target_info): Likewise.
5476 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5477 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5478 * filesystem.c (_initialize_filesystem): Likewise.
5479 * frame.c (_initialize_frame): Likewise.
5480 * gnu-nat.c (add_task_commands): Likewise.
5481 * infcall.c (_initialize_infcall): Likewise.
5482 * infcmd.c (_initialize_infcmd): Likewise.
5483 * interps.c (_initialize_interpreter): Likewise.
5484 * language.c (_initialize_language): Likewise.
5485 * linux-fork.c (_initialize_linux_fork): Likewise.
5486 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5487 * maint.c (_initialize_maint_cmds): Likewise.
5488 * memattr.c (_initialize_mem): Likewise.
5489 * printcmd.c (_initialize_printcmd): Likewise.
5490 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5491 _RegEx): Likewise.
5492 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5493 * record-btrace.c (_initialize_record_btrace): Likewise.
5494 * record-full.c (_initialize_record_full): Likewise.
5495 * record.c (_initialize_record): Likewise.
5496 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5497 * regcache.c (_initialize_regcache): Likewise.
5498 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5499 _initialize_remote): Likewise.
5500 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5501 * serial.c (_initialize_serial): Likewise.
5502 * skip.c (_initialize_step_skip): Likewise.
5503 * source.c (_initialize_source): Likewise.
5504 * stack.c (_initialize_stack): Likewise.
5505 * symfile.c (_initialize_symfile): Likewise.
5506 * symtab.c (_initialize_symtab): Likewise.
5507 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5508 * top.c (init_main): Likewise.
5509 * tracefile-tfile.c (tfile_target_info): Likewise.
5510 * tracepoint.c (_initialize_tracepoint): Likewise.
5511 * tui/tui-win.c (_initialize_tui_win): Likewise.
5512 * utils.c (add_internal_problem_command): Likewise.
5513 * valprint.c (value_print_option_defs): Likewise.
5514
5515 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5516
5517 PR build/24886
5518 * configure.ac: Drop enable-libmcheck support.
5519 * configure, config.in: Rebuild.
5520 * libmcheck.m4: Remove.
5521 * acinclude.m4: Don't include it.
5522 * Makefile.in: Don't distribute it.
5523 * top.c (print_gdb_configuration): Don't mention it.
5524
5525 2019-08-06 Tom Tromey <tom@tromey.com>
5526
5527 * utils.c (set_output_style): Sometimes pass stream to
5528 emit_style_escape.
5529 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5530 * record-btrace.c (btrace_insn_history): Update.
5531 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5532 method.
5533 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5534 Update initializers.
5535 <m_uiout>: New field.
5536 <m_di>: Move lower.
5537 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5538 Remove "uiout" parameter.
5539 (dump_insns): Update.
5540 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5541 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5542
5543 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5544
5545 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5546 (error_in_psymtab_expansion): Likewise.
5547 (lookup_symbol_via_quick_fns): Likewise.
5548 (basic_lookup_transparent_type_quick): Likewise.
5549 (basic_lookup_transparent_type_1): Likewise.
5550
5551 2019-08-06 Tom Tromey <tromey@adacore.com>
5552
5553 * source.c (last_source_error): Now bool.
5554 (print_source_lines_base): Make "noprint" bool. Only open
5555 source file when last_source_visited changes.
5556
5557 2019-08-06 Tom Tromey <tromey@adacore.com>
5558
5559 * annotate.c (annotate_source_line): Use g_source_cache.
5560 * source-cache.c (source_cache::get_plain_source_lines): Change
5561 parameters. Populate m_offset_cache.
5562 (source_cache::ensure): New method.
5563 (source_cache::get_line_charpos): New method.
5564 (extract_lines): Move lower. Change parameters.
5565 (source_cache::get_source_lines): Move lower.
5566 * source-cache.h (class source_cache): Update comment.
5567 <get_line_charpos>: New method.
5568 <get_source_lines>: Update comment.
5569 <clear>: Clear m_offset_cache.
5570 <get_plain_source_lines>: Change parameters.
5571 <ensure>: New method
5572 <m_offset_cache>: New member.
5573 * source.c (forget_cached_source_info_for_objfile): Update.
5574 (info_source_command): Use g_source_cache.
5575 (find_source_lines, open_source_file_with_line_charpos): Remove.
5576 (print_source_lines_base, search_command_helper): Use g_source_cache.
5577 * source.h (open_source_file_with_line_charpos): Don't declare.
5578 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5579 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5580 Use g_source_cache.
5581
5582 2019-08-06 Tom Tromey <tromey@adacore.com>
5583
5584 * source-cache.c (source_cache::get_plain_source_lines):
5585 Remove "first_line" and "last_line" parameters.
5586 (source_cache::get_source_lines): Cache plain text.
5587 * source-cache.h (class source_cache)
5588 <get_plain_source_lines>: Update.
5589
5590 2019-08-06 Tom Tromey <tromey@adacore.com>
5591
5592 * source-cache.c (extract_lines): No longer a method.
5593 Changed type of parameter. Include final newline.
5594 (selftests::extract_lines_test): New function.
5595 (_initialize_source_cache): Likewise.
5596 * source-cache.h (class source_cache)
5597 <extract_lines>: Don't declare.
5598
5599 2019-08-06 Tom Tromey <tromey@adacore.com>
5600
5601 * breakpoint.c (init_breakpoint_sal): Update.
5602 (breakpoint): Update.
5603 * breakpoint.h (struct breakpoint) <filter>: Now a
5604 unique_xmalloc_ptr.
5605
5606 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5607
5608 * NEWS: Mention dictionary access on blocks.
5609 * python/py-block.c (blpy_getitem): New function.
5610 (block_object_as_mapping): New struct.
5611 (block_object_type): Use new struct for tp_as_mapping field.
5612
5613 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5614
5615 * objfiles.h (objfile): Add a comment describing partial symbols.
5616
5617 2019-08-05 Tom Tromey <tromey@adacore.com>
5618
5619 * compile/compile.c (_initialize_compile): Use _(), not N_().
5620 * thread.c (_initialize_thread): Use _(), not N_().
5621 * stack.c (_initialize_stack): Use _(), not N_().
5622 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5623
5624 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5625
5626 * dwarf2read.c (struct dw2_symtab_iterator):
5627 <want_specific_block>: Remove.
5628 <block_index>: Change type to gdb::optional.
5629 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5630 change type of BLOCK_INDEX parameter to gdb::optional.
5631 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5632 (dw2_lookup_symbol): Don't pass argument for
5633 WANT_SPECIFIC_BLOCK.
5634 (dw2_expand_symtabs_for_function): Don't pass argument for
5635 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5636 (class dw2_debug_names_iterator)
5637 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5638 parameter, change BLOCK_INDEX type to gdb::optional.
5639 <m_want_specific_block>: Remove.
5640 <m_block_index>: Change type to gdb::optional.
5641 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5642 gdb::optional. Re-write in function of gdb::optional.
5643 (dw2_debug_names_lookup_symbol): Don't pass argument for
5644 WANT_SPECIFIC_BLOCK.
5645 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5646 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5647 BLOCK_INDEX.
5648
5649 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5650
5651 * NEWS: Mention changes to "info sources" command.
5652
5653 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5654
5655 * symtab.c (filename_partial_match_opts): New struct type.
5656 (struct output_source_filename_data): New members
5657 regexp, c_regexp, partial_match.
5658 (output_source_filename): Use new members to decide to print file.
5659 (info_sources_option_defs): New variable.
5660 (make_info_sources_options_def_group, print_info_sources_header,
5661 info_sources_command_completer):
5662 New functions.
5663 (info_sources_command): Read new optional arguments.
5664 (_initialize_symtab): Update info sources help.
5665
5666 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5667
5668 * ada-lang.c (exception_support_info_v0): Renamed from...
5669 (default_exception_support_info): ... this. Create new
5670 definition for v1.
5671 (ada_has_this_exception_support): Look up catch_handlers_sym.
5672 (ada_exception_support_info_sniffer): Try v0 after default.
5673
5674 2019-08-01 Tom Tromey <tromey@adacore.com>
5675
5676 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5677 gdbarch.h.
5678
5679 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5680
5681 * s12z-tdep.c: Fix include path for s12z-opc.h.
5682
5683 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5684
5685 * NEWS: Require GNU make 3.82.
5686
5687 2019-07-16 Tom Tromey <tom@tromey.com>
5688
5689 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5690 declare.
5691
5692 2019-07-30 Tom Tromey <tromey@adacore.com>
5693
5694 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5695
5696 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5697
5698 * printcmd.c (print_address_symbolic): Print negative offsets.
5699 (build_address_symbolic): Force signed arithmetic when computing
5700 offset.
5701
5702 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5703
5704 PR/24474: Add a function to lookup static variables.
5705 * NEWS: Mention this new function.
5706 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5707 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5708 * python/python.c (python_GdbMethods): Add new function.
5709
5710 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5711
5712 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5713 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5714 (objfpy_lookup_static_symbol): New function.
5715 (objfile_object_methods): Add new functions.
5716
5717 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5718
5719 * NEWS: Mention 'set|show print frame-info'. Mention new
5720 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5721 backtrace argument. Mention that python frame filtering code
5722 is now consistent with what 'backtrace' command prints.
5723
5724 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5725
5726 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5727 comments.
5728 (print_frame_info_auto, print_frame_info_source_line,
5729 print_frame_info_location, print_frame_info_source_and_location,
5730 print_frame_info_location_and_address, print_frame_info_short_location):
5731 New declarations.
5732 (struct frame_print_options): New member print_frame_info.
5733 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5734 * stack.h (get_user_print_what_frame_info): New declaration.
5735 (frame_show_address): New declaration.
5736 * stack.c (print_frame_arguments_choices): New value 'presence'.
5737 (print_frame_info_auto, print_frame_info_source_line,
5738 print_frame_info_location, print_frame_info_source_and_location,
5739 print_frame_info_location_and_address, print_frame_info_short_location,
5740 print_frame_info_choices, print_frame_info_print_what): New definitions.
5741 (print_frame_args): Only print dots for args if print frame-arguments
5742 is 'presence'.
5743 (frame_print_option_defs): New element for "frame-info".
5744 (get_user_print_what_frame_info): New function.
5745 (frame_show_address): Make non static. Move comment to stack.h.
5746 (print_frame_info_to_print_what): New function.
5747 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5748 to decide what to print.
5749 (backtrace_command_1): Handle the new print_frame_arguments_presence
5750 value.
5751 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5752 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5753 (py_print_frame): In non-mi mode, use LOCATION as default for
5754 print_what, similarly to frame information printed directly by
5755 backtrace command. Handle frame-info user option in non MI mode.
5756
5757 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5758
5759 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5760 Add case for debugging 32-bit target on 64-bit host. Revise
5761 comment.
5762
5763 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5764
5765 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5766 instead of find_function_entry_range_from_pc.
5767
5768 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5769
5770 * stack.c (find_frame_funname): Remove code which preferred
5771 minsym over symtab sym in "certain pathological cases".
5772
5773 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5774 parameter. Change type of "do_demangle" to bool.
5775 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5776 Pass suitable "prefer_sym_over_minsym" flag to
5777 build_address_symbolic(). Don't output "+" for negative offsets.
5778 * printcmd.c (print_address_symbolic): Update invocation of
5779 build_address_symbolic to include a "prefer_sym_over_minsym"
5780 flag.
5781 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5782 Restrict cases in which use of minimal symbol is preferred to that
5783 of a found symbol. Update comments.
5784
5785 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5786 for entry pc when entry pc is out of range for that FDE.
5787
5788 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5789
5790 PR gdb/24839:
5791 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5792 type.
5793
5794 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5795
5796 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5797 this function's Python signature.
5798
5799
5800 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5801
5802 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5803 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5804 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5805 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5806 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5807
5808
5809 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5810
5811 * h8300-tdep.c (h8300_register_name_common): New.
5812 h8300_register_name): Use h8300_register_name_common.
5813 (h8300s_register_name): Likewise.
5814 (h8300sx_register_name): Likewise.
5815 (h8300h_register_nam): New.
5816 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5817
5818
5819 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5820
5821 * arm-tdep.c (arm_skip_cmse_entry): New function.
5822 (arm_is_sgstubs_section): New function.
5823 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5824
5825 2019-07-22 Tom Tromey <tom@tromey.com>
5826
5827 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5828 Don't self-assign.
5829
5830 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5831
5832 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5833 type_print.
5834
5835 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5836
5837 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5838 so that GDB doesn't match any msymbols when searching in the
5839 TYPES_DOMAIN.
5840 (print_symbol_info): Print using typedef_print or type_print based
5841 on the type of the symbol. Add updated FIXME comment moved from...
5842 (_initialize_symtab): ... move and update FIXME comment to above.
5843
5844 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5845
5846 * NEWS: Mention adding -q option to "info types".
5847 * symtab.c (struct info_types_options): New struct.
5848 (info_types_options_defs): New variable.
5849 (make_info_types_options_def_group): New function.
5850 (info_types_command): Use gdb::option framework to parse options.
5851 (info_types_command_completer): New function.
5852 (_initialize_symtab): Extend the help text on "info types" and
5853 register command completer.
5854
5855 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5856
5857 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5858 (lookup_symbol_in_objfile): Change int to block_enum and add a
5859 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5860
5861 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5862
5863 * MAINTAINERS (Write After Approval): Add self.
5864
5865 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5866
5867 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5868 instruction to the dummy code region.
5869
5870 2019-07-19 Tom Tromey <tromey@adacore.com>
5871
5872 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5873 (ARGSUSED, PARAMS, __func__): Remove rules.
5874
5875 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5876
5877 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5878 * features/arm/arm-with-iwmmxt.c: Remove.
5879 * features/arm/arm-with-iwmmxt.xml: Remove.
5880 * features/arm/arm-with-m-fpa-layout.c: Remove.
5881 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5882 * features/arm/arm-with-m-vfp-d16.c: Remove.
5883 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5884 * features/arm/arm-with-m.c: Remove.
5885 * features/arm/arm-with-m.xml: Remove.
5886 * features/arm/arm-with-neon.c: Remove.
5887 * features/arm/arm-with-neon.xml: Remove.
5888 * features/arm/arm-with-vfpv2.c: Remove.
5889 * features/arm/arm-with-vfpv2.xml: Remove.
5890 * features/arm/arm-with-vfpv3.c: Remove.
5891 * features/arm/arm-with-vfpv3.xml: Remove.
5892
5893 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5894
5895 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5896
5897 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5898
5899 * arch/aarch32.c (aarch32_create_target_description): Create
5900 target descriptions using features.
5901 * arch/arm.c (arm_create_target_description)
5902 (arm_create_mprofile_target_description): Likewise.
5903 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5904
5905 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5906
5907 * Makefile.in: Add new files.
5908 * aarch32-tdep.c: New file.
5909 * aarch32-tdep.h: New file.
5910 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5911 Call aarch32_read_description.
5912 * arch/aarch32.c: New file.
5913 * arch/aarch32.h: New file.
5914 * arch/arm.c (arm_create_target_description)
5915 (arm_create_mprofile_target_description): New function.
5916 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5917 (arm_create_target_description)
5918 (arm_create_mprofile_target_description): New declaration.
5919 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5920 read_description functions.
5921 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5922 Likewise.
5923 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5924 * arm-tdep.c (tdesc_arm_list): New variable.
5925 (arm_register_g_packet_guesses): Call create description functions.
5926 (arm_read_description) (arm_read_mprofile_description): New
5927 function.
5928 * arm-tdep.h (arm_read_description)
5929 (arm_read_mprofile_description): Add declaration.
5930 * configure.tgt: Add new files.
5931
5932 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5933
5934 * top.c (new_ui_command): Open specified terminal just once.
5935
5936 2019-07-18 Tom Tromey <tromey@adacore.com>
5937
5938 * symtab.c (main_name): Constify return type.
5939 * symfile.c (set_initial_language): Update.
5940 * symtab.h (main_name): Constify return type.
5941
5942 2019-07-17 Tom Tromey <tom@tromey.com>
5943
5944 * tui/tui-winsource.c (tui_update_source_window)
5945 (tui_update_source_window_as_is)
5946 (tui_update_source_windows_with_line): Remove return.
5947 * tui/tui-disasm.c (tui_show_disassem)
5948 (tui_show_disassem_and_update_source): Remove return.
5949 * tui/tui.c (tui_reset): Remove return.
5950 * tui/tui-wingeneral.c
5951 (tui_check_and_display_highlight_if_needed): Remove return.
5952
5953 2019-07-17 Tom Tromey <tom@tromey.com>
5954
5955 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5956
5957 2019-07-17 Tom Tromey <tom@tromey.com>
5958
5959 * tui/tui-winsource.h (struct tui_exec_info_window)
5960 (struct tui_source_window_base): Move from tui-data.h.
5961 * tui/tui-winsource.c: Move many method definitions from
5962 elsewhere. Remove "structuring" comments.
5963 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5964 (tui_source_window_base::refresh_window): Move to
5965 tui-winsource.c.
5966 * tui/tui-win.c (tui_source_window_base::refresh_all)
5967 (tui_source_window_base::update_tab_width)
5968 (tui_source_window_base::set_new_height)
5969 (tui_source_window_base::do_make_visible_with_new_height): Move to
5970 tui-winsource.c.
5971 * tui/tui-source.h: Update.
5972 * tui/tui-source.c (tui_source_window_base::reset): Move to
5973 tui-winsource.c.
5974 * tui/tui-disasm.h: Update.
5975 * tui/tui-data.h (struct tui_exec_info_window): Move to
5976 tui-winsource.h.
5977 (struct tui_source_window_base): Likewise.
5978 * tui/tui-data.c (tui_source_window_base::clear_detail)
5979 (tui_source_window_base, ~tui_source_window_base): Move to
5980 tui-winsource.c.
5981
5982 2019-07-17 Tom Tromey <tom@tromey.com>
5983
5984 * tui/tui-win.c (tui_resize_all)
5985 (tui_source_window_base::update_tab_width)
5986 (tui_adjust_win_heights): Update.
5987 (tui_win_info::make_invisible_and_set_new_height): Rename from
5988 make_invisible_and_set_new_height.
5989 * tui/tui-data.h (struct tui_win_info)
5990 <make_invisible_and_set_new_height>: New method.
5991
5992 2019-07-17 Tom Tromey <tom@tromey.com>
5993
5994 * tui/tui.c: Update.
5995 * tui/tui-source.h (struct tui_source_window): Move from
5996 tui-data.h.
5997 * tui/tui-layout.c: Update.
5998 * tui/tui-disasm.c: Update.
5999 * tui/tui-data.h (struct tui_source_window): Move to
6000 tui-source.h.
6001
6002 2019-07-17 Tom Tromey <tom@tromey.com>
6003
6004 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6005 tui-data.h.
6006 * tui/tui-data.h (struct tui_disasm_window): Move to
6007 tui-disasm.h.
6008
6009 2019-07-17 Tom Tromey <tom@tromey.com>
6010
6011 * tui/tui-regs.h (struct tui_data_item_window): Move from
6012 tui-data.h.
6013 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6014 * tui/tui-data.h (struct tui_data_item_window): Move to
6015 tui-regs.h.
6016 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6017
6018 2019-07-17 Tom Tromey <tom@tromey.com>
6019
6020 * tui/tui.c: Update.
6021 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6022 (tui_cmd_window::max_height): Move to tui-command.c.
6023 * tui/tui-layout.c: Update.
6024 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6025 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6026 tui-command.c.
6027 * tui/tui-command.h (struct tui_cmd_window): Move from
6028 tui-data.h.
6029 * tui/tui-command.c: Remove "structuring" comments.
6030 (tui_cmd_window::clear_detail)
6031 (tui_cmd_window::do_make_visible_with_new_height)
6032 (tui_cmd_window::max_height): Move from elsewhere.
6033
6034 2019-07-17 Tom Tromey <tom@tromey.com>
6035
6036 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6037 Now static.
6038 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6039 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6040
6041 2019-07-17 Tom Tromey <tom@tromey.com>
6042
6043 * tui/tui.c: Update.
6044 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6045 tui-regs.c.
6046 * tui/tui-windata.h: Remove file.
6047 * tui/tui-windata.c: Remove file.
6048 * tui/tui-win.c (tui_data_window::set_new_height)
6049 (tui_data_window::do_make_visible_with_new_height): Move to
6050 tui-regs.c.
6051 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6052 * tui/tui-regs.c: Remove "structuring" comments.
6053 (tui_data_window::first_data_item_displayed)
6054 (tui_data_window::delete_data_content_windows)
6055 (tui_data_window::erase_data_content)
6056 (tui_data_window::display_all_data)
6057 (tui_data_window::refresh_all)
6058 (tui_data_window::do_scroll_vertical)
6059 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6060 (tui_data_window::do_make_visible_with_new_height)
6061 (tui_data_window::refresh_window): Move from elsewhere.
6062 (_initialize_tui_regs): Move to end of file.
6063 * tui/tui-layout.c: Update.
6064 * tui/tui-hooks.c: Update.
6065 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6066 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6067 tui-regs.c.
6068 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6069
6070 2019-07-17 Tom Tromey <tom@tromey.com>
6071
6072 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6073 seen.
6074
6075 2019-07-17 Tom Tromey <tom@tromey.com>
6076
6077 * tui/tui-win.c (tui_source_window_base::set_new_height)
6078 (tui_source_window_base::do_make_visible_with_new_height): Use
6079 m_has_locator field directly.
6080 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6081 method.
6082 (struct tui_source_window_base) <has_locator>: Likewise.
6083
6084 2019-07-17 Tom Tromey <tom@tromey.com>
6085
6086 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6087 Don't declare.
6088 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6089 Remove.
6090 * tui/tui-win.c (tui_source_window_base::set_new_height)
6091 (tui_source_window_base::set_new_height)
6092 (make_invisible_and_set_new_height)
6093 (tui_source_window_base::do_make_visible_with_new_height)
6094 (tui_source_window_base::do_make_visible_with_new_height):
6095 Update.
6096 * tui/tui-layout.c (show_source_disasm_command, show_data)
6097 (show_source_or_disasm_and_command): Update.
6098 * tui/tui-layout.c (show_layout): Update.
6099
6100 2019-07-17 Tom Tromey <tom@tromey.com>
6101
6102 * tui/tui-layout.c (make_data_window): Remove.
6103 (show_data): Unify creation and re-initialization cases.
6104
6105 2019-07-17 Tom Tromey <tom@tromey.com>
6106
6107 * tui/tui-layout.c (make_source_window, make_disasm_window):
6108 Remove.
6109 (show_data): Unify creation and re-initialization cases.
6110
6111 2019-07-17 Tom Tromey <tom@tromey.com>
6112
6113 * tui/tui-layout.c (make_command_window): Remove.
6114 (show_source_disasm_command, show_source_or_disasm_and_command):
6115 Unify creation and re-initialization cases.
6116
6117 2019-07-17 Tom Tromey <tom@tromey.com>
6118
6119 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6120 creation and re-initialization cases.
6121
6122 2019-07-17 Tom Tromey <tom@tromey.com>
6123
6124 * tui/tui-regs.c (tui_get_register): Return void.
6125
6126 2019-07-17 Tom Tromey <tom@tromey.com>
6127
6128 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6129 Simplify.
6130
6131 2019-07-17 Tom Tromey <tom@tromey.com>
6132
6133 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6134 resetting.
6135
6136 2019-07-17 Tom Tromey <tom@tromey.com>
6137
6138 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6139 * tui/tui-regs.c (tui_reg_layout): New function.
6140 (tui_show_registers, tui_reg_command): Use it.
6141 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6142 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6143 parameters.
6144 (tui_layout_command): Remove.
6145
6146 2019-07-17 Tom Tromey <tom@tromey.com>
6147
6148 * tui/tui-layout.h (tui/tui-layout): Return void.
6149 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6150
6151 2019-07-17 Tom Tromey <tom@tromey.com>
6152
6153 * tui/tui-layout.c (show_source_disasm_command, show_data):
6154 Update.
6155 (reset_locator): Remove.
6156 (show_source_or_disasm_and_command): Update.
6157
6158 2019-07-17 Tom Tromey <tom@tromey.com>
6159
6160 * tui/tui-source.c (tui_source_window_base::reset): Remove
6161 win_type parameter.
6162 * tui/tui-layout.c (make_command_window, make_source_window)
6163 (make_disasm_window, make_data_window)
6164 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6165 (reset_locator, show_source_or_disasm_and_command): Update.
6166 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6167 win_type parameter.
6168 (struct tui_source_window_base) <reset>: Likewise.
6169
6170 2019-07-17 Tom Tromey <tom@tromey.com>
6171
6172 * tui/tui-layout.c (show_source_disasm_command): Use
6173 reset_locator.
6174 (reset_locator): New function.
6175 (init_and_make_win): Remove.
6176 (show_source_or_disasm_and_command): Use reset_locator.
6177
6178 2019-07-17 Tom Tromey <tom@tromey.com>
6179
6180 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6181 condition.
6182 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6183 Remove condition.
6184 * tui/tui-source.c (tui_source_window_base::reset): New method.
6185 * tui/tui-layout.c (make_command_window): Don't call
6186 init_and_make_win.
6187 (make_source_window, make_disasm_window): Don't call
6188 make_source_or_disasm_window.
6189 (make_data_window): Don't call init_and_make_win. Change calling
6190 convention.
6191 (show_source_disasm_command, show_data): Simplify.
6192 (make_source_or_disasm_window): Remove.
6193 (show_source_or_disasm_and_command): Simplify.
6194 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6195 (struct tui_source_window_base) <reset>: Likewise.
6196 <execution_info>: Remove initializer.
6197 * tui/tui-data.c (tui_source_window_base): Initialize
6198 execution_info.
6199
6200 2019-07-17 Tom Tromey <tom@tromey.com>
6201
6202 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6203 variable.
6204
6205 2019-07-17 Tom Tromey <tom@tromey.com>
6206
6207 * tui/tui.c (tui_rl_other_window): Update.
6208 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6209 superclass method first. Always iterate over regs_content.
6210 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6211 method.
6212 * tui/tui-win.c (tui_set_focus_command): Update.
6213
6214 2019-07-17 Tom Tromey <tom@tromey.com>
6215
6216 * tui/tui-win.c (tui_set_focus_command): Rename from
6217 tui_set_focus. Call tui_enable.
6218 (tui_set_focus_command): Remove.
6219
6220 2019-07-17 Tom Tromey <tom@tromey.com>
6221
6222 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6223 refresh_window.
6224 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6225 touchwin.
6226 (tui_data_window::refresh_window): Call refresh_window on data
6227 items. Always call superclass refresh_window.
6228 (tui_win_info::refresh): Remove.
6229 (tui_source_window_base::refresh_window): Update.
6230 (tui_refresh_all): Update.
6231 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6232 refresh_window.
6233 (show_source_or_disasm_and_command): Likewise.
6234 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6235 (struct tui_source_window_base) <refresh>: Likewise.
6236
6237 2019-07-17 Tom Tromey <tom@tromey.com>
6238
6239 * tui/tui-winsource.c (tui_clear_source_content)
6240 (tui_show_source_content): Update.
6241 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6242 whether content is empty.
6243 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6244 Remove.
6245
6246 2019-07-17 Tom Tromey <tom@tromey.com>
6247
6248 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6249 window's contents.
6250 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6251 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6252
6253 2019-07-17 Tom Tromey <tom@tromey.com>
6254
6255 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6256 (struct tui_data_item_window): Update.
6257
6258 2019-07-17 Tom Tromey <tom@tromey.com>
6259
6260 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6261 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6262 defines.
6263
6264 2019-07-17 Tom Tromey <tom@tromey.com>
6265
6266 * tui/tui-winsource.h (tui_erase_source_content)
6267 (tui_clear_source_content): Remove "display_prompt" parameter.
6268 * tui/tui-winsource.c (tui_update_source_window_as_is)
6269 (tui_update_source_windows_with_addr): Update.
6270 (tui_clear_source_content): Remove "display_prompt" parameter.
6271 (tui_erase_source_content): Likewise. Simplify.
6272 (tui_show_source_content): Update.
6273 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6274 * tui/tui-stack.c (tui_show_frame_info): Update.
6275 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6276 Remove defines.
6277
6278 2019-07-17 Tom Tromey <tom@tromey.com>
6279
6280 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6281 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6282 parameter.
6283 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6284 parameter.
6285
6286 2019-07-17 Tom Tromey <tom@tromey.com>
6287
6288 * tui/tui-winsource.c (tui_clear_source_content)
6289 (tui_show_source_content, tui_show_exec_info_content)
6290 (tui_clear_exec_info_content): Update.
6291 * tui/tui-stack.c (tui_show_locator_content): Update.
6292 (tui_show_frame_info): Update.
6293 * tui/tui-source.h (tui_source_window): Don't declare.
6294 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6295 from tui_source_is_displayed.
6296 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6297 Remove field.
6298 (struct tui_source_window_base) <content_in_use>: New field. Now
6299 bool.
6300 (struct tui_source_window) <showing_source_p>: New method.
6301 (TUI_SRC_WIN): Change cast.
6302 * tui/tui-data.c (tui_initialize_static_data): Update.
6303
6304 2019-07-17 Tom Tromey <tom@tromey.com>
6305
6306 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6307 location_matches_p.
6308 * tui/tui-source.c (tui_source_window::location_matches_p): New
6309 method.
6310 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6311 method.
6312 * tui/tui-data.h (struct tui_source_window_base)
6313 <location_matches_p>: New method.
6314 (struct tui_source_window, struct tui_disasm_window)
6315 <location_matches_p>: Likewise.
6316
6317 2019-07-17 Tom Tromey <tom@tromey.com>
6318
6319 * tui/tui-win.c (tui_set_win_height_command): Rename from
6320 tui_set_win_height.
6321 (tui_set_win_height_command): Remove.
6322
6323 2019-07-17 Tom Tromey <tom@tromey.com>
6324
6325 * tui/tui-source.c (tui_source_window): New constructor. Add
6326 observer.
6327 (~tui_source_window): New destructor.
6328 (tui_source_window::style_changed): New method.
6329 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6330 (tui_attach_detach_observers): Update.
6331 * tui/tui-data.h (struct tui_source_window): Make constructor not
6332 inline. Add destructor.
6333 (struct tui_source_window) <style_changed>: New method.
6334 <m_observable>: New member.
6335
6336 2019-07-17 Tom Tromey <tom@tromey.com>
6337
6338 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6339 * tui/tui-win.c (tui_resize_all): Fix typo.
6340
6341 2019-07-17 Tom Tromey <tom@tromey.com>
6342
6343 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6344 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6345 (tui_refresh_all): Remove "list" parameter. Use foreach.
6346 * tui/tui-win.c (window_name_completer): Use foreach.
6347 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6348 (update_tab_width): Likewise.
6349 * tui/tui-layout.c (show_layout): Update.
6350 * tui/tui-data.h (class tui_window_iterator): New.
6351 (struct all_tui_windows): New.
6352 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6353
6354 2019-07-17 Tom Tromey <tom@tromey.com>
6355
6356 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6357 parameter. Don't reference globals.
6358 (tui_reg_command): Update.
6359
6360 2019-07-17 Tom Tromey <tom@tromey.com>
6361
6362 * tui/tui-regs.c (tui_show_registers): Simplify.
6363
6364 2019-07-17 Tom Tromey <tom@tromey.com>
6365
6366 * tui/tui-regs.c (tui_show_registers): Update.
6367 (tui_show_register_group): Add win_info parameter.
6368
6369 2019-07-17 Tom Tromey <tom@tromey.com>
6370
6371 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6372 Rename from tui_display_reg_element_at_line.
6373 (tui_data_window::display_registers_from_line): Update.
6374 * tui/tui-data.h (struct tui_data_window)
6375 <display_reg_element_at_line>: New method.
6376
6377 2019-07-17 Tom Tromey <tom@tromey.com>
6378
6379 * tui/tui-regs.h (tui_display_registers_from)
6380 (tui_display_registers_from_line): Don't declare.
6381 * tui/tui-windata.c (tui_data_window::display_all_data)
6382 (tui_data_window::refresh_all)
6383 (tui_data_window::do_scroll_vertical): Update.
6384 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6385 from tui_display_registers_from.
6386 (tui_display_reg_element_at_line): Update.
6387 (tui_data_window::display_registers_from_line): Rename from
6388 tui_display_registers_from_line.
6389 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6390 display_registers_from_line>: New methods.
6391
6392 2019-07-17 Tom Tromey <tom@tromey.com>
6393
6394 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6395 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6396 from tui_erase_data_content.
6397 (tui_data_window::display_all_data)
6398 (tui_data_window::refresh_all)
6399 (tui_data_window::do_scroll_vertical): Update.
6400 * tui/tui-regs.c (tui_show_registers): Update.
6401 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6402 New method.
6403
6404 2019-07-17 Tom Tromey <tom@tromey.com>
6405
6406 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6407 declare.
6408 * tui/tui-windata.c
6409 (tui_data_window::delete_data_content_windows): Rename from
6410 tui_delete_data_content_windows.
6411 (tui_data_window::display_all_data)
6412 (tui_data_window::do_scroll_vertical): Update.
6413 * tui/tui-data.h (struct tui_data_window)
6414 <delete_data_content_windows>: New method.
6415
6416 2019-07-17 Tom Tromey <tom@tromey.com>
6417
6418 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6419 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6420
6421 2019-07-17 Tom Tromey <tom@tromey.com>
6422
6423 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6424 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6425 from tui_display_all_data.
6426 * tui/tui-win.c
6427 (tui_data_window::do_make_visible_with_new_height): Update.
6428 * tui/tui-regs.c (tui_show_registers): Update.
6429 * tui/tui-layout.c (tui_set_layout): Update.
6430 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6431 method.
6432
6433 2019-07-17 Tom Tromey <tom@tromey.com>
6434
6435 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6436 * tui/tui-windata.c (tui_display_data_from): Remove.
6437 (tui_data_window::refresh_all): Update.
6438
6439 2019-07-17 Tom Tromey <tom@tromey.com>
6440
6441 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6442 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6443 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6444 tui_display_registers_from_line.
6445 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6446 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6447 "force_display" parameter.
6448
6449 2019-07-17 Tom Tromey <tom@tromey.com>
6450
6451 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6452 declare.
6453 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6454 Rename from tui_first_reg_element_no_inline.
6455 (tui_display_reg_element_at_line)
6456 (tui_display_registers_from_line): Update.
6457 * tui/tui-data.h (struct tui_data_window)
6458 <first_reg_element_no_inline>: New method.
6459
6460 2019-07-17 Tom Tromey <tom@tromey.com>
6461
6462 * tui/tui-windata.c (tui_display_data_from)
6463 (tui_data_window::do_scroll_vertical): Update.
6464 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6465 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6466 Rename from tui_line_from_reg_element_no.
6467 (tui_display_registers_from_line): Update.
6468 * tui/tui-data.h (struct tui_data_window)
6469 <line_from_reg_element_no>: New method.
6470
6471 2019-07-17 Tom Tromey <tom@tromey.com>
6472
6473 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6474 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6475 tui_last_regs_line_no.
6476 (tui_display_reg_element_at_line)
6477 (tui_display_registers_from_line): Update.
6478 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6479 method.
6480
6481 2019-07-17 Tom Tromey <tom@tromey.com>
6482
6483 PR tui/24722:
6484 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6485 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6486 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6487 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6488 (tui_update_breakpoint_info): Likewise.
6489 * tui/tui-hooks.c (tui_event_create_breakpoint)
6490 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6491 Update.
6492
6493 2019-07-17 Tom Tromey <tom@tromey.com>
6494
6495 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6496
6497 2019-07-17 Tom Tromey <tom@tromey.com>
6498
6499 * tui/tui-winsource.c (tui_update_source_window_as_is)
6500 (tui_update_source_windows_with_addr): Update.
6501 * tui/tui-source.h (tui_set_source_content)
6502 (tui_show_symtab_source): Add "win_info" parameter.
6503 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6504 parameter.
6505 (tui_show_symtab_source): Likewise.
6506
6507 2019-07-17 Tom Tromey <tom@tromey.com>
6508
6509 * tui/tui-wingeneral.c
6510 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6511
6512 2019-07-17 Tom Tromey <tom@tromey.com>
6513
6514 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6515 (struct tui_cmd_window) <can_scroll>: New method.
6516 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6517 method.
6518
6519 2019-07-17 Tom Tromey <tromey@adacore.com>
6520
6521 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6522 do_field_signed>: Rename. Change type of "value".
6523 * ui-out.c (ui_out::field_signed): Rename from field_int.
6524 Change type of "value".
6525 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6526 type of "value".
6527 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6528 do_field_int. Change type of "value".
6529 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6530 do_field_int. Change type of "value".
6531 * tracepoint.c (trace_status_mi, tfind_1)
6532 (print_one_static_tracepoint_marker): Update.
6533 * thread.c (print_thread_info_1, print_selected_thread_frame):
6534 Update.
6535 * stack.c (print_frame, print_frame_info): Update.
6536 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6537 Update.
6538 * source.c (print_source_lines_base): Update.
6539 * skip.c (info_skip_command): Update.
6540 * record-btrace.c (btrace_ui_out_decode_error)
6541 (btrace_call_history_src_line): Update.
6542 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6543 Update.
6544 * progspace.c (print_program_space): Update.
6545 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6546 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6547 do_field_int. Change type of "value".
6548 * mi/mi-out.c (mi_ui_out::do_table_begin)
6549 (mi_ui_out::do_table_header): Update.
6550 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6551 type of "value".
6552 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6553 (mi_cmd_data_list_changed_registers, output_register)
6554 (mi_cmd_data_read_memory, mi_load_progress)
6555 (mi_cmd_trace_frame_collected): Update.
6556 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6557 Update.
6558 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6559 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6560 (mi_cmd_var_list_children, varobj_update_one): Update.
6561 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6562 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6563 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6564 * inferior.c (print_inferior): Update.
6565 * gdb_bfd.c (print_one_bfd): Update.
6566 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6567 Update.
6568 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6569 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6570 do_field_int. Change type of "value".
6571 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6572 do_field_int. Change type of "value".
6573 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6574 (print_one_breakpoint_location, print_it_catch_fork)
6575 (print_one_catch_fork, print_it_catch_vfork)
6576 (print_one_catch_vfork, print_it_catch_solib)
6577 (print_it_catch_exec, print_it_ranged_breakpoint)
6578 (print_mention_watchpoint, print_mention_masked_watchpoint)
6579 (bkpt_print_it, update_static_tracepoint): Update.
6580 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6581 * break-catch-syscall.c (print_it_catch_syscall): Update.
6582 * ada-tasks.c (print_ada_task_info): Update.
6583 * ada-lang.c (print_it_exception, print_mention_exception):
6584 Update.
6585
6586 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6587
6588 PR breakpoints/24541
6589 * gdbarch.c: Regenerate.
6590 * gdbarch.h: Regenerate.
6591 * gdbarch.sh: Adjust return type and parameter types for
6592 'stap_adjust_register'.
6593 (i386_stap_adjust_register): Adjust signature and return new
6594 register name.
6595 * stap-probe.c (stap_parse_register_operand): Adjust use of
6596 'gdbarch_stap_adjust_register'.
6597
6598 2019-07-17 Tom Tromey <tromey@adacore.com>
6599
6600 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6601 declare VEC.
6602 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6603 std::vector.
6604 (struct s390_process_info): Add initializers.
6605 (s390_add_process): Use new.
6606 (s390_linux_nat_target::low_forget_process): Use delete.
6607 (s390_linux_nat_target::low_new_fork)
6608 (s390_linux_nat_target::stopped_by_watchpoint)
6609 (s390_linux_nat_target::low_prepare_to_resume)
6610 (s390_linux_nat_target::insert_watchpoint)
6611 (s390_linux_nat_target::insert_hw_breakpoint)
6612 (s390_linux_nat_target::remove_watchpoint)
6613 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6614
6615 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6616
6617 * aarch64-fbsd-nat.c: Include regcache.h.
6618 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6619 argument.
6620 (aarch64_fbsd_nat_target::fetch_registers)
6621 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6622 variable.
6623 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6624
6625 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6626
6627 * fbsd-nat.c: Include gdbarch.h.
6628
6629 2019-07-15 Tom Tromey <tromey@adacore.com>
6630
6631 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6632
6633 2019-07-15 Tom Tromey <tromey@adacore.com>
6634
6635 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6636 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6637 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6638 * cli-out.c (cli_ui_out::do_field_int): New method.
6639 * ui-out.c (ui_out::field_unsigned): New method.
6640 * symfile.c (generic_load): Use field_unsigned.
6641 (print_transfer_performance): Likewise.
6642 * record-btrace.c (ui_out_field_uint): Remove.
6643 (btrace_call_history_insn_range, btrace_call_history): Use
6644 field_unsigned.
6645 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6646 field_unsigned.
6647 * ui-out.h (class ui_out) <field_unsigned>: New method.
6648 <do_field_unsigned>: Likewise.
6649
6650 2019-07-15 Tom Tromey <tromey@adacore.com>
6651
6652 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6653 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6654 * target.c (flash_erase_command): Use field_string.
6655 * infrun.c (print_signal_received_reason): Use field_string.
6656 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6657 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6658 field_string.
6659 * ada-tasks.c (print_ada_task_info): Use field_string.
6660
6661 2019-07-15 Tom Tromey <tromey@adacore.com>
6662
6663 * target.c (flash_erase_command): Use field_core_addr.
6664 * symfile.c (generic_load): Use field_core_addr.
6665 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6666 Use field_core_addr.
6667 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6668 field_core_addr.
6669
6670 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6671
6672 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6673 value if its desired type is smaller than a CORE_ADDR and signed.
6674
6675 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6676
6677 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6678 of changes to field names, and use new is_reference field to
6679 decide if a property is a reference or not.
6680 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6681 field.
6682 (struct dwarf2_property_baton): Update header comment, rename
6683 'referenced_type' to 'property_type' and update comments.
6684 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6685 default property type, store in property baton, update to take
6686 accound of renamed field.
6687 (read_func_scope): Update call to attr_to_dynamic_prop.
6688 (read_array_type): Likewise.
6689 (dwarf2_per_cu_addr_sized_int_type): New function.
6690 (read_subrange_index_type): Move type finding code to
6691 dwarf2_per_cu_addr_sized_int_type.
6692 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6693 (dwarf2_per_cu_addr_type): New function.
6694 (set_die_type): Update calls to attr_to_dynamic_prop.
6695
6696 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6697
6698 * dwarf2read.c (read_subrange_index_type): New function.
6699 (read_subrange_type): Move code into new function and call it.
6700 * gdbtypes.c (create_range_type): Add some asserts.
6701
6702 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6703
6704 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6705 update return statements.
6706 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6707 declaration, and update comment to match.
6708 * gdbtypes.c (resolve_dynamic_array): Update call to
6709 dwarf2_evaluate_property to match new return type.
6710
6711 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6712
6713 * valarith.c (value_subscripted_rvalue): Change lowerbound
6714 parameter type from int to LONGEST.
6715 * value.h (value_subscripted_rvalue): Likewise in declaration.
6716
6717 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6718
6719 * cli/cli-utils.c (info_print_command_completer): New function.
6720 * cli/cli-utils.h: Add 'completer.h' include, and forward
6721 declaration for 'struct cmd_list_element'.
6722 (info_print_command_completer): Declare.
6723 * stack.c (_initialize_stack): Add completer for 'info locals' and
6724 'info args'.
6725 * symtab.c (_initialize_symtab): Add completer for 'info
6726 variables' and 'info functions'.
6727 * NEWS: Mention completion for additional info commands.
6728
6729 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6730
6731 * cli/cli-utils.c (extract_info_print_args): Delete.
6732 (extract_arg_maybe_quoted): Delete.
6733 (info_print_options_defs): New variable.
6734 (make_info_print_options_def_group): New function.
6735 (extract_info_print_options): Define new function.
6736 * cli/cli-utils.h (extract_info_print_args): Delete.
6737 (struct info_print_options): New structure.
6738 (extract_info_print_options): Declare new function.
6739 * stack.c (info_locals_command): Update to use new
6740 extract_info_print_options, also add a header comment.
6741 (info_args_command): Likewise.
6742 * symtab.c (info_variables_command): Likewise.
6743 (info_functions_command): Likewise.
6744
6745 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6746
6747 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6748 to extract string arguments.
6749 * common/common-utils.c (extract_string_maybe_quoted): New function.
6750 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6751
6752 2019-07-11 Tom Tromey <tromey@adacore.com>
6753
6754 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6755 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6756 * top.h (gdbinit): Don't declare.
6757 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6758 into...
6759 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6760 * top.c (gdb_init): Don't call init_cli_cmds.
6761 (gdbinit): Remove.
6762 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6763
6764 2019-07-11 Tom Tromey <tromey@adacore.com>
6765
6766 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6767 after it has been moved.
6768
6769 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6770
6771 * valops.c (value_must_coerce_to_target): Change return type to
6772 bool.
6773 * value.h (value_must_coerce_to_target): Likewise.
6774
6775 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6776
6777 * breakpoint.c (is_hardware_watchpoint): Remove
6778 forward-declaration.
6779 (is_masked_watchpoint): Change return type to bool.
6780 (is_tracepoint): Likewise.
6781 (is_breakpoint): Likewise.
6782 (is_hardware_watchpoint): Likewise.
6783 (is_watchpoint): Likewise.
6784 (is_no_memory_software_watchpoint): Likewise.
6785 (is_catchpoint): Likewise.
6786 (breakpoint_1): Make FILTER parameter's return type bool.
6787 is_masked_watchpoint): Change return type to bool.
6788 (save_breakpoints): Make FILTER parameter's return type bool.
6789 * breakpoint.h (is_breakpoint): Change return type to bool.
6790 (is_watchpoint): Likewise.
6791 (is_catchpoint): Likewise.
6792 (is_tracepoint): Likewise.
6793
6794 2019-07-10 Tom Tromey <tom@tromey.com>
6795
6796 * defs.h: Don't include gdbarch.h.
6797 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6798 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6799 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6800 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6801 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6802 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6803 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6804 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6805 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6806 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6807 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6808 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6809 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6810 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6811 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6812 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6813 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6814 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6815 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6816 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6817 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6818 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6819 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6820 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6821 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6822 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6823 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6824
6825 2019-07-10 Tom Tromey <tromey@adacore.com>
6826
6827 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6828 * breakpoint.c (init_ada_exception_breakpoint): Register as
6829 bp_catchpoint.
6830 (print_one_breakpoint_location, print_one_breakpoint): Use
6831 is_ada_exception_catchpoint.
6832 * ada-lang.c (class ada_catchpoint_location): Pass
6833 bp_loc_software_breakpoint to bp_location constructor.
6834 (is_ada_exception_catchpoint): New function.
6835
6836 2019-07-10 Tom Tromey <tromey@adacore.com>
6837
6838 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6839 VEC.
6840 (struct arm_exidx_entry): New method operator<.
6841 (struct arm_exidx_data) <section_maps>: Change type.
6842 (arm_exidx_data_free): Remove.
6843 (arm_exidx_data_key): Change type. Move lower.
6844 (arm_exidx_new_objfile): Update.
6845 (arm_compare_exidx_entries): Remove.
6846 (arm_find_exidx_entry, _initialize_arm_tdep)
6847
6848 2019-07-10 Tom Tromey <tromey@adacore.com>
6849
6850 * solib-spu.c (ocl_program_data_key): Change type.
6851 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6852 Update.
6853
6854 2019-07-10 Tom Tromey <tromey@adacore.com>
6855
6856 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6857 (struct solib_aix_inferior_data) <library_list>: Change type.
6858 (solib_aix_inferior_data_handle): Change type.
6859 (get_solib_aix_inferior_data): Update.
6860 (solib_aix_free_library_list): Remove.
6861 (library_list_start_library): Update.
6862 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6863 return type.
6864 (solib_aix_get_library_list)
6865 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6866 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6867
6868 2019-07-10 Tom Tromey <tromey@adacore.com>
6869
6870 * solib-dsbt.c (struct dsbt_info): Add initializers.
6871 (solib_dsbt_pspace_data): Change type.
6872 (dsbt_pspace_data_cleanup): Remove.
6873 (get_dsbt_info, _initialize_dsbt_solib): Update.
6874
6875 2019-07-10 Tom Tromey <tromey@adacore.com>
6876
6877 * spu-tdep.c (spu_overlay_data): Change type.
6878 (spu_get_overlay_table, spu_overlay_new_objfile)
6879 (_initialize_spu_tdep): Update.
6880
6881 2019-07-10 Tom Tromey <tromey@adacore.com>
6882
6883 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6884 destructor.
6885 (dbx_objfile_data_key): Change type and declare later.
6886 (DBX_SYMFILE_INFO): Rewrite.
6887 * dbxread.c (dbx_objfile_data_key): Change type.
6888 (dbx_symfile_init): Update.
6889 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6890 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6891 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6892
6893 2019-07-10 Tom Tromey <tromey@adacore.com>
6894
6895 * jit.c (jit_program_space_key): Change type. Move lower.
6896 (get_jit_program_space_data): Update.
6897 (jit_program_space_data_cleanup): Remove.
6898 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6899 Update.
6900 (struct jit_program_space_data): Add initializers.
6901
6902 2019-07-10 Tom Tromey <tromey@adacore.com>
6903
6904 * solib-darwin.c (struct darwin_info): Add initializers.
6905 (solib_darwin_pspace_data): Change type.
6906 (darwin_pspace_data_cleanup): Remove.
6907 (get_darwin_info, _initialize_darwin_solib): Update.
6908
6909 2019-07-10 Tom Tromey <tromey@adacore.com>
6910
6911 * remote-sim.c (struct sim_inferior_data): Add initializers,
6912 constructor, and destructor.
6913 (sim_inferior_data_key): Change type. Move lower.
6914 (check_for_duplicate_sim_descriptor): Update.
6915 (get_sim_inferior_data): Use new. Update.
6916 (~sim_inferior_data_cleanup): Rename from
6917 sim_inferior_data_cleanup. Simplify.
6918 (gdbsim_close_inferior, simulator_command)
6919 (sim_command_completer, _initialize_remote_sim): Update.
6920 (next_pid, INITIAL_PID): Move earlier.
6921
6922 2019-07-10 Tom Tromey <tromey@adacore.com>
6923
6924 * python/python-internal.h (create_thread_object): Return
6925 gdbpy_ref.
6926 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6927 * python/py-inferior.c (struct threadlist_entry): Add
6928 constructor.
6929 <thread_obj>: Now a gdbpy_ref.
6930 (thread_to_thread_object): Update.
6931 (add_thread_object): Use new.
6932 (delete_thread_object): Use delete.
6933 (infpy_threads): Update.
6934 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6935 GIL.
6936
6937 2019-07-10 Tom Tromey <tromey@adacore.com>
6938
6939 * valops.c (value_cast): Specialize error message for Ada.
6940
6941 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6942
6943 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6944
6945 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6946
6947 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6948 bpstat_should_step): Return bool, adjust comments.
6949 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6950 bpstat_should_step): Likewise.
6951
6952 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6953
6954 * features/Makefile: Use feature target descriptions for Arm.
6955 * features/arm/arm-core.c: Generate new file.
6956 * features/arm/arm-fpa.c: Likewise.
6957 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6958 * features/arm/arm-m-profile.c: Likewise.
6959 * features/arm/arm-vfpv2.c: Likewise.
6960 * features/arm/arm-vfpv3.c: Likewise.
6961 * features/arm/xscale-iwmmxt.c: Likewise.
6962 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6963
6964 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6965
6966 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6967 ptrace earlier.
6968
6969 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6970
6971 * features/aarch64-pauth.c: Regenerate.
6972
6973 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6974
6975 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6976 bool.
6977 (bpstat_what): Use false instead of 0.
6978
6979 2019-07-09 Pedro Alves <palves@redhat.com>
6980
6981 * break-catch-throw.c (is_exception_catchpoint): New.
6982 * breakpoint.c (print_one_breakpoint_location): New parameter
6983 'raw_loc'. Handle it. Use
6984 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6985 looking at the breakpoint's type.
6986 (print_one_breakpoint): If handling "maint info breakpoints", also
6987 print locations of exception catchpoints.
6988 * breakpoint.h (is_exception_catchpoint): Declare.
6989
6990 2019-07-09 Pedro Alves <palves@redhat.com>
6991
6992 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6993 "addr" field.
6994 (allocate_location_exception_catchpoint): New.
6995 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6996 (initialize_throw_catchpoint_ops): Install
6997 allocate_location_exception_catchpoint as allocate_location
6998 method.
6999 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7000 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7001 bp_loc_other.
7002 (breakpoint_address_is_meaningful): Delete.
7003 (bl_address_is_meaningful): New.
7004 (breakpoint_locations_match): Adjust comment.
7005 (bp_location_from_bp_type): New, factored out of...
7006 (bp_location::bp_location(breakpoint *)): ... this.
7007 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7008 factored out of...
7009 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7010 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7011 breakpoint_address_is_meaningful.
7012 (bp_locations_compare): Adjust comment.
7013 (update_global_location_list): Use bl_address_is_meaningful
7014 instead of breakpoint_address_is_meaningful.
7015 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7016 explicit.
7017 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7018 * python/py-breakpoint.c (bppy_get_location): No longer check
7019 whether location is null.
7020
7021 2019-07-09 Pedro Alves <palves@redhat.com>
7022
7023 PR c++/15468
7024 * breakpoint.c (print_one_breakpoint_location): Remove
7025 single-location assert.
7026
7027 2019-07-09 Tom Tromey <tom@tromey.com>
7028
7029 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7030 * configure: Rebuild.
7031 * configure.ac: Change common to gdbsupport.
7032 * gdbsupport: Rename from common.
7033 * acinclude.m4: Change common to gdbsupport.
7034 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7035 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7036 gdbsupport.
7037 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7038 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7039 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7040 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7041 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7042 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7043 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7044 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7045 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7046 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7047 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7048 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7049 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7050 coff-pe-read.c, command.h, compile/compile-c-support.c,
7051 compile/compile-c.h, compile/compile-cplus-symbols.c,
7052 compile/compile-cplus-types.c, compile/compile-cplus.h,
7053 compile/compile-loc2c.c, compile/compile.c, completer.c,
7054 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7055 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7056 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7057 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7058 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7059 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7060 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7061 features/aarch64-core.c, features/aarch64-fpu.c,
7062 features/aarch64-pauth.c, features/aarch64-sve.c,
7063 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7064 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7065 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7066 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7067 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7068 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7069 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7070 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7071 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7072 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7073 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7074 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7075 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7076 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7077 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7078 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7079 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7080 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7081 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7082 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7083 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7084 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7085 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7086 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7087 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7088 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7089 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7090 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7091 minsyms.c, mips-linux-tdep.c, namespace.h,
7092 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7093 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7094 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7095 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7096 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7097 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7098 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7099 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7100 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7101 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7102 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7103 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7104 procfs.c, producer.c, progspace.h, psymtab.h,
7105 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7106 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7107 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7108 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7109 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7110 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7111 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7112 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7113 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7114 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7115 target-memory.c, target.c, target.h, target/waitstatus.c,
7116 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7117 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7118 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7119 unittests/array-view-selftests.c,
7120 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7121 unittests/common-utils-selftests.c,
7122 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7123 unittests/format_pieces-selftests.c,
7124 unittests/function-view-selftests.c,
7125 unittests/lookup_name_info-selftests.c,
7126 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7127 unittests/mkdir-recursive-selftests.c,
7128 unittests/observable-selftests.c,
7129 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7130 unittests/parse-connection-spec-selftests.c,
7131 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7132 unittests/scoped_fd-selftests.c,
7133 unittests/scoped_mmap-selftests.c,
7134 unittests/scoped_restore-selftests.c,
7135 unittests/string_view-selftests.c, unittests/style-selftests.c,
7136 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7137 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7138 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7139 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7140 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7141 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7142
7143 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7144
7145 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7146 bool value.
7147 (decode_digits_ordinary): Set explicit_line field in sal.
7148 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7149 symtab_and_line that was set on an explicit line number in
7150 assembler code. Do always update the recorded symtab and line if
7151 we do skip the prologue.
7152
7153 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7154
7155 * breakpoint.c (set_breakpoint_location_function): Remove
7156 explicit_loc parameter.
7157 (momentary_breakpoint_from_master): Update call to
7158 set_breakpoint_location_function.
7159 (add_location_to_breakpoint): Likewise.
7160
7161 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7162
7163 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7164 required features based on default bfd type when no specific bfd
7165 is present.
7166
7167 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7168
7169 * NEWS: Mention that GDB printf and eval commands can now print
7170 C-style and Ada-style convenience var strings without
7171 calling the inferior.
7172 * printcmd.c (printf_c_string): Locally print GDB internal var
7173 instead of transiting via the inferior.
7174 (printf_wide_c_string): Likewise.
7175
7176 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7177
7178 PR breakpoints/25011
7179 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7180
7181 2019-07-04 Tom Tromey <tom@tromey.com>
7182
7183 PR tui/24724:
7184 * tui/tui-winsource.c (tui_clear_source_content): Update.
7185 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7186 (tui_update_breakpoint_info): Update.
7187 (tui_set_exec_info_content): Update.
7188 * tui/tui-source.c (tui_set_source_content_nil): Update.
7189 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7190 has_break.
7191 * tui/tui-data.h (enum tui_bp_flag): New.
7192 (tui_bp_flags): New enum flags type.
7193 (struct tui_source_element) <break_mode>: Change type. Rename
7194 from has_break.
7195 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7196 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7197 constants.
7198 * tui/tui-winsource.h: Fix comment.
7199
7200 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7201
7202 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7203 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7204 (store_fpregs_to_thread)
7205 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7206 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7207 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7208 (IWMMXT_REGS_SIZE): Add define.
7209 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7210 (fetch_vfp_regs, store_vfp_regs)
7211 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7212 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7213
7214 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7215
7216 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7217 defines.
7218 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7219 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7220 (ARM_INT_REGISTER_SIZE): ...to this.
7221 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7222 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7223 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7224 (arm_linux_collect_gregset, supply_nwfpe_register)
7225 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7226 defines.
7227 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7228 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7229 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7230 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7231 (arm_return_in_memory, arm_store_return_value)
7232 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7233 (arm_record_ld_st_multiple): Likewise.
7234 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7235 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7236
7237 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7238
7239 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7240 AARCH64_DISPLACED_MODIFIED_INSNS.
7241 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7242 (aarch64_displaced_step_copy_insn): Likewise.
7243 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7244 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7245 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7246 ARM_DISPLACED_MODIFIED_INSNS.
7247 * arm-tdep.c (arm_gdbarch_init): Likewise.
7248 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7249 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7250 (struct arm_displaced_step_closure): Use
7251 ARM_DISPLACED_MODIFIED_INSNS.
7252
7253 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7254
7255 * features/Makefile: Remove unused xml files.
7256 * features/aarch64.xml: Remove.
7257 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7258 * features/i386/amd64-avx-avx512.xml: Remove.
7259 * features/i386/amd64-avx-linux.xml: Remove.
7260 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7261 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7262 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7263 * features/i386/amd64-avx-mpx.xml: Remove.
7264 * features/i386/amd64-avx.xml: Remove.
7265 * features/i386/amd64-linux.xml: Remove.
7266 * features/i386/amd64-mpx-linux.xml: Remove.
7267 * features/i386/amd64-mpx.xml: Remove.
7268 * features/i386/amd64.xml: Remove.
7269 * features/i386/i386-avx-avx512-linux.xml: Remove.
7270 * features/i386/i386-avx-avx512.xml: Remove.
7271 * features/i386/i386-avx-linux.xml: Remove.
7272 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7273 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7274 * features/i386/i386-avx-mpx-linux.xml: Remove.
7275 * features/i386/i386-avx-mpx.xml: Remove.
7276 * features/i386/i386-avx.xml: Remove.
7277 * features/i386/i386-linux.xml: Remove.
7278 * features/i386/i386-mmx-linux.xml: Remove.
7279 * features/i386/i386-mmx.xml: Remove.
7280 * features/i386/i386-mpx-linux.xml: Remove.
7281 * features/i386/i386-mpx.xml: Remove.
7282 * features/i386/i386.xml: Remove.
7283 * features/i386/x32-avx-avx512-linux.xml: Remove.
7284 * features/i386/x32-avx-linux.xml: Remove.
7285 * features/i386/x32-linux.xml: Remove.
7286
7287 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7288
7289 * regformats/aarch64.dat: Remove.
7290 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7291 * regformats/i386/amd64-avx-linux.dat: Remove.
7292 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7293 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7294 * regformats/i386/amd64-linux.dat: Remove.
7295 * regformats/i386/amd64-mpx-linux.dat: Remove.
7296 * regformats/i386/amd64.dat: Remove.
7297 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7298 * regformats/i386/i386-avx-linux.dat: Remove.
7299 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7300 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7301 * regformats/i386/i386-linux.dat: Remove.
7302 * regformats/i386/i386-mmx-linux.dat: Remove.
7303 * regformats/i386/i386-mpx-linux.dat: Remove.
7304 * regformats/i386/i386.dat: Remove.
7305 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7306 * regformats/i386/x32-avx-linux.dat: Remove.
7307 * regformats/i386/x32-linux.dat: Remove.
7308
7309 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7310
7311 * aarch64-tdep.c: Remove xml self tests.
7312 * amd64-linux-tdep.c: Likewise.
7313 * amd64-tdep.c: Likewise.
7314 * i386-linux-tdep.c: Likewise.
7315 * i386-tdep.c: Likewise.
7316
7317 2019-07-03 Pedro Alves <palves@redhat.com>
7318
7319 PR cli/24732
7320 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7321 (pipe_cmd_option_defs): New.
7322 (make_pipe_cmd_options_def_group): New.
7323 (pipe_command): Use gdb::option::process_options.
7324 (pipe_command_completer): New function.
7325 (_initialize_cli_cmds): Install completer for "pipe" command.
7326
7327 2019-07-03 Pedro Alves <palves@redhat.com>
7328
7329 * cli/cli-option.c (union option_value) <string>: New field.
7330 (struct option_def_and_value): Add ctor, move ctor, dtor and
7331 use DISABLE_COPY_AND_ASSIGN.
7332 (option_def_and_value::clear_value): New.
7333 (parse_option, save_option_value_in_ctx, get_val_type_str)
7334 (add_setshow_cmds_for_options): Handle var_string.
7335 * cli-option.h (union option_def::var_address) <string>: New
7336 field.
7337 (struct string_option_def): New.
7338 * maint-test-options.c (struct test_options_opts): Add default
7339 ctor and use DISABLE_COPY_AND_ASSIGN.
7340 <string_opt>: New field.
7341 (test_options_opts::~test_options_opts): New.
7342 (test_options_opts::dump): Also dump "-string".
7343 (test_options_option_defs): Install "string.
7344
7345 2019-07-03 Pedro Alves <palves@redhat.com>
7346
7347 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7348 option_value with a null enumeration.
7349 (complete_options): Save the option values in the context.
7350 (save_option_value_in_ctx): New, factored out from ...
7351 (process_options): ... here.
7352 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7353 of the function.
7354 * maint-test-options.c (test_options_opts::dump): New, factored
7355 out from ...
7356 (maintenance_test_options_command_mode): ... here.
7357 (maintenance_test_options_command_completion_result): Delete.
7358 (maintenance_test_options_command_completion_text): Update
7359 comment.
7360 (maintenance_show_test_options_completion_result): Change
7361 prototype. Just print
7362 maintenance_test_options_command_completion_text.
7363 (save_completion_result): New.
7364 (maintenance_test_options_completer_mode): Pass options context to
7365 complete_options, and then save a dump.
7366 (_initialize_maint_test_options): Use add_cmd to install "maint
7367 show test-options-completion-result".
7368
7369 2019-07-03 Pedro Alves <palves@redhat.com>
7370
7371 * NEWS (New commands): Mention "with" and "maint with".
7372 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7373 (with_command, with_command_completer): New.
7374 (pipe_command): Adjust to new repeat_previous
7375 interface.
7376 (_initialize_cli_cmds): Install the "with" command and its "w"
7377 alias.
7378 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7379 declarations.
7380 * cli/cli-setshow.c (parse_cli_var_uinteger)
7381 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7382 argument strings for all var_types.
7383 (get_setshow_command_value_string): New, factored out from ...
7384 (do_show_command): ... this.
7385 * cli/cli-setshow.h: Include <string>.
7386 (get_setshow_command_value_string): Declare.
7387 * command.h (repeat_previous): Now returns const char *. Adjust
7388 comment.
7389 * maint.c: Include "cli/cli-cmds.h".
7390 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7391 (_initialize_maint_cmds): Register the "maintenance with" command.
7392 * top.c (repeat_previous): Move bits from pipe_command here:
7393 Return the saved command line, if any; error out if there's no
7394 command to relaunch.
7395
7396 2019-07-03 Pedro Alves <palves@redhat.com>
7397
7398 * NEWS (New commands): Mention "maint set/show test-settings"
7399 instead of "maint test-settings".
7400 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7401 (maintenance_test_settings_set_list): Rename to ...
7402 (maintenance_set_test_settings_list): ... this.
7403 (maintenance_test_settings_show_list): Rename to ...
7404 (maintenance_show_test_settings_list): ... this.
7405 (maintenance_test_settings_cmd): Delete.
7406 (maintenance_test_settings_set_cmd): ...
7407 (maintenance_set_test_settings_cmd): ... this.
7408 (maintenance_test_settings_show_cmd): ...
7409 (maintenance_show_test_settings_cmd): ... this.
7410 (maintenance_test_settings_show_value_cmd):
7411 (maintenance_show_test_settings_value_cmd): ... this.
7412 (_initialize_maint_test_settings): No longer install the "maint
7413 test-settings" prefix command. Rename "maint test-settings set"
7414 to "maint set test-settings", and "maint test-settings show" to
7415 "maint show test-settings". Adjust all subcommands.
7416
7417 2019-07-03 Pedro Alves <palves@redhat.com>
7418
7419 * maint-test-settings.c: Fix file's intro comment. Replace all
7420 references to "test-options" with references to "test-settings",
7421 in comments.
7422
7423 2019-07-03 Pedro Alves <palves@redhat.com>
7424
7425 * maint-test-settings.c (maintenance_test_settings_xxx)
7426 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7427 New.
7428 (maintenance_test_settings_enums): Use them.
7429 (maintenance_test_settings_enum): Default to
7430 maintenance_test_settings_xxx.
7431 (_initialize_maint_test_settings): Initialize
7432 MAINTENANCE_TEST_SETTINGS_FILENAME.
7433
7434 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7435
7436 * breakpoint.h (remove_breakpoints_inf): Change return type to
7437 void, move function documentation here.
7438 * breakpoint.c (remove_breakpoints_inf): Change return type to
7439 void, move function documentation to header.
7440
7441 2019-07-02 Pedro Alves <palves@redhat.com>
7442
7443 * NEWS (Completion improvements): Mention "info threads".
7444 * thread.c (struct info_threads_opts, info_threads_option_defs)
7445 (make_info_threads_options_def_group): New.
7446 (info_threads_command): Use gdb::option::process_options.
7447 (info_threads_command_completer): New.
7448 (_initialize_thread): Use gdb::option::build_help to build the
7449 help text for "info threads".
7450
7451 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7452
7453 * defs.h (generic_load): Move from here...
7454 * symfile.h (generic_load): ... to here. Rename name parameter
7455 to args.
7456 * symfile.c (generic_load): Add comment.
7457
7458 2019-07-01 Tom Tromey <tromey@adacore.com>
7459
7460 * dwarf2read.c
7461 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7462 declaration of without_params. Fix formatting.
7463
7464 2019-07-01 Tom Tromey <tromey@adacore.com>
7465
7466 * ada-exp.y (find_primitive_type): Update.
7467 * ada-lang.h (ada_lookup_symbol): Update.
7468 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7469 parameter.
7470 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7471
7472 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7473
7474 PR breakpoints/24541
7475 * gdbarch.c: Regenerate.
7476 * gdbarch.h: Regenerate.
7477 * gdbarch.sh: Add 'stap_adjust_register'.
7478 * i386-tdep.c: Include '<unordered_set>'.
7479 (i386_stap_adjust_register): New function.
7480 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7481 * stap-probe.c (stap_parse_register_operand): Call
7482 'gdbarch_stap_adjust_register'.
7483
7484 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7485
7486 PR python/24742
7487 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7488 * python/python.c (do_start_initialization): Use 'xmalloc'
7489 instead of 'PyMem_Malloc'.
7490
7491 2019-06-28 Tom Tromey <tromey@adacore.com>
7492
7493 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7494 for Ada.
7495
7496 2019-06-27 Tom Tromey <tromey@adacore.com>
7497
7498 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7499 objfile_key.
7500 (arm_find_mapping_symbol, arm_record_special_symbol)
7501 (_initialize_arm_tdep): Update.
7502 (arm_objfile_data_free): Remove.
7503
7504 2019-06-27 Tom Tromey <tromey@adacore.com>
7505
7506 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7507 to cp_print_static_field.
7508
7509 2019-06-26 Tom Tromey <tromey@adacore.com>
7510
7511 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7512 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7513 declare.
7514
7515 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7516
7517 * features/aarch64-core.c (create_feature_aarch64_core):
7518 Regenerate.
7519 * features/aarch64-core.xml: Add cpsr flags.
7520
7521 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7522
7523 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7524 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7525
7526 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7527
7528 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7529 field.
7530 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7531 use.
7532 (arm_record_special_symbol): Don't insert new symbol in sorted
7533 position, push it at the end.
7534
7535 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7536
7537 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7538 (arm_mapping_symbol_s): Remove.
7539 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7540 (arm_mapping_symbol_vec): New typedef.
7541 (struct arm_per_objfile): Add constructor.
7542 <section_maps>: Change type to
7543 std::unique_ptr<arm_mapping_symbol_vec[]>.
7544 (arm_compare_mapping_symbols): Remove.
7545 (arm_find_mapping_symbol): Adjust to section_maps type change.
7546 (arm_objfile_data_free): Call delete on arm_per_objfile.
7547 (arm_record_special_symbol): Adjust to section_maps type change.
7548 Allocate arm_per_objfile with new.
7549
7550 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7551
7552 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7553 with the command prefix.
7554
7555 2019-06-25 Tom Tromey <tom@tromey.com>
7556
7557 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7558 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7559
7560 2019-06-25 Tom Tromey <tom@tromey.com>
7561
7562 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7563 type.
7564 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7565 protected.
7566
7567 2019-06-25 Tom Tromey <tom@tromey.com>
7568
7569 * tui/tui-winsource.c
7570 (tui_source_window_base::set_is_exec_point_at): Add check against
7571 LOA_ADDRESS.
7572
7573 2019-06-25 Tom Tromey <tom@tromey.com>
7574
7575 * tui/tui-source.c (tui_set_source_content): Don't check before
7576 xfree.
7577 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7578
7579 2019-06-25 Tom Tromey <tom@tromey.com>
7580
7581 * tui/tui-winsource.h (tui_update_source_window_as_is)
7582 (tui_alloc_source_buffer, tui_line_is_displayed)
7583 (tui_addr_is_displayed): Change type of win_info.
7584 * tui/tui-winsource.c (tui_update_source_window_as_is)
7585 (tui_clear_source_content, tui_show_source_line)
7586 (tui_show_source_content, tui_source_window_base::refill)
7587 (tui_source_window_base::set_is_exec_point_at)
7588 (tui_source_window_base::set_is_exec_point_at)
7589 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7590 (tui_alloc_source_buffer, tui_line_is_displayed)
7591 (tui_addr_is_displayed): Change type of win_info. Update.
7592 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7593 (tui_source_window_base::do_make_visible_with_new_height):
7594 Update.
7595 * tui/tui-source.c (tui_set_source_content)
7596 (tui_set_source_content_nil)
7597 (tui_source_window::do_scroll_vertical): Update.
7598 * tui/tui-layout.c (show_layout): Update.
7599 * tui/tui-disasm.c (tui_set_disassem_content)
7600 (tui_disasm_window::do_scroll_vertical): Update.
7601 * tui/tui-data.h (tui_win_content): Remove.
7602 (struct tui_gen_win_info) <content, content_size>: Remove.
7603 (struct tui_source_element): Add initializers and destructor.
7604 (union tui_which_element, struct tui_win_element): Remove.
7605 (struct tui_source_window_base) <content>: New field.
7606 (struct tui_data_window): Remove destructor.
7607 (tui_alloc_content, tui_free_win_content)
7608 (tui_free_all_source_wins_content): Don't declare.
7609 * tui/tui-data.c (tui_initialize_static_data): Update.
7610 (init_content_element, tui_alloc_content): Remove.
7611 (~tui_gen_win_info): Update.
7612 (~tui_data_window, tui_free_all_source_wins_content)
7613 (tui_free_win_content, free_content, free_content_elements):
7614 Remove.
7615
7616 2019-06-25 Tom Tromey <tom@tromey.com>
7617
7618 * tui/tui-winsource.h (tui_clear_source_content)
7619 (tui_erase_source_content, tui_show_source_content): Change type
7620 of win_info.
7621 * tui/tui-winsource.c (tui_clear_source_content)
7622 (tui_erase_source_content, tui_show_source_content): Change type
7623 of win_info.
7624 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7625 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7626 win_info.
7627 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7628 win_info.
7629 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7630
7631 2019-06-25 Tom Tromey <tom@tromey.com>
7632
7633 * tui/tui-winsource.c (tui_clear_source_content)
7634 (tui_source_window_base::set_is_exec_point_at): Update.
7635 * tui/tui-source.c (tui_set_source_content_nil): Update.
7636 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7637 a bool.
7638 * tui/tui-data.c (init_content_element): Update.
7639
7640 2019-06-25 Tom Tromey <tom@tromey.com>
7641
7642 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7643 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7644 * tui/tui-layout.c (init_and_make_win): Update.
7645 * tui/tui.h (enum tui_win_type): Update.
7646 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7647 tui_win_is_auxillary.
7648 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7649 tui_win_is_auxillary.
7650
7651 2019-06-25 Tom Tromey <tom@tromey.com>
7652
7653 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7654 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7655 (tui_delete_data_content_windows, tui_display_all_data)
7656 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7657 Update.
7658 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7659 * tui/tui-regs.c (tui_last_regs_line_no)
7660 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7661 (tui_show_registers): Update.
7662 (tui_show_register_group): Return void. Update.
7663 (tui_display_registers_from, tui_display_reg_element_at_line)
7664 (tui_display_registers_from_line, tui_check_register_values):
7665 Update.
7666 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7667 member.
7668 (struct tui_data_window) <regs_content>: Now a std::vector.
7669 <regs_content_count>: Remove.
7670 (tui_add_content_elements, tui_free_data_content): Don't declare.
7671 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7672 (init_content_element): Remove DATA_WIN case. Add assert.
7673 (tui_add_content_elements): Remove.
7674 (tui_data_window): Update.
7675 (tui_free_data_content): Remove.
7676 (free_content_elements): Remove DATA_WIN case.
7677
7678 2019-06-25 Tom Tromey <tom@tromey.com>
7679
7680 * tui/tui-data.c (tui_data_item_window): Update.
7681 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7682 * tui/tui-windata.c (tui_display_all_data)
7683 (tui_display_data_from_line): Update.
7684 (tui_check_data_values): Remove.
7685 * tui/tui-regs.c (tui_show_register_group)
7686 (tui_display_reg_element_at_line): Update.
7687 * tui/tui-hooks.c (tui_register_changed)
7688 (tui_refresh_frame_and_register_information): Call
7689 tui_check_register_values.
7690 * tui/tui-data.h (struct tui_data_window) <data_content,
7691 data_content_count, data_type>: Remove.
7692 (enum tui_data_type): Remove.
7693
7694 * tui/tui-data.c (tui_data_window::clear_detail)
7695 (~tui_data_window): Update.
7696
7697 2019-06-25 Tom Tromey <tom@tromey.com>
7698
7699 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7700 declare.
7701 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7702 Rename from tui_first_data_item_displayed. Update.
7703 (tui_data_window::refresh_all)
7704 (tui_data_window::do_scroll_vertical): Update.
7705 * tui/tui-data.h (struct tui_data_window)
7706 <first_data_item_displayed>: Declare new method.
7707
7708 2019-06-25 Tom Tromey <tom@tromey.com>
7709
7710 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7711 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7712 contents...
7713 (tui_initialize_static_data): ...here.
7714
7715 2019-06-25 Tom Tromey <tom@tromey.com>
7716
7717 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7718 (tui_display_registers_from, tui_check_register_values): Update.
7719 (tui_display_register): Remove win_info parameter; update.
7720 (tui_get_register): Change type of parameters.
7721 * tui/tui-data.h (struct tui_data_element): Remove.
7722 (union tui_which_element) <data>: Remove.
7723 <data_window>: Change type.
7724 (struct tui_data_item_window): New.
7725 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7726 case. Add assert.
7727 (~tui_data_item_window): New destructor.
7728 (free_content_elements): Remove DATA_ITEM_WIN case.
7729
7730 2019-06-25 Tom Tromey <tom@tromey.com>
7731
7732 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7733 Remove.
7734
7735 2019-06-25 Tom Tromey <tom@tromey.com>
7736
7737 * tui/tui-data.h (struct tui_command_element): Remove.
7738 (union tui_which_element) <command>: Remove.
7739 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7740 assert.
7741 (free_content_elements): Remove CMD_WIN case.
7742
7743 2019-06-25 Tom Tromey <tom@tromey.com>
7744
7745 * tui/tui-layout.c (tui_set_layout): Update.
7746 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7747 * tui/tui-data.c (layout_def): Update.
7748
7749 2019-06-25 Tom Tromey <tom@tromey.com>
7750
7751 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7752 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7753 (tui_source_window_base::set_new_height): Update.
7754 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7755 Update.
7756 (tui_set_locator_fullname, tui_set_locator_info)
7757 (tui_show_frame_info): Update.
7758 * tui/tui-source.c (tui_set_source_content)
7759 (tui_source_is_displayed): Update.
7760 * tui/tui-layout.c (show_source_disasm_command, show_data)
7761 (show_source_or_disasm_and_command): Update.
7762 * tui/tui-disasm.c (tui_set_disassem_content)
7763 (tui_get_begin_asm_address): Update.
7764 * tui/tui-data.h (struct tui_locator_element): Remove.
7765 (union tui_which_element) <locator>: Remove.
7766 (struct tui_locator_window): New.
7767 (tui_locator_win_info_ptr): Change return type.
7768 * tui/tui-data.c (_locator): Change type.
7769 (tui_locator_win_info_ptr): Change return type.
7770 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7771 (tui_alloc_content): Add assert.
7772
7773 2019-06-25 Tom Tromey <tom@tromey.com>
7774
7775 * tui/tui-winsource.c
7776 (tui_exec_info_window::maybe_allocate_content): New method.
7777 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7778 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7779 (make_source_or_disasm_window): Add cast.
7780 * tui/tui-data.h (union tui_which_element) <simple_string>:
7781 Remove.
7782 (struct tui_source_info): New.
7783 (struct tui_source_window_base) <execution_info>: Change type.
7784 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7785 case, and add assert.
7786 (tui_alloc_content): Add assert.
7787
7788 2019-06-25 Tom Tromey <tom@tromey.com>
7789
7790 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7791 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7792 * tui/tui-data.c (tui_alloc_win_info): Remove.
7793
7794 2019-06-25 Tom Tromey <tom@tromey.com>
7795
7796 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7797 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7798 can_highlight.
7799
7800 2019-06-25 Tom Tromey <tom@tromey.com>
7801
7802 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7803 make_visible_with_new_height method.
7804 (tui_win_info::make_visible_with_new_height): New method.
7805 (tui_source_window_base::do_make_visible_with_new_height)
7806 (tui_data_window::do_make_visible_with_new_height)
7807 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7808 (make_visible_with_new_height): Remove.
7809 (tui_resize_all, tui_adjust_win_heights): Use
7810 make_visible_with_new_height method.
7811 * tui/tui-data.h (struct tui_win_info)
7812 <do_make_visible_with_new_height, make_visible_with_new_height>:
7813 New methods.
7814 (struct tui_source_window_base, struct tui_data_window)
7815 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7816 methods.
7817
7818 2019-06-25 Tom Tromey <tom@tromey.com>
7819
7820 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7821 method.
7822 (update_tab_width): Call update_tab_width method.
7823 * tui/tui-data.h (struct tui_win_info)
7824 (struct tui_source_window_base) <update_tab_width>: New methods.
7825
7826 2019-06-25 Tom Tromey <tom@tromey.com>
7827
7828 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7829 parameter.
7830 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7831 parameter.
7832 (tui_gen_win_info::make_visible): Update.
7833 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7834 parameter.
7835 * tui/tui-data.h (enum tui_box): New enum.
7836 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7837
7838 2019-06-25 Tom Tromey <tom@tromey.com>
7839
7840 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7841 init_and_make_win for EXEC_INFO_WIN.
7842 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7843 longer inline.
7844 (struct tui_win_info) <~tui_win_info>: Inline.
7845 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7846 Don't declare.
7847 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7848 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7849 Remove.
7850 (tui_initialize_static_data): Update.
7851 (~tui_gen_win_info): Handle more cleanup here.
7852 (~tui_source_window_base): Delete "execution_info".
7853 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7854
7855 2019-06-25 Tom Tromey <tom@tromey.com>
7856
7857 * tui/tui-layout.c (make_command_window): Don't set
7858 can_highlight.
7859 (show_source_disasm_command): Call the reset method.
7860 (show_data): Don't set can_highlight. Call the reset method.
7861 (tui_gen_win_info::reset): Rename from init_gen_win_info
7862 (init_and_make_win): Simplify. Return tui_gen_win_info.
7863 (show_source_or_disasm_and_command): Call the reset method.
7864 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7865 (struct tui_cmd_window): Set can_highlight.
7866
7867 2019-06-25 Tom Tromey <tom@tromey.com>
7868
7869 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7870 from make_visible.
7871 (tui_make_visible, tui_make_invisible): Rewrite.
7872 (tui_win_info::make_visible): Remove.
7873 (tui_source_window_base::make_visible): Update.
7874 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7875 method. Moved from...
7876 (struct tui_win_info) <make_visible>: ...here.
7877
7878 2019-06-25 Tom Tromey <tom@tromey.com>
7879
7880 * tui/tui-winsource.c
7881 (tui_source_window_base::do_scroll_horizontal): Remove direction
7882 parameter.
7883 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7884 direction parameter.
7885 * tui/tui-win.c (tui_win_info::forward_scroll)
7886 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7887 (tui_win_info::right_scroll): Update.
7888 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7889 direction parameter.
7890 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7891 direction parameter.
7892 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7893 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7894 Remove direction parameter.
7895 (struct tui_source_window_base, struct tui_source_window)
7896 (struct tui_disasm_window, struct tui_data_window)
7897 (struct tui_cmd_window): Update.
7898
7899 2019-06-25 Tom Tromey <tom@tromey.com>
7900
7901 * tui/tui-winsource.h (tui_set_exec_info_content)
7902 (tui_show_exec_info_content, tui_erase_exec_info_content)
7903 (tui_clear_exec_info_content, tui_update_exec_info): Change
7904 argument to tui_source_window_base.
7905 * tui/tui-winsource.c (tui_set_exec_info_content)
7906 (tui_show_exec_info_content, tui_erase_exec_info_content)
7907 (tui_clear_exec_info_content, tui_update_exec_info): Change
7908 argument to tui_source_window_base.
7909
7910 2019-06-25 Tom Tromey <tom@tromey.com>
7911
7912 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7913 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7914
7915 2019-06-25 Tom Tromey <tom@tromey.com>
7916
7917 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7918 check.
7919
7920 2019-06-25 Tom Tromey <tom@tromey.com>
7921
7922 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7923 type to void.
7924 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7925 type to void.
7926 * tui/tui-source.c (tui_set_source_content): Update.
7927 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7928
7929 2019-06-25 Tom Tromey <tom@tromey.com>
7930
7931 * tui/tui-win.c (window_name_completer, tui_set_focus)
7932 (tui_all_windows_info): Use name method.
7933 * tui/tui-data.h (struct tui_gen_win_info)
7934 (struct tui_source_window, struct tui_disasm_window)
7935 (struct tui_data_window, struct tui_cmd_window) <name>: New
7936 method.
7937 (tui_win_name): Don't declare.
7938 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7939 (tui_win_name): Remove.
7940
7941 2019-06-25 Tom Tromey <tom@tromey.com>
7942
7943 * tui/tui-winsource.h (tui_update_source_window)
7944 (tui_update_source_window_as_is): Change parameter type.
7945 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7946 to be a tui_source_window_base.
7947 (tui_update_source_window_as_is): Likewise.
7948 * tui/tui-win.c (make_visible_with_new_height): Update.
7949
7950 2019-06-25 Tom Tromey <tom@tromey.com>
7951
7952 * tui/tui-winsource.c (tui_erase_source_content)
7953 (tui_show_source_content, tui_show_exec_info_content)
7954 (tui_erase_exec_info_content): Use refresh_window method.
7955 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7956 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7957 from tui_refresh_win.
7958 (tui_data_window::refresh_window): New method.
7959 (tui_win_info::refresh, tui_source_window_base::refresh)
7960 (tui_refresh_all): Use refresh_window method.
7961 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7962 method.
7963 * tui/tui-regs.c (tui_display_register): Call refresh_window
7964 method.
7965 * tui/tui-layout.c (show_source_disasm_command)
7966 (show_source_or_disasm_and_command): Call refresh_window method.
7967 * tui/tui-data.h (struct tui_gen_win_info)
7968 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7969 New method.
7970
7971 2019-06-25 Tom Tromey <tom@tromey.com>
7972
7973 * tui/tui.c (tui_rl_other_window, tui_enable)
7974 (tui_is_window_visible, tui_get_command_dimension): Update.
7975 * tui/tui-winsource.c (tui_update_source_window_as_is)
7976 (tui_clear_source_content, tui_erase_source_content)
7977 (tui_show_source_line, tui_source_window_base::refill)
7978 (tui_source_window_base::do_scroll_horizontal)
7979 (tui_source_window_base::set_is_exec_point_at)
7980 (tui_update_breakpoint_info, tui_set_exec_info_content)
7981 (tui_alloc_source_buffer, tui_line_is_displayed)
7982 (tui_addr_is_displayed): Update.
7983 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7984 (tui_check_and_display_highlight_if_needed)
7985 (tui_win_info::make_visible, tui_win_info::refresh)
7986 (tui_refresh_all): Update.
7987 * tui/tui-windata.c (tui_first_data_item_displayed)
7988 (tui_delete_data_content_windows, tui_erase_data_content)
7989 (tui_display_all_data, tui_data_window::refresh_all)
7990 (tui_check_data_values): Update.
7991 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7992 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7993 (tui_win_info::backward_scroll, tui_refresh_all_win)
7994 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7995 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7996 (tui_source_window_base::set_new_height)
7997 (tui_data_window::set_new_height)
7998 (make_invisible_and_set_new_height)
7999 (make_visible_with_new_height, new_height_ok)
8000 (parse_scrolling_args): Update.
8001 * tui/tui-stack.c (tui_show_frame_info): Update.
8002 * tui/tui-source.c (tui_set_source_content)
8003 (tui_set_source_content_nil, tui_source_is_displayed)
8004 (tui_source_window::do_scroll_vertical): Update.
8005 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8006 (tui_display_registers_from, tui_display_reg_element_at_line)
8007 (tui_check_register_values, tui_reg_command): Update.
8008 * tui/tui-layout.c (tui_default_win_height)
8009 (show_source_disasm_command, show_data, init_and_make_win)
8010 (show_source_or_disasm_and_command): Update.
8011 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8012 (tui_redisplay_readline, tui_mld_flush)
8013 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8014 (tui_getc): Update.
8015 * tui/tui-disasm.c (tui_set_disassem_content)
8016 (tui_disasm_window::do_scroll_vertical): Update.
8017 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8018 Now virtual.
8019 (struct tui_win_info): Derive from tui_gen_win_info.
8020 <~tui_win_info>: Mark as override.
8021 <generic>: Remove member.
8022 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8023 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8024 (~tui_data_window, ~tui_win_info)
8025 (tui_free_all_source_wins_content): Update.
8026 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8027
8028 2019-06-25 Tom Tromey <tom@tromey.com>
8029
8030 * tui/tui-layout.c (init_and_make_win): Use new.
8031 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8032 destructor, initializers.
8033 (tui_alloc_generic_win_info): Don't declare.
8034 * tui/tui-data.c (_locator): Add argument to constructor.
8035 (source_win, disasm_win): New globals.
8036 (exec_info): Remove.
8037 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8038 Update.
8039 (tui_alloc_generic_win_info): Remove.
8040 (init_content_element): Use new.
8041 (tui_win_info::tui_win_info): Update.
8042 (free_content_elements) <case DATA_WIN>: Use delete.
8043
8044 2019-06-25 Tom Tromey <tom@tromey.com>
8045
8046 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8047 * tui/tui-windata.c (tui_first_data_item_displayed)
8048 (tui_delete_data_content_windows): Update.
8049 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8050 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8051 (tui_display_registers_from, tui_check_register_values): Update.
8052 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8053 pointer.
8054 * tui/tui-data.c (init_content_element): Update. Allocate the new
8055 window.
8056 (tui_free_data_content): Update.
8057 (free_content_elements) <case DATA_WIN>: Free the window.
8058
8059 2019-06-25 Tom Tromey <tom@tromey.com>
8060
8061 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8062 Update.
8063 * tui/tui-layout.c (make_command_window)
8064 (show_source_disasm_command, show_data, init_and_make_win)
8065 (show_source_or_disasm_and_command): Update.
8066 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8067 method.
8068 <can_highight, is_highlighted>: Now bool.
8069 (tui_set_win_highlight): Don't declare.
8070 * tui/tui-data.c (tui_set_win_highlight): Remove.
8071
8072 2019-06-25 Tom Tromey <tom@tromey.com>
8073
8074 * tui/tui-wingeneral.c (make_visible): Remove check of window
8075 type.
8076
8077 2019-06-25 Tom Tromey <tom@tromey.com>
8078
8079 * tui/tui-win.c (tui_win_info::max_height)
8080 (tui_cmd_window::max_height): New methods.
8081 (new_height_ok): Call max_height.
8082 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8083 <max_height>: New method.
8084
8085 2019-06-25 Tom Tromey <tom@tromey.com>
8086
8087 * tui/tui-win.c (tui_source_window_base::set_new_height)
8088 (tui_data_window::set_new_height): New methods.
8089 (make_invisible_and_set_new_height): Call set_new_height method.
8090 * tui/tui-data.h (struct tui_win_info)
8091 (struct tui_source_window_base, struct tui_data_window)
8092 <set_new_height>: New method.
8093
8094 2019-06-25 Tom Tromey <tom@tromey.com>
8095
8096 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8097 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8098 tui_refresh_data_win.
8099 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8100 method.
8101 (tui_refresh_all_win): Call the refresh_all method.
8102 (tui_set_focus): Likewise.
8103 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8104 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8105 Likewise.
8106
8107 2019-06-25 Tom Tromey <tom@tromey.com>
8108
8109 * tui/tui-winsource.h (tui_refill_source_window)
8110 (tui_set_is_exec_point_at): Don't declare.
8111 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8112 (tui_source_window_base::refill): Rename from
8113 tui_refill_source_window.
8114 (tui_source_window_base::do_scroll_horizontal): Update.
8115 (tui_source_window_base::set_is_exec_point_at): Rename from
8116 tui_set_is_exec_point_at.
8117 (tui_update_all_breakpoint_info): Update.
8118 * tui/tui-stack.c (tui_show_frame_info): Update.
8119 * tui/tui-layout.c (show_data): Add cast.
8120 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8121 * tui/tui-data.h (struct tui_source_window_base) <refill,
8122 set_is_exec_point_at>: New methods.
8123 (tui_source_windows, tui_add_to_source_windows): Update types.
8124 (tui_add_to_source_windows): Remove redundant declaration.
8125 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8126 (tui_source_windows): Change return type.
8127 (tui_clear_source_windows_detail): Update.
8128 (tui_add_to_source_windows): Change type of parameter.
8129 (tui_free_all_source_wins_content): Update.
8130
8131 2019-06-25 Tom Tromey <tom@tromey.com>
8132
8133 * tui/tui-wingeneral.c (tui_win_info::refresh)
8134 (tui_source_window_base::refresh): New methods.
8135 (tui_refresh_all): Call the refresh method.
8136 * tui/tui-data.h (struct tui_win_info)
8137 (struct tui_source_window_base) <refresh>: New method.
8138
8139 2019-06-25 Tom Tromey <tom@tromey.com>
8140
8141 * tui/tui.h (tui_is_window_visible): Return bool.
8142 * tui/tui.c (tui_is_window_visible): Return bool.
8143 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8144 (tui_make_visible, tui_make_invisible)
8145 (tui_win_info::make_visible)
8146 (tui_source_window_base::make_visible, make_all_visible)
8147 (tui_make_all_visible, tui_make_all_invisible): Update.
8148 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8149 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8150 bool.
8151 (struct tui_win_info, struct tui_source_window_base)
8152 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8153 * tui/tui-data.c (tui_init_generic_part): Update.
8154
8155 2019-06-25 Tom Tromey <tom@tromey.com>
8156
8157 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8158 (tui_source_window_base::make_visible): New methods.
8159 (make_all_visible): Make method call.
8160 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8161 (struct tui_source_window_base, struct tui_cmd_window): Override
8162 make_visible.
8163 (tui_win_is_source_type): Don't declare.
8164 * tui/tui-data.c (tui_win_is_source_type): Remove.
8165
8166 2019-06-25 Tom Tromey <tom@tromey.com>
8167
8168 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8169 NULL check.
8170
8171 2019-06-25 Tom Tromey <tom@tromey.com>
8172
8173 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8174 Inline constructor. Add initializers for members.
8175 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8176 constructors; now inline in class.
8177
8178 2019-06-25 Tom Tromey <tom@tromey.com>
8179
8180 * tui/tui-regs.c (tui_show_registers): Update.
8181 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8182 bool.
8183 * tui/tui-data.c (tui_data_window::clear_detail)
8184 (tui_data_window): Update.
8185
8186 2019-06-25 Tom Tromey <tom@tromey.com>
8187
8188 * tui/tui-windata.c (tui_display_all_data)
8189 (tui_display_data_from_line, tui_display_data_from)
8190 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8191 Update.
8192 * tui/tui-regs.c (tui_last_regs_line_no)
8193 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8194 (tui_show_registers, tui_show_register_group)
8195 (tui_display_registers_from, tui_display_reg_element_at_line)
8196 (tui_display_registers_from_line, tui_check_register_values)
8197 (tui_reg_next, tui_reg_prev): Update.
8198 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8199 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8200 tui_data_window.
8201 (struct tui_win_info) <detail>: Remove. Add new fields from
8202 tui_data_info.
8203 (TUI_DATA_WIN): Add cast.
8204 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8205 (~tui_data_window): Simplify.
8206
8207 2019-06-25 Tom Tromey <tom@tromey.com>
8208
8209 * tui/tui-layout.c (show_source_disasm_command)
8210 (show_source_or_disasm_and_command): Update.
8211 * tui/tui-io.c (update_cmdwin_start_line)
8212 (tui_redisplay_readline): Update.
8213 * tui/tui-data.h (struct tui_command_info): Remove.
8214 (struct tui_win_info) <detail>: Remove command_info member.
8215 (struct tui_data_window) <start_line>: New member, from
8216 tui_command_info.
8217 (TUI_CMD_WIN): Add casts.
8218
8219 2019-06-25 Tom Tromey <tom@tromey.com>
8220
8221 * tui/tui-winsource.c (tui_update_source_window)
8222 (tui_refill_source_window)
8223 (tui_source_window_base::do_scroll_horizontal)
8224 (tui_update_breakpoint_info, tui_set_exec_info_content)
8225 (tui_show_exec_info_content, tui_erase_exec_info_content)
8226 (tui_clear_exec_info_content): Update.
8227 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8228 Update.
8229 * tui/tui-win.c (make_invisible_and_set_new_height)
8230 (make_visible_with_new_height): Update.
8231 * tui/tui-source.c (tui_set_source_content)
8232 (tui_show_symtab_source): Update.
8233 * tui/tui-layout.c (extract_display_start_addr)
8234 (show_source_disasm_command, show_data)
8235 (make_source_or_disasm_window)
8236 (show_source_or_disasm_and_command): Update.
8237 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8238 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8239 "gdbarch".
8240 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8241 to tui_source_window_base.
8242 (struct tui_win_info) <detail>: Remove source_info member.
8243 (struct tui_source_window_base) <has_locator>: Inline.
8244 Move contents from tui_source_info; rename has_locator member to
8245 m_has_locator.
8246 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8247 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8248 header file.
8249 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8250 Simplify.
8251 (tui_free_all_source_wins_content): Cast to
8252 tui_source_window_base.
8253
8254 2019-06-25 Tom Tromey <tom@tromey.com>
8255
8256 * tui/tui-win.c (make_invisible_and_set_new_height)
8257 (make_visible_with_new_height): Call has_locator method.
8258 * tui/tui-layout.c (show_source_disasm_command, show_data)
8259 (show_source_or_disasm_and_command): Update for bool change.
8260 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8261 (tui_win_info) <has_locator>: New method.
8262 (struct tui_source_window_base) <has_locator>: New method.
8263 (tui_win_has_locator): Don't declare.
8264 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8265 from tui_win_has_locator.
8266 (tui_source_window_base): Use false, not FALSE.
8267
8268 2019-06-25 Tom Tromey <tom@tromey.com>
8269
8270 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8271 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8272 clear_detail method directly.
8273 (tui_clear_win_detail): Remove.
8274
8275 2019-06-25 Tom Tromey <tom@tromey.com>
8276
8277 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8278 "this", not TUI_DISASM_WIN.
8279
8280 2019-06-25 Tom Tromey <tom@tromey.com>
8281
8282 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8283 declare.
8284 * tui/tui-winsource.c
8285 (tui_source_window_base::do_scroll_horizontal): Rename from
8286 tui_horizontal_source_scroll.
8287 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8288 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8289 from tui_vertical_data_scroll.
8290 * tui/tui-win.h (tui_scroll): Don't declare.
8291 * tui/tui-win.c (tui_win_info::forward_scroll)
8292 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8293 (tui_win_info::right_scroll): Rename and update.
8294 (tui_scroll_forward_command, tui_scroll_backward_command)
8295 (tui_scroll_left_command, tui_scroll_right_command): Update.
8296 (tui_scroll): Remove.
8297 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8298 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8299 from tui_vertical_source_scroll.
8300 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8301 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8302 from tui_vertical_disassem_scroll.
8303 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8304 do_scroll_horizontal>: New methods.
8305 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8306 Likewise.
8307 (struct tui_source_window_base): Add do_scroll_horizontal.
8308 (struct tui_source_window, struct tui_disasm_window): Add
8309 do_scroll_vertical.
8310 (struct tui_data_window, struct tui_cmd_window): Add
8311 do_scroll_horizontal and do_scroll_vertical.
8312 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8313
8314 2019-06-25 Tom Tromey <tom@tromey.com>
8315
8316 * tui/tui-data.h (struct tui_source_window_base): New struct.
8317 (struct tui_source_window): Derive from tui_source_window_base.
8318 (struct tui_disasm_window): New struct.
8319 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8320 from tui_source_window::clear_detail.
8321 (tui_source_window_base): Rename from tui_source_window.
8322 (~tui_source_window_base): Rename from ~tui_source_window.
8323 (tui_alloc_win_info): Create a tui_disasm_window.
8324
8325 2019-06-25 Tom Tromey <tom@tromey.com>
8326
8327 * tui/tui-data.h (struct tui_source_window)
8328 (struct tui_data_window): Declare destructors.
8329 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8330 destructors.
8331 (tui_win_info): Simplify.
8332
8333 2019-06-25 Tom Tromey <tom@tromey.com>
8334
8335 * tui/tui-winsource.c (tui_display_main)
8336 (tui_update_source_windows_with_addr)
8337 (tui_update_all_breakpoint_info): Update.
8338 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8339 (new_height_ok, parse_scrolling_args): Update.
8340 * tui/tui-stack.c (tui_show_frame_info): Update.
8341 * tui/tui-data.h (struct tui_list): Remove.
8342 (tui_source_windows): Return a reference to a std::vector.
8343 * tui/tui-data.c (source_windows): Now a std::vector.
8344 (tui_source_windows): Change return type.
8345 (tui_clear_source_windows): Rewrite.
8346 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8347 (tui_free_all_source_wins_content): Rewrite.
8348
8349 2019-06-25 Tom Tromey <tom@tromey.com>
8350
8351 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8352 (struct tui_data_window, struct tui_cmd_window): Declare
8353 clear_detail method.
8354 * tui/tui-data.c (tui_source_window::clear_detail)
8355 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8356 methods.
8357 (tui_clear_win_detail): Simplify.
8358
8359 2019-06-25 Tom Tromey <tom@tromey.com>
8360
8361 * tui/tui-layout.c (make_source_window, make_disasm_window)
8362 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8363 Return the new window.
8364 (show_source_disasm_command, show_data)
8365 (show_source_or_disasm_and_command): Update.
8366
8367 2019-06-25 Tom Tromey <tom@tromey.com>
8368
8369 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8370 parameter. Return the new window.
8371 (show_source_disasm_command): Update and remove NULL check.
8372 (show_source_or_disasm_and_command): Update.
8373
8374 2019-06-25 Tom Tromey <tom@tromey.com>
8375
8376 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8377
8378 2019-06-25 Tom Tromey <tom@tromey.com>
8379
8380 * tui/tui-data.h (struct tui_win_info): Make constructor
8381 protected. Make destructor virtual. Add initializers.
8382 (tui_source_window, tui_data_window, tui_cmd_window): New
8383 classes.
8384 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8385 constructor. Add "type" parameter.
8386 (tui_source_window, tui_data_window, tui_cmd_window): New
8387 constructors.
8388 (tui_alloc_win_info): Instantiate the appropriate subclass.
8389
8390 2019-06-25 Tom Tromey <tom@tromey.com>
8391
8392 * tui/tui-win.c (tui_resize_all): Use delete.
8393 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8394 destructor.
8395 (tui_free_window): Don't declare.
8396 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8397 Update.
8398
8399 2019-06-25 Tom Tromey <tom@tromey.com>
8400
8401 * tui/tui-data.h (struct tui_win_info): Add constructor.
8402 * tui/tui-data.c (tui_alloc_win_info): Use new.
8403 (tui_free_window): Use delete.
8404
8405 2019-06-22 Tom Tromey <tom@tromey.com>
8406
8407 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8408 declare.
8409 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8410
8411 2019-06-22 Tom Tromey <tom@tromey.com>
8412
8413 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8414 declare.
8415 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8416
8417 2019-06-22 Tom de Vries <tdevries@suse.de>
8418
8419 * dwarf2read.c (create_addrmap_from_aranges)
8420 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8421 instead of '%zu'.
8422
8423 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8424
8425 * dwarf2read.h (dwarf2_section_info_def): Remove.
8426 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8427 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8428 std::vector<dwarf2_section_info>.
8429 (struct dwo_file) <~dwo_file>: Remove.
8430 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8431 types field.
8432 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8433 (dwarf2_read_debug_names): Likewise.
8434 (create_debug_types_hash_table): Change parameter type to
8435 array_view, adjust code accordingly.
8436 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8437 (partial_die_info::fixup): Likewise.
8438 (determine_prefix): Likewise.
8439 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8440
8441 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8442
8443 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8444 gdb_bfd_ref_ptr.
8445 <~dwo_file>: Remove call to gdb_bfd_unref.
8446 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8447 gdb_bfd_ref_ptr::get.
8448
8449 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8450
8451 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8452 type to htab_up.
8453 * dwarf2read.c (struct dwo_file): Initialize fields.
8454 <~dwo_file>: New.
8455 (free_dwo_file): Remove, move content to ~dwo_file.
8456 (struct dwo_file_deleter): Remove.
8457 (dwo_file_up>: Remove custom deleter.
8458 (free_dwo_files): Remove.
8459 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8460 dwo_files.
8461 (process_skeletonless_type_units): Call unique_ptr::get.
8462 (allocate_dwo_file_hash_table): Add deleter to created hash
8463 table. Change return type to htab_up.
8464 (lookup_dwo_file_slot): Don't memset dwo_file, call
8465 unique_ptr::get.
8466 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8467 (create_dwo_unit_in_dwp_v2): Likewise.
8468 (open_and_init_dwo_file): Likewise.
8469 (free_dwo_file_from_slot): Remove.
8470
8471 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8472
8473 * dwarf2read.h (struct dwarf2_section_info) <readin,
8474 is_virtual>: Change type to bool.
8475 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8476 true instead of 1.
8477
8478 2019-06-19 Tom Tromey <tom@tromey.com>
8479
8480 * tui/tui-data.h (tui_init_content_element): Don't declare.
8481
8482 2019-06-19 Tom Tromey <tom@tromey.com>
8483
8484 * tui/tui-data.h (tui_init_win_info): Don't declare.
8485
8486 2019-06-19 Tom de Vries <tdevries@suse.de>
8487
8488 * dwarf2read.h (abstract_to_concrete): Change type to
8489 std::unordered_map<sect_offset, std::vector<sect_offset>,
8490 gdb::hash_enum<sect_offset>>.
8491
8492 2019-06-19 Tom Tromey <tromey@adacore.com>
8493
8494 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8495 EVAL_AVOID_SIDE_EFFECTS specially.
8496
8497 2019-06-19 Tom Tromey <tromey@adacore.com>
8498
8499 * source-cache.c (highlighter): New global.
8500 (source_cache::get_source_lines): Create a highlighter on demand.
8501
8502 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8503
8504 * defs.h (deprecated_interactive_hook): Delete declaration.
8505 * interps.c (clear_interpreter_hooks): Remove use of
8506 deprecated_interactive_hook.
8507 * top.c (deprecated_interactive_hook): Delete definition.
8508 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8509
8510 2019-06-18 Tom de Vries <tdevries@suse.de>
8511
8512 PR gdb/24515
8513 * dwarf2read.h (abstract_to_concrete): Change type from
8514 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8515 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8516 * dwarf2read.c (read_variable): Update.
8517 (dwarf2_fetch_die_loc_sect_off): Update.
8518
8519 2019-06-17 Tom de Vries <tdevries@suse.de>
8520
8521 PR gdb/24617
8522 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8523 accessing parent[parent_len - 1].
8524
8525 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8526
8527 PR gdb/24364
8528 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8529 call dtrace_process_dof with NULL dof.
8530
8531 2019-06-16 Tom de Vries <tdevries@suse.de>
8532
8533 PR gdb/24445
8534 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8535
8536 2019-06-16 Tom Tromey <tom@tromey.com>
8537
8538 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8539 (make_all_visible): Use address of member.
8540
8541 2019-06-16 Tom Tromey <tom@tromey.com>
8542
8543 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8544 (tui_free_window, free_content, free_content_elements): Remove
8545 unnecessary cast.
8546 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8547 cast.
8548 * tui/tui-regs.c (tui_show_register_group)
8549 (tui_display_registers_from, tui_display_reg_element_at_line):
8550 Remove unnecessary cast.
8551
8552 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8553
8554 * linux-nat.c (normal_mask): Delete.
8555 (_initialize_linux_nat): Don't initialise normal_mask.
8556
8557 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8558
8559 PR gdb/24445
8560 * dwarf-index-write.h (write_psymtabs_to_index): Add
8561 dwz_basename parameter.
8562 * dwarf-index-write.c (write_gdbindex): Move file writing to
8563 write_gdbindex_1. Change return type void.
8564 (assert_file_size): Move up, remove filename parameter.
8565 (write_gdbindex_1): New function.
8566 (write_debug_names): Change return type to void, call
8567 assert_file_size.
8568 (struct index_wip_file): New struct.
8569 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8570 file logic to index_wip_file. Write index for dwz file if
8571 needed.
8572 (save_gdb_index_command): Pass basename of dwz file, if present.
8573 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8574 build-id of dwz file, if present.
8575 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8576 (dwarf2_get_dwz_file): Likewise.
8577 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8578 (dwarf2_get_dwz_file): Likewise.
8579
8580 2019-06-16 Tom Tromey <tom@tromey.com>
8581
8582 * coffread.c (process_coff_symbol): Use xstrdup.
8583 * value.c (create_internalvar): Use xstrdup.
8584
8585 2019-06-16 Tom Tromey <tom@tromey.com>
8586
8587 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8588 * breakpoint.c (stopin_command, stopat_command)
8589 (until_break_command, decode_location_default): Remove unnecessary
8590 cast.
8591 * utils.c (subset_compare): Remove unnecessary cast.
8592 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8593 cast.
8594 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8595 cast.
8596 * infcmd.c (path_command): Remove unnecessary cast.
8597 * coffread.c (decode_type): Remove unnecessary cast.
8598 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8599 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8600 * tui/tui-stack.c (tui_show_locator_content)
8601 (tui_show_frame_info): Remove unnecessary cast.
8602 * tui/tui-win.c (tui_scroll_forward_command)
8603 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8604 (parse_scrolling_args): Remove unnecessary cast.
8605 * tui/tui-data.c (init_win_info, tui_del_window)
8606 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8607 (free_content_elements): Remove unnecessary cast.
8608 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8609 unnecessary cast.
8610 * tui/tui-source.c (tui_set_source_content)
8611 (tui_vertical_source_scroll): Remove unnecessary cast.
8612 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8613 cast.
8614 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8615 * tui/tui-regs.c (tui_display_registers_from)
8616 (tui_display_register): Remove unnecessary cast.
8617 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8618 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8619 (make_visible): Remove unnecessary cast.
8620 * tui/tui-winsource.c (tui_erase_source_content)
8621 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8622 unnecessary cast.
8623 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8624 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8625 * stabsread.c (read_type, read_array_type, read_range_type):
8626 Remove unnecessary cast.
8627 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8628 (parse_symbol, parse_type, upgrade_type, parse_external)
8629 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8630 unnecessary cast.
8631 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8632
8633 2019-06-16 Tom Tromey <tom@tromey.com>
8634
8635 * tui/tui-data.c (tui_alloc_generic_win_info)
8636 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8637 checks.
8638
8639 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8640 Andrew Burgess <andrew.burgess@embecosm.com>
8641
8642 * f-typeprint.c (f_print_type): Don't return early for not
8643 associated or not allocated types.
8644 (f_type_print_varspec_suffix): Add print_rank parameter and print
8645 ranks of array types in case they dangling.
8646 (f_type_print_base): Add print_rank parameter.
8647
8648 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8649
8650 * NEWS: Mention new MI commands.
8651 * break-catch-throw.c (enum exception_event_kind): Move to
8652 breakpoint.h.
8653 (print_mention_exception_catchpoint): Output text as a single
8654 message.
8655 (catch_exception_command_1): Rename to...
8656 (catch_exception_event): ...this, make non-static, update header
8657 command, and change some parameter types.
8658 (catch_catch_command): Update for changes to
8659 catch_exception_command_1.
8660 (catch_throw_command): Likewise.
8661 (catch_rethrow_command): Likewise.
8662 * breakpoint.c (enum exception_event_kind): Delete.
8663 * breakpoint.h (enum exception_event_kind): Moved here from
8664 break-catch-throw.c.
8665 (catch_exception_event): Declare.
8666 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8667 (mi_cmd_catch_throw): New function.
8668 (mi_cmd_catch_rethrow): New function.
8669 (mi_cmd_catch_catch): New function.
8670 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8671 'catch-catch' entries.
8672 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8673 (mi_cmd_catch_rethrow): Declare.
8674 (mi_cmd_catch_catch): Declare.
8675
8676 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8677
8678 * annotate.c (annotate_source_line): Change return type to void,
8679 update implementation to match.
8680 * annotate.h (annotate_source_line): Change return type to void,
8681 update header comment.
8682 * stack.c (print_frame_info): Don't change what frame information
8683 is printed based on whether annotations are on or not.
8684
8685 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8686
8687 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8688 (annotate_source): Make static.
8689 (annotate_source_line): Moved from source.c and renamed from
8690 identify_source_line. Update the return type.
8691 * annotate.h (annotate_source): Delete declaration.
8692 (annotate_source_line): Declaration moved from source.h, and
8693 renamed from identify_source_line. Return type updated.
8694 * source.c (identify_source_line): Moved to annotate.c and renamed
8695 to annotate_source_line.
8696 (info_line_command): Remove check of annotation_level.
8697 * source.h (identify_source_line): Move declaration to annotate.h
8698 and rename to annotate_source_line.
8699 * stack.c: Add 'annotate.h' include.
8700 (print_frame_info): Remove check of annotation_level before
8701 calling annotate_source_line.
8702
8703 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8704
8705 * source-cache.c (source_cache::get_plain_source_lines): Use
8706 open_source_file_with_line_charpos instead of just
8707 open_source_file, remove call to find_source_lines.
8708 (source_cache::get_source_lines): Likewise.
8709 * source.c (find_source_lines): Make static.
8710 (get_filename_and_charpos): Renamed into...
8711 (open_source_file_with_line_charpos): ..this along with changes to
8712 return a scoped_fd, and some other minor clean ups.
8713 (identify_source_line): Use open_source_file_with_line_charpos.
8714 (search_command_helper): Use open_source_file_with_line_charpos
8715 instead of just open_source_file, remove call to
8716 find_source_lines.
8717 * source.h (open_source_file_with_line_charpos): Declare new
8718 function.
8719 (find_source_lines): Delete declaration.
8720
8721 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8722
8723 * source.c (get_filename_and_charpos): Remove fullname
8724 parameter.
8725 (identify_source_line): Update call to get_filename_and_charpos.
8726
8727 2019-06-14 Tom Tromey <tromey@adacore.com>
8728
8729 PR gdb/24502:
8730 * ui-style.h (skip_ansi_escape): Update comment.
8731 * ui-file.h (class no_terminal_escape_file): New class.
8732 * ui-file.c (no_terminal_escape_file::write)
8733 (no_terminal_escape_file::puts): New methods.
8734 * cli/cli-logging.c (handle_redirections): Use
8735 no_terminal_escape_file.
8736
8737 2019-06-14 Tom Tromey <tromey@adacore.com>
8738
8739 * NEWS: Move convenience variable news above Python news.
8740
8741 2019-06-14 Tom Tromey <tom@tromey.com>
8742
8743 * gnulib: Move directory to top-level.
8744 * configure.ac: Don't configure gnulib.
8745 * configure: Rebuild.
8746 * common/common-defs.h: Use new path to gnulib.
8747 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8748 (GNULIB_H): Remove.
8749 (INCGNU): Look in new gnulib location.
8750 (HFILES_NO_SRCDIR): Remove gnulib files.
8751 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8752 (generated_files): Remove GNULIB_H.
8753 ($(LIBGNU), all-lib): Remove targets.
8754 (distclean): Don't mention GNULIB_BUILDDIR.
8755 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8756
8757 2019-06-14 Tom Tromey <tromey@adacore.com>
8758
8759 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8760 Warn if symbol file does not provide any symbols.
8761
8762 2019-06-14 Tom Tromey <tromey@adacore.com>
8763
8764 * source.c (find_and_open_source): Respect basenames_may_differ.
8765
8766 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8767
8768 * annotate.c (annotate_breakpoints_invalid): Make use of
8769 scoped_restore_terminal_state.
8770 (annotate_frames_invalid): Likewise.
8771
8772 2019-06-14 Tom Tromey <tromey@adacore.com>
8773
8774 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8775 allow assignment to an internalvar.
8776
8777 2019-06-14 Tom Tromey <tromey@adacore.com>
8778
8779 * ada-lex.l: Allow "_" in attribute names.
8780
8781 2019-06-14 Tom Tromey <tromey@adacore.com>
8782
8783 PR gdb/24653:
8784 * regcache.c (registers_changed): Don't call alloca.
8785 * top.c (execute_command): Don't call alloca.
8786
8787 2019-06-13 Pedro Alves <palves@redhat.com>
8788
8789 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8790 'expression'. When parsing an expression, error out if there's
8791 junk after "unlimited".
8792 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8793 (do_set_command): Adjust calls to is_unlimited_literal.
8794
8795 2019-06-13 Pedro Alves <palves@redhat.com>
8796
8797 * compile/compile.c (make_compile_options_def_group): Add braces
8798 around array_view initializer.
8799 * thread.c (make_thread_apply_all_options_def_group)
8800 (make_thread_apply_all_options_def_group): Likewise.
8801
8802 2019-06-13 Pedro Alves <palves@redhat.com>
8803
8804 * NEWS (New commands): Mention "maint test-options
8805 require-delimiter", "maint test-options unknown-is-error", "maint
8806 test-options unknown-is-operand" and "maint show
8807 test-options-completion-result".
8808 (New command options, command completion): New section.
8809 (Completion improvements): New section.
8810 Mention that you can abbreviate "unlimited".
8811
8812 2019-06-13 Pedro Alves <palves@redhat.com>
8813
8814 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8815 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8816 * unittests/cli-utils-selftests.c (test_parse_flags)
8817 (test_parse_flags_qcs): Delete.
8818 (test_cli_utils): Don't call deleted functions.
8819
8820 2019-06-13 Pedro Alves <palves@redhat.com>
8821
8822 * thread.c: Include "cli/cli-option.h".
8823 (tp_array_compar_ascending): Global.
8824 (tp_array_compar): Delete function.
8825 (tp_array_compar_ascending, tp_array_compar_descending): New
8826 functions.
8827 (ascending_option_def, qcs_flag_option_def)
8828 (thr_qcs_flags_option_defs)
8829 (make_thread_apply_all_options_def_group)
8830 (make_thread_apply_options_def_group): New.
8831 (thread_apply_all_command): Use gdb::option::process_options.
8832 (thread_apply_command_completer)
8833 (thread_apply_all_command_completer): New.
8834 (thread_apply_command): Use gdb::option::process_options.
8835 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8836 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8837 to generate help text of "thread apply". Adjust "taas"'s help.
8838 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8839 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8840
8841 2019-06-13 Pedro Alves <palves@redhat.com>
8842
8843 * thread.c (thread_apply_command): Check for invalid TID with
8844 isdigit instead of !isalpha.
8845
8846 2019-06-13 Pedro Alves <palves@redhat.com>
8847
8848 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8849 (validate_flags_qcs): New.
8850 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8851 (validate_flags_qcs): Declare.
8852 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8853 (make_frame_apply_options_def_group): New.
8854 (frame_apply_command_count): Process options with
8855 gdb::option::process_options.
8856 (frame_apply_completer): New.
8857 (frame_apply_level_completer, frame_apply_all_completer)
8858 (frame_apply_completer): New.
8859 (_initialize_stack): Update help of "frame apply", "frame apply
8860 level", "frame apply all" and "faas" to mention supported options
8861 and install command completers.
8862 * stack.h (frame_apply_all_completer): Declare.
8863 * thread.c: Include "stack.h".
8864 (tfaas_command): Add "--".
8865 (_initialize_thread): Update help "tfaas" to mention supported
8866 options and install command completer.
8867
8868 2019-06-13 Pedro Alves <palves@redhat.com>
8869
8870 * completer.c (complete_nested_command_line): New.
8871 (gdb_completion_word_break_characters_throw): Add assertion.
8872 * completer.h (complete_nested_command_line): Declare.
8873
8874 2019-06-13 Pedro Alves <palves@redhat.com>
8875
8876 * stack.c (parse_backtrace_qualifiers): New.
8877 (backtrace_command): Use it.
8878 (backtrace_command_completer): Complete on qualifiers.
8879
8880 2019-06-13 Pedro Alves <palves@redhat.com>
8881
8882 * frame.c: Include "cli/cli-option.h.
8883 (user_set_backtrace_options): New.
8884 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8885 Delete.
8886 (get_prev_frame): Adjust.
8887 (boolean_option_def, uinteger_option_def)
8888 (set_backtrace_option_defs): New.
8889 (_initialize_frame): Adjust and use
8890 gdb::option::add_setshow_cmds_for_options to install "set
8891 backtrace past-main" and "set backtrace past-entry".
8892 * frame.h: Include "cli/cli-option.h".
8893 (struct frame_print_options): Forward declare.
8894 (print_frame_arguments_all, print_frame_arguments_scalars)
8895 (print_frame_arguments_none): Declare.
8896 (print_entry_values): Delete declaration.
8897 (struct frame_print_options, user_frame_print_options): New.
8898 (struct set_backtrace_options): New.
8899 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8900 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8901 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8902 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8903 (list_args_or_locals): Add frame_print_options parameter.
8904 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8905 * python/py-framefilter.c (enumerate_args): Pass down
8906 USER_FRAME_PRINT_OPTIONS.
8907 * stack.c: Include "cli/cli-option.h".
8908 (print_frame_arguments_all, print_frame_arguments_scalars)
8909 (print_frame_arguments_none): Declare.
8910 (print_raw_frame_arguments, print_entry_values): Delete.
8911 (user_frame_print_options): New.
8912 (boolean_option_def, enum_option_def, frame_print_option_defs):
8913 New.
8914 (struct backtrace_cmd_options): New.
8915 (bt_flag_option_def): New.
8916 (backtrace_command_option_defs): New.
8917 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8918 (print_frame_arg, read_frame_arg, print_frame_args)
8919 (print_frame_info, print_frame): Add frame_print_options parameter
8920 and use it.
8921 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8922 (backtrace_command_1): Add frame_print_options and
8923 backtrace_cmd_options parameters and use them.
8924 (make_backtrace_options_def_group): New.
8925 (backtrace_command): Process command options with
8926 gdb::option::process_options.
8927 (backtrace_command_completer): New.
8928 (_initialize_stack): Extend "backtrace"'s help to mention
8929 supported options. Install completer for "backtrace".
8930 Install some settings commands with add_setshow_cmds_for_options.
8931
8932 2019-06-13 Pedro Alves <palves@redhat.com>
8933
8934 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8935 and that "set/show print raw frame-arguments" are now deprecated.
8936
8937 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8938 command.
8939 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8940 * stack.c (_initialize_stack): Install "set/show print
8941 raw-frame-arguments", and deprecate "set/show print raw
8942 frame-arguments".
8943 * valprint.c (_initialize_valprint): Deprecate "set/show print
8944 raw".
8945
8946 2019-06-13 Pedro Alves <palves@redhat.com>
8947
8948 * compile/compile.c (struct compile_options): New.
8949 (compile_flag_option_def, compile_command_option_defs)
8950 (make_compile_options_def_group): New.
8951 (compile_file_command): Handle options with
8952 gdb::option::process_options.
8953 (compile_file_command_completer): New function.
8954 (compile_code_command): Handle options with
8955 gdb::option::process_options.
8956 (compile_code_command_completer): New function.
8957 (_initialize_compiler): Install completers for "compile code" and
8958 "compile file". Mention available options in "compile code" and
8959 "compile code"'s help.
8960 * completer.c (advance_to_completion_word): New, factored out from
8961 ...
8962 (advance_to_expression_complete_word_point): ... this.
8963 (advance_to_filename_complete_word_point): New.
8964 * completer.h (advance_to_filename_complete_word_point): New
8965 declaration.
8966
8967 2019-06-13 Pedro Alves <palves@redhat.com>
8968
8969 * compile/compile.c: Include "cli/cli-option.h".
8970 (compile_print_value): Scope data pointer is now a
8971 value_print_options pointer; adjust.
8972 (compile_print_command): Process options. Scope data pointer is
8973 now a value_print_options pointer; adjust.
8974 (_initialize_compile): Update "compile print"'s help to include
8975 supported options. Install a completer for "compile print".
8976 * cp-valprint.c (show_vtblprint, show_objectprint)
8977 (show_static_field_print): Delete.
8978 (_initialize_cp_valprint): Don't install "set print
8979 static-members", "set print vtbl", "set print object" here.
8980 * printcmd.c: Include "cli/cli-option.h" and
8981 "common/gdb_optional.h".
8982 (print_command_parse_format): Rework to fill in a
8983 value_print_options instead of a format_data.
8984 (print_value): Change parameter type from format_data pointer to
8985 value_print_options reference. Adjust.
8986 (print_command_1): Process options. Adjust to pass down a
8987 value_print_options.
8988 (print_command_completer): New.
8989 (_initialize_printcmd): Install print_command_completer as
8990 handle_brkchars completer for the "print" command. Update
8991 "print"'s help to include supported options.
8992 * valprint.c: Include "cli/cli-option.h".
8993 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8994 here from cp-valprint.c.
8995 (boolean_option_def, uinteger_option_def)
8996 (value_print_option_defs, make_value_print_options_def_group):
8997 New. Use gdb::option::add_setshow_cmds_for_options to install
8998 "set print elements", "set print null-stop", "set print repeats",
8999 "set print pretty", "set print union", "set print array", "set
9000 print address", "set print symbol", "set print array-indexes".
9001 * valprint.h: Include <string> and "cli/cli-option.h".
9002 (make_value_print_options_def_group): Declare.
9003 (print_value): Change parameter type from format_data pointer to
9004 value_print_options reference.
9005 (print_command_completer): Declare.
9006
9007 2019-06-13 Pedro Alves <palves@redhat.com>
9008
9009 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9010 (COMMON_SFILES): Add maint-test-settings.c.
9011 * cli/cli-decode.c (boolean_enums): New global, factored out from
9012 ...
9013 (add_setshow_boolean_cmd): ... here.
9014 * cli/cli-decode.h (boolean_enums): Declare.
9015 * cli/cli-option.c: New file.
9016 * cli/cli-option.h: New file.
9017 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9018 factored out from ...
9019 (parse_cli_boolean_value(const char *)): ... this.
9020 (is_unlimited_literal): Change parameter type to pointer to
9021 pointer. Adjust and advance ARG pointer.
9022 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9023 (parse_cli_var_enum): New, factored out from ...
9024 (do_set_command): ... this. Adjust.
9025 * cli/cli-setshow.h (parse_cli_boolean_value)
9026 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9027 (parse_cli_var_enum): Declare.
9028 * cli/cli-utils.c: Include "cli/cli-option.h".
9029 (get_ulongest): New.
9030 * cli/cli-utils.h (get_ulongest): Declare.
9031 (check_for_argument): New overloads.
9032 * maint-test-options.c: New file.
9033
9034 2019-06-13 Pedro Alves <palves@redhat.com>
9035
9036 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9037 parse a range if "-" is at the end of the string.
9038
9039 2019-06-13 Pedro Alves <palves@redhat.com>
9040
9041 * cli/cli-setshow.c (parse_auto_binary_operation)
9042 (parse_cli_boolean_value): Don't allow "o".
9043
9044 2019-06-13 Pedro Alves <palves@redhat.com>
9045
9046 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9047 * NEWS: Mention maint test-settings KIND.
9048 * maint-test-settings.c: New file.
9049
9050 2019-06-13 Pedro Alves <palves@redhat.com>
9051
9052 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9053 completer.
9054 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9055 "set" completers.
9056
9057 2019-06-13 Pedro Alves <palves@redhat.com>
9058
9059 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9060 after item.
9061
9062 2019-06-13 Pedro Alves <palves@redhat.com>
9063
9064 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9065
9066 2019-06-13 Pedro Alves <palves@redhat.com>
9067
9068 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9069 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9070 call.
9071 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9072 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9073 calls.
9074 (check_for_argument): Skip spaces after argument.
9075
9076 2019-06-13 Pedro Alves <palves@redhat.com>
9077
9078 * thread.c (thread_apply_command): Adjust TID parsing.
9079 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9080 detected before end of string.
9081 (tid_is_in_list): Error out if LIST is invalid.
9082
9083 2019-06-13 Pedro Alves <palves@redhat.com>
9084
9085 * completer.c (complete_line_internal_1): Rewind completion word
9086 point.
9087 (completion_tracker::advance_custom_word_point_by): Change
9088 parameter type to int.
9089 * completer.h (completion_tracker::advance_custom_word_point_by):
9090 Likewise.
9091
9092 2019-06-13 Pedro Alves <palves@redhat.com>
9093
9094 * completer.c (advance_to_completion_word): Handle delimiters.
9095
9096 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9097
9098 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9099
9100 2019-06-11 Tom Tromey <tom@tromey.com>
9101
9102 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9103 (xmalloc_failed): Move to alloc.c.
9104 * alloc.c: New file.
9105 * Makefile.in (COMMON_SFILES): Add alloc.c.
9106
9107 2019-06-11 Tom Tromey <tom@tromey.com>
9108
9109 * nat/linux-waitpid.c: Don't include server.h.
9110 (linux_debug): Remove.
9111 (my_waitpid): Update.
9112
9113 2019-06-11 Tom Tromey <tromey@adacore.com>
9114
9115 * infcall.c (_initialize_infcall): Remove trailing newline from
9116 help.
9117 * user-regs.c (_initialize_user_regs): Remove trailing newline
9118 from help.
9119 * typeprint.c (_initialize_typeprint): Remove trailing newline
9120 from help.
9121 * reverse.c (_initialize_reverse): Remove trailing newlines from
9122 help.
9123 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9124 from help.
9125 * language.c (add_set_language_command): Remove trailing newline
9126 from help.
9127 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9128 help.
9129 * disasm.c (_initialize_disasm): Remove trailing newline from
9130 help.
9131 * top.c (init_main): Remove trailing newline from help.
9132 * interps.c (_initialize_interpreter): Remove trailing newline
9133 from help.
9134 * btrace.c (_initialize_btrace): Remove trailing newlines from
9135 help.
9136 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9137 from help.
9138 * python/python.c (_initialize_python): Remove trailing newline
9139 from help.
9140 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9141 help.
9142 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9143 from help. Reformat some text.
9144 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9145 from help.
9146 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9147 newline from help.
9148
9149 2019-06-11 Tom Tromey <tromey@adacore.com>
9150
9151 * darwin-nat.c (darwin_decode_exception_message)
9152 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9153
9154 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9155
9156 * valops.c (value_slice): Check for not allocated or not
9157 associated values.
9158
9159 2019-06-10 Tom de Vries <tdevries@suse.de>
9160
9161 PR gdb/24618
9162 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9163 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9164 invalid.
9165
9166 2019-06-10 Tom de Vries <tdevries@suse.de>
9167
9168 PR gdb/24611
9169 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9170 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9171
9172 2019-06-10 Tom de Vries <tdevries@suse.de>
9173
9174 PR symtab/24545
9175 * symtab.c (struct demangled_name_entry): Add language field.
9176 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9177 static minimal symbol". Set and use language field.
9178
9179 2019-06-10 Tom Tromey <tromey@adacore.com>
9180
9181 * ada-lang.c (_initialize_ada_language): Update help text.
9182
9183 2019-06-10 Tom Tromey <tromey@adacore.com>
9184
9185 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9186 with a newline.
9187 * guile/guile.c (handle_boot_error): Don't end warning with a
9188 newline.
9189 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9190 warning with a newline.
9191 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9192 newline.
9193 (s12z_frame_cache): Likewise.
9194 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9195 a newline.
9196 * solib-svr4.c (disable_probes_interface): Don't end warning with
9197 a newline.
9198 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9199 newline.
9200 * python/python.c (do_finish_initialization): Don't end warning
9201 with a newline.
9202
9203 2019-06-10 Tom Tromey <tom@tromey.com>
9204
9205 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9206 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9207 gdbpy_enter.
9208
9209 2019-06-10 Tom Tromey <tromey@adacore.com>
9210
9211 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9212 data.
9213 (elf_new_init): Don't call stabsread_new_init.
9214 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9215 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9216 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9217
9218 2019-06-10 Tom de Vries <tdevries@suse.de>
9219
9220 PR symtab/16264
9221 PR symtab/24517
9222 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9223
9224 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9225
9226 * source.c (find_and_open_source): Also rewrite relative file
9227 names.
9228
9229 2019-04-26 Amos Bird <amosbird@gmail.com>
9230
9231 * annotate.c (annotate_thread_exited): Add "thread-exited"
9232 annotation.
9233
9234 2019-06-06 Tom Tromey <tromey@adacore.com>
9235
9236 * maint.h (class scoped_command_stats): Use
9237 DISABLE_COPY_AND_ASSIGN.
9238 <print_time>: New method.
9239 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9240 print_time.
9241 (scoped_command_stats::print_time): New method.
9242
9243 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9244
9245 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9246 instructions of lengths 6 or 8 bytes.
9247
9248 2019-06-04 Pedro Alves <palves@redhat.com>
9249
9250 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9251
9252 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9253 * breakpoint.c (condition_completer): Likewise.
9254 * cli/cli-dump.c (scan_expression): Likewise.
9255 * common/filestuff.c (mkdir_recursive): Likewise.
9256 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9257 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9258 (gdb_abspath): Likewise.
9259 * compile/compile-cplus-types.c
9260 (compile_cplus_instance::decl_name): Likewise.
9261 * completer.c (complete_explicit_location):
9262 (signal_completer, reg_or_group_completer_1): Likewise.
9263 * cp-support.c (cp_remove_params_if_any): Likewise.
9264 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9265 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9266 * infcmd.c (strip_bg_char): Likewise.
9267 * linespec.c (copy_token_string): Likewise.
9268 * mi/mi-main.c (output_cores): Likewise.
9269 * psymtab.c (psymtab_search_name):
9270 * symfile.c (test_set_ext_lang_command): Likewise.
9271 * target.c (target_fileio_read_stralloc): Likewise.
9272 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9273 * value.c (complete_internalvar): Likewise.
9274
9275 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9276
9277 Add objfile property to gdb.Type.
9278 * NEWS: Mention Python API addition.
9279 * python/py-type.c (typy_get_objfile): New method.
9280
9281 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9282
9283 * NEWS: Mention the new set|show style [title|highlight].
9284 Mention changes to "show style", "help" and "apropos".
9285
9286 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9287
9288 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9289 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9290 instead of print_help_for_command.
9291 (print_doc_of_command): New function.
9292 (help_list): Add 'apropos -v word' suggestion.
9293 (print_help_for_command): Style the command name using title style.
9294 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9295 (_initialize_cli_cmds): Describe -v in apropos_command help.
9296
9297 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9298
9299 * cli/cli-style.h (cli_style_option): Add name in constructor,
9300 add m_name class member, add constructor with intensity,
9301 add name class function.
9302 (cli_style_option::add_setshow_commands): Remove name argument.
9303 (highlight_style, title_style): New styles.
9304 * cli/cli-style.c (do_show): New function that shows a style
9305 characteristic styling the style name with itself.
9306 (set_style_name): New function.
9307 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9308 Update all callers according to the changes in cli/cli-style.h.
9309 * utils.h (fputs_highlighted): New function.
9310 * utils.c (fputs_highlighted): Likewise.
9311
9312 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9313
9314 * NEWS: Mention new pipe command and new convenience variables.
9315
9316 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9317
9318 * cli/cli-cmds.c (pipe_command): New function.
9319 (_initialize_cli_cmds): Call add_com for pipe_command.
9320 Define | as an alias for pipe.
9321 (exit_status_set_internal_vars): New function.
9322 (shell_escape): Call exit_status_set_internal_vars.
9323 cli/cli-decode.c (find_command_name_length): Recognize | as
9324 a single character command.
9325
9326 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9327
9328 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9329 top.c (execute_command_to_ui_file): New function, mostly a copy
9330 of execute_command_to_string.
9331 (execute_command_to_string): Implement by calling
9332 execute_command_to_ui_file.
9333
9334 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9335
9336 * top.h (saved_command_line): Remove declaration.
9337 * top.c (previous_saved_command_line, previous_repeat_arguments):
9338 New variables.
9339 (saved_command_line): Make static, define together with other
9340 'repeat variables'.
9341 (dont_repeat): Clear repeat_arguments.
9342 (repeat_previous, get_saved_command_line, save_command_line):
9343 New functions.
9344 (gdb_init): Initialize saved_command_line
9345 and previous_saved_command_line.
9346 * main.c (captured_main_1): Remove saved_command_line initialization.
9347 * event-top.c (handle_line_of_input): Update to use
9348 the new 'repeat' related functions instead of direct access to
9349 saved_command_line.
9350 * command.h (repeat_previous, get_saved_command_line,
9351 save_command_line): New declarations.
9352 (dont_repeat): Add comment.
9353
9354 2019-05-30 Tom Tromey <tromey@adacore.com>
9355
9356 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9357 Fix comment.
9358 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9359
9360 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9361
9362 PR cli/24587
9363 * completer.c (complete): Initialize variable word.
9364
9365 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9366
9367 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9368 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9369 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9370 'body' is NULL to the outter 'if', protecting the '!is_define'
9371 situation as well.
9372
9373 2019-05-29 Tom Tromey <tromey@adacore.com>
9374
9375 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9376 (dwarf_unknown): New function.
9377 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9378 (dwarf_type_encoding_name): Use dwarf_unknown.
9379
9380 2019-05-29 Tom Tromey <tromey@adacore.com>
9381
9382 PR c++/20020:
9383 * cp-valprint.c (cp_print_value_fields): Call
9384 cp_print_static_field inside "try".
9385
9386 2019-05-29 Tom Tromey <tromey@adacore.com>
9387
9388 * inflow.c (struct terminal_info): Add default operator=.
9389 * configure: Rebuild.
9390 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9391 -Wdeprecated-copy-dtor, -Wredundant-move.
9392
9393 2019-05-29 Tom Tromey <tromey@adacore.com>
9394
9395 * NEWS: Add entry.
9396 * infcmd.c (print_return_value_1): Handle finish_print
9397 option.
9398 (show_print_finish): New function.
9399 (_initialize_infcmd): Add "set/show print finish" commands.
9400 * valprint.c (user_print_options): Initialize new member.
9401 * valprint.h (struct value_print_options) <finish_print>: New
9402 member.
9403
9404 2019-05-28 Tom Tromey <tromey@adacore.com>
9405
9406 * ada-lang.c (ada_remove_Xbn_suffix)
9407 (find_old_style_renaming_symbol)
9408 (parse_old_style_renaming): Remove.
9409 (ada_find_renaming_symbol): Don't call
9410 find_old_style_renaming_symbol.
9411 (ada_is_renaming_symbol): Rename from
9412 ada_find_renaming_symbol. Remove "block" parameter. Return
9413 bool. Now static.
9414 (ada_read_var_value): Update and simplify.
9415 * ada-exp.y (write_var_or_type): Remove old code.
9416
9417 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9418
9419 PR gdb/25010
9420 * event-top.c: Remove include comment.
9421 * inflow.c (class scoped_ignore_sigttou): Move from here...
9422 * inflow.h (class scoped_ignore_sigttou): ...to here.
9423 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9424 * top.c: Remove include comment.
9425
9426 2019-05-27 Tom Tromey <tom@tromey.com>
9427
9428 * NEWS: Fix typo.
9429
9430 2019-05-22 Tom Tromey <tromey@adacore.com>
9431
9432 * target.c (target_follow_exec): Constify parameter.
9433 * target-delegates.c: Rebuild.
9434 * remote.c (remote_target::follow_exec): Constify parameter.
9435 * infrun.c (follow_exec): Constify parameter.
9436 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9437 (target_follow_exec): Likewise.
9438
9439 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9440
9441 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9442 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9443
9444 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9445
9446 * NEWS: Add debugredirect and testsuite sections.
9447
9448 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9449
9450 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9451 target descriptions using exclusively floating point register name
9452 aliases.
9453
9454 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9455
9456 PR gdb/18644:
9457 * f-lang.c (build_fortran_types): Handle the case where
9458 gdbarch_floatformat_for_type returns a nullptr.
9459
9460 2019-05-21 Tom de Vries <tdevries@suse.de>
9461
9462 PR cli/24587
9463 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9464
9465 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9466
9467 PR gdb/18644:
9468 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9469 16-byte floats.
9470 * i386-tdep.c (i386_floatformat_for_type): Use
9471 floatformats_ia64_quad for the 16-byte floating point component
9472 within a fortran 32-byte complex number.
9473
9474 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9475
9476 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9477 delete default constructor.
9478 (find_partial_die): Update to return const struct.
9479 (partial_die_parent_scope): Move variable declaration into scope
9480 of its use and change its type to auto.
9481 (guess_partial_die_structure_name): Likewise.
9482 (partial_die_info::fixup): Likewise.
9483
9484 2019-05-17 Tom Tromey <tromey@adacore.com>
9485
9486 * source.c (find_and_open_source): Remove cast.
9487
9488 2019-05-17 Tom Tromey <tromey@adacore.com>
9489
9490 * annotate.c (annotate_source): Make "filename" const.
9491 * annotate.h (annotate_source): Use const.
9492
9493 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9494
9495 * disasm.c (set_disassembler_options): Send errors to stderr.
9496
9497 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9498
9499 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9500 (cli_interp_base::set_logging): Check debug_redirect.
9501 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9502 * cli/cli-logging.c (debug_redirect): Add static variable.
9503 (pop_output_files): Add default param.
9504 (handle_redirections): Print debug setting.
9505 (show_logging_command): Likewise.
9506 (_initialize_cli_logging): Add debugredirect command.
9507 * interps.c (current_interp_set_logging): Add debug_redirect
9508 parameter.
9509 * interps.h (set_logging): Add debug_redirect parameter.
9510 (current_interp_set_logging): Likewise.
9511 * mi/mi-common.h: Likewise.
9512 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9513
9514 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9515 Tom Tromey <tromey@adacore.com>
9516
9517 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9518 directly.
9519 * cli/cli-interp.h (make_logging_output): Remove declaration.
9520 * cli/cli-logging.c (make_logging_output): Remove function.
9521 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9522 directly.
9523 * ui-file.c (tee_file::tee_file): Remove bools.
9524 (tee_file::~tee_file): Remove deletes.
9525 * ui-file.h (tee_file): Remove bools.
9526
9527 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9528
9529 * mi/mi-cmds.h (mi_cmd_complete): New function.
9530 * mi/mi-main.c (mi_cmd_complete): Likewise.
9531 * mi/mi-cmds.c: Define new MI command -complete.
9532 * NEWS: Mention new -complete command.
9533
9534 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9535
9536 * completer.h (complete): New function.
9537 * completer.c (complete): Likewise.
9538 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9539 function defined in completer.h.
9540
9541 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9542
9543 * MAINTAINERS (Write After Approval): Add myself.
9544
9545 2019-05-17 Tom de Vries <tdevries@suse.de>
9546
9547 PR gdb/24094
9548 * dwarf2read.c (struct cu_partial_die_info): New struct.
9549 (find_partial_die): Return cu_partial_die_info.
9550 (partial_die_parent_scope, guess_partial_die_structure_name)
9551 (partial_die_info::fixup): Handle new return type of find_partial_die.
9552
9553 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9554
9555 PR breakpoints/24541
9556 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9557 "std::string", simplifying the algorithm.
9558
9559 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9560
9561 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9562 (stap_static_probe_ops::get_probes): Likewise.
9563
9564 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9565
9566 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9567 '-')" and "else if".
9568 (stap_parse_single_operand): Join checks for
9569 "gdbarch_stap_parse_special_token_p" and
9570 "gdbarch_stap_parse_special_token" in the same "if" statement.
9571 Invert check when verifying for operation on register
9572 displacement.
9573
9574 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9575
9576 * stap-probe.c (stap_get_opcode): Update comment.
9577 (stap_get_expected_argument_type): Likewise.
9578 (handle_stap_probe): Likewise.
9579
9580 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9581
9582 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9583 return type to 'bool'. Adjust comment. Use 'bool' when
9584 appropriate.
9585 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9586 * stap-probe.c (stap_parse_argument_1): Likewise.
9587 (stap_is_operator): Likewise.
9588 (stap_is_generic_prefix): Likewise.
9589 (stap_is_register_prefix): Likewise.
9590 (stap_is_register_indirection_prefix): Likewise.
9591 (stap_is_integer_prefix): Likewise.
9592 (stap_generic_check_suffix): Likewise.
9593 (stap_check_integer_suffix): Likewise.
9594 (stap_check_register_suffix): Likewise.
9595 (stap_check_register_indirection_suffix): Likewise.
9596 (stap_parse_register_operand): Likewise.
9597 (stap_parse_single_operand): Likewise.
9598 (stap_parse_argument_1): Likewise.
9599 (stap_probe::get_argument_count): Likewise.
9600 (stap_is_operator): Likewise.
9601
9602 2019-05-16 Tom Tromey <tromey@adacore.com>
9603
9604 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9605 keyword to foreach.
9606
9607 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9608
9609 * linux-thread-db.c (try_thread_db_load_1): Change return type
9610 to bool.
9611 (try_thread_db_load): Likewise.
9612 (try_thread_db_load_from_pdir_1): Likewise.
9613 (try_thread_db_load_from_pdir): Likewise.
9614 (try_thread_db_load_from_sdir): Likewise.
9615 (try_thread_db_load_from_dir): Likewise.
9616 (thread_db_load_search): Likewise.
9617 (has_libpthread): Likewise.
9618 (thread_db_load): Likewise.
9619
9620 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9621
9622 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9623 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9624 NULL, and complain/return if that's the case.
9625
9626 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9627
9628 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9629 (advance, posn, abstract_read_memory): New functions.
9630 [struct mem_read_abstraction]: New struct.
9631 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9632
9633 2019-05-14 Tom Tromey <tromey@adacore.com>
9634
9635 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9636 value is not lval_memory.
9637
9638 2019-05-14 Tom Tromey <tromey@adacore.com>
9639
9640 * solib.c (info_sharedlibrary_command): Style the file name.
9641
9642 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9643
9644 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9645 (aarch64_vnv_type): Likewise.
9646 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9647 * common/tdesc.c: Likewise.
9648 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9649 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9650 * features/aarch64-fpu.xml: Add ieee half view.
9651 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9652 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9653 * gdbtypes.h (struct builtin_type): Likewise.
9654 (struct objfile_type): Likewise.
9655
9656 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9657
9658 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9659 typo.
9660 * location.h (string_to_event_location): Likewise.
9661
9662 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9663
9664 GDB 8.3 released.
9665
9666 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9667
9668 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9669 New variable declaration.
9670 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9671 New variable.
9672 (print_one_breakpoint): Use ui_out::test_flags and new global
9673 variable to compute use_fixed_output.
9674 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9675 Remove.
9676 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9677 (mi_multi_location_breakpoint_output_fixed): Remove.
9678 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9679 new variable.
9680 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9681 fix_multi_location_breakpoint_output flag if version >= 3.
9682 * ui-out.h (enum ui_out_flag)
9683 <fix_multi_location_breakpoint_output>: New enumerator.
9684
9685 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9686
9687 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9688
9689 2019-05-10 Tom Tromey <tromey@adacore.com>
9690
9691 * ada-lang.c (catch_ada_completer): New function.
9692 (_initialize_ada_language): Use it.
9693
9694 2019-05-10 Tom Tromey <tromey@adacore.com>
9695
9696 * thread.c (print_thread_info): Make "requested_threads" const.
9697 * gdbthread.h (print_thread_info): Make "requested_threads"
9698 const.
9699 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9700 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9701
9702 2019-05-08 Tom Tromey <tom@tromey.com>
9703
9704 * gdbtypes.c (objfile_type_data): Change type.
9705 (objfile_type, _initialize_gdbtypes): Update.
9706
9707 2019-05-08 Tom Tromey <tom@tromey.com>
9708
9709 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9710 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9711 (_initialize_dwarf2_frame): Update.
9712
9713 2019-05-08 Tom Tromey <tom@tromey.com>
9714
9715 * objc-lang.c (objc_objfile_data): Change type.
9716 (find_methods): Update.
9717 (_initialize_objc_lang): Remove.
9718
9719 2019-05-08 Tom Tromey <tom@tromey.com>
9720
9721 * stabsread.c (rs6000_builtin_type_data): Change type.
9722 (rs6000_builtin_type, _initialize_stabsread): Update.
9723
9724 2019-05-08 Tom Tromey <tom@tromey.com>
9725
9726 * mips-tdep.c (mips_pdr_data): Remove.
9727 (_initialize_mips_tdep): Update.
9728
9729 2019-05-08 Tom Tromey <tom@tromey.com>
9730
9731 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9732 (hppa_init_objfile_priv_data, read_unwind_info)
9733 (find_unwind_entry, _initialize_hppa_tdep): Update.
9734
9735 2019-05-08 Tom Tromey <tom@tromey.com>
9736
9737 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9738 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9739 on obstack.
9740 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9741
9742 2019-05-08 Tom Tromey <tom@tromey.com>
9743
9744 * mdebugread.c (basic_type_data): Change type.
9745 (basic_type, _initialize_mdebugread): Update.
9746
9747 2019-05-08 Tom Tromey <tom@tromey.com>
9748
9749 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9750
9751 2019-05-08 Tom Tromey <tom@tromey.com>
9752
9753 * nto-tdep.c (nto_inferior_data_reg): Change type.
9754 (nto_inferior_data): Update.
9755 (nto_inferior_data_cleanup, nto_new_inferior_data)
9756 (_initialize_nto_tdep): Remove.
9757 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9758
9759 2019-05-08 Tom Tromey <tom@tromey.com>
9760
9761 * ada-lang.c (struct ada_inferior_data): Add initializers.
9762 (ada_inferior_data): Change type.
9763 (ada_inferior_data_cleanup): Remove.
9764 (get_ada_inferior_data, ada_inferior_exit)
9765 (struct ada_pspace_data): Add initializers, destructor.
9766 (ada_pspace_data_handle): Change type.
9767 (get_ada_pspace_data): Update.
9768 (ada_pspace_data_cleanup): Remove.
9769
9770 2019-05-08 Tom Tromey <tom@tromey.com>
9771
9772 * coffread.c (struct coff_symfile_info): Add initializers.
9773 (coff_objfile_data_key): Move lower. Change type.
9774 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9775 Update.
9776 (coff_free_info): Remove.
9777
9778 2019-05-08 Tom Tromey <tom@tromey.com>
9779
9780 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9781 (fbsd_pspace_data_handle): Move lower. Change type.
9782 (get_fbsd_pspace_data): Update.
9783 (fbsd_pspace_data_cleanup): Remove.
9784 (_initialize_fbsd_tdep): Update.
9785
9786 2019-05-08 Tom Tromey <tom@tromey.com>
9787
9788 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9789 (get_ada_tasks_pspace_data): Update.
9790 (ada_tasks_pspace_data_cleanup): Remove.
9791 (_initialize_tasks): Update.
9792 (ada_tasks_inferior_data_handle): Change type.
9793 (get_ada_tasks_inferior_data): Update.
9794 (ada_tasks_inferior_data_cleanup): Remove.
9795 (struct ada_tasks_pspace_data): Add initializers.
9796
9797 2019-05-08 Tom Tromey <tom@tromey.com>
9798
9799 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9800 * symfile-debug.c (debug_sym_get_probes): Change type.
9801 * stap-probe.c (handle_stap_probe):
9802 (stap_static_probe_ops::get_probes): Change type.
9803 * probe.h (class static_probe_ops) <get_probes>: Change type.
9804 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9805 (parse_probes_in_pspace): Update.
9806 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9807 Update.
9808 (any_static_probe_ops::get_probes): Change type.
9809 * elfread.c (elfread_data): New typedef.
9810 (probe_key): Change type.
9811 (elf_get_probes): Likewise. Update.
9812 (probe_key_free): Remove.
9813 (_initialize_elfread): Update.
9814 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9815 Change type.
9816 (dtrace_process_dof_probe, dtrace_process_dof)
9817 (dtrace_static_probe_ops::get_probe): Change type.
9818
9819 2019-05-08 Tom Tromey <tom@tromey.com>
9820
9821 * xcoffread.c (struct xcoff_symfile_info): Rename from
9822 coff_symfile_info. Add initializers.
9823 (xcoff_objfile_data_key): Move lower. Change type.
9824 (XCOFF_DATA): Rewrite.
9825 (xcoff_free_info): Remove.
9826 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9827 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9828 (xcoff_initial_scan): Update.
9829
9830 2019-05-08 Tom Tromey <tom@tromey.com>
9831
9832 * solib-svr4.c (struct svr4_info): Add initializers and
9833 destructor.
9834 <probes_table>: Now an htab_up.
9835 (solib_svr4_pspace_data): Change type.
9836 (free_probes_table): Simplify.
9837 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9838 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9839 (probes_table_remove_objfile_probes, register_solib_event_probe)
9840 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9841 (_initialize_svr4_solib): Update.
9842
9843 2019-05-08 Tom Tromey <tom@tromey.com>
9844
9845 * remote.c (remote_pspace_data): Change type.
9846 (remote_pspace_data_cleanup): Remove.
9847 (get_remote_exec_file, set_pspace_remote_exec_file)
9848 (_initialize_remote): Update.
9849
9850 2019-05-08 Tom Tromey <tom@tromey.com>
9851
9852 * breakpoint.c (breakpoint_objfile_key): Change type.
9853 (get_breakpoint_objfile_data): Update.
9854 (free_breakpoint_objfile_data): Remove.
9855 (_initialize_breakpoint): Update.
9856
9857 2019-05-08 Tom Tromey <tom@tromey.com>
9858
9859 * linux-tdep.c (struct linux_info): Add initializers.
9860 (linux_inferior_data): Move. Change type.
9861 (invalidate_linux_cache_inf): Update.
9862 (linux_inferior_data_cleanup): Remove.
9863 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9864
9865 2019-05-08 Tom Tromey <tom@tromey.com>
9866
9867 * auxv.c (auxv_inferior_data): Move. Change type.
9868 (auxv_inferior_data_cleanup): Remove.
9869 (invalidate_auxv_cache_inf): Rewrite.
9870 (get_auxv_inferior_data, _initialize_auxv): Update.
9871
9872 2019-05-08 Tom Tromey <tom@tromey.com>
9873
9874 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9875 (symfile_debug_objfile_data_key): Change type.
9876 (symfile_debug_installed, debug_qf_has_symbols)
9877 (debug_qf_find_last_source_symtab)
9878 (debug_qf_forget_cached_source_info)
9879 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9880 (debug_qf_print_stats, debug_qf_dump)
9881 (debug_qf_expand_symtabs_for_function)
9882 (debug_qf_expand_all_symtabs)
9883 (debug_qf_expand_symtabs_with_fullname)
9884 (debug_qf_map_matching_symbols)
9885 (debug_qf_expand_symtabs_matching)
9886 (debug_qf_find_pc_sect_compunit_symtab)
9887 (debug_qf_map_symbol_filenames)
9888 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9889 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9890 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9891 (debug_sym_read_linetable, debug_sym_relocate): Update.
9892 (symfile_debug_free_objfile): Remove.
9893 (install_symfile_debug_logging, _initialize_symfile_debug):
9894 Update.
9895
9896 2019-05-08 Tom Tromey <tom@tromey.com>
9897
9898 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9899 allocate_on_obstack.
9900 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9901 (get_dwarf2_per_objfile): Update.
9902 (set_dwarf2_per_objfile): Remove.
9903 (dwarf2_has_info, dwarf2_get_section_info): Update.
9904 (dwarf2_free_objfile): Remove.
9905 (_initialize_dwarf2_read): Update.
9906
9907 2019-05-08 Tom Tromey <tom@tromey.com>
9908
9909 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9910 initializers.
9911 <unsupported_script_warning_printed,
9912 script_not_found_warning_printed>: Now bool.
9913 (auto_load_pspace_data): Change type.
9914 (~auto_load_pspace_info): Rename from
9915 auto_load_pspace_data_cleanup.
9916 (get_auto_load_pspace_data, init_loaded_scripts_info)
9917 (clear_section_scripts, maybe_print_unsupported_script_warning)
9918 (maybe_print_script_not_found_warning, _initialize_auto_load):
9919 Update.
9920
9921 2019-05-08 Tom Tromey <tom@tromey.com>
9922
9923 * objfiles.c (objfile_pspace_info): Add destructor and
9924 initializers.
9925 (objfiles_pspace_data): Change type.
9926 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9927 (get_objfile_pspace_data): Update.
9928 (objfiles_bfd_data): Change type.
9929 (get_objfile_bfd_data): Update.
9930 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9931
9932 2019-05-08 Tom Tromey <tom@tromey.com>
9933
9934 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9935 Change type.
9936 (get_catch_syscall_inferior_data): Update.
9937 (catch_syscall_inferior_data_cleanup): Remove.
9938 (_initialize_break_catch_syscall): Update.
9939
9940 2019-05-08 Tom Tromey <tom@tromey.com>
9941
9942 * inflow.c (struct terminal_info): Add destructor and
9943 initializers.
9944 (inflow_inferior_data): Change type.
9945 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9946 (get_inflow_inferior_data, inflow_inferior_exit)
9947 (swap_terminal_info, _initialize_inflow): Update.
9948
9949 2019-05-08 Tom Tromey <tom@tromey.com>
9950
9951 * target-dcache.c (target_dcache_cleanup): Remove.
9952 (target_dcache_aspace_key): Change type.
9953 (target_dcache_init_p, target_dcache_invalidate)
9954 (target_dcache_get, target_dcache_get_or_init)
9955 (_initialize_target_dcache): Update.
9956 * dcache.h (struct dcache_deleter): New.
9957
9958 2019-05-08 Tom Tromey <tom@tromey.com>
9959
9960 * symtab.c (struct symbol_cache): Add destructor and
9961 initializers.
9962 (symbol_cache_key): Move. Change type.
9963 (make_symbol_cache, free_symbol_cache): Remove.
9964 (get_symbol_cache): Update.
9965 (symbol_cache_cleanup): Remove.
9966 (ALL_PSPACES, symbol_cache_flush)
9967 (maintenance_print_symbol_cache)
9968 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9969 Update.
9970
9971 2019-05-08 Tom Tromey <tom@tromey.com>
9972
9973 * symtab.c (struct main_info): Add destructor and initializers.
9974 (main_progspace_key): Move. Change type.
9975 (get_main_info): Update.
9976 (main_info_cleanup): Remove.
9977 (_initialize_symtab): Update.
9978
9979 2019-05-08 Tom Tromey <tom@tromey.com>
9980
9981 * registry.h (DECLARE_REGISTRY): Define the _key class.
9982
9983 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9984
9985 * NEWS: Merge two 'New commands' sections.
9986
9987 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9988
9989 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9990 parameter and use Ada language definition instead.
9991 (ada_val_print_ptr): Remove unused language parameter.
9992 (ada_val_print_num): Remove language parameter and use Ada language
9993 definition instead.
9994 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9995 parameter.
9996 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9997 parameter and use Ada language definition instead.
9998 (ada_val_print_1): Update all ada_val_print_xxx calls.
9999 Remove language parameter.
10000 (ada_val_print): Update ada_val_print_1 call.
10001
10002 2019-05-08 Tom Tromey <tromey@adacore.com>
10003
10004 * remote.c (remote_hw_watchpoint_limit)
10005 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10006 Now static.
10007
10008 2019-05-08 Tom Tromey <tromey@adacore.com>
10009
10010 * maint.c (_initialize_maint_cmds): Move initialization code to
10011 remote.c.
10012 (watchdog, show_watchdog): Move to remote.c.
10013 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10014 "watchdog" static.
10015 (_initialize_remote): Move initialization code from maint.c.
10016 * defs.h (watchdog): Don't declare.
10017
10018 2019-05-08 Tom Tromey <tromey@adacore.com>
10019
10020 * tui/tui-interp.c: Include main.h.
10021 * interps.c: Include main.h.
10022 * main.h (interpreter_p): Declare.
10023 * defs.h (interpreter_p): Don't declare.
10024
10025 2019-05-08 Tom Tromey <tromey@adacore.com>
10026
10027 * dwarf2loc.c: Include dwarf2read.h.
10028 * defs.h (read_unsigned_leb128): Don't declare.
10029 * dwarf2read.h (read_unsigned_leb128): Declare.
10030
10031 2019-05-08 Tom Tromey <tromey@adacore.com>
10032
10033 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10034 method.
10035
10036 2019-05-08 Tom Tromey <tromey@adacore.com>
10037
10038 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10039 when no wrap column is set.
10040
10041 2019-05-08 Tom Tromey <tromey@adacore.com>
10042
10043 * c-lang.c (c_get_string): Handle non-C-style arrays.
10044
10045 2019-05-08 Tom Tromey <tromey@adacore.com>
10046
10047 * typeprint.c (print_offset_data::update): Print the bit offset,
10048 not the number of bits remaining.
10049
10050 2019-05-08 Tom Tromey <tromey@adacore.com>
10051
10052 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10053 padding at end of comment.
10054
10055 2019-05-08 Tom Tromey <tromey@adacore.com>
10056
10057 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10058 Compare main types.
10059
10060 2019-05-06 Tom Tromey <tom@tromey.com>
10061
10062 * common/scoped_mmap.c: Include common-defs.h.
10063 * common/scoped_mmap.h: Don't include config.h.
10064
10065 2019-05-04 Tom Tromey <tom@tromey.com>
10066
10067 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10068 (struct aarch64_call_info): Add initializers.
10069 <si>: Now a std::vector.
10070 (pass_on_stack, aarch64_push_dummy_call): Update.
10071
10072 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10073 Tom Tromey <tom@tromey.com>
10074
10075 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10076 (ppc_threads): Now a std::vector. Now static.
10077 (hwdebug_find_thread_points_by_tid)
10078 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10079 Update.
10080
10081 2019-05-04 Tom Tromey <tom@tromey.com>
10082
10083 * arc-tdep.c (arc_tdesc_init): Return bool.
10084
10085 2019-05-04 Tom Tromey <tom@tromey.com>
10086
10087 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10088 Use gdb_assert_not_reached.
10089
10090 2019-05-04 Tom Tromey <tom@tromey.com>
10091
10092 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10093 "false".
10094
10095 2019-05-04 Tom Tromey <tom@tromey.com>
10096
10097 * arc-tdep.c (arc_tdesc_init): Use bool.
10098
10099 2019-05-04 Tom Tromey <tom@tromey.com>
10100
10101 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10102
10103 2019-05-04 Tom Tromey <tom@tromey.com>
10104
10105 * cli/cli-cmds.c (valid_command_p): Return bool.
10106
10107 2019-05-04 Tom Tromey <tom@tromey.com>
10108
10109 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10110 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10111
10112 2019-05-04 Raul Tambre <raul@tambre.ee>
10113
10114 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10115 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10116 operator for comparison.
10117
10118 2019-05-04 Tom Tromey <tom@tromey.com>
10119
10120 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10121 (lookup_partial_symbol, print_partial_symbols)
10122 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10123 (psymbol_compare): Update.
10124 (add_psymbol_to_bcache): Clear the entire psymbol.
10125 (maintenance_check_psymtabs): Update.
10126 * psympriv.h (struct partial_symbol): Don't derive from
10127 general_symbol_info.
10128 <obj_section, unrelocated_address, address,
10129 set_unrelocated_address>: Update.
10130 <ginfo>: New member.
10131 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10132 (debug_names::write_psymbols): Update.
10133
10134 2019-05-04 Tom de Vries <tdevries@suse.de>
10135
10136 * contrib/cc-with-tweaks.sh: Support -n arg.
10137
10138 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10139
10140 * corelow.c (core_target::detach): Ensure frame cache and
10141 register caches are cleared.
10142 inferior.c (exit_inferior_1): Likewise.
10143
10144 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10145 Tom Tromey <tom@tromey.com>
10146
10147 * dictionary.c (collate_pending_symbols_by_language): Remove
10148 "struct" from foreach.
10149 * symtab.c (lookup_global_symbol_from_objfile)
10150 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10151 foreach.
10152 * ser-tcp.c (net_open): Remove "struct" from foreach.
10153 * objfiles.c (objfile_relocate, objfile_rebase)
10154 (objfile_has_symbols): Remove "struct" from foreach.
10155 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10156 from foreach.
10157 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10158 foreach.
10159 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10160 "struct" from foreach.
10161 * ada-lang.c (create_excep_cond_exprs)
10162 (ada_exception_catchpoint_cond_string): Remove "struct" from
10163 foreach.
10164
10165 2019-05-03 Tom Tromey <tromey@adacore.com>
10166
10167 * ada-exp.y (convert_char_literal): Check suffix of each
10168 enumerator.
10169
10170 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10171
10172 PR ada/21406:
10173 * ada-exp.y (yywrap): Don't define.
10174 * ada-lex.l (%option): Add noyywrap
10175 (yywrap): Remove.
10176
10177 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10178
10179 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10180 _WIN32_WINNT to the XP level, unless already defined to a higher
10181 level.
10182
10183 * unittests/parse-connection-spec-selftests.c:
10184 * ser-tcp.c:
10185 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10186 override.
10187
10188 * symfile.c (find_separate_debug_file): Remove colon from the
10189 drive spec of DOS/Windows file names of the target, so that the
10190 file name produced from DEBUGDIR and the target's directory will
10191 be valid on DOS/Windows systems.
10192
10193 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10194
10195 * rust-lang.c (val_print_struct): Handle printing structures
10196 containing strings.
10197
10198 2019-05-02 Tom Tromey <tromey@adacore.com>
10199
10200 * valarith.c (_initialize_valarith): Remove.
10201
10202 2019-05-01 Tom Tromey <tromey@adacore.com>
10203
10204 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10205 bitfields.
10206
10207 2019-05-01 Tom Tromey <tromey@adacore.com>
10208
10209 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10210 for big-endian copies.
10211
10212 2019-04-30 Ali Tamur <tamur@google.com>
10213 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10214 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10215 (read_3_bytes): New function.
10216
10217 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10218
10219 * windows-nat.c (main_thread_id): Delete.
10220 (handle_output_debug_string): Replace main_thread_id by
10221 current_event.dwThreadId.
10222 (fake_create_process): Likewise.
10223 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10224 Do not set main_thread_id.
10225 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10226 current_event.dwThreadId.
10227 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10228
10229 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10230
10231 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10232 Use current_event.dwThreadId instead of main_thread_id.
10233
10234 2019-04-30 Tom Tromey <tromey@adacore.com>
10235
10236 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10237 (create_excep_cond_exprs): Iterate over program spaces.
10238 (ada_exception_catchpoint_cond_string): Examine all minimal
10239 symbols for exception types.
10240
10241 2019-04-30 Tom Tromey <tromey@adacore.com>
10242
10243 PR c++/24470:
10244 * dwarf2read.c (process_structure_scope): Handle case where type
10245 has template parameters but no symbol was created.
10246
10247 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10248 Chris January <chris.january@arm.com>
10249
10250 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10251 qualifier.
10252 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10253
10254 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10255
10256 * f-typeprint.c (f_print_type): Update rules for printing
10257 whitespace.
10258 (f_type_print_varspec_suffix): Likewise.
10259
10260 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10261 Chris January <chris.january@arm.com>
10262
10263 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10264 function arguments.
10265
10266 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10267
10268 * f-lang.c (build_fortran_types): Change name of void type to
10269 lower case.
10270 * f-typeprint.c (f_type_print_base): Print the name of the void
10271 type, rather than a fixed string.
10272 * f-valprint.c (f_decorations): Use lower case void string.
10273
10274 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10275 Chris January <chris.january@arm.com>
10276
10277 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10278 types for Fortran.
10279
10280 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10281 Chris January <chris.january@arm.com>
10282 David Lecomber <david.lecomber@arm.com>
10283
10284 * f-exp.y (BINOP_INTRINSIC): New token.
10285 (exp): New parser rule handling BINOP_INTRINSIC.
10286 (f77_keywords): Add new builtin procedures.
10287 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10288 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10289 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10290 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10291 (print_unop_subexp_f): New function.
10292 (print_binop_subexp_f): New function.
10293 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10294 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10295 (dump_subexp_body_f): Likewise.
10296 (operator_check_f): Likewise.
10297 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10298 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10299
10300 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10301
10302 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10303 UNOP_KIND.
10304 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10305 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10306 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10307 (operator_length_f): New fuction.
10308 (print_subexp_f): New function.
10309 (op_name_f): New function.
10310 (dump_subexp_body_f): New function.
10311 (operator_check_f): New function.
10312 (exp_descriptor_f): Replace standard expression handling functions
10313 with new functions.
10314 * gdb/fortran-operator.def: New file.
10315 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10316 * gdb/std-operator.def: Remove UNOP_KIND.
10317
10318 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10319
10320 * std-operator.def: Remove unbalanced, stray double quote
10321 character.
10322
10323 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10324 Chris January <chris.january@arm.com>
10325 Daniel Everett <daniel.everett@arm.com>
10326 Nick Forrington <nick.forrington@arm.com>
10327 Richard Bunt <richard.bunt@arm.com>
10328
10329 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10330 of depth when printing anonymous structs or unions.
10331 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10332 Don't print either the top-level value, or the children if the
10333 max-depth is exceeded.
10334 (ppscm_print_children): When printing the key of a map, allow one
10335 extra level of depth.
10336 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10337 print either the top-level value, or the children if the max-depth
10338 is exceeded.
10339 (print_children): When printing the key of a map, allow one extra
10340 level of depth.
10341 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10342 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10343 (user_print_options): Initialise max_depth field.
10344 (val_print_scalar_or_string_type_p): New function.
10345 (val_print): Check to see if the max depth has been reached.
10346 (val_print_check_max_depth): Define new function.
10347 (show_print_max_depth): New function.
10348 (_initialize_valprint): Add 'print max-depth' option.
10349 * valprint.h (struct value_print_options) <max_depth>: New field.
10350 (val_print_check_max_depth): Declare new function.
10351 * NEWS: Document new feature.
10352
10353 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10354
10355 * ada-lang.c (ada_language_defn): Initialise new field.
10356 * c-lang.c (c_is_string_type_p): New function.
10357 (c_language_defn): Initialise new field.
10358 (cplus_language_defn): Initialise new field.
10359 (asm_language_defn): Initialise new field.
10360 (minimal_language_defn): Initialise new field.
10361 * c-lang.h (c_is_string_type_p): Declare new function.
10362 * d-lang.c (d_language_defn): Initialise new field.
10363 * f-lang.c (f_is_string_type_p): New function.
10364 (f_language_defn): Initialise new field.
10365 * go-lang.c (go_is_string_type_p): New function.
10366 (go_language_defn): Initialise new field.
10367 * language.c (default_is_string_type_p): New function.
10368 (unknown_language_defn): Initialise new field.
10369 (auto_language_defn): Initialise new field.
10370 * language.h (struct language_defn) <la_is_string_type_p>: New
10371 member variable.
10372 (default_is_string_type_p): Declare new function.
10373 * m2-lang.c (m2_language_defn): Initialise new field.
10374 * objc-lang.c (objc_language_defn): Initialise new field.
10375 * opencl-lang.c (opencl_language_defn): Initialise new field.
10376 * p-lang.c (pascal_is_string_type_p): New function.
10377 (pascal_language_defn): Initialise new field.
10378 * rust-lang.c (rust_is_string_type_p): New function.
10379 (rust_language_defn): Initialise new field.
10380
10381 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10382
10383 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10384 New field.
10385 * ada-lang.c (ada_language_defn): Initialise new field.
10386 * c-lang.c (c_language_defn): Likewise.
10387 (cplus_language_defn): Likewise.
10388 (asm_language_defn): Likewise.
10389 (minimal_language_defn): Likewise.
10390 * d-lang.c (d_language_defn): Likewise.
10391 * f-lang.c (f_language_defn): Likewise.
10392 * go-lang.c (go_language_defn): Likewise.
10393 * language.c (unknown_language_defn): Likewise.
10394 (auto_language_defn): Likewise.
10395 * m2-lang.c (m2_language_defn): Likewise.
10396 * objc-lang.c (objc_language_defn): Likewise.
10397 * opencl-lang.c (opencl_language_defn): Likewise.
10398 * p-lang.c (pascal_language_defn): Likewise.
10399 * rust-lang.c (rust_language_defn): Likewise.
10400
10401 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10402
10403 * ada-lang.c (ada_is_character_type): Change return type to bool.
10404 (ada_is_string_type): Likewise.
10405 * ada-lang.h (ada_is_character_type): Update declaration
10406 (ada_is_string_type): Likewise.
10407
10408 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10409
10410 Support style in 'frame|thread apply'
10411
10412 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10413 * record.c (record_start, record_stop): Update callers of
10414 execute_command_to_string with false.
10415 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10416 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10417 methods.
10418 (class string_file): New constructor with term_out parameter.
10419 Override methods term_out and can_emit_style_escape. New member
10420 term_out.
10421 (class stdio_file): Override can_emit_style_escape.
10422 (class tee_file): Override term_out and can_emit_style_escape.
10423 * utils.h (can_emit_style_escape): Remove.
10424 * utils.c (can_emit_style_escape): Likewise.
10425 Update all callers of can_emit_style_escape (SOMESTREAM) to
10426 SOMESTREAM->can_emit_style_escape.
10427 * source-cache.c (source_cache::get_source_lines): Likewise.
10428 * stack.c (frame_apply_command_count): Call execute_command_to_string
10429 passing the term_out characteristic of the current gdb_stdout.
10430 * thread.c (thr_try_catch_cmd): Likewise.
10431 * top.c (execute_command_to_string): pass term_out parameter
10432 to construct the string_file for the command output.
10433 * ui-file.c (term_cli_styling): New function (most code moved
10434 from utils.c can_emit_style_escape).
10435 (string_file::string_file, string_file::can_emit_style_escape,
10436 stdio_file::can_emit_style_escape, tee_file::term_out,
10437 tee_file::can_emit_style_escape): New functions.
10438
10439 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10440
10441 * NEWS: Mention the new set|show may-call-functions.
10442 * infcall.c (may_call_functions_p): New variable.
10443 (show_may_call_functions_p): New function.
10444 (call_function_by_hand_dummy): Throws an error if not
10445 may-call-functions.
10446 (_initialize_infcall): Call add_setshow_boolean_cmd for
10447 may-call-functions.
10448
10449 2019-04-25 Keith Seitz <keiths@redhat.com>
10450
10451 PR c++/24367
10452 * cp-support.c (inspect_type): Don't attempt substitutions
10453 of symbol with the same name.
10454
10455 2019-04-25 Tom Tromey <tromey@adacore.com>
10456
10457 PR gdb/24475:
10458 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10459 static.
10460
10461 2019-04-25 Tom Tromey <tromey@adacore.com>
10462
10463 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10464 rvalue reference.
10465 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10466 (gdb_xml_parser::parse): Use std::move.
10467 * python/python-internal.h (gdbpy_convert_exception): Take a const
10468 reference.
10469 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10470 std::move.
10471 * python/py-utils.c (gdbpy_convert_exception): Take a const
10472 reference.
10473 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10474 Use std::move.
10475 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10476 Use std::move.
10477 * mi/mi-main.c (mi_print_exception): Take a const reference.
10478 * main.c (handle_command_errors): Take a const reference.
10479 * linespec.c (parse_linespec): Use std::move.
10480 * infcall.c (run_inferior_call): Use std::move.
10481 (call_function_by_hand_dummy): Use std::move.
10482 * exec.c (try_open_exec_file): Use std::move.
10483 * exceptions.h (exception_print, exception_fprintf)
10484 (exception_print_same): Update.
10485 * exceptions.c (print_exception, exception_print)
10486 (exception_fprintf, exception_print_same): Change parameters to
10487 const reference.
10488 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10489 * common/new-op.c: Use std::move.
10490 * common/common-exceptions.h (struct gdb_exception): Add move
10491 constructor.
10492 (struct gdb_exception_error, struct gdb_exception_quit, struct
10493 gdb_quit_bad_alloc): Change constructor to move constructor.
10494 (throw_exception): Change parameter to rvalue reference.
10495 * common/common-exceptions.c (throw_exception): Take rvalue
10496 reference.
10497 * cli/cli-interp.c (safe_execute_command): Use std::move.
10498 * breakpoint.c (insert_bp_location, location_to_sals): Use
10499 std::move.
10500
10501 2019-04-25 Tom Tromey <tromey@adacore.com>
10502
10503 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10504 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10505 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10506 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10507 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10508 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10509 guile/scm-value.c: Use unpack.
10510 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10511 gdbscm_gdb_exception.
10512 (gdbscm_throw_gdb_exception): Likewise.
10513 (struct gdbscm_gdb_exception): New.
10514 (unpack): New function.
10515 (gdbscm_wrap): Use unpack.
10516
10517 2019-04-25 Tom Tromey <tromey@adacore.com>
10518
10519 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10520 (gdb_rl_callback_handler): Use std::move.
10521 * common/common-exceptions.h (struct gdb_exception): Add move
10522 assignment operator.
10523 (throw_exception_sjlj): Change "exception" to const reference.
10524 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10525 (throw_exception_sjlj): Change "exception" to const reference.
10526
10527 2019-04-25 Tom Tromey <tromey@adacore.com>
10528
10529 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10530 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10531 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10532 Update.
10533 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10534 Update.
10535 * mi/mi-interp.c (mi_interp::exec): Update.
10536 * linespec.c (parse_linespec): Update.
10537 * infcall.c (run_inferior_call): Update.
10538 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10539 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10540 (gdbscm_lookup_global_symbol): Update.
10541 * guile/scm-param.c (gdbscm_parameter_value): Update.
10542 * guile/scm-frame.c (gdbscm_frame_read_register)
10543 (gdbscm_frame_read_var): Update.
10544 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10545 * exec.c (try_open_exec_file): Update.
10546 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10547 (gdb_rl_callback_handler): Update.
10548 * common/common-exceptions.h (exception_none): Don't declare.
10549 * common/common-exceptions.c (exception_none): Don't define.
10550 (struct catcher) <exception>: Update.
10551 * cli/cli-interp.c (safe_execute_command): Update.
10552 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10553
10554 2019-04-25 Ali Tamur <tamur@google.com>
10555
10556 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10557 (read_attribute_value): Likewise.
10558 (dwarf2_read_addr_index): Update comment.
10559 (read_str_index): Add DW_FORM_strx.
10560 (dwarf2_string_attr): Likewise.
10561 (dwarf2_const_value_attr): Likewise.
10562 (dump_die_shallow): Likewise.
10563 (dwarf2_fetch_constant_bytes): Likewise.
10564 (skip_form_bytes): Likewise.
10565 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10566
10567 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10568
10569 PR corefiles/11608
10570 PR corefiles/18187
10571 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10572 OFFSET. Verify if current mapping contains an ELF header.
10573 (linux_find_memory_regions_full): Adjust call to
10574 dump_mapping_p.
10575
10576 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10577 Kang Li <kanglictf@gmail.com>
10578
10579 PR gdb/21600
10580
10581 * dwarf2-frame.c (read_initial_length): Be consistent about using
10582 unsigned representation of length.
10583 (decode_frame_entry_1): Likewise. Check for wraparound of
10584 end pointer as well as buffer overflow.
10585
10586 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10587
10588 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10589 "vq".
10590
10591 2019-04-24 Tom Tromey <tromey@adacore.com>
10592
10593 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10594
10595 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10596
10597 * s12z-tdep.c (s12z_unwind_pc): Delete.
10598 (s12z_unwind_sp): Delete.
10599 (s12z_gdbarch_init): Don't register deleted functions with
10600 gdbarch.
10601
10602 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10603
10604 * rl78-tdep.c (rl78_unwind_sp): Delete.
10605 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10606
10607 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10608
10609 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10610 (xstormy16_unwind_pc): Delete.
10611 (xstormy16_dummy_id): Delete.
10612 (xstormy16_gdbarch_init): Don't register deleted functions with
10613 gdbarch.
10614
10615 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10616
10617 * vax-tdep.c (vax_unwind_pc): Delete.
10618 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10619
10620 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10621
10622 * v850-tdep.c (v850_unwind_sp): Delete.
10623 (v850_unwind_pc): Delete.
10624 (v850_dummy_id): Delete.
10625 (v850_gdbarch_init): Don't register deleted functions with
10626 gdbarch.
10627
10628 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10629
10630 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10631 (tilegx_unwind_pc): Delete.
10632 (tilegx_unwind_dummy_id): Delete.
10633 (tilegx_gdbarch_init): Don't register deleted functions with
10634 gdbarch.
10635
10636 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10637
10638 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10639 (tic6x_dummy_id): Delete.
10640 (tic6x_gdbarch_init): Don't register deleted functions with
10641 gdbarch.
10642
10643 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10644
10645 * sparc-tdep.c (sparc_unwind_pc): Delete.
10646 (sparc32_gdbarch_init): Don't register deleted function with
10647 gdbarch.
10648
10649 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10650
10651 * sh-tdep.c (sh_unwind_sp): Delete.
10652 (sh_unwind_pc): Delete.
10653 (sh_dummy_id): Delete.
10654 (sh_gdbarch_init): Don't register deleted functions with
10655 gdbarch.
10656
10657 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10658
10659 * score-tdep.c (score_unwind_sp): Delete.
10660 (score_unwind_pc): Delete.
10661 (score_dummy_id): Delete.
10662 (score_gdbarch_init): Don't register deleted functions with
10663 gdbarch.
10664
10665 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10666
10667 * rx-tdep.c (rx_unwind_pc): Delete.
10668 (rx_unwind_sp): Delete.
10669 (rx_dummy_id): Delete.
10670 (rx_gdbarch_init): Don't register deleted functions with
10671 gdbarch. Update comment.
10672
10673 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10674
10675 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10676 (rs6000_dummy_id): Delete.
10677 (rs6000_gdbarch_init): Don't register deleted functions with
10678 gdbarch.
10679
10680 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10681
10682 * or1k-tdep.c (or1k_dummy_id): Delete.
10683 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10684
10685 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10686
10687 * nios2-tdep.c (nios2_dummy_id): Delete.
10688 (nios2_unwind_sp): Delete.
10689 (nios2_gdbarch_init): Don't register deleted functions with
10690 gdbarch.
10691
10692 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10693
10694 * nds32-tdep.c (nds32_dummy_id): Delete.
10695 (nds32_unwind_pc): Delete.
10696 (nds32_unwind_sp): Delete.
10697 (nds32_gdbarch_init): Don't register deleted functions with
10698 gdbarch.
10699
10700 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10701
10702 * msp430-tdep.c (msp430_unwind_pc): Delete.
10703 (msp430_unwind_sp): Delete.
10704 (msp430_dummy_id): Delete.
10705 (msp430_gdbarch_init): Don't register deleted functions with
10706 gdbarch.
10707
10708 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10709
10710 * moxie-tdep.c (moxie_unwind_sp): Delete.
10711 (moxie_unwind_pc): Delete.
10712 (moxie_dummy_id): Delete.
10713 (moxie_gdbarch_init): Don't register deleted functions with
10714 gdbarch.
10715
10716 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10717
10718 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10719 (mn10300_unwind_pc): Delete.
10720 (mn10300_unwind_sp): Delete.
10721 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10722 mn10300_unwind_sp.
10723 (mn10300_frame_unwind_init): Don't register deleted functions with
10724 gdbarch.
10725
10726 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10727
10728 * mep-tdep.c (mep_unwind_pc): Delete.
10729 (mep_unwind_sp): Delete.
10730 (mep_dummy_id): Delete.
10731 (mep_gdbarch_init): Don't register deleted functions with
10732 gdbarch.
10733
10734 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10735
10736 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10737 (m68hc11_unwind_sp): Delete.
10738 (m68hc11_gdbarch_init): Don't register deleted functions with
10739 gdbarch.
10740
10741 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10742
10743 * m32r-tdep.c (m32r_unwind_sp): Delete.
10744 (m32r_unwind_pc): Delete.
10745 (m32r_dummy_id): Delete.
10746 (m32r_gdbarch_init): Don't register deleted functions with
10747 gdbarch.
10748
10749 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10750
10751 * m32c-tdep.c (m32c_unwind_pc): Delete.
10752 (m32c_unwind_sp): Delete.
10753 (m32c_dummy_id): Delete.
10754 (m32c_gdbarch_init): Don't register deleted functions with
10755 gdbarch.
10756
10757 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10758
10759 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10760 (lm32_unwind_pc): Delete.
10761 (lm32_dummy_id): Delete.
10762 (lm32_gdbarch_init): Don't register deleted functions with
10763 gdbarch.
10764
10765 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10766
10767 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10768 (iq2000_unwind_pc): Delete.
10769 (iq2000_dummy_id): Delete.
10770 (iq2000_gdbarch_init): Don't register deleted functions with
10771 gdbarch.
10772
10773 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10774
10775 * nds32-tdep.c (nds32_type_align): Delete.
10776 (nds32_push_dummy_call): Use type_align instead.
10777
10778 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10779
10780 * arm-tdep.c (arm_type_align): Only handle vector override case.
10781 (arm_push_dummy_call): Use type_align.
10782 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10783
10784 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10785
10786 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10787 case.
10788 (pass_on_stack): Use type_align.
10789 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10790 function.
10791
10792 2019-04-23 Tom Tromey <tromey@adacore.com>
10793
10794 * dwarf2read.c (line_header::file_name_at): Remove unused
10795 overload.
10796
10797 2019-04-23 Tom de Vries <tdevries@suse.de>
10798
10799 PR gdb/24438
10800 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10801 invocation.
10802
10803
10804 2019-03-27 Ali Tamur <tamur@google.com>
10805
10806 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10807 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10808 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10809 (dwarf_expr_context::get_addr_index): Likewise
10810 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10811 (symbol_needs_eval_context::get_addr_index): Likewise
10812 (disassemble_dwarf_expression): Add DW_OP_addrx
10813 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10814 (read_cutu_die_from_dwo): Update comment
10815 (skip_one_die): Add DW_FORM_addrx
10816 (read_attribute_value): Likewise
10817 (var_decode_location): Add DW_OP_addrx
10818 (dwarf2_const_value_attr): Add DW_FORM_addrx
10819 (dump_die_shallow): Likewise
10820 (dwarf2_fetch_constant_bytes): Likewise
10821 (decode_locdesc): Add DW_OP_addrx
10822 (skip_form_bytes): Add DW_FORM_addrx
10823
10824 2019-04-22 Ali Tamur <tamur@google.com>
10825
10826 * MAINTAINERS (Write After Approval): Add self.
10827
10828 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10829
10830 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10831 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10832 (open_symbol_file_object): Likewise.
10833 (svr4_default_sos): Add info parameter.
10834 (svr4_read_so_list): Likewise.
10835 (svr4_current_sos_direct): Adjust functions calls to pass down
10836 info.
10837 (svr4_current_sos_1): Add info parameter.
10838 (svr4_current_sos): Call get_svr4_info, pass info down to
10839 svr4_current_sos_1.
10840 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10841 get_svr4_info.
10842 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10843 get_svr4_info.
10844 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10845 to get_svr4_info.
10846 (probes_table_remove_objfile_probes): Likewise.
10847 (register_solib_event_probe): Add info parameter.
10848 (solist_update_incremental): Pass info parameter down to
10849 svr4_read_so_list.
10850 (disable_probes_interface): Add info parameter.
10851 (svr4_handle_solib_event): Pass current_program_space to
10852 get_svr4_info. Adjust disable_probes_interface cleanup.
10853 (svr4_create_probe_breakpoints): Add info parameter, pass it
10854 down to register_solib_event_probe.
10855 (svr4_create_solib_event_breakpoints): Add info parameter,
10856 pass it down to svr4_create_probe_breakpoints.
10857 (enable_break): Pass info down to
10858 svr4_create_solib_event_breakpoints.
10859 (svr4_solib_create_inferior_hook): Pass current_program_space to
10860 get_svr4_info.
10861 (svr4_clear_solib): Likewise.
10862
10863 2019-04-22 Pedro Alves <palves@redhat.com>
10864
10865 * solib-svr4.c (svr4_free_objfile_observer): New.
10866 (probe_and_action::objfile): New field.
10867 (probes_table_htab_remove_objfile_probes)
10868 (probes_table_remove_objfile_probes): New functions.
10869 (register_solib_event_probe): Add 'objfile' parameter. Store it
10870 in the new probe_and_action. Don't store the probe in 'lookup'.
10871 (svr4_create_probe_breakpoints): Pass objfile to
10872 register_solib_event_probe.
10873 (_initialize_svr4_solib): Register a free_objfile observer.
10874
10875 2019-04-19 Tom Tromey <tom@tromey.com>
10876
10877 * common/queue.h: Remove.
10878
10879 2019-04-19 Tom Tromey <tom@tromey.com>
10880
10881 * event-loop.c: Don't include "common/queue.h".
10882
10883 2019-04-19 Tom Tromey <tom@tromey.com>
10884
10885 * remote.c (remote_target): Use delete.
10886 * remote-notif.h: Include <list>, not "common/queue.h".
10887 (notif_client_p): Remove typedef.
10888 (remote_notif_state): Add constructor, destructor, initializer.
10889 <notif_queue>: Now a std::list.
10890 (remote_notif_state_xfree): Don't declare.
10891 * remote-notif.c (remote_notif_process, handle_notification)
10892 (remote_notif_state_allocate): Update.
10893 (~remote_notif_state): Rename from remote_notif_state_xfree.
10894
10895 2019-04-19 Tom Tromey <tom@tromey.com>
10896
10897 * symfile.c (reread_symbols): Update.
10898 * objfiles.c (objfile_register_static_link)
10899 (objfile_lookup_static_link): Update
10900 (~objfile) Don't delete static_links.
10901 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10902
10903 2019-04-19 Tom Tromey <tom@tromey.com>
10904
10905 * type-stack.h (struct type_stack) <insert>: Constify string.
10906 * type-stack.c (type_stack::insert): Constify string.
10907 * gdbtypes.h (lookup_template_type): Update.
10908 (address_space_name_to_int): Update.
10909 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10910 const.
10911 (lookup_template_type): Make name const.
10912 * c-exp.y: Update rules.
10913 (lex_one_token, classify_name, classify_inner_name)
10914 (c_print_token): Update.
10915 * p-exp.y: Update rules.
10916 (yylex): Update.
10917 * f-exp.y: Update rules.
10918 (yylex): Update.
10919 * d-exp.y: Update rules.
10920 (lex_one_token, classify_name, classify_inner_name): Update.
10921 * parse.c (write_dollar_variable, copy_name): Return std::string.
10922 * parser-defs.h (copy_name): Change return type.
10923 * m2-exp.y: Update rules.
10924 (yylex): Update.
10925 * go-exp.y (lex_one_token): Update.
10926 Update rules.
10927 (classify_unsafe_function, classify_packaged_name)
10928 (classify_name, yylex): Update.
10929
10930 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10931
10932 * configure.ac: add --enable-source-highlight switch.
10933 * configure: Regenerate.
10934 * top.c (print_gdb_version): plumb --enable-source-highlight
10935 status to "show configuration".
10936
10937 2019-04-19 Tom Tromey <tromey@adacore.com>
10938
10939 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10940 Check ADA_TYPE_P.
10941 (empty_record, ada_template_to_fixed_record_type_1)
10942 (template_to_static_fixed_type)
10943 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10944 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10945 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10946 macros.
10947
10948 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10949
10950 PR symtab/24423:
10951 * source.c (print_source_lines_base): Advance "iter" when a
10952 control character is seen.
10953
10954 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10955
10956 * inferior.h (struct infcall_suspend_state_deleter):
10957 Catch exception in destructor to avoid crash.
10958
10959 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10960
10961 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10962 close to the add_com "shell".
10963
10964 2019-04-18 Tom Tromey <tromey@adacore.com>
10965
10966 * process-stratum-target.h (class process_stratum_target)
10967 <stratum>: Add "final".
10968
10969 2019-04-17 Tom Tromey <tromey@adacore.com>
10970
10971 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10972 against nullptr before use.
10973
10974 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10975
10976 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10977
10978 2019-04-17 Jim Wilson <jimw@sifive.com>
10979 Andrew Burgess <andrew.burgess@embecosm.com>
10980
10981 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10982 code read might fail, assume 4-byte breakpoint in that case.
10983
10984 2019-04-15 Leszek Swirski <leszeks@google.com>
10985
10986 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10987 rather than a hand-rolled POD check when checking for forced MEMORY
10988 classification.
10989
10990 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10991
10992 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10993 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10994 function.
10995 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10996 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10997 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10998 declaration.
10999
11000 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11001
11002 * aarch64-linux-nat.c
11003 (aarch64_linux_nat_target::thread_architecture): Add override.
11004 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11005 each VQ.
11006
11007 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11008
11009 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11010
11011 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11012
11013 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11014 target types of size 96-bits, add some additional comments, and
11015 check that the builtin type we found was the correct size.
11016
11017 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11018
11019 * utils.c (prompt_for_continue): Don't restore the styling at the
11020 end, as applied_style has the wrong value. This fixes styling in
11021 long lists of file names that are interrupted by the "Continue?"
11022 prompt.
11023
11024 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11025
11026 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11027 * c-lang.c (c_language_defn): Likewise.
11028 (cplus_language_defn): Likewise.
11029 (asm_language_defn): Likewise.
11030 (minimal_language_defn): Likewise.
11031 * d-lang.c (d_language_defn): Likewise.
11032 * f-lang.c (f_language_defn): Likewise.
11033 * go-lang.c (go_language_defn): Likewise.
11034 * language.c (unknown_language_defn): Likewise.
11035 (auto_language_defn): Likewise.
11036 * language.h (struct language_defn): Remove la_magic field.
11037 (LANG_MAGIC): Delete.
11038 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11039 * objc-lang.c (objc_language_defn): Likewise.
11040 * opencl-lang.c (opencl_language_defn): Likewise.
11041 * p-lang.c (pascal_language_defn): Likewise.
11042 * rust-lang.c (rust_language_defn): Likewise.
11043
11044 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11045
11046 * riscv-tdep.c (riscv_type_align): New function.
11047 (riscv_type_alignment): Delete.
11048 (riscv_arg_location): Use 'type_align'.
11049 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11050
11051 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11052
11053 * gdbtypes.c (type_align): A struct with no non-static fields also
11054 has alignment of 1.
11055
11056 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11057
11058 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11059 component to 0.
11060 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11061 member.
11062 (riscv_struct_info::analyse): New implementation using new
11063 analyse_inner member function.
11064 (riscv_struct_info::field_offset): New member function.
11065 (riscv_struct_info::m_offsets): New member variable.
11066 (riscv_struct_info::analyse_inner): New private member function,
11067 takes the old implementation of riscv_struct_info::analyse but
11068 extended to track field offsets.
11069 (riscv_call_arg_struct): Update the struct folding special cases
11070 to handle cases where empty C++ structs, which are non-zero
11071 length, are found.
11072 (riscv_arg_location): Initialise the length of each location, a
11073 non-zero length now indicates the location is in use.
11074 (riscv_push_dummy_call): Allow for the first location having a
11075 non-zero offset when setting up arguments.
11076 (riscv_return_value): Likewise, but for return values.
11077
11078 2019-04-11 Tom Tromey <tromey@adacore.com>
11079
11080 * utils.c (internal_vproblem): Make "msg" const.
11081
11082 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11083
11084 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11085 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11086 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11087 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11088
11089 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11090
11091 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11092 function.
11093 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11094 of amd64_collect_native_gregset.
11095 (amd64_linux_nat_target::store_registers): Likewise.
11096
11097 2019-04-10 Tom Tromey <tom@tromey.com>
11098
11099 * symtab.c (lookup_global_symbol_from_objfile)
11100 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11101 * objfiles.h (class separate_debug_iterator): New.
11102 (class separate_debug_range): New.
11103 (struct objfile) <separate_debug_objfiles>: New method.
11104 (objfile_separate_debug_iterate): Don't declare.
11105 * objfiles.c (separate_debug_iterator::operator++): Rename from
11106 objfile_separate_debug_iterate.
11107 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11108 iterator.
11109 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11110 iterator.
11111
11112 2019-04-10 Tom Tromey <tom@tromey.com>
11113
11114 * symfile.c (reread_symbols): Remove old comment.
11115 * objfiles.c (free_all_objfiles): Fix a typo.
11116
11117 2019-04-10 Tom Tromey <tom@tromey.com>
11118
11119 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11120 * minsyms.c (lookup_minimal_symbol): Use foreach.
11121 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11122 (lookup_minimal_symbol_solib_trampoline): Likewise.
11123 * symfile.c (reread_symbols): Use foreach.
11124
11125 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11126 Tom Tromey <tromey@adacore.com>
11127
11128 PR rust/24414:
11129 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11130 (rust_lex_int_test): Change "value" to be LONGEST.
11131 (rust_lex_tests): Add test for long integer literal.
11132
11133 2019-04-09 Tom Tromey <tromey@adacore.com>
11134
11135 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11136 to bool.
11137 (extended_remote_target::attach): Update.
11138 (remote_target::remote_notice_new_inferior): Update.
11139 (remote_target::add_current_inferior_and_thread): Update.
11140 * inferior.c (exit_inferior_1): Use "false".
11141 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11142
11143 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11144
11145 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11146 the "start" command.
11147
11148 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11149
11150 * python/py-inferior.c (infpy_thread_from_thread_handle):
11151 Adjust comments to reflect renaming of thread_from_thread_handle
11152 to thread_from_handle. Adjust keywords. Fix type error message.
11153 (inferior_object_methods): Add thread_from_handle. Retain
11154 thread_from_thread_handle, but mark it as deprecated.
11155
11156 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11157
11158 * gdbthread.h (find_thread_by_handle): Revise declaration.
11159 * thread.c (find_thread_by_handle): Likewise. Adjust
11160 implementation too.
11161 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11162 support for buffer objects as handles.
11163
11164 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11165
11166 * python/py-infthread.c (thpy_thread_handle): New function.
11167 (thread_object_methods): Register thpy_thread_handle.
11168
11169 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11170
11171 * gdbthread.h (thread_to_thread_handle): Declare.
11172 * thread.c (gdbtypes.h): Include.
11173 (thread_to_thread_handle): New function.
11174
11175 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11176 (target_thread_info_to_thread_handle): Declare.
11177 * target.c (target_thread_info_to_thread_handle): New function.
11178 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11179 * target-delegates.c: Regenerate.
11180
11181 * linux-thread-db.c (class thread_db_target): Add method
11182 thread_info_to_thread_handle.
11183 (thread_db_target::thread_info_to_thread_handle): Define.
11184 * remote.c (class remote_target): Add new method
11185 thread_info_to_thread_handle.
11186 (remote_target::thread_info_to_thread_handle): Define.
11187
11188 2019-04-08 Pedro Alves <palves@redhat.com>
11189
11190 * common/common-exceptions.c (throw_exception): Don't create
11191 named object to throw; throw directly.
11192 (throw_it): Likewise. Don't initialize gdb_exception::message
11193 here, with new; pass FMT and AP to the ctor instead.
11194 * common/common-exceptions.h: Include <string>.
11195 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11196 const char *, va_list)): New ctor. Use std::make_shared.
11197 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11198 errors)): Delete.
11199 (gdb_exception_error::gdb_exception_error(enum errors, const char
11200 *, va_list)): New.
11201 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11202 Add assertion.
11203 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11204 errors)): Delete.
11205 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11206 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11207 Add assertion.
11208
11209 2019-04-08 Tom Tromey <tom@tromey.com>
11210
11211 * valops.c (value_rtti_indirect_type): Replace throw_exception
11212 with throw.
11213 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11214 with throw.
11215 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11216 throw.
11217 * target.c (target_translate_tls_address): Replace throw_exception
11218 with throw.
11219 * stack.c (frame_apply_command_count): Replace throw_exception
11220 with throw.
11221 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11222 throw.
11223 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11224 with throw.
11225 * rs6000-tdep.c (rs6000_frame_cache)
11226 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11227 * remote.c: Replace throw_exception with throw.
11228 * record-full.c (record_full_message, record_full_wait_1)
11229 (record_full_restore): Replace throw_exception with throw.
11230 * record-btrace.c:
11231 (get_thread_current_frame_id, record_btrace_start_replaying)
11232 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11233 (cmd_record_btrace_start): Replace throw_exception with throw.
11234 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11235 throw.
11236 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11237 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11238 * linespec.c:
11239 (find_linespec_symbols): Replace throw_exception with throw.
11240 * infrun.c (displaced_step_prepare, resume): Replace
11241 throw_exception with throw.
11242 * infcmd.c (post_create_inferior): Replace throw_exception with
11243 throw.
11244 * inf-loop.c (inferior_event_handler): Replace throw_exception
11245 with throw.
11246 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11247 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11248 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11249 (get_prev_frame_always, get_frame_pc_if_available)
11250 (get_frame_address_in_block_if_available, get_frame_language):
11251 Replace throw_exception with throw.
11252 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11253 throw_exception with throw.
11254 * eval.c (fetch_subexp_value, evaluate_var_value)
11255 (evaluate_funcall, evaluate_subexp_standard): Replace
11256 throw_exception with throw.
11257 * dwarf2loc.c (call_site_find_chain)
11258 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11259 Replace throw_exception with throw.
11260 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11261 with throw.
11262 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11263 throw.
11264 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11265 * completer.c (complete_line_internal): Replace throw_exception
11266 with throw.
11267 * compile/compile-object-run.c (compile_object_run): Replace
11268 throw_exception with throw.
11269 * cli/cli-script.c (process_next_line): Replace throw_exception
11270 with throw.
11271 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11272 (btrace_enable, btrace_maint_update_pt_packets): Replace
11273 throw_exception with throw.
11274 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11275 throw_exception with throw.
11276 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11277 throw_exception with throw.
11278 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11279 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11280 * aarch64-tdep.c (aarch64_make_prologue_cache)
11281 (aarch64_make_stub_cache): Replace throw_exception with throw.
11282
11283 2019-04-08 Tom Tromey <tom@tromey.com>
11284
11285 * common/common-exceptions.c (throw_exception): Rename from
11286 throw_exception_cxx. Remove old copy. Make argument const.
11287 (throw_it): Create and throw exception objects directly.
11288 * common/common-exceptions.h (throw_exception): Make argument
11289 const.
11290 (struct gdb_exception_error): Add constructor.
11291 (struct gdb_exception_quit): Add constructor.
11292
11293 2019-04-08 Tom Tromey <tom@tromey.com>
11294
11295 * common/common-exceptions.h (exception_rethrow): Don't declare.
11296 (TRY_SJLJ): Update comment.
11297 (TRY, CATCH, END_CATCH): Remove.
11298 * common/common-exceptions.c (exception_rethrow): Remove.
11299
11300 2019-04-08 Tom Tromey <tom@tromey.com>
11301
11302 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11303 Remove.
11304 (gdb_exception_error): Rename from
11305 gdb_exception_RETURN_MASK_ERROR.
11306 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11307 (gdb_quit_bad_alloc): Update.
11308 * aarch64-tdep.c: Update.
11309 * ada-lang.c: Update.
11310 * ada-typeprint.c: Update.
11311 * ada-valprint.c: Update.
11312 * amd64-tdep.c: Update.
11313 * arch-utils.c: Update.
11314 * break-catch-throw.c: Update.
11315 * breakpoint.c: Update.
11316 * btrace.c: Update.
11317 * c-varobj.c: Update.
11318 * cli/cli-cmds.c: Update.
11319 * cli/cli-interp.c: Update.
11320 * cli/cli-script.c: Update.
11321 * common/common-exceptions.c: Update.
11322 * common/new-op.c: Update.
11323 * common/selftest.c: Update.
11324 * compile/compile-c-symbols.c: Update.
11325 * compile/compile-cplus-symbols.c: Update.
11326 * compile/compile-object-load.c: Update.
11327 * compile/compile-object-run.c: Update.
11328 * completer.c: Update.
11329 * corelow.c: Update.
11330 * cp-abi.c: Update.
11331 * cp-support.c: Update.
11332 * cp-valprint.c: Update.
11333 * darwin-nat.c: Update.
11334 * disasm-selftests.c: Update.
11335 * dtrace-probe.c: Update.
11336 * dwarf-index-cache.c: Update.
11337 * dwarf-index-write.c: Update.
11338 * dwarf2-frame-tailcall.c: Update.
11339 * dwarf2-frame.c: Update.
11340 * dwarf2loc.c: Update.
11341 * dwarf2read.c: Update.
11342 * eval.c: Update.
11343 * event-loop.c: Update.
11344 * event-top.c: Update.
11345 * exec.c: Update.
11346 * f-valprint.c: Update.
11347 * fbsd-tdep.c: Update.
11348 * frame-unwind.c: Update.
11349 * frame.c: Update.
11350 * gdbtypes.c: Update.
11351 * gnu-v3-abi.c: Update.
11352 * guile/guile-internal.h: Update.
11353 * guile/scm-block.c: Update.
11354 * guile/scm-breakpoint.c: Update.
11355 * guile/scm-cmd.c: Update.
11356 * guile/scm-disasm.c: Update.
11357 * guile/scm-frame.c: Update.
11358 * guile/scm-lazy-string.c: Update.
11359 * guile/scm-math.c: Update.
11360 * guile/scm-param.c: Update.
11361 * guile/scm-ports.c: Update.
11362 * guile/scm-pretty-print.c: Update.
11363 * guile/scm-symbol.c: Update.
11364 * guile/scm-symtab.c: Update.
11365 * guile/scm-type.c: Update.
11366 * guile/scm-value.c: Update.
11367 * i386-linux-tdep.c: Update.
11368 * i386-tdep.c: Update.
11369 * inf-loop.c: Update.
11370 * infcall.c: Update.
11371 * infcmd.c: Update.
11372 * infrun.c: Update.
11373 * jit.c: Update.
11374 * language.c: Update.
11375 * linespec.c: Update.
11376 * linux-fork.c: Update.
11377 * linux-nat.c: Update.
11378 * linux-tdep.c: Update.
11379 * linux-thread-db.c: Update.
11380 * main.c: Update.
11381 * mi/mi-cmd-break.c: Update.
11382 * mi/mi-cmd-stack.c: Update.
11383 * mi/mi-interp.c: Update.
11384 * mi/mi-main.c: Update.
11385 * objc-lang.c: Update.
11386 * p-valprint.c: Update.
11387 * parse.c: Update.
11388 * ppc-linux-tdep.c: Update.
11389 * printcmd.c: Update.
11390 * python/py-arch.c: Update.
11391 * python/py-breakpoint.c: Update.
11392 * python/py-cmd.c: Update.
11393 * python/py-finishbreakpoint.c: Update.
11394 * python/py-frame.c: Update.
11395 * python/py-framefilter.c: Update.
11396 * python/py-gdb-readline.c: Update.
11397 * python/py-inferior.c: Update.
11398 * python/py-infthread.c: Update.
11399 * python/py-lazy-string.c: Update.
11400 * python/py-linetable.c: Update.
11401 * python/py-objfile.c: Update.
11402 * python/py-param.c: Update.
11403 * python/py-prettyprint.c: Update.
11404 * python/py-progspace.c: Update.
11405 * python/py-record-btrace.c: Update.
11406 * python/py-record.c: Update.
11407 * python/py-symbol.c: Update.
11408 * python/py-type.c: Update.
11409 * python/py-unwind.c: Update.
11410 * python/py-utils.c: Update.
11411 * python/py-value.c: Update.
11412 * python/python.c: Update.
11413 * record-btrace.c: Update.
11414 * record-full.c: Update.
11415 * remote-fileio.c: Update.
11416 * remote.c: Update.
11417 * riscv-tdep.c: Update.
11418 * rs6000-aix-tdep.c: Update.
11419 * rs6000-tdep.c: Update.
11420 * rust-exp.y: Update.
11421 * rust-lang.c: Update.
11422 * s390-tdep.c: Update.
11423 * selftest-arch.c: Update.
11424 * solib-dsbt.c: Update.
11425 * solib-frv.c: Update.
11426 * solib-spu.c: Update.
11427 * solib-svr4.c: Update.
11428 * solib.c: Update.
11429 * sparc64-linux-tdep.c: Update.
11430 * stack.c: Update.
11431 * symfile-mem.c: Update.
11432 * symmisc.c: Update.
11433 * target.c: Update.
11434 * thread.c: Update.
11435 * top.c: Update.
11436 * tracefile-tfile.c: Update.
11437 * tui/tui.c: Update.
11438 * typeprint.c: Update.
11439 * unittests/cli-utils-selftests.c: Update.
11440 * unittests/parse-connection-spec-selftests.c: Update.
11441 * valops.c: Update.
11442 * valprint.c: Update.
11443 * value.c: Update.
11444 * varobj.c: Update.
11445 * windows-nat.c: Update.
11446 * x86-linux-nat.c: Update.
11447 * xml-support.c: Update.
11448
11449 2019-04-08 Tom Tromey <tom@tromey.com>
11450
11451 * xml-support.c: Use C++ exception handling.
11452 * x86-linux-nat.c: Use C++ exception handling.
11453 * windows-nat.c: Use C++ exception handling.
11454 * varobj.c: Use C++ exception handling.
11455 * value.c: Use C++ exception handling.
11456 * valprint.c: Use C++ exception handling.
11457 * valops.c: Use C++ exception handling.
11458 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11459 handling.
11460 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11461 * typeprint.c: Use C++ exception handling.
11462 * tui/tui.c: Use C++ exception handling.
11463 * tracefile-tfile.c: Use C++ exception handling.
11464 * top.c: Use C++ exception handling.
11465 * thread.c: Use C++ exception handling.
11466 * target.c: Use C++ exception handling.
11467 * symmisc.c: Use C++ exception handling.
11468 * symfile-mem.c: Use C++ exception handling.
11469 * stack.c: Use C++ exception handling.
11470 * sparc64-linux-tdep.c: Use C++ exception handling.
11471 * solib.c: Use C++ exception handling.
11472 * solib-svr4.c: Use C++ exception handling.
11473 * solib-spu.c: Use C++ exception handling.
11474 * solib-frv.c: Use C++ exception handling.
11475 * solib-dsbt.c: Use C++ exception handling.
11476 * selftest-arch.c: Use C++ exception handling.
11477 * s390-tdep.c: Use C++ exception handling.
11478 * rust-lang.c: Use C++ exception handling.
11479 * rust-exp.y: Use C++ exception handling.
11480 * rs6000-tdep.c: Use C++ exception handling.
11481 * rs6000-aix-tdep.c: Use C++ exception handling.
11482 * riscv-tdep.c: Use C++ exception handling.
11483 * remote.c: Use C++ exception handling.
11484 * remote-fileio.c: Use C++ exception handling.
11485 * record-full.c: Use C++ exception handling.
11486 * record-btrace.c: Use C++ exception handling.
11487 * python/python.c: Use C++ exception handling.
11488 * python/py-value.c: Use C++ exception handling.
11489 * python/py-utils.c: Use C++ exception handling.
11490 * python/py-unwind.c: Use C++ exception handling.
11491 * python/py-type.c: Use C++ exception handling.
11492 * python/py-symbol.c: Use C++ exception handling.
11493 * python/py-record.c: Use C++ exception handling.
11494 * python/py-record-btrace.c: Use C++ exception handling.
11495 * python/py-progspace.c: Use C++ exception handling.
11496 * python/py-prettyprint.c: Use C++ exception handling.
11497 * python/py-param.c: Use C++ exception handling.
11498 * python/py-objfile.c: Use C++ exception handling.
11499 * python/py-linetable.c: Use C++ exception handling.
11500 * python/py-lazy-string.c: Use C++ exception handling.
11501 * python/py-infthread.c: Use C++ exception handling.
11502 * python/py-inferior.c: Use C++ exception handling.
11503 * python/py-gdb-readline.c: Use C++ exception handling.
11504 * python/py-framefilter.c: Use C++ exception handling.
11505 * python/py-frame.c: Use C++ exception handling.
11506 * python/py-finishbreakpoint.c: Use C++ exception handling.
11507 * python/py-cmd.c: Use C++ exception handling.
11508 * python/py-breakpoint.c: Use C++ exception handling.
11509 * python/py-arch.c: Use C++ exception handling.
11510 * printcmd.c: Use C++ exception handling.
11511 * ppc-linux-tdep.c: Use C++ exception handling.
11512 * parse.c: Use C++ exception handling.
11513 * p-valprint.c: Use C++ exception handling.
11514 * objc-lang.c: Use C++ exception handling.
11515 * mi/mi-main.c: Use C++ exception handling.
11516 * mi/mi-interp.c: Use C++ exception handling.
11517 * mi/mi-cmd-stack.c: Use C++ exception handling.
11518 * mi/mi-cmd-break.c: Use C++ exception handling.
11519 * main.c: Use C++ exception handling.
11520 * linux-thread-db.c: Use C++ exception handling.
11521 * linux-tdep.c: Use C++ exception handling.
11522 * linux-nat.c: Use C++ exception handling.
11523 * linux-fork.c: Use C++ exception handling.
11524 * linespec.c: Use C++ exception handling.
11525 * language.c: Use C++ exception handling.
11526 * jit.c: Use C++ exception handling.
11527 * infrun.c: Use C++ exception handling.
11528 * infcmd.c: Use C++ exception handling.
11529 * infcall.c: Use C++ exception handling.
11530 * inf-loop.c: Use C++ exception handling.
11531 * i386-tdep.c: Use C++ exception handling.
11532 * i386-linux-tdep.c: Use C++ exception handling.
11533 * guile/scm-value.c: Use C++ exception handling.
11534 * guile/scm-type.c: Use C++ exception handling.
11535 * guile/scm-symtab.c: Use C++ exception handling.
11536 * guile/scm-symbol.c: Use C++ exception handling.
11537 * guile/scm-pretty-print.c: Use C++ exception handling.
11538 * guile/scm-ports.c: Use C++ exception handling.
11539 * guile/scm-param.c: Use C++ exception handling.
11540 * guile/scm-math.c: Use C++ exception handling.
11541 * guile/scm-lazy-string.c: Use C++ exception handling.
11542 * guile/scm-frame.c: Use C++ exception handling.
11543 * guile/scm-disasm.c: Use C++ exception handling.
11544 * guile/scm-cmd.c: Use C++ exception handling.
11545 * guile/scm-breakpoint.c: Use C++ exception handling.
11546 * guile/scm-block.c: Use C++ exception handling.
11547 * guile/guile-internal.h: Use C++ exception handling.
11548 * gnu-v3-abi.c: Use C++ exception handling.
11549 * gdbtypes.c: Use C++ exception handling.
11550 * frame.c: Use C++ exception handling.
11551 * frame-unwind.c: Use C++ exception handling.
11552 * fbsd-tdep.c: Use C++ exception handling.
11553 * f-valprint.c: Use C++ exception handling.
11554 * exec.c: Use C++ exception handling.
11555 * event-top.c: Use C++ exception handling.
11556 * event-loop.c: Use C++ exception handling.
11557 * eval.c: Use C++ exception handling.
11558 * dwarf2read.c: Use C++ exception handling.
11559 * dwarf2loc.c: Use C++ exception handling.
11560 * dwarf2-frame.c: Use C++ exception handling.
11561 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11562 * dwarf-index-write.c: Use C++ exception handling.
11563 * dwarf-index-cache.c: Use C++ exception handling.
11564 * dtrace-probe.c: Use C++ exception handling.
11565 * disasm-selftests.c: Use C++ exception handling.
11566 * darwin-nat.c: Use C++ exception handling.
11567 * cp-valprint.c: Use C++ exception handling.
11568 * cp-support.c: Use C++ exception handling.
11569 * cp-abi.c: Use C++ exception handling.
11570 * corelow.c: Use C++ exception handling.
11571 * completer.c: Use C++ exception handling.
11572 * compile/compile-object-run.c: Use C++ exception handling.
11573 * compile/compile-object-load.c: Use C++ exception handling.
11574 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11575 * compile/compile-c-symbols.c: Use C++ exception handling.
11576 * common/selftest.c: Use C++ exception handling.
11577 * common/new-op.c: Use C++ exception handling.
11578 * cli/cli-script.c: Use C++ exception handling.
11579 * cli/cli-interp.c: Use C++ exception handling.
11580 * cli/cli-cmds.c: Use C++ exception handling.
11581 * c-varobj.c: Use C++ exception handling.
11582 * btrace.c: Use C++ exception handling.
11583 * breakpoint.c: Use C++ exception handling.
11584 * break-catch-throw.c: Use C++ exception handling.
11585 * arch-utils.c: Use C++ exception handling.
11586 * amd64-tdep.c: Use C++ exception handling.
11587 * ada-valprint.c: Use C++ exception handling.
11588 * ada-typeprint.c: Use C++ exception handling.
11589 * ada-lang.c: Use C++ exception handling.
11590 * aarch64-tdep.c: Use C++ exception handling.
11591
11592 2019-04-08 Tom Tromey <tom@tromey.com>
11593
11594 * xml-support.c (gdb_xml_parser::parse): Update.
11595 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11596 * value.c (show_convenience): Update.
11597 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11598 (test_parse_flags_qcs): Update.
11599 * thread.c (thr_try_catch_cmd): Update.
11600 * target.c (target_translate_tls_address): Update.
11601 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11602 (info_frame_command_core, frame_apply_command_count): Update.
11603 * rust-exp.y (rust_lex_exception_test): Update.
11604 * riscv-tdep.c (riscv_print_one_register_info): Update.
11605 * remote.c (remote_target::enable_btrace): Update.
11606 * record-btrace.c (record_btrace_enable_warn): Update.
11607 * python/py-utils.c (gdbpy_convert_exception): Update.
11608 * printcmd.c (do_one_display, print_variable_and_value): Update.
11609 * mi/mi-main.c (mi_print_exception): Update.
11610 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11611 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11612 * linux-nat.c (linux_nat_target::attach): Update.
11613 * linux-fork.c (class scoped_switch_fork_info): Update.
11614 * infrun.c (displaced_step_prepare): Update.
11615 * infcall.c (call_function_by_hand_dummy): Update.
11616 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11617 * gnu-v3-abi.c (print_one_vtable): Update.
11618 * frame.c (get_prev_frame_always): Update.
11619 * f-valprint.c (info_common_command_for_block): Update.
11620 * exec.c (try_open_exec_file): Update.
11621 * exceptions.c (print_exception, exception_print)
11622 (exception_fprintf, exception_print_same): Update.
11623 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11624 * dwarf-index-cache.c (index_cache::store)
11625 (index_cache::lookup_gdb_index): Update.
11626 * darwin-nat.c (maybe_cache_shell): Update.
11627 * cp-valprint.c (cp_print_value_fields): Update.
11628 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11629 (gcc_cplus_symbol_address): Update.
11630 * compile/compile-c-symbols.c (gcc_convert_symbol)
11631 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11632 * common/selftest.c: Update.
11633 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11634 a std::string.
11635 (exception_try_scope_entry, exception_try_scope_exit): Don't
11636 declare.
11637 (struct exception_try_scope): Remove.
11638 (TRY): Don't use exception_try_scope.
11639 (struct gdb_exception): Add constructor, operator=.
11640 <what>: New method.
11641 (struct gdb_exception_RETURN_MASK_ALL)
11642 (struct gdb_exception_RETURN_MASK_ERROR)
11643 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11644 (struct gdb_quit_bad_alloc): Update.
11645 * common/common-exceptions.c (exception_none): Change
11646 initializer.
11647 (struct catcher) <state, exception>: Initialize inline.
11648 <prev>: Remove member.
11649 (current_catcher): Remove.
11650 (catchers): New global.
11651 (exceptions_state_mc_init): Simplify.
11652 (catcher_pop): Remove.
11653 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11654 (try_scope_depth, exception_try_scope_entry)
11655 (exception_try_scope_exit): Remove.
11656 (throw_exception_sjlj): Update.
11657 (exception_messages, exception_messages_size): Remove.
11658 (throw_it): Simplify.
11659 (gdb_exception_sliced_copy): Remove.
11660 (throw_exception_cxx): Update.
11661 * cli/cli-script.c (script_from_file): Update.
11662 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11663 Update.
11664 * ada-valprint.c (ada_val_print): Update.
11665 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11666 (create_excep_cond_exprs): Update.
11667
11668 2019-04-08 Tom Tromey <tom@tromey.com>
11669
11670 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11671 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11672 (TRY, CATCH, END_CATCH): Remove some definitions.
11673 * common/common-exceptions.c: Don't use GDB_XCPT.
11674 (catcher_list_size): Remove.
11675 (throw_exception, throw_it): Simplify.
11676
11677 2019-04-05 Tom Tromey <tom@tromey.com>
11678
11679 Revert the header-sorting patch.
11680 * ft32-tdep.c: Revert.
11681 * frv-tdep.c: Revert.
11682 * frv-linux-tdep.c: Revert.
11683 * frame.c: Revert.
11684 * frame-unwind.c: Revert.
11685 * frame-base.c: Revert.
11686 * fork-child.c: Revert.
11687 * findvar.c: Revert.
11688 * findcmd.c: Revert.
11689 * filesystem.c: Revert.
11690 * filename-seen-cache.h: Revert.
11691 * filename-seen-cache.c: Revert.
11692 * fbsd-tdep.c: Revert.
11693 * fbsd-nat.h: Revert.
11694 * fbsd-nat.c: Revert.
11695 * f-valprint.c: Revert.
11696 * f-typeprint.c: Revert.
11697 * f-lang.c: Revert.
11698 * extension.h: Revert.
11699 * extension.c: Revert.
11700 * extension-priv.h: Revert.
11701 * expprint.c: Revert.
11702 * exec.h: Revert.
11703 * exec.c: Revert.
11704 * exceptions.c: Revert.
11705 * event-top.c: Revert.
11706 * event-loop.c: Revert.
11707 * eval.c: Revert.
11708 * elfread.c: Revert.
11709 * dwarf2read.h: Revert.
11710 * dwarf2read.c: Revert.
11711 * dwarf2loc.c: Revert.
11712 * dwarf2expr.h: Revert.
11713 * dwarf2expr.c: Revert.
11714 * dwarf2-frame.c: Revert.
11715 * dwarf2-frame-tailcall.c: Revert.
11716 * dwarf-index-write.h: Revert.
11717 * dwarf-index-write.c: Revert.
11718 * dwarf-index-common.c: Revert.
11719 * dwarf-index-cache.h: Revert.
11720 * dwarf-index-cache.c: Revert.
11721 * dummy-frame.c: Revert.
11722 * dtrace-probe.c: Revert.
11723 * disasm.h: Revert.
11724 * disasm.c: Revert.
11725 * disasm-selftests.c: Revert.
11726 * dictionary.c: Revert.
11727 * dicos-tdep.c: Revert.
11728 * demangle.c: Revert.
11729 * dcache.h: Revert.
11730 * dcache.c: Revert.
11731 * darwin-nat.h: Revert.
11732 * darwin-nat.c: Revert.
11733 * darwin-nat-info.c: Revert.
11734 * d-valprint.c: Revert.
11735 * d-namespace.c: Revert.
11736 * d-lang.c: Revert.
11737 * ctf.c: Revert.
11738 * csky-tdep.c: Revert.
11739 * csky-linux-tdep.c: Revert.
11740 * cris-tdep.c: Revert.
11741 * cris-linux-tdep.c: Revert.
11742 * cp-valprint.c: Revert.
11743 * cp-support.c: Revert.
11744 * cp-namespace.c: Revert.
11745 * cp-abi.c: Revert.
11746 * corelow.c: Revert.
11747 * corefile.c: Revert.
11748 * continuations.c: Revert.
11749 * completer.h: Revert.
11750 * completer.c: Revert.
11751 * complaints.c: Revert.
11752 * coffread.c: Revert.
11753 * coff-pe-read.c: Revert.
11754 * cli-out.h: Revert.
11755 * cli-out.c: Revert.
11756 * charset.c: Revert.
11757 * c-varobj.c: Revert.
11758 * c-valprint.c: Revert.
11759 * c-typeprint.c: Revert.
11760 * c-lang.c: Revert.
11761 * buildsym.c: Revert.
11762 * buildsym-legacy.c: Revert.
11763 * build-id.h: Revert.
11764 * build-id.c: Revert.
11765 * btrace.c: Revert.
11766 * bsd-uthread.c: Revert.
11767 * breakpoint.h: Revert.
11768 * breakpoint.c: Revert.
11769 * break-catch-throw.c: Revert.
11770 * break-catch-syscall.c: Revert.
11771 * break-catch-sig.c: Revert.
11772 * blockframe.c: Revert.
11773 * block.c: Revert.
11774 * bfin-tdep.c: Revert.
11775 * bfin-linux-tdep.c: Revert.
11776 * bfd-target.c: Revert.
11777 * bcache.c: Revert.
11778 * ax-general.c: Revert.
11779 * ax-gdb.h: Revert.
11780 * ax-gdb.c: Revert.
11781 * avr-tdep.c: Revert.
11782 * auxv.c: Revert.
11783 * auto-load.c: Revert.
11784 * arm-wince-tdep.c: Revert.
11785 * arm-tdep.c: Revert.
11786 * arm-symbian-tdep.c: Revert.
11787 * arm-pikeos-tdep.c: Revert.
11788 * arm-obsd-tdep.c: Revert.
11789 * arm-nbsd-tdep.c: Revert.
11790 * arm-nbsd-nat.c: Revert.
11791 * arm-linux-tdep.c: Revert.
11792 * arm-linux-nat.c: Revert.
11793 * arm-fbsd-tdep.c: Revert.
11794 * arm-fbsd-nat.c: Revert.
11795 * arm-bsd-tdep.c: Revert.
11796 * arch-utils.c: Revert.
11797 * arc-tdep.c: Revert.
11798 * arc-newlib-tdep.c: Revert.
11799 * annotate.h: Revert.
11800 * annotate.c: Revert.
11801 * amd64-windows-tdep.c: Revert.
11802 * amd64-windows-nat.c: Revert.
11803 * amd64-tdep.c: Revert.
11804 * amd64-sol2-tdep.c: Revert.
11805 * amd64-obsd-tdep.c: Revert.
11806 * amd64-obsd-nat.c: Revert.
11807 * amd64-nbsd-tdep.c: Revert.
11808 * amd64-nbsd-nat.c: Revert.
11809 * amd64-nat.c: Revert.
11810 * amd64-linux-tdep.c: Revert.
11811 * amd64-linux-nat.c: Revert.
11812 * amd64-fbsd-tdep.c: Revert.
11813 * amd64-fbsd-nat.c: Revert.
11814 * amd64-dicos-tdep.c: Revert.
11815 * amd64-darwin-tdep.c: Revert.
11816 * amd64-bsd-nat.c: Revert.
11817 * alpha-tdep.c: Revert.
11818 * alpha-obsd-tdep.c: Revert.
11819 * alpha-nbsd-tdep.c: Revert.
11820 * alpha-mdebug-tdep.c: Revert.
11821 * alpha-linux-tdep.c: Revert.
11822 * alpha-linux-nat.c: Revert.
11823 * alpha-bsd-tdep.c: Revert.
11824 * alpha-bsd-nat.c: Revert.
11825 * aix-thread.c: Revert.
11826 * agent.c: Revert.
11827 * addrmap.c: Revert.
11828 * ada-varobj.c: Revert.
11829 * ada-valprint.c: Revert.
11830 * ada-typeprint.c: Revert.
11831 * ada-tasks.c: Revert.
11832 * ada-lang.c: Revert.
11833 * aarch64-tdep.c: Revert.
11834 * aarch64-ravenscar-thread.c: Revert.
11835 * aarch64-newlib-tdep.c: Revert.
11836 * aarch64-linux-tdep.c: Revert.
11837 * aarch64-linux-nat.c: Revert.
11838 * aarch64-fbsd-tdep.c: Revert.
11839 * aarch64-fbsd-nat.c: Revert.
11840 * aarch32-linux-nat.c: Revert.
11841
11842 2019-04-05 Tom Tromey <tom@tromey.com>
11843
11844 * ft32-tdep.c: Sort headers.
11845 * frv-tdep.c: Sort headers.
11846 * frv-linux-tdep.c: Sort headers.
11847 * frame.c: Sort headers.
11848 * frame-unwind.c: Sort headers.
11849 * frame-base.c: Sort headers.
11850 * fork-child.c: Sort headers.
11851 * findvar.c: Sort headers.
11852 * findcmd.c: Sort headers.
11853 * filesystem.c: Sort headers.
11854 * filename-seen-cache.h: Sort headers.
11855 * filename-seen-cache.c: Sort headers.
11856 * fbsd-tdep.c: Sort headers.
11857 * fbsd-nat.h: Sort headers.
11858 * fbsd-nat.c: Sort headers.
11859 * f-valprint.c: Sort headers.
11860 * f-typeprint.c: Sort headers.
11861 * f-lang.c: Sort headers.
11862 * extension.h: Sort headers.
11863 * extension.c: Sort headers.
11864 * extension-priv.h: Sort headers.
11865 * expprint.c: Sort headers.
11866 * exec.h: Sort headers.
11867 * exec.c: Sort headers.
11868 * exceptions.c: Sort headers.
11869 * event-top.c: Sort headers.
11870 * event-loop.c: Sort headers.
11871 * eval.c: Sort headers.
11872 * elfread.c: Sort headers.
11873 * dwarf2read.h: Sort headers.
11874 * dwarf2read.c: Sort headers.
11875 * dwarf2loc.c: Sort headers.
11876 * dwarf2expr.h: Sort headers.
11877 * dwarf2expr.c: Sort headers.
11878 * dwarf2-frame.c: Sort headers.
11879 * dwarf2-frame-tailcall.c: Sort headers.
11880 * dwarf-index-write.h: Sort headers.
11881 * dwarf-index-write.c: Sort headers.
11882 * dwarf-index-common.c: Sort headers.
11883 * dwarf-index-cache.h: Sort headers.
11884 * dwarf-index-cache.c: Sort headers.
11885 * dummy-frame.c: Sort headers.
11886 * dtrace-probe.c: Sort headers.
11887 * disasm.h: Sort headers.
11888 * disasm.c: Sort headers.
11889 * disasm-selftests.c: Sort headers.
11890 * dictionary.c: Sort headers.
11891 * dicos-tdep.c: Sort headers.
11892 * demangle.c: Sort headers.
11893 * dcache.h: Sort headers.
11894 * dcache.c: Sort headers.
11895 * darwin-nat.h: Sort headers.
11896 * darwin-nat.c: Sort headers.
11897 * darwin-nat-info.c: Sort headers.
11898 * d-valprint.c: Sort headers.
11899 * d-namespace.c: Sort headers.
11900 * d-lang.c: Sort headers.
11901 * ctf.c: Sort headers.
11902 * csky-tdep.c: Sort headers.
11903 * csky-linux-tdep.c: Sort headers.
11904 * cris-tdep.c: Sort headers.
11905 * cris-linux-tdep.c: Sort headers.
11906 * cp-valprint.c: Sort headers.
11907 * cp-support.c: Sort headers.
11908 * cp-namespace.c: Sort headers.
11909 * cp-abi.c: Sort headers.
11910 * corelow.c: Sort headers.
11911 * corefile.c: Sort headers.
11912 * continuations.c: Sort headers.
11913 * completer.h: Sort headers.
11914 * completer.c: Sort headers.
11915 * complaints.c: Sort headers.
11916 * coffread.c: Sort headers.
11917 * coff-pe-read.c: Sort headers.
11918 * cli-out.h: Sort headers.
11919 * cli-out.c: Sort headers.
11920 * charset.c: Sort headers.
11921 * c-varobj.c: Sort headers.
11922 * c-valprint.c: Sort headers.
11923 * c-typeprint.c: Sort headers.
11924 * c-lang.c: Sort headers.
11925 * buildsym.c: Sort headers.
11926 * buildsym-legacy.c: Sort headers.
11927 * build-id.h: Sort headers.
11928 * build-id.c: Sort headers.
11929 * btrace.c: Sort headers.
11930 * bsd-uthread.c: Sort headers.
11931 * breakpoint.h: Sort headers.
11932 * breakpoint.c: Sort headers.
11933 * break-catch-throw.c: Sort headers.
11934 * break-catch-syscall.c: Sort headers.
11935 * break-catch-sig.c: Sort headers.
11936 * blockframe.c: Sort headers.
11937 * block.c: Sort headers.
11938 * bfin-tdep.c: Sort headers.
11939 * bfin-linux-tdep.c: Sort headers.
11940 * bfd-target.c: Sort headers.
11941 * bcache.c: Sort headers.
11942 * ax-general.c: Sort headers.
11943 * ax-gdb.h: Sort headers.
11944 * ax-gdb.c: Sort headers.
11945 * avr-tdep.c: Sort headers.
11946 * auxv.c: Sort headers.
11947 * auto-load.c: Sort headers.
11948 * arm-wince-tdep.c: Sort headers.
11949 * arm-tdep.c: Sort headers.
11950 * arm-symbian-tdep.c: Sort headers.
11951 * arm-pikeos-tdep.c: Sort headers.
11952 * arm-obsd-tdep.c: Sort headers.
11953 * arm-nbsd-tdep.c: Sort headers.
11954 * arm-nbsd-nat.c: Sort headers.
11955 * arm-linux-tdep.c: Sort headers.
11956 * arm-linux-nat.c: Sort headers.
11957 * arm-fbsd-tdep.c: Sort headers.
11958 * arm-fbsd-nat.c: Sort headers.
11959 * arm-bsd-tdep.c: Sort headers.
11960 * arch-utils.c: Sort headers.
11961 * arc-tdep.c: Sort headers.
11962 * arc-newlib-tdep.c: Sort headers.
11963 * annotate.h: Sort headers.
11964 * annotate.c: Sort headers.
11965 * amd64-windows-tdep.c: Sort headers.
11966 * amd64-windows-nat.c: Sort headers.
11967 * amd64-tdep.c: Sort headers.
11968 * amd64-sol2-tdep.c: Sort headers.
11969 * amd64-obsd-tdep.c: Sort headers.
11970 * amd64-obsd-nat.c: Sort headers.
11971 * amd64-nbsd-tdep.c: Sort headers.
11972 * amd64-nbsd-nat.c: Sort headers.
11973 * amd64-nat.c: Sort headers.
11974 * amd64-linux-tdep.c: Sort headers.
11975 * amd64-linux-nat.c: Sort headers.
11976 * amd64-fbsd-tdep.c: Sort headers.
11977 * amd64-fbsd-nat.c: Sort headers.
11978 * amd64-dicos-tdep.c: Sort headers.
11979 * amd64-darwin-tdep.c: Sort headers.
11980 * amd64-bsd-nat.c: Sort headers.
11981 * alpha-tdep.c: Sort headers.
11982 * alpha-obsd-tdep.c: Sort headers.
11983 * alpha-nbsd-tdep.c: Sort headers.
11984 * alpha-mdebug-tdep.c: Sort headers.
11985 * alpha-linux-tdep.c: Sort headers.
11986 * alpha-linux-nat.c: Sort headers.
11987 * alpha-bsd-tdep.c: Sort headers.
11988 * alpha-bsd-nat.c: Sort headers.
11989 * aix-thread.c: Sort headers.
11990 * agent.c: Sort headers.
11991 * addrmap.c: Sort headers.
11992 * ada-varobj.c: Sort headers.
11993 * ada-valprint.c: Sort headers.
11994 * ada-typeprint.c: Sort headers.
11995 * ada-tasks.c: Sort headers.
11996 * ada-lang.c: Sort headers.
11997 * aarch64-tdep.c: Sort headers.
11998 * aarch64-ravenscar-thread.c: Sort headers.
11999 * aarch64-newlib-tdep.c: Sort headers.
12000 * aarch64-linux-tdep.c: Sort headers.
12001 * aarch64-linux-nat.c: Sort headers.
12002 * aarch64-fbsd-tdep.c: Sort headers.
12003 * aarch64-fbsd-nat.c: Sort headers.
12004 * aarch32-linux-nat.c: Sort headers.
12005
12006 2019-04-04 Tom Tromey <tom@tromey.com>
12007
12008 * varobj.c (varobj_create): Update.
12009 * rust-exp.y (struct rust_parser) <update_innermost_block,
12010 lookup_symbol>: New methods.
12011 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12012 Rename.
12013 (rust_parser::rust_lookup_type)
12014 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12015 * printcmd.c (display_command, do_one_display): Update.
12016 * parser-defs.h (struct parser_state) <parser_state>: Add
12017 "tracker" parameter.
12018 (block_tracker): New member.
12019 (class innermost_block_tracker) <innermost_block_tracker>: Add
12020 "types" parameter.
12021 <reset>: Remove method.
12022 (innermost_block): Don't declare.
12023 (null_post_parser): Update.
12024 * parse.c (innermost_block): Remove global.
12025 (write_dollar_variable): Update.
12026 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12027 Remove "tracker_types" parameter.
12028 (parse_expression): Add "tracker" parameter.
12029 (parse_expression_for_completion): Update.
12030 (null_post_parser): Add "tracker" parameter.
12031 * p-exp.y: Update rules.
12032 * m2-exp.y: Update rules.
12033 * language.h (struct language_defn) <la_post_parser>: Add
12034 "tracker" parameter.
12035 * go-exp.y: Update rules.
12036 * f-exp.y: Update rules.
12037 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12038 parameter.
12039 * d-exp.y: Update rules.
12040 * c-exp.y: Update rules.
12041 * breakpoint.c (set_breakpoint_condition): Create an
12042 innermost_block_tracker.
12043 (watch_command_1): Likewise.
12044 * ada-lang.c (resolve): Add "tracker" parameter.
12045 (resolve_subexp): Likewise.
12046 * ada-exp.y (write_var_from_sym): Update.
12047
12048 2019-04-04 Tom Tromey <tom@tromey.com>
12049
12050 * type-stack.h: New file.
12051 * type-stack.c: New file.
12052 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12053 type-stack.h.
12054 (insert_into_type_stack, insert_type, push_type, push_type_int)
12055 (insert_type_address_space, pop_type, pop_type_int)
12056 (pop_typelist, pop_type_stack, append_type_stack)
12057 (push_type_stack, get_type_stack, push_typelist)
12058 (follow_type_instance_flags, follow_types): Don't declare.
12059 * parse.c (type_stack): Remove global.
12060 (parse_exp_in_context): Update.
12061 (insert_into_type_stack, insert_type, push_type, push_type_int)
12062 (insert_type_address_space, pop_type, pop_type_int)
12063 (pop_typelist, pop_type_stack, append_type_stack)
12064 (push_type_stack, get_type_stack, push_typelist)
12065 (follow_type_instance_flags, follow_types): Remove (moved to
12066 type-stack.c).
12067 * f-exp.y (type_stack): New global.
12068 Update rules.
12069 (push_kind_type, f_parse): Update.
12070 * d-exp.y (type_stack): New global.
12071 Update rules.
12072 (d_parse): Update.
12073 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12074 Update rules.
12075 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12076 (HFILES_NO_SRCDIR): Add type-stack.h.
12077
12078 2019-04-04 Tom Tromey <tom@tromey.com>
12079
12080 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12081 (rust_parser::convert_ast_to_expression, rust_parse)
12082 (rust_lex_test_completion, rust_lex_tests): Update.
12083 * parser-defs.h (struct expr_completion_state): New.
12084 (struct parser_state) <parser_state>: Add completion parameter.
12085 <mark_struct_expression, mark_completion_tag>: New methods.
12086 <parse_completion, m_completion_state>: New members.
12087 (prefixify_expression, null_post_parser): Update.
12088 (mark_struct_expression, mark_completion_tag): Don't declare.
12089 * parse.c (parse_completion, expout_last_struct)
12090 (expout_tag_completion_type, expout_completion_name): Remove
12091 globals.
12092 (parser_state::mark_struct_expression)
12093 (parser_state::mark_completion_tag): Now methods.
12094 (prefixify_expression): Add last_struct parameter.
12095 (prefixify_subexp): Likewise.
12096 (parse_exp_1): Update.
12097 (parse_exp_in_context): Add cstate parameter. Update.
12098 (parse_expression_for_completion): Create an
12099 expr_completion_state.
12100 (null_post_parser): Add "completion" parameter.
12101 * p-exp.y: Update rules.
12102 (yylex): Update.
12103 * language.h (struct language_defn) <la_post_parser>: Add
12104 "completing" parameter.
12105 * go-exp.y: Update rules.
12106 (lex_one_token): Update.
12107 * expression.h (parse_completion): Don't declare.
12108 * d-exp.y: Update rules.
12109 (lex_one_token): Update rules.
12110 * c-exp.y: Update rules.
12111 (lex_one_token): Update.
12112 * ada-lang.c (resolve): Add "parse_completion" parameter.
12113 (resolve_subexp): Likewise.
12114 (ada_resolve_function): Likewise.
12115
12116 2019-04-04 Tom Tromey <tom@tromey.com>
12117
12118 * parser-defs.h (struct parser_state) <start_arglist,
12119 end_arglist>: New methods.
12120 <arglist_len, m_funcall_chain>: New members.
12121 (arglist_len, start_arglist, end_arglist): Don't declare.
12122 * parse.c (arglist_len, funcall_chain): Remove global.
12123 (start_arglist, end_arglist): Remove functions.
12124 (parse_exp_in_context): Update.
12125 * p-exp.y: Update rules.
12126 * m2-exp.y: Update rules.
12127 * go-exp.y: Update rules.
12128 * f-exp.y: Update rules.
12129 * d-exp.y: Update rules.
12130 * c-exp.y: Update rules.
12131
12132 2019-04-04 Tom Tromey <tom@tromey.com>
12133
12134 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12135 lex_operator, push_back>: New methods.
12136 Update all rules.
12137 (rust_parser::lex_hex, lex_escape): Rename and update.
12138 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12139 (rust_parser::lex_operator): Rename and update.
12140 (rust_parser::lex_number, rustyylex, rustyyerror)
12141 (rust_lex_test_init, rust_lex_test_sequence)
12142 (rust_lex_test_push_back, rust_lex_tests): Update.
12143 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12144 parameter.
12145 <lexptr, prev_lexptr>: New members.
12146 (lexptr, prev_lexptr): Don't declare.
12147 * parse.c (lexptr, prev_lexptr): Remove globals.
12148 (parse_exp_in_context): Update.
12149 * p-exp.y (yylex, yyerror): Update.
12150 * m2-exp.y (parse_number, yylex, yyerror): Update.
12151 * go-exp.y (lex_one_token, yyerror): Update.
12152 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12153 * d-exp.y (lex_one_token, yyerror): Update.
12154 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12155 (lex_one_token, yyerror): Update.
12156 * ada-lex.l (YY_INPUT): Update.
12157 (rewind_to_char): Update.
12158 * ada-exp.y (yyerror): Update.
12159
12160 2019-04-04 Tom Tromey <tom@tromey.com>
12161
12162 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12163 * parser-defs.h (struct parser_state) <parser_state>: Add new
12164 parameter.
12165 <comma_terminates>: New member.
12166 (comma_terminates): Don't declare global.
12167 * parse.c (comma_terminates): Remove global.
12168 (parse_exp_in_context): Update.
12169 * p-exp.y (yylex): Update.
12170 * m2-exp.y (yylex): Update.
12171 * go-exp.y (lex_one_token): Update.
12172 * f-exp.y (yylex): Update.
12173 * d-exp.y (lex_one_token): Update.
12174 * c-exp.y (lex_one_token): Update.
12175 * ada-lex.l: Update.
12176
12177 2019-04-04 Tom Tromey <tom@tromey.com>
12178
12179 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12180 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12181 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12182 * parser-defs.h (paren_depth): Don't declare.
12183 * parse.c (paren_depth): Remove global.
12184 (parse_exp_in_context): Update.
12185 * p-exp.y (paren_depth): New global.
12186 (pascal_parse): Initialize it.
12187 * m2-exp.y (paren_depth): New global.
12188 (m2_parse): Initialize it.
12189 * go-exp.y (paren_depth): New global.
12190 (go_parse): Initialize it.
12191 * f-exp.y (paren_depth): New global.
12192 (f_parse): Initialize it.
12193 * d-exp.y (paren_depth): New global.
12194 (d_parse): Initialize it.
12195 * c-exp.y (paren_depth): New global.
12196 (c_parse): Initialize it.
12197 * ada-lex.l (paren_depth): New global.
12198 (lexer_init): Initialize it.
12199
12200 2019-04-04 Tom Tromey <tom@tromey.com>
12201
12202 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12203 (rust_parser::convert_ast_to_type)
12204 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12205 * parser-defs.h (struct parser_state) <parser_state>: Add
12206 parameters. Initialize new members.
12207 <expression_context_block, expression_context_pc>: New members.
12208 * parse.c (expression_context_block, expression_context_pc):
12209 Remove globals.
12210 (parse_exp_in_context): Update.
12211 * p-exp.y: Update all rules.
12212 (yylex): Update.
12213 * m2-exp.y: Update all rules.
12214 (yylex): Update.
12215 * go-exp.y (yylex): Update.
12216 * f-exp.y (yylex): Update.
12217 * d-exp.y: Update all rules.
12218 (yylex): Update.
12219 * c-exp.y: Update all rules.
12220 (lex_one_token, classify_name, yylex, c_parse): Update.
12221 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12222
12223 2019-04-04 Tom Tromey <tom@tromey.com>
12224
12225 * gdbarch.h, gdbarch.c: Rebuild.
12226 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12227 * stap-probe.h:
12228 (struct stap_parse_info): Replace "parser_state" with
12229 "expr_builder".
12230 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12231 (parser_state): New class.
12232 * parse.c (expr_builder): Rename.
12233 (expr_builder::release): Rename.
12234 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12235 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12236 (write_exp_elt_longcst, write_exp_elt_floatcst)
12237 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12238 (write_exp_string_vector, write_exp_bitstring)
12239 (write_exp_msymbol, mark_struct_expression)
12240 (write_dollar_variable)
12241 (insert_type_address_space, increase_expout_size): Replace
12242 "parser_state" with "expr_builder".
12243 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12244 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12245 "parser_state" with "expr_builder".
12246
12247 2019-04-04 Tom Tromey <tom@tromey.com>
12248
12249 * rust-exp.y: Replace "parse_language" with method call.
12250 * p-exp.y:
12251 (yylex): Replace "parse_language" with method call.
12252 * m2-exp.y:
12253 (yylex): Replace "parse_language" with method call.
12254 * go-exp.y (classify_name): Replace "parse_language" with method
12255 call.
12256 * f-exp.y (yylex): Replace "parse_language" with method call.
12257 * d-exp.y (lex_one_token): Replace "parse_language" with method
12258 call.
12259 * c-exp.y:
12260 (lex_one_token, classify_name, yylex): Replace "parse_language"
12261 with method call.
12262 * ada-exp.y (find_primitive_type, type_char)
12263 (type_system_address): Replace "parse_language" with method call.
12264
12265 2019-04-04 Tom Tromey <tom@tromey.com>
12266
12267 * rust-exp.y: Replace "parse_gdbarch" with method call.
12268 * parse.c (write_dollar_variable, insert_type_address_space):
12269 Replace "parse_gdbarch" with method call.
12270 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12271 call.
12272 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12273 call.
12274 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12275 "parse_gdbarch" with method call.
12276 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12277 with method call.
12278 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12279 "parse_gdbarch" with method call.
12280 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12281 "parse_gdbarch" with method call.
12282 * c-exp.y (parse_type, parse_number, classify_name): Replace
12283 "parse_gdbarch" with method call.
12284 * ada-lex.l: Replace "parse_gdbarch" with method call.
12285 * ada-exp.y (parse_type, find_primitive_type, type_char)
12286 (type_system_address): Replace "parse_gdbarch" with method call.
12287
12288 2019-04-04 Tom Tromey <tom@tromey.com>
12289
12290 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12291 * stap-probe.c (stap_parse_argument): Update.
12292 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12293 initial_size parameter.
12294 * rust-exp.y (rust_lex_tests): Update.
12295 * parse.c (parser_state): Update.
12296 (parse_exp_in_context): Update.
12297 * parser-defs.h (struct parser_state) <parser_state>: Remove
12298 "initial_size" parameter.
12299
12300 2019-04-04 Tom Tromey <tom@tromey.com>
12301
12302 * parser-defs.h (increase_expout_size): Don't declare.
12303 * parse.c (increase_expout_size): Now static.
12304
12305 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12306
12307 * gnu-nat.c (gnu_nat_target::wait): Fix
12308 target_waitstatus_to_string call.
12309
12310 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12311
12312 * eval.c (evaluate_subexp_standard): Handle internal functions
12313 during Fortran function call handling.
12314
12315 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12316
12317 * NEWS: Mention new internal functions.
12318 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12319 (read_base_type): Use dwarf2_init_complex_target_type.
12320 * value.c (creal_internal_fn): New function.
12321 (cimag_internal_fn): New function.
12322 (_initialize_values): Register new internal functions.
12323
12324 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12325
12326 * infrun.c (stop_all_threads): If debug_infrun, always
12327 trace the wait status after wait_one, using
12328 target_waitstatus_to_string and target_pid_to_str.
12329 (handle_inferior_event): Replace various trace of
12330 wait status kind by a single trace.
12331 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12332 wait status kind image by target_waitstatus_to_string.
12333 * target/waitstatus.c (target_waitstatus_to_string): Fix
12334 obsolete comment.
12335
12336 2019-04-01 Tom Tromey <tromey@adacore.com>
12337
12338 PR symtab/23331:
12339 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12340
12341 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12342 Pedro Alves <palves@redhat.com>
12343
12344 * top.c (quit_force): Call 'finalize_values'.
12345 * value.c (finalize_values): New function.
12346 * value.h (finalize_values): Declare.
12347
12348 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12349
12350 * NEWS: Announce $_gdb_major and $_gdb_minor.
12351
12352 * top.c (init_gdb_version_vars): New function.
12353 (gdb_init): Call init_gdb_version_vars.
12354
12355 2019-03-29 Tom Tromey <tromey@adacore.com>
12356
12357 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12358 help text. Remove dead code.
12359
12360 2019-03-29 Keith Seitz <keiths@redhat.com>
12361
12362 From Siddhesh Poyarekar:
12363 * f-lang.h (f77_get_upperbound): Return LONGEST.
12364 (f77_get_lowerbound): Likewise.
12365 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12366 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12367 print them.
12368 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12369 plongest to format print it.
12370 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12371 (f77_get_upperbound): Likewise.
12372 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12373 LOWER_BOUND to LONGEST.
12374 (f77_create_arrayprint_offset_tbl): Likewise.
12375
12376 2019-03-29 Keith Seitz <keiths@redhat.com>
12377
12378 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12379 %s/pulongest for TYPE_LENGTH instead of %d in format
12380 strings.
12381 * ada-typerint.c (ada_print_type): Likewise.
12382 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12383 * compile/compile-c-support.c (generate_register_struct): Likewise.
12384 * gdbtypes.c (recursive_dump_type): Likewise.
12385 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12386 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12387 instead of %d in format strings.
12388 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12389 to std::min to ULONGEST.
12390 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12391 instead of %d in format strings.
12392 * tracepoint.c (info_scope_command): Likewise.
12393 * typeprint.c (print_offset_data::update)
12394 (print_offset_data::finish): Likewise.
12395 * xtensa-tdep.c (xtensa_store_return_value)
12396 (xtensa_push_dummy_call): Likewise.
12397
12398 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12399
12400 * windows-nat.c (display_selector): Fixed format specifications
12401 for 64-bit Cygwin.
12402
12403 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12404
12405 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12406
12407 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12408
12409 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12410 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12411 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12412 (nios2_linux_init_abi): Install it.
12413
12414 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12415
12416 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12417
12418 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12419
12420 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12421
12422 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12423 Tom Tromey <tromey@adacore.com>
12424
12425 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12426
12427 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12428
12429 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12430 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12431 method to compute the bounds of range types. Also print "[evaluated]"
12432 if the bounds' values come from a dynamic evaluation.
12433
12434 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12435
12436 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12437 whitespace when pretty printing is on.
12438
12439 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12440
12441 * ppc-linux-nat.c: Add include.
12442
12443 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12444
12445 * NEWS: Mention AArch64 Pointer Authentication.
12446
12447 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12448
12449 * arm-linux-nat.c: Add include.
12450
12451 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12452
12453 * source-cache.c (source_cache::get_source_lines): Re-read
12454 fullname after calling open_source_file.
12455
12456 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12457
12458 * NEWS: Mention TLS support for FreeBSD.
12459
12460 2019-03-25 Tom Tromey <tromey@adacore.com>
12461
12462 * minsyms.c (BUNCH_SIZE): Update comment.
12463 (~minimal_symbol_reader): Remove old comment.
12464 (compact_minimal_symbols): Update comment.
12465 (minimal_symbol_reader::install): Remove old comment. Update
12466 other comments.
12467
12468 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12469
12470 * s390-linux-nat.c: Add include.
12471
12472 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12473
12474 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12475 Call linux_get_hwcap.
12476 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12477 Likewise.
12478 (aarch64_linux_get_hwcap): Remove function.
12479 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12480 declaration.
12481 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12482 linux_get_hwcap.
12483 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12484 * linux-tdep.c (linux_get_hwcap): Add function.
12485 (linux_get_hwcap2): Likewise.
12486 * linux-tdep.h (linux_get_hwcap): Add declaration.
12487 (linux_get_hwcap2): Likewise.
12488 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12489 (ppc_linux_get_hwcap2): Likewise.
12490 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12491 linux_get_hwcap.
12492 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12493 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12494 (ppc_linux_nat_target::read_description): Likewise.
12495 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12496 * s390-linux-nat.c: Likewise.
12497 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12498
12499 2019-03-24 Tom Tromey <tom@tromey.com>
12500
12501 * ada-lang.c (standard_lookup): Simplify initialization.
12502 (ada_lookup_symbol_nonlocal): Simplify return.
12503 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12504 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12505 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12506 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12507 initialization.
12508 * solib.c (solib_global_lookup): Simplify.
12509 * symtab.c (null_block_symbol): Remove.
12510 (symbol_cache_lookup): Simplify returns.
12511 (lookup_language_this): Simplify returns.
12512 (lookup_symbol_aux): Simplify return.
12513 (lookup_local_symbol): Simplify returns.
12514 (lookup_global_symbol_from_objfile): Simplify return.
12515 (lookup_symbol_in_objfile_symtabs)
12516 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12517 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12518 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12519 * cp-namespace.c (cp_lookup_bare_symbol)
12520 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12521 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12522 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12523 (cp_lookup_symbol_via_imports): Simplify initialization.
12524 (find_symbol_in_baseclass): Likewise.
12525 * symtab.h (null_block_symbol): Remove.
12526 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12527 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12528 (d_lookup_symbol_module): Likewise.
12529 (find_symbol_in_baseclass): Simplify initialization.
12530
12531 2019-03-24 Tom Tromey <tom@tromey.com>
12532
12533 * expression.h: Don't include symtab.h.
12534 (struct block): Forward declare.
12535
12536 2019-03-24 Tom Tromey <tom@tromey.com>
12537
12538 * c-exp.y (typebase): Remove casts.
12539 * gdbtypes.c (lookup_unsigned_typename, )
12540 (lookup_signed_typename): Remove cast.
12541 * eval.c (parse_to_comma_and_eval): Remove cast.
12542 * parse.c (write_dollar_variable): Remove cast.
12543 * block.h (struct block) <superblock>: Now const.
12544 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12545 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12546 (map_block): Make "block" const.
12547 * symfile.h (struct quick_symbol_functions)
12548 <map_matching_symbols>: Constify block argument to "callback".
12549 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12550 const.
12551 (find_pc_sect_compunit_symtab): Make "b" const.
12552 (find_symbol_at_address): Likewise.
12553 (search_symbols): Likewise.
12554 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12555 (dw2_debug_names_lookup_symbol): Likewise.
12556 (dw2_map_matching_symbols): Update.
12557 * p-valprint.c (pascal_val_print): Remove "block".
12558 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12559 (aux_add_nonlocal_symbols): Make "block" const.
12560 (resolve_subexp): Remove cast.
12561 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12562 const.
12563 (iterate_over_file_blocks): Likewise.
12564 * f-exp.y (%union) <bval>: Remove.
12565 * coffread.c (patch_opaque_types): Make "b" const.
12566 * spu-tdep.c (spu_catch_start): Make "block" const.
12567 * c-valprint.c (print_unpacked_pointer): Remove "block".
12568 * symmisc.c (dump_symtab_1): Make "b" const.
12569 (block_depth): Make "block" const.
12570 * d-exp.y (%union) <bval>: Remove.
12571 * cp-support.h (cp_lookup_rtti_type): Update.
12572 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12573 * psymtab.c (psym_lookup_symbol): Make "block" const.
12574 (maintenance_check_psymtabs): Make "b" const.
12575 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12576 (enumerate_locals, enumerate_args): Update.
12577 * python/py-symtab.c (stpy_global_block): Make "block" const.
12578 (stpy_static_block): Likewise.
12579 * inline-frame.c (block_starting_point_at): Make "new_block"
12580 const.
12581 * block.c (find_block_in_blockvector): Make return type const.
12582 (blockvector_for_pc_sect): Make "b" const.
12583 (find_block_in_blockvector): Make "b" const.
12584
12585 2019-03-23 Tom Tromey <tom@tromey.com>
12586
12587 * varobj.c (varobj_create): Update.
12588 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12589 * printcmd.c (display_command, do_one_display): Don't reset
12590 innermost_block.
12591 * parser-defs.h (enum innermost_block_tracker_type): Move to
12592 expression.h.
12593 (innermost_block): Update comment.
12594 * parse.c (parse_exp_1): Add tracker_types parameter.
12595 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12596 tracker_types parameter. Reset innermost_block.
12597 (parse_exp_in_context): Remove.
12598 (parse_expression_for_completion): Update.
12599 * objfiles.c (~objfile): Don't reset expression_context_block or
12600 innermost_block.
12601 * expression.h (enum innermost_block_tracker_type): Move from
12602 parser-defs.h.
12603 (parse_exp_1): Add tracker_types parameter.
12604 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12605 reset innermost_block.
12606
12607 2019-03-23 Tom Tromey <tom@tromey.com>
12608
12609 * objfiles.h: Include bcache.h.
12610
12611 2019-03-23 Tom Tromey <tom@tromey.com>
12612
12613 * linespec.c (get_current_search_block): Use
12614 scoped_restore_current_language.
12615 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12616
12617 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12618 Jiong Wang <jiong.wang@arm.com>
12619
12620 * aarch64-linux-tdep.c
12621 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12622 section.
12623 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12624
12625 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12626 Jiong Wang <jiong.wang@arm.com>
12627
12628 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12629 instructions.
12630 (aarch64_analyze_prologue_test): Add PACIASP test.
12631 (aarch64_prologue_prev_register): Unmask PC value.
12632
12633 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12634 Jiong Wang <jiong.wang@arm.com>
12635
12636 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12637 (aarch64_dwarf2_prev_register): Unmask PC value.
12638 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12639 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12640 DW_CFA_AARCH64_negate_ra_state.
12641 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12642
12643 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12644 Jiong Wang <jiong.wang@arm.com>
12645
12646 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12647 registers.
12648 (aarch64_pseudo_register_name): Likewise.
12649 (aarch64_pseudo_register_type): Likewise.
12650 (aarch64_pseudo_register_reggroup_p): Likewise.
12651 (aarch64_gdbarch_init): Add pauth registers.
12652 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12653 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12654 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12655 (struct gdbarch_tdep): Add regnum for ra_state.
12656
12657 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12658 Jiong Wang <jiong.wang@arm.com>
12659
12660 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12661
12662 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12663 Jiong Wang <jiong.wang@arm.com>
12664
12665 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12666 function.
12667 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12668 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12669 (aarch64_gdbarch_init): Add puth registers.
12670 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12671 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12672 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12673
12674 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12675 Jiong Wang <jiong.wang@arm.com>
12676
12677 * aarch64-linux-nat.c
12678 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12679 * aarch64-linux-tdep.c
12680 (aarch64_linux_core_read_description): Likewise.
12681 (aarch64_linux_get_hwcap): New function.
12682 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12683 (aarch64_linux_get_hwcap): New declaration.
12684
12685 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12686 Jiong Wang <jiong.wang@arm.com>
12687
12688 * aarch64-linux-nat.c
12689 (aarch64_linux_nat_target::read_description): Add pauth param.
12690 * aarch64-linux-tdep.c
12691 (aarch64_linux_core_read_description): Likewise.
12692 * aarch64-tdep.c (struct target_desc): Add in pauth.
12693 (aarch64_read_description): Add pauth param.
12694 (aarch64_gdbarch_init): Likewise.
12695 * aarch64-tdep.h (aarch64_read_description): Likewise.
12696 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12697 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12698 * features/Makefile: Add new files.
12699 * features/aarch64-pauth.c: New file.
12700 * features/aarch64-pauth.xml: New file.
12701
12702 2019-03-20 Tom Tromey <tromey@adacore.com>
12703
12704 * infrun.c (handle_inferior_event): Rename from
12705 handle_inferior_event_1. Create a scoped_value_mark.
12706 (handle_inferior_event): Remove.
12707
12708 2019-03-19 Tom Tromey <tromey@adacore.com>
12709
12710 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12711 * infrun.h (print_stop_event): Add "displays" parameter.
12712 * infrun.c (print_stop_event): Add "displays" parameter.
12713
12714 2019-03-19 Pedro Alves <palves@redhat.com>
12715
12716 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12717 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12718 to -1. Fix TABs vs spaces.
12719 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12720 * tui/tui-out.h (tui_ui_out) Add intro comments.
12721 <m_line, m_start_of_line>: In-class initialize, and add describing
12722 comment.
12723
12724 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12725
12726 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12727 variable names.
12728 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12729
12730 2019-03-18 Pedro Alves <palves@redhat.com>
12731 Eli Zaretskii <eliz@gnu.org>
12732
12733 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12734 m_line and m_start_of_line.
12735
12736 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12737
12738 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12739 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12740 it returns a newline. This fixes a regression in TU mode, whereby
12741 the next line is output on the same screen line as the user input.
12742
12743 2019-03-18 Tom Tromey <tromey@adacore.com>
12744
12745 * minsyms.c (minimal_symbol_reader::install): Remove call to
12746 obstack_blank.
12747
12748 2019-03-18 Pedro Alves <palves@redhat.com>
12749
12750 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12751 New globals.
12752 (apply_style): New, factored out from ...
12753 (apply_ansi_escape): ... this. Handle reverse video mode.
12754 (tui_set_reverse_mode): New function.
12755 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12756 * tui/tui-winsource.c (tui_show_source_line): Use
12757 tui_set_reverse_mode instead of setting A_STANDOUT.
12758 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12759 New setter methods.
12760
12761 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12762
12763 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12764 Handle tabs.
12765
12766 2019-03-18 Tom Tromey <tromey@adacore.com>
12767
12768 * ada-lang.c (empty_array): Add "high" parameter.
12769 (ada_evaluate_subexp): Update.
12770
12771 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12772
12773 * unittests/string_view-selftests.c: Define
12774 _initialize_string_view_selftests unconditionally.
12775
12776 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12777
12778 PR gdb/24350
12779 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12780
12781 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12782
12783 PR gdb/24351
12784 * windows-nat.c (display_selector): Fix format specifiers.
12785
12786 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12787
12788 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12789 tui_refill_source_window instead of tui_refresh_win, to update the
12790 current execution line. This fixes redisplay of the current line
12791 when stepping through the code with "next" or "step".
12792
12793 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12794
12795 * source-cache.c (source_cache::get_source_lines): Call
12796 find_source_lines to initialize s->nlines. This fixes vertical
12797 scrolling of TUI source window when the DOWN arrow is pressed.
12798
12799 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12800
12801 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12802 linux-thread-db.c (_initialize_thread_db): Likewise.
12803
12804 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12805
12806 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12807 wclrtoeol in tui_show_source_line". This reverts changes made in
12808 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12809
12810 2019-03-15 Tom Tromey <tom@tromey.com>
12811
12812 * symtab.h (struct minimal_symbol): Derive from
12813 general_symbol_info.
12814 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12815 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12816 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12817 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12818 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12819 (MSYMBOL_SEARCH_NAME): Update.
12820 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12821 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12822 * minsyms.c (minimal_symbol_reader::record_full): Update.
12823
12824 2019-03-15 Tom Tromey <tom@tromey.com>
12825
12826 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12827
12828 2019-03-15 Tom Tromey <tom@tromey.com>
12829
12830 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12831 unique_xmalloc_ptr.
12832 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12833 Update.
12834 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12835 (build_minimal_symbol_hash_tables)
12836 (minimal_symbol_reader::install): Update.
12837
12838 2019-03-15 Tom Tromey <tom@tromey.com>
12839
12840 * symtab.c (create_demangled_names_hash): Update.
12841 (symbol_set_names): Update.
12842 * objfiles.h (struct objfile_per_bfd_storage)
12843 <demangled_names_hash>: Now an htab_up.
12844 * objfiles.c (objfile_per_bfd_storage): Simplify.
12845
12846 2019-03-15 Tom Tromey <tom@tromey.com>
12847
12848 * objfiles.h (struct objfile_per_bfd_storage): Declare
12849 destructor.
12850 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12851 New.
12852 (get_objfile_bfd_data): Use new. Don't initialize
12853 language_of_main.
12854 (free_objfile_per_bfd_storage): Remove.
12855 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12856
12857 2019-03-15 Tom Tromey <tom@tromey.com>
12858
12859 * symfile.c (reread_symbols): Update.
12860 * objfiles.c (objfile::objfile): Update.
12861 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12862 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12863 comment.
12864 (minimal_symbol_reader::install): Update.
12865 (terminate_minimal_symbol_table): Remove.
12866 * jit.c (jit_object_close_impl): Update.
12867
12868 2019-03-15 Tom Tromey <tom@tromey.com>
12869
12870 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12871 initializations.
12872
12873 2019-03-15 Tom Tromey <tom@tromey.com>
12874
12875 * objfiles.h (struct objfile_per_bfd_storage)
12876 <demangled_hash_languages>: Now a bitset.
12877 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12878 (lookup_minimal_symbol): Update.
12879
12880 2019-03-15 Tom Tromey <tom@tromey.com>
12881
12882 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12883 Don't return the symbol.
12884 * coffread.c (record_minimal_symbol): Use record_full.
12885
12886 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12887
12888 The MS-Windows port of ncurses fails to switch to a color pair if
12889 one or both of the colors are the implicit default colors. This
12890 change records the default colors when TUI is initialized, and
12891 then specifies them explicitly when a color pair uses the default
12892 colors. This allows color styling in TUI mode on MS-Windows.
12893
12894 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12895 ncurses_norm_attr.
12896 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12897 colors in ncurses_norm_attr.
12898 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12899 "none", replace it with the default color recorded in
12900 ncurses_norm_attr.
12901
12902 2019-03-14 Tom Tromey <tromey@adacore.com>
12903
12904 * source-cache.h (class source_cache) <get_source_lines>: Return
12905 std::string.
12906 * source-cache.c (source_cache::extract_lines): Handle case where
12907 first_pos==npos. Return std::string.
12908 (source_cache::get_source_lines): Update.
12909
12910 2019-03-14 Tom Tromey <tromey@adacore.com>
12911
12912 * NEWS: Add item for "style sources" commands.
12913 * source-cache.c (source_cache::get_source_lines): Check
12914 source_styling.
12915 * cli/cli-style.c (source_styling): New global.
12916 (_initialize_cli_style): Add "style sources" commands.
12917 (show_style_sources): New function.
12918 * cli/cli-style.h (source_styling): Declare.
12919
12920 2019-03-14 Pedro Alves <palves@redhat.com>
12921 Tom Tromey <tromey@adacore.com>
12922
12923 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12924 * tui/tui-winsource.c (tui_refill_source_window): New function,
12925 from...
12926 (tui_horizontal_source_scroll): ... here. Move some logic.
12927 * cli/cli-style.c (set_style_enabled): Notify new observable.
12928 * tui/tui-hooks.c (tui_redisplay_source): New function.
12929 (tui_attach_detach_observers): Attach or detach
12930 tui_redisplay_source.
12931 * observable.h (source_styling_changed): New observable.
12932 * observable.c: Define source_styling_changed observable.
12933
12934 2019-03-13 Tom Tromey <tromey@adacore.com>
12935
12936 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12937 (i386_gnu_nat_target::store_registers): Update.
12938 * target-debug.h (target_debug_print_std_string): New macro.
12939 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12940 * windows-tdep.c (display_one_tib): Update.
12941 * tui/tui-stack.c (tui_make_status_line): Update.
12942 * top.c (print_inferior_quit_action): Update.
12943 * thread.c (thr_try_catch_cmd): Update.
12944 (add_thread_with_info): Update.
12945 (thread_target_id_str): Update.
12946 (thr_try_catch_cmd): Update.
12947 (thread_command): Update.
12948 (thread_find_command): Update.
12949 * record-btrace.c (record_btrace_target::info_record)
12950 (record_btrace_resume_thread, record_btrace_target::resume)
12951 (record_btrace_cancel_resume, record_btrace_step_thread)
12952 (record_btrace_target::wait, record_btrace_target::wait)
12953 (record_btrace_target::wait, record_btrace_target::stop): Update.
12954 * progspace.c (print_program_space): Update.
12955 * process-stratum-target.c
12956 (process_stratum_target::thread_address_space): Update.
12957 * linux-fork.c (linux_fork_mourn_inferior)
12958 (detach_checkpoint_command, info_checkpoints_command)
12959 (linux_fork_context): Update.
12960 (linux_fork_detach): Update.
12961 (class scoped_switch_fork_info): Update.
12962 (delete_checkpoint_command): Update.
12963 * infrun.c (follow_fork_inferior): Update.
12964 (follow_fork_inferior): Update.
12965 (proceed_after_vfork_done): Update.
12966 (handle_vfork_child_exec_or_exit): Update.
12967 (follow_exec): Update.
12968 (displaced_step_prepare_throw): Update.
12969 (displaced_step_restore): Update.
12970 (start_step_over): Update.
12971 (resume_1): Update.
12972 (clear_proceed_status_thread): Update.
12973 (proceed): Update.
12974 (print_target_wait_results): Update.
12975 (do_target_wait): Update.
12976 (context_switch): Update.
12977 (stop_all_threads): Update.
12978 (restart_threads): Update.
12979 (finish_step_over): Update.
12980 (handle_signal_stop): Update.
12981 (switch_back_to_stepped_thread): Update.
12982 (keep_going_pass_signal): Update.
12983 (print_exited_reason): Update.
12984 (normal_stop): Update.
12985 * inferior.c (inferior_pid_to_str): Change return type.
12986 (print_selected_inferior): Update.
12987 (add_inferior): Update.
12988 (detach_inferior): Update.
12989 * dummy-frame.c (fprint_dummy_frames): Update.
12990 * dcache.c (dcache_info_1): Update.
12991 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12992 (btrace_fetch, btrace_clear): Update.
12993 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12994 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12995 type.
12996 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12997 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12998 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12999 * gdbarch.c, gdbarch.h: Rebuild.
13000 * gdbarch.sh (core_pid_to_str): Change return type.
13001 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13002 return type.
13003 (windows_nat_target::pid_to_str): Change return type.
13004 (windows_delete_thread): Update.
13005 (windows_nat_target::attach): Update.
13006 (windows_nat_target::files_info): Update.
13007 * target-delegates.c: Rebuild.
13008 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13009 return type.
13010 (sol_thread_target::pid_to_str): Change return type.
13011 * remote.c (class remote_target) <pid_to_str>: Change return
13012 type.
13013 (remote_target::pid_to_str): Change return type.
13014 (extended_remote_target::attach, remote_target::remote_stop_ns)
13015 (remote_target::remote_notif_remove_queued_reply)
13016 (remote_target::push_stop_reply, remote_target::disable_btrace):
13017 Update.
13018 (extended_remote_target::attach): Update.
13019 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13020 type.
13021 (gdbsim_target::pid_to_str): Change return type.
13022 * ravenscar-thread.c (struct ravenscar_thread_target)
13023 <pid_to_str>: Change return type.
13024 (ravenscar_thread_target::pid_to_str): Change return type.
13025 * procfs.c (class procfs_target) <pid_to_str>: Change return
13026 type.
13027 (procfs_target::pid_to_str): Change return type.
13028 (procfs_target::attach): Update.
13029 (procfs_target::detach): Update.
13030 (procfs_target::fetch_registers): Update.
13031 (procfs_target::store_registers): Update.
13032 (procfs_target::wait): Update.
13033 (procfs_target::files_info): Update.
13034 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13035 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13036 return type.
13037 (nto_procfs_target::pid_to_str): Change return type.
13038 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13039 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13040 return type.
13041 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13042 (exit_lwp): Update.
13043 (attach_proc_task_lwp_callback, get_detach_signal)
13044 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13045 (linux_nat_target::resume, wait_lwp, stop_callback)
13046 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13047 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13048 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13049 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13050 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13051 type.
13052 (inf_ptrace_target::attach): Update.
13053 (inf_ptrace_target::files_info): Update.
13054 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13055 type.
13056 (go32_nat_target::pid_to_str): Change return type.
13057 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13058 (gnu_nat_target::wait): Update.
13059 (gnu_nat_target::wait): Update.
13060 (gnu_nat_target::resume): Update.
13061 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13062 (fbsd_nat_target::wait): Update.
13063 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13064 type.
13065 (darwin_nat_target::attach): Update.
13066 * corelow.c (class core_target) <pid_to_str>: Change return type.
13067 (core_target::pid_to_str): Change return type.
13068 * target.c (normal_pid_to_str): Change return type.
13069 (default_pid_to_str): Likewise.
13070 (target_pid_to_str): Change return type.
13071 (target_translate_tls_address): Update.
13072 (target_announce_detach): Update.
13073 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13074 return type.
13075 (bsd_uthread_target::pid_to_str): Change return type.
13076 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13077 type.
13078 (bsd_kvm_target::pid_to_str): Change return type.
13079 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13080 return type.
13081 (aix_thread_target::pid_to_str): Change return type.
13082 * target.h (struct target_ops) <pid_to_str>: Change return type.
13083 (target_pid_to_str, normal_pid_to_str): Likewise.
13084 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13085 type.
13086 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13087 type.
13088 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13089 return type.
13090 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13091 type.
13092 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13093 type.
13094 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13095 return type.
13096
13097 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13098
13099 * NEWS: Mention that the new default MI version is 3. Mention
13100 changes to the output of commands and events that deal with
13101 multi-location breakpoints.
13102 * breakpoint.c: Include "mi/mi-out.h".
13103 (print_one_breakpoint): Change output syntax if using MI version
13104 >= 3.
13105 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13106 New.
13107 (mi_multi_location_breakpoint_output_fixed): New.
13108 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13109 (mi_cmd_fix_multi_location_breakpoint_output): New.
13110 (mi_multi_location_breakpoint_output_fixed): New.
13111 * mi/mi-cmds.c (mi_cmds): Register command
13112 -fix-multi-location-breakpoint-output.
13113 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13114 interpreter "mi".
13115
13116 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13117
13118 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13119 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13120 instantiate mi_ui_out based on interpreter name.
13121 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13122 * mi/mi-main.c (mi_load_progress): Likewise.
13123
13124 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13125
13126 * NEWS: Combine separate "New targets" sections for 8.3.
13127
13128 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13129
13130 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13131 (ppcfbsd_init_abi): Install gdbarch
13132 "fetch_tls_load_module_address" and "get_thread_local_address"
13133 methods.
13134
13135 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13136
13137 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13138 (riscv_fbsd_init_abi): Install gdbarch
13139 "fetch_tls_load_module_address" and "get_thread_local_address"
13140 methods.
13141
13142 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13143
13144 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13145 (i386fbsd_init_abi): Install gdbarch
13146 "fetch_tls_load_module_address" and "get_thread_local_address"
13147 methods.
13148
13149 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13150
13151 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13152 (amd64fbsd_init_abi): Install gdbarch
13153 "fetch_tls_load_module_address" and "get_thread_local_address"
13154 methods.
13155
13156 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13157
13158 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13159 (struct fbsd_pspace_data): New type.
13160 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13161 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13162 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13163 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13164 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13165
13166 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13167
13168 * gdbtypes.c (lookup_struct_elt): New function.
13169 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13170 * gdbtypes.h (struct struct_elt): New type.
13171 (lookup_struct_elt): New prototype.
13172
13173 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13174
13175 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13176 remove disabled code block.
13177
13178 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13179
13180 * gdbarch.sh (get_thread_local_address): New method.
13181 * gdbarch.h, gdbarch.c: Regenerate.
13182 * target.c (target_translate_tls_address): Use
13183 gdbarch_get_thread_local_address if present instead of
13184 target::get_thread_local_address.
13185
13186 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13187
13188 * target.h (target::get_thread_local_address): Update comment.
13189
13190 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13191
13192 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13193 objfile->separate_debug_objfile_backlink if not NULL.
13194
13195 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13196
13197 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13198 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13199 (amd64bsd_store_inferior_registers): Likewise.
13200 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13201 Enable segment base registers.
13202 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13203 PT_GETFSBASE and PT_GETGSBASE.
13204 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13205 PT_SETGSBASE.
13206 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13207 segment base registers.
13208 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13209
13210 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13211
13212 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13213 Update calls to i386_target_description to add 'segments'
13214 parameter.
13215 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13216 add segment base registers.
13217 * arch/i386.c (i386_create_target_description): Add 'segments'
13218 parameter to enable segment base registers.
13219 * arch/i386.h (i386_create_target_description): Likewise.
13220 * features/i386/32bit-segments.xml: New file.
13221 * features/i386/32bit-segments.c: Generate.
13222 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13223 call to i386_target_description to add 'segments' parameter.
13224 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13225 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13226 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13227 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13228 if feature is present.
13229 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13230 Add 'segments' parameter to call to i386_target_description.
13231 (i386_target_description): Add 'segments' parameter to enable
13232 segment base registers.
13233 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13234 to call to i386_target_description.
13235 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13236 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13237 Define I386_NUM_REGS.
13238 (i386_target_description): Add 'segments' parameter to enable
13239 segment base registers.
13240
13241 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13242
13243 PR/24325
13244 * source-cache.c: #undef open and close, to avoid unresolved
13245 externals during linking.
13246
13247 2019-03-12 Tom Tromey <tromey@adacore.com>
13248
13249 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13250 const. Add initializers.
13251 (_initialize_remote): Don't initialize ptid globals.
13252
13253 2019-03-12 Pedro Alves <palves@redhat.com>
13254
13255 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13256
13257 2019-03-12 Pedro Alves <palves@redhat.com>
13258
13259 * cp-name-parser.y (main): Remove unused 'len' variable.
13260
13261 2019-03-12 Tom Tromey <tromey@adacore.com>
13262
13263 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13264 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13265
13266 2019-03-12 Tom Tromey <tromey@adacore.com>
13267
13268 * linux-nat.c (iterate_over_lwps): Update.
13269 (stop_callback): Remove parameter.
13270 (stop_wait_callback, detach_callback, resume_set_callback)
13271 (select_singlestep_lwp_callback, set_ignore_sigint)
13272 (status_callback, resumed_callback, resume_clear_callback)
13273 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13274 data parameter.
13275 (linux_nat_target::detach, linux_nat_target::resume)
13276 (linux_stop_and_wait_all_lwps, select_event_lwp)
13277 (linux_nat_filter_event, linux_nat_wait_1)
13278 (linux_nat_target::kill, linux_nat_target::stop)
13279 (linux_nat_target::stop): Update.
13280 (linux_nat_resume_callback): Change type.
13281 (resume_stopped_resumed_lwps, count_events_callback)
13282 (select_event_lwp_callback): Likewise.
13283 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13284 * arm-linux-nat.c (struct update_registers_data): Remove.
13285 (update_registers_callback): Change type.
13286 (arm_linux_insert_hw_breakpoint1): Update.
13287 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13288 parameter.
13289 (x86_linux_dr_set_addr): Update.
13290 (x86_linux_dr_set_control): Update.
13291 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13292 (iterate_over_lwps): Use gdb::function_view.
13293 * nat/aarch64-linux-hw-point.c (struct
13294 aarch64_dr_update_callback_param): Remove.
13295 (debug_reg_change_callback): Change type.
13296 (aarch64_notify_debug_reg_change): Update.
13297 * s390-linux-nat.c (s390_refresh_per_info): Update.
13298
13299 2019-03-11 Tom Tromey <tromey@adacore.com>
13300
13301 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13302 redundant assignment to "this_cu".
13303
13304 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13305
13306 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13307
13308 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13309
13310 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13311 from...
13312 (rank_one_type): ... this.
13313
13314 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13315
13316 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13317 from...
13318 (rank_one_type): ... this.
13319
13320 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13321
13322 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13323 from...
13324 (rank_one_type): ... this.
13325
13326 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13327
13328 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13329 from...
13330 (rank_one_type): ... this.
13331
13332 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13333
13334 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13335 from...
13336 (rank_one_type): ... this.
13337
13338 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13339
13340 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13341 from...
13342 (rank_one_type): ... this.
13343
13344 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13345
13346 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13347 from...
13348 (rank_one_type): ... this.
13349
13350 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13351
13352 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13353 from...
13354 (rank_one_type): ... this.
13355
13356 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13357
13358 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13359 from...
13360 (rank_one_type): ... this.
13361
13362 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13363
13364 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13365 from...
13366 (rank_one_type): ... this.
13367
13368 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13369
13370 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13371 from...
13372 (rank_one_type): ... this.
13373
13374 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13375
13376 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13377 from...
13378 (rank_one_type): ... this.
13379
13380 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13381
13382 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13383 inferior-events' shows the example events.
13384
13385 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13386
13387 Support styling on native MS-Windows console
13388
13389 PR/24315
13390 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13391 on MS-Windows if $TERM is not defined.
13392
13393 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13394
13395 * posix-hdep.c (gdb_console_fputs):
13396 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13397 functions.
13398 * ui-file.h (gdb_console_fputs): Add prototype.
13399
13400 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13401 back to fputs only if the former returns zero.
13402
13403 2019-03-07 Tom Tromey <tom@tromey.com>
13404
13405 * symmisc.c (print_symbol_bcache_statistics): Update.
13406 (print_objfile_statistics): Update.
13407 * symfile.c (allocate_symtab): Update.
13408 * stabsread.c: Don't include bcache.h.
13409 * psymtab.h (struct psymbol_bcache): Don't declare.
13410 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13411 (psymbol_bcache_init, psymbol_bcache_free)
13412 (psymbol_bcache_get_bcache): Don't declare.
13413 * psymtab.c (struct psymbol_bcache): Remove.
13414 (psymtab_storage::psymtab_storage): Update.
13415 (psymtab_storage::~psymtab_storage): Update.
13416 (psymbol_bcache_init, psymbol_bcache_free)
13417 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13418 (add_psymbol_to_bcache): Update.
13419 (allocate_psymtab): Update.
13420 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13421 macro_cache>: No longer pointers.
13422 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13423 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13424 * macrotab.c (macro_bcache): Update.
13425 * macroexp.c: Don't include bcache.h.
13426 * gdbtypes.c (check_types_worklist): Update.
13427 (types_deeply_equal): Remove TRY/CATCH. Update.
13428 * elfread.c (elf_symtab_read): Update.
13429 * dwarf2read.c: Don't include bcache.h.
13430 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13431 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13432 (print_bcache_statistics, bcache_memory_used): Don't declare.
13433 (struct bcache): Move from bcache.c. Add constructor, destructor,
13434 methods. Rename all data members.
13435 * bcache.c (struct bcache): Move to bcache.h.
13436 (bcache::expand_hash_table): Rename from expand_hash_table.
13437 (bcache): Remove.
13438 (bcache::insert): Rename from bcache_full.
13439 (bcache::compare): Rename from bcache_compare.
13440 (bcache_xmalloc): Remove.
13441 (bcache::~bcache): Rename from bcache_xfree.
13442 (bcache::print_statistics): Rename from print_bcache_statistics.
13443 (bcache::memory_used): Rename from bcache_memory_used.
13444
13445 2019-03-07 Pedro Alves <palves@redhat.com>
13446
13447 * infrun.c (normal_stop): Also check for
13448 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13449
13450 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13451
13452 * f-lang.c (value_from_host_double): Moved to...
13453 * value.c (value_from_host_double): ...here.
13454 * value.h (value_from_host_double): Declare.
13455 * guile/scm-math.c (vlscm_convert_typed_number): Use
13456 value_from_host_double.
13457 (vlscm_convert_number): Likewise.
13458 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13459 * python/py-value.c (convert_value_from_python): Likewise.
13460
13461 2019-03-06 Tom Tromey <tom@tromey.com>
13462
13463 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13464
13465 2019-03-06 Tom Tromey <tom@tromey.com>
13466
13467 * utils.h (free_current_contents): Don't declare.
13468 * utils.c (free_current_contents): Remove.
13469
13470 2019-03-06 Tom Tromey <tom@tromey.com>
13471
13472 * top.c (quit_force): Update.
13473 * main.c (captured_command_loop): Update.
13474 * common/new-op.c (operator new): Update.
13475 * common/common-exceptions.c (struct catcher)
13476 <save_cleanup_chain>: Remove member.
13477 (exceptions_state_mc_init): Update.
13478 (exception_try_scope_entry): Return nullptr.
13479 (exception_try_scope_exit, exception_rethrow)
13480 (throw_exception_sjlj, throw_exception_cxx): Update.
13481 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13482 (all_cleanups, do_cleanups, discard_cleanups)
13483 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13484 (restore_cleanups, restore_final_cleanups): Don't declare.
13485 (do_final_cleanups): Remove parameter.
13486 * common/cleanups.c (cleanup_chain, make_cleanup)
13487 (make_cleanup_dtor, all_cleanups, do_cleanups)
13488 (discard_my_cleanups, discard_cleanups)
13489 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13490 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13491 (null_cleanup): Remove.
13492 (do_final_cleanups): Remove parameter.
13493
13494 2019-03-06 Tom Tromey <tom@tromey.com>
13495
13496 * remote.c (remote_target::remote_parse_stop_reply): Use
13497 unique_xmalloc_ptr.
13498
13499 2019-03-06 Tom Tromey <tom@tromey.com>
13500
13501 * stabsread.c (struct stabs_field_info): Rename from field_info.
13502 <list, fnlist>: Add initializers.
13503 <obstack>: New member.
13504 (read_member_functions, read_struct_fields, read_baseclasses):
13505 Allocate on obstack. Don't use cleanups.
13506 (read_one_struct_field, read_member_functions, read_struct_fields)
13507 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13508 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13509 (read_struct_type): Update.
13510
13511 2019-03-06 Tom Tromey <tom@tromey.com>
13512
13513 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13514 * common/filestuff.h (make_cleanup_close): Don't declare.
13515 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13516 Remove.
13517
13518 2019-03-06 Tom Tromey <tom@tromey.com>
13519
13520 * solib-aix.c: Use make_scope_exit.
13521
13522 2019-03-06 Tom Tromey <tom@tromey.com>
13523
13524 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13525 Use make_scope_exit.
13526
13527 2019-03-06 Tom Tromey <tom@tromey.com>
13528
13529 * solib-svr4.c (disable_probes_interface): Remove parameter.
13530 (svr4_handle_solib_event): Use make_scope_exit.
13531
13532 2019-03-06 Tom Tromey <tom@tromey.com>
13533
13534 * remote.c (struct stop_reply_deleter): Remove.
13535 (stop_reply_up): Update.
13536 (struct stop_reply): Derive from notif_event. Don't typedef.
13537 <regcache>: Now a std::vector.
13538 (stop_reply_xfree): Remove.
13539 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13540 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13541 (remote_target::discard_pending_stop_replies): Use delete.
13542 (remote_target::remote_parse_stop_reply): Update.
13543 (remote_target::process_stop_reply): Update.
13544 * remote-notif.h (struct notif_event): Add virtual destructor.
13545 Remove "dtr" member.
13546 (struct notif_client) <alloc_event>: Return a unique_ptr.
13547 (notif_event_xfree): Don't declare.
13548 (notif_event_up): New typedef.
13549 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13550 (notif_event_xfree, do_notif_event_xfree): Remove.
13551 (remote_notif_state_xfree): Update.
13552
13553 2019-03-06 Tom Tromey <tom@tromey.com>
13554
13555 * infrun.c (displaced_step_clear_cleanup): Now a
13556 forward_scope_exit type.
13557 (displaced_step_prepare_throw): Update.
13558 (displaced_step_fixup): Update.
13559
13560 2019-03-06 Tom Tromey <tom@tromey.com>
13561
13562 * inferior.h (class inferior): Update comment.
13563 * gdbthread.h (class thread_info): Update comment.
13564
13565 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13566 Tom Tromey <tom@tromey.com>
13567
13568 * stabsread.h (struct stab_section_list): Remove.
13569 (coffstab_build_psymtabs): Update.
13570 * dbxread.c (symbuf_sections): Now a std::vector.
13571 (sect_idx): New global.
13572 (fill_symbuf): Update.
13573 (coffstab_build_psymtabs): Change type of stabsects parameter.
13574 Update.
13575 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13576 std::vector.
13577 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13578 (coff_locate_sections): Update.
13579 (coff_symfile_read): Remove cleanups. Update.
13580 (init_stringtab): Add storage parameter.
13581 (free_stringtab, free_stringtab_cleanup): Remove.
13582 (init_lineno): Add storage parameter.
13583 (free_linetab, free_linetab_cleanup): Remove.
13584
13585 2019-03-06 Pedro Alves <palves@redhat.com>
13586
13587 * linux-fork.c (fork_info::clobber_regs): Delete.
13588 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13589 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13590 comment. Adjust.
13591 (scoped_switch_fork_info::scoped_switch_fork_info)
13592 (checkpoint_command, linux_fork_context): Adjust
13593 fork_save_infrun_state calls.
13594
13595 2019-03-06 Pedro Alves <palves@redhat.com>
13596
13597 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13598 (inf_has_multiple_threads): Return 'bool' and rewrite using
13599 inferior_info::threads().
13600
13601 2019-03-06 Pedro Alves <palves@redhat.com>
13602
13603 * linux-fork.c: Include <list>.
13604 (fork_list): Now a std::list instance.
13605 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13606 (forks_exist_p, find_last_fork): Adjust.
13607 (new_fork): Delete.
13608 (one_fork_p): New.
13609 (add_fork): Adjust.
13610 (free_fork): Delete, folded into fork_info::~fork_info().
13611 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13612 Adjust.
13613 (init_fork_list): Delete.
13614 (linux_fork_killall, linux_fork_mourn_inferior)
13615 (linux_fork_detach, info_checkpoints_command): Adjust.
13616 (_initialize_linux_fork): No longer call init_fork_list.
13617
13618 2019-03-06 Pedro Alves <palves@redhat.com>
13619
13620 * linux-fork.c (new_fork): New, split out of ...
13621 (add_fork): ... this. Return void. Move "first fork" special
13622 case from here, to ...
13623 (checkpoint_command): ... here.
13624 * linux-linux.h (add_fork): Return void.
13625
13626 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13627
13628 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13629
13630 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13631 Chris January <chris.january@arm.com>
13632 David Lecomber <david.lecomber@arm.com>
13633
13634 * f-exp.y: New token, UNOP_INTRINSIC.
13635 (exp): New pattern using UNOP_INTRINSIC token.
13636 (f77_keywords): Add 'abs' keyword.
13637 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13638 (value_from_host_double): New function.
13639 (evaluate_subexp_f): Support UNOP_ABS.
13640
13641 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13642
13643 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13644 types.
13645
13646 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13647
13648 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13649 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13650 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13651
13652 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13653
13654 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13655
13656 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13657 Chris January <chris.january@arm.com>
13658
13659 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13660 * f-exp.y: Define 'KIND' token.
13661 (exp): New pattern for KIND expressions.
13662 (ptype): Handle types with a kind extension.
13663 (direct_abs_decl): Extend to spot kind extensions.
13664 (f77_keywords): Add 'kind' to the list.
13665 (push_kind_type): New function.
13666 (convert_to_kind_type): New function.
13667 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13668 * parse.c (operator_length_standard): Likewise.
13669 * parser-defs.h (enum type_pieces): Add tp_kind.
13670 * std-operator.def: Add UNOP_KIND.
13671
13672 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13673
13674 * f-exp.y (f_parse): Set yydebug.
13675
13676 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13677
13678 * f-lang.c (evaluate_subexp_f): New function.
13679 (exp_descriptor_f): New global.
13680 (f_language_defn): Use exp_descriptor_f instead of
13681 exp_descriptor_standard.
13682
13683 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13684
13685 * f-exp.y (struct token): Add comments.
13686 (dot_ops): Remove uppercase versions and the end marker.
13687 (f77_keywords): Likewise.
13688 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13689 entries in the dot_ops array are case insensitive, and use
13690 strncasecmp to compare strings. Also some whitespace cleanup in
13691 this area. Similar for the f77_keywords array, except entries in
13692 this list might be case sensitive.
13693
13694 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13695
13696 * f-exp.y (struct f77_boolean_val): Add comments.
13697 (boolean_values): Remove uppercase versions, and end marker.
13698 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13699 and use strncasecmp to achieve case insensitivity. Additionally,
13700 perform whitespace cleanup around this code.
13701
13702 2019-03-06 Tom Tromey <tromey@adacore.com>
13703
13704 * remote-sim.c (gdbsim_target_open): Use result of
13705 gdb_argv::release.
13706
13707 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13708 Dirk Schubert <dirk.schubert@arm.com>
13709 Chris January <chris.january@arm.com>
13710
13711 * eval.c (evaluate_subexp_standard): Call Fortran argument
13712 wrapping logic.
13713 * f-lang.c (struct value): A value which can be passed into a
13714 Fortran function call.
13715 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13716 where appropriate.
13717 (struct type): Value ready for a Fortran function call.
13718 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13719 is needed.
13720 * f-lang.h (fortran_argument_convert): Declaration.
13721 (fortran_preserve_arg_pointer): Declaration.
13722 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13723
13724 2019-03-05 Tom Tromey <tromey@adacore.com>
13725
13726 * python/py-prettyprint.c (print_string_repr): Remove #if.
13727 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13728
13729 2019-03-05 Tom Tromey <tromey@adacore.com>
13730
13731 * target.c (the_dummy_target): Move later. Change type to
13732 "dummy_target".
13733 (initialize_targets): Don't initialize the_dummy_target.
13734
13735 2019-03-05 Tom Tromey <tromey@adacore.com>
13736
13737 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13738 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13739
13740 2019-03-05 Tom Tromey <tromey@adacore.com>
13741
13742 * windows-nat.c (windows_nat_target::attach)
13743 (windows_nat_target::detach): Don't call gdb_flush.
13744 * valprint.c (generic_val_print, val_print, val_print_string):
13745 Don't call gdb_flush.
13746 * utils.c (defaulted_query): Don't call gdb_flush.
13747 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13748 * target.c (target_announce_detach): Don't call gdb_flush.
13749 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13750 * remote.c (extended_remote_target::attach): Don't call
13751 gdb_flush.
13752 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13753 * printcmd.c (do_examine): Don't call gdb_flush.
13754 (info_display_command): Don't call gdb_flush.
13755 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13756 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13757 * memattr.c (info_mem_command): Don't call gdb_flush.
13758 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13759 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13760 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13761 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13762 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13763 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13764 (gnu_nat_target::detach): Don't call gdb_flush.
13765 * f-valprint.c (f_val_print): Don't call gdb_flush.
13766 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13767 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13768 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13769 gdb_flush.
13770 * c-valprint.c (c_val_print): Don't call gdb_flush.
13771 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13772
13773 2019-03-05 Tom Tromey <tromey@adacore.com>
13774
13775 * varobj.c (update_dynamic_varobj_children): Update.
13776 (install_default_visualizer): Use reset, not release.
13777 * value.c (set_internalvar): Update.
13778 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13779 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13780 ATTRIBUTE_UNUSED_RESULT.
13781
13782 2019-03-05 Tom Tromey <tromey@adacore.com>
13783
13784 * remote.c (class scoped_remote_fd) <release>: Add
13785 ATTRIBUTE_UNUSED_RESULT.
13786
13787 2019-03-05 Tom Tromey <tromey@adacore.com>
13788
13789 * macroexp.c (struct macro_buffer) <release>: Add
13790 ATTRIBUTE_UNUSED_RESULT.
13791
13792 2019-03-05 Tom Tromey <tromey@adacore.com>
13793
13794 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13795 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13796 ATTRIBUTE_UNUSED_RESULT.
13797
13798 2019-03-05 Tom Tromey <tromey@adacore.com>
13799
13800 * common/scoped_fd.h (class scoped_fd) <release>: Add
13801 ATTRIBUTE_UNUSED_RESULT.
13802
13803 2019-03-05 Tom Tromey <tromey@adacore.com>
13804
13805 * parser-defs.h (struct parser_state) <release>: Add
13806 ATTRIBUTE_UNUSED_RESULT.
13807
13808 2019-03-05 Tom Tromey <tromey@adacore.com>
13809
13810 * utils.h (class gdb_argv) <release>: Add
13811 ATTRIBUTE_UNUSED_RESULT.
13812 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13813
13814 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13815
13816 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13817 for-loop range, to avoid compiler warnings.
13818
13819 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13820 avoid compiler warnings about unused variables.
13821
13822 * NEWS: Mention end of support for native debugging on MS-Windows
13823 before XP.
13824
13825 PR gdb/24292
13826 * common/netstuff.c:
13827 * gdbserver/gdbreplay.c
13828 * gdbserver/remote-utils.c:
13829 * ser-tcp.c:
13830 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13831 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13832 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13833 'getaddrinfo' and 'freeaddrinfo' were not available before
13834 Windows XP, and mingw.org's MinGW headers by default define
13835 _WIN32_WINNT to 0x500.
13836
13837 2019-03-01 Gary Benson <gbenson@redhat.com>
13838
13839 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13840
13841 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13842 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13843
13844 PR gdb/8527
13845 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13846 set_sigint_trap, clear_sigint_trap.
13847
13848 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13849
13850 * target.c (target_detach): Clear the regcache and the
13851 frame cache.
13852
13853 2019-02-27 Pedro Alves <palves@redhat.com>
13854
13855 * utils.c (set_screen_size): When we cap the height/width sizes,
13856 tweak the corresponding command variable to show "unlimited":
13857
13858 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13859 Pedro Alves <palves@redhat.com>
13860
13861 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13862 before calling rl_set_screen_size.
13863
13864 2019-02-27 Tom Tromey <tromey@adacore.com>
13865
13866 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13867 define.
13868 * python/py-value.c: Remove Python 2.4 workaround.
13869 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13870 workaround.
13871 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13872 Python 2.4 workaround.
13873 * python/python-internal.h: Remove Python 2.4 comment.
13874 (Py_ssize_t): Don't define.
13875 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13876 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13877 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13878 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13879 * python/python.c (do_start_initialization): Remove Python 2.4
13880 workaround.
13881 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13882 (print_children): Remove Python 2.4 workaround.
13883 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13884 workaround.
13885 (CHARBUFFERPROC_NAME): Remove.
13886 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13887 Python 2.4 workaround.
13888
13889 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13890
13891 * NEWS: Note minimum Python version.
13892
13893 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13894
13895 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13896 code from these functions. Remove corresponding ifdefs. Use
13897 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13898 Remove gotos and target of gotos.
13899 (infpy_search_memory): Likewise.
13900
13901 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13902
13903 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13904 (hppa_gdbarch_init): Don't register deleted functions with
13905 gdbarch.
13906
13907 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13908
13909 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13910 (h8300_unwind_sp): Delete.
13911 (h8300_dummy_id): Delete.
13912 (h8300_gdbarch_init): Don't register deleted functions with
13913 gdbarch.
13914
13915 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13916
13917 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13918 (ft32_unwind_pc): Delete.
13919 (ft32_unwind_sp): Delete.
13920 (ft32_gdbarch_init): Don't register deleted functions with
13921 gdbarch.
13922
13923 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13924
13925 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13926 (frv_unwind_pc): Delete.
13927 (frv_unwind_sp): Delete.
13928 (frv_gdbarch_init): Don't register deleted functions with
13929 gdbarch.
13930
13931 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13932
13933 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13934 (riscv_unwind_pc): Delete.
13935 (riscv_unwind_sp): Delete.
13936 (riscv_gdbarch_init): Don't register deleted functions with
13937 gdbarch.
13938
13939 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13940
13941 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13942 (csky_unwind_pc): Delete.
13943 (csky_unwind_sp): Delete.
13944 (csky_gdbarch_init): Don't register deleted functions with
13945 gdbarch.
13946
13947 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13948
13949 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13950 (cris_unwind_pc): Delete.
13951 (cris_unwind_sp): Delete.
13952 (cris_gdbarch_init): Don't register deleted functions with
13953 gdbarch.
13954
13955 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13956
13957 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13958 (bfin_unwind_pc): Delete.
13959 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13960
13961 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13962
13963 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13964 (arm_unwind_pc): Delete.
13965 (arm_unwind_sp): Delete.
13966 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13967
13968 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13969
13970 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13971 (arc_unwind_pc): Delete.
13972 (arc_unwind_sp): Delete.
13973 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13974
13975 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13976
13977 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13978 (alpha_unwind_pc): Delete.
13979 (alpha_gdbarch_init): Don't register deleted functions with
13980 gdbarch.
13981
13982 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13983
13984 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13985 (aarch64_unwind_pc): Delete.
13986 (aarch64_unwind_sp): Delete.
13987 (aarch64_gdbarch_init): Don't register deleted functions with
13988 gdbarch.
13989
13990 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13991
13992 * gdbtypes.c (type_align): Don't consider static members when
13993 computing structure alignment.
13994
13995 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13996
13997 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13998 return 0 for other types.
13999 * arch-utils.c (default_type_align): Always return 0.
14000 * gdbarch.h: Regenerate.
14001 * gdbarch.sh (type_align): Extend comment.
14002 * gdbtypes.c (type_align): Add additional comments, always call
14003 gdbarch_type_align before applying the default rules.
14004 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14005 generic code will then apply a suitable default.
14006 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14007 types, return 0 for other types.
14008
14009 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14010
14011 * NEWS: Create a new section for the next release branch.
14012 Rename the section of the current branch, now that it has
14013 been cut.
14014
14015 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14016
14017 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14018 * version.in: Bump version to 8.3.50.DATE-git.
14019
14020 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14021
14022 * aix-thread.c (ptid_cmp): Remove unused variable.
14023 (get_signaled_thread): Likewise.
14024 (store_regs_user_thread): Likewise.
14025 (store_regs_kernel_thread): Likewise.
14026 (fetch_regs_kernel_thread): Remove shadowed variable.
14027
14028 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14029
14030 * features/riscv/32bit-cpu.xml: Add register numbers.
14031 * features/riscv/32bit-fpu.c: Regenerate.
14032 * features/riscv/32bit-fpu.xml: Add register numbers.
14033 * features/riscv/64bit-cpu.xml: Add register numbers.
14034 * features/riscv/64bit-fpu.c: Regenerate.
14035 * features/riscv/64bit-fpu.xml: Add register numbers.
14036
14037 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14038
14039 * NEWS: Mention two argument form of gdb.Value constructor.
14040 * python/py-value.c (convert_buffer_and_type_to_value): New
14041 function.
14042 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14043 Add support for handling an optional second argument. Call
14044 convert_buffer_and_type_to_value as appropriate.
14045 * python/python-internal.h (Py_buffer_deleter): New struct.
14046 (Py_buffer_up): New typedef.
14047
14048 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14049
14050 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14051 instead of releasing ownership.
14052
14053 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14054
14055 * dwarf2read.c (open_and_init_dwp_file): Call
14056 elf_numsections instead of bfd_count_sections to initialize
14057 dwp_file->num_sections.
14058
14059 2019-02-25 Tom Tromey <tromey@adacore.com>
14060
14061 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14062
14063 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14064
14065 * gcore.in: Add '--readnever' option when invoking GDB.
14066
14067 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14068
14069 * MAINTAINERS: Update my email address.
14070
14071 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14072
14073 * build-id.c (build_id_to_debug_bfd_1): New function.
14074 (build_id_to_debug_bfd): Look for separate debug file in
14075 sysroot.
14076
14077 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14078
14079 * gdbarch.sh: Update the copyright year range that is placed into
14080 generated files.
14081
14082 2019-02-22 Keith Seitz <keiths@redhat.com>
14083
14084 PR symtab/23853
14085 * linespec.c (create_sals_line_offset): Search for the default
14086 symtab's filename instead of its fullname.
14087
14088 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14089
14090 * NEWS: Update style defaults.
14091
14092 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14093
14094 * main.c (captured_main_1): Disable styling in batch mode.
14095
14096 2019-02-20 Tom Tromey <tom@tromey.com>
14097
14098 * symtab.c (symtab_symbol_info): Fix typos.
14099
14100 2019-02-20 Tom Tromey <tromey@adacore.com>
14101
14102 * findcmd.c (_initialize_mem_search): Use upper case for
14103 metasyntactic variables.
14104
14105 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14106
14107 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14108 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14109
14110 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14111
14112 * top.h (source_file_name): Change to std::string.
14113 * top.c (source_file_name): Likewise.
14114 (command_line_input): Adjust.
14115 * cli/cli-script.c (script_from_file): Adjust.
14116
14117 2019-02-19 Tom Tromey <tromey@adacore.com>
14118
14119 * ravenscar-thread.c
14120 (ravenscar_thread_target::update_thread_list): Don't call
14121 ada_build_task_list.
14122 * ada-lang.h (ada_build_task_list): Don't declare.
14123 * ada-tasks.c (struct ada_tasks_inferior_data)
14124 <task_list_valid_p>: Now bool.
14125 (read_known_tasks, ada_task_list_changed)
14126 (ada_tasks_invalidate_inferior_data): Update.
14127 (read_known_tasks_array): Return bool.
14128 (read_known_tasks_list): Likewise.
14129 (read_known_tasks): Return void.
14130 (ada_build_task_list): Now static.
14131
14132 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14133
14134 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14135 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14136
14137 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14138
14139 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14140 variant for ada_tasks_pspace_data_handle and
14141 ada_tasks_inferior_data_handle.
14142 (ada_tasks_pspace_data_cleanup): New function.
14143 (ada_tasks_inferior_data_cleanup): New function.
14144
14145 2019-02-17 Tom Tromey <tom@tromey.com>
14146
14147 * macrotab.h (macro_source_fullname): Return a std::string.
14148 * macrotab.c (macro_include, check_for_redefinition)
14149 (macro_undef, macro_lookup_definition, foreach_macro)
14150 (foreach_macro_in_scope): Update.
14151 (macro_source_fullname): Return a std::string.
14152 * macrocmd.c (show_pp_source_pos): Update.
14153
14154 2019-02-17 Tom Tromey <tom@tromey.com>
14155
14156 * macrocmd.c (show_pp_source_pos): Style the file names.
14157
14158 2019-02-17 Tom Tromey <tom@tromey.com>
14159
14160 PR tui/24197:
14161 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14162
14163 2019-02-17 Tom Tromey <tom@tromey.com>
14164
14165 * ada-lang.c (user_select_syms): Use filtered printing.
14166 * utils.c (wrap_style): New global.
14167 (desired_style): Remove.
14168 (emit_style_escape): Add stream parameter.
14169 (set_output_style, reset_terminal_style, prompt_for_continue):
14170 Update.
14171 (flush_wrap_buffer): Only flush gdb_stdout.
14172 (wrap_here): Set wrap_style.
14173 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14174 treat escape sequences as a character. Change when wrap buffer is
14175 flushed.
14176 (fputs_styled): Do not set the output style when the default is
14177 requested.
14178 * ui-style.h (struct ui_file_style) <is_default>: New method.
14179 * source.c (print_source_lines_base): Emit escape sequences in one
14180 piece.
14181
14182 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14183
14184 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14185 integers and enumeration types.
14186
14187 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14188
14189 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14190 instead of lookup_symbol_in_language
14191 (do_exact_match): New function.
14192 (ada_get_symbol_name_matcher): Return do_exact_match when
14193 doing a verbatim match.
14194
14195 2019-02-15 Tom Tromey <tromey@adacore.com>
14196
14197 * ravenscar-thread.c (ravenscar_thread_target::resume)
14198 (ravenscar_thread_target::wait): Special case wildcard requests.
14199
14200 2019-02-15 Tom Tromey <tromey@adacore.com>
14201
14202 * ravenscar-thread.c (base_ptid): Remove.
14203 (struct ravenscar_thread_target) <close>: New method.
14204 <m_base_ptid>: New member.
14205 <update_inferior_ptid, active_task, task_is_currently_active,
14206 runtime_initialized>: Declare methods.
14207 <ravenscar_thread_target>: Add constructor.
14208 (ravenscar_thread_target::task_is_currently_active)
14209 (ravenscar_thread_target::update_inferior_ptid)
14210 (ravenscar_runtime_initialized): Rename. Now methods.
14211 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14212 (ravenscar_thread_target::update_thread_list): Update.
14213 (ravenscar_thread_target::active_task): Now method.
14214 (ravenscar_thread_target::store_registers)
14215 (ravenscar_thread_target::prepare_to_store)
14216 (ravenscar_thread_target::prepare_to_store)
14217 (ravenscar_thread_target::mourn_inferior): Update.
14218 (ravenscar_inferior_created): Use "new" to create target.
14219 (ravenscar_thread_target::get_ada_task_ptid): Update.
14220 (_initialize_ravenscar): Don't initialize base_ptid.
14221 (ravenscar_ops): Remove global.
14222
14223 2019-02-15 Tom Tromey <tromey@adacore.com>
14224
14225 * target.h (push_target): Declare new overload.
14226 * target.c (push_target): New overload, taking an rvalue reference.
14227 * remote.c (remote_target::open_1): Use push_target overload.
14228 * corelow.c (core_target_open): Use push_target overload.
14229
14230 2019-02-15 Tom Tromey <tromey@adacore.com>
14231
14232 * ravenscar-thread.c (is_ravenscar_task)
14233 (ravenscar_task_is_currently_active): Return bool.
14234 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14235 (_initialize_ravenscar): Remove "(void)".
14236 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14237 Return bool.
14238
14239 2019-02-15 Tom Tromey <tromey@adacore.com>
14240
14241 * ravenscar-thread.c (ravenscar_runtime_initializer)
14242 (has_ravenscar_runtime, get_running_thread_id)
14243 (ravenscar_thread_target::resume): Fix indentation.
14244
14245 2019-02-15 Tom Tromey <tromey@adacore.com>
14246
14247 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14248 from ravenscar_arch_ops.
14249 (sparc_ravenscar_ops::fetch_registers)
14250 (sparc_ravenscar_ops::store_registers): Now methods.
14251 (sparc_ravenscar_prepare_to_store): Remove.
14252 (sparc_ravenscar_ops): Redefine.
14253 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14254 methods and destructor. Remove members.
14255 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14256 (ravenscar_thread_target::store_registers)
14257 (ravenscar_thread_target::prepare_to_store): Update.
14258 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14259 Remove.
14260 (struct ppc_ravenscar_powerpc_ops): Derive from
14261 ravenscar_arch_ops.
14262 (ppc_ravenscar_powerpc_ops::fetch_registers)
14263 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14264 (ppc_ravenscar_powerpc_ops): Redefine.
14265 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14266 (ppc_ravenscar_e500_ops::fetch_registers)
14267 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14268 (ppc_ravenscar_e500_ops): Redefine.
14269 * aarch64-ravenscar-thread.c
14270 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14271 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14272 (aarch64_ravenscar_fetch_registers)
14273 (aarch64_ravenscar_store_registers): Now methods.
14274 (aarch64_ravenscar_ops): Redefine.
14275
14276 2019-02-15 Tom Tromey <tromey@adacore.com>
14277
14278 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14279 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14280 (ravenscar_thread_target::stopped_by_watchpoint)
14281 (ravenscar_thread_target::stopped_data_address)
14282 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14283
14284 2019-02-15 Tom Tromey <tromey@adacore.com>
14285
14286 * ravenscar-thread.c: Fix some typos.
14287
14288 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14289 Tom Tromey <tromey@adacore.com>
14290
14291 * ada-lang.c (ada_exception_sal): Change addr_string to a
14292 std::string.
14293 (create_ada_exception_catchpoint): Update.
14294
14295 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14296 Tom Tromey <tromey@adacore.com>
14297
14298 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14299 (bp_location_ops): Remove.
14300 (base_breakpoint_allocate_location): Update.
14301 (free_bp_location): Update.
14302 * ada-lang.c (class ada_catchpoint_location)
14303 <ada_catchpoint_location>: Remove ops parameter.
14304 (ada_catchpoint_location_dtor): Remove.
14305 (ada_catchpoint_location_ops): Remove.
14306 (allocate_location_exception): Update.
14307 * breakpoint.h (struct bp_location_ops): Remove.
14308 (class bp_location) <bp_location>: Remove bp_location_ops
14309 parameter.
14310 <~bp_location>: Add destructor.
14311 <ops>: Remove.
14312
14313 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14314 Pedro Alves <palves@redhat.com>
14315
14316 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14317 'PATH_MAX'.
14318
14319 2019-02-14 David Michael <fedora.dm0@gmail.com>
14320 Samuel Thibault <samuel.thibault@gnu.org>
14321 Thomas Schwinge <thomas@codesourcery.com>
14322
14323 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14324 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14325
14326 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14327
14328 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14329 (check_empty): Use "const char *".
14330
14331 * gnu-nat.c (gnu_nat_target::detach): Instead of
14332 'detach_inferior (pid)' call
14333 'detach_inferior (find_inferior_pid (pid))'.
14334
14335 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14336 'nat/fork-inferior.o'.
14337 * gnu-nat.c: #include "nat/fork-inferior.h".
14338
14339 * gnu-nat.c (gnu_nat_target::detach): Instead of
14340 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14341 * gnu-nat.h: #include "inf-child.h".
14342 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14343 'i386_gnu_nat_target::fetch_registers'.
14344 (gnu_store_registers): Rename/move to
14345 'i386_gnu_nat_target::store_registers'.
14346
14347 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14348 * gnu-nat.h (mach_thread_info): New function.
14349 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14350
14351 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14352
14353 2019-02-14 Frederic Konrad <konrad@adacore.com>
14354
14355 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14356
14357 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14358
14359 * windows-nat.c (windows_add_thread): Add new parameter
14360 "main_thread_p" with default value set to false. Update
14361 function documentation as well as all callers.
14362 (windows_delete_thread): Likewise.
14363 (fake_create_process): Update call to windows_add_thread.
14364 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14365 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14366 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14367 call to windows_delete_thread.
14368
14369 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14370
14371 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14372
14373 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14374
14375 * symfile.c (find_separate_debug_file): Use canonical path of
14376 sysroot with child_path instead of gdb_sysroot if it is valid.
14377
14378 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14379
14380 * symfile.c (find_separate_debug_file): Use child_path to
14381 determine if an object file is under a sysroot.
14382
14383 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14384
14385 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14386 unittests/child-path-selftests.c.
14387 * common/pathstuff.c (child_path): New function.
14388 * common/pathstuff.h (child_path): New prototype.
14389 * unittests/child-path-selftests.c: New file.
14390
14391 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14392
14393 * symfile.c (find_separate_debug_file): Look for separate debug
14394 files in debug directories under the sysroot.
14395
14396 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14397
14398 * symtab.h (struct minimal_symbol data_p): New const method.
14399 (struct minimal_symbol text_p): Likewise.
14400 * symtab.c (output_source_filename): Use file name style
14401 to print file name.
14402 (print_symbol_info): Likewise.
14403 (print_msymbol_info): Use address style to print addresses.
14404 Use function name style to print executable text symbols.
14405 (expand_symtab_containing_pc): Use data_p.
14406 (find_pc_sect_compunit_symtab): Likewise.
14407
14408 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14409
14410 * breakpoint.c (describe_other_breakpoints): Use address style
14411 to print addresses.
14412 (say_where): Likewise.
14413
14414 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14415
14416 * ada-typeprint.c (print_func_type): Print function name
14417 style to print function name.
14418 * c-typeprint.c (c_print_type_1): Likewise.
14419
14420 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14421
14422 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14423 for execve.
14424
14425 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14426
14427 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14428 type_stack.
14429
14430 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14431
14432 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14433 TYPE_CODE_REF types.
14434
14435 2019-02-08 Jim Wilson <jimw@sifive.com>
14436
14437 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14438 (riscv_linux_fregset): New.
14439 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14440
14441 2019-02-07 Tom Tromey <tom@tromey.com>
14442
14443 * thread.c (thread_cancel_execution_command): Update.
14444 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14445 methods.
14446 (struct thread_fsm_ops): Remove.
14447 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14448 (thread_fsm_should_stop, thread_fsm_return_value)
14449 (thread_fsm_set_finished, thread_fsm_finished_p)
14450 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14451 Don't declare.
14452 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14453 * infrun.c (clear_proceed_status_thread)
14454 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14455 (print_stop_event): Update.
14456 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14457 Add constructor.
14458 (step_command_fsm_ops): Remove.
14459 (new_step_command_fsm): Remove.
14460 (step_1): Update.
14461 (step_command_fsm::should_stop): Rename from
14462 step_command_fsm_should_stop.
14463 (step_command_fsm::clean_up): Rename from
14464 step_command_fsm_clean_up.
14465 (step_command_fsm::do_async_reply_reason): Rename from
14466 step_command_fsm_async_reply_reason.
14467 (struct until_next_fsm): Inherit from thread_fsm. Add
14468 constructor.
14469 (until_next_fsm_ops): Remove.
14470 (new_until_next_fsm): Remove.
14471 (until_next_fsm::should_stop): Rename from
14472 until_next_fsm_should_stop.
14473 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14474 (until_next_fsm::do_async_reply_reason): Rename from
14475 until_next_fsm_async_reply_reason.
14476 (struct finish_command_fsm): Inherit from thread_fsm. Add
14477 constructor. Change type of breakpoint.
14478 (finish_command_fsm_ops): Remove.
14479 (new_finish_command_fsm): Remove.
14480 (finish_command_fsm::should_stop): Rename from
14481 finish_command_fsm_should_stop.
14482 (finish_command_fsm::clean_up): Rename from
14483 finish_command_fsm_clean_up.
14484 (finish_command_fsm::return_value): Rename from
14485 finish_command_fsm_return_value.
14486 (finish_command_fsm::do_async_reply_reason): Rename from
14487 finish_command_fsm_async_reply_reason.
14488 (finish_command): Update.
14489 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14490 Add constructor.
14491 (call_thread_fsm_ops): Remove.
14492 (call_thread_fsm::call_thread_fsm): Rename from
14493 new_call_thread_fsm.
14494 (call_thread_fsm::should_stop): Rename from
14495 call_thread_fsm_should_stop.
14496 (call_thread_fsm::should_notify_stop): Rename from
14497 call_thread_fsm_should_notify_stop.
14498 (run_inferior_call, call_function_by_hand_dummy): Update.
14499 * cli/cli-interp.c (should_print_stop_to_console): Update.
14500 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14501 Add constructor. Change type of location_breakpoint,
14502 caller_breakpoint.
14503 (until_break_fsm_ops): Remove.
14504 (new_until_break_fsm): Remove.
14505 (until_break_fsm::should_stop): Rename from
14506 until_break_fsm_should_stop.
14507 (until_break_fsm::clean_up): Rename from
14508 until_break_fsm_clean_up.
14509 (until_break_fsm::do_async_reply_reason): Rename from
14510 until_break_fsm_async_reply_reason.
14511 (until_break_command): Update.
14512 * thread-fsm.c: Remove.
14513 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14514
14515 2019-02-07 Tom Tromey <tom@tromey.com>
14516
14517 * yy-remap.h: Add include guard.
14518 * xtensa-tdep.h: Add include guard.
14519 * xcoffread.h: Rename include guard.
14520 * varobj-iter.h: Add include guard.
14521 * tui/tui.h: Rename include guard.
14522 * tui/tui-winsource.h: Rename include guard.
14523 * tui/tui-wingeneral.h: Rename include guard.
14524 * tui/tui-windata.h: Rename include guard.
14525 * tui/tui-win.h: Rename include guard.
14526 * tui/tui-stack.h: Rename include guard.
14527 * tui/tui-source.h: Rename include guard.
14528 * tui/tui-regs.h: Rename include guard.
14529 * tui/tui-out.h: Rename include guard.
14530 * tui/tui-layout.h: Rename include guard.
14531 * tui/tui-io.h: Rename include guard.
14532 * tui/tui-hooks.h: Rename include guard.
14533 * tui/tui-file.h: Rename include guard.
14534 * tui/tui-disasm.h: Rename include guard.
14535 * tui/tui-data.h: Rename include guard.
14536 * tui/tui-command.h: Rename include guard.
14537 * tic6x-tdep.h: Add include guard.
14538 * target/waitstatus.h: Rename include guard.
14539 * target/wait.h: Rename include guard.
14540 * target/target.h: Rename include guard.
14541 * target/resume.h: Rename include guard.
14542 * target-float.h: Rename include guard.
14543 * stabsread.h: Add include guard.
14544 * rs6000-tdep.h: Add include guard.
14545 * riscv-fbsd-tdep.h: Add include guard.
14546 * regformats/regdef.h: Rename include guard.
14547 * record.h: Rename include guard.
14548 * python/python.h: Rename include guard.
14549 * python/python-internal.h: Rename include guard.
14550 * python/py-stopevent.h: Rename include guard.
14551 * python/py-ref.h: Rename include guard.
14552 * python/py-record.h: Rename include guard.
14553 * python/py-record-full.h: Rename include guard.
14554 * python/py-record-btrace.h: Rename include guard.
14555 * python/py-instruction.h: Rename include guard.
14556 * python/py-events.h: Rename include guard.
14557 * python/py-event.h: Rename include guard.
14558 * procfs.h: Add include guard.
14559 * proc-utils.h: Add include guard.
14560 * p-lang.h: Add include guard.
14561 * or1k-tdep.h: Rename include guard.
14562 * observable.h: Rename include guard.
14563 * nto-tdep.h: Rename include guard.
14564 * nat/x86-linux.h: Rename include guard.
14565 * nat/x86-linux-dregs.h: Rename include guard.
14566 * nat/x86-gcc-cpuid.h: Add include guard.
14567 * nat/x86-dregs.h: Rename include guard.
14568 * nat/x86-cpuid.h: Rename include guard.
14569 * nat/ppc-linux.h: Rename include guard.
14570 * nat/mips-linux-watch.h: Rename include guard.
14571 * nat/linux-waitpid.h: Rename include guard.
14572 * nat/linux-ptrace.h: Rename include guard.
14573 * nat/linux-procfs.h: Rename include guard.
14574 * nat/linux-osdata.h: Rename include guard.
14575 * nat/linux-nat.h: Rename include guard.
14576 * nat/linux-namespaces.h: Rename include guard.
14577 * nat/linux-btrace.h: Rename include guard.
14578 * nat/glibc_thread_db.h: Rename include guard.
14579 * nat/gdb_thread_db.h: Rename include guard.
14580 * nat/gdb_ptrace.h: Rename include guard.
14581 * nat/fork-inferior.h: Rename include guard.
14582 * nat/amd64-linux-siginfo.h: Rename include guard.
14583 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14584 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14585 * nat/aarch64-linux.h: Rename include guard.
14586 * nat/aarch64-linux-hw-point.h: Rename include guard.
14587 * mn10300-tdep.h: Add include guard.
14588 * mips-linux-tdep.h: Add include guard.
14589 * mi/mi-parse.h: Rename include guard.
14590 * mi/mi-out.h: Rename include guard.
14591 * mi/mi-main.h: Rename include guard.
14592 * mi/mi-interp.h: Rename include guard.
14593 * mi/mi-getopt.h: Rename include guard.
14594 * mi/mi-console.h: Rename include guard.
14595 * mi/mi-common.h: Rename include guard.
14596 * mi/mi-cmds.h: Rename include guard.
14597 * mi/mi-cmd-break.h: Rename include guard.
14598 * m2-lang.h: Add include guard.
14599 * location.h: Rename include guard.
14600 * linux-record.h: Rename include guard.
14601 * linux-nat.h: Add include guard.
14602 * linux-fork.h: Add include guard.
14603 * i386-darwin-tdep.h: Rename include guard.
14604 * hppa-linux-offsets.h: Add include guard.
14605 * guile/guile.h: Rename include guard.
14606 * guile/guile-internal.h: Rename include guard.
14607 * gnu-nat.h: Rename include guard.
14608 * gdb-stabs.h: Rename include guard.
14609 * frv-tdep.h: Add include guard.
14610 * f-lang.h: Add include guard.
14611 * event-loop.h: Add include guard.
14612 * darwin-nat.h: Rename include guard.
14613 * cp-abi.h: Rename include guard.
14614 * config/sparc/nm-sol2.h: Rename include guard.
14615 * config/nm-nto.h: Rename include guard.
14616 * config/nm-linux.h: Add include guard.
14617 * config/i386/nm-i386gnu.h: Rename include guard.
14618 * config/djgpp/nl_types.h: Rename include guard.
14619 * config/djgpp/langinfo.h: Rename include guard.
14620 * compile/gcc-cp-plugin.h: Add include guard.
14621 * compile/gcc-c-plugin.h: Add include guard.
14622 * compile/compile.h: Rename include guard.
14623 * compile/compile-object-run.h: Rename include guard.
14624 * compile/compile-object-load.h: Rename include guard.
14625 * compile/compile-internal.h: Rename include guard.
14626 * compile/compile-cplus.h: Rename include guard.
14627 * compile/compile-c.h: Rename include guard.
14628 * common/xml-utils.h: Rename include guard.
14629 * common/x86-xstate.h: Rename include guard.
14630 * common/version.h: Rename include guard.
14631 * common/vec.h: Rename include guard.
14632 * common/tdesc.h: Rename include guard.
14633 * common/selftest.h: Rename include guard.
14634 * common/scoped_restore.h: Rename include guard.
14635 * common/scoped_mmap.h: Rename include guard.
14636 * common/scoped_fd.h: Rename include guard.
14637 * common/safe-iterator.h: Rename include guard.
14638 * common/run-time-clock.h: Rename include guard.
14639 * common/refcounted-object.h: Rename include guard.
14640 * common/queue.h: Rename include guard.
14641 * common/ptid.h: Rename include guard.
14642 * common/print-utils.h: Rename include guard.
14643 * common/preprocessor.h: Rename include guard.
14644 * common/pathstuff.h: Rename include guard.
14645 * common/observable.h: Rename include guard.
14646 * common/netstuff.h: Rename include guard.
14647 * common/job-control.h: Rename include guard.
14648 * common/host-defs.h: Rename include guard.
14649 * common/gdb_wait.h: Rename include guard.
14650 * common/gdb_vecs.h: Rename include guard.
14651 * common/gdb_unlinker.h: Rename include guard.
14652 * common/gdb_unique_ptr.h: Rename include guard.
14653 * common/gdb_tilde_expand.h: Rename include guard.
14654 * common/gdb_sys_time.h: Rename include guard.
14655 * common/gdb_string_view.h: Rename include guard.
14656 * common/gdb_splay_tree.h: Rename include guard.
14657 * common/gdb_setjmp.h: Rename include guard.
14658 * common/gdb_ref_ptr.h: Rename include guard.
14659 * common/gdb_optional.h: Rename include guard.
14660 * common/gdb_locale.h: Rename include guard.
14661 * common/gdb_assert.h: Rename include guard.
14662 * common/filtered-iterator.h: Rename include guard.
14663 * common/filestuff.h: Rename include guard.
14664 * common/fileio.h: Rename include guard.
14665 * common/environ.h: Rename include guard.
14666 * common/common-utils.h: Rename include guard.
14667 * common/common-types.h: Rename include guard.
14668 * common/common-regcache.h: Rename include guard.
14669 * common/common-inferior.h: Rename include guard.
14670 * common/common-gdbthread.h: Rename include guard.
14671 * common/common-exceptions.h: Rename include guard.
14672 * common/common-defs.h: Rename include guard.
14673 * common/common-debug.h: Rename include guard.
14674 * common/cleanups.h: Rename include guard.
14675 * common/buffer.h: Rename include guard.
14676 * common/btrace-common.h: Rename include guard.
14677 * common/break-common.h: Rename include guard.
14678 * cli/cli-utils.h: Rename include guard.
14679 * cli/cli-style.h: Rename include guard.
14680 * cli/cli-setshow.h: Rename include guard.
14681 * cli/cli-script.h: Rename include guard.
14682 * cli/cli-interp.h: Rename include guard.
14683 * cli/cli-decode.h: Rename include guard.
14684 * cli/cli-cmds.h: Rename include guard.
14685 * charset-list.h: Add include guard.
14686 * buildsym-legacy.h: Rename include guard.
14687 * bfin-tdep.h: Add include guard.
14688 * ax.h: Rename include guard.
14689 * arm-linux-tdep.h: Add include guard.
14690 * arm-fbsd-tdep.h: Add include guard.
14691 * arch/xtensa.h: Rename include guard.
14692 * arch/tic6x.h: Add include guard.
14693 * arch/i386.h: Add include guard.
14694 * arch/arm.h: Rename include guard.
14695 * arch/arm-linux.h: Rename include guard.
14696 * arch/arm-get-next-pcs.h: Rename include guard.
14697 * arch/amd64.h: Add include guard.
14698 * arch/aarch64-insn.h: Rename include guard.
14699 * arch-utils.h: Rename include guard.
14700 * annotate.h: Add include guard.
14701 * amd64-darwin-tdep.h: Rename include guard.
14702 * aarch64-linux-tdep.h: Add include guard.
14703 * aarch64-fbsd-tdep.h: Add include guard.
14704 * aarch32-linux-nat.h: Add include guard.
14705
14706 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14707
14708 * macrotab.c (macro_define_internal): New function that
14709 factorizes macro_define_object_internal and macro_define_function
14710 code.
14711 (macro_define_object_internal): Use macro_define_internal.
14712 (macro_define_function): Likewise.
14713
14714 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14715
14716 * macrocmd.c (extract_identifier): Return
14717 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14718 callers.
14719
14720 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14721
14722 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14723
14724 2019-02-05 Tom Tromey <tom@tromey.com>
14725
14726 * target.c (target_stack::unpush): Move assertion earlier.
14727
14728 2019-01-30 Tom Tromey <tom@tromey.com>
14729
14730 PR python/23615:
14731 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14732 (gdbpy_parse_and_eval): Likewise.
14733 * python/python-internal.h (gdbpy_allow_threads): New class.
14734
14735 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14736
14737 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14738 (aarch64_fbsd_fpregmap): Move earlier.
14739 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14740 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14741 instead of individual calls to trad_frame_set_reg_addr.
14742 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14743 earlier.
14744 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14745 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14746 instead of individual calls to trad_frame_set_reg_addr.
14747
14748 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14749
14750 * CONTRIBUTE: Replace contribution list with wiki link.
14751
14752 2019-01-25 Tom Tromey <tom@tromey.com>
14753
14754 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14755
14756 2019-01-25 Tom Tromey <tom@tromey.com>
14757
14758 * xtensa-linux-nat.c: Fix common/ includes.
14759 * xml-support.h: Fix common/ includes.
14760 * xml-support.c: Fix common/ includes.
14761 * x86-linux-nat.c: Fix common/ includes.
14762 * windows-nat.c: Fix common/ includes.
14763 * varobj.h: Fix common/ includes.
14764 * varobj.c: Fix common/ includes.
14765 * value.c: Fix common/ includes.
14766 * valops.c: Fix common/ includes.
14767 * utils.c: Fix common/ includes.
14768 * unittests/xml-utils-selftests.c: Fix common/ includes.
14769 * unittests/utils-selftests.c: Fix common/ includes.
14770 * unittests/unpack-selftests.c: Fix common/ includes.
14771 * unittests/tracepoint-selftests.c: Fix common/ includes.
14772 * unittests/style-selftests.c: Fix common/ includes.
14773 * unittests/string_view-selftests.c: Fix common/ includes.
14774 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14775 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14776 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14777 * unittests/rsp-low-selftests.c: Fix common/ includes.
14778 * unittests/parse-connection-spec-selftests.c: Fix common/
14779 includes.
14780 * unittests/optional-selftests.c: Fix common/ includes.
14781 * unittests/offset-type-selftests.c: Fix common/ includes.
14782 * unittests/observable-selftests.c: Fix common/ includes.
14783 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14784 * unittests/memrange-selftests.c: Fix common/ includes.
14785 * unittests/memory-map-selftests.c: Fix common/ includes.
14786 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14787 * unittests/function-view-selftests.c: Fix common/ includes.
14788 * unittests/environ-selftests.c: Fix common/ includes.
14789 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14790 * unittests/common-utils-selftests.c: Fix common/ includes.
14791 * unittests/cli-utils-selftests.c: Fix common/ includes.
14792 * unittests/array-view-selftests.c: Fix common/ includes.
14793 * ui-file.c: Fix common/ includes.
14794 * tui/tui-io.c: Fix common/ includes.
14795 * tracepoint.h: Fix common/ includes.
14796 * tracepoint.c: Fix common/ includes.
14797 * tracefile-tfile.c: Fix common/ includes.
14798 * top.h: Fix common/ includes.
14799 * top.c: Fix common/ includes.
14800 * thread.c: Fix common/ includes.
14801 * target/waitstatus.h: Fix common/ includes.
14802 * target/waitstatus.c: Fix common/ includes.
14803 * target.h: Fix common/ includes.
14804 * target.c: Fix common/ includes.
14805 * target-memory.c: Fix common/ includes.
14806 * target-descriptions.c: Fix common/ includes.
14807 * symtab.h: Fix common/ includes.
14808 * symfile.c: Fix common/ includes.
14809 * stap-probe.c: Fix common/ includes.
14810 * spu-linux-nat.c: Fix common/ includes.
14811 * sparc-nat.c: Fix common/ includes.
14812 * source.c: Fix common/ includes.
14813 * solib.c: Fix common/ includes.
14814 * solib-target.c: Fix common/ includes.
14815 * ser-unix.c: Fix common/ includes.
14816 * ser-tcp.c: Fix common/ includes.
14817 * ser-pipe.c: Fix common/ includes.
14818 * ser-base.c: Fix common/ includes.
14819 * selftest-arch.c: Fix common/ includes.
14820 * s12z-tdep.c: Fix common/ includes.
14821 * rust-exp.y: Fix common/ includes.
14822 * rs6000-aix-tdep.c: Fix common/ includes.
14823 * riscv-tdep.c: Fix common/ includes.
14824 * remote.c: Fix common/ includes.
14825 * remote-notif.h: Fix common/ includes.
14826 * remote-fileio.h: Fix common/ includes.
14827 * remote-fileio.c: Fix common/ includes.
14828 * regcache.h: Fix common/ includes.
14829 * regcache.c: Fix common/ includes.
14830 * record-btrace.c: Fix common/ includes.
14831 * python/python.c: Fix common/ includes.
14832 * python/py-type.c: Fix common/ includes.
14833 * python/py-inferior.c: Fix common/ includes.
14834 * progspace.h: Fix common/ includes.
14835 * producer.c: Fix common/ includes.
14836 * procfs.c: Fix common/ includes.
14837 * proc-api.c: Fix common/ includes.
14838 * printcmd.c: Fix common/ includes.
14839 * ppc-linux-nat.c: Fix common/ includes.
14840 * parser-defs.h: Fix common/ includes.
14841 * osdata.c: Fix common/ includes.
14842 * obsd-nat.c: Fix common/ includes.
14843 * nat/x86-linux.c: Fix common/ includes.
14844 * nat/x86-linux-dregs.c: Fix common/ includes.
14845 * nat/x86-dregs.h: Fix common/ includes.
14846 * nat/x86-dregs.c: Fix common/ includes.
14847 * nat/ppc-linux.c: Fix common/ includes.
14848 * nat/mips-linux-watch.h: Fix common/ includes.
14849 * nat/mips-linux-watch.c: Fix common/ includes.
14850 * nat/linux-waitpid.c: Fix common/ includes.
14851 * nat/linux-ptrace.h: Fix common/ includes.
14852 * nat/linux-ptrace.c: Fix common/ includes.
14853 * nat/linux-procfs.c: Fix common/ includes.
14854 * nat/linux-personality.c: Fix common/ includes.
14855 * nat/linux-osdata.c: Fix common/ includes.
14856 * nat/linux-namespaces.c: Fix common/ includes.
14857 * nat/linux-btrace.h: Fix common/ includes.
14858 * nat/linux-btrace.c: Fix common/ includes.
14859 * nat/fork-inferior.c: Fix common/ includes.
14860 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14861 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14862 * nat/aarch64-linux.c: Fix common/ includes.
14863 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14864 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14865 * namespace.h: Fix common/ includes.
14866 * mips-linux-tdep.c: Fix common/ includes.
14867 * minsyms.c: Fix common/ includes.
14868 * mi/mi-parse.h: Fix common/ includes.
14869 * mi/mi-main.c: Fix common/ includes.
14870 * mi/mi-cmd-env.c: Fix common/ includes.
14871 * memrange.h: Fix common/ includes.
14872 * memattr.c: Fix common/ includes.
14873 * maint.h: Fix common/ includes.
14874 * maint.c: Fix common/ includes.
14875 * main.c: Fix common/ includes.
14876 * machoread.c: Fix common/ includes.
14877 * location.c: Fix common/ includes.
14878 * linux-thread-db.c: Fix common/ includes.
14879 * linux-nat.c: Fix common/ includes.
14880 * linux-fork.c: Fix common/ includes.
14881 * inline-frame.c: Fix common/ includes.
14882 * infrun.c: Fix common/ includes.
14883 * inflow.c: Fix common/ includes.
14884 * inferior.h: Fix common/ includes.
14885 * inferior.c: Fix common/ includes.
14886 * infcmd.c: Fix common/ includes.
14887 * inf-ptrace.c: Fix common/ includes.
14888 * inf-child.c: Fix common/ includes.
14889 * ia64-linux-nat.c: Fix common/ includes.
14890 * i387-tdep.c: Fix common/ includes.
14891 * i386-tdep.c: Fix common/ includes.
14892 * i386-linux-tdep.c: Fix common/ includes.
14893 * i386-linux-nat.c: Fix common/ includes.
14894 * i386-go32-tdep.c: Fix common/ includes.
14895 * i386-fbsd-tdep.c: Fix common/ includes.
14896 * i386-fbsd-nat.c: Fix common/ includes.
14897 * guile/scm-type.c: Fix common/ includes.
14898 * guile/guile.c: Fix common/ includes.
14899 * go32-nat.c: Fix common/ includes.
14900 * gnu-nat.c: Fix common/ includes.
14901 * gdbthread.h: Fix common/ includes.
14902 * gdbarch-selftests.c: Fix common/ includes.
14903 * gdb_usleep.c: Fix common/ includes.
14904 * gdb_select.h: Fix common/ includes.
14905 * gdb_bfd.c: Fix common/ includes.
14906 * gcore.c: Fix common/ includes.
14907 * fork-child.c: Fix common/ includes.
14908 * findvar.c: Fix common/ includes.
14909 * fbsd-nat.c: Fix common/ includes.
14910 * event-top.c: Fix common/ includes.
14911 * event-loop.c: Fix common/ includes.
14912 * dwarf2read.c: Fix common/ includes.
14913 * dwarf2loc.c: Fix common/ includes.
14914 * dwarf2-frame.c: Fix common/ includes.
14915 * dwarf-index-cache.c: Fix common/ includes.
14916 * dtrace-probe.c: Fix common/ includes.
14917 * disasm-selftests.c: Fix common/ includes.
14918 * defs.h: Fix common/ includes.
14919 * csky-tdep.c: Fix common/ includes.
14920 * cp-valprint.c: Fix common/ includes.
14921 * cp-support.h: Fix common/ includes.
14922 * cp-support.c: Fix common/ includes.
14923 * corelow.c: Fix common/ includes.
14924 * completer.h: Fix common/ includes.
14925 * completer.c: Fix common/ includes.
14926 * compile/compile.c: Fix common/ includes.
14927 * compile/compile-loc2c.c: Fix common/ includes.
14928 * compile/compile-cplus-types.c: Fix common/ includes.
14929 * compile/compile-cplus-symbols.c: Fix common/ includes.
14930 * command.h: Fix common/ includes.
14931 * cli/cli-dump.c: Fix common/ includes.
14932 * cli/cli-cmds.c: Fix common/ includes.
14933 * charset.c: Fix common/ includes.
14934 * build-id.c: Fix common/ includes.
14935 * btrace.h: Fix common/ includes.
14936 * btrace.c: Fix common/ includes.
14937 * breakpoint.h: Fix common/ includes.
14938 * breakpoint.c: Fix common/ includes.
14939 * ax.h:
14940 (enum agent_op): Fix common/ includes.
14941 * ax-general.c (struct aop_map): Fix common/ includes.
14942 * ax-gdb.c: Fix common/ includes.
14943 * auxv.c: Fix common/ includes.
14944 * auto-load.c: Fix common/ includes.
14945 * arm-tdep.c: Fix common/ includes.
14946 * arch/riscv.c: Fix common/ includes.
14947 * arch/ppc-linux-common.c: Fix common/ includes.
14948 * arch/i386.c: Fix common/ includes.
14949 * arch/arm.c: Fix common/ includes.
14950 * arch/arm-linux.c: Fix common/ includes.
14951 * arch/arm-get-next-pcs.c: Fix common/ includes.
14952 * arch/amd64.c: Fix common/ includes.
14953 * arch/aarch64.c: Fix common/ includes.
14954 * arch/aarch64-insn.c: Fix common/ includes.
14955 * arch-utils.c: Fix common/ includes.
14956 * amd64-windows-tdep.c: Fix common/ includes.
14957 * amd64-tdep.c: Fix common/ includes.
14958 * amd64-sol2-tdep.c: Fix common/ includes.
14959 * amd64-obsd-tdep.c: Fix common/ includes.
14960 * amd64-nbsd-tdep.c: Fix common/ includes.
14961 * amd64-linux-tdep.c: Fix common/ includes.
14962 * amd64-linux-nat.c: Fix common/ includes.
14963 * amd64-fbsd-tdep.c: Fix common/ includes.
14964 * amd64-fbsd-nat.c: Fix common/ includes.
14965 * amd64-dicos-tdep.c: Fix common/ includes.
14966 * amd64-darwin-tdep.c: Fix common/ includes.
14967 * agent.c: Fix common/ includes.
14968 * ada-lang.h: Fix common/ includes.
14969 * ada-lang.c: Fix common/ includes.
14970 * aarch64-tdep.c: Fix common/ includes.
14971
14972 2019-01-25 Tom Tromey <tom@tromey.com>
14973
14974 * common/create-version.sh: Use common/version.h.
14975
14976 2019-01-24 Pedro Alves <palves@redhat.com>
14977
14978 * infrun.c (signal_stop, signal_print, signal_program)
14979 (signal_catch, signal_pass): Now arrays instead of pointers.
14980 (update_signals_program_target, do_target_resume)
14981 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14982 * linux-nat.c (linux_nat_target::pass_signals)
14983 (linux_nat_target::create_inferior, linux_nat_target::attach):
14984 Adjust.
14985 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14986 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14987 * procfs.c (procfs_target::pass_signals): Adjust.
14988 * record-full.c (record_full_target::resume): Adjust.
14989 * remote.c (remote_target::pass_signals)
14990 (remote_target::program_signals): Adjust.
14991 * target-debug.h (target_debug_print_signals): Now takes a
14992 gdb::array_view as parameter. Adjust.
14993 * target.h (target_ops) <pass_signals, program_signals>: Replace
14994 pointer and length parameters with gdb::array_view.
14995 (target_pass_signals, target_program_signals): Likewise.
14996 * target-delegates.c: Regenerate.
14997
14998 2019-01-24 Pedro Alves <palves@redhat.com>
14999
15000 * common/forward-scope-exit.h
15001 (forward_scope_exit::forward_scope_exit): Pass arguments to
15002 m_bind_function directly, instead of creating a std::bind and
15003 copying that.
15004
15005 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15006
15007 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15008 for static members.
15009 (pass_in_v_vfp_candidate): Likewise.
15010
15011 2019-01-23 Tom Tromey <tom@tromey.com>
15012 Pedro Alves <palves@redhat.com>
15013
15014 * regcache.c (class regcache_invalidator): Remove.
15015 (regcache::raw_write): Use make_scope_exit.
15016
15017 2019-01-23 Tom Tromey <tom@tromey.com>
15018
15019 * ui-out.h (class ui_out_emit_type): Update comment.
15020
15021 2019-01-23 Tom Tromey <tom@tromey.com>
15022
15023 * infrun.c (fetch_inferior_event): Update comment.
15024
15025 2019-01-23 Tom Tromey <tom@tromey.com>
15026 Pedro Alves <palves@redhat.com>
15027
15028 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15029 parameter.
15030 (fetch_inferior_event): Use SCOPE_EXIT.
15031
15032
15033 2019-01-23 Tom Tromey <tom@tromey.com>
15034 Pedro Alves <palves@redhat.com>
15035
15036 * infrun.c (disable_thread_events): Delete.
15037 (stop_all_threads): Use SCOPE_EXIT.
15038
15039 2019-01-23 Tom Tromey <tom@tromey.com>
15040 Pedro Alves <palves@redhat.com>
15041
15042 * symfile.c: Include forward-scope-exit.h.
15043 (clear_symtab_users_cleanup): Replace forward declaration with
15044 a FORWARD_SCOPE_EXIT.
15045 (syms_from_objfile_1): Use the forward_scope_exit and
15046 gdb::optional instead of cleanup_function.
15047 (reread_symbols): Use the forward_scope_exit instead of
15048 cleanup_function.
15049 (clear_symtab_users_cleanup): Remove function.
15050
15051 2019-01-23 Tom Tromey <tom@tromey.com>
15052 Pedro Alves <palves@redhat.com>
15053
15054 * linux-nat.c: Include scope-exit.h.
15055 (cleanup_target_stop): Remove.
15056 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15057 SCOPE_EXIT.
15058
15059 2019-01-23 Tom Tromey <tom@tromey.com>
15060 Pedro Alves <palves@redhat.com>
15061
15062 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15063 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15064
15065 2019-01-23 Tom Tromey <tom@tromey.com>
15066 Andrew Burgess <andrew.burgess@embecosm.com>
15067 Pedro Alves <palves@redhat.com>
15068
15069 * infrun.c (fetch_inferior_event): Use scope_exit.
15070 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15071 * top.c (execute_command): Use scope_exit.
15072 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15073 * utils.c (do_bpstat_clear_actions_cleanup)
15074 (make_bpstat_clear_actions_cleanup): Remove.
15075
15076 2019-01-23 Tom Tromey <tom@tromey.com>
15077 Pedro Alves <palves@redhat.com>
15078
15079 * infrun.c: Include "common/scope-exit.h"
15080 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15081 (wait_for_inferior): Use SCOPE_EXIT.
15082 (fetch_inferior_event): Use scope_exit.
15083
15084 2019-01-23 Tom Tromey <tom@tromey.com>
15085 Pedro Alves <palves@redhat.com>
15086
15087 * breakpoint.c (create_breakpoint): Remove cleanup.
15088
15089 2019-01-23 Tom Tromey <tom@tromey.com>
15090 Andrew Burgess <andrew.burgess@embecosm.com>
15091 Pedro Alves <palves@redhat.com>
15092
15093 2019-01-23 Pedro Alves <palves@redhat.com>
15094
15095 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15096
15097 2019-01-23 Pedro Alves <palves@redhat.com>
15098 Andrew Burgess <andrew.burgess@embecosm.com>
15099
15100 * gdbthread.h: Include "common/forward-scope-exit.h".
15101 (scoped_finish_thread_state): Redefine custom class in terms of
15102 forward_scope_exit.
15103
15104 2019-01-23 Pedro Alves <palves@redhat.com>
15105 Andrew Burgess <andrew.burgess@embecosm.com>
15106
15107 * common/forward-scope-exit.h: New file.
15108
15109 2019-01-23 Pedro Alves <palves@redhat.com>
15110 Andrew Burgess <andrew.burgess@embecosm.com>
15111 Tom Tromey <tom@tromey.com>
15112
15113 * common/scope-exit.h: New file.
15114
15115 2019-01-23 Pedro Alves <palves@redhat.com>
15116
15117 * common/preprocessor.h (ESC): Rename to ...
15118 (ESC_PARENS): ... this.
15119 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15120 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15121
15122 2019-01-23 Tom Tromey <tom@tromey.com>
15123
15124 * language.h (class scoped_switch_to_sym_language_if_auto):
15125 Initialize m_lang in both cases.
15126
15127 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15128
15129 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15130 with XCNEW.
15131
15132 2019-01-22 Tom Tromey <tom@tromey.com>
15133
15134 * corelow.c: Do not include sys/file.h.
15135
15136 2019-01-22 Tom Tromey <tom@tromey.com>
15137
15138 * tui/tui-wingeneral.h: Include gdb_curses.h.
15139
15140 2019-01-22 Tom Tromey <tom@tromey.com>
15141
15142 * source-cache.h (class source_cache) <get_source_lines,
15143 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15144
15145 2019-01-22 Tom Tromey <tom@tromey.com>
15146
15147 * remote-fileio.h (struct remote_target): Declare.
15148
15149 2019-01-22 Tom Tromey <tom@tromey.com>
15150
15151 * python/py-arch.c: Do not include py-ref.h.
15152 * python/py-bpevent.c: Do not include py-ref.h.
15153 * python/py-cmd.c: Do not include py-ref.h.
15154 * python/py-continueevent.c: Do not include py-ref.h.
15155 * python/py-event.h: Do not include py-ref.h.
15156 * python/py-evtregistry.c: Do not include py-ref.h.
15157 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15158 * python/py-frame.c: Do not include py-ref.h.
15159 * python/py-framefilter.c: Do not include py-ref.h.
15160 * python/py-function.c: Do not include py-ref.h.
15161 * python/py-infevents.c: Do not include py-ref.h.
15162 * python/py-linetable.c: Do not include py-ref.h.
15163 * python/py-objfile.c: Do not include py-ref.h.
15164 * python/py-param.c: Do not include py-ref.h.
15165 * python/py-prettyprint.c: Do not include py-ref.h.
15166 * python/py-progspace.c: Do not include py-ref.h.
15167 * python/py-symbol.c: Do not include py-ref.h.
15168 * python/py-symtab.c: Do not include py-ref.h.
15169 * python/py-type.c: Do not include py-ref.h.
15170 * python/py-unwind.c: Do not include py-ref.h.
15171 * python/py-utils.c: Do not include py-ref.h.
15172 * python/py-value.c: Do not include py-ref.h.
15173 * python/py-varobj.c: Do not include py-ref.h.
15174 * python/py-xmethods.c: Do not include py-ref.h.
15175 * python/python.c: Do not include py-ref.h.
15176 * varobj.c: Do not include py-ref.h.
15177
15178 2019-01-22 Tom Tromey <tom@tromey.com>
15179
15180 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15181 keyword for bcache.
15182
15183 2019-01-22 Tom Tromey <tom@tromey.com>
15184
15185 * compile/compile-cplus-types.c: Remove a comment by #include.
15186
15187 2019-01-22 Tom Tromey <tom@tromey.com>
15188
15189 * compile/gcc-c-plugin.h: Include compile-internal.h.
15190
15191 2019-01-22 Tom Tromey <tom@tromey.com>
15192
15193 * stabsread.c (EXTERN): Do not define.
15194 (symnum, next_symbol_text_func, processing_gcc_compilation)
15195 (within_function, global_sym_chain, global_stabs)
15196 (previous_stab_code, this_object_header_files)
15197 (n_this_object_header_files)
15198 (n_allocated_this_object_header_files): Define.
15199 * stabsread.h (EXTERN): Never define. Use "extern".
15200
15201 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15202
15203 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15204 history_value.
15205
15206 2019-01-21 Tom Tromey <tom@tromey.com>
15207
15208 * ui-out.c: Fix includes.
15209 * tui/tui-source.c: Fix includes.
15210 * target.c: Fix includes.
15211 * remote.c: Fix includes.
15212 * regcache.c: Fix includes.
15213 * python/py-block.c: Fix includes.
15214 * printcmd.c: Fix includes.
15215 * or1k-tdep.c: Fix includes.
15216 * mi/mi-main.c: Fix includes.
15217 * m32r-tdep.c: Fix includes.
15218 * csky-tdep.c: Fix includes.
15219 * compile/compile-cplus-types.c: Fix includes.
15220 * cli/cli-interp.c: Fix includes.
15221
15222 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15223
15224 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15225 for padding.
15226
15227 2019-01-16 Tom Tromey <tom@tromey.com>
15228
15229 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15230 earlier.
15231 (struct objfile) <msymbols_range>: Move from top level.
15232 <msymbols>: New method.
15233 (class objfile_msymbols): Remove.
15234 * symtab.c (default_collect_symbol_completion_matches_break_on):
15235 Update.
15236 * symmisc.c (dump_msymbols): Update.
15237 * stabsread.c (scan_file_globals): Update.
15238 * objc-lang.c (info_selectors_command, info_classes_command)
15239 (find_methods): Update.
15240 * minsyms.c (find_solib_trampoline_target): Update.
15241 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15242 * coffread.c (coff_symfile_read): Update.
15243 * ada-lang.c (ada_lookup_simple_minsym)
15244 (ada_collect_symbol_completion_matches): Update.
15245
15246 2019-01-16 Tom Tromey <tom@tromey.com>
15247
15248 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15249 type. Remove no-argument constructor.
15250 <iterator::operator++>: Simplify.
15251 <begin>: Update.
15252 <end>: Use minimal_symbol_count.
15253
15254 2019-01-16 Tom Tromey <tom@tromey.com>
15255
15256 * objfiles.h (struct objfile) <psymtabs>: New method.
15257 (class objfile_psymtabs): Remove.
15258 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15259 typedef.
15260 <range>: New method.
15261 (require_partial_symbols): Change return type.
15262 * psymtab.c (require_partial_symbols)
15263 (psym_expand_symtabs_matching): Update.
15264 * mdebugread.c (parse_partial_symbols): Update.
15265 * dbxread.c (dbx_end_psymtab): Update.
15266
15267 2019-01-15 Tom Tromey <tom@tromey.com>
15268
15269 * symtab.c (lookup_objfile_from_block)
15270 (lookup_symbol_in_objfile_symtabs)
15271 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15272 (find_line_symtab, info_sources_command)
15273 (default_collect_symbol_completion_matches_break_on)
15274 (make_source_files_completion_list): Update.
15275 * symmisc.c (print_objfile_statistics, dump_objfile)
15276 (maintenance_print_symbols, maintenance_info_symtabs)
15277 (maintenance_check_symtabs, maintenance_info_line_tables):
15278 Update.
15279 * source.c (select_source_symtab)
15280 (forget_cached_source_info_for_objfile): Update.
15281 * objfiles.h (class objfile_compunits): Remove.
15282 (struct objfile) <compunits_range>: New typedef.
15283 (compunits): New method.
15284 * objfiles.c (objfile_relocate1): Update.
15285 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15286 * maint.c (count_symtabs_and_blocks): Update.
15287 * linespec.c (iterate_over_all_matching_symtabs): Update.
15288 * cp-support.c (add_symbol_overload_list_qualified): Update.
15289 * coffread.c (coff_symtab_read): Update.
15290 * ada-lang.c (add_nonlocal_symbols)
15291 (ada_collect_symbol_completion_matches)
15292 (ada_add_global_exceptions): Update.
15293
15294 2019-01-15 Tom Tromey <tom@tromey.com>
15295
15296 * progspace.h (program_space) <objfiles_safe_range>: New
15297 typedef.
15298 <objfiles_safe>: New method.
15299 * objfiles.h (class all_objfiles_safe): Remove.
15300 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15301 * jit.c (jit_inferior_exit_hook): Update.
15302
15303 2019-01-17 Tom Tromey <tom@tromey.com>
15304
15305 * progspace.h (program_space) <objfiles_range>: New typedef.
15306 <objfiles>: New method.
15307 <objfiles_head>: Rename from objfiles.
15308 (object_files): Update.
15309 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15310 * guile/scm-pretty-print.c
15311 (ppscm_find_pretty_printer_from_objfiles): Update.
15312 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15313 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15314 Update.
15315 * python/py-progspace.c (pspy_get_objfiles): Update.
15316 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15317 Update.
15318 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15319 (objfpy_lookup_objfile_by_build_id): Update.
15320 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15321 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15322 Update.
15323 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15324 (expand_symtab_containing_pc, lookup_objfile_from_block)
15325 (lookup_static_symbol, basic_lookup_transparent_type)
15326 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15327 (find_line_symtab, info_sources_command)
15328 (default_collect_symbol_completion_matches_break_on)
15329 (make_source_files_completion_list, find_main_name): Update.
15330 * symmisc.c (print_symbol_bcache_statistics)
15331 (print_objfile_statistics, maintenance_print_symbols)
15332 (maintenance_print_msymbols, maintenance_print_objfiles)
15333 (maintenance_info_symtabs, maintenance_check_symtabs)
15334 (maintenance_expand_symtabs, maintenance_info_line_tables):
15335 Update.
15336 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15337 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15338 (map_overlay_command, unmap_overlay_command)
15339 (simple_overlay_update, expand_symtabs_matching)
15340 (map_symbol_filenames): Update.
15341 * symfile-debug.c (set_debug_symfile): Update.
15342 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15343 Update.
15344 * source.c (select_source_symtab, forget_cached_source_info):
15345 Update.
15346 * solib.c (solib_read_symbols): Update.
15347 * solib-spu.c (append_ocl_sos): Update.
15348 * psymtab.c (maintenance_print_psymbols)
15349 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15350 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15351 * printcmd.c (info_symbol_command): Update.
15352 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15353 Update.
15354 * objfiles.h (class all_objfiles): Remove.
15355 * objfiles.c (have_partial_symbols, have_full_symbols)
15356 (have_minimal_symbols, qsort_cmp, update_section_map)
15357 (shared_objfile_contains_address_p)
15358 (default_iterate_over_objfiles_in_search_order): Update.
15359 * objc-lang.c (info_selectors_command, info_classes_command)
15360 (find_methods): Update.
15361 * minsyms.c (find_solib_trampoline_target): Update.
15362 * maint.c (maintenance_info_sections)
15363 (maintenance_translate_address, count_symtabs_and_blocks):
15364 Update.
15365 * main.c (captured_main_1): Update.
15366 * linux-thread-db.c (try_thread_db_load_from_pdir)
15367 (has_libpthread): Update.
15368 * linespec.c (iterate_over_all_matching_symtabs)
15369 (search_minsyms_for_name): Update.
15370 * jit.c (jit_find_objf_with_entry_addr): Update.
15371 * hppa-tdep.c (find_unwind_entry)
15372 (hppa_lookup_stub_minimal_symbol): Update.
15373 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15374 Update.
15375 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15376 (elf_gnu_ifunc_resolve_by_got): Update.
15377 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15378 * dwarf-index-write.c (save_gdb_index_command): Update.
15379 * cp-support.c (add_symbol_overload_list_qualified): Update.
15380 * breakpoint.c (create_overlay_event_breakpoint)
15381 (create_longjmp_master_breakpoint)
15382 (create_std_terminate_master_breakpoint)
15383 (create_exception_master_breakpoint): Update.
15384 * blockframe.c (find_pc_partial_function): Update.
15385 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15386 (ada_collect_symbol_completion_matches)
15387 (ada_add_global_exceptions): Update.
15388
15389 2019-01-17 Tom Tromey <tom@tromey.com>
15390
15391 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15392 declare VEC.
15393 (solib_target_parse_libraries): Change return type.
15394 (library_list_start_segment, library_list_start_section)
15395 (library_list_end_library, library_list_start_library); Update.
15396 (solib_target_free_library_list): Remove.
15397 (solib_target_parse_libraries): Remove cleanup. Change return
15398 type.
15399 (solib_target_current_sos): Update.
15400
15401 2019-01-17 Tom Tromey <tromey@bapiya>
15402
15403 * valprint.c: Replace "the the" with "the".
15404 * symtab.c: Replace "the the" with "the".
15405 * solib.c: Replace "the the" with "the".
15406 * solib-dsbt.c: Replace "the the" with "the".
15407 * linespec.c: Replace "the the" with "the".
15408 * dwarf2loc.h: Replace "the the" with "the".
15409 * amd64-windows-tdep.c: Replace "the the" with "the".
15410 * aarch64-tdep.c: Replace "the the" with "the".
15411
15412 2019-01-16 Keith Seitz <keiths@redhat.com>
15413
15414 PR gdb/23773
15415 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15416 <builder>: Rename to ..
15417 <m_builder>: ... this and make private.
15418 (dwarf2_cu::get_builder): New method. Change all users of
15419 `builder' to use this method.
15420 (dwarf2_start_symtab): Move to ...
15421 (dwarf2_cu::start_symtab): ... here. Update all callers
15422 (setup_type_unit_groups): Move to ...
15423 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15424 callers.
15425 (dwarf2_cu::reset_builder): New method.
15426 (process_full_compunit, process_full_type_unit): Use
15427 dwarf2_cu::reset_builder.
15428 (follow_die_offset): Record the ancestor CU if it is different
15429 from the followed DIE's CU.
15430 (follow_die_sig_1): Likewise.
15431
15432 2019-01-15 Tom Tromey <tom@tromey.com>
15433
15434 * remote.c (class remote_state) <buf>: Now a char_vector.
15435 <buf_size>: Remove.
15436 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15437 parameter.
15438 (remote_target::getpkt_or_notif_sane_1)
15439 (remote_target::getpkt_sane)
15440 (remote_target::getpkt_or_notif_sane): Likewise.
15441 (class remote_target) <putpkt>: New overload.
15442 (remote_target::read_frame): Change type of "buf_p". Remove
15443 sizeof_p parameter.
15444 (packet_ok): New overload.
15445 (packet_check_result): New overload.
15446 Update all uses.
15447
15448 2019-01-14 Tom Tromey <tom@tromey.com>
15449
15450 * remote-notif.c (handle_notification, remote_notif_ack)
15451 (remote_notif_parse): Make "buf" const.
15452 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15453 const.
15454 (remote_notif_parse, remote_notif_ack, handle_notification):
15455 Likewise.
15456 * remote.c (remote_notif_stop_parse): Make "buf" const.
15457 (remote_target::remote_parse_stop_reply): Make "buf" const.
15458 (remote_notif_stop_ack): Make "buf" const.
15459
15460 2019-01-14 Tom Tromey <tom@tromey.com>
15461
15462 * remote.c (remote_console_output): Make parameter const.
15463
15464 2019-01-14 Tom Tromey <tom@tromey.com>
15465
15466 * target-debug.h (target_debug_print_signals): Constify.
15467 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15468 * procfs.c (procfs_target::pass_signals): Update.
15469 * linux-nat.c (linux_nat_target::pass_signals): Update.
15470 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15471 * target-delegates.c: Rebuild.
15472 * remote.c (remote_target::program_signals): Update.
15473 (remote_target::pass_signals): Update.
15474 * target.c (target_pass_signals): Constify argument.
15475 (target_program_signals): Likewise.
15476 * target.h (struct target_ops) <pass_signals, program_signals>:
15477 Constify argument.
15478 (target_pass_signals, target_program_signals): Constify argument.
15479
15480 2019-01-14 Tom Tromey <tom@tromey.com>
15481
15482 PR tui/28819:
15483 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15484
15485 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15486
15487 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15488 field.
15489 * rs6000-tdep.c: Include reggroups.h.
15490 (IS_V_ALIAS_PSEUDOREG): Define.
15491 (rs6000_register_name): Return names for the "vX" aliases.
15492 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15493 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15494 aliases. Call default_register_reggroup_p for all other
15495 pseudo-registers.
15496 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15497 New functions.
15498 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15499 Handle "vX" aliases.
15500 (v_alias_pseudo_register_collect): New function.
15501 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15502 (rs6000_gdbarch_init): Initialize "vX" aliases as
15503 pseudo-registers. Restore registration of
15504 rs6000_pseudo_register_reggroup_p with
15505 set_tdesc_pseudo_register_reggroup_p.
15506
15507 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15508
15509 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15510 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15511 set_gdbarch_num_pseudo_regs.
15512
15513 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15514
15515 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15516 Remove arg prefixname, add do_set and do_show.
15517 Add member functions set_list and show_list.
15518 * cli/cli-style.c (class cli_style_option): Update accordingly.
15519 (style_set_list): Move to file scope.
15520 (style_show_list): Likewise.
15521 (set_style): Call help_list.
15522 (show_style): Call cmd_show_list.
15523 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15524 Update to use the new macro.
15525
15526 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15527
15528 * ada-lang.c (_initialize_ada_language): Expand the help text
15529 for the "catch exception" command.
15530
15531 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15532
15533 * symtab.c (matching_obj_sections): Initialize obj,
15534 declare it closer to its usage.
15535
15536 2019-01-10 Tom Tromey <tom@tromey.com>
15537
15538 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15539 (basic_inf_threads_range): Remove.
15540 (inf_threads_range, inf_non_exited_threads_range)
15541 (safe_inf_threads_range): Use next_adapter.
15542
15543 2019-01-10 Keith Seitz <keiths@redhat.com>
15544
15545 PR gdb/23712
15546 PR symtab/23010
15547 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15548 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15549
15550 2019-01-10 Keith Seitz <keiths@redhat.com>
15551
15552 PR gdb/23712
15553 PR symtab/23010
15554 * dictionary.c (pending_to_vector): Remove.
15555 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15556 Remove _1 suffix, replacing functions of the same name. Update
15557 all callers.
15558 (dict_create_hashed, dict_create_hashed_expandable)
15559 (dict_create_linear, dict_create_linear_expandable, dict_free)
15560 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15561 Make functions static.
15562
15563 2019-01-10 Keith Seitz <keiths@redhat.com>
15564
15565 PR gdb/23712
15566 PR symtab/23010
15567 * dictionary.h (struct dictionary): Replace declaration with
15568 multidictionary.
15569 (dict_create_hashed, dict_create_hashed_expandable)
15570 (dict_create_linear, dict_create_linear_expandable)
15571 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15572 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15573 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15574 taking multidictionary argument.
15575 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15576 * block.h (struct block) <dict>: Change to multidictionary
15577 and rename `multidict'.
15578 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15579 symmisc.c: Update all dictionary references to multidictionary.
15580
15581 2019-01-10 Keith Seitz <keiths@redhat.com>
15582
15583 PR gdb/23712
15584 PR symtab/23010
15585 * dictionary.c: Include unordered_map.
15586 (pending_to_vector): New function.
15587 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15588 Rewrite the non-"_1" functions to take vector instead
15589 of linked list.
15590 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15591 "new" _1 versions of the same name.
15592 (multidictionary): Define.
15593 (std::hash<enum language): New definition.
15594 (collate_pending_symbols_by_language, mdict_create_hashed)
15595 (mdict_create_hashed_expandable, mdict_create_linear)
15596 (mdict_create_linear_expandable, mdict_free)
15597 (find_language_dictionary, create_new_language_dictionary)
15598 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15599 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15600 (mdict_size, mdict_empty): New functions.
15601 * dictionary.h (mdict_iterator): Define.
15602
15603 2019-01-10 Pedro Alves <palves@redhat.com>
15604
15605 * breakpoint.c (read_uploaded_action)
15606 (create_tracepoint_from_upload): Adjust to use
15607 gdb::unique_xmalloc_ptr.
15608 * ctf.c (ctf_write_uploaded_tp):
15609 (SET_ARRAY_FIELD): Use emplace_back.
15610 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15611 * tracefile-tfile.c (tfile_write_uploaded_tp):
15612 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15613 gdb::unique_xmalloc_ptr.
15614 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15615 at_string, cond_string, cmd_strings>: Replace char pointers
15616 with gdb::unique_xmalloc_ptr.
15617
15618 2019-01-10 Pedro Alves <palves@redhat.com>
15619
15620 * solib-target.c (library_list_start_library): Don't xstrdup name.
15621
15622 2019-01-10 Pedro Alves <palves@redhat.com>
15623
15624 * mdebugread.c (parse_partial_symbols): Use
15625 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15626
15627 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15628
15629 * linux-fork.c (scoped_switch_fork_info)
15630 <~scoped_switch_fork_info>: Fix incorrect variable name.
15631
15632 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15633
15634 * linux-fork.c (scoped_switch_fork_info)
15635 <scoped_switch_fork_info>: Make explicit.
15636 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15637
15638 2019-01-10 Tom Tromey <tom@tromey.com>
15639
15640 * objfiles.h (objfile::reset_psymtabs): Update.
15641 * objfiles.c (objfile::objfile): Update.
15642 * psymtab.h (psymtab_storage::obstack): Update.
15643 (psymtab_storage::m_obstack): Use gdb::optional.
15644 (class psymtab_storage): Update comment. Remove objfile
15645 parameter.
15646 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15647
15648 2019-01-10 Tom Tromey <tom@tromey.com>
15649
15650 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15651 <free_psymtabs>: Now private.
15652 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15653 (allocate_psymtab): Use new method.
15654
15655 2019-01-10 Tom Tromey <tom@tromey.com>
15656
15657 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15658 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15659 * mdebugread.c (parse_partial_symbols): Use
15660 allocate_dependencies.
15661 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15662 allocate_dependencies.
15663 (process_psymtab_comp_unit_reader)
15664 (build_type_psymtab_dependencies): Likewise.
15665 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15666
15667 2019-01-10 Tom Tromey <tom@tromey.com>
15668
15669 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15670 PSYMBOL_SET_LANGUAGE.
15671 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15672
15673 2019-01-10 Tom Tromey <tom@tromey.com>
15674
15675 * psymtab.h (psymtab_storage::obstack): New method.
15676 <m_obstack>: Rename from obstack; now private.
15677 * psymtab.c (psymtab_storage): Update.
15678 * dwarf2read.c (create_addrmap_from_index)
15679 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15680 Update.
15681
15682 2019-01-10 Tom Tromey <tom@tromey.com>
15683
15684 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15685 * objfiles.h (objfile::reset_psymtabs): New method.
15686
15687 2019-01-10 Tom Tromey <tom@tromey.com>
15688
15689 * symmisc.c (print_symbol_bcache_statistics): Update.
15690 (print_objfile_statistics): Update.
15691 * symfile.c (reread_symbols): Update.
15692 * psymtab.h (class psymtab_storage): New.
15693 * psymtab.c (psymtab_storage): New constructor.
15694 (~psymtab_storage): New destructor.
15695 (require_partial_symbols): Update.
15696 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15697 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15698 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15699 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15700 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15701 (start_psymtab_common, end_psymtab_common)
15702 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15703 (allocate_psymtab): Update.
15704 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15705 Update.
15706 (dump_psymtab_addrmap, maintenance_print_psymbols)
15707 (maintenance_check_psymtabs): Update.
15708 (class objfile_psymtabs): Move to objfiles.h.
15709 * psympriv.h (discard_psymtab): Now inline.
15710 (psymtab_discarder::psymtab_discarder): Update.
15711 (psymtab_discarder::~psymtab_discarder): Update.
15712 (ALL_OBJFILE_PSYMTABS): Rewrite.
15713 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15714 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15715 Remove fields.
15716 <partial_symtabs>: New field.
15717 (class objfile_psymtabs): Move from psymtab.h. Update.
15718 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15719 psymbol_cache.
15720 (objfile::~objfile): Don't destroy psymbol_cache.
15721 * mdebugread.c (parse_partial_symbols): Update.
15722 * dwarf2read.c (create_addrmap_from_index)
15723 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15724 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15725 (add_partial_subprogram, dwarf2_ranges_read): Update.
15726 * dwarf-index-write.c (write_address_map)
15727 (write_one_signatured_type, recursively_write_psymbols)
15728 (class debug_names, class debug_names, write_psymtabs_to_index):
15729 Update.
15730
15731 2019-01-10 Tom Tromey <tom@tromey.com>
15732
15733 * symtab.h (SYMBOL_SET_NAMES): Update.
15734 (symbol_set_names): Update.
15735 (MSYMBOL_SET_NAMES): Update.
15736 * symtab.c (symbol_set_names): Change argument to be an
15737 objfile_per_bfd_storage.
15738 * psymtab.c (add_psymbol_to_bcache): Update.
15739 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15740
15741 2019-01-10 Tom Tromey <tom@tromey.com>
15742
15743 * symtab.c (create_demangled_names_hash): Change argument to be an
15744 objfile_per_bfd_storage.
15745 (symbol_set_names): Update.
15746
15747 2019-01-10 Tom Tromey <tom@tromey.com>
15748
15749 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15750 init_psymbol_list.
15751 * psymtab.c (init_psymbol_list): Do nothing if already called.
15752 * psympriv.h (init_psymbol_list): Add comment.
15753 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15754 init_psymbol_list.
15755 * dbxread.c (dbx_symfile_read): Unconditionally call
15756 init_psymbol_list.
15757
15758 2019-01-10 Tom Tromey <tom@tromey.com>
15759
15760 * xcoffread.c (scan_xcoff_symtab): Update.
15761 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15762 "where".
15763 * mdebugread.c (parse_partial_symbols)
15764 (handle_psymbol_enumerators): Update.
15765 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15766 * dbxread.c (read_dbx_symtab): Update.
15767 * psympriv.h (psymbol_placement): New enum.
15768 (add_psymbol_to_list): Update.
15769
15770 2019-01-10 Tom Tromey <tom@tromey.com>
15771
15772 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15773 static_psymbols parameters.
15774 (scan_xcoff_symtab): Update.
15775 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15776 static_psymbols parameters.
15777 * psympriv.h (start_psymtab_common): Update.
15778 * mdebugread.c (parse_partial_symbols): Update.
15779 * dwarf2read.c (create_partial_symtab): Update.
15780 * dbxread.c (read_dbx_symtab): Update.
15781 (start_psymtab): Remove global_psymbols and static_psymbols
15782 parameters.
15783
15784 2019-01-10 Tom Tromey <tom@tromey.com>
15785
15786 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15787 * psymtab.c (allocate_psymtab): Add comment.
15788 * psympriv.h (allocate_psymtab): Add comment.
15789 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15790 initializations.
15791 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15792
15793 2019-01-10 Tom Tromey <tom@tromey.com>
15794
15795 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15796 Don't declare.
15797 * mipsread.c: Include mdebugread.h.
15798 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15799 Declare.
15800 * elfread.c: Include mdebugread.h.
15801
15802 2019-01-09 Tom Tromey <tom@tromey.com>
15803
15804 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15805 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15806 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15807 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15808 (psym_lookup_symbol, psym_find_last_source_symtab)
15809 (psym_forget_cached_source_info, psym_print_stats)
15810 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15811 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15812 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15813 (psym_find_compunit_symtab_by_address)
15814 (maintenance_print_psymbols, maintenance_info_psymtabs)
15815 (maintenance_check_psymtabs): Use ranged for.
15816 * psymtab.h (class objfile_psymtabs): New.
15817 (require_partial_symbols): Return objfile_psymtabs.
15818 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15819
15820 2019-01-09 Tom Tromey <tom@tromey.com>
15821
15822 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15823 (find_pc_mapped_section, list_overlays_command)
15824 (map_overlay_command, unmap_overlay_command)
15825 (simple_overlay_update): Use all_objfiles.
15826 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15827 * printcmd.c (info_symbol_command): Use all_objfiles.
15828 * objfiles.h (ALL_OBJSECTIONS): Remove.
15829 * maint.c (maintenance_translate_address): Use all_objfiles.
15830 * gcore.c (gcore_create_callback): Use all_objfiles.
15831 (objfile_find_memory_regions): Likewise.
15832
15833 2019-01-09 Tom Tromey <tom@tromey.com>
15834
15835 * symtab.c (find_line_symtab, info_sources_command)
15836 (make_source_files_completion_list): Use objfile_compunits.
15837 * source.c (select_source_symtab): Use objfile_compunits.
15838 * objfiles.h (struct objfile): Update comment.
15839 (ALL_OBJFILES): Remove.
15840 (ALL_FILETABS): Remove.
15841 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15842 objfile_compunits.
15843
15844 2019-01-09 Tom Tromey <tom@tromey.com>
15845
15846 * symmisc.c (print_objfile_statistics, dump_objfile)
15847 (maintenance_print_symbols): Use compunit_filetabs.
15848 * source.c (forget_cached_source_info_for_objfile): Use
15849 compunit_filetabs.
15850 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15851 (ALL_FILETABS): Use compunit_filetabs.
15852 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15853 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15854
15855 2019-01-09 Tom Tromey <tom@tromey.com>
15856
15857 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15858 (compunit_filetabs): New.
15859 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15860 compunit_filetabs.
15861 (info_sources_command, make_source_files_completion_list): Remove
15862 declaration.
15863 * symmisc.c (print_objfile_statistics, dump_objfile)
15864 (maintenance_print_symbols): Remove declaration.
15865 (maintenance_info_symtabs): Use compunit_filetabs.
15866 (maintenance_info_line_tables): Likewise.
15867 * source.c (select_source_symtab): Change local variable name.
15868 (forget_cached_source_info_for_objfile): Remove declaration.
15869 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15870 * objfiles.c (objfile_relocate1): Remove declaration.
15871 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15872 declaration.
15873 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15874 * coffread.c (coff_symtab_read): Remove declaration.
15875 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15876 compunit_filetabs.
15877
15878 2019-01-09 Tom Tromey <tom@tromey.com>
15879
15880 * symtab.c (lookup_objfile_from_block)
15881 (find_pc_sect_compunit_symtab, search_symbols)
15882 (default_collect_symbol_completion_matches_break_on): Use
15883 objfile_compunits.
15884 * objfiles.h (ALL_COMPUNITS): Remove.
15885 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15886 * cp-support.c (add_symbol_overload_list_qualified): Use
15887 objfile_compunits.
15888 * ada-lang.c (ada_collect_symbol_completion_matches)
15889 (ada_add_global_exceptions): Use objfile_compunits.
15890
15891 2019-01-09 Tom Tromey <tom@tromey.com>
15892
15893 * source.c (select_source_symtab)
15894 (forget_cached_source_info_for_objfile): Remove declaration.
15895 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15896 declaration.
15897 * maint.c (count_symtabs_and_blocks): Remove declaration.
15898 * cp-support.c (add_symbol_overload_list_qualified): Remove
15899 declaration.
15900 * coffread.c (coff_symtab_read): Remove declaration.
15901 * symtab.c (lookup_symbol_in_objfile_symtabs)
15902 (basic_lookup_transparent_type_1): Use objfile_compunits.
15903 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15904 (info_sources_command, search_symbols)
15905 (default_collect_symbol_completion_matches_break_on)
15906 (make_source_files_completion_list): Remove declaration.
15907 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15908 (ada_collect_symbol_completion_matches)
15909 (ada_add_global_exceptions): Remove declaration.
15910 * linespec.c (iterate_over_all_matching_symtabs): Use
15911 objfile_compunits.
15912 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15913 (class objfile_compunits): New.
15914 (ALL_COMPUNITS): Use objfile_compunits.
15915 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15916 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15917 objfile_compunits.
15918 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15919
15920 2019-01-09 Tom Tromey <tom@tromey.com>
15921
15922 * symtab.c (search_symbols)
15923 (default_collect_symbol_completion_matches_break_on): Use
15924 objfile_msymbols.
15925 * ada-lang.c (ada_lookup_simple_minsym)
15926 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15927 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15928 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15929 objfile_msymbols.
15930 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15931 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15932 * objc-lang.c (find_methods): Use objfile_msymbols.
15933 (info_selectors_command, info_classes_command): Likewise.
15934 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15935 * objfiles.h (class objfile_msymbols): New.
15936 (ALL_OBJFILE_MSYMBOLS): Remove.
15937 (ALL_MSYMBOLS): Remove.
15938
15939 2019-01-09 Tom Tromey <tom@tromey.com>
15940
15941 * common/next-iterator.h (next_adapter): Add Iterator template
15942 parameter.
15943 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15944 (class all_objfiles_safe): New.
15945 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15946 * objfiles.c (put_objfile_before): Update comment.
15947 (add_separate_debug_objfile): Likewise.
15948 (free_all_objfiles): Use all_objfiles_safe.
15949 (objfile_purge_solibs): Likewise.
15950
15951 2019-01-09 Tom Tromey <tom@tromey.com>
15952
15953 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15954 (expand_symtab_containing_pc, lookup_static_symbol)
15955 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15956 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15957 all_objfiles.
15958 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15959 * breakpoint.c (create_overlay_event_breakpoint)
15960 (create_longjmp_master_breakpoint)
15961 (create_std_terminate_master_breakpoint)
15962 (create_exception_master_breakpoint): Use all_objfiles.
15963 * linux-thread-db.c (try_thread_db_load_from_pdir)
15964 (has_libpthread): Use all_objfiles.
15965 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15966 * linespec.c (iterate_over_all_matching_symtabs)
15967 (search_minsyms_for_name): Use all_objfiles.
15968 * maint.c (maintenance_info_sections): Use all_objfiles.
15969 * main.c (captured_main_1): Use all_objfiles.
15970 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15971 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15972 * guile/scm-pretty-print.c
15973 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15974 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15975 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15976 (maintenance_print_msymbols): Use all_objfiles.
15977 * source.c (select_source_symtab): Use all_objfiles.
15978 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15979 * symfile.c (remove_symbol_file_command)
15980 (expand_symtabs_matching, map_symbol_filenames): Use
15981 all_objfiles.
15982 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15983 all_objfiles.
15984 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15985 * objc-lang.c (find_methods): Use all_objfiles.
15986 * objfiles.c (have_partial_symbols, have_full_symbols)
15987 (have_minimal_symbols, qsort_cmp)
15988 (default_iterate_over_objfiles_in_search_order): Use
15989 all_objfiles.
15990 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15991 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15992 (maintenance_check_psymtabs): Use all_objfiles.
15993 (ALL_PSYMTABS): Remove.
15994 * compile/compile-object-run.c (do_module_cleanup): Use
15995 all_objfiles.
15996 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15997 * cp-support.c (add_symbol_overload_list_qualified): Use
15998 all_objfiles.
15999 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16000 Use all_objfiles.
16001 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16002 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16003 all_objfiles.
16004 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16005 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16006 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16007 Uses all_objfiles.
16008 * solib.c (solib_read_symbols): Use all_objfiles
16009
16010 2019-01-09 Tom Tromey <tom@tromey.com>
16011
16012 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16013 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16014 all_objfiles.
16015 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16016 * symmisc.c (print_symbol_bcache_statistics)
16017 (print_objfile_statistics, maintenance_print_objfiles)
16018 (maintenance_info_symtabs, maintenance_check_symtabs)
16019 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16020 all_objfiles.
16021 * source.c (forget_cached_source_info): Use all_objfiles.
16022 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16023 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16024 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16025 * objfiles.c (update_section_map): Use all_objfiles.
16026 (shared_objfile_contains_address_p): Likewise.
16027 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16028 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16029
16030 2019-01-09 Tom Tromey <tom@tromey.com>
16031
16032 * common/next-iterator.h: New file.
16033 * objfiles.h (class all_objfiles): New.
16034 (struct objfile_iterator): New.
16035
16036 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16037
16038 * NEWS: Move the description of the changed "frame", "select-frame",
16039 and "info frame" commands to the Changed commands section.
16040
16041 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16042
16043 * gdbtypes.c (check_stub_method_group): Remove handling of old
16044 mangling schemes.
16045 * linespec.c (find_methods): Likewise.
16046 * stabsread.c (read_member_functions): Likewise.
16047 * valops.c (search_struct_method): Likewise.
16048 (value_struct_elt_for_reference): Likewise.
16049 * NEWS: Mention this change.
16050
16051 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16052
16053 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16054 print_source_lines.
16055 * source.c (print_source_lines_base): Update line number check.
16056 (print_source_lines): New function.
16057 (source_lines_range::source_lines_range): New function.
16058 * source.h (class source_lines_range): New class.
16059 (print_source_lines): New declaration.
16060
16061 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16062
16063 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16064
16065 2019-01-08 Tom Tromey <tom@tromey.com>
16066 Simon Marchi <simon.marchi@ericsson.com>
16067
16068 PR gdb/24060
16069 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16070 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16071 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16072 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16073 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16074 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16075
16076 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16077
16078 * source.c (select_source_symtab): Move header comment to
16079 declaration in source.h.
16080 (forget_cached_source_info_for_objfile): Likewise.
16081 (forget_cached_source_info): Likewise.
16082 (identify_source_line): Likewise.
16083 * source.h (identify_source_line): Move declaration from symtab.h
16084 and add comment from source.c
16085 (print_source_lines): Likewise.
16086 (forget_cached_source_info_for_objfile): Likewise.
16087 (forget_cached_source_info): Likewise.
16088 (select_source_symtab): Likewise.
16089 (enum print_source_lines_flag): Move definition from symtab.h.
16090 * symtab.h (identify_source_line): Move declaration to source.h.
16091 (print_source_lines): Likewise.
16092 (forget_cached_source_info_for_objfile): Likewise.
16093 (forget_cached_source_info): Likewise.
16094 (select_source_symtab): Likewise.
16095 (enum print_source_lines_flag): Move definition to source.h.
16096 * tui/tui-hooks.c: Add 'source.h' include.
16097
16098 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16099
16100 * source.c (print_source_lines_base): Handle requests to print
16101 reverse line number sequences, and guard against empty lines
16102 string.
16103
16104 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16105
16106 * source.c (print_source_lines_base): Fix skip of '\r' if next
16107 character is '\n'.
16108
16109 2019-01-06 Tom Tromey <tom@tromey.com>
16110
16111 * c-exp.y (struct c_parse_state) <macro_original_text,
16112 expansion_obstack>: New member.
16113 (macro_original_text, expansion_obstack): Remove globals.
16114 (scan_macro_expansion, scanning_macro_expansion)
16115 (finished_macro_expansion): Update.
16116 (scan_macro_cleanup): Remove.
16117 (yylex, c_parse): Update.
16118
16119 2019-01-06 Tom Tromey <tom@tromey.com>
16120
16121 * c-exp.y (struct c_parse_state) <strings>: New member.
16122 (operator_stoken): Update.
16123
16124 2019-01-06 Tom Tromey <tom@tromey.com>
16125
16126 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16127 (union type_stack_elt) <typelist_val>: Now a pointer to
16128 std::vector.
16129 (type_stack_cleanup): Don't declare.
16130 (push_typelist): Update.
16131 * parse.c (pop_typelist): Return a std::vector.
16132 (push_typelist): Take a std::vector.
16133 (follow_types): Update. Do not free args.
16134 (type_stack_cleanup): Remove.
16135 * c-exp.y (struct c_parse_state): New.
16136 (cpstate): New global.
16137 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16138 (nonempty_typelist): Update.
16139 (func_mod): Create a new vector.
16140 (c_parse): Create a c_parse_state.
16141 (check_parameter_typelist): Do not delete params.
16142 (function_method): Update. Do not delete type_list.
16143
16144 2019-01-06 Tom Tromey <tom@tromey.com>
16145
16146 PR gdb/28155:
16147 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16148 check_typedef.
16149 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16150 (print_return_value): Likewise.
16151
16152 2019-01-05 Tom Tromey <tom@tromey.com>
16153
16154 * contrib/cleanup_check.py: Remove.
16155 * contrib/gcc-with-excheck: Remove.
16156 * contrib/exsummary.py: Remove.
16157 * contrib/excheck.py: Remove.
16158
16159 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16160
16161 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16162 NULL. Initialize tpprev to NULL instead of assigning it
16163 to NULL on the next statement.
16164 * windows-nat.c (windows_delete_thread): Remove check for
16165 main_thread_id before printing thread exit notifications.
16166 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16167 Remove thread ID check against main_thread_id.
16168 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16169 windows_delete_thread.
16170 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16171
16172 2019-01-04 Tom Tromey <tom@tromey.com>
16173
16174 * compile/compile.c (_initialize_compile): Use upper case for
16175 metasyntactic variables.
16176 * symmisc.c (_initialize_symmisc): Use upper case for
16177 metasyntactic variables.
16178 * psymtab.c (_initialize_psymtab): Use upper case for
16179 metasyntactic variables.
16180 * demangle.c (demangle_command): Use upper case for metasyntactic
16181 variables.
16182 (_initialize_demangler): Likewise.
16183 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16184 variables.
16185
16186 2019-01-03 Tom Tromey <tom@tromey.com>
16187
16188 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16189
16190 2019-01-03 Tom Tromey <tom@tromey.com>
16191
16192 * python/py-symtab.c (salpy_str): Update.
16193 (struct salpy_sal_object) <symtab>: Now a PyObject.
16194 (salpy_dealloc): Update.
16195 (del_objfile_sal): Use gdbpy_ref.
16196
16197 2019-01-03 Tom Tromey <tom@tromey.com>
16198
16199 * python/py-type.c (convert_field): Use new_reference. Return
16200 gdbpy_ref.
16201 (make_fielditem): Return gdbpy_ref.
16202 (typy_fields): Update.
16203 (typy_getitem): Update.
16204 (field_name): Return gdbpy_ref. Use new_reference.
16205 (typy_iterator_iternext): Update.
16206
16207 2019-01-03 Tom Tromey <tom@tromey.com>
16208
16209 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16210
16211 2019-01-03 Tom Tromey <tom@tromey.com>
16212
16213 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16214 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16215 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16216 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16217 (pspy_set_type_printers): Likewise.
16218 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16219 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16220 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16221 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16222 (objfpy_set_type_printers): Likewise.
16223
16224 2019-01-03 Tom Tromey <tom@tromey.com>
16225
16226 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16227 (gdbpy_print_stack): Use gdbpy_err_fetch.
16228 * python/python-internal.h (class gdbpy_err_fetch): New class.
16229 (class gdbpy_enter) <m_error_type, m_error_value,
16230 m_error_traceback>: Remove.
16231 <m_error>: New member.
16232 (gdbpy_exception_to_string): Don't declare.
16233 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16234 * python/py-value.c (convert_value_from_python): Use
16235 gdbpy_err_fetch.
16236 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16237 gdbpy_exception_to_string.
16238 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16239 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16240 gdbpy_err_fetch.
16241
16242 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16243
16244 * linux-nat.c (delete_lwp_cleanup): Delete.
16245 (struct lwp_deleter): New struct.
16246 (lwp_info_up): New typedef.
16247 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16248 lwp_info_up.
16249
16250 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16251
16252 * linux-fork.c (class scoped_switch_fork_info): New class.
16253 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16254
16255 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16256
16257 * valops.c (find_overload_match): Remove use of null_cleanup, and
16258 calls to do_cleanups.
16259
16260 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16261
16262 * compile/compile-cplus-types.c
16263 (compile_cplus_instance::decl_name): Handle changes to
16264 cp_func_name.
16265 * cp-support.c (cp_func_name): Update header comment, update
16266 return type.
16267 * cp-support.h (cp_func_name): Update return type in declaration.
16268 * valops.c (find_overload_match): Move temp_func local to top
16269 level of function and change its type. Use temp_func to hold and
16270 delete temporary string obtained from cp_func_name.
16271
16272 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16273
16274 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16275 gdb::char_vector, remove cleanup, and update uses of `msg`.
16276
16277 2019-01-03 Jim Wilson <jimw@sifive.com>
16278
16279 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16280
16281 2019-01-02 Tom Tromey <tom@tromey.com>
16282
16283 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16284 (tdesc_parse_xml): Remove cleanups.
16285 * target-descriptions.h (make_cleanup_free_target_description):
16286 Don't declare.
16287 (target_desc_deleter): New struct.
16288 (target_desc_up): New typedef.
16289 * target-descriptions.c (target_desc_deleter::operator()): Rename
16290 from free_target_description.
16291 (make_cleanup_free_target_description): Remove.
16292
16293 2019-01-02 Tom Tromey <tom@tromey.com>
16294
16295 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16296 constructor, destructor.
16297 (linespec_parser): Remove typedef.
16298 (~linespec_parser): Rename from linespec_parser_delete.
16299 (linespec_lex_to_end, linespec_complete_label)
16300 (linespec_complete): Update.
16301 (decode_line_full): Remove cleanups.
16302 (decode_line_1): Update.
16303
16304 2019-01-02 Tom Tromey <tom@tromey.com>
16305
16306 * python/python-internal.h (inferior_to_inferior_object): Change
16307 return type.
16308 * python/py-exitedevent.c (create_exited_event_object): Update.
16309 * python/py-inferior.c (inferior_to_inferior_object): Return
16310 gdbpy_ref.
16311 (python_new_inferior, python_inferior_deleted)
16312 (thread_to_thread_object, delete_thread_object)
16313 (build_inferior_list, gdbpy_selected_inferior): Update.
16314 * python/py-infthread.c (create_thread_object): Update. Also fail
16315 if inferior_to_inferior_object fails.
16316
16317 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16318
16319 * inferior.h (class inferior) <displaced_step_state>: New field.
16320 * infrun.h (struct displaced_step_state): Move here from
16321 infrun.c. Initialize fields, add constructor.
16322 <inf>: Remove field.
16323 <reset>: New method.
16324 * infrun.c (struct displaced_step_inferior_state): Move to
16325 infrun.h.
16326 (displaced_step_inferior_states): Remove.
16327 (get_displaced_stepping_state): Adust.
16328 (displaced_step_in_progress_any_inferior): Adjust.
16329 (displaced_step_in_progress_thread): Adjust.
16330 (displaced_step_in_progress): Adjust.
16331 (add_displaced_stepping_state): Remove.
16332 (get_displaced_step_closure_by_addr): Adjust.
16333 (remove_displaced_stepping_state): Remove.
16334 (infrun_inferior_exit): Call displaced_step_state.reset.
16335 (use_displaced_stepping): Don't check for NULL.
16336 (displaced_step_prepare_throw): Call
16337 get_displaced_stepping_state.
16338 (displaced_step_fixup): Don't check for NULL.
16339 (prepare_for_detach): Don't check for NULL.
16340
16341 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16342
16343 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16344 in case of call that did not complete.
16345
16346 2019-01-02 Andrey Utkin <autkin@undo.io>
16347
16348 * symfile.c (find_separate_debug_file): Fix search of debug files for
16349 remote debuggee.
16350
16351 2019-01-02 Tom Tromey <tom@tromey.com>
16352
16353 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16354 indentation.
16355 * python/py-frame.c (frapy_older): Remove cast.
16356 (frapy_newer): Likewise.
16357 * python/py-breakpoint.c (local_setattro): Remove cast.
16358 * python/py-arch.c (archpy_name): Remove local variable.
16359 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16360
16361 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16362
16363 * unittests/basic_string_view/element_access/char/empty.cc:
16364 Fix year range in copyright header.
16365
16366 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16367
16368 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16369 Delete.
16370 <operator==>: Update with for removed field.
16371 <hash>: Likewise.
16372 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16373 <isa_features>: ...this.
16374 <abi_features>: New field.
16375 (riscv_isa_flen): Update comment.
16376 (riscv_abi_xlen): New declaration.
16377 (riscv_abi_flen): New declaration.
16378 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16379 isa_features.
16380 (riscv_abi_xlen): New function.
16381 (riscv_isa_flen): Update to get answer from isa_features.
16382 (riscv_abi_flen): New function.
16383 (riscv_has_fp_abi): Update to get answer from abi_features.
16384 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16385 xlen and flen.
16386 (riscv_call_info) <xlen, flen>: Update comment.
16387 (riscv_call_arg_struct): Remove invalid assertions
16388 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16389 is removed.
16390 (riscv_gdbarch_init): Gather isa features and abi features
16391 separately, ensure both match on the gdbarch when reusing an old
16392 gdbarch. Relax an error check to allow 32-bit abi float to run on
16393 a target with 64-bit float hardware.
16394
16395 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16396
16397 * source.c (search_command_helper): Stop reverse search
16398 when line 1 has been searched.
16399
16400 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16401
16402 * record-full.c (record_full_base_target::close): Rewrite
16403 record_full_core_buf_list free logic.
16404
16405 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16406
16407 * break-catch-syscall.c (print_one_catch_syscall): xfree
16408 the last text.
16409
16410 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16411
16412 * top.c (print_gdb_version): Update Copyright year in version
16413 message.
16414
16415 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16416
16417 Update copyright year range in all GDB files.
16418
16419 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16420
16421 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16422
16423 For older changes see ChangeLog-2018.
16424 \f
16425 Local Variables:
16426 mode: change-log
16427 left-margin: 8
16428 fill-column: 74
16429 version-control: never
16430 coding: utf-8
16431 End:
16432