Introduce program_space::remove_objfile
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-12-12 Tom Tromey <tom@tromey.com>
2
3 * progspace.h (struct program_space) <remove_objfile>: Declare.
4 * progspace.c (program_space::remove_objfile): New method.
5 * objfiles.c (unlink_objfile): Remove.
6 (objfile::unlink): Call remove_objfile.
7 (objfile): Don't call unlink_objfile.
8
9 2019-12-12 Tom Tromey <tom@tromey.com>
10
11 * progspace.h (struct program_space) <add_objfile>: Declare
12 method.
13 * progspace.c (program_space::add_objfile): New method.
14 * objfiles.c (~objfile): Don't unlink objfile.
15 (put_objfile_before): Remove.
16 (add_separate_debug_objfile): Don't call put_objfile_before.
17 (objfile::make): Call add_objfile. Set new_objfiles_available on
18 the per-program-space data.
19
20 2019-12-12 Tom Tromey <tom@tromey.com>
21
22 * symfile.c (syms_from_objfile_1): Use objfile_up.
23 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
24 method.
25 (reread_symbols): Use objfile_up.
26 * solib.c (update_solib_list, reload_shared_libraries_1): Call
27 unlink method.
28 * objfiles.h (struct objfile) <~objfile>: Now private.
29 <unlink>: New method.
30 (struct objfile_deleter): New.
31 (objfile_up): New typedef.
32 * objfiles.c (objfile::unlink): New method.
33 (free_objfile_separate_debug, free_all_objfiles)
34 (objfile_purge_solibs): Use it.
35 * jit.c (jit_unregister_code): Remove.
36 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
37 objfile.
38 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
39 objfile.
40 * compile/compile-object-load.c (compile_object_load): Use
41 objfile_up.
42
43 2019-12-12 Tom Tromey <tom@tromey.com>
44
45 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
46 objfile::make.
47 * objfiles.h (struct objjfile) <make>: No longer inline.
48 (add_separate_debug_objfile): Don't declare.
49 * objfiles.c (add_separate_debug_objfile): Now static.
50 (objfile::make): Move from objfiles.h. Call
51 add_separate_debug_objfile. Add "parent" parameter.
52
53 2019-12-12 Tom Tromey <tom@tromey.com>
54
55 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
56 * objfiles.h (struct objfile): Make constructor private.
57 <make>: New static method.
58 * jit.c (jit_object_close_impl): Update.
59
60 2019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
61
62 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
63 gdb::byte_vector.
64
65 2019-12-12 Tom Tromey <tromey@adacore.com>
66
67 * xml-support.c (xml_fetch_content_from_file): Don't call
68 malloc_failure.
69 * utils.h (class gdb_argv): Remove malloc_failure comment.
70 * utils.c (gdb_argv::reset): Don't call malloc_failure.
71
72 2019-12-12 Tom Tromey <tromey@adacore.com>
73
74 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
75 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
76 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
77 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
78 * riscv-ravenscar-thread.c: New file.
79 * riscv-ravenscar-thread.h: New file.
80 * riscv-tdep.c (riscv_gdbarch_init): Call
81 register_riscv_ravenscar_ops.
82
83 2019-12-12 Tom Tromey <tromey@adacore.com>
84
85 * gdbsupport/thread-pool.c (set_thread_name): Use
86 ATTRIBUTE_UNUSED.
87
88 2019-12-12 Luis Machado <luis.machado@linaro.org>
89
90 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
91 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
92 macros.
93
94 2019-12-11 Tom Tromey <tom@tromey.com>
95
96 * tui/tui-win.c (tui_set_win_height_command): Call
97 tui_adjust_window_height.
98 (tui_adjust_win_heights, new_height_ok): Remove.
99 * tui/tui-layout.h (tui_adjust_window_height): Declare.
100 * tui/tui-layout.c (tui_adjust_window_height): New function.
101
102 2019-12-11 Tom Tromey <tom@tromey.com>
103
104 * tui/tui-win.c (tui_resize_all): Remove code, call
105 tui_apply_current_layout.
106
107 2019-12-11 Tom Tromey <tom@tromey.com>
108
109 * tui/tui-layout.h (tui_apply_current_layout): Declare.
110 * tui/tui-layout.c (standard_layouts, applied_layout): New
111 globals.
112 (tui_apply_current_layout): New function.
113 (show_layout): Set applied_layout. Call
114 tui_apply_current_layout.
115 (show_source_command, show_disasm_command)
116 (show_source_disasm_command, show_data)
117 (show_source_or_disasm_and_command): Remove.
118 (initialize_layouts): New function.
119 (_initialize_tui_layout): Call initialize_layouts.
120
121 2019-12-11 Tom Tromey <tom@tromey.com>
122
123 * tui/tui-layout.h (class tui_layout_base)
124 (class tui_layout_window, class tui_layout_split): New.
125 * tui/tui-layout.c (tui_get_window_by_name)
126 (tui_layout_window::clone, tui_layout_window::apply)
127 (tui_layout_window::get_sizes, tui_layout_window::add_split)
128 (tui_layout_split::add_window, tui_layout_split::clone)
129 (tui_layout_split::get_sizes)
130 (tui_layout_split::set_weights_from_heights)
131 (tui_layout_split::adjust_size, tui_layout_split::apply): New
132 functions.
133 (tui_layout_split::add_split, tui_layout_split::add_split)
134 (tui_layout_split::set_weights_from_heights)
135 (tui_layout_split::set_weights_from_heights): New functions.
136
137 2019-12-11 Tom Tromey <tom@tromey.com>
138
139 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
140 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
141 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
142 * tui/tui-data.h (struct tui_point): Remove.
143 (struct tui_gen_win_info) <origin>: Remove.
144 <x, y>: New fields.
145 * tui/tui-command.c (tui_cmd_window::resize): Update.
146
147 2019-12-11 Tom Tromey <tom@tromey.com>
148
149 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
150 Implement.
151 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
152 Implement.
153 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
154 method.
155 (struct tui_win_info) <min_height>: Implement.
156
157 2019-12-11 Tom Tromey <tom@tromey.com>
158
159 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
160 (struct tui_win_info) <can_box>: Update.
161
162 2019-12-11 Tom Tromey <tom@tromey.com>
163
164 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
165 method.
166 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
167 method.
168 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
169 method.
170 (struct tui_win_info) <max_height>: Now override.
171
172 2019-12-11 Joel Brobecker <brobecker@adacore.com>
173
174 * NEWS: Create a new section for the next release branch.
175 Rename the section of the current branch, now that it has
176 been cut.
177
178 2019-12-11 Joel Brobecker <brobecker@adacore.com>
179
180 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
181 * version.in: Bump version to 10.0.50.DATE-git.
182
183 2019-12-11 Tom Tromey <tromey@adacore.com>
184
185 PR build/25268:
186 * gdbsupport/thread-pool.c (set_thread_name): New function.
187 (thread_pool::set_thread_count): Don't call pthread_setname_np.
188 (thread_pool::thread_function): Call set_thread_name.
189
190 2019-12-11 Tom Tromey <tromey@adacore.com>
191
192 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
193 bfd_get_signed_8.
194
195 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
196
197 * NEWS: Document -raw-values option and the related setting commands.
198 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
199 only set it on when /r is given.
200 * valprint.c (value_print_option_defs): New element raw-values.
201 * Makefile.in: Add the new file.
202
203 2019-12-10 Christian Biesinger <cbiesinger@google.com>
204
205 * gdbsupport/safe-strerror.c: Supress the unused function warning
206 for select_strerror_r.
207
208 2019-12-10 Christian Biesinger <cbiesinger@google.com>
209
210 * config.in: Regenerate.
211 * configure: Regenerate.
212 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
213 safe_strerror instead of strerror.
214 * gdbsupport/common.m4: Don't check for strerror.
215 * gdbsupport/safe-strerror.c: Support both the glibc version
216 of strerror_r and the XSI version.
217
218 2019-12-10 Tom Tromey <tromey@adacore.com>
219
220 * ada-typeprint.c (print_choices): Use a single "?".
221 (print_variant_part): Print "?" if the discriminant name
222 is not known.
223
224 2019-12-10 George Barrett <bob@bob131.so>
225
226 Fix scripted probe breakpoints.
227 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
228 declaration forward.
229 (breakpoint_ops_for_event_location_type)
230 (breakpoint_ops_for_event_location): Add function definitions.
231 (break_command_1, trace_command): Use
232 breakpoint_ops_for_event_location.
233 * breakpoint.h (breakpoint_ops_for_event_location): Add function
234 declarations.
235 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
236 breakpoint_ops_for_event_location.
237 * python/py-breakpoint.c (bppy_init): Use
238 breakpoint_ops_for_event_location.
239
240 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
241
242 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
243 when ranking an lvalue argument for an rvalue parameter.
244
245 2019-12-08 Wataru Ashihara <wataash@wataash.com>
246
247 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
248 template argument for scoped_restore_tmpl from bool to int.
249
250 2019-12-07 Keith Seitz <keiths@redhat.com>
251
252 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
253 (build_id_to_debug_bfd): Make static, rewriting to use
254 build_id_to_bfd_suffix.
255 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
256 adding `suffix' parameter. Append SUFFIX to file names
257 when searching for matching files.
258 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
259 (build_id_to_exec_bfd): Likewise.
260 * build-id.h (build_id_to_debug_bfd): Clarify that function
261 searches for BFD of debug info file.
262 (build_id_to_exec_bfd): Declare.
263 * corelow.c: Include build-id.h.
264 (locate_exec_from_corefile_build_id): New function.
265 (core_target_open): If no executable BFD is found,
266 search for a core file BFD using build-id.
267
268 2019-12-06 Christian Biesinger <cbiesinger@google.com>
269
270 * bcache.c: Put in namespace gdb.
271 * bcache.h: Likewise.
272 * gdbtypes.c (check_types_worklist): Update.
273 (types_deeply_equal): Update.
274 * macrotab.c (struct macro_table) <bcache>: Update.
275 (new_macro_table): Update.
276 * macrotab.h (struct bcache): Put this forward declaration
277 inside namespace gdb.
278 (new_macro_table): Update.
279 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
280 Update.
281 <macro_cache>: Update.
282 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
283
284 2019-12-06 Tom de Vries <tdevries@suse.de>
285
286 PR symtab/24971
287 * block.c (best_symbol, better_symbol): New function.
288 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
289 decl.
290
291 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
292
293 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
294 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
295 for ranking see-through reference cases.
296
297 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
298 * stack.c (faas_command): Check a command is provided.
299 * thread.c (taas_command, tfaas_command): Likewise.
300
301 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
302 * inferior.c (prune_inferiors): Only call delete_inferior,
303 Do not modify the inferior list.
304
305 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
306
307 * c-exp.y: Update calls to lookup_typename,
308 lookup_signed_typename and lookup_unsigned_typename.
309 * c-lang.c (evaluate_subexp_c): Likewise.
310 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
311 Likewise.
312 * eval.c (binop_promote): Likewise.
313 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
314 (lookup_unsigned_typename): Likewise.
315 (lookup_signed_typename): Likewise.
316 * gdbtypes.h (lookup_unsigned_typename): Likewise.
317 (lookup_signed_typename): Likewise.
318 (lookup_typename): Likewise.
319 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
320 lookup_typename, lookup_signed_typename,
321 lookup_unsigned_typename.
322 * m2-exp.y: Likewise.
323 * printcmd.c (printf_wide_c_string): Likewise.
324 (ui_printf): Likewise.
325 * python/py-type.c (typy_lookup_typename): Likewise.
326 * python/py-xmethods.c (python_xmethod_worker::invoke):
327 Likewise.
328 * rust-exp.y: Likewise.
329
330 2019-12-04 Christian Biesinger <cbiesinger@google.com>
331
332 * configure.nat (obsd64): Add missing files x86-nat.o and
333 nat/x86-dregs.o.
334
335 2019-12-04 Tom Tromey <tom@tromey.com>
336
337 * valprint.c (val_print_string): Use metadata_style.
338 * go-valprint.c (print_go_string): Use metadata style.
339 * p-valprint.c (pascal_object_print_static_field): Use metadata
340 style.
341 * cp-valprint.c (cp_print_static_field): Use metadata style.
342
343 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
344 Chris January <chris.january@arm.com>
345
346 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
347 tokens.
348 (typebase): New patterns for complex, single/double precision, and
349 single/double complex.
350 (f77_keywords): Change token for complex keyword, and add single,
351 double, and precision keywords.
352
353 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
354
355 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
356 "info io_registers".
357
358 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
359
360 * regcache.c (cooked_read_test): Initialize thread list of
361 mock_inferior.
362
363 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
364
365 * aarch64-linux-tdep.c: Remove includes.
366
367 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
368
369 * aarch64-tdep.c: Remove includes.
370
371 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
372
373 * filtered-iterator.h (filtered_iterator) <operator==,
374 operator!=>: Compare wrapped iterators, not wrapped pointers.
375 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
376 unittests/filtered_iterator-selftests.c.
377 * unittests/filtered_iterator-selftests.c: New file.
378
379 2019-12-04 Tom Tromey <tromey@adacore.com>
380
381 * gdbtypes.c (create_range_type): Inherit endianity
382 from base type.
383
384 2019-12-04 Tom Tromey <tromey@adacore.com>
385
386 * ada-lang.c (decode_constrained_packed_array)
387 (ada_value_assign, value_assign_to_component): Update.
388 * dwarf2loc.c (rw_pieced_value, access_memory)
389 (dwarf2_compile_expr_to_ax): Update.
390 * dwarf2read.c (dwarf2_add_field): Update.
391 * eval.c (evaluate_subexp_standard): Update.
392 * gdbarch.c, gdbarch.h: Rebuild.
393 * gdbarch.sh (bits_big_endian): Remove.
394 * gdbtypes.h (union field_location): Update comment.
395 * target-descriptions.c (make_gdb_type): Update.
396 * valarith.c (value_bit_index): Update.
397 * value.c (struct value) <bitpos>: Update comment.
398 (unpack_bits_as_long, modify_field): Update.
399 * value.h (value_bitpos): Update comment.
400
401 2019-12-04 Tom Tromey <tromey@adacore.com>
402
403 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
404 endian-ness.
405
406 2019-12-04 Tom Tromey <tromey@adacore.com>
407
408 * dwarf2read.c (dwarf2_init_float_type)
409 (dwarf2_init_complex_target_type): Add byte_order parameter.
410 (read_base_type): Compute byte order earlier.
411 * gdbtypes.c (init_float_type): Add byte_order parameter.
412 * gdbtypes.h (init_float_type): Add byte_order parameter.
413
414 2019-12-04 Tom Tromey <tromey@adacore.com>
415
416 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
417
418 2019-12-04 Tom Tromey <tromey@adacore.com>
419
420 * dwarf2read.c (process_structure_scope): Initialize
421 "discr_offset".
422
423 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
424
425 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
426 add it into the search spec.
427 (parse_max_results_option): New function.
428 (mi_info_functions_or_variables): Parse -max-results flag and pass
429 it to mi_symbol_info.
430 (mi_cmd_symbol_info_modules): Likewise.
431 (mi_cmd_symbol_info_types): Likewise.
432 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
433 return type to bool, change result container into a set, and don't
434 add new results if we have enough already.
435 (global_symbol_searcher::add_matching_msymbols): Change return
436 type to bool, and don't add new results if we have enough already.
437 (sort_search_symbols_remove_dups): Delete.
438 (global_symbol_searcher::search): Early exit from search loop when
439 we have enough results. Use a std::set to collect the results
440 from calling add_matching_symbols.
441 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
442 member function.
443 (global_symbol_searcher) <m_max_search_results>: New member
444 variable.
445 (global_symbol_searcher) <add_matching_symbols>: Update header
446 comment and change return type to bool.
447 (global_symbol_searcher) <add_matching_msymbols>: Update header
448 comment and change return type to bool.
449
450 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
451
452 * symtab.c (symbol_search::compare_search_syms): Update header
453 comment.
454 (global_symbol_searcher::is_suitable_msymbol): New function.
455 (global_symbol_searcher::expand_symtabs): New function.
456 (global_symbol_searcher::add_matching_symbols): New function.
457 (global_symbol_searcher::add_matching_msymbols): New function.
458 (global_symbol_searcher::search): Move most of the content
459 into the new functions above, and call them as needed.
460 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
461 function.
462 (global_symbol_searcher) <add_matching_symbols>: New member
463 function.
464 (global_symbol_searcher) <add_matching_msymbols>: New member
465 function.
466 (global_symbol_searcher) <is_suitable_msymbol>: New member
467 function.
468
469 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
470
471 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
472 -symbol-info-module-variables entries.
473 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
474 (mi_cmd_symbol_info_module_variables): Declare.
475 * mi/mi-symbol-cmds.c
476 (module_symbol_search_iterator): New typedef.
477 (output_module_symbols_in_single_module_and_file): New function.
478 (output_module_symbols_in_single_module): New function.
479 (mi_info_module_functions_or_variables): New function.
480 (mi_cmd_symbol_info_module_functions): New function.
481 (mi_cmd_symbol_info_module_variables): New function.
482 * NEWS: Mention new MI command.
483
484 2019-12-03 Christian Biesinger <cbiesinger@google.com>
485
486 * bcache.c (hash): Remove.
487 (hash_continue): Remove.
488 * bcache.h (hash): Remove.
489 (hash_continue): Remove.
490 (struct bcache) <ctor>: Update.
491 * psymtab.c (psymbol_hash): Update.
492 * stabsread.c (hashname): Update.
493 * utils.h (fast_hash): Add an argument for a start value,
494 defaulting to zero.
495
496 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
497 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
498 (destroy_block_symbol_cache): New function.
499 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
500 (resize_symbol_cache): Likewise.
501
502 2019-12-02 Tom Tromey <tom@tromey.com>
503
504 * unittests/tui-selftests.c (run_tests): Make conditional.
505 (_initialize_tui_selftest): Make conditional.
506
507 2019-12-02 Christian Biesinger <cbiesinger@google.com>
508
509 * aix-thread.c (debug_aix_thread): Change type to bool.
510
511 2019-12-02 Luis Machado <luis.machado@linaro.org>
512
513 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
514
515 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
516
517 * dwarf2read.c (read_tag_string_type): Read the fields required to
518 make a dynamic string, and possibly create a dynamic range for the
519 string.
520 (attr_to_dynamic_prop): Setup is_reference based on the type of
521 attribute being processed.
522 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
523 (resolve_dynamic_array): Rename to...
524 (resolve_dynamic_array_or_string): ...this, update header comment,
525 and accept TYPE_CODE_STRING.
526 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
527
528 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
529
530 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
531 of its implementation from...
532 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
533 the new function.
534
535 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
536
537 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
538 create a range with stride where appropriate.
539 * f-valprint.c: Include 'gdbarch.h'.
540 (f77_print_array_1): Take the stride into account when walking the
541 array. Also convert the stride into addressable units.
542 * gdbtypes.c (create_range_type): Initialise the stride to
543 constant zero.
544 (create_range_type_with_stride): New function, initialise the
545 range as normal, and then setup the stride.
546 (has_static_range): Include the stride here. Also change the
547 return type to bool.
548 (create_array_type_with_stride): Consider the range stride if the
549 array isn't given its own stride.
550 (resolve_dynamic_range): Resolve the stride if needed.
551 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
552 (struct range_bounds) <flag_is_byte_stride>: New member variable.
553 (TYPE_BIT_STRIDE): Define.
554 (TYPE_ARRAY_BIT_STRIDE): Define.
555 (create_range_type_with_stride): Declare.
556 * valarith.c (value_subscripted_rvalue): Take range stride into
557 account when walking the array.
558
559 2019-12-01 Tom Tromey <tom@tromey.com>
560
561 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
562 specially.
563
564 2019-12-01 Tom Tromey <tom@tromey.com>
565
566 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
567 \0.
568 * unittests/tui-selftests.c: New file.
569 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
570
571 2019-12-01 Tom Tromey <tom@tromey.com>
572
573 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
574
575 2019-12-01 Tom Tromey <tom@tromey.com>
576
577 * NEWS: Document new settings.
578 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
579 * tui/tui-win.c (_initialize_tui_win): Add border style
580 observers.
581 * tui/tui-io.h (tui_apply_style): Declare.
582 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
583 longer static.
584 (apply_ansi_escape, tui_set_reverse_mode): Update.
585 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
586 Add "skip_intensity" parameter.
587 <changed>: New member.
588 <do_set_value>: Declare.
589 (tui_border_style, tui_active_border_style): Declare.
590 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
591 globals.
592 (cli_style_option): Initialize "changed".
593 (cli_style_option::do_set_value): New function.
594 (cli_style_option::add_setshow_commands): Add "skip_intensity"
595 parameter. Update.
596 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
597 (_initialize_cli_style): Update. Create TUI border style
598 commands.
599
600 2019-12-01 Tom Tromey <tom@tromey.com>
601
602 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
603 parameter.
604 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
605 parameter.
606 * tui/tui-win.h (compact_source): Declare.
607 * tui/tui-win.c (compact_source): New global.
608 (tui_set_compact_source, tui_show_compact_source): New functions.
609 (_initialize_tui_win): Add "compact-source" setting.
610 * tui/tui-source.c (tui_source_window::set_contents): Handle
611 compact_source setting.
612 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
613 * NEWS: Document new setting.
614
615 2019-11-30 Tom Tromey <tom@tromey.com>
616
617 * dwarf2read.c (dwarf2_add_field): Include field offset when
618 computing variant part length.
619
620 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
621 * NEWS: Mention define-prefix. Tell that command names can now
622 contain a . character.
623
624 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
625
626 * command.h (valid_cmd_char_p): Declare.
627 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
628 the check of valid command char.
629 (find_command_name_length, valid_user_defined_cmd_name_p): Use
630 valid_cmd_char_p.
631 * cli/cli-script.c (validate_comname): Likewise.
632 * completer.c (gdb_completer_command_word_break_characters):
633 Do not remove . from the word break char, update comments.
634 (complete_line_internal_1): Use valid_cmd_char_p.
635 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
636 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
637
638 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
639
640 * cli/cli-script.c (do_define_command): Ensure a redefined
641 prefix command is kept as a prefix command.
642 (define_prefix_command): New function.
643 (show_user_1): Report user defined prefixes.
644 (_initialize_cli_script): Create the new 'define-prefix' command.
645 Add completers for 'define' and 'document'.
646 * top.c (execute_command): If command is a user-defined prefix only
647 command, report the list of commands for this prefix command.
648
649 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
650
651 * valops.c (find_oload_champ): Improve debug output.
652
653 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
654
655 * valops.c (find_oload_champ): Print part of debug messages
656 before the badness vector is std::move'd.
657
658 2019-11-28 Tom Tromey <tom@tromey.com>
659
660 * value.c (creal_internal_fn): Fix comment.
661
662 2019-11-28 Tom Tromey <tom@tromey.com>
663
664 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
665 flag_bound_evaluated>: Now unsigned.
666
667 2019-11-28 Tom Tromey <tom@tromey.com>
668
669 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
670 declare.
671
672 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
673
674 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
675 debug output.
676 * jit.c (jit_unregister_code): Add debug print to match
677 `jit_register_code`.
678
679 2019-11-27 Christian Biesinger <cbiesinger@google.com>
680
681 * NEWS: Mention the new multithreaded symbol loading.
682
683 2019-11-27 Christian Biesinger <cbiesinger@google.com>
684
685 * maint.c (n_worker_threads): Default to 0.
686 (worker_threads_disabled): New function.
687 * maint.h (worker_threads_disabled): New function.
688 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
689 here if worker_threads_disabled () is true.
690 (minimal_symbol_reader::install): Skip all threading if
691 worker_threads_disabled () is true.
692
693 2019-11-27 Christian Biesinger <cbiesinger@google.com>
694
695 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
696 hash code if possible.
697 (add_minsym_to_demangled_hash_table): Likewise.
698 (minimal_symbol_reader::install): Compute the hash codes for msymbol
699 on the background thread.
700 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
701 Add these fields.
702
703 2019-11-27 Christian Biesinger <cbiesinger@google.com>
704
705 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
706 of the mangled name on the background thread.
707 * symtab.c (symbol_set_names): Allow passing in the hash of the
708 linkage_name.
709 * symtab.h (symbol_set_names): Likewise.
710
711 2019-11-27 Kevin Buettner <kevinb@redhat.com>
712
713 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
714 physnames are computed for inherited DIEs.
715
716 2019-11-27 Tom Tromey <tromey@adacore.com>
717
718 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
719 backslashes.
720 * cp-support.c: Remove unnecessary backslashes.
721
722 2019-11-27 Christian Biesinger <cbiesinger@google.com>
723
724 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
725 with sym->set_linkage_name.
726 * coffread.c (coff_read_enum_type): Likewise.
727 * mdebugread.c (parse_symbol): Likewise.
728 * stabsread.c (patch_block_stabs): Likewise.
729 (define_symbol): Likewise.
730 (read_enum_type): Likewise.
731 (common_block_end): Likewise.
732 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
733 function.
734 (SYMBOL_SET_LINKAGE_NAME): Remove.
735 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
736 with sym->set_linkage_name.
737
738 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
739
740 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
741 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
742 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
743 * NEWS: Mention new MI command.
744
745 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
746
747 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
748 '-symbol-info-types', and '-symbol-info-variables'.
749 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
750 (mi_cmd_symbol_info_types): Declare.
751 (mi_cmd_symbol_info_variables): Declare.
752 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
753 (output_debug_symbol): New function.
754 (output_nondebug_symbol): New function.
755 (mi_symbol_info): New function.
756 (mi_info_functions_or_variables): New function.
757 (mi_cmd_symbol_info_functions): New function.
758 (mi_cmd_symbol_info_types): New function.
759 (mi_cmd_symbol_info_variables): New function.
760 * NEWS: Mention new commands.
761
762 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
763
764 * symtab.c (symbol_to_info_string): New function, most content
765 moved from print_symbol_info, but updated to return a std::string.
766 (print_symbol_info): Update to use symbol_to_info_string and print
767 returned string.
768 * symtab.h (symbol_to_info_string): Declare new function.
769
770 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
771
772 * python/python.c (gdbpy_rbreak): Convert to using
773 global_symbol_searcher.
774 * symtab.c (file_matches): Convert return type to bool, change
775 file list to std::vector, update header comment.
776 (search_symbols): Rename to...
777 (global_symbol_searcher::search): ...this and update now its
778 a member function of global_symbol_searcher. Take account of the
779 changes to file_matches.
780 (symtab_symbol_info): Convert to using global_symbol_searcher.
781 (rbreak_command): Likewise.
782 (search_module_symbols): Likewise.
783 * symtab.h (enum symbol_search): Update comment.
784 (search_symbols): Remove declaration.
785 (class global_symbol_searcher): New class.
786
787 2019-11-26 Tom Tromey <tromey@adacore.com>
788
789 * cp-support.c (_initialize_cp_support): Conditionally initialize
790 gdb_demangle_attempt_core_dump.
791
792 2019-11-26 Tom Tromey <tom@tromey.com>
793
794 * python/py-function.c (fnpy_init): Update.
795 * value.h (add_internal_function): Adjust declaration.
796 * value.c (function_destroyer): Remove.
797 (do_add_internal_function): Don't set destroyer or copy name.
798 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
799 Set name_allocated.
800 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
801 (cmdpy_init): Set name_allocated.
802 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
803 member.
804 (~cmd_list_element): Free "name" if needed.
805
806 2019-11-26 Tom Tromey <tom@tromey.com>
807
808 * value.h (add_internal_function): Add new overload. Move
809 documentation from value.h.
810 * value.c (do_add_internal_function): New function.
811 (add_internal_function): Use it. Add new overload.
812 (function_destroyer): Don't free doc.
813 * python/py-function.c (fnpy_init): Update.
814
815 2019-11-26 Tom Tromey <tom@tromey.com>
816
817 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
818 (cmdpy_init): Set "doc_allocated".
819
820 2019-11-26 Tom Tromey <tom@tromey.com>
821
822 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
823 name of worker thread.
824 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
825 pthread_setname_np.
826 * configure, config.in: Rebuild.
827
828 2019-11-26 Tom Tromey <tom@tromey.com>
829
830 * python/python.c (class gdbpy_gil): New.
831 (struct gdbpy_event): Add constructor, destructor, operator().
832 (gdbpy_post_event): Use run_on_main_thread.
833 (gdbpy_initialize_events): Remove.
834 (do_start_initialization): Update.
835
836 2019-11-26 Tom Tromey <tom@tromey.com>
837
838 * NEWS: Add entry.
839 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
840 commands. Call update_thread_pool_size.
841 (update_thread_pool_size, maintenance_set_worker_threads): New
842 functions.
843 (n_worker_threads): New global.
844
845 2019-11-26 Christian Biesinger <cbiesinger@google.com>
846 Tom Tromey <tom@tromey.com>
847
848 * minsyms.c (minimal_symbol_reader::install): Use
849 parallel_for_each.
850 * gdbsupport/parallel-for.h: New file.
851 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
852
853 2019-11-26 Christian Biesinger <cbiesinger@google.com>
854 Tom Tromey <tom@tromey.com>
855
856 * gdbsupport/thread-pool.h: New file.
857 * gdbsupport/thread-pool.c: New file.
858 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
859 (HFILES_NO_SRCDIR): Add thread-pool.h.
860
861 2019-11-26 Tom Tromey <tom@tromey.com>
862
863 * event-top.h (thread_local_segv_handler): Declare.
864 * event-top.c (thread_local_segv_handler): New global.
865 (install_handle_sigsegv, handle_sigsegv): New functions.
866 (async_init_signals): Install SIGSEGV handler.
867 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
868 thread-local.
869 (report_failed_demangle): New function.
870 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
871 handler-setting code, instead use segv_handler. Run warning code
872 on main thread.
873
874 2019-11-26 Tom Tromey <tom@tromey.com>
875
876 * run-on-main-thread.c: New file.
877 * run-on-main-thread.h: New file.
878 * unittests/main-thread-selftests.c: New file.
879 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
880 main-thread-selftests.c.
881 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
882 (COMMON_SFILES): Add run-on-main-thread.c.
883
884 2019-11-26 Tom Tromey <tom@tromey.com>
885
886 * main.c (setup_alternate_signal_stack): Remove.
887 (captured_main_1): Use gdb::alternate_signal_stack.
888 * gdbsupport/alt-stack.h: New file.
889
890 2019-11-26 Tom Tromey <tom@tromey.com>
891
892 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
893 Remove comment.
894 (save_original_signals_state, restore_original_signals_state): Use
895 gdb_sigmask.
896 * linux-nat.c (block_child_signals, restore_child_signals_mask)
897 (_initialize_linux_nat): Use gdb_sigmask.
898 * guile/guile.c (_initialize_guile): Use block_signals.
899 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
900 * gdbsupport/gdb-sigmask.h: New file.
901 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
902 * cp-support.c (gdb_demangle): Use gdb_sigmask.
903 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
904 pthread_sigmask.
905 * configure, config.in: Rebuild.
906 * gdbsupport/block-signals.h: New file.
907
908 2019-11-26 Tom Tromey <tom@tromey.com>
909
910 * acinclude.m4: Include ax_pthread.m4.
911 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
912 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
913 (CLIBS): Use PTHREAD_LIBS.
914 (aclocal_m4_deps): Add ax_pthread.m4.
915 * config.in, configure: Rebuild.
916 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
917
918 2019-11-26 Tom Tromey <tom@tromey.com>
919
920 * symtab.h (struct minimal_symbol) <name_set>: New member.
921 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
922 Don't call symbol_set_names.
923 (minimal_symbol_reader::install): Call symbol_set_names.
924
925 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
926
927 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
928 restore_active_ext_lang, as GIL is needed for (indirectly)
929 called PyOS_InterruptOccurred.
930
931 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
932
933 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
934 definition.
935
936 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
937
938 * remote-sim.c (simulator_command): Make static, remove
939 declaration.
940
941 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
942
943 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
944 static.
945 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
946 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
947 (main): Likewise.
948 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
949 (main): Likewise.
950 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
951 (main): Likewise.
952 * unittests/basic_string_view/element_access/char/1.cc (test01):
953 Likewise.
954 (main): Likewise.
955 * unittests/basic_string_view/element_access/char/empty.cc (main):
956 Likewise.
957 * unittests/basic_string_view/element_access/char/front_back.cc
958 (test01): Likewise.
959 (main): Likewise.
960 * unittests/basic_string_view/inserters/char/2.cc (test05):
961 Likewise.
962 (main): Likewise.
963 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
964 (test01): Likewise.
965 (main): Likewise.
966 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
967 (test01): Likewise.
968 (main): Likewise.
969 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
970 Likewise.
971 * unittests/basic_string_view/operations/compare/char/1.cc
972 (test01): Likewise.
973 (main): Likewise.
974 * unittests/basic_string_view/operations/compare/char/13650.cc
975 (test01): Likewise.
976 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
977 Likewise.
978 (main): Likewise.
979 * unittests/basic_string_view/operations/data/char/1.cc (test01):
980 Likewise.
981 (main): Likewise.
982 * unittests/basic_string_view/operations/find/char/1.cc (test01):
983 Likewise.
984 (main): Likewise.
985 * unittests/basic_string_view/operations/find/char/2.cc (test02):
986 Likewise.
987 (main): Likewise.
988 * unittests/basic_string_view/operations/find/char/3.cc (test03):
989 Likewise.
990 (main): Likewise.
991 * unittests/basic_string_view/operations/find/char/4.cc (main):
992 Likewise.
993 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
994 Likewise.
995 (main): Likewise.
996 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
997 Likewise.
998 (main): Likewise.
999 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1000 Likewise.
1001 (main): Likewise.
1002 * unittests/basic_string_view/operations/substr/char/1.cc
1003 (test01): Likewise.
1004 (main): Likewise.
1005 * unittests/basic_string_view/operators/char/2.cc (main):
1006 Likewise.
1007 * unittests/optional/assignment/1.cc (test): Likewise.
1008 * unittests/optional/assignment/2.cc (test): Likewise.
1009 * unittests/optional/assignment/3.cc (test): Likewise.
1010 * unittests/optional/assignment/4.cc (test): Likewise.
1011 * unittests/optional/assignment/5.cc (test): Likewise.
1012 * unittests/optional/assignment/6.cc (test): Likewise.
1013 * unittests/optional/assignment/7.cc (test): Likewise.
1014 * unittests/optional/cons/copy.cc (test): Likewise.
1015 * unittests/optional/cons/default.cc (test): Likewise.
1016 * unittests/optional/cons/move.cc (test): Likewise.
1017 * unittests/optional/cons/value.cc (test): Likewise.
1018 * unittests/optional/in_place.cc (test): Likewise.
1019 * unittests/optional/observers/1.cc (test): Likewise.
1020 * unittests/optional/observers/2.cc (test): Likewise.
1021
1022 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1023
1024 * tui-win.h (tui_set_var_cmd): Remove.
1025 * tui-win.c (tui_set_var_cmd): Make static.
1026
1027 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1028
1029 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1030 rbreak_command_wrapper): Remove.
1031 * symtab.c (rbreak_command_wrapper): Remove.
1032
1033 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1034
1035 * inferior.h (info_terminal_command): Remove declaration.
1036 * inflow.c (info_terminal_command): Make static.
1037
1038 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1039
1040 * inferior.c (exit_inferior_silent): Remove.
1041
1042 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1043
1044 * dictionary.c (dict_empty, mdict_empty): Remove.
1045 * dictionary.c (mdict_empty): Remove.
1046
1047 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1048
1049 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1050 (arc_insn_get_memory_offset): Likewise.
1051 (arc_insn_dump): Likewise.
1052 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1053 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1054 * dictionary.c (dict_iterator_next): Likewise.
1055 (dict_iter_match_first): Likewise.
1056 (dict_iter_match_next): Likewise.
1057 * f-lang.c (evaluate_subexp_f): Likewise.
1058 * hppa-tdep.c (hppa_read_pc): Likewise.
1059 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1060 * parse.c (write_exp_elt_msym): Likewise.
1061 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1062 * remote.c (remote_packet_size): Likewise.
1063 (remote_notif_stop_parse): Likewise.
1064 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1065 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1066 * source.c (prepare_path_for_appending): Likewise.
1067 * sparc64-linux-tdep.c
1068 (sparc64_linux_handle_segmentation_fault); Likewise.
1069 * stack.c (frame_selection_by_function_completer): Likewise.
1070
1071 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1072
1073 * completer.c (set_gdb_completion_word_break_characters):
1074 Remove.
1075
1076 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1077
1078 * dwarf-index-write.c: Include dwarf-index-write.h.
1079 * mi/mi-interp.c: Include mi/mi-interp.h.
1080
1081 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1082
1083 * aarch32-tdep.c: Include aarch32-tdep.h.
1084 * aarch32-tdep.h: Forward-declare struct target_desc.
1085
1086 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1087
1088 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1089 strerror.
1090 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1091 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1092
1093 2019-11-25 Tom de Vries <tdevries@suse.de>
1094
1095 * contrib/words.sh: Add -c option.
1096
1097 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1098
1099 * solib.c (solib_find_1): Change int to bool.
1100 (exec_file_find): Change int to bool.
1101 (solib_find): Change int to bool.
1102 (solib_read_symbols): Change int to bool.
1103 (solib_used): Change int to bool.
1104 (solib_add): Change int to bool.
1105 (info_sharedlibrary_command): Change int to bool.
1106 (solib_contains_address_p): Change int to bool.
1107 (solib_keep_data_in_core): Change int to bool.
1108 (in_solib_dynsym_resolve_code): Change int to bool.
1109 (reload_shared_libraries_1): Change int to bool.
1110 (gdb_sysroot_changed): Change int to bool.
1111 * solib.h (solib_read_symbols): Change int to bool.
1112 (solib_contains_address_p): Change int to bool.
1113 (solib_keep_data_in_core): Change int to bool.
1114 (in_solib_dynsym_resolve_code): Change int to bool.
1115 (libpthread_name_p): Change int to bool.
1116
1117 2019-11-25 Luis Machado <luis.machado@linaro.org>
1118
1119 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1120 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1121 (remote_packet_max_chars): New static global.
1122 (show_remote_packet_max_chars): New function.
1123 (remote_target::putpkt_binary): Adjust to use new
1124 remote_packet_max_chars option.
1125 (remote_target::getpkt_or_notif_sane_1): Likewise.
1126 (_initialize_remote): Register new remote-packet-max-chars option.
1127
1128 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1129
1130 * m68k-linux-nat.c: Include gdbarch.h.
1131
1132 2019-11-24 Tom Tromey <tom@tromey.com>
1133
1134 * symfile.c (read_symbols): Update.
1135 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1136 bool.
1137 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1138 (psym_lookup_symbol, psym_find_last_source_symtab)
1139 (psym_forget_cached_source_info, psym_print_stats)
1140 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1141 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1142 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1143 (psym_find_compunit_symtab_by_address)
1144 (maintenance_print_psymbols, maintenance_info_psymtabs)
1145 (maintenance_check_psymtabs): Update.
1146 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1147 bool.
1148
1149 2019-11-22 Tom Tromey <tom@tromey.com>
1150
1151 * observable.h: Update comments.
1152
1153 2019-11-22 Tom Tromey <tromey@adacore.com>
1154
1155 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1156 (print_ada_task_info): Don't try to fetch thread id if task is not
1157 alive.
1158
1159 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1160
1161 * ada-exp.y: Update.
1162 * ada-lang.c (sort_choices): Update.
1163 (ada_print_symbol_signature): Update.
1164 (resolve_subexp): Update.
1165 (ada_parse_renaming): Update.
1166 (ada_read_renaming_var_value): Update.
1167 (lesseq_defined_than): Update.
1168 (remove_extra_symbols): Update.
1169 (remove_irrelevant_renamings): Update.
1170 (ada_add_block_symbols): Update.
1171 (ada_collect_symbol_completion_matches): Update.
1172 (ada_is_renaming_symbol): Update.
1173 (aggregate_assign_from_choices): Update.
1174 (ada_evaluate_subexp): Update.
1175 (ada_has_this_exception_support): Update.
1176 (ada_is_non_standard_exception_sym): Update.
1177 (ada_add_exceptions_from_frame): Update.
1178 (ada_add_global_exceptions): Update.
1179 (ada_print_subexp): Update.
1180 * ax-gdb.c (gen_var_ref): Update.
1181 (gen_maybe_namespace_elt): Update.
1182 (gen_expr_for_cast): Update.
1183 (gen_expr): Update.
1184 * block.h: Update.
1185 * blockframe.c (find_pc_partial_function): Update.
1186 * breakpoint.c (print_breakpoint_location): Update.
1187 (update_static_tracepoint): Update.
1188 * btrace.c (ftrace_print_function_name): Update.
1189 (ftrace_function_switched): Update.
1190 * buildsym.c (find_symbol_in_list): Update.
1191 * c-exp.y: Update.
1192 * c-typeprint.c (c_print_typedef): Update.
1193 (c_type_print_template_args): Update.
1194 * cli/cli-cmds.c (edit_command): Update.
1195 (list_command): Update.
1196 (print_sal_location): Update.
1197 * coffread.c (patch_opaque_types): Update.
1198 (process_coff_symbol): Update.
1199 (coff_read_enum_type): Update.
1200 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1201 (convert_one_symbol): Update.
1202 (hash_symname): Update.
1203 (eq_symname): Update.
1204 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1205 * compile/compile-cplus-types.c (debug_print_scope): Update.
1206 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1207 * compile/compile-object-load.c (get_out_value_type): Update.
1208 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1209 (search_symbol_list): Update.
1210 (cp_lookup_symbol_imports_or_template): Update.
1211 * cp-support.c (overload_list_add_symbol): Update.
1212 * ctfread.c (psymtab_to_symtab): Update.
1213 * dbxread.c (cp_set_block_scope): Update.
1214 * dictionary.c (iter_match_first_hashed): Update.
1215 (iter_match_next_hashed): Update.
1216 (insert_symbol_hashed): Update.
1217 (iter_match_next_linear): Update.
1218 * dictionary.h: Update.
1219 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1220 (locexpr_describe_location_piece): Update.
1221 (locexpr_describe_location_1): Update.
1222 (locexpr_generate_c_location): Update.
1223 (loclist_describe_location): Update.
1224 (loclist_generate_c_location): Update.
1225 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1226 (read_func_scope): Update.
1227 (process_enumeration_scope): Update.
1228 (new_symbol): Update.
1229 (dwarf2_const_value): Update.
1230 (dwarf2_symbol_mark_computed): Update.
1231 * eval.c (evaluate_funcall): Update.
1232 (evaluate_subexp_standard): Update.
1233 * expprint.c (print_subexp_standard): Update.
1234 (dump_subexp_body_standard): Update.
1235 * f-valprint.c (info_common_command_for_block): Update.
1236 * findvar.c (get_hosting_frame): Update.
1237 (default_read_var_value): Update.
1238 * go-lang.c (go_symbol_package_name): Update.
1239 * guile/scm-block.c (bkscm_print_block_smob): Update.
1240 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1241 (gdbscm_symbol_name): Update.
1242 (gdbscm_symbol_linkage_name): Update.
1243 (gdbscm_symbol_print_name): Update.
1244 * infcall.c (get_function_name): Update.
1245 * infcmd.c (jump_command): Update.
1246 (finish_command): Update.
1247 * infrun.c (insert_exception_resume_breakpoint): Update.
1248 * linespec.c (canonicalize_linespec): Update.
1249 (create_sals_line_offset): Update.
1250 (convert_linespec_to_sals): Update.
1251 (complete_label): Update.
1252 (find_label_symbols_in_block): Update.
1253 * m2-typeprint.c (m2_print_typedef): Update.
1254 * mdebugread.c (mdebug_reg_to_regnum): Update.
1255 (parse_symbol): Update.
1256 (mylookup_symbol): Update.
1257 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1258 (list_args_or_locals): Update.
1259 * objc-lang.c (compare_selectors): Update.
1260 (info_selectors_command): Update.
1261 (compare_classes): Update.
1262 (info_classes_command): Update.
1263 (find_imps): Update.
1264 * p-typeprint.c (pascal_print_typedef): Update.
1265 * printcmd.c (build_address_symbolic): Update.
1266 (info_address_command): Update.
1267 (print_variable_and_value): Update.
1268 * python/py-framefilter.c (extract_sym): Update.
1269 (py_print_single_arg): Update.
1270 * python/py-symbol.c (sympy_str): Update.
1271 (sympy_get_name): Update.
1272 (sympy_get_linkage_name): Update.
1273 * python/python.c (gdbpy_rbreak): Update.
1274 * record-btrace.c (btrace_get_bfun_name): Update.
1275 (btrace_call_history): Update.
1276 * rust-lang.c (rust_print_typedef): Update.
1277 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1278 * stabsread.c (stab_reg_to_regnum): Update.
1279 (define_symbol): Update.
1280 (read_enum_type): Update.
1281 (common_block_end): Update.
1282 (cleanup_undefined_types_1): Update.
1283 (scan_file_globals): Update.
1284 * stack.c (print_frame_arg): Update.
1285 (print_frame_args): Update.
1286 (find_frame_funname): Update.
1287 (info_frame_command_core): Update.
1288 (iterate_over_block_locals): Update.
1289 (print_block_frame_labels): Update.
1290 (do_print_variable_and_value): Update.
1291 (iterate_over_block_arg_vars): Update.
1292 (return_command): Update.
1293 * symmisc.c (dump_symtab_1): Update.
1294 (print_symbol): Update.
1295 * symtab.c (eq_symbol_entry): Update.
1296 (symbol_cache_dump): Update.
1297 (lookup_language_this): Update.
1298 (find_pc_sect_line): Update.
1299 (skip_prologue_sal): Update.
1300 (symbol_search::compare_search_syms): Update.
1301 (treg_matches_sym_type_name): Update.
1302 (search_symbols): Update.
1303 (print_symbol_info): Update.
1304 (rbreak_command): Update.
1305 (completion_list_add_symbol): Update.
1306 (find_gnu_ifunc): Update.
1307 (get_symbol_address): Update.
1308 (search_module_symbols): Update.
1309 (info_module_subcommand): Update.
1310 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1311 (SYMBOL_LINKAGE_NAME): Remove.
1312 (SYMBOL_DEMANGLED_NAME): Remove.
1313 (SYMBOL_PRINT_NAME): Remove.
1314 (SYMBOL_SEARCH_NAME): Remove.
1315 * tracepoint.c (set_traceframe_context): Update.
1316 (validate_actionline): Update.
1317 (collection_list::collect_symbol): Update.
1318 (encode_actions_1): Update.
1319 (info_scope_command): Update.
1320 (print_one_static_tracepoint_marker): Update.
1321 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1322 * valops.c (address_of_variable): Update.
1323 (find_overload_match): Update.
1324 (find_oload_champ): Update.
1325
1326 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1327
1328 * ada-lang.c (ada_lookup_simple_minsym): Update.
1329 (ada_collect_symbol_completion_matches): Update.
1330 * ada-tasks.c (read_atcb): Update.
1331 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1332 (amd64_windows_skip_trampoline_code): Update.
1333 * arm-tdep.c (skip_prologue_function): Update.
1334 (arm_skip_stack_protector): Update.
1335 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1336 (arm_wince_skip_main_prologue): Update.
1337 * ax-gdb.c (gen_expr): Update.
1338 * block.c (call_site_for_pc): Update.
1339 * blockframe.c (find_pc_partial_function): Update.
1340 * breakpoint.c (set_breakpoint_location_function): Update.
1341 * btrace.c (ftrace_print_function_name): Update.
1342 (ftrace_function_switched): Update.
1343 * c-valprint.c (print_unpacked_pointer): Update.
1344 * coffread.c (coff_symfile_read): Update.
1345 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1346 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1347 * dwarf-index-write.c (write_psymbols): Update.
1348 * dwarf2loc.c (call_site_to_target_addr): Update.
1349 (func_verify_no_selftailcall): Update.
1350 (tailcall_dump): Update.
1351 (call_site_find_chain_1): Update.
1352 (dwarf_expr_reg_to_entry_parameter): Update.
1353 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1354 * eval.c (evaluate_funcall): Update.
1355 (evaluate_subexp_standard): Update.
1356 (evaluate_subexp_for_sizeof): Update.
1357 * expprint.c (print_subexp_standard): Update.
1358 (dump_subexp_body_standard): Update.
1359 * frame.c (get_prev_frame_always_1): Update.
1360 * frv-tdep.c (frv_skip_main_prologue): Update.
1361 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1362 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1363 (gnuv3_get_typename_from_type_info): Update.
1364 (gnuv3_skip_trampoline): Update.
1365 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1366 * i386-tdep.c (i386_skip_main_prologue): Update.
1367 (i386_pe_skip_trampoline_code): Update.
1368 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1369 * infcall.c (get_function_name): Update.
1370 * linespec.c (minsym_found): Update.
1371 * linux-fork.c (info_checkpoints_command): Update.
1372 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1373 (m32c_m16c_pointer_to_address): Update.
1374 * maint.c (maintenance_translate_address): Update.
1375 * minsyms.c (add_minsym_to_hash_table): Update.
1376 (add_minsym_to_demangled_hash_table): Update.
1377 (lookup_minimal_symbol_mangled): Update.
1378 (lookup_minimal_symbol_demangled): Update.
1379 (lookup_minimal_symbol_linkage): Update.
1380 (lookup_minimal_symbol_text): Update.
1381 (lookup_minimal_symbol_by_pc_name): Update.
1382 (minimal_symbol_is_less_than): Update.
1383 (compact_minimal_symbols): Update.
1384 (build_minimal_symbol_hash_tables): Update.
1385 (find_solib_trampoline_target): Update.
1386 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1387 (mips_skip_pic_trampoline_code): Update.
1388 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1389 * objc-lang.c (info_selectors_command): Update.
1390 (info_classes_command): Update.
1391 (find_methods): Update.
1392 (find_imps): Update.
1393 * p-valprint.c (pascal_val_print): Update.
1394 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1395 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1396 * printcmd.c (build_address_symbolic): Update.
1397 (info_symbol_command): Update.
1398 * psymtab.c (psymbol_name_matches): Update.
1399 (match_partial_symbol): Update.
1400 (lookup_partial_symbol): Update.
1401 (print_partial_symbols): Update.
1402 (sort_pst_symbols): Update.
1403 (maintenance_check_psymtabs): Update.
1404 * python/py-framefilter.c (py_print_frame): Update.
1405 * python/python.c (gdbpy_rbreak): Update.
1406 * record-btrace.c (btrace_get_bfun_name): Update.
1407 (btrace_call_history): Update.
1408 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1409 (rs6000_skip_trampoline_code): Update.
1410 * sol-thread.c (info_cb): Update.
1411 * stabsread.c (scan_file_globals): Update.
1412 * stack.c (find_frame_funname): Update.
1413 (info_frame_command_core): Update.
1414 * symmisc.c (dump_msymbols): Update.
1415 * symtab.c (symbol_natural_name): Rename to..,
1416 (general_symbol_info::natural_name): ...this.
1417 (symbol_demangled_name): Rename to...
1418 (general_symbol_info::demangled_name): ...this.
1419 (symbol_search_name): Rename to...
1420 (general_symbol_info::search_name): ...this.
1421 (symbol_matches_search_name): Update.
1422 (find_pc_sect_line): Update.
1423 (skip_prologue_sal): Update.
1424 (search_symbols): Update.
1425 (print_msymbol_info): Update.
1426 (rbreak_command): Update.
1427 (completion_list_add_msymbol): Update.
1428 (completion_list_objc_symbol): Update.
1429 (get_msymbol_address): Update.
1430 * symtab.h (struct general_symbol_info): Add member functions
1431 natural_name (), linkage_name (), print_name (), demangled_name (),
1432 and search_name ().
1433 (SYMBOL_NATURAL_NAME): Update.
1434 (symbol_natural_name): Move to a member function on general_symbol_info.
1435 (SYMBOL_DEMANGLED_NAME): Update.
1436 (symbol_demangled_name): Move to a member function on
1437 general_symbol_info.
1438 (SYMBOL_SEARCH_NAME): Update.
1439 (symbol_search_name): Move to a member function on general_symbol_info.
1440 (MSYMBOL_NATURAL_NAME): Remove.
1441 (MSYMBOL_LINKAGE_NAME): Remove.
1442 (MSYMBOL_PRINT_NAME): Remove.
1443 (MSYMBOL_DEMANGLED_NAME): Remove.
1444 (MSYMBOL_SEARCH_NAME): Remove.
1445 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1446
1447 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1448
1449 * symtab.c (create_demangled_names_hash): Use per_bfd->
1450 minimal_symbol_count for computing the initial size, if greater
1451 than our default size.
1452
1453 2019-11-22 Tom de Vries <tdevries@suse.de>
1454
1455 * contrib/words.sh: Improve words extraction.
1456
1457 2019-11-22 Tom de Vries <tdevries@suse.de>
1458
1459 * contrib/words.sh: Combine sed invocations.
1460
1461 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1462
1463 * Makefile.in: Update.
1464 * demangle.c: Rename to...
1465 * gdb-demangle.c: ..this.
1466 (is_cplus_marker): Change return type to bool.
1467 (_initialize_demangler): Rename to...
1468 (_initialize_gdb_demangle): ...this.
1469 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1470 * symtab.h (demangle): Remove declaration; instead include
1471 gdb-demangle.h.
1472
1473 2019-11-21 Tom Tromey <tromey@adacore.com>
1474
1475 * gdbsupport/format.c (format_pieces): Parse %I64d.
1476 * unittests/format_pieces-selftests.c (test_windows_formats): New
1477 function.
1478 (run_tests): Call it.
1479
1480 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1481
1482 Byte reverse display of variables with DW_END_big, DW_END_little
1483 (DW_AT_endianity) dwarf attributes if different than the native
1484 byte order.
1485 * ada-lang.c (ada_value_binop):
1486 Use type_byte_order instead of gdbarch_byte_order.
1487 * ada-valprint.c (printstr):
1488 (ada_val_print_string):
1489 * ada-lang.c (value_pointer):
1490 (ada_value_binop):
1491 Use type_byte_order instead of gdbarch_byte_order.
1492 * c-lang.c (c_get_string):
1493 Use type_byte_order instead of gdbarch_byte_order.
1494 * c-valprint.c (c_val_print_array):
1495 Use type_byte_order instead of gdbarch_byte_order.
1496 * cp-valprint.c (cp_print_class_member):
1497 Use type_byte_order instead of gdbarch_byte_order.
1498 * dwarf2loc.c (rw_pieced_value):
1499 Use type_byte_order instead of gdbarch_byte_order.
1500 * dwarf2read.c (read_base_type): Handle DW_END_big,
1501 DW_END_little
1502 * f-lang.c (f_get_encoding):
1503 Use type_byte_order instead of gdbarch_byte_order.
1504 * findvar.c (default_read_var_value):
1505 Use type_byte_order instead of gdbarch_byte_order.
1506 * gdbtypes.c (check_types_equal):
1507 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1508 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1509 and TYPE_ENDIANITY_LITTLE if set.
1510 (type_byte_order): new function.
1511 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1512 (struct main_type) <flag_endianity_not_default>:
1513 New field.
1514 (type_byte_order): New function.
1515 * infcmd.c (default_print_one_register_info):
1516 Use type_byte_order instead of gdbarch_byte_order.
1517 * p-lang.c (pascal_printstr):
1518 Use type_byte_order instead of gdbarch_byte_order.
1519 * p-valprint.c (pascal_val_print):
1520 Use type_byte_order instead of gdbarch_byte_order.
1521 * printcmd.c (print_scalar_formatted):
1522 Use type_byte_order instead of gdbarch_byte_order.
1523 * solib-darwin.c (darwin_current_sos):
1524 Use type_byte_order instead of gdbarch_byte_order.
1525 * solib-svr4.c (solib_svr4_r_ldsomap):
1526 Use type_byte_order instead of gdbarch_byte_order.
1527 * stap-probe.c (stap_modify_semaphore):
1528 Use type_byte_order instead of gdbarch_byte_order.
1529 * target-float.c (target_float_same_format_p):
1530 Use type_byte_order instead of gdbarch_byte_order.
1531 * valarith.c (scalar_binop):
1532 (value_bit_index):
1533 Use type_byte_order instead of gdbarch_byte_order.
1534 * valops.c (value_cast):
1535 Use type_byte_order instead of gdbarch_byte_order.
1536 * valprint.c (generic_emit_char):
1537 (generic_printstr):
1538 (val_print_string):
1539 Use type_byte_order instead of gdbarch_byte_order.
1540 * value.c (unpack_long):
1541 (unpack_bits_as_long):
1542 (unpack_value_bitfield):
1543 (modify_field):
1544 (pack_long):
1545 (pack_unsigned_long):
1546 Use type_byte_order instead of gdbarch_byte_order.
1547 * findvar.c (unsigned_pointer_to_address):
1548 (signed_pointer_to_address):
1549 (unsigned_address_to_pointer):
1550 (address_to_signed_pointer):
1551 (default_read_var_value):
1552 (default_value_from_register):
1553 Use type_byte_order instead of gdbarch_byte_order.
1554 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1555 Use type_byte_order instead of gdbarch_byte_order.
1556 * riscv-tdep.c (riscv_print_one_register_info):
1557 Use type_byte_order instead of gdbarch_byte_order.
1558
1559 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1560
1561 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1562 (current_ui_gdb_stdin_ptr): Likewise.
1563 (current_ui_gdb_stderr_ptr): Likewise.
1564 (current_ui_gdb_stdlog_ptr): Likewise.
1565 (current_ui_current_uiout_ptr): Likewise.
1566 (gen_ret_current_ui_field_ptr): Remove.
1567
1568 2019-11-21 Tom de Vries <tdevries@suse.de>
1569
1570 PR gdb/24956
1571 * cli/cli-script.c (execute_control_command): Only switch to
1572 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1573
1574 2019-11-19 Tom Tromey <tom@tromey.com>
1575
1576 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1577 Now static. Change type of "name".
1578 (tui_set_win_height_command): Don't copy "arg".
1579 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1580 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1581
1582 2019-11-19 Ali Tamur <tamur@google.com>
1583
1584 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1585 "if (attr != nullptr)".
1586 (dwarf2_find_base_address): Likewise.
1587 (dwarf2_build_include_psymtabs): Likewise.
1588 (read_cutu_die_from_dwo): Likewise.
1589 (read_func_scope): Likewise.
1590 (read_call_site_scope): Likewise.
1591 (dwarf2_get_pc_bounds): Likewise.
1592 (dwarf2_record_block_ranges): Likewise.
1593 (dwarf2_add_field): Likewise.
1594 (dwarf2_add_member_fn): Likewise.
1595 (read_structure_type): Likewise.
1596 (read_enumeration_type): Likewise.
1597 (read_array_type): Likewise.
1598 (read_array_order): Likewise.
1599 (read_set_type): Likewise.
1600 (read_common_block): Likewise.
1601 (read_tag_reference_type): Likewise.
1602 (read_tag_string_type): Likewise.
1603 (read_subroutine_type): Likewise.
1604 (read_base_type): Likewise.
1605 (read_subrange_type): Likewise.
1606 (new_symbol): Likewise.
1607 (prepare_one_comp_unit): Likewise.
1608
1609 2019-11-19 Tom Tromey <tromey@adacore.com>
1610
1611 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1612 result in error when DebugActiveProcess fails.
1613
1614 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1615 Pedro Alves <palves@redhat.com>
1616
1617 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1618 * target.c (target_stack::push): Call 'unpush' if there's a
1619 target on top of the stack.
1620
1621 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1622
1623 * python/py-block.c (blpy_dealloc): Call tp_free.
1624 (blpy_block_syms_dealloc): Likewise.
1625 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1626 * python/py-inferior.c (infpy_dealloc): Likewise.
1627 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1628 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1629 * python/py-symbol.c (sympy_dealloc): Likewise.
1630 * python/py-symtab.c (stpy_dealloc): Likewise.
1631 * python/py-type.c (typy_iterator_dealloc): Likewise.
1632
1633 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1634
1635 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1636 constructor instead of using a class initializer.
1637
1638 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1639
1640 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1641 * configure: Regenerate.
1642 * configure.ac: Don't source common.host.
1643 * gdbsupport/common.host: Remove.
1644 * gdbsupport/mingw-strerror.c: Remove.
1645 * gdbsupport/posix-strerror.c: Rename to...
1646 * gdbsupport/safe-strerror.c: ...this.
1647
1648 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1649
1650 * maint.c (scoped_command_stats::print_time): Use localtime_r
1651 instead of localtime (provided through gnulib if necessary).
1652 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1653 of ctime.
1654
1655 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1656
1657 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1658 avoid compile errors.
1659
1660 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1661
1662 * config.in: Regenerate.
1663 * configure: Regenerate.
1664 * gdbsupport/common.m4: No longer check for strerror_r.
1665 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1666 POSIX version of strerror_r, now that gnulib provides it if
1667 necessary.
1668
1669 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1670
1671 * README (`configure' options): Update.
1672
1673 2019-11-14 Tom Tromey <tromey@adacore.com>
1674
1675 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1676 expected type for the RHS if the LHS is a convenience variable.
1677
1678 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1679
1680 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1681 Provide explicit default and copy constructor.
1682
1683 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1684
1685 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1686 only call Py_INCREF (newbp) in the bppy_pending_object case.
1687
1688 2019-11-13 Tom Tromey <tromey@adacore.com>
1689
1690 PR build/25182:
1691 * psympriv.h (partial_symbol): Remove static assert.
1692 * symtab.h (general_symbol_info, symbol): Remove static assert.
1693
1694 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1695
1696 * gdbsupport/format.c (format_pieces::format_pieces): Support
1697 printf 'z' size modifier.
1698 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1699 * printcmd.c (ui_printf): Handle size_t_arg.
1700 * ui-out.c (ui_out::vmessage): Likewise.
1701 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1702 function.
1703 (run_tests): Call test_format_int_sizes.
1704
1705 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1706
1707 * ada-exp.y (write_ambiguous_var): Update.
1708 * buildsym.c (add_symbol_to_list): Update.
1709 * dwarf2read.c (read_variable): Update.
1710 (new_symbol): Update.
1711 * jit.c (finalize_symtab): Update.
1712 * language.c (language_alloc_type_symbol): Update.
1713 * symtab.c (fixup_symbol_section): Update.
1714 (initialize_objfile_symbol_1): Move code to...
1715 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1716 (allocate_symbol): Update.
1717 (allocate_template_symbol): Update.
1718 (get_symbol_address): Update.
1719 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1720 of having as a field, and add a constructor.
1721 (SYMBOL_VALUE): Update.
1722 (SYMBOL_VALUE_ADDRESS): Update.
1723 (SET_SYMBOL_VALUE_ADDRESS): Update.
1724 (SYMBOL_VALUE_BYTES): Update.
1725 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1726 (SYMBOL_BLOCK_VALUE): Update.
1727 (SYMBOL_VALUE_CHAIN): Update.
1728 (SYMBOL_LANGUAGE): Update.
1729 (SYMBOL_SECTION): Update.
1730 (SYMBOL_OBJ_SECTION): Update.
1731 (SYMBOL_SET_LANGUAGE): Update.
1732 (SYMBOL_SET_LINKAGE_NAME): Update.
1733 (SYMBOL_SET_NAMES): Update.
1734 (SYMBOL_NATURAL_NAME): Update.
1735 (SYMBOL_LINKAGE_NAME): Update.
1736 (SYMBOL_DEMANGLED_NAME): Update.
1737 (SYMBOL_SEARCH_NAME): Update.
1738 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1739 (struct symbol): Update.
1740 (struct template_symbol): Update.
1741 (struct rust_vtable_symbol): Update.
1742 * xcoffread.c (SYMBOL_DUP): Update.
1743
1744 2019-11-12 Tom Tromey <tom@tromey.com>
1745
1746 * tui/tui-layout.c (show_layout): Set current_layout.
1747 (show_source_disasm_command, show_data)
1748 (show_source_or_disasm_and_command): Don't set current_layout.
1749
1750 2019-11-12 Tom Tromey <tom@tromey.com>
1751
1752 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1753
1754 2019-11-12 Tom Tromey <tom@tromey.com>
1755
1756 * tui/tui-win.c (resize_message): New global.
1757 (show_tui_resize_message): New function.
1758 (tui_async_resize_screen): Print message if requested.
1759 (_initialize_tui_win): Add tui-resize-message setting.
1760 * NEWS: Add entry for new commands.
1761
1762 2019-11-11 Tom Tromey <tom@tromey.com>
1763
1764 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1765 functions.
1766
1767 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1768
1769 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1770
1771 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1772
1773 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1774 function.
1775 * python/python-internal.h (gdbpy_lookup_static_symbols):
1776 Declare new function.
1777 * python/python.c (python_GdbMethods): Add
1778 gdb.lookup_static_symbols method.
1779 * NEWS: Mention gdb.lookup_static_symbols.
1780
1781 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1782
1783 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1784 static block of current object file first. Also fix typo in
1785 header comment.
1786
1787 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1788
1789 * stack.c (set_last_displayed_sal): Delete.
1790 (last_displayed_sal_valid): Delete.
1791 (last_displayed_pspace): Delete.
1792 (last_displayed_addr): Delete.
1793 (last_displayed_symtab): Delete.
1794 (last_displayed_line): Delete.
1795 (class last_displayed_symtab_info_type): New.
1796 (last_displayed_symtab_info): New static global variable.
1797 (print_frame_info): Call methods on last_displayed_symtab_info.
1798 (clear_last_displayed_sal): Update header comment, and make use of
1799 last_displayed_symtab_info.
1800 (last_displayed_sal_is_valid): Likewise.
1801 (get_last_displayed_pspace): Likewise.
1802 (get_last_displayed_addr): Likewise.
1803 (get_last_displayed_symtab): Likewise.
1804 (get_last_displayed_line): Likewise.
1805 (get_last_displayed_sal): Likewise.
1806 * stack.h (clear_last_displayed_sal): Update header comment.
1807 (last_displayed_sal_is_valid): Likewise.
1808 (get_last_displayed_pspace): Likewise.
1809 (get_last_displayed_addr): Likewise.
1810 (get_last_displayed_symtab): Likewise.
1811 (get_last_displayed_line): Likewise.
1812 (get_last_displayed_sal): Likewise.
1813
1814 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1815
1816 * stack.c (frame_show_address): Convert return type to bool.
1817 * stack.h (frame_show_address): Likewise, and update header
1818 comment.
1819
1820 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1821
1822 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1823 * unittests/vec-utils-selftests.c: New file.
1824 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1825
1826 2019-11-10 Tom Tromey <tom@tromey.com>
1827
1828 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1829 (tui_highlight_win): Likewise.
1830 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1831 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1832 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1833 Don't set can_highlight.
1834
1835 2019-11-10 Tom Tromey <tom@tromey.com>
1836
1837 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1838 Remove unused declaration.
1839
1840 2019-11-08 Tom Tromey <tromey@adacore.com>
1841
1842 * top.c (read_command_file): Update.
1843 (command_line_input): Make return type const.
1844 * python/py-gdb-readline.c: Update.
1845 * linespec.c (decode_line_2): Update.
1846 * defs.h (command_line_input): Make return type const.
1847 * cli/cli-script.c (read_next_line): Make return type const.
1848 * ada-lang.c (get_selections): Update.
1849
1850 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1851
1852 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1853 * mi/mi-main.c (output_cores): Likewise.
1854 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1855 (linux_xfer_osdata_modules): Likewise.
1856 * remote.c (register_remote_support_xml): Likewise.
1857 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1858 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1859
1860 2019-11-06 Tom Tromey <tom@tromey.com>
1861
1862 * tui/tui-interp.c: Don't include readline.h.
1863 * tui/tui-hooks.c: Don't include readline.h.
1864 * symmisc.c: Include tilde.h, not readline.h.
1865 * symfile.c: Include tilde.h, not readline.h.
1866 * source.c: Include tilde.h, not readline.h.
1867 * solib.c: Include tilde.h, not readline.h.
1868 * psymtab.c: Include tilde.h, not readline.h.
1869 * exec.c: Include tilde.h, not readline.h.
1870 * corelow.c: Include tilde.h, not readline.h.
1871 * cli/cli-dump.c: Include tilde.h, not readline.h.
1872 * cli/cli-cmds.c: Don't include readline.h.
1873
1874 2019-11-05 Tom Tromey <tom@tromey.com>
1875
1876 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1877 (tui_disassemble): Set addr_size.
1878 (tui_disasm_window::set_contents): Use addr_size.
1879
1880 2019-11-05 Tom Tromey <tom@tromey.com>
1881
1882 * rust-lang.c (rust_language_defn): Update.
1883 * python/py-value.c (valpy_string): Call c_get_string.
1884 * p-lang.c (pascal_language_defn): Update.
1885 * opencl-lang.c (opencl_language_defn): Update.
1886 * objc-lang.c (objc_language_defn): Update.
1887 * m2-lang.c (m2_language_defn): Update.
1888 * language.c (unknown_language_defn, auto_language_defn): Update.
1889 (default_get_string): Remove.
1890 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1891 * go-lang.c (go_language_defn): Update.
1892 * f-lang.c (f_language_defn): Update.
1893 * d-lang.c (d_language_defn): Update.
1894 * c-lang.c (c_language_defn, cplus_language_defn)
1895 (asm_language_defn, minimal_language_defn): Update.
1896 * ada-lang.c (ada_language_defn): Update.
1897 * language.h (struct language_defn) <la_get_string>: Remove.
1898 (LA_GET_STRING): Remove.
1899 (default_get_string): Don't declare.
1900
1901 2019-11-05 Tom Tromey <tom@tromey.com>
1902
1903 * tui/tui-source.h (struct tui_source_window): Inline
1904 constructor. Remove destructor.
1905 <style_changed, m_observable>: Move to superclass.
1906 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1907 (struct tui_source_window_base): Move private members to end.
1908 <style_changed, m_observable>: Move from tui_source_window.
1909 * tui/tui-winsource.c (tui_copy_source_line): Move from
1910 tui-source.c. Rename from copy_source_line. Add special handling
1911 for negative line number.
1912 (tui_source_window_base::style_changed): Move from
1913 tui_source_window.
1914 (tui_source_window_base): Register observer.
1915 (~tui_source_window_base): New.
1916 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1917 rename.
1918 (tui_source_window::set_contents): Use tui_copy_source_line.
1919 (tui_source_window::tui_source_window): Move to tui-source.h.
1920 (tui_source_window::~tui_source_window): Remove.
1921 (tui_source_window::style_changed): Move to superclass.
1922 * tui/tui-disasm.c (tui_disassemble): Create string file with
1923 styling, when possible. Add "addr_size" parameter.
1924 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1925 Don't compute maximum size.
1926 (len_without_escapes): New function
1927
1928 2019-11-05 Tom Tromey <tom@tromey.com>
1929
1930 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1931 std::string.
1932 * tui/tui-winsource.c (tui_show_source_line): Update.
1933 * tui/tui-source.c (tui_source_window::set_contents): Update.
1934 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1935
1936 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1937
1938 * symtab.h (gdb_static_assert): Put && operator at the beginning
1939 of the line instead of the end.
1940
1941 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1942
1943 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1944 and sizeof (symbol).
1945 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1946
1947 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1948
1949 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1950 * configure.host: Mark *-*-solaris2.10* obsolete.
1951 * configure.tgt: Mark Solaris < 11 obsolete.
1952 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1953 Update target triplet.
1954
1955 2019-11-01 Tom Tromey <tromey@adacore.com>
1956
1957 * utils.c (print_sys_errmsg): Simplify.
1958
1959 2019-11-01 Tom Tromey <tromey@adacore.com>
1960
1961 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1962
1963 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1964
1965 * configure: Regenerate.
1966 * configure.ac: Remove check for strerror_r.
1967 * gdbsupport/common.m4: Check for strerror_r.
1968
1969 2019-11-01 Luis Machado <luis.machado@linaro.org>
1970
1971 PR gdb/25124
1972
1973 * arm-tdep.c (arm_per_objfile): Rename to ...
1974 (arm_per_bfd): ... this.
1975 (arm_objfile_data_key): Rename to ...
1976 (arm_bfd_data_key): ... this.
1977 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1978 data.
1979 (arm_record_special_symbol): Likewise.
1980
1981 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1982
1983 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1984 end.
1985 * c-typeprint.c (c_print_typedef): Likewise.
1986 * f-typeprint.c (f_print_typedef): Likewise.
1987 * m2-typeprint.c (m2_print_typedef): Likewise.
1988 * p-typeprint.c (pascal_print_typedef): Likewise.
1989 * rust-lang.c (rust_print_typedef): Likewise.
1990 * symtab.c (print_symbol_info): Print a newline after calling
1991 typedef_print.
1992
1993 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1994
1995 * symtab.c (info_module_cmdlist): New variable.
1996 (info_module_command): New function.
1997 (search_module_symbols): New function.
1998 (info_module_subcommand): New function.
1999 (struct info_modules_var_func_options): New struct.
2000 (info_modules_var_func_options_defs): New variable.
2001 (make_info_modules_var_func_options_def_group): New function.
2002 (info_module_functions_command): New function.
2003 (info_module_variables_command): New function.
2004 (info_module_var_func_command_completer): New function.
2005 (_initialize_symtab): Register new 'info module functions' and
2006 'info module variables' commands.
2007 * symtab.h (typedef symbol_search_in_module): New typedef.
2008 (search_module_symbols): Declare new function.
2009 * NEWS: Mention new commands.
2010
2011 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2012
2013 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2014 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2015 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2016 MODULES_DOMAIN.
2017 (scan_partial_symbols): Only create partial module symbols for non
2018 declarations.
2019 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2020 and MODULES_DOMAIN.
2021 * symtab.c (search_domain_name): Likewise.
2022 (search_symbols): Likewise.
2023 (print_symbol_info): Likewise.
2024 (symtab_symbol_info): Likewise.
2025 (info_modules_command): New function.
2026 (_initialize_symtab): Register 'info modules' command.
2027 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2028 * NEWS: Mention new 'info modules' command.
2029
2030 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2031
2032 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2033 and $_gdb_maint_setting_str.
2034
2035 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2036
2037 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2038 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2039 (str_value_from_setting, gdb_setting_str_internal_fn)
2040 (gdb_maint_setting_str_internal_fn): New functions.
2041 (_initialize_cli_cmds): Define the new convenience functions.
2042 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2043 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2044
2045 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2046
2047 * agent.c (set_can_use_agent): When the setting is turned on,
2048 look up agent symbols if we don't have them yet.
2049 (agent_new_objfile): Don't look up agent symbols when the agent
2050 setting is off.
2051
2052 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2053
2054 * config.in: Regenerate.
2055
2056 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2057
2058 * configure: Regenerate.
2059 * configure.ac: Check for strerror_r.
2060 * gdbsupport/common-utils.h (safe_strerror): Change return value
2061 to const char * and document that this function is now threadsafe.
2062 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2063 thread_local and call strerror_r, if available.
2064 * utils.c (perror_string): Update.
2065 (print_sys_errmsg): Update.
2066
2067 2019-10-31 Luis Machado <luis.machado@linaro.org>
2068
2069 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2070 objfile_key.
2071 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2072 objfile to fetch per-bfd data.
2073 (arm_find_exidx_entry): Likewise.
2074
2075 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2076
2077 * gdbsupport/agent.c (debug_agent): Change type to bool.
2078 (use_agent): Likewise.
2079 (all_agent_symbols_look_up): Likewise.
2080 (agent_loaded_p): Change return value to bool.
2081 (agent_look_up_symbols): Update.
2082 (agent_capability_check): Change return value to bool.
2083 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2084 (debug_agent): Change type to bool.
2085 (use_agent): Likewise.
2086 (agent_capability_check): Change return value to bool.
2087
2088 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2089
2090 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2091 (build_minimal_symbol_hash_tables): Code to clear the table moved
2092 to clear_minimal_symbol_hash_tables.
2093 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2094 when needed.
2095
2096 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2097
2098 * infcmd.c: Remove includes.
2099 * infrun.c: Remove includes.
2100
2101 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2102
2103 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2104 (grow_vect): Remove declaration.
2105 (ada_type_of_array): Remove declaration.
2106 (ada_update_initial_language): Remove declaration.
2107 (ada_fold_name): Remove declaration.
2108 (ada_fill_in_ada_prototype): Remove declaration.
2109 (user_select_syms): Remove declaration.
2110 (get_selections): Remove declaration.
2111 (ada_tag_type): Remove declaration.
2112 (ada_value_tag): Remove declaration.
2113 (ada_is_others_clause): Remove declaration.
2114 (ada_in_variant): Remove declaration.
2115 (ada_value_struct_elt): Remove declaration.
2116 (ada_attribute_name): Remove declaration.
2117 (ada_system_address_type): Remove declaration.
2118 * ada-lang.c (ada_watch_location_expression): Make static.
2119 (GROW_VECT): Move here from ada-lang.h.
2120 (grow_vect): Make static.
2121 (ada_update_initial_language): Make static.
2122 (ada_fold_name): Make static.
2123 (ada_type_of_array): Make static.
2124 (encoded_ordered_before): Move up.
2125 (sort_choices): Move up.
2126 (print_signatures): Move up.
2127 (ada_print_symbol_signature): Move up.
2128 (get_selections): Move up and make static.
2129 (user_select_syms): Move up and make static.
2130 (ada_value_struct_elt): Move up and make static.
2131 (ada_tag_type): Make static.
2132 (ada_value_tag): Make static.
2133 (ada_is_others_clause): Make static.
2134 (ada_in_variant): Make static.
2135 (ada_attribute_name): Make static.
2136
2137 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2138
2139 * ada-lang.c: Remove includes.
2140 * ada-typeprint.c: Remove includes.
2141 * ada-valprint.c: Remove includes.
2142
2143 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2144
2145 * addrmap.c: Add static assertions of type size, moved from
2146 _initialize_addrmap.
2147 (_initialize_addrmap): Remove.
2148
2149 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2150
2151 * coffread.c (record_minimal_symbol): Update.
2152 (process_coff_symbol): Update.
2153 * dbxread.c (read_dbx_symtab): Update.
2154 * dwarf2read.c (add_partial_symbol): Update.
2155 (fixup_go_packaging): Update.
2156 (load_partial_dies): Update.
2157 (new_symbol): Update.
2158 * elfread.c (record_minimal_symbol): Change signature to use
2159 gdb::string_view instead of name+len.
2160 (elf_symtab_read): Update.
2161 (elf_rel_plt_read): Update.
2162 * mdebugread.c (parse_partial_symbols): Update.
2163 (handle_psymbol_enumerators): Update.
2164 (new_symbol): Update.
2165 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2166 to use gdb::string_view instead of name+len.
2167 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2168 * psympriv.h (add_psymbol_to_list): Likewise.
2169 * psymtab.c (add_psymbol_to_bcache): Likewise.
2170 (add_psymbol_to_list): Likewise.
2171 * stabsread.c (define_symbol): Update.
2172 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2173 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2174 (symbol_set_names): Likewise.
2175 * xcoffread.c (scan_xcoff_symtab): Update.
2176
2177 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2178
2179 * symtab.h (symbol_set_names): Document that copy_name must be
2180 set to true for non-nullterminated strings.
2181 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2182 linkage_name if the entry was not found and we need to demangle.
2183
2184 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2185
2186 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2187 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2188 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2189 * gdbsupport/gdb_binary_search.h: New file.
2190
2191 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2192
2193 * NEWS: Mention new --with-system-gdbinit-dir option.
2194 * config.in: Regenerate.
2195 * configure: Regenerate.
2196 * configure.ac: Add new option --with-system-gdbinit-dir.
2197 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2198 for a ".gdb" suffix.
2199 * main.c (get_init_files): Change system_gdbinit argument to
2200 a vector and return the files in SYSTEM_GDBINIT_DIR in
2201 addition to SYSTEM_GDBINIT.
2202 (captured_main_1): Update.
2203 (print_gdb_help): Update.
2204 * top.c (print_gdb_configuration): Also print the value of
2205 SYSTEM_GDBINIT_DIR.
2206
2207 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2208
2209 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2210 that takes gdb::string_view arguments.
2211
2212 2019-10-26 Tom de Vries <tdevries@suse.de>
2213
2214 * aarch64-linux-tdep.c: Fix typos in comments.
2215 * aarch64-tdep.c: Same.
2216 * ada-lang.c: Same.
2217 * amd64-nat.c: Same.
2218 * arc-tdep.c: Same.
2219 * arch/aarch64-insn.c: Same.
2220 * block.c: Same.
2221 * breakpoint.h: Same.
2222 * btrace.h: Same.
2223 * c-varobj.c: Same.
2224 * cli/cli-decode.c: Same.
2225 * cli/cli-script.c: Same.
2226 * cli/cli-utils.h: Same.
2227 * coff-pe-read.c: Same.
2228 * coffread.c: Same.
2229 * compile/compile-cplus-symbols.c: Same.
2230 * compile/compile-object-run.c: Same.
2231 * completer.c: Same.
2232 * corelow.c: Same.
2233 * cp-support.c: Same.
2234 * demangle.c: Same.
2235 * dwarf-index-write.c: Same.
2236 * dwarf2-frame.c: Same.
2237 * dwarf2-frame.h: Same.
2238 * eval.c: Same.
2239 * frame-base.h: Same.
2240 * frame.h: Same.
2241 * gdbcmd.h: Same.
2242 * gdbtypes.h: Same.
2243 * gnu-nat.c: Same.
2244 * guile/scm-objfile.c: Same.
2245 * i386-tdep.c: Same.
2246 * i386-tdep.h: Same.
2247 * infcall.c: Same.
2248 * infcall.h: Same.
2249 * linux-nat.c: Same.
2250 * m68k-tdep.c: Same.
2251 * macroexp.c: Same.
2252 * memattr.c: Same.
2253 * mi/mi-cmd-disas.c: Same.
2254 * mi/mi-getopt.h: Same.
2255 * mi/mi-main.c: Same.
2256 * minsyms.c: Same.
2257 * nat/aarch64-sve-linux-sigcontext.h: Same.
2258 * objfiles.h: Same.
2259 * ppc-linux-nat.c: Same.
2260 * ppc-linux-tdep.c: Same.
2261 * ppc-tdep.h: Same.
2262 * progspace.h: Same.
2263 * prologue-value.h: Same.
2264 * python/py-evtregistry.c: Same.
2265 * python/py-instruction.h: Same.
2266 * record-btrace.c: Same.
2267 * record-full.c: Same.
2268 * remote.c: Same.
2269 * rs6000-tdep.c: Same.
2270 * ser-tcp.c: Same.
2271 * sol-thread.c: Same.
2272 * sparc-sol2-tdep.c: Same.
2273 * sparc64-tdep.c: Same.
2274 * stabsread.c: Same.
2275 * symfile.c: Same.
2276 * symtab.h: Same.
2277 * target.c: Same.
2278 * tracepoint.c: Same.
2279 * tui/tui-data.h: Same.
2280 * tui/tui-io.c: Same.
2281 * tui/tui-win.c: Same.
2282 * tui/tui.c: Same.
2283 * unittests/rsp-low-selftests.c: Same.
2284 * user-regs.h: Same.
2285 * utils.c: Same.
2286 * utils.h: Same.
2287 * valarith.c: Same.
2288 * valops.c: Same.
2289 * valprint.c: Same.
2290 * valprint.h: Same.
2291 * value.c: Same.
2292 * value.h: Same.
2293 * varobj.c: Same.
2294 * x86-nat.h: Same.
2295 * xtensa-tdep.c: Same.
2296
2297 2019-10-25 Ali Tamur <tamur@google.com>
2298
2299 * charset.c (find_charset_names): Reflect API change.
2300
2301 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2302
2303 * symtab.c (struct demangled_name_entry): Change demangled name
2304 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2305 part of the struct anymore.
2306 (symbol_set_names): No longer obstack allocate + copy the demangled
2307 name, just store the allocated name from bfd.
2308
2309 2019-10-25 Tom Tromey <tromey@adacore.com>
2310
2311 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2312 (bsearch_cie_cmp, add_cie): Remove.
2313 (find_cie): Reimplement.
2314 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2315 (dwarf2_build_frame_info): Update.
2316
2317 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2318
2319 PR gdb/25126
2320 * symfile.c (reread_symbols): Call forget_cached_source_info to
2321 clear the stale source cache.
2322
2323 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2324
2325 * configure: Regenerate.
2326 * configure.ac: Remove code that sets python_has_threads.
2327
2328 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2329
2330 * config.in: Regenerate.
2331 * configure: Regenerate.
2332 * configure.ac: Remove the code that uses sed to get the python
2333 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2334
2335 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2336
2337 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2338 error paths.
2339
2340 2019-10-23 Tom Tromey <tom@tromey.com>
2341
2342 * arc-tdep.c: Remove ".." from include.
2343 * frv-tdep.c: Remove ".." from include.
2344 * lm32-tdep.c: Remove ".." from include.
2345 * microblaze-tdep.c: Remove ".." from include.
2346 * or1k-tdep.h: Remove ".." from include.
2347 * s12z-tdep.c: Remove ".." from include.
2348 * Makefile.in (OPCODES_CFLAGS): Add comment.
2349 (TOP_CFLAGS): New variable.
2350 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2351
2352 2019-10-23 Tom Tromey <tom@tromey.com>
2353
2354 * Makefile.in (READLINE_DIR): Update.
2355
2356 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2357
2358 * infcall.c (call_function_by_hand_dummy): Fix the function
2359 comment. And extract out a code section into...
2360 (reserve_stack_space): ...this new function.
2361
2362 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2363
2364 * infcall.c (value_arg_coerce): Remove an unused parameter.
2365 (call_function_by_hand_dummy): Update the call to
2366 'value_arg_coerce'.
2367
2368 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2369
2370 * infcall.c (call_function_by_hand_dummy): Refactor.
2371
2372 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2373
2374 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2375
2376 2019-10-23 Tom Tromey <tom@tromey.com>
2377
2378 * configure: Rebuild.
2379 * configure.ac: Don't check for sigprocmask.
2380 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2381
2382 2019-10-23 Tom Tromey <tom@tromey.com>
2383
2384 * configure: Rebuild.
2385 * acinclude.m4: Use m4_include, not sinclude.
2386
2387 2019-10-23 Tom de Vries <tdevries@suse.de>
2388
2389 PR breakpoints/24687
2390 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2391
2392 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2393
2394 * symtab.c (struct demangled_name_entry) <language>: Change from
2395 bitfield to regular variable.
2396
2397 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2398
2399 * symtab.c (struct demangled_name_entry): Add a constructor.
2400 (free_demangled_name_entry): New function to call the destructor
2401 for demangled_name_entry.
2402 (create_demangled_names_hash): Pass free_demangled_name_entry to
2403 htab_create_alloc.
2404 (symbol_set_names): Call placement new for demangled_name_entry.
2405 * utils.c: No longer include xxhash.h here, now that fast_hash
2406 is inlined in the header.
2407 * utils.h: Instead, include it here.
2408
2409 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2410
2411 * Makefile.in: Link with libxxhash.
2412 * config.in: Regenerate.
2413 * configure: Regenerate.
2414 * configure.ac: Search for libxxhash.
2415 * utils.c (fast_hash): Use xxhash if present.
2416
2417 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2418
2419 * utils.h (fast_hash): New function.
2420 * symtab.c (hash_demangled_name_entry): Call new function
2421 fast_hash.
2422
2423 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2424
2425 * symtab.c (struct demangled_name_entry): Change type of mangled
2426 to gdb::string_view. Also adds a constructor that takes the
2427 mangled name.
2428 (hash_demangled_name_entry): Update.
2429 (eq_demangled_name_entry): Update.
2430 (free_demangled_name_entry): New function to call the destructor
2431 now that this is not a POD anymore.
2432 (create_demangled_names_hash): Pass free_demangled_name_entry to
2433 htab_create_alloc.
2434 (symbol_set_names): Update.
2435
2436 2019-10-21 Ali Tamur <tamu@google.com>
2437
2438 * dwarf2read.c (dir_index): Change type.
2439 (file_name_index): Likewise.
2440 (line_header::include_dir_at): Change comment and implementation on
2441 whether it is DWARF 5.
2442 (line_header::is_valid_file_index): New function.
2443 (line_header::file_name_at): Change comment and implementation on
2444 whether it is DWARF 5.
2445 (line_header::file_names): Change to private field renamed as
2446 m_file_names and introduce a new accessor method.
2447 (line_header::file_names_size): New method.
2448 (line_header::include_dirs): Change to private field and rename as
2449 m_include_dirs.
2450 (dw2_get_file_names_reader): Define local var at a smaller scope and
2451 reflect API change.
2452 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2453 (process_structure_scope): Likewise.
2454 (line_header::add_include_dir): Change message and reflect renaming.
2455 (line_header::add_file_name): Likewise.
2456 (read_formatted_entries): Handle DW_FORM_data16.
2457 (dwarf_decode_line_header): Fix line header length calculation.
2458 (psymtab_include_file_name): Change comment and API.
2459 (lnp_state_machine::m_file): Update comment and reflect type change.
2460 (lnp_state_machine::record_line): Reflect type change.
2461 (dwarf_decode_lines): Reflect API change.
2462 (file_file_name): Likewise.
2463 (file_full_name): Likewise.
2464
2465 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2466
2467 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2468
2469 2019-10-21 Tom Tromey <tom@tromey.com>
2470
2471 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2472
2473 2019-10-21 Tom Tromey <tom@tromey.com>
2474
2475 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2476 NM_H. Use AC_CONFIG_LINKS.
2477 * configure: Rebuild.
2478 * Makefile.in (NM_H): New variable.
2479 (generated_files): Add NM_H. Remove gcore.
2480 (nm.h, stamp-nmh): New targets.
2481
2482 2019-10-20 Tom Tromey <tom@tromey.com>
2483
2484 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2485 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2486 obsolete comment.
2487 (put_objfile_before): Now static.
2488
2489 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2490
2491 * gdbsupport/common-utils.h (startswith): Change return type to
2492 bool.
2493
2494 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2495
2496 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2497 * breakpoint.c (bp_locations_compare): Rename to...
2498 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2499 (update_global_location_list): Use std::sort instead of qsort.
2500 * buildsym.c (compare_line_numbers): Rename to...
2501 (lte_is_less_than): ...this, and change to std::sort semantics.
2502 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2503 instead of qsort.
2504 * disasm.c (compare_lines): Rename to...
2505 (line_is_less_than): ...this, and change to std::sort semantics.
2506 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2507 of qsort.
2508 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2509 (fde_is_less_than): ...this, and change to std::sort semantics.
2510 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2511 * mdebugread.c (compare_blocks):
2512 (block_is_less_than): ...this, and change to std::sort semantics.
2513 (sort_blocks): Call std::sort instead of qsort.
2514 * objfiles.c (qsort_cmp): Rename to...
2515 (sort_cmp): ...this, and change to std::sort semantics.
2516 (update_section_map): Call std::sort instead of qsort.
2517 * remote.c (compare_pnums): Remove.
2518 (map_regcache_remote_table): Call std::sort instead of qsort.
2519 * utils.c (compare_positive_ints): Remove.
2520 * utils.h (compare_positive_ints): Remove.
2521 * xcoffread.c (compare_lte): Remove.
2522 (arrange_linetable): Call std::sort instead of qsort.
2523
2524 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2525
2526 * symfile.c (init_entry_point_info): Fix typo.
2527 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2528
2529 2019-10-18 Tom de Vries <tdevries@suse.de>
2530
2531 * aarch64-tdep.c: Fix typos in comments.
2532 * ada-lang.c: Same.
2533 * ada-tasks.c: Same.
2534 * alpha-tdep.c: Same.
2535 * alpha-tdep.h: Same.
2536 * amd64-nat.c: Same.
2537 * amd64-windows-tdep.c: Same.
2538 * arc-tdep.c: Same.
2539 * arc-tdep.h: Same.
2540 * arch-utils.c: Same.
2541 * arm-nbsd-tdep.c: Same.
2542 * arm-tdep.c: Same.
2543 * ax-gdb.c: Same.
2544 * blockframe.c: Same.
2545 * btrace.c: Same.
2546 * c-varobj.c: Same.
2547 * coff-pe-read.c: Same.
2548 * coffread.c: Same.
2549 * cris-tdep.c: Same.
2550 * darwin-nat.c: Same.
2551 * dbxread.c: Same.
2552 * dcache.c: Same.
2553 * disasm.c: Same.
2554 * dtrace-probe.c: Same.
2555 * dwarf-index-write.c: Same.
2556 * dwarf2-frame-tailcall.c: Same.
2557 * dwarf2-frame.c: Same.
2558 * dwarf2read.c: Same.
2559 * eval.c: Same.
2560 * exceptions.c: Same.
2561 * fbsd-tdep.c: Same.
2562 * findvar.c: Same.
2563 * frame.c: Same.
2564 * frv-tdep.c: Same.
2565 * gnu-v3-abi.c: Same.
2566 * go32-nat.c: Same.
2567 * h8300-tdep.c: Same.
2568 * hppa-tdep.c: Same.
2569 * i386-linux-tdep.c: Same.
2570 * i386-tdep.c: Same.
2571 * ia64-libunwind-tdep.c: Same.
2572 * ia64-tdep.c: Same.
2573 * infcmd.c: Same.
2574 * infrun.c: Same.
2575 * linespec.c: Same.
2576 * linux-nat.c: Same.
2577 * linux-thread-db.c: Same.
2578 * machoread.c: Same.
2579 * mdebugread.c: Same.
2580 * mep-tdep.c: Same.
2581 * mn10300-tdep.c: Same.
2582 * namespace.c: Same.
2583 * objfiles.c: Same.
2584 * opencl-lang.c: Same.
2585 * or1k-tdep.c: Same.
2586 * osabi.c: Same.
2587 * ppc-linux-nat.c: Same.
2588 * ppc-linux-tdep.c: Same.
2589 * ppc-sysv-tdep.c: Same.
2590 * printcmd.c: Same.
2591 * procfs.c: Same.
2592 * record-btrace.c: Same.
2593 * record-full.c: Same.
2594 * remote-fileio.c: Same.
2595 * remote.c: Same.
2596 * rs6000-tdep.c: Same.
2597 * s12z-tdep.c: Same.
2598 * score-tdep.c: Same.
2599 * ser-base.c: Same.
2600 * ser-go32.c: Same.
2601 * skip.c: Same.
2602 * sol-thread.c: Same.
2603 * solib-svr4.c: Same.
2604 * solib.c: Same.
2605 * source.c: Same.
2606 * sparc-nat.c: Same.
2607 * sparc-sol2-tdep.c: Same.
2608 * sparc-tdep.c: Same.
2609 * sparc64-tdep.c: Same.
2610 * stabsread.c: Same.
2611 * stack.c: Same.
2612 * symfile.c: Same.
2613 * symtab.c: Same.
2614 * target-descriptions.c: Same.
2615 * target-float.c: Same.
2616 * thread.c: Same.
2617 * utils.c: Same.
2618 * valops.c: Same.
2619 * valprint.c: Same.
2620 * value.c: Same.
2621 * varobj.c: Same.
2622 * windows-nat.c: Same.
2623 * xcoffread.c: Same.
2624 * xstormy16-tdep.c: Same.
2625 * xtensa-tdep.c: Same.
2626
2627 2019-10-17 Tom Tromey <tromey@adacore.com>
2628
2629 * configure: Rebuild.
2630 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2631 in AC_CONFIG_FILES invocation.
2632 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2633 new-style config.status invocation.
2634
2635 2019-10-17 Tom de Vries <tdevries@suse.de>
2636
2637 * arm-nbsd-nat.c: Fix typos in comments.
2638 * arm-tdep.c: Same.
2639 * darwin-nat-info.c: Same.
2640 * dwarf2read.c: Same.
2641 * elfread.c: Same.
2642 * event-top.c: Same.
2643 * findvar.c: Same.
2644 * gdbtypes.c: Same.
2645 * hppa-tdep.c: Same.
2646 * i386-tdep.c: Same.
2647 * jit.c: Same.
2648 * main.c: Same.
2649 * mdebugread.c: Same.
2650 * moxie-tdep.c: Same.
2651 * nto-procfs.c: Same.
2652 * osabi.c: Same.
2653 * ppc-linux-tdep.c: Same.
2654 * remote.c: Same.
2655 * riscv-tdep.c: Same.
2656 * s390-tdep.c: Same.
2657 * sh-tdep.c: Same.
2658 * sparc-linux-tdep.c: Same.
2659 * sparc-nat.c: Same.
2660 * stack.c: Same.
2661 * target-descriptions.c: Same.
2662 * top.c: Same.
2663 * varobj.c: Same.
2664
2665 2019-10-16 Tom Tromey <tom@tromey.com>
2666
2667 * objfiles.h (struct objfile) <original_name>: Now const.
2668
2669 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2670
2671 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2672 pass on to sigsetjmp's second argument.
2673 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2674
2675 2019-10-16 Keith Seitz <keiths@redhat.com>
2676
2677 PR gdb/23567
2678 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2679 sections whose size is greater than the file size.
2680
2681 2019-10-16 Jim Wilson <jimw@sifive.com>
2682
2683 * riscv-tdep.c (riscv_gcc_target_options): New.
2684 (riscv_gnu_triplet_regexp): New.
2685 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2686 set_gdbarch_gnu_triplet_regexp.
2687
2688 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2689
2690 * Makefile.in: Add xml-builtin.h.
2691 * features/feature_to_c.sh: Add an include for xml-builtin.h
2692 to ensure that the compiler checks that the types match.
2693 * xml-builtin.h: New file.
2694 * xml-support.c (fetch_xml_builtin): Add missing const.
2695 * xml-support.h: Remove declaration of xml_builtins.
2696
2697 2019-10-16 Tom de Vries <tdevries@suse.de>
2698
2699 PR tdep/25096
2700 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2701 (amd64_classify_aggregate): ... here.
2702 (amd64_classify_aggregate_field): Handled fiels of nested structs
2703 recursively.
2704
2705 2019-10-16 Tom de Vries <tdevries@suse.de>
2706
2707 PR tdep/24104
2708 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2709 that handles 'theclass'.
2710
2711 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2712
2713 * linespec.c (decode_digits_ordinary): Update comment.
2714 * make-target-delegates: No longer need to handle VEC case.
2715 * memrange.c (normalize_mem_ranges): Update comment.
2716 * namespace.c (add_using_directive): Update comment.
2717 * objc-lang.c (uniquify_strings): Update comment.
2718 * ppc-linux-nat.c (struct thread_points): Update comment.
2719 * probe.h (find_probes_in_objfile): Update comment.
2720 * target.h (enum flash_preserve_mode): Update comment.
2721 * varobj.c (varobj_restrict_range): Update comment.
2722 * varobj.h (varobj_list_children): Update comment.
2723
2724 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2725
2726 * Makefile.in: Remove references to vec.h and vec.c.
2727 * aarch64-tdep.c: No longer include vec.h.
2728 * ada-lang.c: Likewise.
2729 * ada-lang.h: Likewise.
2730 * arm-tdep.c: Likewise.
2731 * ax.h: Likewise.
2732 * breakpoint.h: Likewise.
2733 * charset.c: Likewise.
2734 * cp-support.h: Likewise.
2735 * dtrace-probe.c: Likewise.
2736 * dwarf2read.c: Likewise.
2737 * extension.h: Likewise.
2738 * gdb_bfd.c: Likewise.
2739 * gdbsupport/gdb_vecs.h: Likewise.
2740 * gdbsupport/vec.c: Remove.
2741 * gdbsupport/vec.h: Remove.
2742 * gdbthread.h: Likewise.
2743 * guile/scm-type.c: Likewise.
2744 * inline-frame.c: Likewise.
2745 * machoread.c: Likewise.
2746 * memattr.c: Likewise.
2747 * memrange.h: Likewise.
2748 * namespace.h: Likewise.
2749 * nat/linux-btrace.h: Likewise.
2750 * osdata.c: Likewise.
2751 * parser-defs.h: Likewise.
2752 * progspace.h: Likewise.
2753 * python/py-type.c: Likewise.
2754 * record-btrace.c: Likewise.
2755 * rust-exp.y: Likewise.
2756 * solib-target.c: Likewise.
2757 * stap-probe.c: Likewise.
2758 * target-descriptions.c: Likewise.
2759 * target-memory.c: Likewise.
2760 * target.h: Likewise.
2761 * varobj.c: Likewise.
2762 * varobj.h: Likewise.
2763 * xml-support.h: Likewise.
2764
2765 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2766
2767 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2768 Update for new std::vector based implementation.
2769 (process_psymtab_comp_unit_reader): Likewise.
2770 (scan_partial_symbols): Likewise.
2771 (recursively_compute_inclusions): Likewise.
2772 (compute_compunit_symtab_includes): Likewise.
2773 (process_imported_unit_die): Likewise.
2774 (queue_and_load_dwo_tu): Likewise.
2775 (follow_die_sig_1): Likewise.
2776 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2777 (typedef dwarf2_per_cu_ptr): Remove.
2778 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2779 function.
2780 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2781 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2782 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2783 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2784 std::vector.
2785
2786 2019-10-15 Tom Tromey <tromey@adacore.com>
2787
2788 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2789 TID.
2790
2791 2019-10-15 Tom Tromey <tromey@adacore.com>
2792
2793 * windows-nat.c (windows_nat_target::fetch_registers)
2794 (windows_nat_target::store_registers): Rename "pid" to "tid".
2795
2796 2019-10-15 Tom Tromey <tromey@adacore.com>
2797
2798 * gdbarch.h, gdbarch.c: Rebuild.
2799 * gdbarch.sh (gcc_target_options): Change return type to
2800 std::string.
2801 * compile/compile.c (get_args): Update.
2802 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2803 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2804 std::string.
2805 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2806 std::string.
2807 * arch-utils.c (default_gcc_target_options): Return std::string.
2808 * arch-utils.h (default_gcc_target_options): Return std::string.
2809 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2810
2811 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2812
2813 * breakpoint.c (breakpoint_chain): Make static.
2814 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2815 of accessing breakpoint_chain.
2816
2817 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2818
2819 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2820 to a gdb::function_view and return value to bool.
2821 * breakpoint.h (iterate_over_breakpoints): Likewise.
2822 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2823 (pop_dummy_frame): Update.
2824 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2825 (gdbscm_breakpoints): Update.
2826 * python/py-breakpoint.c (build_bp_list): Update.
2827 (gdbpy_breakpoints): Update.
2828 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2829 Update.
2830 (bpfinishpy_handle_stop): Update.
2831 (bpfinishpy_handle_exit): Update.
2832 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2833 (svr4_update_solib_event_breakpoints): Update.
2834
2835 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2836
2837 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2838 when unwrapping single-field structs.
2839
2840 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2841
2842 * dwarf2read.c: Remove includes.
2843
2844 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2845
2846 * ui-out.c (ui_out::call_do_message): Silence
2847 -Wformat-nonliteral warning.
2848
2849 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2850
2851 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2852 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2853 include: readline/tilde.h.
2854
2855 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2856
2857 * remote.c (remote_target::get_trace_status): Remove declaration of
2858 trace_regblock_size.
2859
2860 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2861
2862 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2863 (show_user): Remove declaration of cmdlist.
2864 * cli/cli-cmds.h (max_user_call_depth): Declare.
2865 * cli/cli-script.c (execute_user_command): Remove declaration
2866 of max_user_call_depth.
2867
2868 2019-10-11 Jim Wilson <jimw@sifive.com>
2869
2870 * gdbsupport/print-utils.h (pulongest): Fix comment.
2871 (plongest): Likewise.
2872 (phex): Add missing comment, mention leading zeros.
2873 (phex_nz): Add mention of no leading zeros to comment.
2874
2875 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2876 plongest instead of unsigned long long cast.
2877
2878 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2879
2880 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2881 for external_editor_command and gdbtk_test.
2882
2883 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2884
2885 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2886 * varobj.c (varobjdebug): Move comment to...
2887 * varobj.h (varobjdebug): ...here, and declare.
2888
2889 2019-10-09 Tom Tromey <tom@tromey.com>
2890
2891 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2892 erase_data_content.
2893
2894 2019-10-09 Tom Tromey <tom@tromey.com>
2895
2896 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2897 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2898 * tui/tui-command.c (tui_cmd_window::resize)
2899 (tui_refresh_cmd_win): Update.
2900 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2901 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2902 * tui/tui-data.c (~tui_gen_win_info): Remove.
2903 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2904 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2905 (tui_redisplay_readline, tui_mld_flush)
2906 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2907 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2908 (tui_data_window::erase_data_content)
2909 (tui_data_item_window::rerender)
2910 (tui_data_item_window::refresh_window): Update.
2911 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2912 (box_win, tui_gen_win_info::make_window)
2913 (tui_gen_win_info::make_visible): Update.
2914 (tui_delete_win): Remove.
2915 * tui/tui-winsource.c
2916 (tui_source_window_base::do_erase_source_content): Update.
2917 (tui_show_source_line, tui_source_window_base::update_tab_width)
2918 (tui_source_window_base::update_exec_info): Update.
2919 * tui/tui-data.h (struct curses_deleter): New.
2920 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2921 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2922
2923 2019-10-09 Tom Tromey <tom@tromey.com>
2924
2925 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2926
2927 2019-10-09 Tom Tromey <tom@tromey.com>
2928
2929 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2930 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2931
2932 2019-10-09 Tom Tromey <tom@tromey.com>
2933
2934 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2935 window height directly.
2936 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2937 declare.
2938 * tui/tui-layout.c (tui_default_win_height): Remove.
2939 (tui_default_win_viewport_height): Remove.
2940
2941 2019-10-09 Tom Tromey <tom@tromey.com>
2942
2943 * tui/tui.h: Remove comments.
2944
2945 2019-10-09 Tom de Vries <tdevries@suse.de>
2946
2947 * python/lib/gdb/printer/bound_registers.py: Use
2948 '^builtin_type_bound128' as regexp argument for
2949 add_builtin_pretty_printer.
2950
2951 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2952
2953 * guile/guile.c (guile_extension_script_ops): Remove forward
2954 declaration and mark as static.
2955 (guile_script_ops): Likewise.
2956 (extension_language_guile): Move further down in the file so
2957 it can reference the definitions for guile_{extension_,}script_ops.
2958
2959 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2960
2961 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2962 except SORTL, DFLTCC, and KDSA.
2963
2964 2019-10-08 Tom Tromey <tromey@adacore.com>
2965
2966 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2967 (struct safe_symbol_file_add_args): Remove.
2968
2969 2019-10-08 Tom Tromey <tromey@adacore.com>
2970
2971 * windows-nat.c: Don't include buildsym-legacy.h.
2972
2973 2019-10-08 Tom Tromey <tromey@adacore.com>
2974
2975 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2976
2977 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2978
2979 * gdbtypes.c (overload_debug): Move comment to header.
2980 * gdbtypes.h (overload_debug): Declare.
2981 * valops.c: Remove declaration of overload_debug, instead
2982 include gdbtypes.h.
2983
2984 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2985
2986 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2987 through _().
2988 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2989 move comment...
2990 * language.h (lang_frame_mismatch_warn): ... here. Also add
2991 declaration.
2992 * top.c (lang_frame_mismatch_warn): Remove declaration.
2993 (check_frame_language_change): Pass lang_frame_mismatch_warn
2994 through _().
2995
2996 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2997
2998 * c-lang.h (vtbl_ptr_name): Declare.
2999 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3000 it from the header.
3001 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3002
3003 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3004
3005 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3006 gdb_static_assert.
3007
3008 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3009
3010 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3011 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
3012 * ctfread.c: New file.
3013 * ctfread.h: New file.
3014 * elfread.c: Include ctfread.h.
3015 (struct elfinfo text_p): New member ctfsect.
3016 (elf_locate_sections): Mark CTF section.
3017 (elf_symfile_read): Call elfctf_build_psymtabs.
3018 * Makefile.in (LIBCTF): Add.
3019 (CLIBS): Use it.
3020 (CDEPS): Likewise.
3021 (DIST): Add ctfread.c.
3022
3023 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3024
3025 * ctfread.c (struct nextfield): Renamed to ...
3026 (struct ctf_nextfield): ... this.
3027 (struct field_info): Renamed to ...
3028 (strut ctf_field_info): ... this.
3029 (attach_fields_to_type): Update for renamed structures.
3030 (ctf_add_member_cb): Likewise.
3031 (ctf_add_enum_member_cb): Likewise.
3032 (process_struct_members): Likewise.
3033 (process_enum_type): Likewise.
3034
3035 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3036
3037 * tracectf.h: Rename, was ctf.h.
3038 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3039 * tracefile.c: Likewise.
3040 * tracepoint.c: Remove unused include ctf.h.
3041 * mi/mi-main.c: Likewise.
3042 * Makefile.in Replace ctf.c with tracectf.c.
3043
3044 2019-10-06 Joel Brobecker <brobecker@adacore.com>
3045
3046 * version.in: Change version number to "9.0.50.DATE-git".
3047
3048 2019-10-03 Tom Tromey <tom@tromey.com>
3049
3050 PR rust/24976:
3051 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3052
3053 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3054
3055 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3056 cp_search_name_hash.
3057 * NEWS: Add entry about nested function support.
3058
3059 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3060 Andrew Burgess <andrew.burgess@embecosm.com>
3061
3062 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3063 for nested static variables when searchin VAR_DOMAIN.
3064 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3065 global scope, update comment.
3066 (add_partial_subprogram): Call add_partial_subprogram recursively
3067 for nested subroutines when processinng Fortran.
3068 (load_partial_dies): Process the child entities of a subprogram
3069 when processing Fortran.
3070 (partial_die_parent_scope): Handle building scope
3071 for Fortran nested functions.
3072 (process_die): Record that nested functions have a scope.
3073 (new_symbol): Always record Fortran subprograms on the global
3074 symbol list.
3075 (determine_prefix): How to build the prefix for Fortran
3076 subprograms.
3077
3078 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3079
3080 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3081 have just sent the thread a SIGSTOP and are waiting for it to
3082 arrive.
3083
3084 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3085
3086 * btrace.c (btrace_add_pc): Remove whitespace before the template
3087 parameter in 'std::vector <...>'.
3088 (parse_xml_btrace_block): Likewise.
3089 (btrace_maint_decode_pt): Likewise.
3090 (btrace_maint_update_packets): Likewise.
3091 (btrace_maint_print_packets): Likewise.
3092 * btrace.h (struct btrace_maint_info): Likewise.
3093 * dwarf2read.c (struct type_unit_group): Likewise.
3094 (build_type_psymtabs_reader): Likewise.
3095 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3096 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3097 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3098
3099 2019-10-03 Tom de Vries <tdevries@suse.de>
3100
3101 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3102 the first line of the help text for set/show style metadata.
3103
3104 2019-10-02 Tom Tromey <tromey@adacore.com>
3105
3106 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3107 * gdbsupport/common-inferior.c: New file.
3108 * infcmd.c (startup_with_shell): Don't define.
3109 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3110 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3111 * inferior.h (startup_with_shell): Don't declare.
3112
3113 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3114
3115 * gdbsupport/gdb_assert.h: Include errors.h.
3116 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3117
3118 2019-10-02 Tom Tromey <tromey@adacore.com>
3119
3120 * NEWS: Add $_ada_exception entry.
3121 * ada-lang.c (struct ada_catchpoint): Add constructor.
3122 <m_kind>: New member.
3123 (allocate_location_exception, re_set_exception): Remove
3124 "ex" parameter.
3125 (should_stop_exception): Compute $_ada_exception.
3126 (check_status_exception, print_it_exception)
3127 (print_one_exception, print_mention_exception): Remove
3128 "ex" parameter.
3129 (allocate_location_catch_exception, re_set_catch_exception)
3130 (check_status_exception, print_it_catch_exception)
3131 (print_one_catch_exception, print_mention_catch_exception)
3132 (print_recreate_catch_exception)
3133 (allocate_location_catch_exception_unhandled)
3134 (re_set_catch_exception_unhandled)
3135 (check_status_exception, print_it_catch_exception_unhandled)
3136 (print_one_catch_exception_unhandled)
3137 (print_mention_catch_exception_unhandled)
3138 (print_recreate_catch_exception_unhandled)
3139 (allocate_location_catch_assert, re_set_catch_assert)
3140 (check_status_assert, print_it_catch_assert)
3141 (print_one_catch_assert, print_mention_catch_assert)
3142 (print_recreate_catch_assert)
3143 (allocate_location_catch_handlers, re_set_catch_handlers)
3144 (check_status_handlers, print_it_catch_handlers)
3145 (print_one_catch_handlers, print_mention_catch_handlers)
3146 (print_recreate_catch_handlers): Remove.
3147 (create_ada_exception_catchpoint): Update.
3148 (initialize_ada_catchpoint_ops): Update.
3149
3150 2019-10-02 Tom Tromey <tromey@adacore.com>
3151
3152 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3153 (create_excep_cond_exprs): Simplify exception string computation.
3154 (ada_exception_catchpoint_cond_string): Likewise.
3155
3156 2019-10-02 Tom Tromey <tromey@adacore.com>
3157
3158 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3159 * ada-lang.c (lesseq_defined_than): Handle
3160 LOC_STATIC.
3161 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3162 parameter.
3163 (dwarf2_has_info): Likewise.
3164 (new_symbol): Set maybe_copied on symbol when
3165 appropriate.
3166 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3167 parameter.
3168 <can_copy>: New member.
3169 * elfread.c (record_minimal_symbol): Set maybe_copied
3170 on symbol when appropriate.
3171 (elf_symfile_read): Update call to dwarf2_has_info.
3172 * minsyms.c (lookup_minimal_symbol_linkage): New
3173 function.
3174 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3175 * symtab.c (get_symbol_address, get_msymbol_address):
3176 New functions.
3177 * symtab.h (get_symbol_address, get_msymbol_address):
3178 Declare.
3179 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3180 maybe_copied.
3181 (struct symbol, struct minimal_symbol) <maybe_copied>:
3182 New member.
3183
3184 2019-10-02 Tom Tromey <tromey@adacore.com>
3185
3186 * source.c (struct current_source_location): New.
3187 (current_source_key): New global.
3188 (current_source_symtab, current_source_line)
3189 (current_source_pspace): Remove.
3190 (get_source_location): New function.
3191 (get_current_source_symtab_and_line)
3192 (set_default_source_symtab_and_line)
3193 (set_current_source_symtab_and_line)
3194 (clear_current_source_symtab_and_line, select_source_symtab)
3195 (info_source_command, print_source_lines_base)
3196 (info_line_command, search_command_helper, _initialize_source):
3197 Update.
3198
3199 2019-10-02 Tom Tromey <tromey@adacore.com>
3200
3201 * source.c (select_source_symtab): Don't call
3202 decode_line_with_current_source.
3203
3204 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3205
3206 * symtab.c (lookup_global_symbol): Search global block.
3207
3208 2019-10-02 Tom Tromey <tromey@adacore.com>
3209
3210 * coffread.c (process_coff_symbol): Update.
3211 * dwarf2read.c (var_decode_location, new_symbol): Update.
3212 * mdebugread.c (parse_symbol): Update.
3213 * objfiles.c (relocate_one_symbol): Update.
3214 * stabsread.c (define_symbol, fix_common_block)
3215 (scan_file_globals): Update.
3216 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3217 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3218 * xcoffread.c (process_xcoff_symbol): Update.
3219
3220 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3221
3222 * MAINTAINERS: Update my email address.
3223
3224 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3225
3226 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3227 std::vector.
3228 (build_type_psymtabs_reader): Update for std::vector.
3229 (build_type_psymtab_dependencies): Likewise.
3230 * dwarf2read.h: Remove use of DEF_VEC_P.
3231 (typedef sig_type_ptr): Delete.
3232
3233 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3234
3235 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3236 to std::vector.
3237 (btrace_maint_decode_pt): Likewise, and move allocation of the
3238 vector outside of the loop.
3239 (btrace_maint_update_packets): Update to handle change from VEC to
3240 std::vector.
3241 (btrace_maint_print_packets): Likewise.
3242 (maint_info_btrace_cmd): Likewise.
3243 * btrace.h: Remove use of DEF_VEC_O.
3244 (typedef btrace_pt_packet_s): Delete.
3245 (struct btrace_maint_info) <packets>: Change fromm VEC to
3246 std::vector.
3247 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3248
3249 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3250
3251 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3252 make accesses into the vector constant references.
3253 (btrace_add_pc): Update for std::vector.
3254 (btrace_stitch_bts): Likewise.
3255 (parse_xml_btrace_block): Likewise.
3256 (btrace_maint_update_packets): Likewise.
3257 (btrace_maint_print_packets): Likewise.
3258 (maint_info_btrace_cmd): Likewise.
3259 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3260 std::vector.
3261 (btrace_data::empty): Likewise.
3262 (btrace_data_append): Likewise.
3263 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3264 (typedef btrace_block_s): Delete.
3265 (struct btrace_block): Add constructor.
3266 (struct btrace_data_bts) <blocks>: Change to std::vector.
3267 * nat/linux-btrace.c (perf_event_read_bts): Update for
3268 std::vector.
3269 (linux_read_bts): Likewise.
3270
3271 2019-10-01 Tom Tromey <tom@tromey.com>
3272
3273 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3274
3275 2019-10-01 Tom Tromey <tom@tromey.com>
3276
3277 * stack.c (print_frame, info_frame_command_core): Use
3278 styled_string.
3279 * linux-thread-db.c (try_thread_db_load_1)
3280 (try_thread_db_load_from_pdir_1): Use styled_string.
3281 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3282 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3283 (maybe_print_unsupported_script_warning)
3284 (maybe_print_script_not_found_warning): Use styled_string.
3285 * ada-lang.c (user_select_syms): Use styled_string.
3286
3287 2019-10-01 Tom Tromey <tom@tromey.com>
3288
3289 * p-lang.c (pascal_printstr): Use metadata style.
3290 * value.c (show_convenience): Use metadata style.
3291 * valprint.c (valprint_check_validity, val_print_optimized_out)
3292 (val_print_not_saved, val_print_unavailable)
3293 (val_print_invalid_address, generic_val_print, val_print)
3294 (value_check_printable, val_print_array_elements): Use metadata
3295 style.
3296 * ui-out.h (class ui_out) <field_fmt>: New overload.
3297 <do_field_fmt>: Add style parameter.
3298 * ui-out.c (ui_out::field_fmt): New overload.
3299 * typeprint.c (type_print_unknown_return_type)
3300 (val_print_not_allocated, val_print_not_associated): Use metadata
3301 style.
3302 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3303 parameter.
3304 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3305 * tracepoint.c (tvariables_info_1): Use metadata style.
3306 * stack.c (print_frame_arg, print_frame_info, print_frame)
3307 (info_frame_command_core): Use metadata style.
3308 * skip.c (info_skip_command): Use metadata style.
3309 * rust-lang.c (rust_print_enum): Use metadata style.
3310 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3311 metadata style.
3312 * python/py-framefilter.c (py_print_single_arg): Use metadata
3313 style.
3314 * printcmd.c (do_one_display, print_variable_and_value): Use
3315 metadata style.
3316 * p-valprint.c (pascal_val_print)
3317 (pascal_object_print_value_fields): Use metadata style.
3318 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3319 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3320 parameter.
3321 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3322 * m2-valprint.c (m2_print_long_set): Use metadata style.
3323 * m2-typeprint.c (m2_print_type): Use metadata style.
3324 * infcmd.c (print_return_value_1): Use metadata style.
3325 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3326 * f-valprint.c (info_common_command_for_block): Use metadata
3327 style.
3328 * f-typeprint.c (f_type_print_base): Use metadata style.
3329 * expprint.c (print_subexp_standard): Use metadata style.
3330 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3331 * cli/cli-style.h (class cli_style_option): Add constructor.
3332 (metadata_style): Declare.
3333 * cli/cli-style.c (metadata_style): New global.
3334 (_initialize_cli_style): Register metadata style.
3335 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3336 parameter.
3337 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3338 * c-typeprint.c (c_type_print_base_struct_union)
3339 (c_type_print_base_1): Use metadata style.
3340 * breakpoint.c (watchpoint_value_print)
3341 (print_one_breakpoint_location): Use metadata style.
3342 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3343 style.
3344 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3345 style.
3346 * ada-valprint.c (val_print_packed_array_elements, printstr)
3347 (print_field_values, ada_val_print_ref, ada_val_print): Use
3348 metadata style.
3349 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3350 style.
3351 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3352 style.
3353 * ada-lang.c (user_select_syms): Use metadata style.
3354
3355 2019-10-01 Tom Tromey <tom@tromey.com>
3356
3357 * cli/cli-cmds.c (pwd_command): Style output.
3358
3359 2019-10-01 Pedro Alves <palves@redhat.com>
3360 Tom Tromey <tom@tromey.com>
3361
3362 * symtab.c (print_symbol_info): Use %ps.
3363 (print_msymbol_info): Use %ps.
3364 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3365 * printcmd.c (print_variable_and_value): Use %ps.
3366 * macrocmd.c (show_pp_source_pos): Use %ps.
3367 * infrun.c (print_exited_reason): Use ui_out::message.
3368 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3369 (describe_other_breakpoints): Use ui_out::message and new
3370 formats.
3371 (say_where): Use new formats.
3372 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3373 and new formats.
3374
3375 2019-10-01 Pedro Alves <palves@redhat.com>
3376 Tom Tromey <tom@tromey.com>
3377
3378 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3379 (test_gdb_formats): New function.
3380 (run_tests): Call it.
3381 (test_format_specifier): Update.
3382 * utils.h (fputs_filtered): Update comment.
3383 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3384 (fputs_styled_unfiltered): Declare.
3385 * utils.c (fputs_styled_unfiltered): New function.
3386 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3387 (vfprintf_filtered): Update.
3388 (vfprintf_unfiltered, vprintf_filtered): Update.
3389 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3390 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3391 disallow_ui_out_field>: New constants.
3392 (enum class field_kind): New.
3393 (struct base_field_s, struct signed_field_s): New.
3394 (signed_field): New function.
3395 (struct string_field_s): New.
3396 (string_field): New function.
3397 (struct styled_string_s): New.
3398 (styled_string): New function.
3399 (class ui_out) <message>: Add comment.
3400 <vmessage, call_do_message>: New methods.
3401 <do_message>: Add style parameter.
3402 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3403 methods.
3404 (ui_out::message): Rewrite.
3405 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3406 parameter.
3407 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3408 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3409 gdb_extensions parameter.
3410 (class format_piece): Add parameter to constructor.
3411 (n_int_args): New field.
3412 * gdbsupport/format.c (format_pieces::format_pieces): Add
3413 gdb_extensions parameter. Handle '*'.
3414 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3415 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3416 vfprintf_styled_no_gdbfmt.
3417 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3418 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3419 unfiltered output.
3420 * ui-style.h (struct ui_file_style) <ptr>: New method.
3421
3422 2019-10-01 Tom Tromey <tom@tromey.com>
3423
3424 * unittests/format_pieces-selftests.c: Update. Add final format.
3425 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3426 empty literal pieces.
3427
3428 2019-10-01 Tom Tromey <tom@tromey.com>
3429
3430 * ui-out.h (enum class ui_out_style_kind): Remove.
3431 (class ui_out) <field_string, field_stsream, do_field_string>:
3432 Change type of "style".
3433 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3434 (ui_out::field_string): Update.
3435 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3436 of "style".
3437 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3438 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3439 * stack.c (print_frame_arg, print_frame_info, print_frame):
3440 Update.
3441 * source.c (print_source_lines_base): Update.
3442 * solib.c (info_sharedlibrary_command): Update.
3443 * skip.c (info_skip_command): Update.
3444 * record-btrace.c (btrace_call_history_src_line)
3445 (btrace_call_history): Update.
3446 * python/py-framefilter.c (py_print_frame): Update.
3447 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3448 "style".
3449 * mi/mi-out.c (mi_ui_out::do_table_header)
3450 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3451 (mi_ui_out::do_field_string): Update.
3452 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3453 Update.
3454 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3455 "style".
3456 * cli-out.c (cli_ui_out::do_table_header)
3457 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3458 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3459 (cli_ui_out::do_field_fmt): Update.
3460 * breakpoint.c (print_breakpoint_location): Update.
3461 (update_static_tracepoint): Update.
3462
3463 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3464
3465 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3466 conversion of gdb_datadir.
3467 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3468 remove not needed c_str ().
3469
3470 2019-09-30 Ali Tamur <tamur@google.com>
3471
3472 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3473 (dwarf2_string_attr): Likewise.
3474
3475 2019-09-30 Ali Tamur <tamur@google.com>
3476
3477 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3478 (process_full_type_unit): Likewise.
3479 (dump_die_shallow): Likewise.
3480 (cu_debug_loc_section): Likewise.
3481
3482 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3483
3484 * minsyms.c (compare_minimal_symbols): Rename to...
3485 (minimal_symbol_is_less_than): ...this, and adjust to STL
3486 conventions (return bool, take arguments as references)
3487 (minimal_symbol_reader::install): Call std::sort instead
3488 of qsort.
3489
3490 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3491
3492 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3493 hash and why.
3494 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3495 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3496
3497 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3498
3499 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3500 * psympriv.h (add_psymbol_to_list): Move comment here and update
3501 it.
3502
3503 2019-09-29 Tom de Vries <tdevries@suse.de>
3504
3505 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3506 Use $tmpdir/$(basename "$output_file").dwz instead of
3507 "${output_file}.dwz".
3508
3509 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3510
3511 PR gdb/25045
3512 * hppa-linux-nat.c: Include gdbarch.h.
3513
3514 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3515
3516 * blockframe.c (find_pc_partial_function): Change return type to bool.
3517 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3518 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3519 (stub_gnu_ifunc_resolve_name): Likewise.
3520 * symtab.c (compare_filenames_for_search): Likewise.
3521 (compare_glob_filenames_for_search): Likewise.
3522 (matching_obj_sections): Likewise.
3523 (symbol_matches_domain): Likewise.
3524 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3525 (find_line_pc): Change return type to bool.
3526 (find_line_pc_range): Likewise.
3527 (producer_is_realview): Likewise.
3528 * symtab.h (symbol_matches_domain): Likewise.
3529 (find_pc_partial_function): Likewise.
3530 (find_pc_line_pc_range): Likewise.
3531 (in_gnu_ifunc_stub): Likewise.
3532 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3533 (find_line_pc): Likewise.
3534 (find_line_pc_range): Likewise.
3535 (matching_obj_sections): Likewise.
3536 (find_line_symtab): Change out parameter to bool.
3537 (producer_is_realview): Change return type to bool.
3538 (compare_filenames_for_search): Likewise.
3539 (compare_glob_filenames_for_search): Likewise.
3540
3541 2019-09-26 Tom Tromey <tom@tromey.com>
3542
3543 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3544 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3545 * gdb_usleep.h: Remove.
3546 * gdb_usleep.c: Remove.
3547 * utils.c: Don't include gdb_usleep.h.
3548
3549 2019-09-26 Tom Tromey <tromey@adacore.com>
3550
3551 * python/py-type.c (type_to_type_object): Call check_typedef
3552 for stub types.
3553
3554 2019-09-26 Tom Tromey <tom@tromey.com>
3555
3556 * utils.h (initialize_utils): Don't declare.
3557 * top.c (gdb_init): Don't call initialize_utils.
3558 * utils.c (initialize_utils): Remove. Move contents...
3559 (_initialize_utils): ... here.
3560
3561 2019-09-25 Tom Tromey <tom@tromey.com>
3562
3563 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3564 * utils.h (make_hex_string): Don't declare.
3565 * utils.c (make_hex_string): Remove.
3566
3567 2019-09-24 Tom de Vries <tdevries@suse.de>
3568
3569 PR gdb/23815
3570 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3571 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3572
3573 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3574
3575 * NEWS: Mention new simulator port for PRU.
3576
3577 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3578
3579 * ada-exp.y (write_object_remaining): Update.
3580 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3581 and eliminate the static buffer.
3582 (ada_decode_symbol): Update.
3583 (ada_la_decode): Update.
3584 (ada_sniff_from_mangled_name): Update.
3585 (is_valid_name_for_wild_match): Update.
3586 (ada_lookup_name_info::matches): Update and simplify.
3587 (name_matches_regex): Update.
3588 (ada_add_global_exceptions): Update.
3589 * ada-lang.h (ada_decode): Update signature.
3590 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3591 * dwarf-index-write.c (debug_names::insert): Update.
3592
3593 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3594
3595 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3596 formatting.
3597
3598 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3599
3600 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3601 Change "nonzero" to "true" in documentation.
3602
3603 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3604
3605 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3606 (_initialize_darwin_solib): Don't set
3607 darwin_so_ops.lookup_lib_global_symbol.
3608 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3609 set_gdbarch_iterate_over_objfiles_in_search_order.
3610 (elf_lookup_lib_symbol): Rename to...
3611 (svr4_iterate_over_objfiles_in_search_order): this, and update
3612 to iterate semantics.
3613 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3614 * solib.c (solib_global_lookup): Remove.
3615 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3616 (solib_global_lookup): Remove.
3617 * symtab.c (lookup_global_or_static_symbol): Remove call to
3618 solib_global_lookup.
3619
3620 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3621
3622 * NEWS: Move entries about default MI version now being
3623 version 3, and about the GDB/MI fix for multi-location
3624 breakpoints to the "since GDB 8.3" section.
3625
3626 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3627
3628 GDB 8.3.1 released.
3629
3630 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3631
3632 * NEWS: Mention that Cell/B.E. debugging support was removed.
3633 * MAINTAINERS: Remove spu target.
3634
3635 * config/djgpp/fnchange.lst: Remove entries for removed files.
3636
3637 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3638 spu-multiarch.o, and spu-tdep.o.
3639 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3640 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3641 spu-multiarch.c, and spu-tdep.c.
3642 * spu-linux-nat.c: Remove file.
3643 * spu-multiarch.c: Remove file.
3644 * spu-tdep.c: Remove file.
3645 * spu-tdep.h: Remove file.
3646 * solib-spu.c: Remove file.
3647 * solib-spu.h: Remove file.
3648
3649 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3650 * configure.nat (spu-linux): Remove.
3651 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3652 solib-multiarch.o from gdb_target_obs.
3653 (spu*-*-*): Remove.
3654
3655 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3656 feature flag.
3657 (ppc_linux_no_features): Update.
3658 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3659 Cell/B.E. support.
3660 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3661 (tdesc_powerpc_cell64l): Likewise.
3662 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3663 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3664 Cell/B.E. support.
3665 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3666 Do not include "features/rs6000/powerpc-cell32l.c" or
3667 "features/rs6000/powerpc-cell64l.c".
3668 (ppc_linux_spu_section): Remove.
3669 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3670 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3671 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3672 (ppc_linux_spe_context_lookup): Remove.
3673 (ppc_linux_spe_context_inferior_created): Remove.
3674 (ppc_linux_spe_context_solib_loaded): Remove.
3675 (ppc_linux_spe_context_solib_unloaded): Remove.
3676 (ppc_linux_spe_context): Remove.
3677 (struct ppu2spu_cache): Remove.
3678 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3679 (struct ppu2spu_data): Remove.
3680 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3681 ppu2spu_unwind): Remove.
3682 (ppc_linux_init_abi): Remove Cell/B.E. support.
3683 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3684
3685 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3686 (rs6000/powerpc-cell64l-expedite): Likewise
3687 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3688 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3689 rs6000/powerpc-cell64l.xml.
3690 * features/rs6000/powerpc-cell32l.xml: Remove.
3691 * features/rs6000/powerpc-cell64l.xml: Likewise.
3692 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3693 * features/rs6000/powerpc-cell64l.c: Likewise.
3694 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3695 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3696 * regformats/reg-spu.dat: Remove.
3697
3698 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3699 * corelow.c (struct spuid_list): Remove.
3700 (add_to_spuid_list): Remove.
3701 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3702 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3703 (remote_protocol_features): Remove associated entries.
3704 (_initialize_remote): No longer initialize them.
3705 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3706 * linux-nat.c (SPUFS_MAGIC): Remove.
3707 (linux_proc_xfer_spu): Remove.
3708 (spu_enumerate_spu_ids): Remove.
3709 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3710 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3711 (linux_make_corefile_notes): No longer call it.
3712
3713 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3714 (cooked_write_test): Likewise.
3715
3716 2019-09-20 Tom Tromey <tom@tromey.com>
3717
3718 * NEWS: Mention case-sensitivity of TUI commands.
3719 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3720 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3721 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3722
3723 2019-09-20 Tom Tromey <tom@tromey.com>
3724
3725 * tui/tui-source.c (tui_source_window::set_contents): Use
3726 make_unique_xstrdup.
3727 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3728 make_unique_xstrdup.
3729
3730 2019-09-20 Tom Tromey <tom@tromey.com>
3731
3732 * tui/tui-data.c: Remove separator comments.
3733 * tui/tui-layout.c: Remove separator comments.
3734 * tui/tui-win.c: Remove separator comments.
3735 * tui/tui-wingeneral.c: Remove separator comments.
3736
3737 2019-09-20 Tom Tromey <tom@tromey.com>
3738
3739 * tui/tui.h (strcat_to_buf): Don't declare.
3740 * tui/tui.c (strcat_to_buf): Remove.
3741
3742 2019-09-20 Tom Tromey <tom@tromey.com>
3743
3744 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3745 from "fullname".
3746 * tui/tui-source.c (tui_source_window::set_contents)
3747 (tui_source_window::location_matches_p)
3748 (tui_source_window::maybe_update): Update.
3749
3750 2019-09-20 Tom Tromey <tom@tromey.com>
3751
3752 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3753 Update.
3754 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3755 prefix.
3756 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3757 (tui_data_window::line_from_reg_element_no)
3758 (tui_data_window::first_reg_element_no_inline)
3759 (tui_data_window::show_registers)
3760 (tui_data_window::show_register_group)
3761 (tui_data_window::display_registers_from)
3762 (tui_data_window::display_registers_from_line)
3763 (tui_data_window::first_data_item_displayed)
3764 (tui_data_window::delete_data_content_windows)
3765 (tui_data_window::erase_data_content)
3766 (tui_data_window::do_scroll_vertical)
3767 (tui_data_window::refresh_window)
3768 (tui_data_window::check_register_values): Update.
3769
3770 2019-09-20 Tom Tromey <tom@tromey.com>
3771
3772 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3773 (struct tui_locator_window) <full_name, proc_name>: Now
3774 std::string.
3775 * tui/tui-stack.c (tui_locator_window::make_status_line)
3776 (tui_locator_window::set_locator_fullname)
3777 (tui_locator_window::set_locator_info): Update.
3778 * tui/tui-source.c (tui_source_window::set_contents)
3779 (tui_source_window::showing_source_p): Update.
3780
3781 2019-09-20 Tom Tromey <tom@tromey.com>
3782
3783 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3784 Don't call tui_locator_win_info_ptr.
3785
3786 2019-09-20 Tom Tromey <tom@tromey.com>
3787
3788 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3789
3790 2019-09-20 Tom Tromey <tom@tromey.com>
3791
3792 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3793 height for locator.
3794 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3795 * tui/tui-layout.c (show_source_disasm_command, show_data)
3796 (show_source_or_disasm_and_command): Use 1 as height for locator.
3797
3798 2019-09-20 Tom Tromey <tom@tromey.com>
3799
3800 * tui/tui.c (tui_enable): Update.
3801 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3802 Update.
3803 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3804 Update.
3805 * tui/tui-data.c (win_resized): Now bool.
3806 (tui_win_resized): Return bool.
3807 (tui_set_win_resized_to): Accept a bool.
3808
3809 2019-09-20 Tom Tromey <tom@tromey.com>
3810
3811 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3812 Change type of "refresh_values_only".
3813 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3814 type of "refresh_values_only".
3815
3816 2019-09-20 Tom Tromey <tom@tromey.com>
3817
3818 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3819 std::string.
3820 (tui_disassemble): Add "pos" parameter.
3821 (tui_disasm_window::set_contents): Simplify.
3822
3823 2019-09-20 Tom Tromey <tom@tromey.com>
3824
3825 * tui/tui-winsource.h (struct tui_source_window_base)
3826 <show_source_content>: Now private.
3827 * tui/tui-winsource.c
3828 (tui_source_window_base::show_source_content): Don't handle empty
3829 content case.
3830
3831 2019-09-20 Tom Tromey <tom@tromey.com>
3832
3833 * tui/tui-layout.c (show_source_disasm_command)
3834 (show_source_or_disasm_and_command): Don't call
3835 show_source_content.
3836
3837 2019-09-20 Tom Tromey <tom@tromey.com>
3838
3839 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3840 Declare.
3841 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3842 from tui_make_status_line.
3843 (tui_locator_window::rerender): Update.
3844
3845 2019-09-20 Tom Tromey <tom@tromey.com>
3846
3847 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3848 (tui_locator_window::rerender): Update.
3849
3850 2019-09-20 Tom Tromey <tom@tromey.com>
3851
3852 * tui/tui-winsource.h (struct tui_source_window_base)
3853 <~tui_source_window_base>: Don't declare.
3854 <fullname>: Remove.
3855 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3856 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3857 member.
3858 * tui/tui-source.c (tui_source_window::set_contents): Update.
3859 (tui_source_window::location_matches_p)
3860 (tui_source_window::maybe_update): Update.
3861
3862 2019-09-20 Tom Tromey <tom@tromey.com>
3863
3864 * tui/tui-winsource.h (~tui_source_element): Remove.
3865 (tui_source_element): Update.
3866 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3867 * tui/tui-winsource.c (tui_show_source_line): Update.
3868 * tui/tui-source.c (tui_source_window::set_contents): Update.
3869 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3870
3871 2019-09-20 Tom Tromey <tom@tromey.com>
3872
3873 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3874 declare.
3875 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3876 tui_clear_source_windows_detail.
3877 * tui/tui-winsource.h (struct tui_source_window_base)
3878 <clear_detail>: Don't declare.
3879 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3880 Remove.
3881 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3882
3883 2019-09-20 Tom Tromey <tromey@adacore.com>
3884
3885 PR ada/24919:
3886 * block.c (contained_in): Fix final return value.
3887
3888 2019-09-20 Alan Modra <amodra@gmail.com>
3889
3890 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3891 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3892 (read_indirect_string_from_dwz): Use bfd accessor.
3893 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3894 * machoread.c (macho_symfile_read_all_oso): Likewise.
3895 * solib.c (solib_bfd_open): Likewise.
3896
3897 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3898
3899 * eval.c: Move declaration of overload_resolution to...
3900 * value.h: ...here.
3901
3902 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3903
3904 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3905 * arm-linux-tdep.c: Likewise.
3906 * arm-nbsd-nat.c: Likewise.
3907 * arm-tdep.h: Declare arm_apcs_32.
3908 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3909
3910 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3911
3912 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3913 * dwarf2read.h: Declare dwarf_always_disassemble.
3914
3915 2019-09-19 Tom de Vries <tdevries@suse.de>
3916
3917 PR gdb/25009
3918 * source-cache.c (source_cache::ensure): Catch exception thrown during
3919 construction of the highlighter.
3920
3921 2019-09-18 Alan Modra <amodra@gmail.com>
3922
3923 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3924 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3925 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3926 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3927 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3928 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3929 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3930 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3931 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3932 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3933 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3934 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3935 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3936 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3937 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3938 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3939 * mi/mi-interp.c: Update throughout for bfd section macro and
3940 function changes.
3941 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3942 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3943
3944 2019-09-18 Tom Tromey <tom@tromey.com>
3945
3946 * NEWS: Add entry.
3947 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3948 call rl_initialize.
3949 (tui_enable): Do not call rl_initialize.
3950
3951 2019-09-18 Christian Groessler <chris@groessler.org>
3952
3953 * alpha-linux-nat.c: Include gdbarch.h.
3954
3955 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3956
3957 * ui-file.c: Include cli/cli-style.h.
3958 (term_cli_styling): Remove cli_styling declaration.
3959
3960 2019-09-18 Alan Modra <amodra@gmail.com>
3961
3962 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3963 to bfd_asymbol_section.
3964
3965 2019-09-18 Alan Modra <amodra@gmail.com>
3966
3967 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3968 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3969 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3970
3971 2019-09-18 Alan Modra <amodra@gmail.com>
3972
3973 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3974 * spu-linux-nat.c (spu_bfd_open): Likewise.
3975
3976 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3977
3978 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3979 to bool to match definition in dwarf2read.c.
3980
3981 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3982
3983 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3984 (print_signatures): Likewise.
3985 (trust_pad_over_xvs): Likewise.
3986 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3987 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3988 * arm-linux-nat.c (arm_apcs_32): Likewise.
3989 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3990 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3991 * arm-tdep.c (arm_debug): Likewise.
3992 (arm_apcs_32): Likewise.
3993 * auto-load.c (debug_auto_load): Likewise.
3994 (auto_load_gdb_scripts): Likewise.
3995 (global_auto_load): Likewise.
3996 (auto_load_local_gdbinit): Likewise.
3997 (auto_load_local_gdbinit_loaded): Likewise.
3998 * auto-load.h (global_auto_load): Likewise.
3999 (auto_load_local_gdbinit): Likewise.
4000 (auto_load_local_gdbinit_loaded): Likewise.
4001 * breakpoint.c (disconnected_dprintf): Likewise.
4002 (breakpoint_proceeded): Likewise.
4003 (automatic_hardware_breakpoints): Likewise.
4004 (always_inserted_mode): Likewise.
4005 (target_exact_watchpoints): Likewise.
4006 (_initialize_breakpoint): Update.
4007 * breakpoint.h (target_exact_watchpoints): Change to bool.
4008 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4009 * cli/cli-cmds.c (trace_commands): Likewise.
4010 * cli/cli-cmds.h (trace_commands): Likewise.
4011 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4012 to bool*.
4013 * cli/cli-logging.c (logging_overwrite): Change to bool.
4014 (logging_redirect): Likewise.
4015 (debug_redirect): Likewise.
4016 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4017 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4018 to bool.
4019 <boolean_option_def>: Update.
4020 (struct flag_option_def): Change default type of Context to bool
4021 from int.
4022 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4023 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4024 (get_setshow_command_value_string): Likewise.
4025 * cli/cli-style.c (cli_styling): Change to bool.
4026 (source_styling): Likewise.
4027 * cli/cli-style.h (source_styling): Likewise.
4028 (cli_styling): Likewise.
4029 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4030 to bool.
4031 * command.h (var_types): Update comment.
4032 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4033 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4034 bool.
4035 (debug_compile_cplus_scopes): Likewise.
4036 * compile/compile-internal.h (compile_debug): Likewise.
4037 * compile/compile.c (compile_debug): Likewise.
4038 (struct compile_options) <raw>: Likewise.
4039 * cp-support.c (catch_demangler_crashes): Likewise.
4040 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4041 (usr_cmd_cris_dwarf2_cfi): Likewise.
4042 * csky-tdep.c (csky_debug): Likewise.
4043 * darwin-nat.c (enable_mach_exceptions): Likewise.
4044 * dcache.c (dcache_enabled_p): Likewise.
4045 * defs.h (info_verbose): Likewise.
4046 * demangle.c (demangle): Likewise.
4047 (asm_demangle): Likewise.
4048 * dwarf-index-cache.c (debug_index_cache): Likewise.
4049 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4050 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4051 * dwarf2read.c (check_physname): Likewise.
4052 (use_deprecated_index_sections): Likewise.
4053 (dwarf_always_disassemble): Likewise.
4054 * eval.c (overload_resolution): Likewise.
4055 * event-top.c (set_editing_cmd_var): Likewise.
4056 (exec_done_display_p): Likewise.
4057 * event-top.h (set_editing_cmd_var): Likewise.
4058 (exec_done_display_p): Likewise.
4059 * exec.c (write_files): Likewise.
4060 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4061 (debug_fbsd_nat): Likewise.
4062 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4063 Likewise.
4064 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4065 <backtrace_past_entry> Likewise.
4066 * gdb-demangle.h (demangle): Likewise.
4067 (asm_demangle): Likewise.
4068 * gdb_bfd.c (bfd_sharing): Likewise.
4069 * gdbcore.h (write_files): Likewise.
4070 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4071 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4072 * gdbthread.h (print_thread_events): Likewise.
4073 * gdbtypes.c (opaque_type_resolution): Likewise.
4074 (strict_type_checking): Likewise.
4075 * gnu-nat.c (gnu_debug_flag): Likewise.
4076 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4077 * guile/scm-param.c (pascm_variable): Add boolval.
4078 (add_setshow_generic): Update.
4079 (pascm_param_value): Update.
4080 (pascm_set_param_value_x): Update.
4081 * hppa-tdep.c (hppa_debug): Change to bool..
4082 * infcall.c (may_call_functions_p): Likewise.
4083 (coerce_float_to_double_p): Likewise.
4084 (unwind_on_signal_p): Likewise.
4085 (unwind_on_terminating_exception_p): Likewise.
4086 * infcmd.c (startup_with_shell): Likewise.
4087 * inferior.c (print_inferior_events): Likewise.
4088 * inferior.h (startup_with_shell): Likewise.
4089 (print_inferior_events): Likewise.
4090 * infrun.c (step_stop_if_no_debug): Likewise.
4091 (detach_fork): Likewise.
4092 (debug_displaced): Likewise.
4093 (disable_randomization): Likewise.
4094 (non_stop): Likewise.
4095 (non_stop_1): Likewise.
4096 (observer_mode): Likewise.
4097 (observer_mode_1): Likewise.
4098 (set_observer_mode): Update.
4099 (sched_multi): Change to bool.
4100 * infrun.h (debug_displaced): Likewise.
4101 (sched_multi): Likewise.
4102 (step_stop_if_no_debug): Likewise.
4103 (non_stop): Likewise.
4104 (disable_randomization): Likewise.
4105 * linux-tdep.c (use_coredump_filter): Likewise.
4106 (dump_excluded_mappings): Likewise.
4107 * linux-thread-db.c (auto_load_thread_db): Likewise.
4108 (check_thread_db_on_load): Likewise.
4109 * main.c (captured_main_1): Update.
4110 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4111 xx2_opt, boolean_opt>: Change to bool.
4112 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4113 * maint.c (maintenance_profile_p): Likewise.
4114 (per_command_time): Likewise.
4115 (per_command_space): Likewise.
4116 (per_command_symtab): Likewise.
4117 * memattr.c (inaccessible_by_default): Likewise.
4118 * mi/mi-main.c (mi_async): Likewise.
4119 (mi_async_1): Likewise.
4120 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4121 * nat/fork-inferior.h (startup_with_shell): Likewise.
4122 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4123 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4124 * nios2-tdep.c (nios2_debug): Likewise.
4125 * or1k-tdep.c (or1k_debug): Likewise.
4126 * parse.c (parser_debug): Likewise.
4127 * parser-defs.h (parser_debug): Likewise.
4128 * printcmd.c (print_symbol_filename): Likewise.
4129 * proc-api.c (procfs_trace): Likewise.
4130 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4131 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4132 (set_parameter_value): Update.
4133 (add_setshow_generic): Update.
4134 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4135 to bool*.
4136 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4137 int*.
4138 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4139 * record-btrace.c (record_btrace_target::store_registers): Update.
4140 * record-full.c (record_full_memory_query): Change to bool.
4141 (record_full_stop_at_limit): Likewise.
4142 * record-full.h (record_full_memory_query): Likewise.
4143 * remote-notif.c (notif_debug): Likewise.
4144 * remote-notif.h (notif_debug): Likewise.
4145 * remote.c (use_range_stepping): Likewise.
4146 (interrupt_on_connect): Likewise.
4147 (remote_break): Likewise.
4148 * ser-tcp.c (tcp_auto_retry): Likewise.
4149 * ser-unix.c (serial_hwflow): Likewise.
4150 * skip.c (debug_skip): Likewise.
4151 * solib-aix.c (solib_aix_debug): Likewise.
4152 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4153 (spu_auto_flush_cache_p): Likewise.
4154 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4155 Likewise.
4156 (struct info_print_options) <quiet>: Likewise.
4157 * symfile-debug.c (debug_symfile): Likewise.
4158 * symfile.c (auto_solib_add): Likewise.
4159 (separate_debug_file_debug): Likewise.
4160 * symfile.h (auto_solib_add): Likewise.
4161 (separate_debug_file_debug): Likewise.
4162 * symtab.c (basenames_may_differ): Likewise.
4163 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4164 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4165 (struct info_types_options) <quiet>: Likewise.
4166 * symtab.h (demangle): Likewise.
4167 (basenames_may_differ): Likewise.
4168 * target-dcache.c (stack_cache_enabled_1): Likewise.
4169 (code_cache_enabled_1): Likewise.
4170 * target.c (trust_readonly): Likewise.
4171 (may_write_registers): Likewise.
4172 (may_write_memory): Likewise.
4173 (may_insert_breakpoints): Likewise.
4174 (may_insert_tracepoints): Likewise.
4175 (may_insert_fast_tracepoints): Likewise.
4176 (may_stop): Likewise.
4177 (auto_connect_native_target): Likewise.
4178 (target_stop_and_wait): Update.
4179 (target_async_permitted): Change to bool.
4180 (target_async_permitted_1): Likewise.
4181 (may_write_registers_1): Likewise.
4182 (may_write_memory_1): Likewise.
4183 (may_insert_breakpoints_1): Likewise.
4184 (may_insert_tracepoints_1): Likewise.
4185 (may_insert_fast_tracepoints_1): Likewise.
4186 (may_stop_1): Likewise.
4187 * target.h (target_async_permitted): Likewise.
4188 (may_write_registers): Likewise.
4189 (may_write_memory): Likewise.
4190 (may_insert_breakpoints): Likewise.
4191 (may_insert_tracepoints): Likewise.
4192 (may_insert_fast_tracepoints): Likewise.
4193 (may_stop): Likewise.
4194 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4195 (make_thread_apply_all_options_def_group): Change argument from int*
4196 to bool*.
4197 (thread_apply_all_command): Update.
4198 (print_thread_events): Change to bool.
4199 * top.c (confirm): Likewise.
4200 (command_editing_p): Likewise.
4201 (history_expansion_p): Likewise.
4202 (write_history_p): Likewise.
4203 (info_verbose): Likewise.
4204 * top.h (confirm): Likewise.
4205 (history_expansion_p): Likewise.
4206 * tracepoint.c (disconnected_tracing): Likewise.
4207 (circular_trace_buffer): Likewise.
4208 * typeprint.c (print_methods): Likewise.
4209 (print_typedefs): Likewise.
4210 * utils.c (debug_timestamp): Likewise.
4211 (sevenbit_strings): Likewise.
4212 (pagination_enabled): Likewise.
4213 * utils.h (sevenbit_strings): Likewise.
4214 (pagination_enabled): Likewise.
4215 * valops.c (overload_resolution): Likewise.
4216 * valprint.h (struct value_print_options) <prettyformat_arrays,
4217 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4218 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4219 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4220 Likewise.
4221 * windows-nat.c (new_console): Likewise.
4222 (cygwin_exceptions): Likewise.
4223 (new_group): Likewise.
4224 (debug_exec): Likewise.
4225 (debug_events): Likewise.
4226 (debug_memory): Likewise.
4227 (debug_exceptions): Likewise.
4228 (useshell): Likewise.
4229 * windows-tdep.c (maint_display_all_tib): Likewise.
4230 * xml-support.c (debug_xml): Likewise.
4231
4232 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4233
4234 * source.c (prepare_path_for_appending): New function.
4235 (openp): Make use of new function.
4236 (find_and_open_source): Search for the compilation directory and
4237 source file as a relative path beneath the directory search path.
4238
4239 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4240
4241 * source-cache.c (source_cache::get_line_charpos): Catch
4242 exceptions and return false, this matches the behaviour documented
4243 in the header file.
4244
4245 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4246
4247 * ada-tasks.c (info_task): Remove quoting of the task's name.
4248
4249 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4250
4251 * symfile.c (auto_solib_add): Replace comment with a reference
4252 to the header file.
4253
4254 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4255
4256 * NEWS: Mention that gdb can now be compiled with Python 3
4257 on Windows.
4258
4259 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4260
4261 * maint.c (maint_print_section_data::maint_print_section_data):
4262 Force use of 'float log10 (float)' by casting the argument to
4263 float.
4264
4265 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4266
4267 * maint.c: Add 'cmath' include.
4268 (struct maint_print_section_data): New structure.
4269 (print_section_index): New function.
4270 (print_bfd_section_info): Add header comment, small whitespace
4271 cleanup, and update to call new print_section_index function.
4272 (print_objfile_section_info): Likewise.
4273 (maint_obj_section_from_bfd_section): New function.
4274 (print_bfd_section_info_maybe_relocated): New function.
4275 (maintenance_info_sections): Add header comment, always use
4276 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4277
4278 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4279
4280 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4281 inner scope, add check that the objfile has psymtabs before
4282 checking psymtabs_addrmap.
4283 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4284
4285 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4286
4287 * NEWS: Announce that Ada task names are now shown at more places,
4288 and between quotes (except in info task output).
4289 * gdb/ada-tasks.c (task_to_str): New function.
4290 (display_current_task_id): Call task_to_str.
4291 (task_command_1): Likewise.
4292 (print_ada_task_info): In non-mi mode, Properly align headers and data
4293 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4294
4295 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4296
4297 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4298 prstatus.pr_lwp.pr_info instead of making it up.
4299
4300 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4301
4302 * auto-load.c (auto_load_expand_dir_vars): Update.
4303 * defs.h (gdb_datadir): Change to std::string.
4304 (python_libdir): Likewise.
4305 (relocate_gdb_directory): Change return type to std::string.
4306 * guile/guile.c (gdbscm_data_directory): Update.
4307 (initialize_scheme_side): Update.
4308 * jit.c (jit_reader_dir): Change to std::string.
4309 (jit_reader_load_command): Update.
4310 * main.c (gdb_datadir): Change to std::string.
4311 (python_libdir): Likewise.
4312 (set_gdb_data_directory): Update.
4313 (relocate_path): Change to return std::string.
4314 (relocate_gdb_directory): Change to return std::string.
4315 (relocate_gdbinit_path_maybe_in_datadir): Update.
4316 (captured_main_1): Update.
4317 * python/python.c (do_start_initialization): Update.
4318 * top.c (show_gdb_datadir): Update.
4319 * xml-syscall.c (xml_init_syscalls_info): Update.
4320 (init_syscalls_info): Update.
4321
4322 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4323
4324 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4325 out of get_init_files.
4326 (get_init_files): Update.
4327
4328 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4329
4330 * main.c (get_init_files): Change to use std::string.
4331 (captured_main_1): Update.
4332 (print_gdb_help): Update.
4333
4334 2019-09-11 Ali Tamur <tamur@google.com>
4335
4336 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4337 implementation.
4338
4339 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4340
4341 * dbxread.c (read_dbx_symtab): Update.
4342 * dwarf2read.c (load_partial_dies): Update.
4343 * mdebugread.c (parse_partial_symbols): Update.
4344 (handle_psymbol_enumerators): Update.
4345 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4346 * psymtab.c (add_psymbol_to_bcache): Likewise.
4347 (add_psymbol_to_list): Likewise.
4348 * symtab.c (symbol_set_names): Likewise.
4349 * symtab.h (symbol_set_names): Likewise.
4350 * xcoffread.c (scan_xcoff_symtab): Update.
4351
4352 2019-09-11 Tom Tromey <tom@tromey.com>
4353
4354 * symfile-mem.c (symbol_file_add_from_memory): Use
4355 bfd_set_filename.
4356 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4357 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4358
4359 2019-09-10 Tom Tromey <tromey@adacore.com>
4360
4361 * dwarf-index-write.c (write_psymbols): Extend error message.
4362 (debug_names::insert): Add Ada code.
4363 (debug_names::write_psymbols): Remove Ada check.
4364 (debug_names) <m_string_obstack>: New member.
4365 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4366 (gdb_index_symbol_name_matcher::matches): Remove.
4367 (mapped_index_base::find_name_components_bounds): Add "lang"
4368 parameter.
4369 (mapped_index_base::build_name_components): Also split names
4370 according to Ada syntax.
4371 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4372 type of "match_callback".
4373 (check_match, check_find_bounds_finds)
4374 (dw2_expand_symtabs_matching): Update.
4375 (dw2_debug_names_iterator): Add new constructor.
4376 (dw2_debug_names_map_matching_symbols): New function.
4377 (dw2_debug_names_expand_symtabs_matching): Update.
4378 (dwarf2_debug_names_functions): Use
4379 dw2_debug_names_map_matching_symbols.
4380
4381 2019-09-10 Tom Tromey <tromey@adacore.com>
4382
4383 * dwarf2read.c (dw2_get_file_names_reader): Add the
4384 CU's file name to the results.
4385
4386 2019-09-10 Tom Tromey <tromey@adacore.com>
4387
4388 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4389 map_matching_symbols. Update.
4390 * dwarf2read.c (dw2_map_matching_symbols): Update.
4391 * psymtab.c (match_partial_symbol): Change type; update.
4392 (psym_map_matching_symbols): Likewise.
4393 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4394 type; update.
4395 * symfile.h (struct quick_symbol_functions)
4396 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4397 Remove "match".
4398
4399 2019-09-10 Tom Tromey <tromey@adacore.com>
4400
4401 * psymtab.c (map_block): Remove.
4402 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4403 * symtab.c (iterate_over_symbols_terminated): New function.
4404 * symtab.c (iterate_over_symbols_terminated): Declare.
4405
4406 2019-09-10 Tom Tromey <tromey@adacore.com>
4407
4408 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4409 * language.h (struct language_defn) <la_iterate_over_symbols>:
4410 Return bool.
4411 * symtab.c (iterate_over_symbols): Return bool.
4412 * symtab.h (iterate_over_symbols): Return bool.
4413
4414 2019-09-10 Tom Tromey <tromey@adacore.com>
4415
4416 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4417 (add_nonlocal_symbols): Update.
4418 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4419 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4420 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4421 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4422 Change type of "callback". Remove "data".
4423
4424
4425 2019-09-09 Ali Tamur <tamur@google.com>
4426
4427 * dwarf2read.c (comp_unit_head): Update comment.
4428 (dwarf2_dwo_name): New function declaration.
4429 (dwarf_unit_type_name): New function declaration.
4430 (read_comp_unit_head): Add support for new compilation units,
4431 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4432 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4433 (currently named as "signature") in their header. Also clarify error
4434 messages.
4435 (lookup_dwo_id): New function. Returns the dwo id of the given
4436 compile unit.
4437 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4438 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4439 functions.
4440 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4441 (dwarf2_dwo_name): Get the dwo name if present.
4442 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4443 purposes.
4444
4445 2019-09-09 Tom Tromey <tom@tromey.com>
4446
4447 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4448
4449 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4450
4451 * python/python.c (do_start_initialization): Make progname_copy static,
4452 to avoid a leak report.
4453
4454 2019-09-08 Tom Tromey <tom@tromey.com>
4455
4456 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4457
4458 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4459
4460 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4461 Change type to gdb::optional<block_enum>.
4462 (dw2_symtab_iter_init): Change block_index parameter type
4463 to gdb::optional<block_enum>.
4464 (dw2_lookup_symbol): Change block_index parameter
4465 type to block_enum.c
4466 (dw2_debug_names_lookup_symbol): Likewise.
4467 * psymtab.c (psym_lookup_symbol): Likewise.
4468 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4469 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4470 Likewise.
4471
4472 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4473
4474 * defs.h (relocate_gdb_directory): Change int to bool in
4475 signature and rename flag to relocatable.
4476 * main.c (relocate_path): Likewise.
4477 (relocate_gdb_directory): Likewise.
4478
4479 2019-09-06 Alan Modra <amodra@gmail.com>
4480
4481 * coffread.c (coff_symfile_read): Constify filename variable.
4482 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4483 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4484 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4485 * solib.c (reload_shared_libraries_1): Likewise.
4486 * symfile.c (reread_symbols): Likewise.
4487 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4488 * solib-darwin.c (darwin_bfd_open): Likewise.
4489 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4490
4491 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4492
4493 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4494 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4495
4496 2019-09-03 Tom Tromey <tromey@adacore.com>
4497
4498 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4499 types.
4500 (has_negatives): Unbias a range type bound.
4501 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4502 * gdbtypes.c (operator==): Handle new field.
4503 (create_range_type): Add "bias" parameter.
4504 (create_static_range_type, resolve_dynamic_range): Update.
4505 * gdbtypes.h (struct range_bounds) <bias>: New member.
4506 (create_range_type): Add bias parameter.
4507 * printcmd.c (print_scalar_formatted): Unbias range types.
4508 * value.c (unpack_long): Unbias range types.
4509 (pack_long): Bias range types.
4510
4511 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4512
4513 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4514 probe arguments.
4515
4516 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4517
4518 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4519 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4520 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4521 (compile_probe_arg): Likewise.
4522 * probe.h (get_argument_count): Likewise.
4523 * solib-svr4.c (solib_event_probe_action): Likewise.
4524 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4525
4526 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4527
4528 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4529 code to here...
4530 (svr4_create_solib_event_breakpoints): ...from here.
4531
4532 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4533
4534 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4535 suffix from warning message.
4536
4537 2019-08-30 Tom Tromey <tom@tromey.com>
4538
4539 * tui/tui-winsource.h (struct tui_source_window_base)
4540 <refresh_all>: Don't declare.
4541 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4542 Remove.
4543 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4544 tui_show_locator_content.
4545 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4546 declare.
4547 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4548 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4549 declare.
4550
4551 2019-08-30 Tom Tromey <tom@tromey.com>
4552
4553 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4554
4555 2019-08-30 Tom Tromey <tom@tromey.com>
4556
4557 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4558 Remove unnecessary forward declarations.
4559
4560 2019-08-30 Tom Tromey <tom@tromey.com>
4561
4562 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4563 rerender.
4564 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4565 tui_show_locator_content.
4566
4567 2019-08-30 Tom Tromey <tom@tromey.com>
4568
4569 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4570 (tui_locator_window::rerender): Rewrite using body of previous
4571 tui_show_locator_content.
4572
4573 2019-08-30 Tom Tromey <tom@tromey.com>
4574
4575 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4576 set_locator_fullname>: New methods.
4577 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4578 Rename from tui_set_locator_fullname.
4579 (tui_locator_window::set_locator_info): Rename from
4580 tui_set_locator_info. Return bool.
4581 (tui_update_locator_fullname, tui_show_frame_info): Update.
4582
4583 2019-08-30 Tom Tromey <tom@tromey.com>
4584
4585 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4586
4587 2019-08-30 Tom Tromey <tom@tromey.com>
4588
4589 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4590 call touchwin.
4591
4592 2019-08-30 Tom Tromey <tom@tromey.com>
4593
4594 * tui/tui-wingeneral.c (box_win): Assume win_info and
4595 win_info->handle cannot be NULL.
4596
4597 2019-08-30 Tom Tromey <tom@tromey.com>
4598
4599 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4600 refresh_window>: Declare.
4601 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4602 resize.
4603 (tui_data_item_window::rerender): Rename from
4604 tui_display_register.
4605 (tui_data_item_window::refresh_window): New method.
4606 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4607 no-op.
4608
4609 2019-08-30 Tom Tromey <tom@tromey.com>
4610
4611 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4612 regs_column_count, current_group>: Move later. Now private.
4613 <get_current_group>: New method.
4614 * tui/tui-regs.c (tui_reg_command): Update.
4615 * tui/tui-layout.c (tui_set_layout): Update.
4616
4617 2019-08-30 Tom Tromey <tom@tromey.com>
4618
4619 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4620 (tui_data_window::rerender): Don't call
4621 check_and_display_highlight_if_needed.
4622 (tui_data_window::refresh_all): Remove call to
4623 erase_data_content.
4624
4625 2019-08-30 Tom Tromey <tom@tromey.com>
4626
4627 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4628 (tui_data_window::display_registers_from)
4629 (tui_data_window::display_reg_element_at_line)
4630 (tui_data_window::display_registers_from_line): Remove checks of
4631 "empty".
4632
4633 2019-08-30 Tom Tromey <tom@tromey.com>
4634
4635 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4636 Don't declare.
4637 * tui/tui-regs.c (tui_data_window::show_registers): Call
4638 rerender.
4639 (tui_data_window::rerender): Rename from display_all_data.
4640 (tui_data_window::rerender): Remove old implementation.
4641
4642 2019-08-30 Tom Tromey <tom@tromey.com>
4643
4644 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4645 text.
4646 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4647
4648 2019-08-29 Bernhard Wodok <barto@gmx.net>
4649 Sergio Durigan Junior <sergiodj@redhat.com>
4650
4651 PR win32/24284
4652 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4653
4654 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4655
4656 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4657 when searching for types.
4658
4659 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4660
4661 * f-lang.c (f_language_defn): Use f_print_typedef.
4662 * f-lang.h (f_print_typedef): Declare.
4663 * f-typeprint.c (f_print_typedef): Define.
4664
4665 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4666
4667 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4668
4669 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4670
4671 * cli/cli-utils.c (info_print_options_defs): Delete.
4672 (make_info_print_options_def_group): Delete.
4673 (extract_info_print_options): Delete.
4674 (info_print_command_completer): Delete.
4675 (info_print_args_help): Add extra parameter, and optionally
4676 include text about -n flag.
4677 * cli/cli-utils.h (struct info_print_options): Delete.
4678 (extract_info_print_options): Delete declaration.
4679 (info_print_command_completer): Delete declaration.
4680 (info_print_args_help): Add extra parameter, extend header
4681 comment.
4682 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4683 search_symbols.
4684 * stack.c (struct info_print_options): New type.
4685 (info_print_options_defs): New file scoped variable.
4686 (make_info_print_options_def_group): New static function.
4687 (info_print_command_completer): New static function.
4688 (info_locals_command): Update to use new local functions.
4689 (info_args_command): Likewise.
4690 (_initialize_stack): Add extra parameter to calls to
4691 info_print_args_help.
4692 * symtab.c (search_symbols): Add extra parameter, use this to
4693 possibly excluse non-debug symbols.
4694 (symtab_symbol_info): Add extra parameter, which is passed on to
4695 search_symbols.
4696 (struct info_print_options): New type.
4697 (info_print_options_defs): New file scoped variable.
4698 (make_info_print_options_def_group): New static function.
4699 (info_print_command_completer): New static function.
4700 (info_variables_command): Update to use local functions, and pass
4701 extra parameter through to symtab_symbol_info.
4702 (info_functions_command): Likewise.
4703 (info_types_command): Pass additional argument through to
4704 symtab_symbol_info.
4705 (rbreak_command): Pass extra argument to search_symbols.
4706 (_initialize_symtab): Add extra arguments for calls to
4707 info_print_args_help, and update help text for 'info variables',
4708 'whereis', and 'info functions' commands.
4709 * symtab.h (search_symbols): Add extra argument to declaration.
4710 * NEWS: Mention new flags.
4711
4712 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4713
4714 * symtab.c (lookup_static_symbol): Call the new function (and move
4715 it down to be next to lookup_global_symbol).
4716 (struct global_sym_lookup_data): Add block_enum member and rename to...
4717 (struct global_or_static_sym_lookup_data): ...this.
4718 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4719 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4720 (lookup_symbol_global_or_static_iterator_cb): ...this.
4721 (lookup_global_or_static_symbol): New function.
4722 (lookup_global_symbol): Call new function.
4723
4724 2019-08-26 Tom de Vries <tdevries@suse.de>
4725
4726 PR c++/24852
4727 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4728 when pc_probe.prob == NULL.
4729
4730 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4731
4732 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4733 variable symbol_linkage to symbol_linkage_.
4734
4735 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4738 represent whether the symbol is static, dynamic, or we don't
4739 know.
4740
4741 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4742
4743 * gdb/rx-tdep.c (rx_register_names): New.
4744 (rx_register_name): Delete.
4745 (rx_psw_type): Delete.
4746 (rx_fpsw_type): Delete.
4747 (rx_register_type): Delete.
4748 (rx_gdbarch_init): Convert target-descriptions.
4749 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4750 * gdb/features/Makefile: Add rx.xml.
4751 * gdb/features/rx.xml: New.
4752 * gdb/features/rx.c: Generated.
4753 * gdb/NEWS: Mention target description support.
4754
4755 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4756
4757 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4758 *slot_ptr.
4759
4760 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4761
4762 * configure.ac: Don't check for 'dlfcn.h' (moved to
4763 gdbsupport/common.m4).
4764 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4765 'gdbsupport/'.
4766 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4767 * compile/compile-c-support.c: Include
4768 'gdbsupport/gdb-dlfcn.h'.
4769 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4770 * gdb-dlfcn.c: Move to...
4771 * gdbsupport/gdb-dlfcn.c: ... here.
4772 * gdb-dlfcn.h: Move to...
4773 * gdbsupport/gdb-dlfcn.h: ... here.
4774
4775 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4776
4777 * nios2-tdep.c (struct reg_value): Improve comments. Make
4778 the offset field signed.
4779
4780 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4781
4782 * python/lib/gdb/__init__.py (_execute_file): New function.
4783 * python/python.c (python_run_simple_file): Call gdb._execute_file
4784 on Windows.
4785
4786 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4787
4788 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4789 all uses as this was never set to anything but a zero value.
4790
4791 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4792
4793 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4794
4795 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4796
4797 * tui/tui-data.h (tui_gen_win_info): Add an =default
4798 move constructor, required by some GCC versions.
4799
4800 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4801
4802 * go32-nat.c (go32_sysinfo): Add hygon_p.
4803
4804 2019-08-20 Tom Tromey <tom@tromey.com>
4805
4806 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4807 line_from_reg_element_no, first_reg_element_no_inline,
4808 display_all_data, delete_data_content_windows,
4809 erase_data_content>: Now private.
4810
4811 2019-08-20 Tom Tromey <tom@tromey.com>
4812
4813 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4814 (tui_unhighlight_win, tui_highlight_win)
4815 (tui_win_info::make_window): Update.
4816 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4817
4818 2019-08-20 Tom Tromey <tom@tromey.com>
4819
4820 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4821 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4822 (MAX_PID_WIDTH): Move to tui-stack.c.
4823 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4824 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4825 (MAX_PID_WIDTH): Move from tui-data.h.
4826
4827 2019-08-20 Tom Tromey <tom@tromey.com>
4828
4829 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4830 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4831 (box_win): Update.
4832 (tui_gen_win_info::make_window): Rename from tui_make_window.
4833 (tui_win_info::make_window): New method.
4834 (tui_gen_win_info::make_visible): Update.
4835 * tui/tui-source.c (tui_source_window::set_contents): Update.
4836 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4837 (tui_data_window::display_registers_from): Update.
4838 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4839 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4840 Declare.
4841 <can_box>: Remove.
4842 <title>: Remove.
4843 (struct tui_win_info) <make_window>: Declare.
4844 <can_box>: Now virtual.
4845 <title>: New member.
4846 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4847 * tui/tui-command.c (tui_cmd_window::resize): Update.
4848
4849 2019-08-20 Tom Tromey <tom@tromey.com>
4850
4851 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4852 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4853 (tui_data_window::check_register_values): Update.
4854
4855 2019-08-20 Tom Tromey <tom@tromey.com>
4856
4857 * tui/tui-regs.h (struct tui_data_window): Use
4858 DISABLE_COPY_AND_ASSIGN.
4859 <regs_content>: Change type, removing unique_ptr.
4860 <tui_data_window>: Add move constructor.
4861 * tui/tui-regs.c (tui_data_window::show_registers)
4862 (tui_data_window::show_register_group)
4863 (tui_data_window::display_registers_from)
4864 (tui_data_window::display_registers_from)
4865 (tui_data_window::first_data_item_displayed)
4866 (tui_data_window::delete_data_content_windows)
4867 (tui_data_window::rerender, tui_data_window::refresh_window)
4868 (tui_data_window::check_register_values): Update.
4869
4870 2019-08-20 Tom Tromey <tom@tromey.com>
4871
4872 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4873 show_register_group>: Declare.
4874 (tui_show_register_group): Don't declare.
4875 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4876 tui_show_registers.
4877 (tui_data_window::show_register_group): Rename from
4878 tui_show_register_group.
4879 (tui_data_window::check_register_values, tui_reg_command):
4880 Update.
4881 * tui/tui-layout.c (tui_set_layout): Update.
4882
4883 2019-08-20 Tom Tromey <tom@tromey.com>
4884
4885 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4886 Declare.
4887 (tui_check_register_values): Don't declare.
4888 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4889 from tui_check_register_values.
4890 * tui/tui-hooks.c (tui_register_changed): Update.
4891
4892 2019-08-20 Tom Tromey <tom@tromey.com>
4893
4894 * tui/tui-regs.c (tui_reg_layout): Move later.
4895 (tui_show_registers): Don't enable TUI mode or change layout.
4896
4897 2019-08-20 Tom Tromey <tom@tromey.com>
4898
4899 * tui/tui-regs.h (struct tui_data_item_window)
4900 <~tui_data_item_window>: Remove.
4901 <content>: Now a unique_xmalloc_ptr.
4902 * tui/tui-regs.c (tui_register_format): Return a
4903 unique_xmalloc_ptr.
4904 (tui_get_register): Update.
4905 (~tui_data_item_window): Remove.
4906 (tui_data_window::display_registers_from, tui_display_register):
4907 Update.
4908 * tui/tui-io.h (tui_expand_tabs): Update.
4909 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4910 Remove "col" parameter.
4911
4912 2019-08-20 Tom Tromey <tom@tromey.com>
4913
4914 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4915 field.
4916 * tui/tui-regs.c (~tui_data_item_window): Update.
4917
4918 2019-08-20 Tom Tromey <tom@tromey.com>
4919
4920 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4921 earlier.
4922
4923 2019-08-20 Tom Tromey <tom@tromey.com>
4924
4925 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4926
4927 2019-08-20 Tom Tromey <tom@tromey.com>
4928
4929 * tui/tui-source.h (struct tui_source_window): Update.
4930 * tui/tui-regs.c (tui_show_registers): Update.
4931 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4932 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4933 (NO_REGS_STRING): Remove defines.
4934
4935 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4936
4937 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4938 unnecessary thread walk if remote doesn't support the packet.
4939
4940 2019-08-19 Tom Tromey <tromey@adacore.com>
4941
4942 * python/py-value.c (value_has_field): Fix indentation.
4943
4944 2019-08-19 Tom Tromey <tromey@adacore.com>
4945
4946 * printcmd.c (do_one_display, info_display_command): Update.
4947 * block.h (contained_in): Return bool. Add allow_nested
4948 parameter.
4949 * block.c (contained_in): Return bool. Add allow_nested
4950 parameter.
4951
4952 2019-08-19 Tom Tromey <tom@tromey.com>
4953
4954 * configure: Rebuild.
4955 * configure.ac: Disallow the combination of -static-libstdc++ and
4956 source highlight.
4957 * source-cache.c (get_language_name): Handle rust.
4958 (source_cache::get_source_lines): Ignore highlighting exceptions.
4959
4960 2019-08-16 Tom Tromey <tom@tromey.com>
4961
4962 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4963 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4964 (struct tui_source_window_base) <make_visible, refresh_window,
4965 resize>: Remove methods.
4966 <execution_info>: Remove field.
4967 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4968 (tui_show_source_line, tui_source_window_base)
4969 (~tui_source_window_base): Update.
4970 (tui_source_window_base::resize)
4971 (tui_source_window_base::make_visible)
4972 (tui_source_window_base::refresh_window): Remove.
4973 (tui_source_window_base::update_exec_info): Update.
4974 * tui/tui-source.c (tui_source_window::set_contents): Update.
4975 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4976
4977 2019-08-16 Tom Tromey <tom@tromey.com>
4978
4979 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4980 deprecated_query_hook.
4981
4982 2019-08-16 Tom Tromey <tom@tromey.com>
4983
4984 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4985 (tui_update_source_windows_with_line): Update.
4986 * tui/tui-source.h (struct tui_source_window)
4987 <show_symtab_source>: Declare.
4988 (tui_show_symtab_source): Don't declare.
4989 * tui/tui-source.c (tui_show_symtab_source): Rename from
4990 tui_show_symtab_source.
4991
4992 2019-08-16 Tom Tromey <tom@tromey.com>
4993
4994 * tui/tui-winsource.h (struct tui_source_window_base)
4995 <set_contents>: Declare.
4996 * tui/tui-winsource.c
4997 (tui_source_window_base::update_source_window_as_is): Update.
4998 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4999 Declare.
5000 (tui_set_source_content): Don't declare.
5001 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5002 tui_set_source_content.
5003 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5004 Declare.
5005 (tui_set_disassem_content): Don't declare.
5006 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5007 tui_set_disassem_content.
5008
5009 2019-08-16 Tom Tromey <tom@tromey.com>
5010
5011 * tui/tui-winsource.h (struct tui_source_window_base)
5012 <update_breakpoint_info>: Declare.
5013 (tui_update_breakpoint_info): Don't declare.
5014 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5015 (tui_update_all_breakpoint_info): Update.
5016 (tui_source_window_base::update_breakpoint_info): Rename from
5017 tui_update_breakpoint_info.
5018 (tui_source_window_base::update_exec_info): Update.
5019
5020 2019-08-16 Tom Tromey <tom@tromey.com>
5021
5022 * tui/tui-winsource.h (struct tui_source_window_base)
5023 <update_source_window>: Declare.
5024 (tui_update_source_window): Don't declare.
5025 * tui/tui-winsource.c
5026 (tui_source_window_base::update_source_window): Rename from
5027 tui_update_source_window.
5028 (tui_source_window_base::rerender): Update.
5029 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5030 * tui/tui-disasm.c (tui_show_disassem)
5031 (tui_show_disassem_and_update_source)
5032 (tui_disasm_window::maybe_update): Update.
5033
5034 2019-08-16 Tom Tromey <tom@tromey.com>
5035
5036 * tui/tui-winsource.h (struct tui_source_window_base)
5037 <update_source_window_as_is>: Declare.
5038 (tui_update_source_window_as_is): Don't declare.
5039 * tui/tui-winsource.c (tui_update_source_window): Update
5040 (tui_source_window_base::update_source_window_as_is): Rename from
5041 tui_update_source_window_as_is.
5042 (tui_source_window_base::refill): Update.
5043 * tui/tui-source.c (tui_show_symtab_source): Update.
5044 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5045 Update.
5046
5047 2019-08-16 Tom Tromey <tom@tromey.com>
5048
5049 * tui/tui-winsource.h (tui_update_source_window)
5050 (tui_update_source_window_as_is): Remove "noerror" parameter.
5051 * tui/tui-winsource.c (tui_update_source_window)
5052 (tui_update_source_window_as_is): Remove "noerror" parameter.
5053 (tui_update_source_windows_with_addr)
5054 (tui_update_source_windows_with_line)
5055 (tui_source_window_base::rerender)
5056 (tui_source_window_base::refill): Update.
5057 * tui/tui-source.h (tui_set_source_content)
5058 (tui_show_symtab_source): Remove "noerror" parameter.
5059 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5060 parameter.
5061 (tui_show_symtab_source): Likewise.
5062 (tui_source_window::maybe_update): Update.
5063 * tui/tui-disasm.c (tui_show_disassem)
5064 (tui_show_disassem_and_update_source)
5065 (tui_disasm_window::do_scroll_vertical)
5066 (tui_disasm_window::maybe_update): Update.
5067
5068 2019-08-16 Tom Tromey <tom@tromey.com>
5069
5070 * tui/tui.c (tui_is_window_visible): Update.
5071 * tui/tui-wingeneral.c (tui_make_window)
5072 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5073 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5074 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5075 (tui_set_win_height_command, parse_scrolling_args): Update.
5076 * tui/tui-source.c (tui_source_window::style_changed): Update.
5077 * tui/tui-regs.c (tui_show_registers)
5078 (tui_data_window::first_data_item_displayed)
5079 (tui_data_window::delete_data_content_windows)
5080 (tui_check_register_values, tui_reg_command): Update.
5081 * tui/tui-disasm.c (tui_show_disassem): Update.
5082 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5083 method.
5084 <is_visible>: Remove field.
5085 * tui/tui-data.c (tui_next_win, tui_prev_win)
5086 (tui_delete_invisible_windows): Update.
5087
5088 2019-08-16 Tom Tromey <tom@tromey.com>
5089
5090 * tui/tui-winsource.h (struct tui_source_window_base)
5091 <m_has_locator>: Remove.
5092 * tui/tui-layout.c (show_source_disasm_command, show_data)
5093 (show_source_or_disasm_and_command): Update.
5094
5095 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5096
5097 * NEWS (Other MI changes): New subsection.
5098 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5099 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5100 * arch-utils.c (default_get_pc_address_flags): New function.
5101 * arch-utils.h (default_get_pc_address_flags): New declaration.
5102 * gdbarch.sh: Add get_pc_address_flags.
5103 * gdbarch.c: Regenerate.
5104 * gdbarch.h: Likewise.
5105 * stack.c (print_pc): New function.
5106 (print_frame_info) (print_frame): Call print_pc.
5107
5108 2019-08-16 Tom de Vries <tdevries@suse.de>
5109
5110 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5111 print_objfile_section_info.
5112
5113 2019-08-15 Tom Tromey <tom@tromey.com>
5114
5115 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5116 calling update_cmdwin_start_line.
5117 * tui/tui-winsource.h (struct tui_source_window_base)
5118 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5119 <rerender>: Declare.
5120 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5121 Call rerender.
5122 (tui_source_window_base::set_new_height): Remove.
5123 (tui_source_window_base::rerender): Rename from
5124 do_make_visible_with_new_height.
5125 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5126 resize method.
5127 (tui_win_info::make_invisible_and_set_new_height)
5128 (tui_win_info::make_visible_with_new_height): Remove.
5129 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5130 Declare.
5131 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5132 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5133 do_make_visible_with_new_height>: Don't declare.
5134 <rerender>: Declare.
5135 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5136 set_new_height.
5137 (tui_data_window::do_make_visible_with_new_height): Remove.
5138 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5139 call tui_show_locator_content.
5140 (tui_gen_win_info::resize): Call rerender.
5141 (show_source_or_disasm_and_command): Don't call
5142 tui_show_locator_content.
5143 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5144 method.
5145 (struct tui_win_info) <rerender>: Declare.
5146 <set_new_height, make_invisible_and_set_new_height,
5147 make_visible_with_new_height>: Don't declare.
5148 * tui/tui-data.c (tui_win_list::rerender): New method.
5149 * tui/tui-command.h (struct tui_cmd_window)
5150 <do_make_visible_with_new_height>: Don't declare.
5151 * tui/tui-command.c
5152 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5153
5154 2019-08-15 Tom Tromey <tromey@adacore.com>
5155
5156 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5157 * ada-lang.c (ada_enum_name): Likewise.
5158
5159 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5160
5161 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5162 leading underscore.
5163 (GdbOutputErrorFile): Likewise.
5164 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5165 accordingly.
5166 (execute_unwinders): Rename to have a leading underscore.
5167 (auto_load_packages): Likewise.
5168 (global scope): Adjust call to auto_load_packages accordingly.
5169 (GdbSetPythonDirectory): Likewise.
5170 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5171 instead of execute_unwinders.
5172
5173 2019-08-15 Tom Tromey <tom@tromey.com>
5174
5175 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5176 (show_data): Don't change window visibility.
5177 (tui_gen_win_info::resize): Remove special case for command
5178 window. Use wresize, when available.
5179 (show_source_or_disasm_and_command): Don't change window
5180 visibility.
5181 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5182 <make_visible>: New method.
5183 * tui/tui-command.c (tui_cmd_window::resize): New method.
5184
5185 2019-08-15 Tom Tromey <tom@tromey.com>
5186
5187 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5188 (struct tui_source_windows): New.
5189 * tui/tui-winsource.c (tui_display_main): Update.
5190 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5191 (new_height_ok, parse_scrolling_args): Update.
5192 * tui/tui-layout.c (show_layout, show_data): Update.
5193 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5194 (tui_add_to_source_windows): Don't declare.
5195 * tui/tui-data.c (source_windows, tui_source_windows)
5196 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5197
5198 2019-08-15 Tom Tromey <tom@tromey.com>
5199
5200 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5201 Rename from reset.
5202 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5203 * tui/tui-layout.c (show_source_disasm_command, show_data):
5204 Update.
5205 (tui_gen_win_info::resize): Rename.
5206 (show_source_or_disasm_and_command): Update.
5207 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5208 reset.
5209
5210 2019-08-15 Tom Tromey <tom@tromey.com>
5211
5212 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5213 * tui/tui-interp.c (tui_interp::init): Don't call
5214 tui_initialize_static_data.
5215 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5216
5217 2019-08-15 Tom Tromey <tom@tromey.com>
5218
5219 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5220 examine tui_win_list.
5221
5222 2019-08-15 Tom Tromey <tom@tromey.com>
5223
5224 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5225 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5226 tui_clear_source_content.
5227 (tui_clear_source_content): Remove.
5228 (tui_source_window_base::do_erase_source_content): Hoist call to
5229 content.clear().
5230 * tui/tui-stack.c (tui_show_frame_info): Don't call
5231 tui_clear_source_content.
5232
5233 2019-08-15 Tom Tromey <tom@tromey.com>
5234
5235 * tui/tui-winsource.h (struct tui_source_window_base)
5236 <do_erase_source_content>: New method.
5237 <erase_source_content>: New method.
5238 (tui_erase_source_content): Don't declare.
5239 * tui/tui-winsource.c (tui_clear_source_content): Update.
5240 (tui_source_window_base::do_erase_source_content): Rename from
5241 tui_erase_source_content.
5242 (tui_source_window_base::show_source_content): Update.
5243 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5244 * tui/tui-source.h (struct tui_source_window)
5245 <erase_source_content>: New method.
5246 * tui/tui-disasm.h (struct tui_disasm_window)
5247 <erase_source_content>: New method.
5248
5249 2019-08-15 Tom Tromey <tom@tromey.com>
5250
5251 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5252 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5253 constructor.
5254 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5255 * tui/tui-source.c (tui_set_source_content): Update.
5256 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5257
5258 2019-08-15 Tom Tromey <tom@tromey.com>
5259
5260 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5261 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5262 tui-source.c.
5263 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5264 Declare.
5265 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5266 method.
5267 (tui_source_window::maybe_update): Update.
5268
5269 2019-08-15 Tom Tromey <tom@tromey.com>
5270
5271 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5272 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5273 tui-disasm.c.
5274 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5275 Declare.
5276 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5277 method.
5278 (tui_disasm_window::maybe_update): Update.
5279
5280 2019-08-15 Tom Tromey <tom@tromey.com>
5281
5282 * tui/tui-winsource.h (struct tui_source_window_base)
5283 <maybe_update>: Declare.
5284 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5285 method.
5286 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5287 Declare.
5288 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5289 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5290 Declare.
5291 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5292
5293 2019-08-15 Tom Tromey <tom@tromey.com>
5294
5295 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5296
5297 2019-08-15 Tom Tromey <tom@tromey.com>
5298
5299 * tui/tui-wingeneral.c: Include tui-stack.h.
5300 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5301 (struct tui_locator_window): Move from tui-data.h.
5302 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5303 (tui_initialize_static_data): Move from tui-data.c.
5304 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5305 (struct tui_locator_window): Move to tui-stack.c.
5306 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5307 (tui_initialize_static_data): Move to tui-stack.c.
5308
5309 2019-08-15 Tom Tromey <tom@tromey.com>
5310
5311 * tui/tui-layout.c (show_source_disasm_command)
5312 (show_source_or_disasm_and_command): Use make_visible method, not
5313 tui_make_window.
5314 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5315 Remove.
5316
5317 2019-08-15 Tom Tromey <tom@tromey.com>
5318
5319 * tui/tui-wingeneral.h (tui_make_window): Update.
5320 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5321 parameter.
5322 (tui_gen_win_info::make_visible): Update.
5323 * tui/tui-regs.c (tui_data_window::display_registers_from):
5324 Update.
5325 * tui/tui-layout.c (show_source_disasm_command)
5326 (show_source_or_disasm_and_command): Update.
5327 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5328 (enum tui_box): Remove.
5329 (struct tui_win_info) <can_box>: New method.
5330 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5331 method.
5332
5333 2019-08-15 Tom de Vries <tdevries@suse.de>
5334
5335 * linux-nat-trad.c: Include gdbarch.h.
5336
5337 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5338
5339 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5340 register sizes.
5341
5342 2019-08-14 Tom Tromey <tromey@adacore.com>
5343
5344 * darwin-nat.c: Include gdbarch.h.
5345 * darwin-nat-info.c: Include gdbarch.h.
5346
5347 2019-08-13 Tom Tromey <tom@tromey.com>
5348
5349 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5350 Remove.
5351 * tui/tui-data.c (tui_initialize_static_data): Update.
5352
5353 2019-08-13 Tom Tromey <tom@tromey.com>
5354
5355 * tui/tui-winsource.h (struct tui_exec_info_window)
5356 <~tui_exec_info_window, maybe_allocate_content, get_content,
5357 m_content>: Remove.
5358 (struct tui_source_window_base) <set_exec_info_content,
5359 show_exec_info_content>: Don't declare.
5360 * tui/tui-winsource.c
5361 (tui_exec_info_window::maybe_allocate_content): Remove.
5362 (tui_source_window_base::update_exec_info): Rename from
5363 set_exec_info_content.
5364 (tui_source_window_base::show_exec_info_content)
5365 (tui_source_window_base::update_exec_info): Remove.
5366
5367 2019-08-13 Tom Tromey <tom@tromey.com>
5368
5369 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5370 declare.
5371 * tui/tui-winsource.c (tui_update_source_window_as_is)
5372 (tui_update_source_windows_with_addr, tui_erase_source_content):
5373 Update.
5374 (tui_clear_exec_info_content): Remove.
5375
5376 2019-08-13 Tom Tromey <tom@tromey.com>
5377
5378 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5379 declare.
5380 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5381 call tui_erase_exec_info_content.
5382 (tui_clear_exec_info_content): Rename from
5383 tui_erase_exec_info_content.
5384 (tui_clear_exec_info_content): Delete.
5385
5386 2019-08-13 Tom Tromey <tom@tromey.com>
5387
5388 * tui/tui-winsource.h (struct tui_source_window_base)
5389 <show_exec_info_content>: Declare.
5390 (tui_show_exec_info_content): Don't declare.
5391 * tui/tui-winsource.c
5392 (tui_source_window_base::show_exec_info_content): Rename from
5393 tui_show_exec_info_content.
5394 (tui_source_window_base::update_exec_info): Update.
5395
5396 2019-08-13 Tom Tromey <tom@tromey.com>
5397
5398 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5399 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5400 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5401 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5402 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5403 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5404 ... here.
5405
5406 2019-08-13 Tom Tromey <tom@tromey.com>
5407
5408 * tui/tui-winsource.h (struct tui_source_window_base)
5409 <update_exec_info>: Declare.
5410 (tui_update_exec_info): Don't declare.
5411 * tui/tui-winsource.c (tui_update_source_window_as_is)
5412 (tui_source_window_base::refresh_all)
5413 (tui_update_all_breakpoint_info): Update.
5414 (tui_source_window_base::update_exec_info): Rename from
5415 tui_update_exec_info.
5416 * tui/tui-stack.c (tui_show_frame_info): Update.
5417
5418 2019-08-13 Tom Tromey <tom@tromey.com>
5419
5420 * tui/tui-winsource.h (struct tui_source_window_base)
5421 <set_exec_info_content>: Declare.
5422 (tui_set_exec_info_content): Don't declare.
5423 * tui/tui-winsource.c
5424 (tui_source_window_base::set_exec_info_content): Rename from
5425 tui_set_exec_info_content.
5426 (tui_update_exec_info): Update.
5427
5428 2019-08-13 Tom Tromey <tom@tromey.com>
5429
5430 * tui/tui-winsource.h (struct tui_source_window_base)
5431 <show_source_content>: Declare.
5432 (tui_show_source_content): Don't declare.
5433 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5434 (tui_source_window_base::show_source_content): Rename from
5435 tui_show_source_content.
5436 (tui_source_window_base::refresh_all): Update.
5437 * tui/tui-layout.c (show_source_disasm_command)
5438 (show_source_or_disasm_and_command): Update.
5439
5440 2019-08-13 Tom Tromey <tom@tromey.com>
5441
5442 * tui/tui-winsource.c (tui_erase_source_content)
5443 (tui_show_source_content, tui_source_window_base::refresh_all):
5444 Update.
5445 * tui/tui-wingeneral.h
5446 (tui_check_and_display_highlight_if_needed): Don't declare.
5447 * tui/tui-wingeneral.c
5448 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5449 check_and_display_highlight_if_needed.
5450 * tui/tui-win.c (tui_rehighlight_all)
5451 (tui_win_info::make_visible_with_new_height): Update.
5452 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5453 (tui_data_window::erase_data_content)
5454 (tui_data_window::display_all_data): Update.
5455 * tui/tui-data.h (struct tui_win_info)
5456 <check_and_display_highlight_if_needed>: Declare.
5457
5458 2019-08-13 Tom Tromey <tom@tromey.com>
5459
5460 * tui/tui-win.c (tui_resize_all): Call
5461 tui_delete_invisible_windows.
5462 * tui/tui-layout.c (show_layout): Call
5463 tui_delete_invisible_windows.
5464 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5465 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5466
5467 2019-08-13 Tom Tromey <tom@tromey.com>
5468
5469 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5470 tui_add_win_to_layout.
5471
5472 2019-08-13 Tom Tromey <tom@tromey.com>
5473
5474 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5475 * tui/tui-layout.c (tui_default_win_height): Now static.
5476
5477 2019-08-13 Tom Tromey <tom@tromey.com>
5478
5479 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5480 single switch.
5481 (show_source_disasm_command, show_source_or_disasm_and_command):
5482 Don't check current layout.
5483
5484 2019-08-13 Tom Tromey <tom@tromey.com>
5485
5486 * tui/tui-wingeneral.c (make_all_visible): Remove.
5487 (tui_make_all_invisible): Simplify.
5488 * tui/tui-layout.c (tui_make_all_invisible): Move from
5489 tui-wingeneral.c; simplify.
5490 (show_layout): Hoist call to tui_make_all_invisible.
5491 (show_data): Don't call tui_make_all_invisible.
5492
5493 2019-08-13 Tom Tromey <tom@tromey.com>
5494
5495 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5496 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5497
5498 2019-08-13 Tom Tromey <tom@tromey.com>
5499
5500 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5501 tui-data.c.
5502 (show_source_disasm_command, show_data)
5503 (show_source_or_disasm_and_command): Don't use
5504 tui_set_current_layout_to.
5505 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5506 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5507 tui-layout.c.
5508 (tui_set_current_layout_to): Remove.
5509
5510 2019-08-13 Tom Tromey <tom@tromey.com>
5511
5512 * tui/tui-layout.c (tui_set_layout): Update.
5513 * tui/tui-data.h (struct tui_layout_def): Remove.
5514 (tui_layout_def): Don't declare.
5515 * tui/tui-data.c (layout_def): Remove.
5516 (tui_layout_def): Remove.
5517
5518 2019-08-13 Tom Tromey <tom@tromey.com>
5519
5520 * tui/tui-winsource.h (struct tui_source_window_base)
5521 <clear_detail>: No longer "override".
5522 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5523 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5524 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5525 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5526 Remove.
5527 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5528
5529 2019-08-13 Tom Tromey <tromey@adacore.com>
5530
5531 * tracepoint.c: Don't include readline.h or history.h.
5532
5533 2019-08-12 Tom Tromey <tom@tromey.com>
5534
5535 * configure: Rebuild.
5536 * configure.ac: Check for readline 7.
5537 * NEWS: Mention readline 7 requirement.
5538 * README: Update.
5539
5540 2019-08-12 Tom Tromey <tom@tromey.com>
5541
5542 * mingw-hdep.c (gdb_select): Remove readline hack.
5543
5544 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5545
5546 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5547 when the function fails.
5548
5549 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5550
5551 * s390-tdep.c (s390_type_align): New function.
5552 (s390_gdbarch_init): Set it as type_align gdbarch method.
5553
5554 2019-08-09 Tom de Vries <tdevries@suse.de>
5555
5556 PR gdb/24591
5557 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5558 pc_low with relocation offset.
5559
5560 2019-08-07 Tom Tromey <tromey@adacore.com>
5561
5562 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5563 (print_frame_args): Update.
5564 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5565 Update.
5566 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5567 * frame.h (struct frame_arg): Add initializers.
5568 <error>: Now a unique_xmalloc_ptr.
5569
5570 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5571
5572 * NEWS: Expand the Pointer Authentication entry.
5573 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5574 (aarch64_frame_unmask_lr): ... to this.
5575 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5576 Call aarch64_frame_unmask_lr.
5577 * frame.c (struct frame_info): Add "masked" variable.
5578 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5579 (fprint_frame): Check for masked pc.
5580 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5581 declarations.
5582 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5583 * stack.c (print_frame): Check for masked pc.
5584
5585 2019-08-06 Tom Tromey <tom@tromey.com>
5586
5587 * stabsread.c (patch_block_stabs, read_one_struct_field)
5588 (read_enum_type): Use obstack_strndup.
5589 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5590 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5591 * dwarf2read.c (guess_full_die_structure_name)
5592 (anonymous_struct_prefix): Use obstack_strndup.
5593 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5594 * c-exp.y (yylex): Use obstack_strndup.
5595 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5596 (write_var_or_type): Use obstack_strndup.
5597
5598 2019-08-06 Tom Tromey <tom@tromey.com>
5599
5600 * symfile.c (reread_symbols): Use obstack_strdup.
5601 * stabsread.c (read_type): Use obstack_strdup.
5602 * gdb_obstack.h (obstack_strdup): New overload.
5603 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5604 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5605 (dwarf2_canonicalize_name): Use obstack_strdup.
5606 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5607 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5608 Use obstack_strdup.
5609
5610 2019-08-06 Tom Tromey <tom@tromey.com>
5611
5612 * gdb_obstack.h (obstack_strdup): Define.
5613 * gdb_obstack.c (obstack_strdup): Don't define.
5614
5615 2019-08-06 Tom Tromey <tom@tromey.com>
5616
5617 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5618 obstack_strdup.
5619 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5620 obstack_strdup.
5621 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5622 * stabsread.c (common_block_start): Use obstack_strdup.
5623 * objfiles.c (set_objfile_main_name, objfile): Use
5624 obstack_strdup.
5625 * namespace.c (add_using_directive): Use obstack_strdup.
5626 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5627 * jit.c (finalize_symtab): Use obstack_strdup.
5628 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5629 (guess_partial_die_structure_name, partial_die_info::fixup)
5630 (dwarf2_name): Use obstack_strdup.
5631 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5632 obstack_strdup.
5633 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5634 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5635 obstack_strdup.
5636 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5637
5638 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5639
5640 * unittests/help-doc-selftests.c: New file.
5641 * Makefile.in: Add the new file.
5642
5643 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5644
5645 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5646 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5647 the full first line, except when FOR_VALUE_PREFIX. In this case,
5648 the trailing '.' is not output, and the first character is uppercased.
5649 (print_help_for_command): Update call to print_doc_line.
5650 (print_doc_of_command): Likewise.
5651 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5652 * cli/cli-option.c (append_indented_doc): Do not append newline.
5653 (build_help_option): Append newline after first appended_indented_doc
5654 only if a second call is done.
5655 (build_help): Append 2 new lines before each option, except the first
5656 one.
5657 * compile/compile.c (_initialize_compile): Add new lines after
5658 %OPTIONS%, when not at the end of the help.
5659 Change help doc or code
5660 producing the help doc to respect the invariants.
5661 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5662 Also removed the new line after 'Options:', as all other commands
5663 do not put an empty line between 'Options:' and the first option.
5664 * printcmd.c (_initialize_printcmd): Likewise.
5665 * stack.c (_initialize_stack): Likewise.
5666 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5667 incorrectly telling COMMAND is optional.
5668 * ada-lang.c (_initialize_ada_language): Change help doc or code
5669 producing the help doc to respect the invariants.
5670 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5671 * breakpoint.c (_initialize_breakpoint): Likewise.
5672 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5673 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5674 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5675 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5676 _initialize_cli_style): Likewise.
5677 * corelow.c (core_target_info): Likewise.
5678 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5679 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5680 * filesystem.c (_initialize_filesystem): Likewise.
5681 * frame.c (_initialize_frame): Likewise.
5682 * gnu-nat.c (add_task_commands): Likewise.
5683 * infcall.c (_initialize_infcall): Likewise.
5684 * infcmd.c (_initialize_infcmd): Likewise.
5685 * interps.c (_initialize_interpreter): Likewise.
5686 * language.c (_initialize_language): Likewise.
5687 * linux-fork.c (_initialize_linux_fork): Likewise.
5688 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5689 * maint.c (_initialize_maint_cmds): Likewise.
5690 * memattr.c (_initialize_mem): Likewise.
5691 * printcmd.c (_initialize_printcmd): Likewise.
5692 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5693 _RegEx): Likewise.
5694 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5695 * record-btrace.c (_initialize_record_btrace): Likewise.
5696 * record-full.c (_initialize_record_full): Likewise.
5697 * record.c (_initialize_record): Likewise.
5698 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5699 * regcache.c (_initialize_regcache): Likewise.
5700 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5701 _initialize_remote): Likewise.
5702 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5703 * serial.c (_initialize_serial): Likewise.
5704 * skip.c (_initialize_step_skip): Likewise.
5705 * source.c (_initialize_source): Likewise.
5706 * stack.c (_initialize_stack): Likewise.
5707 * symfile.c (_initialize_symfile): Likewise.
5708 * symtab.c (_initialize_symtab): Likewise.
5709 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5710 * top.c (init_main): Likewise.
5711 * tracefile-tfile.c (tfile_target_info): Likewise.
5712 * tracepoint.c (_initialize_tracepoint): Likewise.
5713 * tui/tui-win.c (_initialize_tui_win): Likewise.
5714 * utils.c (add_internal_problem_command): Likewise.
5715 * valprint.c (value_print_option_defs): Likewise.
5716
5717 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5718
5719 PR build/24886
5720 * configure.ac: Drop enable-libmcheck support.
5721 * configure, config.in: Rebuild.
5722 * libmcheck.m4: Remove.
5723 * acinclude.m4: Don't include it.
5724 * Makefile.in: Don't distribute it.
5725 * top.c (print_gdb_configuration): Don't mention it.
5726
5727 2019-08-06 Tom Tromey <tom@tromey.com>
5728
5729 * utils.c (set_output_style): Sometimes pass stream to
5730 emit_style_escape.
5731 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5732 * record-btrace.c (btrace_insn_history): Update.
5733 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5734 method.
5735 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5736 Update initializers.
5737 <m_uiout>: New field.
5738 <m_di>: Move lower.
5739 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5740 Remove "uiout" parameter.
5741 (dump_insns): Update.
5742 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5743 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5744
5745 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5746
5747 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5748 (error_in_psymtab_expansion): Likewise.
5749 (lookup_symbol_via_quick_fns): Likewise.
5750 (basic_lookup_transparent_type_quick): Likewise.
5751 (basic_lookup_transparent_type_1): Likewise.
5752
5753 2019-08-06 Tom Tromey <tromey@adacore.com>
5754
5755 * source.c (last_source_error): Now bool.
5756 (print_source_lines_base): Make "noprint" bool. Only open
5757 source file when last_source_visited changes.
5758
5759 2019-08-06 Tom Tromey <tromey@adacore.com>
5760
5761 * annotate.c (annotate_source_line): Use g_source_cache.
5762 * source-cache.c (source_cache::get_plain_source_lines): Change
5763 parameters. Populate m_offset_cache.
5764 (source_cache::ensure): New method.
5765 (source_cache::get_line_charpos): New method.
5766 (extract_lines): Move lower. Change parameters.
5767 (source_cache::get_source_lines): Move lower.
5768 * source-cache.h (class source_cache): Update comment.
5769 <get_line_charpos>: New method.
5770 <get_source_lines>: Update comment.
5771 <clear>: Clear m_offset_cache.
5772 <get_plain_source_lines>: Change parameters.
5773 <ensure>: New method
5774 <m_offset_cache>: New member.
5775 * source.c (forget_cached_source_info_for_objfile): Update.
5776 (info_source_command): Use g_source_cache.
5777 (find_source_lines, open_source_file_with_line_charpos): Remove.
5778 (print_source_lines_base, search_command_helper): Use g_source_cache.
5779 * source.h (open_source_file_with_line_charpos): Don't declare.
5780 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5781 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5782 Use g_source_cache.
5783
5784 2019-08-06 Tom Tromey <tromey@adacore.com>
5785
5786 * source-cache.c (source_cache::get_plain_source_lines):
5787 Remove "first_line" and "last_line" parameters.
5788 (source_cache::get_source_lines): Cache plain text.
5789 * source-cache.h (class source_cache)
5790 <get_plain_source_lines>: Update.
5791
5792 2019-08-06 Tom Tromey <tromey@adacore.com>
5793
5794 * source-cache.c (extract_lines): No longer a method.
5795 Changed type of parameter. Include final newline.
5796 (selftests::extract_lines_test): New function.
5797 (_initialize_source_cache): Likewise.
5798 * source-cache.h (class source_cache)
5799 <extract_lines>: Don't declare.
5800
5801 2019-08-06 Tom Tromey <tromey@adacore.com>
5802
5803 * breakpoint.c (init_breakpoint_sal): Update.
5804 (breakpoint): Update.
5805 * breakpoint.h (struct breakpoint) <filter>: Now a
5806 unique_xmalloc_ptr.
5807
5808 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5809
5810 * NEWS: Mention dictionary access on blocks.
5811 * python/py-block.c (blpy_getitem): New function.
5812 (block_object_as_mapping): New struct.
5813 (block_object_type): Use new struct for tp_as_mapping field.
5814
5815 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5816
5817 * objfiles.h (objfile): Add a comment describing partial symbols.
5818
5819 2019-08-05 Tom Tromey <tromey@adacore.com>
5820
5821 * compile/compile.c (_initialize_compile): Use _(), not N_().
5822 * thread.c (_initialize_thread): Use _(), not N_().
5823 * stack.c (_initialize_stack): Use _(), not N_().
5824 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5825
5826 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5827
5828 * dwarf2read.c (struct dw2_symtab_iterator):
5829 <want_specific_block>: Remove.
5830 <block_index>: Change type to gdb::optional.
5831 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5832 change type of BLOCK_INDEX parameter to gdb::optional.
5833 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5834 (dw2_lookup_symbol): Don't pass argument for
5835 WANT_SPECIFIC_BLOCK.
5836 (dw2_expand_symtabs_for_function): Don't pass argument for
5837 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5838 (class dw2_debug_names_iterator)
5839 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5840 parameter, change BLOCK_INDEX type to gdb::optional.
5841 <m_want_specific_block>: Remove.
5842 <m_block_index>: Change type to gdb::optional.
5843 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5844 gdb::optional. Re-write in function of gdb::optional.
5845 (dw2_debug_names_lookup_symbol): Don't pass argument for
5846 WANT_SPECIFIC_BLOCK.
5847 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5848 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5849 BLOCK_INDEX.
5850
5851 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5852
5853 * NEWS: Mention changes to "info sources" command.
5854
5855 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5856
5857 * symtab.c (filename_partial_match_opts): New struct type.
5858 (struct output_source_filename_data): New members
5859 regexp, c_regexp, partial_match.
5860 (output_source_filename): Use new members to decide to print file.
5861 (info_sources_option_defs): New variable.
5862 (make_info_sources_options_def_group, print_info_sources_header,
5863 info_sources_command_completer):
5864 New functions.
5865 (info_sources_command): Read new optional arguments.
5866 (_initialize_symtab): Update info sources help.
5867
5868 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5869
5870 * ada-lang.c (exception_support_info_v0): Renamed from...
5871 (default_exception_support_info): ... this. Create new
5872 definition for v1.
5873 (ada_has_this_exception_support): Look up catch_handlers_sym.
5874 (ada_exception_support_info_sniffer): Try v0 after default.
5875
5876 2019-08-01 Tom Tromey <tromey@adacore.com>
5877
5878 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5879 gdbarch.h.
5880
5881 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5882
5883 * s12z-tdep.c: Fix include path for s12z-opc.h.
5884
5885 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5886
5887 * NEWS: Require GNU make 3.82.
5888
5889 2019-07-16 Tom Tromey <tom@tromey.com>
5890
5891 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5892 declare.
5893
5894 2019-07-30 Tom Tromey <tromey@adacore.com>
5895
5896 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5897
5898 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5899
5900 * printcmd.c (print_address_symbolic): Print negative offsets.
5901 (build_address_symbolic): Force signed arithmetic when computing
5902 offset.
5903
5904 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5905
5906 PR/24474: Add a function to lookup static variables.
5907 * NEWS: Mention this new function.
5908 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5909 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5910 * python/python.c (python_GdbMethods): Add new function.
5911
5912 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5913
5914 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5915 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5916 (objfpy_lookup_static_symbol): New function.
5917 (objfile_object_methods): Add new functions.
5918
5919 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5920
5921 * NEWS: Mention 'set|show print frame-info'. Mention new
5922 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5923 backtrace argument. Mention that python frame filtering code
5924 is now consistent with what 'backtrace' command prints.
5925
5926 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5927
5928 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5929 comments.
5930 (print_frame_info_auto, print_frame_info_source_line,
5931 print_frame_info_location, print_frame_info_source_and_location,
5932 print_frame_info_location_and_address, print_frame_info_short_location):
5933 New declarations.
5934 (struct frame_print_options): New member print_frame_info.
5935 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5936 * stack.h (get_user_print_what_frame_info): New declaration.
5937 (frame_show_address): New declaration.
5938 * stack.c (print_frame_arguments_choices): New value 'presence'.
5939 (print_frame_info_auto, print_frame_info_source_line,
5940 print_frame_info_location, print_frame_info_source_and_location,
5941 print_frame_info_location_and_address, print_frame_info_short_location,
5942 print_frame_info_choices, print_frame_info_print_what): New definitions.
5943 (print_frame_args): Only print dots for args if print frame-arguments
5944 is 'presence'.
5945 (frame_print_option_defs): New element for "frame-info".
5946 (get_user_print_what_frame_info): New function.
5947 (frame_show_address): Make non static. Move comment to stack.h.
5948 (print_frame_info_to_print_what): New function.
5949 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5950 to decide what to print.
5951 (backtrace_command_1): Handle the new print_frame_arguments_presence
5952 value.
5953 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5954 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5955 (py_print_frame): In non-mi mode, use LOCATION as default for
5956 print_what, similarly to frame information printed directly by
5957 backtrace command. Handle frame-info user option in non MI mode.
5958
5959 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5960
5961 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5962 Add case for debugging 32-bit target on 64-bit host. Revise
5963 comment.
5964
5965 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5966
5967 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5968 instead of find_function_entry_range_from_pc.
5969
5970 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5971
5972 * stack.c (find_frame_funname): Remove code which preferred
5973 minsym over symtab sym in "certain pathological cases".
5974
5975 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5976 parameter. Change type of "do_demangle" to bool.
5977 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5978 Pass suitable "prefer_sym_over_minsym" flag to
5979 build_address_symbolic(). Don't output "+" for negative offsets.
5980 * printcmd.c (print_address_symbolic): Update invocation of
5981 build_address_symbolic to include a "prefer_sym_over_minsym"
5982 flag.
5983 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5984 Restrict cases in which use of minimal symbol is preferred to that
5985 of a found symbol. Update comments.
5986
5987 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5988 for entry pc when entry pc is out of range for that FDE.
5989
5990 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5991
5992 PR gdb/24839:
5993 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5994 type.
5995
5996 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5997
5998 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5999 this function's Python signature.
6000
6001
6002 2019-07-24 Christian Biesinger <cbiesinger@google.com>
6003
6004 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6005 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6006 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6007 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6008 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6009
6010
6011 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6012
6013 * h8300-tdep.c (h8300_register_name_common): New.
6014 h8300_register_name): Use h8300_register_name_common.
6015 (h8300s_register_name): Likewise.
6016 (h8300sx_register_name): Likewise.
6017 (h8300h_register_nam): New.
6018 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6019
6020
6021 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6022
6023 * arm-tdep.c (arm_skip_cmse_entry): New function.
6024 (arm_is_sgstubs_section): New function.
6025 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6026
6027 2019-07-22 Tom Tromey <tom@tromey.com>
6028
6029 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6030 Don't self-assign.
6031
6032 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6033
6034 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6035 type_print.
6036
6037 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6038
6039 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6040 so that GDB doesn't match any msymbols when searching in the
6041 TYPES_DOMAIN.
6042 (print_symbol_info): Print using typedef_print or type_print based
6043 on the type of the symbol. Add updated FIXME comment moved from...
6044 (_initialize_symtab): ... move and update FIXME comment to above.
6045
6046 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6047
6048 * NEWS: Mention adding -q option to "info types".
6049 * symtab.c (struct info_types_options): New struct.
6050 (info_types_options_defs): New variable.
6051 (make_info_types_options_def_group): New function.
6052 (info_types_command): Use gdb::option framework to parse options.
6053 (info_types_command_completer): New function.
6054 (_initialize_symtab): Extend the help text on "info types" and
6055 register command completer.
6056
6057 2019-07-21 Christian Biesinger <cbiesinger@google.com>
6058
6059 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6060 (lookup_symbol_in_objfile): Change int to block_enum and add a
6061 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6062
6063 2019-07-20 Christian Biesinger <cbiesinger@google.com>
6064
6065 * MAINTAINERS (Write After Approval): Add self.
6066
6067 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6068
6069 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6070 instruction to the dummy code region.
6071
6072 2019-07-19 Tom Tromey <tromey@adacore.com>
6073
6074 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6075 (ARGSUSED, PARAMS, __func__): Remove rules.
6076
6077 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6078
6079 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6080 * features/arm/arm-with-iwmmxt.c: Remove.
6081 * features/arm/arm-with-iwmmxt.xml: Remove.
6082 * features/arm/arm-with-m-fpa-layout.c: Remove.
6083 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6084 * features/arm/arm-with-m-vfp-d16.c: Remove.
6085 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6086 * features/arm/arm-with-m.c: Remove.
6087 * features/arm/arm-with-m.xml: Remove.
6088 * features/arm/arm-with-neon.c: Remove.
6089 * features/arm/arm-with-neon.xml: Remove.
6090 * features/arm/arm-with-vfpv2.c: Remove.
6091 * features/arm/arm-with-vfpv2.xml: Remove.
6092 * features/arm/arm-with-vfpv3.c: Remove.
6093 * features/arm/arm-with-vfpv3.xml: Remove.
6094
6095 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6096
6097 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6098
6099 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6100
6101 * arch/aarch32.c (aarch32_create_target_description): Create
6102 target descriptions using features.
6103 * arch/arm.c (arm_create_target_description)
6104 (arm_create_mprofile_target_description): Likewise.
6105 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6106
6107 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6108
6109 * Makefile.in: Add new files.
6110 * aarch32-tdep.c: New file.
6111 * aarch32-tdep.h: New file.
6112 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6113 Call aarch32_read_description.
6114 * arch/aarch32.c: New file.
6115 * arch/aarch32.h: New file.
6116 * arch/arm.c (arm_create_target_description)
6117 (arm_create_mprofile_target_description): New function.
6118 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6119 (arm_create_target_description)
6120 (arm_create_mprofile_target_description): New declaration.
6121 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6122 read_description functions.
6123 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6124 Likewise.
6125 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6126 * arm-tdep.c (tdesc_arm_list): New variable.
6127 (arm_register_g_packet_guesses): Call create description functions.
6128 (arm_read_description) (arm_read_mprofile_description): New
6129 function.
6130 * arm-tdep.h (arm_read_description)
6131 (arm_read_mprofile_description): Add declaration.
6132 * configure.tgt: Add new files.
6133
6134 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6135
6136 * top.c (new_ui_command): Open specified terminal just once.
6137
6138 2019-07-18 Tom Tromey <tromey@adacore.com>
6139
6140 * symtab.c (main_name): Constify return type.
6141 * symfile.c (set_initial_language): Update.
6142 * symtab.h (main_name): Constify return type.
6143
6144 2019-07-17 Tom Tromey <tom@tromey.com>
6145
6146 * tui/tui-winsource.c (tui_update_source_window)
6147 (tui_update_source_window_as_is)
6148 (tui_update_source_windows_with_line): Remove return.
6149 * tui/tui-disasm.c (tui_show_disassem)
6150 (tui_show_disassem_and_update_source): Remove return.
6151 * tui/tui.c (tui_reset): Remove return.
6152 * tui/tui-wingeneral.c
6153 (tui_check_and_display_highlight_if_needed): Remove return.
6154
6155 2019-07-17 Tom Tromey <tom@tromey.com>
6156
6157 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6158
6159 2019-07-17 Tom Tromey <tom@tromey.com>
6160
6161 * tui/tui-winsource.h (struct tui_exec_info_window)
6162 (struct tui_source_window_base): Move from tui-data.h.
6163 * tui/tui-winsource.c: Move many method definitions from
6164 elsewhere. Remove "structuring" comments.
6165 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6166 (tui_source_window_base::refresh_window): Move to
6167 tui-winsource.c.
6168 * tui/tui-win.c (tui_source_window_base::refresh_all)
6169 (tui_source_window_base::update_tab_width)
6170 (tui_source_window_base::set_new_height)
6171 (tui_source_window_base::do_make_visible_with_new_height): Move to
6172 tui-winsource.c.
6173 * tui/tui-source.h: Update.
6174 * tui/tui-source.c (tui_source_window_base::reset): Move to
6175 tui-winsource.c.
6176 * tui/tui-disasm.h: Update.
6177 * tui/tui-data.h (struct tui_exec_info_window): Move to
6178 tui-winsource.h.
6179 (struct tui_source_window_base): Likewise.
6180 * tui/tui-data.c (tui_source_window_base::clear_detail)
6181 (tui_source_window_base, ~tui_source_window_base): Move to
6182 tui-winsource.c.
6183
6184 2019-07-17 Tom Tromey <tom@tromey.com>
6185
6186 * tui/tui-win.c (tui_resize_all)
6187 (tui_source_window_base::update_tab_width)
6188 (tui_adjust_win_heights): Update.
6189 (tui_win_info::make_invisible_and_set_new_height): Rename from
6190 make_invisible_and_set_new_height.
6191 * tui/tui-data.h (struct tui_win_info)
6192 <make_invisible_and_set_new_height>: New method.
6193
6194 2019-07-17 Tom Tromey <tom@tromey.com>
6195
6196 * tui/tui.c: Update.
6197 * tui/tui-source.h (struct tui_source_window): Move from
6198 tui-data.h.
6199 * tui/tui-layout.c: Update.
6200 * tui/tui-disasm.c: Update.
6201 * tui/tui-data.h (struct tui_source_window): Move to
6202 tui-source.h.
6203
6204 2019-07-17 Tom Tromey <tom@tromey.com>
6205
6206 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6207 tui-data.h.
6208 * tui/tui-data.h (struct tui_disasm_window): Move to
6209 tui-disasm.h.
6210
6211 2019-07-17 Tom Tromey <tom@tromey.com>
6212
6213 * tui/tui-regs.h (struct tui_data_item_window): Move from
6214 tui-data.h.
6215 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6216 * tui/tui-data.h (struct tui_data_item_window): Move to
6217 tui-regs.h.
6218 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6219
6220 2019-07-17 Tom Tromey <tom@tromey.com>
6221
6222 * tui/tui.c: Update.
6223 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6224 (tui_cmd_window::max_height): Move to tui-command.c.
6225 * tui/tui-layout.c: Update.
6226 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6227 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6228 tui-command.c.
6229 * tui/tui-command.h (struct tui_cmd_window): Move from
6230 tui-data.h.
6231 * tui/tui-command.c: Remove "structuring" comments.
6232 (tui_cmd_window::clear_detail)
6233 (tui_cmd_window::do_make_visible_with_new_height)
6234 (tui_cmd_window::max_height): Move from elsewhere.
6235
6236 2019-07-17 Tom Tromey <tom@tromey.com>
6237
6238 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6239 Now static.
6240 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6241 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6242
6243 2019-07-17 Tom Tromey <tom@tromey.com>
6244
6245 * tui/tui.c: Update.
6246 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6247 tui-regs.c.
6248 * tui/tui-windata.h: Remove file.
6249 * tui/tui-windata.c: Remove file.
6250 * tui/tui-win.c (tui_data_window::set_new_height)
6251 (tui_data_window::do_make_visible_with_new_height): Move to
6252 tui-regs.c.
6253 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6254 * tui/tui-regs.c: Remove "structuring" comments.
6255 (tui_data_window::first_data_item_displayed)
6256 (tui_data_window::delete_data_content_windows)
6257 (tui_data_window::erase_data_content)
6258 (tui_data_window::display_all_data)
6259 (tui_data_window::refresh_all)
6260 (tui_data_window::do_scroll_vertical)
6261 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6262 (tui_data_window::do_make_visible_with_new_height)
6263 (tui_data_window::refresh_window): Move from elsewhere.
6264 (_initialize_tui_regs): Move to end of file.
6265 * tui/tui-layout.c: Update.
6266 * tui/tui-hooks.c: Update.
6267 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6268 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6269 tui-regs.c.
6270 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6271
6272 2019-07-17 Tom Tromey <tom@tromey.com>
6273
6274 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6275 seen.
6276
6277 2019-07-17 Tom Tromey <tom@tromey.com>
6278
6279 * tui/tui-win.c (tui_source_window_base::set_new_height)
6280 (tui_source_window_base::do_make_visible_with_new_height): Use
6281 m_has_locator field directly.
6282 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6283 method.
6284 (struct tui_source_window_base) <has_locator>: Likewise.
6285
6286 2019-07-17 Tom Tromey <tom@tromey.com>
6287
6288 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6289 Don't declare.
6290 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6291 Remove.
6292 * tui/tui-win.c (tui_source_window_base::set_new_height)
6293 (tui_source_window_base::set_new_height)
6294 (make_invisible_and_set_new_height)
6295 (tui_source_window_base::do_make_visible_with_new_height)
6296 (tui_source_window_base::do_make_visible_with_new_height):
6297 Update.
6298 * tui/tui-layout.c (show_source_disasm_command, show_data)
6299 (show_source_or_disasm_and_command): Update.
6300 * tui/tui-layout.c (show_layout): Update.
6301
6302 2019-07-17 Tom Tromey <tom@tromey.com>
6303
6304 * tui/tui-layout.c (make_data_window): Remove.
6305 (show_data): Unify creation and re-initialization cases.
6306
6307 2019-07-17 Tom Tromey <tom@tromey.com>
6308
6309 * tui/tui-layout.c (make_source_window, make_disasm_window):
6310 Remove.
6311 (show_data): Unify creation and re-initialization cases.
6312
6313 2019-07-17 Tom Tromey <tom@tromey.com>
6314
6315 * tui/tui-layout.c (make_command_window): Remove.
6316 (show_source_disasm_command, show_source_or_disasm_and_command):
6317 Unify creation and re-initialization cases.
6318
6319 2019-07-17 Tom Tromey <tom@tromey.com>
6320
6321 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6322 creation and re-initialization cases.
6323
6324 2019-07-17 Tom Tromey <tom@tromey.com>
6325
6326 * tui/tui-regs.c (tui_get_register): Return void.
6327
6328 2019-07-17 Tom Tromey <tom@tromey.com>
6329
6330 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6331 Simplify.
6332
6333 2019-07-17 Tom Tromey <tom@tromey.com>
6334
6335 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6336 resetting.
6337
6338 2019-07-17 Tom Tromey <tom@tromey.com>
6339
6340 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6341 * tui/tui-regs.c (tui_reg_layout): New function.
6342 (tui_show_registers, tui_reg_command): Use it.
6343 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6344 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6345 parameters.
6346 (tui_layout_command): Remove.
6347
6348 2019-07-17 Tom Tromey <tom@tromey.com>
6349
6350 * tui/tui-layout.h (tui/tui-layout): Return void.
6351 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6352
6353 2019-07-17 Tom Tromey <tom@tromey.com>
6354
6355 * tui/tui-layout.c (show_source_disasm_command, show_data):
6356 Update.
6357 (reset_locator): Remove.
6358 (show_source_or_disasm_and_command): Update.
6359
6360 2019-07-17 Tom Tromey <tom@tromey.com>
6361
6362 * tui/tui-source.c (tui_source_window_base::reset): Remove
6363 win_type parameter.
6364 * tui/tui-layout.c (make_command_window, make_source_window)
6365 (make_disasm_window, make_data_window)
6366 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6367 (reset_locator, show_source_or_disasm_and_command): Update.
6368 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6369 win_type parameter.
6370 (struct tui_source_window_base) <reset>: Likewise.
6371
6372 2019-07-17 Tom Tromey <tom@tromey.com>
6373
6374 * tui/tui-layout.c (show_source_disasm_command): Use
6375 reset_locator.
6376 (reset_locator): New function.
6377 (init_and_make_win): Remove.
6378 (show_source_or_disasm_and_command): Use reset_locator.
6379
6380 2019-07-17 Tom Tromey <tom@tromey.com>
6381
6382 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6383 condition.
6384 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6385 Remove condition.
6386 * tui/tui-source.c (tui_source_window_base::reset): New method.
6387 * tui/tui-layout.c (make_command_window): Don't call
6388 init_and_make_win.
6389 (make_source_window, make_disasm_window): Don't call
6390 make_source_or_disasm_window.
6391 (make_data_window): Don't call init_and_make_win. Change calling
6392 convention.
6393 (show_source_disasm_command, show_data): Simplify.
6394 (make_source_or_disasm_window): Remove.
6395 (show_source_or_disasm_and_command): Simplify.
6396 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6397 (struct tui_source_window_base) <reset>: Likewise.
6398 <execution_info>: Remove initializer.
6399 * tui/tui-data.c (tui_source_window_base): Initialize
6400 execution_info.
6401
6402 2019-07-17 Tom Tromey <tom@tromey.com>
6403
6404 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6405 variable.
6406
6407 2019-07-17 Tom Tromey <tom@tromey.com>
6408
6409 * tui/tui.c (tui_rl_other_window): Update.
6410 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6411 superclass method first. Always iterate over regs_content.
6412 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6413 method.
6414 * tui/tui-win.c (tui_set_focus_command): Update.
6415
6416 2019-07-17 Tom Tromey <tom@tromey.com>
6417
6418 * tui/tui-win.c (tui_set_focus_command): Rename from
6419 tui_set_focus. Call tui_enable.
6420 (tui_set_focus_command): Remove.
6421
6422 2019-07-17 Tom Tromey <tom@tromey.com>
6423
6424 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6425 refresh_window.
6426 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6427 touchwin.
6428 (tui_data_window::refresh_window): Call refresh_window on data
6429 items. Always call superclass refresh_window.
6430 (tui_win_info::refresh): Remove.
6431 (tui_source_window_base::refresh_window): Update.
6432 (tui_refresh_all): Update.
6433 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6434 refresh_window.
6435 (show_source_or_disasm_and_command): Likewise.
6436 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6437 (struct tui_source_window_base) <refresh>: Likewise.
6438
6439 2019-07-17 Tom Tromey <tom@tromey.com>
6440
6441 * tui/tui-winsource.c (tui_clear_source_content)
6442 (tui_show_source_content): Update.
6443 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6444 whether content is empty.
6445 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6446 Remove.
6447
6448 2019-07-17 Tom Tromey <tom@tromey.com>
6449
6450 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6451 window's contents.
6452 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6453 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6454
6455 2019-07-17 Tom Tromey <tom@tromey.com>
6456
6457 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6458 (struct tui_data_item_window): Update.
6459
6460 2019-07-17 Tom Tromey <tom@tromey.com>
6461
6462 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6463 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6464 defines.
6465
6466 2019-07-17 Tom Tromey <tom@tromey.com>
6467
6468 * tui/tui-winsource.h (tui_erase_source_content)
6469 (tui_clear_source_content): Remove "display_prompt" parameter.
6470 * tui/tui-winsource.c (tui_update_source_window_as_is)
6471 (tui_update_source_windows_with_addr): Update.
6472 (tui_clear_source_content): Remove "display_prompt" parameter.
6473 (tui_erase_source_content): Likewise. Simplify.
6474 (tui_show_source_content): Update.
6475 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6476 * tui/tui-stack.c (tui_show_frame_info): Update.
6477 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6478 Remove defines.
6479
6480 2019-07-17 Tom Tromey <tom@tromey.com>
6481
6482 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6483 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6484 parameter.
6485 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6486 parameter.
6487
6488 2019-07-17 Tom Tromey <tom@tromey.com>
6489
6490 * tui/tui-winsource.c (tui_clear_source_content)
6491 (tui_show_source_content, tui_show_exec_info_content)
6492 (tui_clear_exec_info_content): Update.
6493 * tui/tui-stack.c (tui_show_locator_content): Update.
6494 (tui_show_frame_info): Update.
6495 * tui/tui-source.h (tui_source_window): Don't declare.
6496 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6497 from tui_source_is_displayed.
6498 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6499 Remove field.
6500 (struct tui_source_window_base) <content_in_use>: New field. Now
6501 bool.
6502 (struct tui_source_window) <showing_source_p>: New method.
6503 (TUI_SRC_WIN): Change cast.
6504 * tui/tui-data.c (tui_initialize_static_data): Update.
6505
6506 2019-07-17 Tom Tromey <tom@tromey.com>
6507
6508 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6509 location_matches_p.
6510 * tui/tui-source.c (tui_source_window::location_matches_p): New
6511 method.
6512 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6513 method.
6514 * tui/tui-data.h (struct tui_source_window_base)
6515 <location_matches_p>: New method.
6516 (struct tui_source_window, struct tui_disasm_window)
6517 <location_matches_p>: Likewise.
6518
6519 2019-07-17 Tom Tromey <tom@tromey.com>
6520
6521 * tui/tui-win.c (tui_set_win_height_command): Rename from
6522 tui_set_win_height.
6523 (tui_set_win_height_command): Remove.
6524
6525 2019-07-17 Tom Tromey <tom@tromey.com>
6526
6527 * tui/tui-source.c (tui_source_window): New constructor. Add
6528 observer.
6529 (~tui_source_window): New destructor.
6530 (tui_source_window::style_changed): New method.
6531 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6532 (tui_attach_detach_observers): Update.
6533 * tui/tui-data.h (struct tui_source_window): Make constructor not
6534 inline. Add destructor.
6535 (struct tui_source_window) <style_changed>: New method.
6536 <m_observable>: New member.
6537
6538 2019-07-17 Tom Tromey <tom@tromey.com>
6539
6540 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6541 * tui/tui-win.c (tui_resize_all): Fix typo.
6542
6543 2019-07-17 Tom Tromey <tom@tromey.com>
6544
6545 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6546 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6547 (tui_refresh_all): Remove "list" parameter. Use foreach.
6548 * tui/tui-win.c (window_name_completer): Use foreach.
6549 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6550 (update_tab_width): Likewise.
6551 * tui/tui-layout.c (show_layout): Update.
6552 * tui/tui-data.h (class tui_window_iterator): New.
6553 (struct all_tui_windows): New.
6554 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6555
6556 2019-07-17 Tom Tromey <tom@tromey.com>
6557
6558 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6559 parameter. Don't reference globals.
6560 (tui_reg_command): Update.
6561
6562 2019-07-17 Tom Tromey <tom@tromey.com>
6563
6564 * tui/tui-regs.c (tui_show_registers): Simplify.
6565
6566 2019-07-17 Tom Tromey <tom@tromey.com>
6567
6568 * tui/tui-regs.c (tui_show_registers): Update.
6569 (tui_show_register_group): Add win_info parameter.
6570
6571 2019-07-17 Tom Tromey <tom@tromey.com>
6572
6573 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6574 Rename from tui_display_reg_element_at_line.
6575 (tui_data_window::display_registers_from_line): Update.
6576 * tui/tui-data.h (struct tui_data_window)
6577 <display_reg_element_at_line>: New method.
6578
6579 2019-07-17 Tom Tromey <tom@tromey.com>
6580
6581 * tui/tui-regs.h (tui_display_registers_from)
6582 (tui_display_registers_from_line): Don't declare.
6583 * tui/tui-windata.c (tui_data_window::display_all_data)
6584 (tui_data_window::refresh_all)
6585 (tui_data_window::do_scroll_vertical): Update.
6586 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6587 from tui_display_registers_from.
6588 (tui_display_reg_element_at_line): Update.
6589 (tui_data_window::display_registers_from_line): Rename from
6590 tui_display_registers_from_line.
6591 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6592 display_registers_from_line>: New methods.
6593
6594 2019-07-17 Tom Tromey <tom@tromey.com>
6595
6596 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6597 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6598 from tui_erase_data_content.
6599 (tui_data_window::display_all_data)
6600 (tui_data_window::refresh_all)
6601 (tui_data_window::do_scroll_vertical): Update.
6602 * tui/tui-regs.c (tui_show_registers): Update.
6603 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6604 New method.
6605
6606 2019-07-17 Tom Tromey <tom@tromey.com>
6607
6608 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6609 declare.
6610 * tui/tui-windata.c
6611 (tui_data_window::delete_data_content_windows): Rename from
6612 tui_delete_data_content_windows.
6613 (tui_data_window::display_all_data)
6614 (tui_data_window::do_scroll_vertical): Update.
6615 * tui/tui-data.h (struct tui_data_window)
6616 <delete_data_content_windows>: New method.
6617
6618 2019-07-17 Tom Tromey <tom@tromey.com>
6619
6620 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6621 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6622
6623 2019-07-17 Tom Tromey <tom@tromey.com>
6624
6625 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6626 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6627 from tui_display_all_data.
6628 * tui/tui-win.c
6629 (tui_data_window::do_make_visible_with_new_height): Update.
6630 * tui/tui-regs.c (tui_show_registers): Update.
6631 * tui/tui-layout.c (tui_set_layout): Update.
6632 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6633 method.
6634
6635 2019-07-17 Tom Tromey <tom@tromey.com>
6636
6637 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6638 * tui/tui-windata.c (tui_display_data_from): Remove.
6639 (tui_data_window::refresh_all): Update.
6640
6641 2019-07-17 Tom Tromey <tom@tromey.com>
6642
6643 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6644 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6645 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6646 tui_display_registers_from_line.
6647 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6648 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6649 "force_display" parameter.
6650
6651 2019-07-17 Tom Tromey <tom@tromey.com>
6652
6653 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6654 declare.
6655 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6656 Rename from tui_first_reg_element_no_inline.
6657 (tui_display_reg_element_at_line)
6658 (tui_display_registers_from_line): Update.
6659 * tui/tui-data.h (struct tui_data_window)
6660 <first_reg_element_no_inline>: New method.
6661
6662 2019-07-17 Tom Tromey <tom@tromey.com>
6663
6664 * tui/tui-windata.c (tui_display_data_from)
6665 (tui_data_window::do_scroll_vertical): Update.
6666 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6667 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6668 Rename from tui_line_from_reg_element_no.
6669 (tui_display_registers_from_line): Update.
6670 * tui/tui-data.h (struct tui_data_window)
6671 <line_from_reg_element_no>: New method.
6672
6673 2019-07-17 Tom Tromey <tom@tromey.com>
6674
6675 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6676 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6677 tui_last_regs_line_no.
6678 (tui_display_reg_element_at_line)
6679 (tui_display_registers_from_line): Update.
6680 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6681 method.
6682
6683 2019-07-17 Tom Tromey <tom@tromey.com>
6684
6685 PR tui/24722:
6686 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6687 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6688 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6689 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6690 (tui_update_breakpoint_info): Likewise.
6691 * tui/tui-hooks.c (tui_event_create_breakpoint)
6692 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6693 Update.
6694
6695 2019-07-17 Tom Tromey <tom@tromey.com>
6696
6697 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6698
6699 2019-07-17 Tom Tromey <tom@tromey.com>
6700
6701 * tui/tui-winsource.c (tui_update_source_window_as_is)
6702 (tui_update_source_windows_with_addr): Update.
6703 * tui/tui-source.h (tui_set_source_content)
6704 (tui_show_symtab_source): Add "win_info" parameter.
6705 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6706 parameter.
6707 (tui_show_symtab_source): Likewise.
6708
6709 2019-07-17 Tom Tromey <tom@tromey.com>
6710
6711 * tui/tui-wingeneral.c
6712 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6713
6714 2019-07-17 Tom Tromey <tom@tromey.com>
6715
6716 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6717 (struct tui_cmd_window) <can_scroll>: New method.
6718 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6719 method.
6720
6721 2019-07-17 Tom Tromey <tromey@adacore.com>
6722
6723 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6724 do_field_signed>: Rename. Change type of "value".
6725 * ui-out.c (ui_out::field_signed): Rename from field_int.
6726 Change type of "value".
6727 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6728 type of "value".
6729 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6730 do_field_int. Change type of "value".
6731 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6732 do_field_int. Change type of "value".
6733 * tracepoint.c (trace_status_mi, tfind_1)
6734 (print_one_static_tracepoint_marker): Update.
6735 * thread.c (print_thread_info_1, print_selected_thread_frame):
6736 Update.
6737 * stack.c (print_frame, print_frame_info): Update.
6738 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6739 Update.
6740 * source.c (print_source_lines_base): Update.
6741 * skip.c (info_skip_command): Update.
6742 * record-btrace.c (btrace_ui_out_decode_error)
6743 (btrace_call_history_src_line): Update.
6744 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6745 Update.
6746 * progspace.c (print_program_space): Update.
6747 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6748 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6749 do_field_int. Change type of "value".
6750 * mi/mi-out.c (mi_ui_out::do_table_begin)
6751 (mi_ui_out::do_table_header): Update.
6752 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6753 type of "value".
6754 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6755 (mi_cmd_data_list_changed_registers, output_register)
6756 (mi_cmd_data_read_memory, mi_load_progress)
6757 (mi_cmd_trace_frame_collected): Update.
6758 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6759 Update.
6760 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6761 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6762 (mi_cmd_var_list_children, varobj_update_one): Update.
6763 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6764 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6765 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6766 * inferior.c (print_inferior): Update.
6767 * gdb_bfd.c (print_one_bfd): Update.
6768 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6769 Update.
6770 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6771 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6772 do_field_int. Change type of "value".
6773 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6774 do_field_int. Change type of "value".
6775 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6776 (print_one_breakpoint_location, print_it_catch_fork)
6777 (print_one_catch_fork, print_it_catch_vfork)
6778 (print_one_catch_vfork, print_it_catch_solib)
6779 (print_it_catch_exec, print_it_ranged_breakpoint)
6780 (print_mention_watchpoint, print_mention_masked_watchpoint)
6781 (bkpt_print_it, update_static_tracepoint): Update.
6782 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6783 * break-catch-syscall.c (print_it_catch_syscall): Update.
6784 * ada-tasks.c (print_ada_task_info): Update.
6785 * ada-lang.c (print_it_exception, print_mention_exception):
6786 Update.
6787
6788 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6789
6790 PR breakpoints/24541
6791 * gdbarch.c: Regenerate.
6792 * gdbarch.h: Regenerate.
6793 * gdbarch.sh: Adjust return type and parameter types for
6794 'stap_adjust_register'.
6795 (i386_stap_adjust_register): Adjust signature and return new
6796 register name.
6797 * stap-probe.c (stap_parse_register_operand): Adjust use of
6798 'gdbarch_stap_adjust_register'.
6799
6800 2019-07-17 Tom Tromey <tromey@adacore.com>
6801
6802 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6803 declare VEC.
6804 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6805 std::vector.
6806 (struct s390_process_info): Add initializers.
6807 (s390_add_process): Use new.
6808 (s390_linux_nat_target::low_forget_process): Use delete.
6809 (s390_linux_nat_target::low_new_fork)
6810 (s390_linux_nat_target::stopped_by_watchpoint)
6811 (s390_linux_nat_target::low_prepare_to_resume)
6812 (s390_linux_nat_target::insert_watchpoint)
6813 (s390_linux_nat_target::insert_hw_breakpoint)
6814 (s390_linux_nat_target::remove_watchpoint)
6815 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6816
6817 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6818
6819 * aarch64-fbsd-nat.c: Include regcache.h.
6820 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6821 argument.
6822 (aarch64_fbsd_nat_target::fetch_registers)
6823 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6824 variable.
6825 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6826
6827 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6828
6829 * fbsd-nat.c: Include gdbarch.h.
6830
6831 2019-07-15 Tom Tromey <tromey@adacore.com>
6832
6833 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6834
6835 2019-07-15 Tom Tromey <tromey@adacore.com>
6836
6837 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6838 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6839 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6840 * cli-out.c (cli_ui_out::do_field_int): New method.
6841 * ui-out.c (ui_out::field_unsigned): New method.
6842 * symfile.c (generic_load): Use field_unsigned.
6843 (print_transfer_performance): Likewise.
6844 * record-btrace.c (ui_out_field_uint): Remove.
6845 (btrace_call_history_insn_range, btrace_call_history): Use
6846 field_unsigned.
6847 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6848 field_unsigned.
6849 * ui-out.h (class ui_out) <field_unsigned>: New method.
6850 <do_field_unsigned>: Likewise.
6851
6852 2019-07-15 Tom Tromey <tromey@adacore.com>
6853
6854 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6855 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6856 * target.c (flash_erase_command): Use field_string.
6857 * infrun.c (print_signal_received_reason): Use field_string.
6858 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6859 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6860 field_string.
6861 * ada-tasks.c (print_ada_task_info): Use field_string.
6862
6863 2019-07-15 Tom Tromey <tromey@adacore.com>
6864
6865 * target.c (flash_erase_command): Use field_core_addr.
6866 * symfile.c (generic_load): Use field_core_addr.
6867 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6868 Use field_core_addr.
6869 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6870 field_core_addr.
6871
6872 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6873
6874 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6875 value if its desired type is smaller than a CORE_ADDR and signed.
6876
6877 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6878
6879 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6880 of changes to field names, and use new is_reference field to
6881 decide if a property is a reference or not.
6882 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6883 field.
6884 (struct dwarf2_property_baton): Update header comment, rename
6885 'referenced_type' to 'property_type' and update comments.
6886 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6887 default property type, store in property baton, update to take
6888 accound of renamed field.
6889 (read_func_scope): Update call to attr_to_dynamic_prop.
6890 (read_array_type): Likewise.
6891 (dwarf2_per_cu_addr_sized_int_type): New function.
6892 (read_subrange_index_type): Move type finding code to
6893 dwarf2_per_cu_addr_sized_int_type.
6894 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6895 (dwarf2_per_cu_addr_type): New function.
6896 (set_die_type): Update calls to attr_to_dynamic_prop.
6897
6898 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6899
6900 * dwarf2read.c (read_subrange_index_type): New function.
6901 (read_subrange_type): Move code into new function and call it.
6902 * gdbtypes.c (create_range_type): Add some asserts.
6903
6904 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6905
6906 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6907 update return statements.
6908 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6909 declaration, and update comment to match.
6910 * gdbtypes.c (resolve_dynamic_array): Update call to
6911 dwarf2_evaluate_property to match new return type.
6912
6913 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6914
6915 * valarith.c (value_subscripted_rvalue): Change lowerbound
6916 parameter type from int to LONGEST.
6917 * value.h (value_subscripted_rvalue): Likewise in declaration.
6918
6919 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6920
6921 * cli/cli-utils.c (info_print_command_completer): New function.
6922 * cli/cli-utils.h: Add 'completer.h' include, and forward
6923 declaration for 'struct cmd_list_element'.
6924 (info_print_command_completer): Declare.
6925 * stack.c (_initialize_stack): Add completer for 'info locals' and
6926 'info args'.
6927 * symtab.c (_initialize_symtab): Add completer for 'info
6928 variables' and 'info functions'.
6929 * NEWS: Mention completion for additional info commands.
6930
6931 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6932
6933 * cli/cli-utils.c (extract_info_print_args): Delete.
6934 (extract_arg_maybe_quoted): Delete.
6935 (info_print_options_defs): New variable.
6936 (make_info_print_options_def_group): New function.
6937 (extract_info_print_options): Define new function.
6938 * cli/cli-utils.h (extract_info_print_args): Delete.
6939 (struct info_print_options): New structure.
6940 (extract_info_print_options): Declare new function.
6941 * stack.c (info_locals_command): Update to use new
6942 extract_info_print_options, also add a header comment.
6943 (info_args_command): Likewise.
6944 * symtab.c (info_variables_command): Likewise.
6945 (info_functions_command): Likewise.
6946
6947 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6948
6949 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6950 to extract string arguments.
6951 * common/common-utils.c (extract_string_maybe_quoted): New function.
6952 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6953
6954 2019-07-11 Tom Tromey <tromey@adacore.com>
6955
6956 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6957 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6958 * top.h (gdbinit): Don't declare.
6959 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6960 into...
6961 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6962 * top.c (gdb_init): Don't call init_cli_cmds.
6963 (gdbinit): Remove.
6964 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6965
6966 2019-07-11 Tom Tromey <tromey@adacore.com>
6967
6968 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6969 after it has been moved.
6970
6971 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6972
6973 * valops.c (value_must_coerce_to_target): Change return type to
6974 bool.
6975 * value.h (value_must_coerce_to_target): Likewise.
6976
6977 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6978
6979 * breakpoint.c (is_hardware_watchpoint): Remove
6980 forward-declaration.
6981 (is_masked_watchpoint): Change return type to bool.
6982 (is_tracepoint): Likewise.
6983 (is_breakpoint): Likewise.
6984 (is_hardware_watchpoint): Likewise.
6985 (is_watchpoint): Likewise.
6986 (is_no_memory_software_watchpoint): Likewise.
6987 (is_catchpoint): Likewise.
6988 (breakpoint_1): Make FILTER parameter's return type bool.
6989 is_masked_watchpoint): Change return type to bool.
6990 (save_breakpoints): Make FILTER parameter's return type bool.
6991 * breakpoint.h (is_breakpoint): Change return type to bool.
6992 (is_watchpoint): Likewise.
6993 (is_catchpoint): Likewise.
6994 (is_tracepoint): Likewise.
6995
6996 2019-07-10 Tom Tromey <tom@tromey.com>
6997
6998 * defs.h: Don't include gdbarch.h.
6999 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7000 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7001 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7002 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7003 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7004 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7005 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7006 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7007 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7008 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7009 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7010 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7011 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7012 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7013 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7014 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7015 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7016 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7017 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7018 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7019 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7020 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7021 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7022 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7023 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7024 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7025 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7026
7027 2019-07-10 Tom Tromey <tromey@adacore.com>
7028
7029 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7030 * breakpoint.c (init_ada_exception_breakpoint): Register as
7031 bp_catchpoint.
7032 (print_one_breakpoint_location, print_one_breakpoint): Use
7033 is_ada_exception_catchpoint.
7034 * ada-lang.c (class ada_catchpoint_location): Pass
7035 bp_loc_software_breakpoint to bp_location constructor.
7036 (is_ada_exception_catchpoint): New function.
7037
7038 2019-07-10 Tom Tromey <tromey@adacore.com>
7039
7040 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7041 VEC.
7042 (struct arm_exidx_entry): New method operator<.
7043 (struct arm_exidx_data) <section_maps>: Change type.
7044 (arm_exidx_data_free): Remove.
7045 (arm_exidx_data_key): Change type. Move lower.
7046 (arm_exidx_new_objfile): Update.
7047 (arm_compare_exidx_entries): Remove.
7048 (arm_find_exidx_entry, _initialize_arm_tdep)
7049
7050 2019-07-10 Tom Tromey <tromey@adacore.com>
7051
7052 * solib-spu.c (ocl_program_data_key): Change type.
7053 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7054 Update.
7055
7056 2019-07-10 Tom Tromey <tromey@adacore.com>
7057
7058 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7059 (struct solib_aix_inferior_data) <library_list>: Change type.
7060 (solib_aix_inferior_data_handle): Change type.
7061 (get_solib_aix_inferior_data): Update.
7062 (solib_aix_free_library_list): Remove.
7063 (library_list_start_library): Update.
7064 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7065 return type.
7066 (solib_aix_get_library_list)
7067 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7068 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7069
7070 2019-07-10 Tom Tromey <tromey@adacore.com>
7071
7072 * solib-dsbt.c (struct dsbt_info): Add initializers.
7073 (solib_dsbt_pspace_data): Change type.
7074 (dsbt_pspace_data_cleanup): Remove.
7075 (get_dsbt_info, _initialize_dsbt_solib): Update.
7076
7077 2019-07-10 Tom Tromey <tromey@adacore.com>
7078
7079 * spu-tdep.c (spu_overlay_data): Change type.
7080 (spu_get_overlay_table, spu_overlay_new_objfile)
7081 (_initialize_spu_tdep): Update.
7082
7083 2019-07-10 Tom Tromey <tromey@adacore.com>
7084
7085 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7086 destructor.
7087 (dbx_objfile_data_key): Change type and declare later.
7088 (DBX_SYMFILE_INFO): Rewrite.
7089 * dbxread.c (dbx_objfile_data_key): Change type.
7090 (dbx_symfile_init): Update.
7091 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7092 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7093 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7094
7095 2019-07-10 Tom Tromey <tromey@adacore.com>
7096
7097 * jit.c (jit_program_space_key): Change type. Move lower.
7098 (get_jit_program_space_data): Update.
7099 (jit_program_space_data_cleanup): Remove.
7100 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7101 Update.
7102 (struct jit_program_space_data): Add initializers.
7103
7104 2019-07-10 Tom Tromey <tromey@adacore.com>
7105
7106 * solib-darwin.c (struct darwin_info): Add initializers.
7107 (solib_darwin_pspace_data): Change type.
7108 (darwin_pspace_data_cleanup): Remove.
7109 (get_darwin_info, _initialize_darwin_solib): Update.
7110
7111 2019-07-10 Tom Tromey <tromey@adacore.com>
7112
7113 * remote-sim.c (struct sim_inferior_data): Add initializers,
7114 constructor, and destructor.
7115 (sim_inferior_data_key): Change type. Move lower.
7116 (check_for_duplicate_sim_descriptor): Update.
7117 (get_sim_inferior_data): Use new. Update.
7118 (~sim_inferior_data_cleanup): Rename from
7119 sim_inferior_data_cleanup. Simplify.
7120 (gdbsim_close_inferior, simulator_command)
7121 (sim_command_completer, _initialize_remote_sim): Update.
7122 (next_pid, INITIAL_PID): Move earlier.
7123
7124 2019-07-10 Tom Tromey <tromey@adacore.com>
7125
7126 * python/python-internal.h (create_thread_object): Return
7127 gdbpy_ref.
7128 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7129 * python/py-inferior.c (struct threadlist_entry): Add
7130 constructor.
7131 <thread_obj>: Now a gdbpy_ref.
7132 (thread_to_thread_object): Update.
7133 (add_thread_object): Use new.
7134 (delete_thread_object): Use delete.
7135 (infpy_threads): Update.
7136 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7137 GIL.
7138
7139 2019-07-10 Tom Tromey <tromey@adacore.com>
7140
7141 * valops.c (value_cast): Specialize error message for Ada.
7142
7143 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7144
7145 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7146
7147 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7148
7149 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7150 bpstat_should_step): Return bool, adjust comments.
7151 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7152 bpstat_should_step): Likewise.
7153
7154 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7155
7156 * features/Makefile: Use feature target descriptions for Arm.
7157 * features/arm/arm-core.c: Generate new file.
7158 * features/arm/arm-fpa.c: Likewise.
7159 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7160 * features/arm/arm-m-profile.c: Likewise.
7161 * features/arm/arm-vfpv2.c: Likewise.
7162 * features/arm/arm-vfpv3.c: Likewise.
7163 * features/arm/xscale-iwmmxt.c: Likewise.
7164 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7165
7166 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7167
7168 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7169 ptrace earlier.
7170
7171 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7172
7173 * features/aarch64-pauth.c: Regenerate.
7174
7175 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7176
7177 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7178 bool.
7179 (bpstat_what): Use false instead of 0.
7180
7181 2019-07-09 Pedro Alves <palves@redhat.com>
7182
7183 * break-catch-throw.c (is_exception_catchpoint): New.
7184 * breakpoint.c (print_one_breakpoint_location): New parameter
7185 'raw_loc'. Handle it. Use
7186 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7187 looking at the breakpoint's type.
7188 (print_one_breakpoint): If handling "maint info breakpoints", also
7189 print locations of exception catchpoints.
7190 * breakpoint.h (is_exception_catchpoint): Declare.
7191
7192 2019-07-09 Pedro Alves <palves@redhat.com>
7193
7194 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7195 "addr" field.
7196 (allocate_location_exception_catchpoint): New.
7197 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7198 (initialize_throw_catchpoint_ops): Install
7199 allocate_location_exception_catchpoint as allocate_location
7200 method.
7201 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7202 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7203 bp_loc_other.
7204 (breakpoint_address_is_meaningful): Delete.
7205 (bl_address_is_meaningful): New.
7206 (breakpoint_locations_match): Adjust comment.
7207 (bp_location_from_bp_type): New, factored out of...
7208 (bp_location::bp_location(breakpoint *)): ... this.
7209 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7210 factored out of...
7211 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7212 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7213 breakpoint_address_is_meaningful.
7214 (bp_locations_compare): Adjust comment.
7215 (update_global_location_list): Use bl_address_is_meaningful
7216 instead of breakpoint_address_is_meaningful.
7217 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7218 explicit.
7219 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7220 * python/py-breakpoint.c (bppy_get_location): No longer check
7221 whether location is null.
7222
7223 2019-07-09 Pedro Alves <palves@redhat.com>
7224
7225 PR c++/15468
7226 * breakpoint.c (print_one_breakpoint_location): Remove
7227 single-location assert.
7228
7229 2019-07-09 Tom Tromey <tom@tromey.com>
7230
7231 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7232 * configure: Rebuild.
7233 * configure.ac: Change common to gdbsupport.
7234 * gdbsupport: Rename from common.
7235 * acinclude.m4: Change common to gdbsupport.
7236 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7237 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7238 gdbsupport.
7239 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7240 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7241 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7242 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7243 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7244 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7245 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7246 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7247 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7248 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7249 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7250 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7251 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7252 coff-pe-read.c, command.h, compile/compile-c-support.c,
7253 compile/compile-c.h, compile/compile-cplus-symbols.c,
7254 compile/compile-cplus-types.c, compile/compile-cplus.h,
7255 compile/compile-loc2c.c, compile/compile.c, completer.c,
7256 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7257 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7258 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7259 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7260 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7261 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7262 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7263 features/aarch64-core.c, features/aarch64-fpu.c,
7264 features/aarch64-pauth.c, features/aarch64-sve.c,
7265 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7266 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7267 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7268 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7269 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7270 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7271 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7272 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7273 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7274 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7275 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7276 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7277 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7278 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7279 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7280 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7281 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7282 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7283 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7284 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7285 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7286 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7287 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7288 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7289 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7290 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7291 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7292 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7293 minsyms.c, mips-linux-tdep.c, namespace.h,
7294 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7295 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7296 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7297 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7298 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7299 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7300 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7301 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7302 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7303 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7304 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7305 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7306 procfs.c, producer.c, progspace.h, psymtab.h,
7307 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7308 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7309 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7310 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7311 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7312 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7313 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7314 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7315 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7316 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7317 target-memory.c, target.c, target.h, target/waitstatus.c,
7318 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7319 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7320 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7321 unittests/array-view-selftests.c,
7322 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7323 unittests/common-utils-selftests.c,
7324 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7325 unittests/format_pieces-selftests.c,
7326 unittests/function-view-selftests.c,
7327 unittests/lookup_name_info-selftests.c,
7328 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7329 unittests/mkdir-recursive-selftests.c,
7330 unittests/observable-selftests.c,
7331 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7332 unittests/parse-connection-spec-selftests.c,
7333 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7334 unittests/scoped_fd-selftests.c,
7335 unittests/scoped_mmap-selftests.c,
7336 unittests/scoped_restore-selftests.c,
7337 unittests/string_view-selftests.c, unittests/style-selftests.c,
7338 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7339 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7340 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7341 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7342 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7343 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7344
7345 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7346
7347 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7348 bool value.
7349 (decode_digits_ordinary): Set explicit_line field in sal.
7350 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7351 symtab_and_line that was set on an explicit line number in
7352 assembler code. Do always update the recorded symtab and line if
7353 we do skip the prologue.
7354
7355 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7356
7357 * breakpoint.c (set_breakpoint_location_function): Remove
7358 explicit_loc parameter.
7359 (momentary_breakpoint_from_master): Update call to
7360 set_breakpoint_location_function.
7361 (add_location_to_breakpoint): Likewise.
7362
7363 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7364
7365 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7366 required features based on default bfd type when no specific bfd
7367 is present.
7368
7369 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7370
7371 * NEWS: Mention that GDB printf and eval commands can now print
7372 C-style and Ada-style convenience var strings without
7373 calling the inferior.
7374 * printcmd.c (printf_c_string): Locally print GDB internal var
7375 instead of transiting via the inferior.
7376 (printf_wide_c_string): Likewise.
7377
7378 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7379
7380 PR breakpoints/25011
7381 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7382
7383 2019-07-04 Tom Tromey <tom@tromey.com>
7384
7385 PR tui/24724:
7386 * tui/tui-winsource.c (tui_clear_source_content): Update.
7387 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7388 (tui_update_breakpoint_info): Update.
7389 (tui_set_exec_info_content): Update.
7390 * tui/tui-source.c (tui_set_source_content_nil): Update.
7391 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7392 has_break.
7393 * tui/tui-data.h (enum tui_bp_flag): New.
7394 (tui_bp_flags): New enum flags type.
7395 (struct tui_source_element) <break_mode>: Change type. Rename
7396 from has_break.
7397 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7398 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7399 constants.
7400 * tui/tui-winsource.h: Fix comment.
7401
7402 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7403
7404 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7405 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7406 (store_fpregs_to_thread)
7407 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7408 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7409 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7410 (IWMMXT_REGS_SIZE): Add define.
7411 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7412 (fetch_vfp_regs, store_vfp_regs)
7413 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7414 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7415
7416 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7417
7418 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7419 defines.
7420 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7421 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7422 (ARM_INT_REGISTER_SIZE): ...to this.
7423 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7424 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7425 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7426 (arm_linux_collect_gregset, supply_nwfpe_register)
7427 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7428 defines.
7429 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7430 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7431 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7432 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7433 (arm_return_in_memory, arm_store_return_value)
7434 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7435 (arm_record_ld_st_multiple): Likewise.
7436 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7437 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7438
7439 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7440
7441 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7442 AARCH64_DISPLACED_MODIFIED_INSNS.
7443 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7444 (aarch64_displaced_step_copy_insn): Likewise.
7445 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7446 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7447 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7448 ARM_DISPLACED_MODIFIED_INSNS.
7449 * arm-tdep.c (arm_gdbarch_init): Likewise.
7450 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7451 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7452 (struct arm_displaced_step_closure): Use
7453 ARM_DISPLACED_MODIFIED_INSNS.
7454
7455 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7456
7457 * features/Makefile: Remove unused xml files.
7458 * features/aarch64.xml: Remove.
7459 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7460 * features/i386/amd64-avx-avx512.xml: Remove.
7461 * features/i386/amd64-avx-linux.xml: Remove.
7462 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7463 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7464 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7465 * features/i386/amd64-avx-mpx.xml: Remove.
7466 * features/i386/amd64-avx.xml: Remove.
7467 * features/i386/amd64-linux.xml: Remove.
7468 * features/i386/amd64-mpx-linux.xml: Remove.
7469 * features/i386/amd64-mpx.xml: Remove.
7470 * features/i386/amd64.xml: Remove.
7471 * features/i386/i386-avx-avx512-linux.xml: Remove.
7472 * features/i386/i386-avx-avx512.xml: Remove.
7473 * features/i386/i386-avx-linux.xml: Remove.
7474 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7475 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7476 * features/i386/i386-avx-mpx-linux.xml: Remove.
7477 * features/i386/i386-avx-mpx.xml: Remove.
7478 * features/i386/i386-avx.xml: Remove.
7479 * features/i386/i386-linux.xml: Remove.
7480 * features/i386/i386-mmx-linux.xml: Remove.
7481 * features/i386/i386-mmx.xml: Remove.
7482 * features/i386/i386-mpx-linux.xml: Remove.
7483 * features/i386/i386-mpx.xml: Remove.
7484 * features/i386/i386.xml: Remove.
7485 * features/i386/x32-avx-avx512-linux.xml: Remove.
7486 * features/i386/x32-avx-linux.xml: Remove.
7487 * features/i386/x32-linux.xml: Remove.
7488
7489 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7490
7491 * regformats/aarch64.dat: Remove.
7492 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7493 * regformats/i386/amd64-avx-linux.dat: Remove.
7494 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7495 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7496 * regformats/i386/amd64-linux.dat: Remove.
7497 * regformats/i386/amd64-mpx-linux.dat: Remove.
7498 * regformats/i386/amd64.dat: Remove.
7499 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7500 * regformats/i386/i386-avx-linux.dat: Remove.
7501 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7502 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7503 * regformats/i386/i386-linux.dat: Remove.
7504 * regformats/i386/i386-mmx-linux.dat: Remove.
7505 * regformats/i386/i386-mpx-linux.dat: Remove.
7506 * regformats/i386/i386.dat: Remove.
7507 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7508 * regformats/i386/x32-avx-linux.dat: Remove.
7509 * regformats/i386/x32-linux.dat: Remove.
7510
7511 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7512
7513 * aarch64-tdep.c: Remove xml self tests.
7514 * amd64-linux-tdep.c: Likewise.
7515 * amd64-tdep.c: Likewise.
7516 * i386-linux-tdep.c: Likewise.
7517 * i386-tdep.c: Likewise.
7518
7519 2019-07-03 Pedro Alves <palves@redhat.com>
7520
7521 PR cli/24732
7522 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7523 (pipe_cmd_option_defs): New.
7524 (make_pipe_cmd_options_def_group): New.
7525 (pipe_command): Use gdb::option::process_options.
7526 (pipe_command_completer): New function.
7527 (_initialize_cli_cmds): Install completer for "pipe" command.
7528
7529 2019-07-03 Pedro Alves <palves@redhat.com>
7530
7531 * cli/cli-option.c (union option_value) <string>: New field.
7532 (struct option_def_and_value): Add ctor, move ctor, dtor and
7533 use DISABLE_COPY_AND_ASSIGN.
7534 (option_def_and_value::clear_value): New.
7535 (parse_option, save_option_value_in_ctx, get_val_type_str)
7536 (add_setshow_cmds_for_options): Handle var_string.
7537 * cli-option.h (union option_def::var_address) <string>: New
7538 field.
7539 (struct string_option_def): New.
7540 * maint-test-options.c (struct test_options_opts): Add default
7541 ctor and use DISABLE_COPY_AND_ASSIGN.
7542 <string_opt>: New field.
7543 (test_options_opts::~test_options_opts): New.
7544 (test_options_opts::dump): Also dump "-string".
7545 (test_options_option_defs): Install "string.
7546
7547 2019-07-03 Pedro Alves <palves@redhat.com>
7548
7549 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7550 option_value with a null enumeration.
7551 (complete_options): Save the option values in the context.
7552 (save_option_value_in_ctx): New, factored out from ...
7553 (process_options): ... here.
7554 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7555 of the function.
7556 * maint-test-options.c (test_options_opts::dump): New, factored
7557 out from ...
7558 (maintenance_test_options_command_mode): ... here.
7559 (maintenance_test_options_command_completion_result): Delete.
7560 (maintenance_test_options_command_completion_text): Update
7561 comment.
7562 (maintenance_show_test_options_completion_result): Change
7563 prototype. Just print
7564 maintenance_test_options_command_completion_text.
7565 (save_completion_result): New.
7566 (maintenance_test_options_completer_mode): Pass options context to
7567 complete_options, and then save a dump.
7568 (_initialize_maint_test_options): Use add_cmd to install "maint
7569 show test-options-completion-result".
7570
7571 2019-07-03 Pedro Alves <palves@redhat.com>
7572
7573 * NEWS (New commands): Mention "with" and "maint with".
7574 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7575 (with_command, with_command_completer): New.
7576 (pipe_command): Adjust to new repeat_previous
7577 interface.
7578 (_initialize_cli_cmds): Install the "with" command and its "w"
7579 alias.
7580 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7581 declarations.
7582 * cli/cli-setshow.c (parse_cli_var_uinteger)
7583 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7584 argument strings for all var_types.
7585 (get_setshow_command_value_string): New, factored out from ...
7586 (do_show_command): ... this.
7587 * cli/cli-setshow.h: Include <string>.
7588 (get_setshow_command_value_string): Declare.
7589 * command.h (repeat_previous): Now returns const char *. Adjust
7590 comment.
7591 * maint.c: Include "cli/cli-cmds.h".
7592 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7593 (_initialize_maint_cmds): Register the "maintenance with" command.
7594 * top.c (repeat_previous): Move bits from pipe_command here:
7595 Return the saved command line, if any; error out if there's no
7596 command to relaunch.
7597
7598 2019-07-03 Pedro Alves <palves@redhat.com>
7599
7600 * NEWS (New commands): Mention "maint set/show test-settings"
7601 instead of "maint test-settings".
7602 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7603 (maintenance_test_settings_set_list): Rename to ...
7604 (maintenance_set_test_settings_list): ... this.
7605 (maintenance_test_settings_show_list): Rename to ...
7606 (maintenance_show_test_settings_list): ... this.
7607 (maintenance_test_settings_cmd): Delete.
7608 (maintenance_test_settings_set_cmd): ...
7609 (maintenance_set_test_settings_cmd): ... this.
7610 (maintenance_test_settings_show_cmd): ...
7611 (maintenance_show_test_settings_cmd): ... this.
7612 (maintenance_test_settings_show_value_cmd):
7613 (maintenance_show_test_settings_value_cmd): ... this.
7614 (_initialize_maint_test_settings): No longer install the "maint
7615 test-settings" prefix command. Rename "maint test-settings set"
7616 to "maint set test-settings", and "maint test-settings show" to
7617 "maint show test-settings". Adjust all subcommands.
7618
7619 2019-07-03 Pedro Alves <palves@redhat.com>
7620
7621 * maint-test-settings.c: Fix file's intro comment. Replace all
7622 references to "test-options" with references to "test-settings",
7623 in comments.
7624
7625 2019-07-03 Pedro Alves <palves@redhat.com>
7626
7627 * maint-test-settings.c (maintenance_test_settings_xxx)
7628 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7629 New.
7630 (maintenance_test_settings_enums): Use them.
7631 (maintenance_test_settings_enum): Default to
7632 maintenance_test_settings_xxx.
7633 (_initialize_maint_test_settings): Initialize
7634 MAINTENANCE_TEST_SETTINGS_FILENAME.
7635
7636 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7637
7638 * breakpoint.h (remove_breakpoints_inf): Change return type to
7639 void, move function documentation here.
7640 * breakpoint.c (remove_breakpoints_inf): Change return type to
7641 void, move function documentation to header.
7642
7643 2019-07-02 Pedro Alves <palves@redhat.com>
7644
7645 * NEWS (Completion improvements): Mention "info threads".
7646 * thread.c (struct info_threads_opts, info_threads_option_defs)
7647 (make_info_threads_options_def_group): New.
7648 (info_threads_command): Use gdb::option::process_options.
7649 (info_threads_command_completer): New.
7650 (_initialize_thread): Use gdb::option::build_help to build the
7651 help text for "info threads".
7652
7653 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7654
7655 * defs.h (generic_load): Move from here...
7656 * symfile.h (generic_load): ... to here. Rename name parameter
7657 to args.
7658 * symfile.c (generic_load): Add comment.
7659
7660 2019-07-01 Tom Tromey <tromey@adacore.com>
7661
7662 * dwarf2read.c
7663 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7664 declaration of without_params. Fix formatting.
7665
7666 2019-07-01 Tom Tromey <tromey@adacore.com>
7667
7668 * ada-exp.y (find_primitive_type): Update.
7669 * ada-lang.h (ada_lookup_symbol): Update.
7670 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7671 parameter.
7672 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7673
7674 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7675
7676 PR breakpoints/24541
7677 * gdbarch.c: Regenerate.
7678 * gdbarch.h: Regenerate.
7679 * gdbarch.sh: Add 'stap_adjust_register'.
7680 * i386-tdep.c: Include '<unordered_set>'.
7681 (i386_stap_adjust_register): New function.
7682 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7683 * stap-probe.c (stap_parse_register_operand): Call
7684 'gdbarch_stap_adjust_register'.
7685
7686 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7687
7688 PR python/24742
7689 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7690 * python/python.c (do_start_initialization): Use 'xmalloc'
7691 instead of 'PyMem_Malloc'.
7692
7693 2019-06-28 Tom Tromey <tromey@adacore.com>
7694
7695 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7696 for Ada.
7697
7698 2019-06-27 Tom Tromey <tromey@adacore.com>
7699
7700 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7701 objfile_key.
7702 (arm_find_mapping_symbol, arm_record_special_symbol)
7703 (_initialize_arm_tdep): Update.
7704 (arm_objfile_data_free): Remove.
7705
7706 2019-06-27 Tom Tromey <tromey@adacore.com>
7707
7708 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7709 to cp_print_static_field.
7710
7711 2019-06-26 Tom Tromey <tromey@adacore.com>
7712
7713 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7714 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7715 declare.
7716
7717 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7718
7719 * features/aarch64-core.c (create_feature_aarch64_core):
7720 Regenerate.
7721 * features/aarch64-core.xml: Add cpsr flags.
7722
7723 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7724
7725 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7726 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7727
7728 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7729
7730 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7731 field.
7732 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7733 use.
7734 (arm_record_special_symbol): Don't insert new symbol in sorted
7735 position, push it at the end.
7736
7737 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7738
7739 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7740 (arm_mapping_symbol_s): Remove.
7741 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7742 (arm_mapping_symbol_vec): New typedef.
7743 (struct arm_per_objfile): Add constructor.
7744 <section_maps>: Change type to
7745 std::unique_ptr<arm_mapping_symbol_vec[]>.
7746 (arm_compare_mapping_symbols): Remove.
7747 (arm_find_mapping_symbol): Adjust to section_maps type change.
7748 (arm_objfile_data_free): Call delete on arm_per_objfile.
7749 (arm_record_special_symbol): Adjust to section_maps type change.
7750 Allocate arm_per_objfile with new.
7751
7752 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7753
7754 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7755 with the command prefix.
7756
7757 2019-06-25 Tom Tromey <tom@tromey.com>
7758
7759 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7760 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7761
7762 2019-06-25 Tom Tromey <tom@tromey.com>
7763
7764 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7765 type.
7766 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7767 protected.
7768
7769 2019-06-25 Tom Tromey <tom@tromey.com>
7770
7771 * tui/tui-winsource.c
7772 (tui_source_window_base::set_is_exec_point_at): Add check against
7773 LOA_ADDRESS.
7774
7775 2019-06-25 Tom Tromey <tom@tromey.com>
7776
7777 * tui/tui-source.c (tui_set_source_content): Don't check before
7778 xfree.
7779 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7780
7781 2019-06-25 Tom Tromey <tom@tromey.com>
7782
7783 * tui/tui-winsource.h (tui_update_source_window_as_is)
7784 (tui_alloc_source_buffer, tui_line_is_displayed)
7785 (tui_addr_is_displayed): Change type of win_info.
7786 * tui/tui-winsource.c (tui_update_source_window_as_is)
7787 (tui_clear_source_content, tui_show_source_line)
7788 (tui_show_source_content, tui_source_window_base::refill)
7789 (tui_source_window_base::set_is_exec_point_at)
7790 (tui_source_window_base::set_is_exec_point_at)
7791 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7792 (tui_alloc_source_buffer, tui_line_is_displayed)
7793 (tui_addr_is_displayed): Change type of win_info. Update.
7794 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7795 (tui_source_window_base::do_make_visible_with_new_height):
7796 Update.
7797 * tui/tui-source.c (tui_set_source_content)
7798 (tui_set_source_content_nil)
7799 (tui_source_window::do_scroll_vertical): Update.
7800 * tui/tui-layout.c (show_layout): Update.
7801 * tui/tui-disasm.c (tui_set_disassem_content)
7802 (tui_disasm_window::do_scroll_vertical): Update.
7803 * tui/tui-data.h (tui_win_content): Remove.
7804 (struct tui_gen_win_info) <content, content_size>: Remove.
7805 (struct tui_source_element): Add initializers and destructor.
7806 (union tui_which_element, struct tui_win_element): Remove.
7807 (struct tui_source_window_base) <content>: New field.
7808 (struct tui_data_window): Remove destructor.
7809 (tui_alloc_content, tui_free_win_content)
7810 (tui_free_all_source_wins_content): Don't declare.
7811 * tui/tui-data.c (tui_initialize_static_data): Update.
7812 (init_content_element, tui_alloc_content): Remove.
7813 (~tui_gen_win_info): Update.
7814 (~tui_data_window, tui_free_all_source_wins_content)
7815 (tui_free_win_content, free_content, free_content_elements):
7816 Remove.
7817
7818 2019-06-25 Tom Tromey <tom@tromey.com>
7819
7820 * tui/tui-winsource.h (tui_clear_source_content)
7821 (tui_erase_source_content, tui_show_source_content): Change type
7822 of win_info.
7823 * tui/tui-winsource.c (tui_clear_source_content)
7824 (tui_erase_source_content, tui_show_source_content): Change type
7825 of win_info.
7826 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7827 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7828 win_info.
7829 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7830 win_info.
7831 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7832
7833 2019-06-25 Tom Tromey <tom@tromey.com>
7834
7835 * tui/tui-winsource.c (tui_clear_source_content)
7836 (tui_source_window_base::set_is_exec_point_at): Update.
7837 * tui/tui-source.c (tui_set_source_content_nil): Update.
7838 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7839 a bool.
7840 * tui/tui-data.c (init_content_element): Update.
7841
7842 2019-06-25 Tom Tromey <tom@tromey.com>
7843
7844 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7845 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7846 * tui/tui-layout.c (init_and_make_win): Update.
7847 * tui/tui.h (enum tui_win_type): Update.
7848 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7849 tui_win_is_auxillary.
7850 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7851 tui_win_is_auxillary.
7852
7853 2019-06-25 Tom Tromey <tom@tromey.com>
7854
7855 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7856 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7857 (tui_delete_data_content_windows, tui_display_all_data)
7858 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7859 Update.
7860 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7861 * tui/tui-regs.c (tui_last_regs_line_no)
7862 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7863 (tui_show_registers): Update.
7864 (tui_show_register_group): Return void. Update.
7865 (tui_display_registers_from, tui_display_reg_element_at_line)
7866 (tui_display_registers_from_line, tui_check_register_values):
7867 Update.
7868 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7869 member.
7870 (struct tui_data_window) <regs_content>: Now a std::vector.
7871 <regs_content_count>: Remove.
7872 (tui_add_content_elements, tui_free_data_content): Don't declare.
7873 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7874 (init_content_element): Remove DATA_WIN case. Add assert.
7875 (tui_add_content_elements): Remove.
7876 (tui_data_window): Update.
7877 (tui_free_data_content): Remove.
7878 (free_content_elements): Remove DATA_WIN case.
7879
7880 2019-06-25 Tom Tromey <tom@tromey.com>
7881
7882 * tui/tui-data.c (tui_data_item_window): Update.
7883 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7884 * tui/tui-windata.c (tui_display_all_data)
7885 (tui_display_data_from_line): Update.
7886 (tui_check_data_values): Remove.
7887 * tui/tui-regs.c (tui_show_register_group)
7888 (tui_display_reg_element_at_line): Update.
7889 * tui/tui-hooks.c (tui_register_changed)
7890 (tui_refresh_frame_and_register_information): Call
7891 tui_check_register_values.
7892 * tui/tui-data.h (struct tui_data_window) <data_content,
7893 data_content_count, data_type>: Remove.
7894 (enum tui_data_type): Remove.
7895
7896 * tui/tui-data.c (tui_data_window::clear_detail)
7897 (~tui_data_window): Update.
7898
7899 2019-06-25 Tom Tromey <tom@tromey.com>
7900
7901 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7902 declare.
7903 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7904 Rename from tui_first_data_item_displayed. Update.
7905 (tui_data_window::refresh_all)
7906 (tui_data_window::do_scroll_vertical): Update.
7907 * tui/tui-data.h (struct tui_data_window)
7908 <first_data_item_displayed>: Declare new method.
7909
7910 2019-06-25 Tom Tromey <tom@tromey.com>
7911
7912 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7913 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7914 contents...
7915 (tui_initialize_static_data): ...here.
7916
7917 2019-06-25 Tom Tromey <tom@tromey.com>
7918
7919 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7920 (tui_display_registers_from, tui_check_register_values): Update.
7921 (tui_display_register): Remove win_info parameter; update.
7922 (tui_get_register): Change type of parameters.
7923 * tui/tui-data.h (struct tui_data_element): Remove.
7924 (union tui_which_element) <data>: Remove.
7925 <data_window>: Change type.
7926 (struct tui_data_item_window): New.
7927 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7928 case. Add assert.
7929 (~tui_data_item_window): New destructor.
7930 (free_content_elements): Remove DATA_ITEM_WIN case.
7931
7932 2019-06-25 Tom Tromey <tom@tromey.com>
7933
7934 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7935 Remove.
7936
7937 2019-06-25 Tom Tromey <tom@tromey.com>
7938
7939 * tui/tui-data.h (struct tui_command_element): Remove.
7940 (union tui_which_element) <command>: Remove.
7941 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7942 assert.
7943 (free_content_elements): Remove CMD_WIN case.
7944
7945 2019-06-25 Tom Tromey <tom@tromey.com>
7946
7947 * tui/tui-layout.c (tui_set_layout): Update.
7948 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7949 * tui/tui-data.c (layout_def): Update.
7950
7951 2019-06-25 Tom Tromey <tom@tromey.com>
7952
7953 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7954 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7955 (tui_source_window_base::set_new_height): Update.
7956 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7957 Update.
7958 (tui_set_locator_fullname, tui_set_locator_info)
7959 (tui_show_frame_info): Update.
7960 * tui/tui-source.c (tui_set_source_content)
7961 (tui_source_is_displayed): Update.
7962 * tui/tui-layout.c (show_source_disasm_command, show_data)
7963 (show_source_or_disasm_and_command): Update.
7964 * tui/tui-disasm.c (tui_set_disassem_content)
7965 (tui_get_begin_asm_address): Update.
7966 * tui/tui-data.h (struct tui_locator_element): Remove.
7967 (union tui_which_element) <locator>: Remove.
7968 (struct tui_locator_window): New.
7969 (tui_locator_win_info_ptr): Change return type.
7970 * tui/tui-data.c (_locator): Change type.
7971 (tui_locator_win_info_ptr): Change return type.
7972 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7973 (tui_alloc_content): Add assert.
7974
7975 2019-06-25 Tom Tromey <tom@tromey.com>
7976
7977 * tui/tui-winsource.c
7978 (tui_exec_info_window::maybe_allocate_content): New method.
7979 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7980 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7981 (make_source_or_disasm_window): Add cast.
7982 * tui/tui-data.h (union tui_which_element) <simple_string>:
7983 Remove.
7984 (struct tui_source_info): New.
7985 (struct tui_source_window_base) <execution_info>: Change type.
7986 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7987 case, and add assert.
7988 (tui_alloc_content): Add assert.
7989
7990 2019-06-25 Tom Tromey <tom@tromey.com>
7991
7992 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7993 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7994 * tui/tui-data.c (tui_alloc_win_info): Remove.
7995
7996 2019-06-25 Tom Tromey <tom@tromey.com>
7997
7998 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7999 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8000 can_highlight.
8001
8002 2019-06-25 Tom Tromey <tom@tromey.com>
8003
8004 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8005 make_visible_with_new_height method.
8006 (tui_win_info::make_visible_with_new_height): New method.
8007 (tui_source_window_base::do_make_visible_with_new_height)
8008 (tui_data_window::do_make_visible_with_new_height)
8009 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8010 (make_visible_with_new_height): Remove.
8011 (tui_resize_all, tui_adjust_win_heights): Use
8012 make_visible_with_new_height method.
8013 * tui/tui-data.h (struct tui_win_info)
8014 <do_make_visible_with_new_height, make_visible_with_new_height>:
8015 New methods.
8016 (struct tui_source_window_base, struct tui_data_window)
8017 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8018 methods.
8019
8020 2019-06-25 Tom Tromey <tom@tromey.com>
8021
8022 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8023 method.
8024 (update_tab_width): Call update_tab_width method.
8025 * tui/tui-data.h (struct tui_win_info)
8026 (struct tui_source_window_base) <update_tab_width>: New methods.
8027
8028 2019-06-25 Tom Tromey <tom@tromey.com>
8029
8030 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8031 parameter.
8032 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8033 parameter.
8034 (tui_gen_win_info::make_visible): Update.
8035 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8036 parameter.
8037 * tui/tui-data.h (enum tui_box): New enum.
8038 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8039
8040 2019-06-25 Tom Tromey <tom@tromey.com>
8041
8042 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8043 init_and_make_win for EXEC_INFO_WIN.
8044 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8045 longer inline.
8046 (struct tui_win_info) <~tui_win_info>: Inline.
8047 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8048 Don't declare.
8049 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8050 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8051 Remove.
8052 (tui_initialize_static_data): Update.
8053 (~tui_gen_win_info): Handle more cleanup here.
8054 (~tui_source_window_base): Delete "execution_info".
8055 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8056
8057 2019-06-25 Tom Tromey <tom@tromey.com>
8058
8059 * tui/tui-layout.c (make_command_window): Don't set
8060 can_highlight.
8061 (show_source_disasm_command): Call the reset method.
8062 (show_data): Don't set can_highlight. Call the reset method.
8063 (tui_gen_win_info::reset): Rename from init_gen_win_info
8064 (init_and_make_win): Simplify. Return tui_gen_win_info.
8065 (show_source_or_disasm_and_command): Call the reset method.
8066 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8067 (struct tui_cmd_window): Set can_highlight.
8068
8069 2019-06-25 Tom Tromey <tom@tromey.com>
8070
8071 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8072 from make_visible.
8073 (tui_make_visible, tui_make_invisible): Rewrite.
8074 (tui_win_info::make_visible): Remove.
8075 (tui_source_window_base::make_visible): Update.
8076 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8077 method. Moved from...
8078 (struct tui_win_info) <make_visible>: ...here.
8079
8080 2019-06-25 Tom Tromey <tom@tromey.com>
8081
8082 * tui/tui-winsource.c
8083 (tui_source_window_base::do_scroll_horizontal): Remove direction
8084 parameter.
8085 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8086 direction parameter.
8087 * tui/tui-win.c (tui_win_info::forward_scroll)
8088 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8089 (tui_win_info::right_scroll): Update.
8090 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8091 direction parameter.
8092 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8093 direction parameter.
8094 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8095 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8096 Remove direction parameter.
8097 (struct tui_source_window_base, struct tui_source_window)
8098 (struct tui_disasm_window, struct tui_data_window)
8099 (struct tui_cmd_window): Update.
8100
8101 2019-06-25 Tom Tromey <tom@tromey.com>
8102
8103 * tui/tui-winsource.h (tui_set_exec_info_content)
8104 (tui_show_exec_info_content, tui_erase_exec_info_content)
8105 (tui_clear_exec_info_content, tui_update_exec_info): Change
8106 argument to tui_source_window_base.
8107 * tui/tui-winsource.c (tui_set_exec_info_content)
8108 (tui_show_exec_info_content, tui_erase_exec_info_content)
8109 (tui_clear_exec_info_content, tui_update_exec_info): Change
8110 argument to tui_source_window_base.
8111
8112 2019-06-25 Tom Tromey <tom@tromey.com>
8113
8114 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8115 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8116
8117 2019-06-25 Tom Tromey <tom@tromey.com>
8118
8119 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8120 check.
8121
8122 2019-06-25 Tom Tromey <tom@tromey.com>
8123
8124 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8125 type to void.
8126 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8127 type to void.
8128 * tui/tui-source.c (tui_set_source_content): Update.
8129 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8130
8131 2019-06-25 Tom Tromey <tom@tromey.com>
8132
8133 * tui/tui-win.c (window_name_completer, tui_set_focus)
8134 (tui_all_windows_info): Use name method.
8135 * tui/tui-data.h (struct tui_gen_win_info)
8136 (struct tui_source_window, struct tui_disasm_window)
8137 (struct tui_data_window, struct tui_cmd_window) <name>: New
8138 method.
8139 (tui_win_name): Don't declare.
8140 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8141 (tui_win_name): Remove.
8142
8143 2019-06-25 Tom Tromey <tom@tromey.com>
8144
8145 * tui/tui-winsource.h (tui_update_source_window)
8146 (tui_update_source_window_as_is): Change parameter type.
8147 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8148 to be a tui_source_window_base.
8149 (tui_update_source_window_as_is): Likewise.
8150 * tui/tui-win.c (make_visible_with_new_height): Update.
8151
8152 2019-06-25 Tom Tromey <tom@tromey.com>
8153
8154 * tui/tui-winsource.c (tui_erase_source_content)
8155 (tui_show_source_content, tui_show_exec_info_content)
8156 (tui_erase_exec_info_content): Use refresh_window method.
8157 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8158 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8159 from tui_refresh_win.
8160 (tui_data_window::refresh_window): New method.
8161 (tui_win_info::refresh, tui_source_window_base::refresh)
8162 (tui_refresh_all): Use refresh_window method.
8163 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8164 method.
8165 * tui/tui-regs.c (tui_display_register): Call refresh_window
8166 method.
8167 * tui/tui-layout.c (show_source_disasm_command)
8168 (show_source_or_disasm_and_command): Call refresh_window method.
8169 * tui/tui-data.h (struct tui_gen_win_info)
8170 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8171 New method.
8172
8173 2019-06-25 Tom Tromey <tom@tromey.com>
8174
8175 * tui/tui.c (tui_rl_other_window, tui_enable)
8176 (tui_is_window_visible, tui_get_command_dimension): Update.
8177 * tui/tui-winsource.c (tui_update_source_window_as_is)
8178 (tui_clear_source_content, tui_erase_source_content)
8179 (tui_show_source_line, tui_source_window_base::refill)
8180 (tui_source_window_base::do_scroll_horizontal)
8181 (tui_source_window_base::set_is_exec_point_at)
8182 (tui_update_breakpoint_info, tui_set_exec_info_content)
8183 (tui_alloc_source_buffer, tui_line_is_displayed)
8184 (tui_addr_is_displayed): Update.
8185 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8186 (tui_check_and_display_highlight_if_needed)
8187 (tui_win_info::make_visible, tui_win_info::refresh)
8188 (tui_refresh_all): Update.
8189 * tui/tui-windata.c (tui_first_data_item_displayed)
8190 (tui_delete_data_content_windows, tui_erase_data_content)
8191 (tui_display_all_data, tui_data_window::refresh_all)
8192 (tui_check_data_values): Update.
8193 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8194 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8195 (tui_win_info::backward_scroll, tui_refresh_all_win)
8196 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8197 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8198 (tui_source_window_base::set_new_height)
8199 (tui_data_window::set_new_height)
8200 (make_invisible_and_set_new_height)
8201 (make_visible_with_new_height, new_height_ok)
8202 (parse_scrolling_args): Update.
8203 * tui/tui-stack.c (tui_show_frame_info): Update.
8204 * tui/tui-source.c (tui_set_source_content)
8205 (tui_set_source_content_nil, tui_source_is_displayed)
8206 (tui_source_window::do_scroll_vertical): Update.
8207 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8208 (tui_display_registers_from, tui_display_reg_element_at_line)
8209 (tui_check_register_values, tui_reg_command): Update.
8210 * tui/tui-layout.c (tui_default_win_height)
8211 (show_source_disasm_command, show_data, init_and_make_win)
8212 (show_source_or_disasm_and_command): Update.
8213 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8214 (tui_redisplay_readline, tui_mld_flush)
8215 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8216 (tui_getc): Update.
8217 * tui/tui-disasm.c (tui_set_disassem_content)
8218 (tui_disasm_window::do_scroll_vertical): Update.
8219 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8220 Now virtual.
8221 (struct tui_win_info): Derive from tui_gen_win_info.
8222 <~tui_win_info>: Mark as override.
8223 <generic>: Remove member.
8224 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8225 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8226 (~tui_data_window, ~tui_win_info)
8227 (tui_free_all_source_wins_content): Update.
8228 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8229
8230 2019-06-25 Tom Tromey <tom@tromey.com>
8231
8232 * tui/tui-layout.c (init_and_make_win): Use new.
8233 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8234 destructor, initializers.
8235 (tui_alloc_generic_win_info): Don't declare.
8236 * tui/tui-data.c (_locator): Add argument to constructor.
8237 (source_win, disasm_win): New globals.
8238 (exec_info): Remove.
8239 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8240 Update.
8241 (tui_alloc_generic_win_info): Remove.
8242 (init_content_element): Use new.
8243 (tui_win_info::tui_win_info): Update.
8244 (free_content_elements) <case DATA_WIN>: Use delete.
8245
8246 2019-06-25 Tom Tromey <tom@tromey.com>
8247
8248 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8249 * tui/tui-windata.c (tui_first_data_item_displayed)
8250 (tui_delete_data_content_windows): Update.
8251 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8252 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8253 (tui_display_registers_from, tui_check_register_values): Update.
8254 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8255 pointer.
8256 * tui/tui-data.c (init_content_element): Update. Allocate the new
8257 window.
8258 (tui_free_data_content): Update.
8259 (free_content_elements) <case DATA_WIN>: Free the window.
8260
8261 2019-06-25 Tom Tromey <tom@tromey.com>
8262
8263 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8264 Update.
8265 * tui/tui-layout.c (make_command_window)
8266 (show_source_disasm_command, show_data, init_and_make_win)
8267 (show_source_or_disasm_and_command): Update.
8268 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8269 method.
8270 <can_highight, is_highlighted>: Now bool.
8271 (tui_set_win_highlight): Don't declare.
8272 * tui/tui-data.c (tui_set_win_highlight): Remove.
8273
8274 2019-06-25 Tom Tromey <tom@tromey.com>
8275
8276 * tui/tui-wingeneral.c (make_visible): Remove check of window
8277 type.
8278
8279 2019-06-25 Tom Tromey <tom@tromey.com>
8280
8281 * tui/tui-win.c (tui_win_info::max_height)
8282 (tui_cmd_window::max_height): New methods.
8283 (new_height_ok): Call max_height.
8284 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8285 <max_height>: New method.
8286
8287 2019-06-25 Tom Tromey <tom@tromey.com>
8288
8289 * tui/tui-win.c (tui_source_window_base::set_new_height)
8290 (tui_data_window::set_new_height): New methods.
8291 (make_invisible_and_set_new_height): Call set_new_height method.
8292 * tui/tui-data.h (struct tui_win_info)
8293 (struct tui_source_window_base, struct tui_data_window)
8294 <set_new_height>: New method.
8295
8296 2019-06-25 Tom Tromey <tom@tromey.com>
8297
8298 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8299 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8300 tui_refresh_data_win.
8301 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8302 method.
8303 (tui_refresh_all_win): Call the refresh_all method.
8304 (tui_set_focus): Likewise.
8305 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8306 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8307 Likewise.
8308
8309 2019-06-25 Tom Tromey <tom@tromey.com>
8310
8311 * tui/tui-winsource.h (tui_refill_source_window)
8312 (tui_set_is_exec_point_at): Don't declare.
8313 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8314 (tui_source_window_base::refill): Rename from
8315 tui_refill_source_window.
8316 (tui_source_window_base::do_scroll_horizontal): Update.
8317 (tui_source_window_base::set_is_exec_point_at): Rename from
8318 tui_set_is_exec_point_at.
8319 (tui_update_all_breakpoint_info): Update.
8320 * tui/tui-stack.c (tui_show_frame_info): Update.
8321 * tui/tui-layout.c (show_data): Add cast.
8322 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8323 * tui/tui-data.h (struct tui_source_window_base) <refill,
8324 set_is_exec_point_at>: New methods.
8325 (tui_source_windows, tui_add_to_source_windows): Update types.
8326 (tui_add_to_source_windows): Remove redundant declaration.
8327 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8328 (tui_source_windows): Change return type.
8329 (tui_clear_source_windows_detail): Update.
8330 (tui_add_to_source_windows): Change type of parameter.
8331 (tui_free_all_source_wins_content): Update.
8332
8333 2019-06-25 Tom Tromey <tom@tromey.com>
8334
8335 * tui/tui-wingeneral.c (tui_win_info::refresh)
8336 (tui_source_window_base::refresh): New methods.
8337 (tui_refresh_all): Call the refresh method.
8338 * tui/tui-data.h (struct tui_win_info)
8339 (struct tui_source_window_base) <refresh>: New method.
8340
8341 2019-06-25 Tom Tromey <tom@tromey.com>
8342
8343 * tui/tui.h (tui_is_window_visible): Return bool.
8344 * tui/tui.c (tui_is_window_visible): Return bool.
8345 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8346 (tui_make_visible, tui_make_invisible)
8347 (tui_win_info::make_visible)
8348 (tui_source_window_base::make_visible, make_all_visible)
8349 (tui_make_all_visible, tui_make_all_invisible): Update.
8350 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8351 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8352 bool.
8353 (struct tui_win_info, struct tui_source_window_base)
8354 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8355 * tui/tui-data.c (tui_init_generic_part): Update.
8356
8357 2019-06-25 Tom Tromey <tom@tromey.com>
8358
8359 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8360 (tui_source_window_base::make_visible): New methods.
8361 (make_all_visible): Make method call.
8362 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8363 (struct tui_source_window_base, struct tui_cmd_window): Override
8364 make_visible.
8365 (tui_win_is_source_type): Don't declare.
8366 * tui/tui-data.c (tui_win_is_source_type): Remove.
8367
8368 2019-06-25 Tom Tromey <tom@tromey.com>
8369
8370 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8371 NULL check.
8372
8373 2019-06-25 Tom Tromey <tom@tromey.com>
8374
8375 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8376 Inline constructor. Add initializers for members.
8377 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8378 constructors; now inline in class.
8379
8380 2019-06-25 Tom Tromey <tom@tromey.com>
8381
8382 * tui/tui-regs.c (tui_show_registers): Update.
8383 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8384 bool.
8385 * tui/tui-data.c (tui_data_window::clear_detail)
8386 (tui_data_window): Update.
8387
8388 2019-06-25 Tom Tromey <tom@tromey.com>
8389
8390 * tui/tui-windata.c (tui_display_all_data)
8391 (tui_display_data_from_line, tui_display_data_from)
8392 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8393 Update.
8394 * tui/tui-regs.c (tui_last_regs_line_no)
8395 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8396 (tui_show_registers, tui_show_register_group)
8397 (tui_display_registers_from, tui_display_reg_element_at_line)
8398 (tui_display_registers_from_line, tui_check_register_values)
8399 (tui_reg_next, tui_reg_prev): Update.
8400 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8401 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8402 tui_data_window.
8403 (struct tui_win_info) <detail>: Remove. Add new fields from
8404 tui_data_info.
8405 (TUI_DATA_WIN): Add cast.
8406 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8407 (~tui_data_window): Simplify.
8408
8409 2019-06-25 Tom Tromey <tom@tromey.com>
8410
8411 * tui/tui-layout.c (show_source_disasm_command)
8412 (show_source_or_disasm_and_command): Update.
8413 * tui/tui-io.c (update_cmdwin_start_line)
8414 (tui_redisplay_readline): Update.
8415 * tui/tui-data.h (struct tui_command_info): Remove.
8416 (struct tui_win_info) <detail>: Remove command_info member.
8417 (struct tui_data_window) <start_line>: New member, from
8418 tui_command_info.
8419 (TUI_CMD_WIN): Add casts.
8420
8421 2019-06-25 Tom Tromey <tom@tromey.com>
8422
8423 * tui/tui-winsource.c (tui_update_source_window)
8424 (tui_refill_source_window)
8425 (tui_source_window_base::do_scroll_horizontal)
8426 (tui_update_breakpoint_info, tui_set_exec_info_content)
8427 (tui_show_exec_info_content, tui_erase_exec_info_content)
8428 (tui_clear_exec_info_content): Update.
8429 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8430 Update.
8431 * tui/tui-win.c (make_invisible_and_set_new_height)
8432 (make_visible_with_new_height): Update.
8433 * tui/tui-source.c (tui_set_source_content)
8434 (tui_show_symtab_source): Update.
8435 * tui/tui-layout.c (extract_display_start_addr)
8436 (show_source_disasm_command, show_data)
8437 (make_source_or_disasm_window)
8438 (show_source_or_disasm_and_command): Update.
8439 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8440 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8441 "gdbarch".
8442 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8443 to tui_source_window_base.
8444 (struct tui_win_info) <detail>: Remove source_info member.
8445 (struct tui_source_window_base) <has_locator>: Inline.
8446 Move contents from tui_source_info; rename has_locator member to
8447 m_has_locator.
8448 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8449 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8450 header file.
8451 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8452 Simplify.
8453 (tui_free_all_source_wins_content): Cast to
8454 tui_source_window_base.
8455
8456 2019-06-25 Tom Tromey <tom@tromey.com>
8457
8458 * tui/tui-win.c (make_invisible_and_set_new_height)
8459 (make_visible_with_new_height): Call has_locator method.
8460 * tui/tui-layout.c (show_source_disasm_command, show_data)
8461 (show_source_or_disasm_and_command): Update for bool change.
8462 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8463 (tui_win_info) <has_locator>: New method.
8464 (struct tui_source_window_base) <has_locator>: New method.
8465 (tui_win_has_locator): Don't declare.
8466 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8467 from tui_win_has_locator.
8468 (tui_source_window_base): Use false, not FALSE.
8469
8470 2019-06-25 Tom Tromey <tom@tromey.com>
8471
8472 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8473 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8474 clear_detail method directly.
8475 (tui_clear_win_detail): Remove.
8476
8477 2019-06-25 Tom Tromey <tom@tromey.com>
8478
8479 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8480 "this", not TUI_DISASM_WIN.
8481
8482 2019-06-25 Tom Tromey <tom@tromey.com>
8483
8484 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8485 declare.
8486 * tui/tui-winsource.c
8487 (tui_source_window_base::do_scroll_horizontal): Rename from
8488 tui_horizontal_source_scroll.
8489 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8490 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8491 from tui_vertical_data_scroll.
8492 * tui/tui-win.h (tui_scroll): Don't declare.
8493 * tui/tui-win.c (tui_win_info::forward_scroll)
8494 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8495 (tui_win_info::right_scroll): Rename and update.
8496 (tui_scroll_forward_command, tui_scroll_backward_command)
8497 (tui_scroll_left_command, tui_scroll_right_command): Update.
8498 (tui_scroll): Remove.
8499 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8500 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8501 from tui_vertical_source_scroll.
8502 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8503 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8504 from tui_vertical_disassem_scroll.
8505 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8506 do_scroll_horizontal>: New methods.
8507 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8508 Likewise.
8509 (struct tui_source_window_base): Add do_scroll_horizontal.
8510 (struct tui_source_window, struct tui_disasm_window): Add
8511 do_scroll_vertical.
8512 (struct tui_data_window, struct tui_cmd_window): Add
8513 do_scroll_horizontal and do_scroll_vertical.
8514 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8515
8516 2019-06-25 Tom Tromey <tom@tromey.com>
8517
8518 * tui/tui-data.h (struct tui_source_window_base): New struct.
8519 (struct tui_source_window): Derive from tui_source_window_base.
8520 (struct tui_disasm_window): New struct.
8521 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8522 from tui_source_window::clear_detail.
8523 (tui_source_window_base): Rename from tui_source_window.
8524 (~tui_source_window_base): Rename from ~tui_source_window.
8525 (tui_alloc_win_info): Create a tui_disasm_window.
8526
8527 2019-06-25 Tom Tromey <tom@tromey.com>
8528
8529 * tui/tui-data.h (struct tui_source_window)
8530 (struct tui_data_window): Declare destructors.
8531 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8532 destructors.
8533 (tui_win_info): Simplify.
8534
8535 2019-06-25 Tom Tromey <tom@tromey.com>
8536
8537 * tui/tui-winsource.c (tui_display_main)
8538 (tui_update_source_windows_with_addr)
8539 (tui_update_all_breakpoint_info): Update.
8540 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8541 (new_height_ok, parse_scrolling_args): Update.
8542 * tui/tui-stack.c (tui_show_frame_info): Update.
8543 * tui/tui-data.h (struct tui_list): Remove.
8544 (tui_source_windows): Return a reference to a std::vector.
8545 * tui/tui-data.c (source_windows): Now a std::vector.
8546 (tui_source_windows): Change return type.
8547 (tui_clear_source_windows): Rewrite.
8548 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8549 (tui_free_all_source_wins_content): Rewrite.
8550
8551 2019-06-25 Tom Tromey <tom@tromey.com>
8552
8553 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8554 (struct tui_data_window, struct tui_cmd_window): Declare
8555 clear_detail method.
8556 * tui/tui-data.c (tui_source_window::clear_detail)
8557 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8558 methods.
8559 (tui_clear_win_detail): Simplify.
8560
8561 2019-06-25 Tom Tromey <tom@tromey.com>
8562
8563 * tui/tui-layout.c (make_source_window, make_disasm_window)
8564 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8565 Return the new window.
8566 (show_source_disasm_command, show_data)
8567 (show_source_or_disasm_and_command): Update.
8568
8569 2019-06-25 Tom Tromey <tom@tromey.com>
8570
8571 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8572 parameter. Return the new window.
8573 (show_source_disasm_command): Update and remove NULL check.
8574 (show_source_or_disasm_and_command): Update.
8575
8576 2019-06-25 Tom Tromey <tom@tromey.com>
8577
8578 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8579
8580 2019-06-25 Tom Tromey <tom@tromey.com>
8581
8582 * tui/tui-data.h (struct tui_win_info): Make constructor
8583 protected. Make destructor virtual. Add initializers.
8584 (tui_source_window, tui_data_window, tui_cmd_window): New
8585 classes.
8586 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8587 constructor. Add "type" parameter.
8588 (tui_source_window, tui_data_window, tui_cmd_window): New
8589 constructors.
8590 (tui_alloc_win_info): Instantiate the appropriate subclass.
8591
8592 2019-06-25 Tom Tromey <tom@tromey.com>
8593
8594 * tui/tui-win.c (tui_resize_all): Use delete.
8595 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8596 destructor.
8597 (tui_free_window): Don't declare.
8598 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8599 Update.
8600
8601 2019-06-25 Tom Tromey <tom@tromey.com>
8602
8603 * tui/tui-data.h (struct tui_win_info): Add constructor.
8604 * tui/tui-data.c (tui_alloc_win_info): Use new.
8605 (tui_free_window): Use delete.
8606
8607 2019-06-22 Tom Tromey <tom@tromey.com>
8608
8609 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8610 declare.
8611 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8612
8613 2019-06-22 Tom Tromey <tom@tromey.com>
8614
8615 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8616 declare.
8617 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8618
8619 2019-06-22 Tom de Vries <tdevries@suse.de>
8620
8621 * dwarf2read.c (create_addrmap_from_aranges)
8622 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8623 instead of '%zu'.
8624
8625 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8626
8627 * dwarf2read.h (dwarf2_section_info_def): Remove.
8628 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8629 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8630 std::vector<dwarf2_section_info>.
8631 (struct dwo_file) <~dwo_file>: Remove.
8632 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8633 types field.
8634 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8635 (dwarf2_read_debug_names): Likewise.
8636 (create_debug_types_hash_table): Change parameter type to
8637 array_view, adjust code accordingly.
8638 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8639 (partial_die_info::fixup): Likewise.
8640 (determine_prefix): Likewise.
8641 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8642
8643 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8644
8645 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8646 gdb_bfd_ref_ptr.
8647 <~dwo_file>: Remove call to gdb_bfd_unref.
8648 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8649 gdb_bfd_ref_ptr::get.
8650
8651 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8652
8653 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8654 type to htab_up.
8655 * dwarf2read.c (struct dwo_file): Initialize fields.
8656 <~dwo_file>: New.
8657 (free_dwo_file): Remove, move content to ~dwo_file.
8658 (struct dwo_file_deleter): Remove.
8659 (dwo_file_up>: Remove custom deleter.
8660 (free_dwo_files): Remove.
8661 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8662 dwo_files.
8663 (process_skeletonless_type_units): Call unique_ptr::get.
8664 (allocate_dwo_file_hash_table): Add deleter to created hash
8665 table. Change return type to htab_up.
8666 (lookup_dwo_file_slot): Don't memset dwo_file, call
8667 unique_ptr::get.
8668 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8669 (create_dwo_unit_in_dwp_v2): Likewise.
8670 (open_and_init_dwo_file): Likewise.
8671 (free_dwo_file_from_slot): Remove.
8672
8673 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8674
8675 * dwarf2read.h (struct dwarf2_section_info) <readin,
8676 is_virtual>: Change type to bool.
8677 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8678 true instead of 1.
8679
8680 2019-06-19 Tom Tromey <tom@tromey.com>
8681
8682 * tui/tui-data.h (tui_init_content_element): Don't declare.
8683
8684 2019-06-19 Tom Tromey <tom@tromey.com>
8685
8686 * tui/tui-data.h (tui_init_win_info): Don't declare.
8687
8688 2019-06-19 Tom de Vries <tdevries@suse.de>
8689
8690 * dwarf2read.h (abstract_to_concrete): Change type to
8691 std::unordered_map<sect_offset, std::vector<sect_offset>,
8692 gdb::hash_enum<sect_offset>>.
8693
8694 2019-06-19 Tom Tromey <tromey@adacore.com>
8695
8696 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8697 EVAL_AVOID_SIDE_EFFECTS specially.
8698
8699 2019-06-19 Tom Tromey <tromey@adacore.com>
8700
8701 * source-cache.c (highlighter): New global.
8702 (source_cache::get_source_lines): Create a highlighter on demand.
8703
8704 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8705
8706 * defs.h (deprecated_interactive_hook): Delete declaration.
8707 * interps.c (clear_interpreter_hooks): Remove use of
8708 deprecated_interactive_hook.
8709 * top.c (deprecated_interactive_hook): Delete definition.
8710 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8711
8712 2019-06-18 Tom de Vries <tdevries@suse.de>
8713
8714 PR gdb/24515
8715 * dwarf2read.h (abstract_to_concrete): Change type from
8716 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8717 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8718 * dwarf2read.c (read_variable): Update.
8719 (dwarf2_fetch_die_loc_sect_off): Update.
8720
8721 2019-06-17 Tom de Vries <tdevries@suse.de>
8722
8723 PR gdb/24617
8724 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8725 accessing parent[parent_len - 1].
8726
8727 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8728
8729 PR gdb/24364
8730 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8731 call dtrace_process_dof with NULL dof.
8732
8733 2019-06-16 Tom de Vries <tdevries@suse.de>
8734
8735 PR gdb/24445
8736 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8737
8738 2019-06-16 Tom Tromey <tom@tromey.com>
8739
8740 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8741 (make_all_visible): Use address of member.
8742
8743 2019-06-16 Tom Tromey <tom@tromey.com>
8744
8745 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8746 (tui_free_window, free_content, free_content_elements): Remove
8747 unnecessary cast.
8748 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8749 cast.
8750 * tui/tui-regs.c (tui_show_register_group)
8751 (tui_display_registers_from, tui_display_reg_element_at_line):
8752 Remove unnecessary cast.
8753
8754 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8755
8756 * linux-nat.c (normal_mask): Delete.
8757 (_initialize_linux_nat): Don't initialise normal_mask.
8758
8759 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8760
8761 PR gdb/24445
8762 * dwarf-index-write.h (write_psymtabs_to_index): Add
8763 dwz_basename parameter.
8764 * dwarf-index-write.c (write_gdbindex): Move file writing to
8765 write_gdbindex_1. Change return type void.
8766 (assert_file_size): Move up, remove filename parameter.
8767 (write_gdbindex_1): New function.
8768 (write_debug_names): Change return type to void, call
8769 assert_file_size.
8770 (struct index_wip_file): New struct.
8771 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8772 file logic to index_wip_file. Write index for dwz file if
8773 needed.
8774 (save_gdb_index_command): Pass basename of dwz file, if present.
8775 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8776 build-id of dwz file, if present.
8777 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8778 (dwarf2_get_dwz_file): Likewise.
8779 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8780 (dwarf2_get_dwz_file): Likewise.
8781
8782 2019-06-16 Tom Tromey <tom@tromey.com>
8783
8784 * coffread.c (process_coff_symbol): Use xstrdup.
8785 * value.c (create_internalvar): Use xstrdup.
8786
8787 2019-06-16 Tom Tromey <tom@tromey.com>
8788
8789 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8790 * breakpoint.c (stopin_command, stopat_command)
8791 (until_break_command, decode_location_default): Remove unnecessary
8792 cast.
8793 * utils.c (subset_compare): Remove unnecessary cast.
8794 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8795 cast.
8796 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8797 cast.
8798 * infcmd.c (path_command): Remove unnecessary cast.
8799 * coffread.c (decode_type): Remove unnecessary cast.
8800 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8801 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8802 * tui/tui-stack.c (tui_show_locator_content)
8803 (tui_show_frame_info): Remove unnecessary cast.
8804 * tui/tui-win.c (tui_scroll_forward_command)
8805 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8806 (parse_scrolling_args): Remove unnecessary cast.
8807 * tui/tui-data.c (init_win_info, tui_del_window)
8808 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8809 (free_content_elements): Remove unnecessary cast.
8810 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8811 unnecessary cast.
8812 * tui/tui-source.c (tui_set_source_content)
8813 (tui_vertical_source_scroll): Remove unnecessary cast.
8814 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8815 cast.
8816 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8817 * tui/tui-regs.c (tui_display_registers_from)
8818 (tui_display_register): Remove unnecessary cast.
8819 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8820 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8821 (make_visible): Remove unnecessary cast.
8822 * tui/tui-winsource.c (tui_erase_source_content)
8823 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8824 unnecessary cast.
8825 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8826 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8827 * stabsread.c (read_type, read_array_type, read_range_type):
8828 Remove unnecessary cast.
8829 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8830 (parse_symbol, parse_type, upgrade_type, parse_external)
8831 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8832 unnecessary cast.
8833 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8834
8835 2019-06-16 Tom Tromey <tom@tromey.com>
8836
8837 * tui/tui-data.c (tui_alloc_generic_win_info)
8838 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8839 checks.
8840
8841 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8842 Andrew Burgess <andrew.burgess@embecosm.com>
8843
8844 * f-typeprint.c (f_print_type): Don't return early for not
8845 associated or not allocated types.
8846 (f_type_print_varspec_suffix): Add print_rank parameter and print
8847 ranks of array types in case they dangling.
8848 (f_type_print_base): Add print_rank parameter.
8849
8850 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8851
8852 * NEWS: Mention new MI commands.
8853 * break-catch-throw.c (enum exception_event_kind): Move to
8854 breakpoint.h.
8855 (print_mention_exception_catchpoint): Output text as a single
8856 message.
8857 (catch_exception_command_1): Rename to...
8858 (catch_exception_event): ...this, make non-static, update header
8859 command, and change some parameter types.
8860 (catch_catch_command): Update for changes to
8861 catch_exception_command_1.
8862 (catch_throw_command): Likewise.
8863 (catch_rethrow_command): Likewise.
8864 * breakpoint.c (enum exception_event_kind): Delete.
8865 * breakpoint.h (enum exception_event_kind): Moved here from
8866 break-catch-throw.c.
8867 (catch_exception_event): Declare.
8868 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8869 (mi_cmd_catch_throw): New function.
8870 (mi_cmd_catch_rethrow): New function.
8871 (mi_cmd_catch_catch): New function.
8872 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8873 'catch-catch' entries.
8874 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8875 (mi_cmd_catch_rethrow): Declare.
8876 (mi_cmd_catch_catch): Declare.
8877
8878 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8879
8880 * annotate.c (annotate_source_line): Change return type to void,
8881 update implementation to match.
8882 * annotate.h (annotate_source_line): Change return type to void,
8883 update header comment.
8884 * stack.c (print_frame_info): Don't change what frame information
8885 is printed based on whether annotations are on or not.
8886
8887 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8888
8889 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8890 (annotate_source): Make static.
8891 (annotate_source_line): Moved from source.c and renamed from
8892 identify_source_line. Update the return type.
8893 * annotate.h (annotate_source): Delete declaration.
8894 (annotate_source_line): Declaration moved from source.h, and
8895 renamed from identify_source_line. Return type updated.
8896 * source.c (identify_source_line): Moved to annotate.c and renamed
8897 to annotate_source_line.
8898 (info_line_command): Remove check of annotation_level.
8899 * source.h (identify_source_line): Move declaration to annotate.h
8900 and rename to annotate_source_line.
8901 * stack.c: Add 'annotate.h' include.
8902 (print_frame_info): Remove check of annotation_level before
8903 calling annotate_source_line.
8904
8905 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8906
8907 * source-cache.c (source_cache::get_plain_source_lines): Use
8908 open_source_file_with_line_charpos instead of just
8909 open_source_file, remove call to find_source_lines.
8910 (source_cache::get_source_lines): Likewise.
8911 * source.c (find_source_lines): Make static.
8912 (get_filename_and_charpos): Renamed into...
8913 (open_source_file_with_line_charpos): ..this along with changes to
8914 return a scoped_fd, and some other minor clean ups.
8915 (identify_source_line): Use open_source_file_with_line_charpos.
8916 (search_command_helper): Use open_source_file_with_line_charpos
8917 instead of just open_source_file, remove call to
8918 find_source_lines.
8919 * source.h (open_source_file_with_line_charpos): Declare new
8920 function.
8921 (find_source_lines): Delete declaration.
8922
8923 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8924
8925 * source.c (get_filename_and_charpos): Remove fullname
8926 parameter.
8927 (identify_source_line): Update call to get_filename_and_charpos.
8928
8929 2019-06-14 Tom Tromey <tromey@adacore.com>
8930
8931 PR gdb/24502:
8932 * ui-style.h (skip_ansi_escape): Update comment.
8933 * ui-file.h (class no_terminal_escape_file): New class.
8934 * ui-file.c (no_terminal_escape_file::write)
8935 (no_terminal_escape_file::puts): New methods.
8936 * cli/cli-logging.c (handle_redirections): Use
8937 no_terminal_escape_file.
8938
8939 2019-06-14 Tom Tromey <tromey@adacore.com>
8940
8941 * NEWS: Move convenience variable news above Python news.
8942
8943 2019-06-14 Tom Tromey <tom@tromey.com>
8944
8945 * gnulib: Move directory to top-level.
8946 * configure.ac: Don't configure gnulib.
8947 * configure: Rebuild.
8948 * common/common-defs.h: Use new path to gnulib.
8949 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8950 (GNULIB_H): Remove.
8951 (INCGNU): Look in new gnulib location.
8952 (HFILES_NO_SRCDIR): Remove gnulib files.
8953 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8954 (generated_files): Remove GNULIB_H.
8955 ($(LIBGNU), all-lib): Remove targets.
8956 (distclean): Don't mention GNULIB_BUILDDIR.
8957 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8958
8959 2019-06-14 Tom Tromey <tromey@adacore.com>
8960
8961 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8962 Warn if symbol file does not provide any symbols.
8963
8964 2019-06-14 Tom Tromey <tromey@adacore.com>
8965
8966 * source.c (find_and_open_source): Respect basenames_may_differ.
8967
8968 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8969
8970 * annotate.c (annotate_breakpoints_invalid): Make use of
8971 scoped_restore_terminal_state.
8972 (annotate_frames_invalid): Likewise.
8973
8974 2019-06-14 Tom Tromey <tromey@adacore.com>
8975
8976 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8977 allow assignment to an internalvar.
8978
8979 2019-06-14 Tom Tromey <tromey@adacore.com>
8980
8981 * ada-lex.l: Allow "_" in attribute names.
8982
8983 2019-06-14 Tom Tromey <tromey@adacore.com>
8984
8985 PR gdb/24653:
8986 * regcache.c (registers_changed): Don't call alloca.
8987 * top.c (execute_command): Don't call alloca.
8988
8989 2019-06-13 Pedro Alves <palves@redhat.com>
8990
8991 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8992 'expression'. When parsing an expression, error out if there's
8993 junk after "unlimited".
8994 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8995 (do_set_command): Adjust calls to is_unlimited_literal.
8996
8997 2019-06-13 Pedro Alves <palves@redhat.com>
8998
8999 * compile/compile.c (make_compile_options_def_group): Add braces
9000 around array_view initializer.
9001 * thread.c (make_thread_apply_all_options_def_group)
9002 (make_thread_apply_all_options_def_group): Likewise.
9003
9004 2019-06-13 Pedro Alves <palves@redhat.com>
9005
9006 * NEWS (New commands): Mention "maint test-options
9007 require-delimiter", "maint test-options unknown-is-error", "maint
9008 test-options unknown-is-operand" and "maint show
9009 test-options-completion-result".
9010 (New command options, command completion): New section.
9011 (Completion improvements): New section.
9012 Mention that you can abbreviate "unlimited".
9013
9014 2019-06-13 Pedro Alves <palves@redhat.com>
9015
9016 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9017 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9018 * unittests/cli-utils-selftests.c (test_parse_flags)
9019 (test_parse_flags_qcs): Delete.
9020 (test_cli_utils): Don't call deleted functions.
9021
9022 2019-06-13 Pedro Alves <palves@redhat.com>
9023
9024 * thread.c: Include "cli/cli-option.h".
9025 (tp_array_compar_ascending): Global.
9026 (tp_array_compar): Delete function.
9027 (tp_array_compar_ascending, tp_array_compar_descending): New
9028 functions.
9029 (ascending_option_def, qcs_flag_option_def)
9030 (thr_qcs_flags_option_defs)
9031 (make_thread_apply_all_options_def_group)
9032 (make_thread_apply_options_def_group): New.
9033 (thread_apply_all_command): Use gdb::option::process_options.
9034 (thread_apply_command_completer)
9035 (thread_apply_all_command_completer): New.
9036 (thread_apply_command): Use gdb::option::process_options.
9037 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9038 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9039 to generate help text of "thread apply". Adjust "taas"'s help.
9040 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9041 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9042
9043 2019-06-13 Pedro Alves <palves@redhat.com>
9044
9045 * thread.c (thread_apply_command): Check for invalid TID with
9046 isdigit instead of !isalpha.
9047
9048 2019-06-13 Pedro Alves <palves@redhat.com>
9049
9050 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9051 (validate_flags_qcs): New.
9052 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9053 (validate_flags_qcs): Declare.
9054 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9055 (make_frame_apply_options_def_group): New.
9056 (frame_apply_command_count): Process options with
9057 gdb::option::process_options.
9058 (frame_apply_completer): New.
9059 (frame_apply_level_completer, frame_apply_all_completer)
9060 (frame_apply_completer): New.
9061 (_initialize_stack): Update help of "frame apply", "frame apply
9062 level", "frame apply all" and "faas" to mention supported options
9063 and install command completers.
9064 * stack.h (frame_apply_all_completer): Declare.
9065 * thread.c: Include "stack.h".
9066 (tfaas_command): Add "--".
9067 (_initialize_thread): Update help "tfaas" to mention supported
9068 options and install command completer.
9069
9070 2019-06-13 Pedro Alves <palves@redhat.com>
9071
9072 * completer.c (complete_nested_command_line): New.
9073 (gdb_completion_word_break_characters_throw): Add assertion.
9074 * completer.h (complete_nested_command_line): Declare.
9075
9076 2019-06-13 Pedro Alves <palves@redhat.com>
9077
9078 * stack.c (parse_backtrace_qualifiers): New.
9079 (backtrace_command): Use it.
9080 (backtrace_command_completer): Complete on qualifiers.
9081
9082 2019-06-13 Pedro Alves <palves@redhat.com>
9083
9084 * frame.c: Include "cli/cli-option.h.
9085 (user_set_backtrace_options): New.
9086 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9087 Delete.
9088 (get_prev_frame): Adjust.
9089 (boolean_option_def, uinteger_option_def)
9090 (set_backtrace_option_defs): New.
9091 (_initialize_frame): Adjust and use
9092 gdb::option::add_setshow_cmds_for_options to install "set
9093 backtrace past-main" and "set backtrace past-entry".
9094 * frame.h: Include "cli/cli-option.h".
9095 (struct frame_print_options): Forward declare.
9096 (print_frame_arguments_all, print_frame_arguments_scalars)
9097 (print_frame_arguments_none): Declare.
9098 (print_entry_values): Delete declaration.
9099 (struct frame_print_options, user_frame_print_options): New.
9100 (struct set_backtrace_options): New.
9101 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9102 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9103 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9104 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9105 (list_args_or_locals): Add frame_print_options parameter.
9106 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9107 * python/py-framefilter.c (enumerate_args): Pass down
9108 USER_FRAME_PRINT_OPTIONS.
9109 * stack.c: Include "cli/cli-option.h".
9110 (print_frame_arguments_all, print_frame_arguments_scalars)
9111 (print_frame_arguments_none): Declare.
9112 (print_raw_frame_arguments, print_entry_values): Delete.
9113 (user_frame_print_options): New.
9114 (boolean_option_def, enum_option_def, frame_print_option_defs):
9115 New.
9116 (struct backtrace_cmd_options): New.
9117 (bt_flag_option_def): New.
9118 (backtrace_command_option_defs): New.
9119 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9120 (print_frame_arg, read_frame_arg, print_frame_args)
9121 (print_frame_info, print_frame): Add frame_print_options parameter
9122 and use it.
9123 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9124 (backtrace_command_1): Add frame_print_options and
9125 backtrace_cmd_options parameters and use them.
9126 (make_backtrace_options_def_group): New.
9127 (backtrace_command): Process command options with
9128 gdb::option::process_options.
9129 (backtrace_command_completer): New.
9130 (_initialize_stack): Extend "backtrace"'s help to mention
9131 supported options. Install completer for "backtrace".
9132 Install some settings commands with add_setshow_cmds_for_options.
9133
9134 2019-06-13 Pedro Alves <palves@redhat.com>
9135
9136 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9137 and that "set/show print raw frame-arguments" are now deprecated.
9138
9139 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9140 command.
9141 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9142 * stack.c (_initialize_stack): Install "set/show print
9143 raw-frame-arguments", and deprecate "set/show print raw
9144 frame-arguments".
9145 * valprint.c (_initialize_valprint): Deprecate "set/show print
9146 raw".
9147
9148 2019-06-13 Pedro Alves <palves@redhat.com>
9149
9150 * compile/compile.c (struct compile_options): New.
9151 (compile_flag_option_def, compile_command_option_defs)
9152 (make_compile_options_def_group): New.
9153 (compile_file_command): Handle options with
9154 gdb::option::process_options.
9155 (compile_file_command_completer): New function.
9156 (compile_code_command): Handle options with
9157 gdb::option::process_options.
9158 (compile_code_command_completer): New function.
9159 (_initialize_compiler): Install completers for "compile code" and
9160 "compile file". Mention available options in "compile code" and
9161 "compile code"'s help.
9162 * completer.c (advance_to_completion_word): New, factored out from
9163 ...
9164 (advance_to_expression_complete_word_point): ... this.
9165 (advance_to_filename_complete_word_point): New.
9166 * completer.h (advance_to_filename_complete_word_point): New
9167 declaration.
9168
9169 2019-06-13 Pedro Alves <palves@redhat.com>
9170
9171 * compile/compile.c: Include "cli/cli-option.h".
9172 (compile_print_value): Scope data pointer is now a
9173 value_print_options pointer; adjust.
9174 (compile_print_command): Process options. Scope data pointer is
9175 now a value_print_options pointer; adjust.
9176 (_initialize_compile): Update "compile print"'s help to include
9177 supported options. Install a completer for "compile print".
9178 * cp-valprint.c (show_vtblprint, show_objectprint)
9179 (show_static_field_print): Delete.
9180 (_initialize_cp_valprint): Don't install "set print
9181 static-members", "set print vtbl", "set print object" here.
9182 * printcmd.c: Include "cli/cli-option.h" and
9183 "common/gdb_optional.h".
9184 (print_command_parse_format): Rework to fill in a
9185 value_print_options instead of a format_data.
9186 (print_value): Change parameter type from format_data pointer to
9187 value_print_options reference. Adjust.
9188 (print_command_1): Process options. Adjust to pass down a
9189 value_print_options.
9190 (print_command_completer): New.
9191 (_initialize_printcmd): Install print_command_completer as
9192 handle_brkchars completer for the "print" command. Update
9193 "print"'s help to include supported options.
9194 * valprint.c: Include "cli/cli-option.h".
9195 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9196 here from cp-valprint.c.
9197 (boolean_option_def, uinteger_option_def)
9198 (value_print_option_defs, make_value_print_options_def_group):
9199 New. Use gdb::option::add_setshow_cmds_for_options to install
9200 "set print elements", "set print null-stop", "set print repeats",
9201 "set print pretty", "set print union", "set print array", "set
9202 print address", "set print symbol", "set print array-indexes".
9203 * valprint.h: Include <string> and "cli/cli-option.h".
9204 (make_value_print_options_def_group): Declare.
9205 (print_value): Change parameter type from format_data pointer to
9206 value_print_options reference.
9207 (print_command_completer): Declare.
9208
9209 2019-06-13 Pedro Alves <palves@redhat.com>
9210
9211 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9212 (COMMON_SFILES): Add maint-test-settings.c.
9213 * cli/cli-decode.c (boolean_enums): New global, factored out from
9214 ...
9215 (add_setshow_boolean_cmd): ... here.
9216 * cli/cli-decode.h (boolean_enums): Declare.
9217 * cli/cli-option.c: New file.
9218 * cli/cli-option.h: New file.
9219 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9220 factored out from ...
9221 (parse_cli_boolean_value(const char *)): ... this.
9222 (is_unlimited_literal): Change parameter type to pointer to
9223 pointer. Adjust and advance ARG pointer.
9224 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9225 (parse_cli_var_enum): New, factored out from ...
9226 (do_set_command): ... this. Adjust.
9227 * cli/cli-setshow.h (parse_cli_boolean_value)
9228 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9229 (parse_cli_var_enum): Declare.
9230 * cli/cli-utils.c: Include "cli/cli-option.h".
9231 (get_ulongest): New.
9232 * cli/cli-utils.h (get_ulongest): Declare.
9233 (check_for_argument): New overloads.
9234 * maint-test-options.c: New file.
9235
9236 2019-06-13 Pedro Alves <palves@redhat.com>
9237
9238 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9239 parse a range if "-" is at the end of the string.
9240
9241 2019-06-13 Pedro Alves <palves@redhat.com>
9242
9243 * cli/cli-setshow.c (parse_auto_binary_operation)
9244 (parse_cli_boolean_value): Don't allow "o".
9245
9246 2019-06-13 Pedro Alves <palves@redhat.com>
9247
9248 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9249 * NEWS: Mention maint test-settings KIND.
9250 * maint-test-settings.c: New file.
9251
9252 2019-06-13 Pedro Alves <palves@redhat.com>
9253
9254 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9255 completer.
9256 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9257 "set" completers.
9258
9259 2019-06-13 Pedro Alves <palves@redhat.com>
9260
9261 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9262 after item.
9263
9264 2019-06-13 Pedro Alves <palves@redhat.com>
9265
9266 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9267
9268 2019-06-13 Pedro Alves <palves@redhat.com>
9269
9270 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9271 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9272 call.
9273 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9274 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9275 calls.
9276 (check_for_argument): Skip spaces after argument.
9277
9278 2019-06-13 Pedro Alves <palves@redhat.com>
9279
9280 * thread.c (thread_apply_command): Adjust TID parsing.
9281 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9282 detected before end of string.
9283 (tid_is_in_list): Error out if LIST is invalid.
9284
9285 2019-06-13 Pedro Alves <palves@redhat.com>
9286
9287 * completer.c (complete_line_internal_1): Rewind completion word
9288 point.
9289 (completion_tracker::advance_custom_word_point_by): Change
9290 parameter type to int.
9291 * completer.h (completion_tracker::advance_custom_word_point_by):
9292 Likewise.
9293
9294 2019-06-13 Pedro Alves <palves@redhat.com>
9295
9296 * completer.c (advance_to_completion_word): Handle delimiters.
9297
9298 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9299
9300 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9301
9302 2019-06-11 Tom Tromey <tom@tromey.com>
9303
9304 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9305 (xmalloc_failed): Move to alloc.c.
9306 * alloc.c: New file.
9307 * Makefile.in (COMMON_SFILES): Add alloc.c.
9308
9309 2019-06-11 Tom Tromey <tom@tromey.com>
9310
9311 * nat/linux-waitpid.c: Don't include server.h.
9312 (linux_debug): Remove.
9313 (my_waitpid): Update.
9314
9315 2019-06-11 Tom Tromey <tromey@adacore.com>
9316
9317 * infcall.c (_initialize_infcall): Remove trailing newline from
9318 help.
9319 * user-regs.c (_initialize_user_regs): Remove trailing newline
9320 from help.
9321 * typeprint.c (_initialize_typeprint): Remove trailing newline
9322 from help.
9323 * reverse.c (_initialize_reverse): Remove trailing newlines from
9324 help.
9325 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9326 from help.
9327 * language.c (add_set_language_command): Remove trailing newline
9328 from help.
9329 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9330 help.
9331 * disasm.c (_initialize_disasm): Remove trailing newline from
9332 help.
9333 * top.c (init_main): Remove trailing newline from help.
9334 * interps.c (_initialize_interpreter): Remove trailing newline
9335 from help.
9336 * btrace.c (_initialize_btrace): Remove trailing newlines from
9337 help.
9338 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9339 from help.
9340 * python/python.c (_initialize_python): Remove trailing newline
9341 from help.
9342 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9343 help.
9344 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9345 from help. Reformat some text.
9346 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9347 from help.
9348 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9349 newline from help.
9350
9351 2019-06-11 Tom Tromey <tromey@adacore.com>
9352
9353 * darwin-nat.c (darwin_decode_exception_message)
9354 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9355
9356 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9357
9358 * valops.c (value_slice): Check for not allocated or not
9359 associated values.
9360
9361 2019-06-10 Tom de Vries <tdevries@suse.de>
9362
9363 PR gdb/24618
9364 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9365 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9366 invalid.
9367
9368 2019-06-10 Tom de Vries <tdevries@suse.de>
9369
9370 PR gdb/24611
9371 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9372 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9373
9374 2019-06-10 Tom de Vries <tdevries@suse.de>
9375
9376 PR symtab/24545
9377 * symtab.c (struct demangled_name_entry): Add language field.
9378 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9379 static minimal symbol". Set and use language field.
9380
9381 2019-06-10 Tom Tromey <tromey@adacore.com>
9382
9383 * ada-lang.c (_initialize_ada_language): Update help text.
9384
9385 2019-06-10 Tom Tromey <tromey@adacore.com>
9386
9387 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9388 with a newline.
9389 * guile/guile.c (handle_boot_error): Don't end warning with a
9390 newline.
9391 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9392 warning with a newline.
9393 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9394 newline.
9395 (s12z_frame_cache): Likewise.
9396 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9397 a newline.
9398 * solib-svr4.c (disable_probes_interface): Don't end warning with
9399 a newline.
9400 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9401 newline.
9402 * python/python.c (do_finish_initialization): Don't end warning
9403 with a newline.
9404
9405 2019-06-10 Tom Tromey <tom@tromey.com>
9406
9407 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9408 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9409 gdbpy_enter.
9410
9411 2019-06-10 Tom Tromey <tromey@adacore.com>
9412
9413 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9414 data.
9415 (elf_new_init): Don't call stabsread_new_init.
9416 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9417 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9418 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9419
9420 2019-06-10 Tom de Vries <tdevries@suse.de>
9421
9422 PR symtab/16264
9423 PR symtab/24517
9424 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9425
9426 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9427
9428 * source.c (find_and_open_source): Also rewrite relative file
9429 names.
9430
9431 2019-04-26 Amos Bird <amosbird@gmail.com>
9432
9433 * annotate.c (annotate_thread_exited): Add "thread-exited"
9434 annotation.
9435
9436 2019-06-06 Tom Tromey <tromey@adacore.com>
9437
9438 * maint.h (class scoped_command_stats): Use
9439 DISABLE_COPY_AND_ASSIGN.
9440 <print_time>: New method.
9441 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9442 print_time.
9443 (scoped_command_stats::print_time): New method.
9444
9445 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9446
9447 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9448 instructions of lengths 6 or 8 bytes.
9449
9450 2019-06-04 Pedro Alves <palves@redhat.com>
9451
9452 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9453
9454 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9455 * breakpoint.c (condition_completer): Likewise.
9456 * cli/cli-dump.c (scan_expression): Likewise.
9457 * common/filestuff.c (mkdir_recursive): Likewise.
9458 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9459 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9460 (gdb_abspath): Likewise.
9461 * compile/compile-cplus-types.c
9462 (compile_cplus_instance::decl_name): Likewise.
9463 * completer.c (complete_explicit_location):
9464 (signal_completer, reg_or_group_completer_1): Likewise.
9465 * cp-support.c (cp_remove_params_if_any): Likewise.
9466 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9467 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9468 * infcmd.c (strip_bg_char): Likewise.
9469 * linespec.c (copy_token_string): Likewise.
9470 * mi/mi-main.c (output_cores): Likewise.
9471 * psymtab.c (psymtab_search_name):
9472 * symfile.c (test_set_ext_lang_command): Likewise.
9473 * target.c (target_fileio_read_stralloc): Likewise.
9474 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9475 * value.c (complete_internalvar): Likewise.
9476
9477 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9478
9479 Add objfile property to gdb.Type.
9480 * NEWS: Mention Python API addition.
9481 * python/py-type.c (typy_get_objfile): New method.
9482
9483 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9484
9485 * NEWS: Mention the new set|show style [title|highlight].
9486 Mention changes to "show style", "help" and "apropos".
9487
9488 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9489
9490 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9491 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9492 instead of print_help_for_command.
9493 (print_doc_of_command): New function.
9494 (help_list): Add 'apropos -v word' suggestion.
9495 (print_help_for_command): Style the command name using title style.
9496 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9497 (_initialize_cli_cmds): Describe -v in apropos_command help.
9498
9499 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9500
9501 * cli/cli-style.h (cli_style_option): Add name in constructor,
9502 add m_name class member, add constructor with intensity,
9503 add name class function.
9504 (cli_style_option::add_setshow_commands): Remove name argument.
9505 (highlight_style, title_style): New styles.
9506 * cli/cli-style.c (do_show): New function that shows a style
9507 characteristic styling the style name with itself.
9508 (set_style_name): New function.
9509 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9510 Update all callers according to the changes in cli/cli-style.h.
9511 * utils.h (fputs_highlighted): New function.
9512 * utils.c (fputs_highlighted): Likewise.
9513
9514 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9515
9516 * NEWS: Mention new pipe command and new convenience variables.
9517
9518 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9519
9520 * cli/cli-cmds.c (pipe_command): New function.
9521 (_initialize_cli_cmds): Call add_com for pipe_command.
9522 Define | as an alias for pipe.
9523 (exit_status_set_internal_vars): New function.
9524 (shell_escape): Call exit_status_set_internal_vars.
9525 cli/cli-decode.c (find_command_name_length): Recognize | as
9526 a single character command.
9527
9528 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9529
9530 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9531 top.c (execute_command_to_ui_file): New function, mostly a copy
9532 of execute_command_to_string.
9533 (execute_command_to_string): Implement by calling
9534 execute_command_to_ui_file.
9535
9536 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9537
9538 * top.h (saved_command_line): Remove declaration.
9539 * top.c (previous_saved_command_line, previous_repeat_arguments):
9540 New variables.
9541 (saved_command_line): Make static, define together with other
9542 'repeat variables'.
9543 (dont_repeat): Clear repeat_arguments.
9544 (repeat_previous, get_saved_command_line, save_command_line):
9545 New functions.
9546 (gdb_init): Initialize saved_command_line
9547 and previous_saved_command_line.
9548 * main.c (captured_main_1): Remove saved_command_line initialization.
9549 * event-top.c (handle_line_of_input): Update to use
9550 the new 'repeat' related functions instead of direct access to
9551 saved_command_line.
9552 * command.h (repeat_previous, get_saved_command_line,
9553 save_command_line): New declarations.
9554 (dont_repeat): Add comment.
9555
9556 2019-05-30 Tom Tromey <tromey@adacore.com>
9557
9558 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9559 Fix comment.
9560 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9561
9562 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9563
9564 PR cli/24587
9565 * completer.c (complete): Initialize variable word.
9566
9567 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9568
9569 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9570 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9571 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9572 'body' is NULL to the outter 'if', protecting the '!is_define'
9573 situation as well.
9574
9575 2019-05-29 Tom Tromey <tromey@adacore.com>
9576
9577 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9578 (dwarf_unknown): New function.
9579 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9580 (dwarf_type_encoding_name): Use dwarf_unknown.
9581
9582 2019-05-29 Tom Tromey <tromey@adacore.com>
9583
9584 PR c++/20020:
9585 * cp-valprint.c (cp_print_value_fields): Call
9586 cp_print_static_field inside "try".
9587
9588 2019-05-29 Tom Tromey <tromey@adacore.com>
9589
9590 * inflow.c (struct terminal_info): Add default operator=.
9591 * configure: Rebuild.
9592 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9593 -Wdeprecated-copy-dtor, -Wredundant-move.
9594
9595 2019-05-29 Tom Tromey <tromey@adacore.com>
9596
9597 * NEWS: Add entry.
9598 * infcmd.c (print_return_value_1): Handle finish_print
9599 option.
9600 (show_print_finish): New function.
9601 (_initialize_infcmd): Add "set/show print finish" commands.
9602 * valprint.c (user_print_options): Initialize new member.
9603 * valprint.h (struct value_print_options) <finish_print>: New
9604 member.
9605
9606 2019-05-28 Tom Tromey <tromey@adacore.com>
9607
9608 * ada-lang.c (ada_remove_Xbn_suffix)
9609 (find_old_style_renaming_symbol)
9610 (parse_old_style_renaming): Remove.
9611 (ada_find_renaming_symbol): Don't call
9612 find_old_style_renaming_symbol.
9613 (ada_is_renaming_symbol): Rename from
9614 ada_find_renaming_symbol. Remove "block" parameter. Return
9615 bool. Now static.
9616 (ada_read_var_value): Update and simplify.
9617 * ada-exp.y (write_var_or_type): Remove old code.
9618
9619 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9620
9621 PR gdb/25010
9622 * event-top.c: Remove include comment.
9623 * inflow.c (class scoped_ignore_sigttou): Move from here...
9624 * inflow.h (class scoped_ignore_sigttou): ...to here.
9625 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9626 * top.c: Remove include comment.
9627
9628 2019-05-27 Tom Tromey <tom@tromey.com>
9629
9630 * NEWS: Fix typo.
9631
9632 2019-05-22 Tom Tromey <tromey@adacore.com>
9633
9634 * target.c (target_follow_exec): Constify parameter.
9635 * target-delegates.c: Rebuild.
9636 * remote.c (remote_target::follow_exec): Constify parameter.
9637 * infrun.c (follow_exec): Constify parameter.
9638 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9639 (target_follow_exec): Likewise.
9640
9641 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9642
9643 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9644 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9645
9646 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9647
9648 * NEWS: Add debugredirect and testsuite sections.
9649
9650 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9651
9652 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9653 target descriptions using exclusively floating point register name
9654 aliases.
9655
9656 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9657
9658 PR gdb/18644:
9659 * f-lang.c (build_fortran_types): Handle the case where
9660 gdbarch_floatformat_for_type returns a nullptr.
9661
9662 2019-05-21 Tom de Vries <tdevries@suse.de>
9663
9664 PR cli/24587
9665 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9666
9667 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9668
9669 PR gdb/18644:
9670 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9671 16-byte floats.
9672 * i386-tdep.c (i386_floatformat_for_type): Use
9673 floatformats_ia64_quad for the 16-byte floating point component
9674 within a fortran 32-byte complex number.
9675
9676 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9677
9678 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9679 delete default constructor.
9680 (find_partial_die): Update to return const struct.
9681 (partial_die_parent_scope): Move variable declaration into scope
9682 of its use and change its type to auto.
9683 (guess_partial_die_structure_name): Likewise.
9684 (partial_die_info::fixup): Likewise.
9685
9686 2019-05-17 Tom Tromey <tromey@adacore.com>
9687
9688 * source.c (find_and_open_source): Remove cast.
9689
9690 2019-05-17 Tom Tromey <tromey@adacore.com>
9691
9692 * annotate.c (annotate_source): Make "filename" const.
9693 * annotate.h (annotate_source): Use const.
9694
9695 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9696
9697 * disasm.c (set_disassembler_options): Send errors to stderr.
9698
9699 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9700
9701 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9702 (cli_interp_base::set_logging): Check debug_redirect.
9703 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9704 * cli/cli-logging.c (debug_redirect): Add static variable.
9705 (pop_output_files): Add default param.
9706 (handle_redirections): Print debug setting.
9707 (show_logging_command): Likewise.
9708 (_initialize_cli_logging): Add debugredirect command.
9709 * interps.c (current_interp_set_logging): Add debug_redirect
9710 parameter.
9711 * interps.h (set_logging): Add debug_redirect parameter.
9712 (current_interp_set_logging): Likewise.
9713 * mi/mi-common.h: Likewise.
9714 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9715
9716 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9717 Tom Tromey <tromey@adacore.com>
9718
9719 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9720 directly.
9721 * cli/cli-interp.h (make_logging_output): Remove declaration.
9722 * cli/cli-logging.c (make_logging_output): Remove function.
9723 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9724 directly.
9725 * ui-file.c (tee_file::tee_file): Remove bools.
9726 (tee_file::~tee_file): Remove deletes.
9727 * ui-file.h (tee_file): Remove bools.
9728
9729 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9730
9731 * mi/mi-cmds.h (mi_cmd_complete): New function.
9732 * mi/mi-main.c (mi_cmd_complete): Likewise.
9733 * mi/mi-cmds.c: Define new MI command -complete.
9734 * NEWS: Mention new -complete command.
9735
9736 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9737
9738 * completer.h (complete): New function.
9739 * completer.c (complete): Likewise.
9740 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9741 function defined in completer.h.
9742
9743 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9744
9745 * MAINTAINERS (Write After Approval): Add myself.
9746
9747 2019-05-17 Tom de Vries <tdevries@suse.de>
9748
9749 PR gdb/24094
9750 * dwarf2read.c (struct cu_partial_die_info): New struct.
9751 (find_partial_die): Return cu_partial_die_info.
9752 (partial_die_parent_scope, guess_partial_die_structure_name)
9753 (partial_die_info::fixup): Handle new return type of find_partial_die.
9754
9755 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9756
9757 PR breakpoints/24541
9758 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9759 "std::string", simplifying the algorithm.
9760
9761 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9762
9763 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9764 (stap_static_probe_ops::get_probes): Likewise.
9765
9766 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9767
9768 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9769 '-')" and "else if".
9770 (stap_parse_single_operand): Join checks for
9771 "gdbarch_stap_parse_special_token_p" and
9772 "gdbarch_stap_parse_special_token" in the same "if" statement.
9773 Invert check when verifying for operation on register
9774 displacement.
9775
9776 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9777
9778 * stap-probe.c (stap_get_opcode): Update comment.
9779 (stap_get_expected_argument_type): Likewise.
9780 (handle_stap_probe): Likewise.
9781
9782 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9783
9784 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9785 return type to 'bool'. Adjust comment. Use 'bool' when
9786 appropriate.
9787 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9788 * stap-probe.c (stap_parse_argument_1): Likewise.
9789 (stap_is_operator): Likewise.
9790 (stap_is_generic_prefix): Likewise.
9791 (stap_is_register_prefix): Likewise.
9792 (stap_is_register_indirection_prefix): Likewise.
9793 (stap_is_integer_prefix): Likewise.
9794 (stap_generic_check_suffix): Likewise.
9795 (stap_check_integer_suffix): Likewise.
9796 (stap_check_register_suffix): Likewise.
9797 (stap_check_register_indirection_suffix): Likewise.
9798 (stap_parse_register_operand): Likewise.
9799 (stap_parse_single_operand): Likewise.
9800 (stap_parse_argument_1): Likewise.
9801 (stap_probe::get_argument_count): Likewise.
9802 (stap_is_operator): Likewise.
9803
9804 2019-05-16 Tom Tromey <tromey@adacore.com>
9805
9806 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9807 keyword to foreach.
9808
9809 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9810
9811 * linux-thread-db.c (try_thread_db_load_1): Change return type
9812 to bool.
9813 (try_thread_db_load): Likewise.
9814 (try_thread_db_load_from_pdir_1): Likewise.
9815 (try_thread_db_load_from_pdir): Likewise.
9816 (try_thread_db_load_from_sdir): Likewise.
9817 (try_thread_db_load_from_dir): Likewise.
9818 (thread_db_load_search): Likewise.
9819 (has_libpthread): Likewise.
9820 (thread_db_load): Likewise.
9821
9822 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9823
9824 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9825 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9826 NULL, and complain/return if that's the case.
9827
9828 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9829
9830 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9831 (advance, posn, abstract_read_memory): New functions.
9832 [struct mem_read_abstraction]: New struct.
9833 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9834
9835 2019-05-14 Tom Tromey <tromey@adacore.com>
9836
9837 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9838 value is not lval_memory.
9839
9840 2019-05-14 Tom Tromey <tromey@adacore.com>
9841
9842 * solib.c (info_sharedlibrary_command): Style the file name.
9843
9844 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9845
9846 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9847 (aarch64_vnv_type): Likewise.
9848 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9849 * common/tdesc.c: Likewise.
9850 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9851 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9852 * features/aarch64-fpu.xml: Add ieee half view.
9853 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9854 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9855 * gdbtypes.h (struct builtin_type): Likewise.
9856 (struct objfile_type): Likewise.
9857
9858 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9859
9860 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9861 typo.
9862 * location.h (string_to_event_location): Likewise.
9863
9864 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9865
9866 GDB 8.3 released.
9867
9868 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9869
9870 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9871 New variable declaration.
9872 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9873 New variable.
9874 (print_one_breakpoint): Use ui_out::test_flags and new global
9875 variable to compute use_fixed_output.
9876 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9877 Remove.
9878 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9879 (mi_multi_location_breakpoint_output_fixed): Remove.
9880 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9881 new variable.
9882 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9883 fix_multi_location_breakpoint_output flag if version >= 3.
9884 * ui-out.h (enum ui_out_flag)
9885 <fix_multi_location_breakpoint_output>: New enumerator.
9886
9887 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9888
9889 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9890
9891 2019-05-10 Tom Tromey <tromey@adacore.com>
9892
9893 * ada-lang.c (catch_ada_completer): New function.
9894 (_initialize_ada_language): Use it.
9895
9896 2019-05-10 Tom Tromey <tromey@adacore.com>
9897
9898 * thread.c (print_thread_info): Make "requested_threads" const.
9899 * gdbthread.h (print_thread_info): Make "requested_threads"
9900 const.
9901 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9902 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9903
9904 2019-05-08 Tom Tromey <tom@tromey.com>
9905
9906 * gdbtypes.c (objfile_type_data): Change type.
9907 (objfile_type, _initialize_gdbtypes): Update.
9908
9909 2019-05-08 Tom Tromey <tom@tromey.com>
9910
9911 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9912 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9913 (_initialize_dwarf2_frame): Update.
9914
9915 2019-05-08 Tom Tromey <tom@tromey.com>
9916
9917 * objc-lang.c (objc_objfile_data): Change type.
9918 (find_methods): Update.
9919 (_initialize_objc_lang): Remove.
9920
9921 2019-05-08 Tom Tromey <tom@tromey.com>
9922
9923 * stabsread.c (rs6000_builtin_type_data): Change type.
9924 (rs6000_builtin_type, _initialize_stabsread): Update.
9925
9926 2019-05-08 Tom Tromey <tom@tromey.com>
9927
9928 * mips-tdep.c (mips_pdr_data): Remove.
9929 (_initialize_mips_tdep): Update.
9930
9931 2019-05-08 Tom Tromey <tom@tromey.com>
9932
9933 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9934 (hppa_init_objfile_priv_data, read_unwind_info)
9935 (find_unwind_entry, _initialize_hppa_tdep): Update.
9936
9937 2019-05-08 Tom Tromey <tom@tromey.com>
9938
9939 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9940 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9941 on obstack.
9942 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9943
9944 2019-05-08 Tom Tromey <tom@tromey.com>
9945
9946 * mdebugread.c (basic_type_data): Change type.
9947 (basic_type, _initialize_mdebugread): Update.
9948
9949 2019-05-08 Tom Tromey <tom@tromey.com>
9950
9951 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9952
9953 2019-05-08 Tom Tromey <tom@tromey.com>
9954
9955 * nto-tdep.c (nto_inferior_data_reg): Change type.
9956 (nto_inferior_data): Update.
9957 (nto_inferior_data_cleanup, nto_new_inferior_data)
9958 (_initialize_nto_tdep): Remove.
9959 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9960
9961 2019-05-08 Tom Tromey <tom@tromey.com>
9962
9963 * ada-lang.c (struct ada_inferior_data): Add initializers.
9964 (ada_inferior_data): Change type.
9965 (ada_inferior_data_cleanup): Remove.
9966 (get_ada_inferior_data, ada_inferior_exit)
9967 (struct ada_pspace_data): Add initializers, destructor.
9968 (ada_pspace_data_handle): Change type.
9969 (get_ada_pspace_data): Update.
9970 (ada_pspace_data_cleanup): Remove.
9971
9972 2019-05-08 Tom Tromey <tom@tromey.com>
9973
9974 * coffread.c (struct coff_symfile_info): Add initializers.
9975 (coff_objfile_data_key): Move lower. Change type.
9976 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9977 Update.
9978 (coff_free_info): Remove.
9979
9980 2019-05-08 Tom Tromey <tom@tromey.com>
9981
9982 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9983 (fbsd_pspace_data_handle): Move lower. Change type.
9984 (get_fbsd_pspace_data): Update.
9985 (fbsd_pspace_data_cleanup): Remove.
9986 (_initialize_fbsd_tdep): Update.
9987
9988 2019-05-08 Tom Tromey <tom@tromey.com>
9989
9990 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9991 (get_ada_tasks_pspace_data): Update.
9992 (ada_tasks_pspace_data_cleanup): Remove.
9993 (_initialize_tasks): Update.
9994 (ada_tasks_inferior_data_handle): Change type.
9995 (get_ada_tasks_inferior_data): Update.
9996 (ada_tasks_inferior_data_cleanup): Remove.
9997 (struct ada_tasks_pspace_data): Add initializers.
9998
9999 2019-05-08 Tom Tromey <tom@tromey.com>
10000
10001 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10002 * symfile-debug.c (debug_sym_get_probes): Change type.
10003 * stap-probe.c (handle_stap_probe):
10004 (stap_static_probe_ops::get_probes): Change type.
10005 * probe.h (class static_probe_ops) <get_probes>: Change type.
10006 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10007 (parse_probes_in_pspace): Update.
10008 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10009 Update.
10010 (any_static_probe_ops::get_probes): Change type.
10011 * elfread.c (elfread_data): New typedef.
10012 (probe_key): Change type.
10013 (elf_get_probes): Likewise. Update.
10014 (probe_key_free): Remove.
10015 (_initialize_elfread): Update.
10016 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10017 Change type.
10018 (dtrace_process_dof_probe, dtrace_process_dof)
10019 (dtrace_static_probe_ops::get_probe): Change type.
10020
10021 2019-05-08 Tom Tromey <tom@tromey.com>
10022
10023 * xcoffread.c (struct xcoff_symfile_info): Rename from
10024 coff_symfile_info. Add initializers.
10025 (xcoff_objfile_data_key): Move lower. Change type.
10026 (XCOFF_DATA): Rewrite.
10027 (xcoff_free_info): Remove.
10028 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10029 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10030 (xcoff_initial_scan): Update.
10031
10032 2019-05-08 Tom Tromey <tom@tromey.com>
10033
10034 * solib-svr4.c (struct svr4_info): Add initializers and
10035 destructor.
10036 <probes_table>: Now an htab_up.
10037 (solib_svr4_pspace_data): Change type.
10038 (free_probes_table): Simplify.
10039 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10040 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10041 (probes_table_remove_objfile_probes, register_solib_event_probe)
10042 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10043 (_initialize_svr4_solib): Update.
10044
10045 2019-05-08 Tom Tromey <tom@tromey.com>
10046
10047 * remote.c (remote_pspace_data): Change type.
10048 (remote_pspace_data_cleanup): Remove.
10049 (get_remote_exec_file, set_pspace_remote_exec_file)
10050 (_initialize_remote): Update.
10051
10052 2019-05-08 Tom Tromey <tom@tromey.com>
10053
10054 * breakpoint.c (breakpoint_objfile_key): Change type.
10055 (get_breakpoint_objfile_data): Update.
10056 (free_breakpoint_objfile_data): Remove.
10057 (_initialize_breakpoint): Update.
10058
10059 2019-05-08 Tom Tromey <tom@tromey.com>
10060
10061 * linux-tdep.c (struct linux_info): Add initializers.
10062 (linux_inferior_data): Move. Change type.
10063 (invalidate_linux_cache_inf): Update.
10064 (linux_inferior_data_cleanup): Remove.
10065 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10066
10067 2019-05-08 Tom Tromey <tom@tromey.com>
10068
10069 * auxv.c (auxv_inferior_data): Move. Change type.
10070 (auxv_inferior_data_cleanup): Remove.
10071 (invalidate_auxv_cache_inf): Rewrite.
10072 (get_auxv_inferior_data, _initialize_auxv): Update.
10073
10074 2019-05-08 Tom Tromey <tom@tromey.com>
10075
10076 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10077 (symfile_debug_objfile_data_key): Change type.
10078 (symfile_debug_installed, debug_qf_has_symbols)
10079 (debug_qf_find_last_source_symtab)
10080 (debug_qf_forget_cached_source_info)
10081 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10082 (debug_qf_print_stats, debug_qf_dump)
10083 (debug_qf_expand_symtabs_for_function)
10084 (debug_qf_expand_all_symtabs)
10085 (debug_qf_expand_symtabs_with_fullname)
10086 (debug_qf_map_matching_symbols)
10087 (debug_qf_expand_symtabs_matching)
10088 (debug_qf_find_pc_sect_compunit_symtab)
10089 (debug_qf_map_symbol_filenames)
10090 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10091 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10092 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10093 (debug_sym_read_linetable, debug_sym_relocate): Update.
10094 (symfile_debug_free_objfile): Remove.
10095 (install_symfile_debug_logging, _initialize_symfile_debug):
10096 Update.
10097
10098 2019-05-08 Tom Tromey <tom@tromey.com>
10099
10100 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10101 allocate_on_obstack.
10102 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10103 (get_dwarf2_per_objfile): Update.
10104 (set_dwarf2_per_objfile): Remove.
10105 (dwarf2_has_info, dwarf2_get_section_info): Update.
10106 (dwarf2_free_objfile): Remove.
10107 (_initialize_dwarf2_read): Update.
10108
10109 2019-05-08 Tom Tromey <tom@tromey.com>
10110
10111 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10112 initializers.
10113 <unsupported_script_warning_printed,
10114 script_not_found_warning_printed>: Now bool.
10115 (auto_load_pspace_data): Change type.
10116 (~auto_load_pspace_info): Rename from
10117 auto_load_pspace_data_cleanup.
10118 (get_auto_load_pspace_data, init_loaded_scripts_info)
10119 (clear_section_scripts, maybe_print_unsupported_script_warning)
10120 (maybe_print_script_not_found_warning, _initialize_auto_load):
10121 Update.
10122
10123 2019-05-08 Tom Tromey <tom@tromey.com>
10124
10125 * objfiles.c (objfile_pspace_info): Add destructor and
10126 initializers.
10127 (objfiles_pspace_data): Change type.
10128 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10129 (get_objfile_pspace_data): Update.
10130 (objfiles_bfd_data): Change type.
10131 (get_objfile_bfd_data): Update.
10132 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10133
10134 2019-05-08 Tom Tromey <tom@tromey.com>
10135
10136 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10137 Change type.
10138 (get_catch_syscall_inferior_data): Update.
10139 (catch_syscall_inferior_data_cleanup): Remove.
10140 (_initialize_break_catch_syscall): Update.
10141
10142 2019-05-08 Tom Tromey <tom@tromey.com>
10143
10144 * inflow.c (struct terminal_info): Add destructor and
10145 initializers.
10146 (inflow_inferior_data): Change type.
10147 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10148 (get_inflow_inferior_data, inflow_inferior_exit)
10149 (swap_terminal_info, _initialize_inflow): Update.
10150
10151 2019-05-08 Tom Tromey <tom@tromey.com>
10152
10153 * target-dcache.c (target_dcache_cleanup): Remove.
10154 (target_dcache_aspace_key): Change type.
10155 (target_dcache_init_p, target_dcache_invalidate)
10156 (target_dcache_get, target_dcache_get_or_init)
10157 (_initialize_target_dcache): Update.
10158 * dcache.h (struct dcache_deleter): New.
10159
10160 2019-05-08 Tom Tromey <tom@tromey.com>
10161
10162 * symtab.c (struct symbol_cache): Add destructor and
10163 initializers.
10164 (symbol_cache_key): Move. Change type.
10165 (make_symbol_cache, free_symbol_cache): Remove.
10166 (get_symbol_cache): Update.
10167 (symbol_cache_cleanup): Remove.
10168 (ALL_PSPACES, symbol_cache_flush)
10169 (maintenance_print_symbol_cache)
10170 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10171 Update.
10172
10173 2019-05-08 Tom Tromey <tom@tromey.com>
10174
10175 * symtab.c (struct main_info): Add destructor and initializers.
10176 (main_progspace_key): Move. Change type.
10177 (get_main_info): Update.
10178 (main_info_cleanup): Remove.
10179 (_initialize_symtab): Update.
10180
10181 2019-05-08 Tom Tromey <tom@tromey.com>
10182
10183 * registry.h (DECLARE_REGISTRY): Define the _key class.
10184
10185 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10186
10187 * NEWS: Merge two 'New commands' sections.
10188
10189 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10190
10191 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10192 parameter and use Ada language definition instead.
10193 (ada_val_print_ptr): Remove unused language parameter.
10194 (ada_val_print_num): Remove language parameter and use Ada language
10195 definition instead.
10196 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10197 parameter.
10198 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10199 parameter and use Ada language definition instead.
10200 (ada_val_print_1): Update all ada_val_print_xxx calls.
10201 Remove language parameter.
10202 (ada_val_print): Update ada_val_print_1 call.
10203
10204 2019-05-08 Tom Tromey <tromey@adacore.com>
10205
10206 * remote.c (remote_hw_watchpoint_limit)
10207 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10208 Now static.
10209
10210 2019-05-08 Tom Tromey <tromey@adacore.com>
10211
10212 * maint.c (_initialize_maint_cmds): Move initialization code to
10213 remote.c.
10214 (watchdog, show_watchdog): Move to remote.c.
10215 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10216 "watchdog" static.
10217 (_initialize_remote): Move initialization code from maint.c.
10218 * defs.h (watchdog): Don't declare.
10219
10220 2019-05-08 Tom Tromey <tromey@adacore.com>
10221
10222 * tui/tui-interp.c: Include main.h.
10223 * interps.c: Include main.h.
10224 * main.h (interpreter_p): Declare.
10225 * defs.h (interpreter_p): Don't declare.
10226
10227 2019-05-08 Tom Tromey <tromey@adacore.com>
10228
10229 * dwarf2loc.c: Include dwarf2read.h.
10230 * defs.h (read_unsigned_leb128): Don't declare.
10231 * dwarf2read.h (read_unsigned_leb128): Declare.
10232
10233 2019-05-08 Tom Tromey <tromey@adacore.com>
10234
10235 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10236 method.
10237
10238 2019-05-08 Tom Tromey <tromey@adacore.com>
10239
10240 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10241 when no wrap column is set.
10242
10243 2019-05-08 Tom Tromey <tromey@adacore.com>
10244
10245 * c-lang.c (c_get_string): Handle non-C-style arrays.
10246
10247 2019-05-08 Tom Tromey <tromey@adacore.com>
10248
10249 * typeprint.c (print_offset_data::update): Print the bit offset,
10250 not the number of bits remaining.
10251
10252 2019-05-08 Tom Tromey <tromey@adacore.com>
10253
10254 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10255 padding at end of comment.
10256
10257 2019-05-08 Tom Tromey <tromey@adacore.com>
10258
10259 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10260 Compare main types.
10261
10262 2019-05-06 Tom Tromey <tom@tromey.com>
10263
10264 * common/scoped_mmap.c: Include common-defs.h.
10265 * common/scoped_mmap.h: Don't include config.h.
10266
10267 2019-05-04 Tom Tromey <tom@tromey.com>
10268
10269 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10270 (struct aarch64_call_info): Add initializers.
10271 <si>: Now a std::vector.
10272 (pass_on_stack, aarch64_push_dummy_call): Update.
10273
10274 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10275 Tom Tromey <tom@tromey.com>
10276
10277 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10278 (ppc_threads): Now a std::vector. Now static.
10279 (hwdebug_find_thread_points_by_tid)
10280 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10281 Update.
10282
10283 2019-05-04 Tom Tromey <tom@tromey.com>
10284
10285 * arc-tdep.c (arc_tdesc_init): Return bool.
10286
10287 2019-05-04 Tom Tromey <tom@tromey.com>
10288
10289 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10290 Use gdb_assert_not_reached.
10291
10292 2019-05-04 Tom Tromey <tom@tromey.com>
10293
10294 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10295 "false".
10296
10297 2019-05-04 Tom Tromey <tom@tromey.com>
10298
10299 * arc-tdep.c (arc_tdesc_init): Use bool.
10300
10301 2019-05-04 Tom Tromey <tom@tromey.com>
10302
10303 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10304
10305 2019-05-04 Tom Tromey <tom@tromey.com>
10306
10307 * cli/cli-cmds.c (valid_command_p): Return bool.
10308
10309 2019-05-04 Tom Tromey <tom@tromey.com>
10310
10311 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10312 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10313
10314 2019-05-04 Raul Tambre <raul@tambre.ee>
10315
10316 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10317 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10318 operator for comparison.
10319
10320 2019-05-04 Tom Tromey <tom@tromey.com>
10321
10322 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10323 (lookup_partial_symbol, print_partial_symbols)
10324 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10325 (psymbol_compare): Update.
10326 (add_psymbol_to_bcache): Clear the entire psymbol.
10327 (maintenance_check_psymtabs): Update.
10328 * psympriv.h (struct partial_symbol): Don't derive from
10329 general_symbol_info.
10330 <obj_section, unrelocated_address, address,
10331 set_unrelocated_address>: Update.
10332 <ginfo>: New member.
10333 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10334 (debug_names::write_psymbols): Update.
10335
10336 2019-05-04 Tom de Vries <tdevries@suse.de>
10337
10338 * contrib/cc-with-tweaks.sh: Support -n arg.
10339
10340 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10341
10342 * corelow.c (core_target::detach): Ensure frame cache and
10343 register caches are cleared.
10344 inferior.c (exit_inferior_1): Likewise.
10345
10346 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10347 Tom Tromey <tom@tromey.com>
10348
10349 * dictionary.c (collate_pending_symbols_by_language): Remove
10350 "struct" from foreach.
10351 * symtab.c (lookup_global_symbol_from_objfile)
10352 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10353 foreach.
10354 * ser-tcp.c (net_open): Remove "struct" from foreach.
10355 * objfiles.c (objfile_relocate, objfile_rebase)
10356 (objfile_has_symbols): Remove "struct" from foreach.
10357 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10358 from foreach.
10359 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10360 foreach.
10361 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10362 "struct" from foreach.
10363 * ada-lang.c (create_excep_cond_exprs)
10364 (ada_exception_catchpoint_cond_string): Remove "struct" from
10365 foreach.
10366
10367 2019-05-03 Tom Tromey <tromey@adacore.com>
10368
10369 * ada-exp.y (convert_char_literal): Check suffix of each
10370 enumerator.
10371
10372 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10373
10374 PR ada/21406:
10375 * ada-exp.y (yywrap): Don't define.
10376 * ada-lex.l (%option): Add noyywrap
10377 (yywrap): Remove.
10378
10379 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10380
10381 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10382 _WIN32_WINNT to the XP level, unless already defined to a higher
10383 level.
10384
10385 * unittests/parse-connection-spec-selftests.c:
10386 * ser-tcp.c:
10387 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10388 override.
10389
10390 * symfile.c (find_separate_debug_file): Remove colon from the
10391 drive spec of DOS/Windows file names of the target, so that the
10392 file name produced from DEBUGDIR and the target's directory will
10393 be valid on DOS/Windows systems.
10394
10395 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10396
10397 * rust-lang.c (val_print_struct): Handle printing structures
10398 containing strings.
10399
10400 2019-05-02 Tom Tromey <tromey@adacore.com>
10401
10402 * valarith.c (_initialize_valarith): Remove.
10403
10404 2019-05-01 Tom Tromey <tromey@adacore.com>
10405
10406 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10407 bitfields.
10408
10409 2019-05-01 Tom Tromey <tromey@adacore.com>
10410
10411 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10412 for big-endian copies.
10413
10414 2019-04-30 Ali Tamur <tamur@google.com>
10415 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10416 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10417 (read_3_bytes): New function.
10418
10419 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10420
10421 * windows-nat.c (main_thread_id): Delete.
10422 (handle_output_debug_string): Replace main_thread_id by
10423 current_event.dwThreadId.
10424 (fake_create_process): Likewise.
10425 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10426 Do not set main_thread_id.
10427 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10428 current_event.dwThreadId.
10429 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10430
10431 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10432
10433 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10434 Use current_event.dwThreadId instead of main_thread_id.
10435
10436 2019-04-30 Tom Tromey <tromey@adacore.com>
10437
10438 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10439 (create_excep_cond_exprs): Iterate over program spaces.
10440 (ada_exception_catchpoint_cond_string): Examine all minimal
10441 symbols for exception types.
10442
10443 2019-04-30 Tom Tromey <tromey@adacore.com>
10444
10445 PR c++/24470:
10446 * dwarf2read.c (process_structure_scope): Handle case where type
10447 has template parameters but no symbol was created.
10448
10449 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10450 Chris January <chris.january@arm.com>
10451
10452 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10453 qualifier.
10454 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10455
10456 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10457
10458 * f-typeprint.c (f_print_type): Update rules for printing
10459 whitespace.
10460 (f_type_print_varspec_suffix): Likewise.
10461
10462 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10463 Chris January <chris.january@arm.com>
10464
10465 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10466 function arguments.
10467
10468 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10469
10470 * f-lang.c (build_fortran_types): Change name of void type to
10471 lower case.
10472 * f-typeprint.c (f_type_print_base): Print the name of the void
10473 type, rather than a fixed string.
10474 * f-valprint.c (f_decorations): Use lower case void string.
10475
10476 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10477 Chris January <chris.january@arm.com>
10478
10479 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10480 types for Fortran.
10481
10482 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10483 Chris January <chris.january@arm.com>
10484 David Lecomber <david.lecomber@arm.com>
10485
10486 * f-exp.y (BINOP_INTRINSIC): New token.
10487 (exp): New parser rule handling BINOP_INTRINSIC.
10488 (f77_keywords): Add new builtin procedures.
10489 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10490 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10491 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10492 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10493 (print_unop_subexp_f): New function.
10494 (print_binop_subexp_f): New function.
10495 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10496 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10497 (dump_subexp_body_f): Likewise.
10498 (operator_check_f): Likewise.
10499 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10500 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10501
10502 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10503
10504 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10505 UNOP_KIND.
10506 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10507 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10508 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10509 (operator_length_f): New fuction.
10510 (print_subexp_f): New function.
10511 (op_name_f): New function.
10512 (dump_subexp_body_f): New function.
10513 (operator_check_f): New function.
10514 (exp_descriptor_f): Replace standard expression handling functions
10515 with new functions.
10516 * gdb/fortran-operator.def: New file.
10517 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10518 * gdb/std-operator.def: Remove UNOP_KIND.
10519
10520 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10521
10522 * std-operator.def: Remove unbalanced, stray double quote
10523 character.
10524
10525 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10526 Chris January <chris.january@arm.com>
10527 Daniel Everett <daniel.everett@arm.com>
10528 Nick Forrington <nick.forrington@arm.com>
10529 Richard Bunt <richard.bunt@arm.com>
10530
10531 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10532 of depth when printing anonymous structs or unions.
10533 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10534 Don't print either the top-level value, or the children if the
10535 max-depth is exceeded.
10536 (ppscm_print_children): When printing the key of a map, allow one
10537 extra level of depth.
10538 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10539 print either the top-level value, or the children if the max-depth
10540 is exceeded.
10541 (print_children): When printing the key of a map, allow one extra
10542 level of depth.
10543 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10544 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10545 (user_print_options): Initialise max_depth field.
10546 (val_print_scalar_or_string_type_p): New function.
10547 (val_print): Check to see if the max depth has been reached.
10548 (val_print_check_max_depth): Define new function.
10549 (show_print_max_depth): New function.
10550 (_initialize_valprint): Add 'print max-depth' option.
10551 * valprint.h (struct value_print_options) <max_depth>: New field.
10552 (val_print_check_max_depth): Declare new function.
10553 * NEWS: Document new feature.
10554
10555 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10556
10557 * ada-lang.c (ada_language_defn): Initialise new field.
10558 * c-lang.c (c_is_string_type_p): New function.
10559 (c_language_defn): Initialise new field.
10560 (cplus_language_defn): Initialise new field.
10561 (asm_language_defn): Initialise new field.
10562 (minimal_language_defn): Initialise new field.
10563 * c-lang.h (c_is_string_type_p): Declare new function.
10564 * d-lang.c (d_language_defn): Initialise new field.
10565 * f-lang.c (f_is_string_type_p): New function.
10566 (f_language_defn): Initialise new field.
10567 * go-lang.c (go_is_string_type_p): New function.
10568 (go_language_defn): Initialise new field.
10569 * language.c (default_is_string_type_p): New function.
10570 (unknown_language_defn): Initialise new field.
10571 (auto_language_defn): Initialise new field.
10572 * language.h (struct language_defn) <la_is_string_type_p>: New
10573 member variable.
10574 (default_is_string_type_p): Declare new function.
10575 * m2-lang.c (m2_language_defn): Initialise new field.
10576 * objc-lang.c (objc_language_defn): Initialise new field.
10577 * opencl-lang.c (opencl_language_defn): Initialise new field.
10578 * p-lang.c (pascal_is_string_type_p): New function.
10579 (pascal_language_defn): Initialise new field.
10580 * rust-lang.c (rust_is_string_type_p): New function.
10581 (rust_language_defn): Initialise new field.
10582
10583 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10584
10585 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10586 New field.
10587 * ada-lang.c (ada_language_defn): Initialise new field.
10588 * c-lang.c (c_language_defn): Likewise.
10589 (cplus_language_defn): Likewise.
10590 (asm_language_defn): Likewise.
10591 (minimal_language_defn): Likewise.
10592 * d-lang.c (d_language_defn): Likewise.
10593 * f-lang.c (f_language_defn): Likewise.
10594 * go-lang.c (go_language_defn): Likewise.
10595 * language.c (unknown_language_defn): Likewise.
10596 (auto_language_defn): Likewise.
10597 * m2-lang.c (m2_language_defn): Likewise.
10598 * objc-lang.c (objc_language_defn): Likewise.
10599 * opencl-lang.c (opencl_language_defn): Likewise.
10600 * p-lang.c (pascal_language_defn): Likewise.
10601 * rust-lang.c (rust_language_defn): Likewise.
10602
10603 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10604
10605 * ada-lang.c (ada_is_character_type): Change return type to bool.
10606 (ada_is_string_type): Likewise.
10607 * ada-lang.h (ada_is_character_type): Update declaration
10608 (ada_is_string_type): Likewise.
10609
10610 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10611
10612 Support style in 'frame|thread apply'
10613
10614 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10615 * record.c (record_start, record_stop): Update callers of
10616 execute_command_to_string with false.
10617 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10618 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10619 methods.
10620 (class string_file): New constructor with term_out parameter.
10621 Override methods term_out and can_emit_style_escape. New member
10622 term_out.
10623 (class stdio_file): Override can_emit_style_escape.
10624 (class tee_file): Override term_out and can_emit_style_escape.
10625 * utils.h (can_emit_style_escape): Remove.
10626 * utils.c (can_emit_style_escape): Likewise.
10627 Update all callers of can_emit_style_escape (SOMESTREAM) to
10628 SOMESTREAM->can_emit_style_escape.
10629 * source-cache.c (source_cache::get_source_lines): Likewise.
10630 * stack.c (frame_apply_command_count): Call execute_command_to_string
10631 passing the term_out characteristic of the current gdb_stdout.
10632 * thread.c (thr_try_catch_cmd): Likewise.
10633 * top.c (execute_command_to_string): pass term_out parameter
10634 to construct the string_file for the command output.
10635 * ui-file.c (term_cli_styling): New function (most code moved
10636 from utils.c can_emit_style_escape).
10637 (string_file::string_file, string_file::can_emit_style_escape,
10638 stdio_file::can_emit_style_escape, tee_file::term_out,
10639 tee_file::can_emit_style_escape): New functions.
10640
10641 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10642
10643 * NEWS: Mention the new set|show may-call-functions.
10644 * infcall.c (may_call_functions_p): New variable.
10645 (show_may_call_functions_p): New function.
10646 (call_function_by_hand_dummy): Throws an error if not
10647 may-call-functions.
10648 (_initialize_infcall): Call add_setshow_boolean_cmd for
10649 may-call-functions.
10650
10651 2019-04-25 Keith Seitz <keiths@redhat.com>
10652
10653 PR c++/24367
10654 * cp-support.c (inspect_type): Don't attempt substitutions
10655 of symbol with the same name.
10656
10657 2019-04-25 Tom Tromey <tromey@adacore.com>
10658
10659 PR gdb/24475:
10660 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10661 static.
10662
10663 2019-04-25 Tom Tromey <tromey@adacore.com>
10664
10665 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10666 rvalue reference.
10667 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10668 (gdb_xml_parser::parse): Use std::move.
10669 * python/python-internal.h (gdbpy_convert_exception): Take a const
10670 reference.
10671 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10672 std::move.
10673 * python/py-utils.c (gdbpy_convert_exception): Take a const
10674 reference.
10675 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10676 Use std::move.
10677 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10678 Use std::move.
10679 * mi/mi-main.c (mi_print_exception): Take a const reference.
10680 * main.c (handle_command_errors): Take a const reference.
10681 * linespec.c (parse_linespec): Use std::move.
10682 * infcall.c (run_inferior_call): Use std::move.
10683 (call_function_by_hand_dummy): Use std::move.
10684 * exec.c (try_open_exec_file): Use std::move.
10685 * exceptions.h (exception_print, exception_fprintf)
10686 (exception_print_same): Update.
10687 * exceptions.c (print_exception, exception_print)
10688 (exception_fprintf, exception_print_same): Change parameters to
10689 const reference.
10690 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10691 * common/new-op.c: Use std::move.
10692 * common/common-exceptions.h (struct gdb_exception): Add move
10693 constructor.
10694 (struct gdb_exception_error, struct gdb_exception_quit, struct
10695 gdb_quit_bad_alloc): Change constructor to move constructor.
10696 (throw_exception): Change parameter to rvalue reference.
10697 * common/common-exceptions.c (throw_exception): Take rvalue
10698 reference.
10699 * cli/cli-interp.c (safe_execute_command): Use std::move.
10700 * breakpoint.c (insert_bp_location, location_to_sals): Use
10701 std::move.
10702
10703 2019-04-25 Tom Tromey <tromey@adacore.com>
10704
10705 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10706 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10707 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10708 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10709 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10710 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10711 guile/scm-value.c: Use unpack.
10712 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10713 gdbscm_gdb_exception.
10714 (gdbscm_throw_gdb_exception): Likewise.
10715 (struct gdbscm_gdb_exception): New.
10716 (unpack): New function.
10717 (gdbscm_wrap): Use unpack.
10718
10719 2019-04-25 Tom Tromey <tromey@adacore.com>
10720
10721 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10722 (gdb_rl_callback_handler): Use std::move.
10723 * common/common-exceptions.h (struct gdb_exception): Add move
10724 assignment operator.
10725 (throw_exception_sjlj): Change "exception" to const reference.
10726 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10727 (throw_exception_sjlj): Change "exception" to const reference.
10728
10729 2019-04-25 Tom Tromey <tromey@adacore.com>
10730
10731 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10732 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10733 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10734 Update.
10735 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10736 Update.
10737 * mi/mi-interp.c (mi_interp::exec): Update.
10738 * linespec.c (parse_linespec): Update.
10739 * infcall.c (run_inferior_call): Update.
10740 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10741 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10742 (gdbscm_lookup_global_symbol): Update.
10743 * guile/scm-param.c (gdbscm_parameter_value): Update.
10744 * guile/scm-frame.c (gdbscm_frame_read_register)
10745 (gdbscm_frame_read_var): Update.
10746 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10747 * exec.c (try_open_exec_file): Update.
10748 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10749 (gdb_rl_callback_handler): Update.
10750 * common/common-exceptions.h (exception_none): Don't declare.
10751 * common/common-exceptions.c (exception_none): Don't define.
10752 (struct catcher) <exception>: Update.
10753 * cli/cli-interp.c (safe_execute_command): Update.
10754 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10755
10756 2019-04-25 Ali Tamur <tamur@google.com>
10757
10758 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10759 (read_attribute_value): Likewise.
10760 (dwarf2_read_addr_index): Update comment.
10761 (read_str_index): Add DW_FORM_strx.
10762 (dwarf2_string_attr): Likewise.
10763 (dwarf2_const_value_attr): Likewise.
10764 (dump_die_shallow): Likewise.
10765 (dwarf2_fetch_constant_bytes): Likewise.
10766 (skip_form_bytes): Likewise.
10767 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10768
10769 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10770
10771 PR corefiles/11608
10772 PR corefiles/18187
10773 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10774 OFFSET. Verify if current mapping contains an ELF header.
10775 (linux_find_memory_regions_full): Adjust call to
10776 dump_mapping_p.
10777
10778 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10779 Kang Li <kanglictf@gmail.com>
10780
10781 PR gdb/21600
10782
10783 * dwarf2-frame.c (read_initial_length): Be consistent about using
10784 unsigned representation of length.
10785 (decode_frame_entry_1): Likewise. Check for wraparound of
10786 end pointer as well as buffer overflow.
10787
10788 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10789
10790 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10791 "vq".
10792
10793 2019-04-24 Tom Tromey <tromey@adacore.com>
10794
10795 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10796
10797 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10798
10799 * s12z-tdep.c (s12z_unwind_pc): Delete.
10800 (s12z_unwind_sp): Delete.
10801 (s12z_gdbarch_init): Don't register deleted functions with
10802 gdbarch.
10803
10804 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10805
10806 * rl78-tdep.c (rl78_unwind_sp): Delete.
10807 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10808
10809 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10810
10811 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10812 (xstormy16_unwind_pc): Delete.
10813 (xstormy16_dummy_id): Delete.
10814 (xstormy16_gdbarch_init): Don't register deleted functions with
10815 gdbarch.
10816
10817 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10818
10819 * vax-tdep.c (vax_unwind_pc): Delete.
10820 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10821
10822 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10823
10824 * v850-tdep.c (v850_unwind_sp): Delete.
10825 (v850_unwind_pc): Delete.
10826 (v850_dummy_id): Delete.
10827 (v850_gdbarch_init): Don't register deleted functions with
10828 gdbarch.
10829
10830 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10831
10832 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10833 (tilegx_unwind_pc): Delete.
10834 (tilegx_unwind_dummy_id): Delete.
10835 (tilegx_gdbarch_init): Don't register deleted functions with
10836 gdbarch.
10837
10838 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10839
10840 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10841 (tic6x_dummy_id): Delete.
10842 (tic6x_gdbarch_init): Don't register deleted functions with
10843 gdbarch.
10844
10845 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10846
10847 * sparc-tdep.c (sparc_unwind_pc): Delete.
10848 (sparc32_gdbarch_init): Don't register deleted function with
10849 gdbarch.
10850
10851 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10852
10853 * sh-tdep.c (sh_unwind_sp): Delete.
10854 (sh_unwind_pc): Delete.
10855 (sh_dummy_id): Delete.
10856 (sh_gdbarch_init): Don't register deleted functions with
10857 gdbarch.
10858
10859 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10860
10861 * score-tdep.c (score_unwind_sp): Delete.
10862 (score_unwind_pc): Delete.
10863 (score_dummy_id): Delete.
10864 (score_gdbarch_init): Don't register deleted functions with
10865 gdbarch.
10866
10867 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10868
10869 * rx-tdep.c (rx_unwind_pc): Delete.
10870 (rx_unwind_sp): Delete.
10871 (rx_dummy_id): Delete.
10872 (rx_gdbarch_init): Don't register deleted functions with
10873 gdbarch. Update comment.
10874
10875 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10876
10877 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10878 (rs6000_dummy_id): Delete.
10879 (rs6000_gdbarch_init): Don't register deleted functions with
10880 gdbarch.
10881
10882 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10883
10884 * or1k-tdep.c (or1k_dummy_id): Delete.
10885 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10886
10887 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10888
10889 * nios2-tdep.c (nios2_dummy_id): Delete.
10890 (nios2_unwind_sp): Delete.
10891 (nios2_gdbarch_init): Don't register deleted functions with
10892 gdbarch.
10893
10894 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10895
10896 * nds32-tdep.c (nds32_dummy_id): Delete.
10897 (nds32_unwind_pc): Delete.
10898 (nds32_unwind_sp): Delete.
10899 (nds32_gdbarch_init): Don't register deleted functions with
10900 gdbarch.
10901
10902 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10903
10904 * msp430-tdep.c (msp430_unwind_pc): Delete.
10905 (msp430_unwind_sp): Delete.
10906 (msp430_dummy_id): Delete.
10907 (msp430_gdbarch_init): Don't register deleted functions with
10908 gdbarch.
10909
10910 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10911
10912 * moxie-tdep.c (moxie_unwind_sp): Delete.
10913 (moxie_unwind_pc): Delete.
10914 (moxie_dummy_id): Delete.
10915 (moxie_gdbarch_init): Don't register deleted functions with
10916 gdbarch.
10917
10918 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10919
10920 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10921 (mn10300_unwind_pc): Delete.
10922 (mn10300_unwind_sp): Delete.
10923 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10924 mn10300_unwind_sp.
10925 (mn10300_frame_unwind_init): Don't register deleted functions with
10926 gdbarch.
10927
10928 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10929
10930 * mep-tdep.c (mep_unwind_pc): Delete.
10931 (mep_unwind_sp): Delete.
10932 (mep_dummy_id): Delete.
10933 (mep_gdbarch_init): Don't register deleted functions with
10934 gdbarch.
10935
10936 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10937
10938 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10939 (m68hc11_unwind_sp): Delete.
10940 (m68hc11_gdbarch_init): Don't register deleted functions with
10941 gdbarch.
10942
10943 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10944
10945 * m32r-tdep.c (m32r_unwind_sp): Delete.
10946 (m32r_unwind_pc): Delete.
10947 (m32r_dummy_id): Delete.
10948 (m32r_gdbarch_init): Don't register deleted functions with
10949 gdbarch.
10950
10951 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10952
10953 * m32c-tdep.c (m32c_unwind_pc): Delete.
10954 (m32c_unwind_sp): Delete.
10955 (m32c_dummy_id): Delete.
10956 (m32c_gdbarch_init): Don't register deleted functions with
10957 gdbarch.
10958
10959 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10960
10961 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10962 (lm32_unwind_pc): Delete.
10963 (lm32_dummy_id): Delete.
10964 (lm32_gdbarch_init): Don't register deleted functions with
10965 gdbarch.
10966
10967 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10968
10969 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10970 (iq2000_unwind_pc): Delete.
10971 (iq2000_dummy_id): Delete.
10972 (iq2000_gdbarch_init): Don't register deleted functions with
10973 gdbarch.
10974
10975 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10976
10977 * nds32-tdep.c (nds32_type_align): Delete.
10978 (nds32_push_dummy_call): Use type_align instead.
10979
10980 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10981
10982 * arm-tdep.c (arm_type_align): Only handle vector override case.
10983 (arm_push_dummy_call): Use type_align.
10984 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10985
10986 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10987
10988 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10989 case.
10990 (pass_on_stack): Use type_align.
10991 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10992 function.
10993
10994 2019-04-23 Tom Tromey <tromey@adacore.com>
10995
10996 * dwarf2read.c (line_header::file_name_at): Remove unused
10997 overload.
10998
10999 2019-04-23 Tom de Vries <tdevries@suse.de>
11000
11001 PR gdb/24438
11002 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11003 invocation.
11004
11005
11006 2019-03-27 Ali Tamur <tamur@google.com>
11007
11008 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11009 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11010 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11011 (dwarf_expr_context::get_addr_index): Likewise
11012 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11013 (symbol_needs_eval_context::get_addr_index): Likewise
11014 (disassemble_dwarf_expression): Add DW_OP_addrx
11015 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11016 (read_cutu_die_from_dwo): Update comment
11017 (skip_one_die): Add DW_FORM_addrx
11018 (read_attribute_value): Likewise
11019 (var_decode_location): Add DW_OP_addrx
11020 (dwarf2_const_value_attr): Add DW_FORM_addrx
11021 (dump_die_shallow): Likewise
11022 (dwarf2_fetch_constant_bytes): Likewise
11023 (decode_locdesc): Add DW_OP_addrx
11024 (skip_form_bytes): Add DW_FORM_addrx
11025
11026 2019-04-22 Ali Tamur <tamur@google.com>
11027
11028 * MAINTAINERS (Write After Approval): Add self.
11029
11030 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
11031
11032 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11033 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11034 (open_symbol_file_object): Likewise.
11035 (svr4_default_sos): Add info parameter.
11036 (svr4_read_so_list): Likewise.
11037 (svr4_current_sos_direct): Adjust functions calls to pass down
11038 info.
11039 (svr4_current_sos_1): Add info parameter.
11040 (svr4_current_sos): Call get_svr4_info, pass info down to
11041 svr4_current_sos_1.
11042 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11043 get_svr4_info.
11044 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11045 get_svr4_info.
11046 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11047 to get_svr4_info.
11048 (probes_table_remove_objfile_probes): Likewise.
11049 (register_solib_event_probe): Add info parameter.
11050 (solist_update_incremental): Pass info parameter down to
11051 svr4_read_so_list.
11052 (disable_probes_interface): Add info parameter.
11053 (svr4_handle_solib_event): Pass current_program_space to
11054 get_svr4_info. Adjust disable_probes_interface cleanup.
11055 (svr4_create_probe_breakpoints): Add info parameter, pass it
11056 down to register_solib_event_probe.
11057 (svr4_create_solib_event_breakpoints): Add info parameter,
11058 pass it down to svr4_create_probe_breakpoints.
11059 (enable_break): Pass info down to
11060 svr4_create_solib_event_breakpoints.
11061 (svr4_solib_create_inferior_hook): Pass current_program_space to
11062 get_svr4_info.
11063 (svr4_clear_solib): Likewise.
11064
11065 2019-04-22 Pedro Alves <palves@redhat.com>
11066
11067 * solib-svr4.c (svr4_free_objfile_observer): New.
11068 (probe_and_action::objfile): New field.
11069 (probes_table_htab_remove_objfile_probes)
11070 (probes_table_remove_objfile_probes): New functions.
11071 (register_solib_event_probe): Add 'objfile' parameter. Store it
11072 in the new probe_and_action. Don't store the probe in 'lookup'.
11073 (svr4_create_probe_breakpoints): Pass objfile to
11074 register_solib_event_probe.
11075 (_initialize_svr4_solib): Register a free_objfile observer.
11076
11077 2019-04-19 Tom Tromey <tom@tromey.com>
11078
11079 * common/queue.h: Remove.
11080
11081 2019-04-19 Tom Tromey <tom@tromey.com>
11082
11083 * event-loop.c: Don't include "common/queue.h".
11084
11085 2019-04-19 Tom Tromey <tom@tromey.com>
11086
11087 * remote.c (remote_target): Use delete.
11088 * remote-notif.h: Include <list>, not "common/queue.h".
11089 (notif_client_p): Remove typedef.
11090 (remote_notif_state): Add constructor, destructor, initializer.
11091 <notif_queue>: Now a std::list.
11092 (remote_notif_state_xfree): Don't declare.
11093 * remote-notif.c (remote_notif_process, handle_notification)
11094 (remote_notif_state_allocate): Update.
11095 (~remote_notif_state): Rename from remote_notif_state_xfree.
11096
11097 2019-04-19 Tom Tromey <tom@tromey.com>
11098
11099 * symfile.c (reread_symbols): Update.
11100 * objfiles.c (objfile_register_static_link)
11101 (objfile_lookup_static_link): Update
11102 (~objfile) Don't delete static_links.
11103 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11104
11105 2019-04-19 Tom Tromey <tom@tromey.com>
11106
11107 * type-stack.h (struct type_stack) <insert>: Constify string.
11108 * type-stack.c (type_stack::insert): Constify string.
11109 * gdbtypes.h (lookup_template_type): Update.
11110 (address_space_name_to_int): Update.
11111 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11112 const.
11113 (lookup_template_type): Make name const.
11114 * c-exp.y: Update rules.
11115 (lex_one_token, classify_name, classify_inner_name)
11116 (c_print_token): Update.
11117 * p-exp.y: Update rules.
11118 (yylex): Update.
11119 * f-exp.y: Update rules.
11120 (yylex): Update.
11121 * d-exp.y: Update rules.
11122 (lex_one_token, classify_name, classify_inner_name): Update.
11123 * parse.c (write_dollar_variable, copy_name): Return std::string.
11124 * parser-defs.h (copy_name): Change return type.
11125 * m2-exp.y: Update rules.
11126 (yylex): Update.
11127 * go-exp.y (lex_one_token): Update.
11128 Update rules.
11129 (classify_unsafe_function, classify_packaged_name)
11130 (classify_name, yylex): Update.
11131
11132 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11133
11134 * configure.ac: add --enable-source-highlight switch.
11135 * configure: Regenerate.
11136 * top.c (print_gdb_version): plumb --enable-source-highlight
11137 status to "show configuration".
11138
11139 2019-04-19 Tom Tromey <tromey@adacore.com>
11140
11141 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11142 Check ADA_TYPE_P.
11143 (empty_record, ada_template_to_fixed_record_type_1)
11144 (template_to_static_fixed_type)
11145 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11146 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11147 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11148 macros.
11149
11150 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11151
11152 PR symtab/24423:
11153 * source.c (print_source_lines_base): Advance "iter" when a
11154 control character is seen.
11155
11156 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11157
11158 * inferior.h (struct infcall_suspend_state_deleter):
11159 Catch exception in destructor to avoid crash.
11160
11161 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11162
11163 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11164 close to the add_com "shell".
11165
11166 2019-04-18 Tom Tromey <tromey@adacore.com>
11167
11168 * process-stratum-target.h (class process_stratum_target)
11169 <stratum>: Add "final".
11170
11171 2019-04-17 Tom Tromey <tromey@adacore.com>
11172
11173 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11174 against nullptr before use.
11175
11176 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11177
11178 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11179
11180 2019-04-17 Jim Wilson <jimw@sifive.com>
11181 Andrew Burgess <andrew.burgess@embecosm.com>
11182
11183 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11184 code read might fail, assume 4-byte breakpoint in that case.
11185
11186 2019-04-15 Leszek Swirski <leszeks@google.com>
11187
11188 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11189 rather than a hand-rolled POD check when checking for forced MEMORY
11190 classification.
11191
11192 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11193
11194 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11195 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11196 function.
11197 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11198 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11199 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11200 declaration.
11201
11202 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11203
11204 * aarch64-linux-nat.c
11205 (aarch64_linux_nat_target::thread_architecture): Add override.
11206 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11207 each VQ.
11208
11209 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11210
11211 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11212
11213 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11214
11215 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11216 target types of size 96-bits, add some additional comments, and
11217 check that the builtin type we found was the correct size.
11218
11219 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11220
11221 * utils.c (prompt_for_continue): Don't restore the styling at the
11222 end, as applied_style has the wrong value. This fixes styling in
11223 long lists of file names that are interrupted by the "Continue?"
11224 prompt.
11225
11226 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11227
11228 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11229 * c-lang.c (c_language_defn): Likewise.
11230 (cplus_language_defn): Likewise.
11231 (asm_language_defn): Likewise.
11232 (minimal_language_defn): Likewise.
11233 * d-lang.c (d_language_defn): Likewise.
11234 * f-lang.c (f_language_defn): Likewise.
11235 * go-lang.c (go_language_defn): Likewise.
11236 * language.c (unknown_language_defn): Likewise.
11237 (auto_language_defn): Likewise.
11238 * language.h (struct language_defn): Remove la_magic field.
11239 (LANG_MAGIC): Delete.
11240 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11241 * objc-lang.c (objc_language_defn): Likewise.
11242 * opencl-lang.c (opencl_language_defn): Likewise.
11243 * p-lang.c (pascal_language_defn): Likewise.
11244 * rust-lang.c (rust_language_defn): Likewise.
11245
11246 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11247
11248 * riscv-tdep.c (riscv_type_align): New function.
11249 (riscv_type_alignment): Delete.
11250 (riscv_arg_location): Use 'type_align'.
11251 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11252
11253 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11254
11255 * gdbtypes.c (type_align): A struct with no non-static fields also
11256 has alignment of 1.
11257
11258 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11259
11260 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11261 component to 0.
11262 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11263 member.
11264 (riscv_struct_info::analyse): New implementation using new
11265 analyse_inner member function.
11266 (riscv_struct_info::field_offset): New member function.
11267 (riscv_struct_info::m_offsets): New member variable.
11268 (riscv_struct_info::analyse_inner): New private member function,
11269 takes the old implementation of riscv_struct_info::analyse but
11270 extended to track field offsets.
11271 (riscv_call_arg_struct): Update the struct folding special cases
11272 to handle cases where empty C++ structs, which are non-zero
11273 length, are found.
11274 (riscv_arg_location): Initialise the length of each location, a
11275 non-zero length now indicates the location is in use.
11276 (riscv_push_dummy_call): Allow for the first location having a
11277 non-zero offset when setting up arguments.
11278 (riscv_return_value): Likewise, but for return values.
11279
11280 2019-04-11 Tom Tromey <tromey@adacore.com>
11281
11282 * utils.c (internal_vproblem): Make "msg" const.
11283
11284 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11285
11286 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11287 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11288 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11289 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11290
11291 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11292
11293 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11294 function.
11295 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11296 of amd64_collect_native_gregset.
11297 (amd64_linux_nat_target::store_registers): Likewise.
11298
11299 2019-04-10 Tom Tromey <tom@tromey.com>
11300
11301 * symtab.c (lookup_global_symbol_from_objfile)
11302 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11303 * objfiles.h (class separate_debug_iterator): New.
11304 (class separate_debug_range): New.
11305 (struct objfile) <separate_debug_objfiles>: New method.
11306 (objfile_separate_debug_iterate): Don't declare.
11307 * objfiles.c (separate_debug_iterator::operator++): Rename from
11308 objfile_separate_debug_iterate.
11309 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11310 iterator.
11311 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11312 iterator.
11313
11314 2019-04-10 Tom Tromey <tom@tromey.com>
11315
11316 * symfile.c (reread_symbols): Remove old comment.
11317 * objfiles.c (free_all_objfiles): Fix a typo.
11318
11319 2019-04-10 Tom Tromey <tom@tromey.com>
11320
11321 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11322 * minsyms.c (lookup_minimal_symbol): Use foreach.
11323 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11324 (lookup_minimal_symbol_solib_trampoline): Likewise.
11325 * symfile.c (reread_symbols): Use foreach.
11326
11327 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11328 Tom Tromey <tromey@adacore.com>
11329
11330 PR rust/24414:
11331 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11332 (rust_lex_int_test): Change "value" to be LONGEST.
11333 (rust_lex_tests): Add test for long integer literal.
11334
11335 2019-04-09 Tom Tromey <tromey@adacore.com>
11336
11337 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11338 to bool.
11339 (extended_remote_target::attach): Update.
11340 (remote_target::remote_notice_new_inferior): Update.
11341 (remote_target::add_current_inferior_and_thread): Update.
11342 * inferior.c (exit_inferior_1): Use "false".
11343 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11344
11345 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11346
11347 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11348 the "start" command.
11349
11350 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11351
11352 * python/py-inferior.c (infpy_thread_from_thread_handle):
11353 Adjust comments to reflect renaming of thread_from_thread_handle
11354 to thread_from_handle. Adjust keywords. Fix type error message.
11355 (inferior_object_methods): Add thread_from_handle. Retain
11356 thread_from_thread_handle, but mark it as deprecated.
11357
11358 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11359
11360 * gdbthread.h (find_thread_by_handle): Revise declaration.
11361 * thread.c (find_thread_by_handle): Likewise. Adjust
11362 implementation too.
11363 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11364 support for buffer objects as handles.
11365
11366 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11367
11368 * python/py-infthread.c (thpy_thread_handle): New function.
11369 (thread_object_methods): Register thpy_thread_handle.
11370
11371 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11372
11373 * gdbthread.h (thread_to_thread_handle): Declare.
11374 * thread.c (gdbtypes.h): Include.
11375 (thread_to_thread_handle): New function.
11376
11377 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11378 (target_thread_info_to_thread_handle): Declare.
11379 * target.c (target_thread_info_to_thread_handle): New function.
11380 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11381 * target-delegates.c: Regenerate.
11382
11383 * linux-thread-db.c (class thread_db_target): Add method
11384 thread_info_to_thread_handle.
11385 (thread_db_target::thread_info_to_thread_handle): Define.
11386 * remote.c (class remote_target): Add new method
11387 thread_info_to_thread_handle.
11388 (remote_target::thread_info_to_thread_handle): Define.
11389
11390 2019-04-08 Pedro Alves <palves@redhat.com>
11391
11392 * common/common-exceptions.c (throw_exception): Don't create
11393 named object to throw; throw directly.
11394 (throw_it): Likewise. Don't initialize gdb_exception::message
11395 here, with new; pass FMT and AP to the ctor instead.
11396 * common/common-exceptions.h: Include <string>.
11397 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11398 const char *, va_list)): New ctor. Use std::make_shared.
11399 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11400 errors)): Delete.
11401 (gdb_exception_error::gdb_exception_error(enum errors, const char
11402 *, va_list)): New.
11403 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11404 Add assertion.
11405 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11406 errors)): Delete.
11407 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11408 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11409 Add assertion.
11410
11411 2019-04-08 Tom Tromey <tom@tromey.com>
11412
11413 * valops.c (value_rtti_indirect_type): Replace throw_exception
11414 with throw.
11415 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11416 with throw.
11417 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11418 throw.
11419 * target.c (target_translate_tls_address): Replace throw_exception
11420 with throw.
11421 * stack.c (frame_apply_command_count): Replace throw_exception
11422 with throw.
11423 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11424 throw.
11425 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11426 with throw.
11427 * rs6000-tdep.c (rs6000_frame_cache)
11428 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11429 * remote.c: Replace throw_exception with throw.
11430 * record-full.c (record_full_message, record_full_wait_1)
11431 (record_full_restore): Replace throw_exception with throw.
11432 * record-btrace.c:
11433 (get_thread_current_frame_id, record_btrace_start_replaying)
11434 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11435 (cmd_record_btrace_start): Replace throw_exception with throw.
11436 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11437 throw.
11438 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11439 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11440 * linespec.c:
11441 (find_linespec_symbols): Replace throw_exception with throw.
11442 * infrun.c (displaced_step_prepare, resume): Replace
11443 throw_exception with throw.
11444 * infcmd.c (post_create_inferior): Replace throw_exception with
11445 throw.
11446 * inf-loop.c (inferior_event_handler): Replace throw_exception
11447 with throw.
11448 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11449 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11450 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11451 (get_prev_frame_always, get_frame_pc_if_available)
11452 (get_frame_address_in_block_if_available, get_frame_language):
11453 Replace throw_exception with throw.
11454 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11455 throw_exception with throw.
11456 * eval.c (fetch_subexp_value, evaluate_var_value)
11457 (evaluate_funcall, evaluate_subexp_standard): Replace
11458 throw_exception with throw.
11459 * dwarf2loc.c (call_site_find_chain)
11460 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11461 Replace throw_exception with throw.
11462 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11463 with throw.
11464 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11465 throw.
11466 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11467 * completer.c (complete_line_internal): Replace throw_exception
11468 with throw.
11469 * compile/compile-object-run.c (compile_object_run): Replace
11470 throw_exception with throw.
11471 * cli/cli-script.c (process_next_line): Replace throw_exception
11472 with throw.
11473 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11474 (btrace_enable, btrace_maint_update_pt_packets): Replace
11475 throw_exception with throw.
11476 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11477 throw_exception with throw.
11478 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11479 throw_exception with throw.
11480 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11481 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11482 * aarch64-tdep.c (aarch64_make_prologue_cache)
11483 (aarch64_make_stub_cache): Replace throw_exception with throw.
11484
11485 2019-04-08 Tom Tromey <tom@tromey.com>
11486
11487 * common/common-exceptions.c (throw_exception): Rename from
11488 throw_exception_cxx. Remove old copy. Make argument const.
11489 (throw_it): Create and throw exception objects directly.
11490 * common/common-exceptions.h (throw_exception): Make argument
11491 const.
11492 (struct gdb_exception_error): Add constructor.
11493 (struct gdb_exception_quit): Add constructor.
11494
11495 2019-04-08 Tom Tromey <tom@tromey.com>
11496
11497 * common/common-exceptions.h (exception_rethrow): Don't declare.
11498 (TRY_SJLJ): Update comment.
11499 (TRY, CATCH, END_CATCH): Remove.
11500 * common/common-exceptions.c (exception_rethrow): Remove.
11501
11502 2019-04-08 Tom Tromey <tom@tromey.com>
11503
11504 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11505 Remove.
11506 (gdb_exception_error): Rename from
11507 gdb_exception_RETURN_MASK_ERROR.
11508 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11509 (gdb_quit_bad_alloc): Update.
11510 * aarch64-tdep.c: Update.
11511 * ada-lang.c: Update.
11512 * ada-typeprint.c: Update.
11513 * ada-valprint.c: Update.
11514 * amd64-tdep.c: Update.
11515 * arch-utils.c: Update.
11516 * break-catch-throw.c: Update.
11517 * breakpoint.c: Update.
11518 * btrace.c: Update.
11519 * c-varobj.c: Update.
11520 * cli/cli-cmds.c: Update.
11521 * cli/cli-interp.c: Update.
11522 * cli/cli-script.c: Update.
11523 * common/common-exceptions.c: Update.
11524 * common/new-op.c: Update.
11525 * common/selftest.c: Update.
11526 * compile/compile-c-symbols.c: Update.
11527 * compile/compile-cplus-symbols.c: Update.
11528 * compile/compile-object-load.c: Update.
11529 * compile/compile-object-run.c: Update.
11530 * completer.c: Update.
11531 * corelow.c: Update.
11532 * cp-abi.c: Update.
11533 * cp-support.c: Update.
11534 * cp-valprint.c: Update.
11535 * darwin-nat.c: Update.
11536 * disasm-selftests.c: Update.
11537 * dtrace-probe.c: Update.
11538 * dwarf-index-cache.c: Update.
11539 * dwarf-index-write.c: Update.
11540 * dwarf2-frame-tailcall.c: Update.
11541 * dwarf2-frame.c: Update.
11542 * dwarf2loc.c: Update.
11543 * dwarf2read.c: Update.
11544 * eval.c: Update.
11545 * event-loop.c: Update.
11546 * event-top.c: Update.
11547 * exec.c: Update.
11548 * f-valprint.c: Update.
11549 * fbsd-tdep.c: Update.
11550 * frame-unwind.c: Update.
11551 * frame.c: Update.
11552 * gdbtypes.c: Update.
11553 * gnu-v3-abi.c: Update.
11554 * guile/guile-internal.h: Update.
11555 * guile/scm-block.c: Update.
11556 * guile/scm-breakpoint.c: Update.
11557 * guile/scm-cmd.c: Update.
11558 * guile/scm-disasm.c: Update.
11559 * guile/scm-frame.c: Update.
11560 * guile/scm-lazy-string.c: Update.
11561 * guile/scm-math.c: Update.
11562 * guile/scm-param.c: Update.
11563 * guile/scm-ports.c: Update.
11564 * guile/scm-pretty-print.c: Update.
11565 * guile/scm-symbol.c: Update.
11566 * guile/scm-symtab.c: Update.
11567 * guile/scm-type.c: Update.
11568 * guile/scm-value.c: Update.
11569 * i386-linux-tdep.c: Update.
11570 * i386-tdep.c: Update.
11571 * inf-loop.c: Update.
11572 * infcall.c: Update.
11573 * infcmd.c: Update.
11574 * infrun.c: Update.
11575 * jit.c: Update.
11576 * language.c: Update.
11577 * linespec.c: Update.
11578 * linux-fork.c: Update.
11579 * linux-nat.c: Update.
11580 * linux-tdep.c: Update.
11581 * linux-thread-db.c: Update.
11582 * main.c: Update.
11583 * mi/mi-cmd-break.c: Update.
11584 * mi/mi-cmd-stack.c: Update.
11585 * mi/mi-interp.c: Update.
11586 * mi/mi-main.c: Update.
11587 * objc-lang.c: Update.
11588 * p-valprint.c: Update.
11589 * parse.c: Update.
11590 * ppc-linux-tdep.c: Update.
11591 * printcmd.c: Update.
11592 * python/py-arch.c: Update.
11593 * python/py-breakpoint.c: Update.
11594 * python/py-cmd.c: Update.
11595 * python/py-finishbreakpoint.c: Update.
11596 * python/py-frame.c: Update.
11597 * python/py-framefilter.c: Update.
11598 * python/py-gdb-readline.c: Update.
11599 * python/py-inferior.c: Update.
11600 * python/py-infthread.c: Update.
11601 * python/py-lazy-string.c: Update.
11602 * python/py-linetable.c: Update.
11603 * python/py-objfile.c: Update.
11604 * python/py-param.c: Update.
11605 * python/py-prettyprint.c: Update.
11606 * python/py-progspace.c: Update.
11607 * python/py-record-btrace.c: Update.
11608 * python/py-record.c: Update.
11609 * python/py-symbol.c: Update.
11610 * python/py-type.c: Update.
11611 * python/py-unwind.c: Update.
11612 * python/py-utils.c: Update.
11613 * python/py-value.c: Update.
11614 * python/python.c: Update.
11615 * record-btrace.c: Update.
11616 * record-full.c: Update.
11617 * remote-fileio.c: Update.
11618 * remote.c: Update.
11619 * riscv-tdep.c: Update.
11620 * rs6000-aix-tdep.c: Update.
11621 * rs6000-tdep.c: Update.
11622 * rust-exp.y: Update.
11623 * rust-lang.c: Update.
11624 * s390-tdep.c: Update.
11625 * selftest-arch.c: Update.
11626 * solib-dsbt.c: Update.
11627 * solib-frv.c: Update.
11628 * solib-spu.c: Update.
11629 * solib-svr4.c: Update.
11630 * solib.c: Update.
11631 * sparc64-linux-tdep.c: Update.
11632 * stack.c: Update.
11633 * symfile-mem.c: Update.
11634 * symmisc.c: Update.
11635 * target.c: Update.
11636 * thread.c: Update.
11637 * top.c: Update.
11638 * tracefile-tfile.c: Update.
11639 * tui/tui.c: Update.
11640 * typeprint.c: Update.
11641 * unittests/cli-utils-selftests.c: Update.
11642 * unittests/parse-connection-spec-selftests.c: Update.
11643 * valops.c: Update.
11644 * valprint.c: Update.
11645 * value.c: Update.
11646 * varobj.c: Update.
11647 * windows-nat.c: Update.
11648 * x86-linux-nat.c: Update.
11649 * xml-support.c: Update.
11650
11651 2019-04-08 Tom Tromey <tom@tromey.com>
11652
11653 * xml-support.c: Use C++ exception handling.
11654 * x86-linux-nat.c: Use C++ exception handling.
11655 * windows-nat.c: Use C++ exception handling.
11656 * varobj.c: Use C++ exception handling.
11657 * value.c: Use C++ exception handling.
11658 * valprint.c: Use C++ exception handling.
11659 * valops.c: Use C++ exception handling.
11660 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11661 handling.
11662 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11663 * typeprint.c: Use C++ exception handling.
11664 * tui/tui.c: Use C++ exception handling.
11665 * tracefile-tfile.c: Use C++ exception handling.
11666 * top.c: Use C++ exception handling.
11667 * thread.c: Use C++ exception handling.
11668 * target.c: Use C++ exception handling.
11669 * symmisc.c: Use C++ exception handling.
11670 * symfile-mem.c: Use C++ exception handling.
11671 * stack.c: Use C++ exception handling.
11672 * sparc64-linux-tdep.c: Use C++ exception handling.
11673 * solib.c: Use C++ exception handling.
11674 * solib-svr4.c: Use C++ exception handling.
11675 * solib-spu.c: Use C++ exception handling.
11676 * solib-frv.c: Use C++ exception handling.
11677 * solib-dsbt.c: Use C++ exception handling.
11678 * selftest-arch.c: Use C++ exception handling.
11679 * s390-tdep.c: Use C++ exception handling.
11680 * rust-lang.c: Use C++ exception handling.
11681 * rust-exp.y: Use C++ exception handling.
11682 * rs6000-tdep.c: Use C++ exception handling.
11683 * rs6000-aix-tdep.c: Use C++ exception handling.
11684 * riscv-tdep.c: Use C++ exception handling.
11685 * remote.c: Use C++ exception handling.
11686 * remote-fileio.c: Use C++ exception handling.
11687 * record-full.c: Use C++ exception handling.
11688 * record-btrace.c: Use C++ exception handling.
11689 * python/python.c: Use C++ exception handling.
11690 * python/py-value.c: Use C++ exception handling.
11691 * python/py-utils.c: Use C++ exception handling.
11692 * python/py-unwind.c: Use C++ exception handling.
11693 * python/py-type.c: Use C++ exception handling.
11694 * python/py-symbol.c: Use C++ exception handling.
11695 * python/py-record.c: Use C++ exception handling.
11696 * python/py-record-btrace.c: Use C++ exception handling.
11697 * python/py-progspace.c: Use C++ exception handling.
11698 * python/py-prettyprint.c: Use C++ exception handling.
11699 * python/py-param.c: Use C++ exception handling.
11700 * python/py-objfile.c: Use C++ exception handling.
11701 * python/py-linetable.c: Use C++ exception handling.
11702 * python/py-lazy-string.c: Use C++ exception handling.
11703 * python/py-infthread.c: Use C++ exception handling.
11704 * python/py-inferior.c: Use C++ exception handling.
11705 * python/py-gdb-readline.c: Use C++ exception handling.
11706 * python/py-framefilter.c: Use C++ exception handling.
11707 * python/py-frame.c: Use C++ exception handling.
11708 * python/py-finishbreakpoint.c: Use C++ exception handling.
11709 * python/py-cmd.c: Use C++ exception handling.
11710 * python/py-breakpoint.c: Use C++ exception handling.
11711 * python/py-arch.c: Use C++ exception handling.
11712 * printcmd.c: Use C++ exception handling.
11713 * ppc-linux-tdep.c: Use C++ exception handling.
11714 * parse.c: Use C++ exception handling.
11715 * p-valprint.c: Use C++ exception handling.
11716 * objc-lang.c: Use C++ exception handling.
11717 * mi/mi-main.c: Use C++ exception handling.
11718 * mi/mi-interp.c: Use C++ exception handling.
11719 * mi/mi-cmd-stack.c: Use C++ exception handling.
11720 * mi/mi-cmd-break.c: Use C++ exception handling.
11721 * main.c: Use C++ exception handling.
11722 * linux-thread-db.c: Use C++ exception handling.
11723 * linux-tdep.c: Use C++ exception handling.
11724 * linux-nat.c: Use C++ exception handling.
11725 * linux-fork.c: Use C++ exception handling.
11726 * linespec.c: Use C++ exception handling.
11727 * language.c: Use C++ exception handling.
11728 * jit.c: Use C++ exception handling.
11729 * infrun.c: Use C++ exception handling.
11730 * infcmd.c: Use C++ exception handling.
11731 * infcall.c: Use C++ exception handling.
11732 * inf-loop.c: Use C++ exception handling.
11733 * i386-tdep.c: Use C++ exception handling.
11734 * i386-linux-tdep.c: Use C++ exception handling.
11735 * guile/scm-value.c: Use C++ exception handling.
11736 * guile/scm-type.c: Use C++ exception handling.
11737 * guile/scm-symtab.c: Use C++ exception handling.
11738 * guile/scm-symbol.c: Use C++ exception handling.
11739 * guile/scm-pretty-print.c: Use C++ exception handling.
11740 * guile/scm-ports.c: Use C++ exception handling.
11741 * guile/scm-param.c: Use C++ exception handling.
11742 * guile/scm-math.c: Use C++ exception handling.
11743 * guile/scm-lazy-string.c: Use C++ exception handling.
11744 * guile/scm-frame.c: Use C++ exception handling.
11745 * guile/scm-disasm.c: Use C++ exception handling.
11746 * guile/scm-cmd.c: Use C++ exception handling.
11747 * guile/scm-breakpoint.c: Use C++ exception handling.
11748 * guile/scm-block.c: Use C++ exception handling.
11749 * guile/guile-internal.h: Use C++ exception handling.
11750 * gnu-v3-abi.c: Use C++ exception handling.
11751 * gdbtypes.c: Use C++ exception handling.
11752 * frame.c: Use C++ exception handling.
11753 * frame-unwind.c: Use C++ exception handling.
11754 * fbsd-tdep.c: Use C++ exception handling.
11755 * f-valprint.c: Use C++ exception handling.
11756 * exec.c: Use C++ exception handling.
11757 * event-top.c: Use C++ exception handling.
11758 * event-loop.c: Use C++ exception handling.
11759 * eval.c: Use C++ exception handling.
11760 * dwarf2read.c: Use C++ exception handling.
11761 * dwarf2loc.c: Use C++ exception handling.
11762 * dwarf2-frame.c: Use C++ exception handling.
11763 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11764 * dwarf-index-write.c: Use C++ exception handling.
11765 * dwarf-index-cache.c: Use C++ exception handling.
11766 * dtrace-probe.c: Use C++ exception handling.
11767 * disasm-selftests.c: Use C++ exception handling.
11768 * darwin-nat.c: Use C++ exception handling.
11769 * cp-valprint.c: Use C++ exception handling.
11770 * cp-support.c: Use C++ exception handling.
11771 * cp-abi.c: Use C++ exception handling.
11772 * corelow.c: Use C++ exception handling.
11773 * completer.c: Use C++ exception handling.
11774 * compile/compile-object-run.c: Use C++ exception handling.
11775 * compile/compile-object-load.c: Use C++ exception handling.
11776 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11777 * compile/compile-c-symbols.c: Use C++ exception handling.
11778 * common/selftest.c: Use C++ exception handling.
11779 * common/new-op.c: Use C++ exception handling.
11780 * cli/cli-script.c: Use C++ exception handling.
11781 * cli/cli-interp.c: Use C++ exception handling.
11782 * cli/cli-cmds.c: Use C++ exception handling.
11783 * c-varobj.c: Use C++ exception handling.
11784 * btrace.c: Use C++ exception handling.
11785 * breakpoint.c: Use C++ exception handling.
11786 * break-catch-throw.c: Use C++ exception handling.
11787 * arch-utils.c: Use C++ exception handling.
11788 * amd64-tdep.c: Use C++ exception handling.
11789 * ada-valprint.c: Use C++ exception handling.
11790 * ada-typeprint.c: Use C++ exception handling.
11791 * ada-lang.c: Use C++ exception handling.
11792 * aarch64-tdep.c: Use C++ exception handling.
11793
11794 2019-04-08 Tom Tromey <tom@tromey.com>
11795
11796 * xml-support.c (gdb_xml_parser::parse): Update.
11797 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11798 * value.c (show_convenience): Update.
11799 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11800 (test_parse_flags_qcs): Update.
11801 * thread.c (thr_try_catch_cmd): Update.
11802 * target.c (target_translate_tls_address): Update.
11803 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11804 (info_frame_command_core, frame_apply_command_count): Update.
11805 * rust-exp.y (rust_lex_exception_test): Update.
11806 * riscv-tdep.c (riscv_print_one_register_info): Update.
11807 * remote.c (remote_target::enable_btrace): Update.
11808 * record-btrace.c (record_btrace_enable_warn): Update.
11809 * python/py-utils.c (gdbpy_convert_exception): Update.
11810 * printcmd.c (do_one_display, print_variable_and_value): Update.
11811 * mi/mi-main.c (mi_print_exception): Update.
11812 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11813 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11814 * linux-nat.c (linux_nat_target::attach): Update.
11815 * linux-fork.c (class scoped_switch_fork_info): Update.
11816 * infrun.c (displaced_step_prepare): Update.
11817 * infcall.c (call_function_by_hand_dummy): Update.
11818 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11819 * gnu-v3-abi.c (print_one_vtable): Update.
11820 * frame.c (get_prev_frame_always): Update.
11821 * f-valprint.c (info_common_command_for_block): Update.
11822 * exec.c (try_open_exec_file): Update.
11823 * exceptions.c (print_exception, exception_print)
11824 (exception_fprintf, exception_print_same): Update.
11825 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11826 * dwarf-index-cache.c (index_cache::store)
11827 (index_cache::lookup_gdb_index): Update.
11828 * darwin-nat.c (maybe_cache_shell): Update.
11829 * cp-valprint.c (cp_print_value_fields): Update.
11830 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11831 (gcc_cplus_symbol_address): Update.
11832 * compile/compile-c-symbols.c (gcc_convert_symbol)
11833 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11834 * common/selftest.c: Update.
11835 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11836 a std::string.
11837 (exception_try_scope_entry, exception_try_scope_exit): Don't
11838 declare.
11839 (struct exception_try_scope): Remove.
11840 (TRY): Don't use exception_try_scope.
11841 (struct gdb_exception): Add constructor, operator=.
11842 <what>: New method.
11843 (struct gdb_exception_RETURN_MASK_ALL)
11844 (struct gdb_exception_RETURN_MASK_ERROR)
11845 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11846 (struct gdb_quit_bad_alloc): Update.
11847 * common/common-exceptions.c (exception_none): Change
11848 initializer.
11849 (struct catcher) <state, exception>: Initialize inline.
11850 <prev>: Remove member.
11851 (current_catcher): Remove.
11852 (catchers): New global.
11853 (exceptions_state_mc_init): Simplify.
11854 (catcher_pop): Remove.
11855 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11856 (try_scope_depth, exception_try_scope_entry)
11857 (exception_try_scope_exit): Remove.
11858 (throw_exception_sjlj): Update.
11859 (exception_messages, exception_messages_size): Remove.
11860 (throw_it): Simplify.
11861 (gdb_exception_sliced_copy): Remove.
11862 (throw_exception_cxx): Update.
11863 * cli/cli-script.c (script_from_file): Update.
11864 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11865 Update.
11866 * ada-valprint.c (ada_val_print): Update.
11867 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11868 (create_excep_cond_exprs): Update.
11869
11870 2019-04-08 Tom Tromey <tom@tromey.com>
11871
11872 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11873 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11874 (TRY, CATCH, END_CATCH): Remove some definitions.
11875 * common/common-exceptions.c: Don't use GDB_XCPT.
11876 (catcher_list_size): Remove.
11877 (throw_exception, throw_it): Simplify.
11878
11879 2019-04-05 Tom Tromey <tom@tromey.com>
11880
11881 Revert the header-sorting patch.
11882 * ft32-tdep.c: Revert.
11883 * frv-tdep.c: Revert.
11884 * frv-linux-tdep.c: Revert.
11885 * frame.c: Revert.
11886 * frame-unwind.c: Revert.
11887 * frame-base.c: Revert.
11888 * fork-child.c: Revert.
11889 * findvar.c: Revert.
11890 * findcmd.c: Revert.
11891 * filesystem.c: Revert.
11892 * filename-seen-cache.h: Revert.
11893 * filename-seen-cache.c: Revert.
11894 * fbsd-tdep.c: Revert.
11895 * fbsd-nat.h: Revert.
11896 * fbsd-nat.c: Revert.
11897 * f-valprint.c: Revert.
11898 * f-typeprint.c: Revert.
11899 * f-lang.c: Revert.
11900 * extension.h: Revert.
11901 * extension.c: Revert.
11902 * extension-priv.h: Revert.
11903 * expprint.c: Revert.
11904 * exec.h: Revert.
11905 * exec.c: Revert.
11906 * exceptions.c: Revert.
11907 * event-top.c: Revert.
11908 * event-loop.c: Revert.
11909 * eval.c: Revert.
11910 * elfread.c: Revert.
11911 * dwarf2read.h: Revert.
11912 * dwarf2read.c: Revert.
11913 * dwarf2loc.c: Revert.
11914 * dwarf2expr.h: Revert.
11915 * dwarf2expr.c: Revert.
11916 * dwarf2-frame.c: Revert.
11917 * dwarf2-frame-tailcall.c: Revert.
11918 * dwarf-index-write.h: Revert.
11919 * dwarf-index-write.c: Revert.
11920 * dwarf-index-common.c: Revert.
11921 * dwarf-index-cache.h: Revert.
11922 * dwarf-index-cache.c: Revert.
11923 * dummy-frame.c: Revert.
11924 * dtrace-probe.c: Revert.
11925 * disasm.h: Revert.
11926 * disasm.c: Revert.
11927 * disasm-selftests.c: Revert.
11928 * dictionary.c: Revert.
11929 * dicos-tdep.c: Revert.
11930 * demangle.c: Revert.
11931 * dcache.h: Revert.
11932 * dcache.c: Revert.
11933 * darwin-nat.h: Revert.
11934 * darwin-nat.c: Revert.
11935 * darwin-nat-info.c: Revert.
11936 * d-valprint.c: Revert.
11937 * d-namespace.c: Revert.
11938 * d-lang.c: Revert.
11939 * ctf.c: Revert.
11940 * csky-tdep.c: Revert.
11941 * csky-linux-tdep.c: Revert.
11942 * cris-tdep.c: Revert.
11943 * cris-linux-tdep.c: Revert.
11944 * cp-valprint.c: Revert.
11945 * cp-support.c: Revert.
11946 * cp-namespace.c: Revert.
11947 * cp-abi.c: Revert.
11948 * corelow.c: Revert.
11949 * corefile.c: Revert.
11950 * continuations.c: Revert.
11951 * completer.h: Revert.
11952 * completer.c: Revert.
11953 * complaints.c: Revert.
11954 * coffread.c: Revert.
11955 * coff-pe-read.c: Revert.
11956 * cli-out.h: Revert.
11957 * cli-out.c: Revert.
11958 * charset.c: Revert.
11959 * c-varobj.c: Revert.
11960 * c-valprint.c: Revert.
11961 * c-typeprint.c: Revert.
11962 * c-lang.c: Revert.
11963 * buildsym.c: Revert.
11964 * buildsym-legacy.c: Revert.
11965 * build-id.h: Revert.
11966 * build-id.c: Revert.
11967 * btrace.c: Revert.
11968 * bsd-uthread.c: Revert.
11969 * breakpoint.h: Revert.
11970 * breakpoint.c: Revert.
11971 * break-catch-throw.c: Revert.
11972 * break-catch-syscall.c: Revert.
11973 * break-catch-sig.c: Revert.
11974 * blockframe.c: Revert.
11975 * block.c: Revert.
11976 * bfin-tdep.c: Revert.
11977 * bfin-linux-tdep.c: Revert.
11978 * bfd-target.c: Revert.
11979 * bcache.c: Revert.
11980 * ax-general.c: Revert.
11981 * ax-gdb.h: Revert.
11982 * ax-gdb.c: Revert.
11983 * avr-tdep.c: Revert.
11984 * auxv.c: Revert.
11985 * auto-load.c: Revert.
11986 * arm-wince-tdep.c: Revert.
11987 * arm-tdep.c: Revert.
11988 * arm-symbian-tdep.c: Revert.
11989 * arm-pikeos-tdep.c: Revert.
11990 * arm-obsd-tdep.c: Revert.
11991 * arm-nbsd-tdep.c: Revert.
11992 * arm-nbsd-nat.c: Revert.
11993 * arm-linux-tdep.c: Revert.
11994 * arm-linux-nat.c: Revert.
11995 * arm-fbsd-tdep.c: Revert.
11996 * arm-fbsd-nat.c: Revert.
11997 * arm-bsd-tdep.c: Revert.
11998 * arch-utils.c: Revert.
11999 * arc-tdep.c: Revert.
12000 * arc-newlib-tdep.c: Revert.
12001 * annotate.h: Revert.
12002 * annotate.c: Revert.
12003 * amd64-windows-tdep.c: Revert.
12004 * amd64-windows-nat.c: Revert.
12005 * amd64-tdep.c: Revert.
12006 * amd64-sol2-tdep.c: Revert.
12007 * amd64-obsd-tdep.c: Revert.
12008 * amd64-obsd-nat.c: Revert.
12009 * amd64-nbsd-tdep.c: Revert.
12010 * amd64-nbsd-nat.c: Revert.
12011 * amd64-nat.c: Revert.
12012 * amd64-linux-tdep.c: Revert.
12013 * amd64-linux-nat.c: Revert.
12014 * amd64-fbsd-tdep.c: Revert.
12015 * amd64-fbsd-nat.c: Revert.
12016 * amd64-dicos-tdep.c: Revert.
12017 * amd64-darwin-tdep.c: Revert.
12018 * amd64-bsd-nat.c: Revert.
12019 * alpha-tdep.c: Revert.
12020 * alpha-obsd-tdep.c: Revert.
12021 * alpha-nbsd-tdep.c: Revert.
12022 * alpha-mdebug-tdep.c: Revert.
12023 * alpha-linux-tdep.c: Revert.
12024 * alpha-linux-nat.c: Revert.
12025 * alpha-bsd-tdep.c: Revert.
12026 * alpha-bsd-nat.c: Revert.
12027 * aix-thread.c: Revert.
12028 * agent.c: Revert.
12029 * addrmap.c: Revert.
12030 * ada-varobj.c: Revert.
12031 * ada-valprint.c: Revert.
12032 * ada-typeprint.c: Revert.
12033 * ada-tasks.c: Revert.
12034 * ada-lang.c: Revert.
12035 * aarch64-tdep.c: Revert.
12036 * aarch64-ravenscar-thread.c: Revert.
12037 * aarch64-newlib-tdep.c: Revert.
12038 * aarch64-linux-tdep.c: Revert.
12039 * aarch64-linux-nat.c: Revert.
12040 * aarch64-fbsd-tdep.c: Revert.
12041 * aarch64-fbsd-nat.c: Revert.
12042 * aarch32-linux-nat.c: Revert.
12043
12044 2019-04-05 Tom Tromey <tom@tromey.com>
12045
12046 * ft32-tdep.c: Sort headers.
12047 * frv-tdep.c: Sort headers.
12048 * frv-linux-tdep.c: Sort headers.
12049 * frame.c: Sort headers.
12050 * frame-unwind.c: Sort headers.
12051 * frame-base.c: Sort headers.
12052 * fork-child.c: Sort headers.
12053 * findvar.c: Sort headers.
12054 * findcmd.c: Sort headers.
12055 * filesystem.c: Sort headers.
12056 * filename-seen-cache.h: Sort headers.
12057 * filename-seen-cache.c: Sort headers.
12058 * fbsd-tdep.c: Sort headers.
12059 * fbsd-nat.h: Sort headers.
12060 * fbsd-nat.c: Sort headers.
12061 * f-valprint.c: Sort headers.
12062 * f-typeprint.c: Sort headers.
12063 * f-lang.c: Sort headers.
12064 * extension.h: Sort headers.
12065 * extension.c: Sort headers.
12066 * extension-priv.h: Sort headers.
12067 * expprint.c: Sort headers.
12068 * exec.h: Sort headers.
12069 * exec.c: Sort headers.
12070 * exceptions.c: Sort headers.
12071 * event-top.c: Sort headers.
12072 * event-loop.c: Sort headers.
12073 * eval.c: Sort headers.
12074 * elfread.c: Sort headers.
12075 * dwarf2read.h: Sort headers.
12076 * dwarf2read.c: Sort headers.
12077 * dwarf2loc.c: Sort headers.
12078 * dwarf2expr.h: Sort headers.
12079 * dwarf2expr.c: Sort headers.
12080 * dwarf2-frame.c: Sort headers.
12081 * dwarf2-frame-tailcall.c: Sort headers.
12082 * dwarf-index-write.h: Sort headers.
12083 * dwarf-index-write.c: Sort headers.
12084 * dwarf-index-common.c: Sort headers.
12085 * dwarf-index-cache.h: Sort headers.
12086 * dwarf-index-cache.c: Sort headers.
12087 * dummy-frame.c: Sort headers.
12088 * dtrace-probe.c: Sort headers.
12089 * disasm.h: Sort headers.
12090 * disasm.c: Sort headers.
12091 * disasm-selftests.c: Sort headers.
12092 * dictionary.c: Sort headers.
12093 * dicos-tdep.c: Sort headers.
12094 * demangle.c: Sort headers.
12095 * dcache.h: Sort headers.
12096 * dcache.c: Sort headers.
12097 * darwin-nat.h: Sort headers.
12098 * darwin-nat.c: Sort headers.
12099 * darwin-nat-info.c: Sort headers.
12100 * d-valprint.c: Sort headers.
12101 * d-namespace.c: Sort headers.
12102 * d-lang.c: Sort headers.
12103 * ctf.c: Sort headers.
12104 * csky-tdep.c: Sort headers.
12105 * csky-linux-tdep.c: Sort headers.
12106 * cris-tdep.c: Sort headers.
12107 * cris-linux-tdep.c: Sort headers.
12108 * cp-valprint.c: Sort headers.
12109 * cp-support.c: Sort headers.
12110 * cp-namespace.c: Sort headers.
12111 * cp-abi.c: Sort headers.
12112 * corelow.c: Sort headers.
12113 * corefile.c: Sort headers.
12114 * continuations.c: Sort headers.
12115 * completer.h: Sort headers.
12116 * completer.c: Sort headers.
12117 * complaints.c: Sort headers.
12118 * coffread.c: Sort headers.
12119 * coff-pe-read.c: Sort headers.
12120 * cli-out.h: Sort headers.
12121 * cli-out.c: Sort headers.
12122 * charset.c: Sort headers.
12123 * c-varobj.c: Sort headers.
12124 * c-valprint.c: Sort headers.
12125 * c-typeprint.c: Sort headers.
12126 * c-lang.c: Sort headers.
12127 * buildsym.c: Sort headers.
12128 * buildsym-legacy.c: Sort headers.
12129 * build-id.h: Sort headers.
12130 * build-id.c: Sort headers.
12131 * btrace.c: Sort headers.
12132 * bsd-uthread.c: Sort headers.
12133 * breakpoint.h: Sort headers.
12134 * breakpoint.c: Sort headers.
12135 * break-catch-throw.c: Sort headers.
12136 * break-catch-syscall.c: Sort headers.
12137 * break-catch-sig.c: Sort headers.
12138 * blockframe.c: Sort headers.
12139 * block.c: Sort headers.
12140 * bfin-tdep.c: Sort headers.
12141 * bfin-linux-tdep.c: Sort headers.
12142 * bfd-target.c: Sort headers.
12143 * bcache.c: Sort headers.
12144 * ax-general.c: Sort headers.
12145 * ax-gdb.h: Sort headers.
12146 * ax-gdb.c: Sort headers.
12147 * avr-tdep.c: Sort headers.
12148 * auxv.c: Sort headers.
12149 * auto-load.c: Sort headers.
12150 * arm-wince-tdep.c: Sort headers.
12151 * arm-tdep.c: Sort headers.
12152 * arm-symbian-tdep.c: Sort headers.
12153 * arm-pikeos-tdep.c: Sort headers.
12154 * arm-obsd-tdep.c: Sort headers.
12155 * arm-nbsd-tdep.c: Sort headers.
12156 * arm-nbsd-nat.c: Sort headers.
12157 * arm-linux-tdep.c: Sort headers.
12158 * arm-linux-nat.c: Sort headers.
12159 * arm-fbsd-tdep.c: Sort headers.
12160 * arm-fbsd-nat.c: Sort headers.
12161 * arm-bsd-tdep.c: Sort headers.
12162 * arch-utils.c: Sort headers.
12163 * arc-tdep.c: Sort headers.
12164 * arc-newlib-tdep.c: Sort headers.
12165 * annotate.h: Sort headers.
12166 * annotate.c: Sort headers.
12167 * amd64-windows-tdep.c: Sort headers.
12168 * amd64-windows-nat.c: Sort headers.
12169 * amd64-tdep.c: Sort headers.
12170 * amd64-sol2-tdep.c: Sort headers.
12171 * amd64-obsd-tdep.c: Sort headers.
12172 * amd64-obsd-nat.c: Sort headers.
12173 * amd64-nbsd-tdep.c: Sort headers.
12174 * amd64-nbsd-nat.c: Sort headers.
12175 * amd64-nat.c: Sort headers.
12176 * amd64-linux-tdep.c: Sort headers.
12177 * amd64-linux-nat.c: Sort headers.
12178 * amd64-fbsd-tdep.c: Sort headers.
12179 * amd64-fbsd-nat.c: Sort headers.
12180 * amd64-dicos-tdep.c: Sort headers.
12181 * amd64-darwin-tdep.c: Sort headers.
12182 * amd64-bsd-nat.c: Sort headers.
12183 * alpha-tdep.c: Sort headers.
12184 * alpha-obsd-tdep.c: Sort headers.
12185 * alpha-nbsd-tdep.c: Sort headers.
12186 * alpha-mdebug-tdep.c: Sort headers.
12187 * alpha-linux-tdep.c: Sort headers.
12188 * alpha-linux-nat.c: Sort headers.
12189 * alpha-bsd-tdep.c: Sort headers.
12190 * alpha-bsd-nat.c: Sort headers.
12191 * aix-thread.c: Sort headers.
12192 * agent.c: Sort headers.
12193 * addrmap.c: Sort headers.
12194 * ada-varobj.c: Sort headers.
12195 * ada-valprint.c: Sort headers.
12196 * ada-typeprint.c: Sort headers.
12197 * ada-tasks.c: Sort headers.
12198 * ada-lang.c: Sort headers.
12199 * aarch64-tdep.c: Sort headers.
12200 * aarch64-ravenscar-thread.c: Sort headers.
12201 * aarch64-newlib-tdep.c: Sort headers.
12202 * aarch64-linux-tdep.c: Sort headers.
12203 * aarch64-linux-nat.c: Sort headers.
12204 * aarch64-fbsd-tdep.c: Sort headers.
12205 * aarch64-fbsd-nat.c: Sort headers.
12206 * aarch32-linux-nat.c: Sort headers.
12207
12208 2019-04-04 Tom Tromey <tom@tromey.com>
12209
12210 * varobj.c (varobj_create): Update.
12211 * rust-exp.y (struct rust_parser) <update_innermost_block,
12212 lookup_symbol>: New methods.
12213 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12214 Rename.
12215 (rust_parser::rust_lookup_type)
12216 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12217 * printcmd.c (display_command, do_one_display): Update.
12218 * parser-defs.h (struct parser_state) <parser_state>: Add
12219 "tracker" parameter.
12220 (block_tracker): New member.
12221 (class innermost_block_tracker) <innermost_block_tracker>: Add
12222 "types" parameter.
12223 <reset>: Remove method.
12224 (innermost_block): Don't declare.
12225 (null_post_parser): Update.
12226 * parse.c (innermost_block): Remove global.
12227 (write_dollar_variable): Update.
12228 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12229 Remove "tracker_types" parameter.
12230 (parse_expression): Add "tracker" parameter.
12231 (parse_expression_for_completion): Update.
12232 (null_post_parser): Add "tracker" parameter.
12233 * p-exp.y: Update rules.
12234 * m2-exp.y: Update rules.
12235 * language.h (struct language_defn) <la_post_parser>: Add
12236 "tracker" parameter.
12237 * go-exp.y: Update rules.
12238 * f-exp.y: Update rules.
12239 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12240 parameter.
12241 * d-exp.y: Update rules.
12242 * c-exp.y: Update rules.
12243 * breakpoint.c (set_breakpoint_condition): Create an
12244 innermost_block_tracker.
12245 (watch_command_1): Likewise.
12246 * ada-lang.c (resolve): Add "tracker" parameter.
12247 (resolve_subexp): Likewise.
12248 * ada-exp.y (write_var_from_sym): Update.
12249
12250 2019-04-04 Tom Tromey <tom@tromey.com>
12251
12252 * type-stack.h: New file.
12253 * type-stack.c: New file.
12254 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12255 type-stack.h.
12256 (insert_into_type_stack, insert_type, push_type, push_type_int)
12257 (insert_type_address_space, pop_type, pop_type_int)
12258 (pop_typelist, pop_type_stack, append_type_stack)
12259 (push_type_stack, get_type_stack, push_typelist)
12260 (follow_type_instance_flags, follow_types): Don't declare.
12261 * parse.c (type_stack): Remove global.
12262 (parse_exp_in_context): Update.
12263 (insert_into_type_stack, insert_type, push_type, push_type_int)
12264 (insert_type_address_space, pop_type, pop_type_int)
12265 (pop_typelist, pop_type_stack, append_type_stack)
12266 (push_type_stack, get_type_stack, push_typelist)
12267 (follow_type_instance_flags, follow_types): Remove (moved to
12268 type-stack.c).
12269 * f-exp.y (type_stack): New global.
12270 Update rules.
12271 (push_kind_type, f_parse): Update.
12272 * d-exp.y (type_stack): New global.
12273 Update rules.
12274 (d_parse): Update.
12275 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12276 Update rules.
12277 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12278 (HFILES_NO_SRCDIR): Add type-stack.h.
12279
12280 2019-04-04 Tom Tromey <tom@tromey.com>
12281
12282 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12283 (rust_parser::convert_ast_to_expression, rust_parse)
12284 (rust_lex_test_completion, rust_lex_tests): Update.
12285 * parser-defs.h (struct expr_completion_state): New.
12286 (struct parser_state) <parser_state>: Add completion parameter.
12287 <mark_struct_expression, mark_completion_tag>: New methods.
12288 <parse_completion, m_completion_state>: New members.
12289 (prefixify_expression, null_post_parser): Update.
12290 (mark_struct_expression, mark_completion_tag): Don't declare.
12291 * parse.c (parse_completion, expout_last_struct)
12292 (expout_tag_completion_type, expout_completion_name): Remove
12293 globals.
12294 (parser_state::mark_struct_expression)
12295 (parser_state::mark_completion_tag): Now methods.
12296 (prefixify_expression): Add last_struct parameter.
12297 (prefixify_subexp): Likewise.
12298 (parse_exp_1): Update.
12299 (parse_exp_in_context): Add cstate parameter. Update.
12300 (parse_expression_for_completion): Create an
12301 expr_completion_state.
12302 (null_post_parser): Add "completion" parameter.
12303 * p-exp.y: Update rules.
12304 (yylex): Update.
12305 * language.h (struct language_defn) <la_post_parser>: Add
12306 "completing" parameter.
12307 * go-exp.y: Update rules.
12308 (lex_one_token): Update.
12309 * expression.h (parse_completion): Don't declare.
12310 * d-exp.y: Update rules.
12311 (lex_one_token): Update rules.
12312 * c-exp.y: Update rules.
12313 (lex_one_token): Update.
12314 * ada-lang.c (resolve): Add "parse_completion" parameter.
12315 (resolve_subexp): Likewise.
12316 (ada_resolve_function): Likewise.
12317
12318 2019-04-04 Tom Tromey <tom@tromey.com>
12319
12320 * parser-defs.h (struct parser_state) <start_arglist,
12321 end_arglist>: New methods.
12322 <arglist_len, m_funcall_chain>: New members.
12323 (arglist_len, start_arglist, end_arglist): Don't declare.
12324 * parse.c (arglist_len, funcall_chain): Remove global.
12325 (start_arglist, end_arglist): Remove functions.
12326 (parse_exp_in_context): Update.
12327 * p-exp.y: Update rules.
12328 * m2-exp.y: Update rules.
12329 * go-exp.y: Update rules.
12330 * f-exp.y: Update rules.
12331 * d-exp.y: Update rules.
12332 * c-exp.y: Update rules.
12333
12334 2019-04-04 Tom Tromey <tom@tromey.com>
12335
12336 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12337 lex_operator, push_back>: New methods.
12338 Update all rules.
12339 (rust_parser::lex_hex, lex_escape): Rename and update.
12340 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12341 (rust_parser::lex_operator): Rename and update.
12342 (rust_parser::lex_number, rustyylex, rustyyerror)
12343 (rust_lex_test_init, rust_lex_test_sequence)
12344 (rust_lex_test_push_back, rust_lex_tests): Update.
12345 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12346 parameter.
12347 <lexptr, prev_lexptr>: New members.
12348 (lexptr, prev_lexptr): Don't declare.
12349 * parse.c (lexptr, prev_lexptr): Remove globals.
12350 (parse_exp_in_context): Update.
12351 * p-exp.y (yylex, yyerror): Update.
12352 * m2-exp.y (parse_number, yylex, yyerror): Update.
12353 * go-exp.y (lex_one_token, yyerror): Update.
12354 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12355 * d-exp.y (lex_one_token, yyerror): Update.
12356 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12357 (lex_one_token, yyerror): Update.
12358 * ada-lex.l (YY_INPUT): Update.
12359 (rewind_to_char): Update.
12360 * ada-exp.y (yyerror): Update.
12361
12362 2019-04-04 Tom Tromey <tom@tromey.com>
12363
12364 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12365 * parser-defs.h (struct parser_state) <parser_state>: Add new
12366 parameter.
12367 <comma_terminates>: New member.
12368 (comma_terminates): Don't declare global.
12369 * parse.c (comma_terminates): Remove global.
12370 (parse_exp_in_context): Update.
12371 * p-exp.y (yylex): Update.
12372 * m2-exp.y (yylex): Update.
12373 * go-exp.y (lex_one_token): Update.
12374 * f-exp.y (yylex): Update.
12375 * d-exp.y (lex_one_token): Update.
12376 * c-exp.y (lex_one_token): Update.
12377 * ada-lex.l: Update.
12378
12379 2019-04-04 Tom Tromey <tom@tromey.com>
12380
12381 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12382 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12383 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12384 * parser-defs.h (paren_depth): Don't declare.
12385 * parse.c (paren_depth): Remove global.
12386 (parse_exp_in_context): Update.
12387 * p-exp.y (paren_depth): New global.
12388 (pascal_parse): Initialize it.
12389 * m2-exp.y (paren_depth): New global.
12390 (m2_parse): Initialize it.
12391 * go-exp.y (paren_depth): New global.
12392 (go_parse): Initialize it.
12393 * f-exp.y (paren_depth): New global.
12394 (f_parse): Initialize it.
12395 * d-exp.y (paren_depth): New global.
12396 (d_parse): Initialize it.
12397 * c-exp.y (paren_depth): New global.
12398 (c_parse): Initialize it.
12399 * ada-lex.l (paren_depth): New global.
12400 (lexer_init): Initialize it.
12401
12402 2019-04-04 Tom Tromey <tom@tromey.com>
12403
12404 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12405 (rust_parser::convert_ast_to_type)
12406 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12407 * parser-defs.h (struct parser_state) <parser_state>: Add
12408 parameters. Initialize new members.
12409 <expression_context_block, expression_context_pc>: New members.
12410 * parse.c (expression_context_block, expression_context_pc):
12411 Remove globals.
12412 (parse_exp_in_context): Update.
12413 * p-exp.y: Update all rules.
12414 (yylex): Update.
12415 * m2-exp.y: Update all rules.
12416 (yylex): Update.
12417 * go-exp.y (yylex): Update.
12418 * f-exp.y (yylex): Update.
12419 * d-exp.y: Update all rules.
12420 (yylex): Update.
12421 * c-exp.y: Update all rules.
12422 (lex_one_token, classify_name, yylex, c_parse): Update.
12423 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12424
12425 2019-04-04 Tom Tromey <tom@tromey.com>
12426
12427 * gdbarch.h, gdbarch.c: Rebuild.
12428 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12429 * stap-probe.h:
12430 (struct stap_parse_info): Replace "parser_state" with
12431 "expr_builder".
12432 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12433 (parser_state): New class.
12434 * parse.c (expr_builder): Rename.
12435 (expr_builder::release): Rename.
12436 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12437 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12438 (write_exp_elt_longcst, write_exp_elt_floatcst)
12439 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12440 (write_exp_string_vector, write_exp_bitstring)
12441 (write_exp_msymbol, mark_struct_expression)
12442 (write_dollar_variable)
12443 (insert_type_address_space, increase_expout_size): Replace
12444 "parser_state" with "expr_builder".
12445 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12446 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12447 "parser_state" with "expr_builder".
12448
12449 2019-04-04 Tom Tromey <tom@tromey.com>
12450
12451 * rust-exp.y: Replace "parse_language" with method call.
12452 * p-exp.y:
12453 (yylex): Replace "parse_language" with method call.
12454 * m2-exp.y:
12455 (yylex): Replace "parse_language" with method call.
12456 * go-exp.y (classify_name): Replace "parse_language" with method
12457 call.
12458 * f-exp.y (yylex): Replace "parse_language" with method call.
12459 * d-exp.y (lex_one_token): Replace "parse_language" with method
12460 call.
12461 * c-exp.y:
12462 (lex_one_token, classify_name, yylex): Replace "parse_language"
12463 with method call.
12464 * ada-exp.y (find_primitive_type, type_char)
12465 (type_system_address): Replace "parse_language" with method call.
12466
12467 2019-04-04 Tom Tromey <tom@tromey.com>
12468
12469 * rust-exp.y: Replace "parse_gdbarch" with method call.
12470 * parse.c (write_dollar_variable, insert_type_address_space):
12471 Replace "parse_gdbarch" with method call.
12472 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12473 call.
12474 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12475 call.
12476 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12477 "parse_gdbarch" with method call.
12478 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12479 with method call.
12480 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12481 "parse_gdbarch" with method call.
12482 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12483 "parse_gdbarch" with method call.
12484 * c-exp.y (parse_type, parse_number, classify_name): Replace
12485 "parse_gdbarch" with method call.
12486 * ada-lex.l: Replace "parse_gdbarch" with method call.
12487 * ada-exp.y (parse_type, find_primitive_type, type_char)
12488 (type_system_address): Replace "parse_gdbarch" with method call.
12489
12490 2019-04-04 Tom Tromey <tom@tromey.com>
12491
12492 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12493 * stap-probe.c (stap_parse_argument): Update.
12494 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12495 initial_size parameter.
12496 * rust-exp.y (rust_lex_tests): Update.
12497 * parse.c (parser_state): Update.
12498 (parse_exp_in_context): Update.
12499 * parser-defs.h (struct parser_state) <parser_state>: Remove
12500 "initial_size" parameter.
12501
12502 2019-04-04 Tom Tromey <tom@tromey.com>
12503
12504 * parser-defs.h (increase_expout_size): Don't declare.
12505 * parse.c (increase_expout_size): Now static.
12506
12507 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12508
12509 * gnu-nat.c (gnu_nat_target::wait): Fix
12510 target_waitstatus_to_string call.
12511
12512 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12513
12514 * eval.c (evaluate_subexp_standard): Handle internal functions
12515 during Fortran function call handling.
12516
12517 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12518
12519 * NEWS: Mention new internal functions.
12520 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12521 (read_base_type): Use dwarf2_init_complex_target_type.
12522 * value.c (creal_internal_fn): New function.
12523 (cimag_internal_fn): New function.
12524 (_initialize_values): Register new internal functions.
12525
12526 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12527
12528 * infrun.c (stop_all_threads): If debug_infrun, always
12529 trace the wait status after wait_one, using
12530 target_waitstatus_to_string and target_pid_to_str.
12531 (handle_inferior_event): Replace various trace of
12532 wait status kind by a single trace.
12533 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12534 wait status kind image by target_waitstatus_to_string.
12535 * target/waitstatus.c (target_waitstatus_to_string): Fix
12536 obsolete comment.
12537
12538 2019-04-01 Tom Tromey <tromey@adacore.com>
12539
12540 PR symtab/23331:
12541 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12542
12543 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12544 Pedro Alves <palves@redhat.com>
12545
12546 * top.c (quit_force): Call 'finalize_values'.
12547 * value.c (finalize_values): New function.
12548 * value.h (finalize_values): Declare.
12549
12550 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12551
12552 * NEWS: Announce $_gdb_major and $_gdb_minor.
12553
12554 * top.c (init_gdb_version_vars): New function.
12555 (gdb_init): Call init_gdb_version_vars.
12556
12557 2019-03-29 Tom Tromey <tromey@adacore.com>
12558
12559 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12560 help text. Remove dead code.
12561
12562 2019-03-29 Keith Seitz <keiths@redhat.com>
12563
12564 From Siddhesh Poyarekar:
12565 * f-lang.h (f77_get_upperbound): Return LONGEST.
12566 (f77_get_lowerbound): Likewise.
12567 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12568 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12569 print them.
12570 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12571 plongest to format print it.
12572 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12573 (f77_get_upperbound): Likewise.
12574 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12575 LOWER_BOUND to LONGEST.
12576 (f77_create_arrayprint_offset_tbl): Likewise.
12577
12578 2019-03-29 Keith Seitz <keiths@redhat.com>
12579
12580 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12581 %s/pulongest for TYPE_LENGTH instead of %d in format
12582 strings.
12583 * ada-typerint.c (ada_print_type): Likewise.
12584 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12585 * compile/compile-c-support.c (generate_register_struct): Likewise.
12586 * gdbtypes.c (recursive_dump_type): Likewise.
12587 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12588 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12589 instead of %d in format strings.
12590 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12591 to std::min to ULONGEST.
12592 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12593 instead of %d in format strings.
12594 * tracepoint.c (info_scope_command): Likewise.
12595 * typeprint.c (print_offset_data::update)
12596 (print_offset_data::finish): Likewise.
12597 * xtensa-tdep.c (xtensa_store_return_value)
12598 (xtensa_push_dummy_call): Likewise.
12599
12600 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12601
12602 * windows-nat.c (display_selector): Fixed format specifications
12603 for 64-bit Cygwin.
12604
12605 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12606
12607 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12608
12609 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12610
12611 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12612 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12613 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12614 (nios2_linux_init_abi): Install it.
12615
12616 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12617
12618 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12619
12620 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12621
12622 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12623
12624 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12625 Tom Tromey <tromey@adacore.com>
12626
12627 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12628
12629 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12630
12631 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12632 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12633 method to compute the bounds of range types. Also print "[evaluated]"
12634 if the bounds' values come from a dynamic evaluation.
12635
12636 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12637
12638 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12639 whitespace when pretty printing is on.
12640
12641 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12642
12643 * ppc-linux-nat.c: Add include.
12644
12645 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12646
12647 * NEWS: Mention AArch64 Pointer Authentication.
12648
12649 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12650
12651 * arm-linux-nat.c: Add include.
12652
12653 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12654
12655 * source-cache.c (source_cache::get_source_lines): Re-read
12656 fullname after calling open_source_file.
12657
12658 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12659
12660 * NEWS: Mention TLS support for FreeBSD.
12661
12662 2019-03-25 Tom Tromey <tromey@adacore.com>
12663
12664 * minsyms.c (BUNCH_SIZE): Update comment.
12665 (~minimal_symbol_reader): Remove old comment.
12666 (compact_minimal_symbols): Update comment.
12667 (minimal_symbol_reader::install): Remove old comment. Update
12668 other comments.
12669
12670 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12671
12672 * s390-linux-nat.c: Add include.
12673
12674 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12675
12676 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12677 Call linux_get_hwcap.
12678 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12679 Likewise.
12680 (aarch64_linux_get_hwcap): Remove function.
12681 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12682 declaration.
12683 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12684 linux_get_hwcap.
12685 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12686 * linux-tdep.c (linux_get_hwcap): Add function.
12687 (linux_get_hwcap2): Likewise.
12688 * linux-tdep.h (linux_get_hwcap): Add declaration.
12689 (linux_get_hwcap2): Likewise.
12690 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12691 (ppc_linux_get_hwcap2): Likewise.
12692 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12693 linux_get_hwcap.
12694 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12695 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12696 (ppc_linux_nat_target::read_description): Likewise.
12697 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12698 * s390-linux-nat.c: Likewise.
12699 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12700
12701 2019-03-24 Tom Tromey <tom@tromey.com>
12702
12703 * ada-lang.c (standard_lookup): Simplify initialization.
12704 (ada_lookup_symbol_nonlocal): Simplify return.
12705 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12706 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12707 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12708 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12709 initialization.
12710 * solib.c (solib_global_lookup): Simplify.
12711 * symtab.c (null_block_symbol): Remove.
12712 (symbol_cache_lookup): Simplify returns.
12713 (lookup_language_this): Simplify returns.
12714 (lookup_symbol_aux): Simplify return.
12715 (lookup_local_symbol): Simplify returns.
12716 (lookup_global_symbol_from_objfile): Simplify return.
12717 (lookup_symbol_in_objfile_symtabs)
12718 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12719 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12720 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12721 * cp-namespace.c (cp_lookup_bare_symbol)
12722 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12723 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12724 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12725 (cp_lookup_symbol_via_imports): Simplify initialization.
12726 (find_symbol_in_baseclass): Likewise.
12727 * symtab.h (null_block_symbol): Remove.
12728 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12729 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12730 (d_lookup_symbol_module): Likewise.
12731 (find_symbol_in_baseclass): Simplify initialization.
12732
12733 2019-03-24 Tom Tromey <tom@tromey.com>
12734
12735 * expression.h: Don't include symtab.h.
12736 (struct block): Forward declare.
12737
12738 2019-03-24 Tom Tromey <tom@tromey.com>
12739
12740 * c-exp.y (typebase): Remove casts.
12741 * gdbtypes.c (lookup_unsigned_typename, )
12742 (lookup_signed_typename): Remove cast.
12743 * eval.c (parse_to_comma_and_eval): Remove cast.
12744 * parse.c (write_dollar_variable): Remove cast.
12745 * block.h (struct block) <superblock>: Now const.
12746 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12747 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12748 (map_block): Make "block" const.
12749 * symfile.h (struct quick_symbol_functions)
12750 <map_matching_symbols>: Constify block argument to "callback".
12751 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12752 const.
12753 (find_pc_sect_compunit_symtab): Make "b" const.
12754 (find_symbol_at_address): Likewise.
12755 (search_symbols): Likewise.
12756 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12757 (dw2_debug_names_lookup_symbol): Likewise.
12758 (dw2_map_matching_symbols): Update.
12759 * p-valprint.c (pascal_val_print): Remove "block".
12760 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12761 (aux_add_nonlocal_symbols): Make "block" const.
12762 (resolve_subexp): Remove cast.
12763 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12764 const.
12765 (iterate_over_file_blocks): Likewise.
12766 * f-exp.y (%union) <bval>: Remove.
12767 * coffread.c (patch_opaque_types): Make "b" const.
12768 * spu-tdep.c (spu_catch_start): Make "block" const.
12769 * c-valprint.c (print_unpacked_pointer): Remove "block".
12770 * symmisc.c (dump_symtab_1): Make "b" const.
12771 (block_depth): Make "block" const.
12772 * d-exp.y (%union) <bval>: Remove.
12773 * cp-support.h (cp_lookup_rtti_type): Update.
12774 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12775 * psymtab.c (psym_lookup_symbol): Make "block" const.
12776 (maintenance_check_psymtabs): Make "b" const.
12777 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12778 (enumerate_locals, enumerate_args): Update.
12779 * python/py-symtab.c (stpy_global_block): Make "block" const.
12780 (stpy_static_block): Likewise.
12781 * inline-frame.c (block_starting_point_at): Make "new_block"
12782 const.
12783 * block.c (find_block_in_blockvector): Make return type const.
12784 (blockvector_for_pc_sect): Make "b" const.
12785 (find_block_in_blockvector): Make "b" const.
12786
12787 2019-03-23 Tom Tromey <tom@tromey.com>
12788
12789 * varobj.c (varobj_create): Update.
12790 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12791 * printcmd.c (display_command, do_one_display): Don't reset
12792 innermost_block.
12793 * parser-defs.h (enum innermost_block_tracker_type): Move to
12794 expression.h.
12795 (innermost_block): Update comment.
12796 * parse.c (parse_exp_1): Add tracker_types parameter.
12797 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12798 tracker_types parameter. Reset innermost_block.
12799 (parse_exp_in_context): Remove.
12800 (parse_expression_for_completion): Update.
12801 * objfiles.c (~objfile): Don't reset expression_context_block or
12802 innermost_block.
12803 * expression.h (enum innermost_block_tracker_type): Move from
12804 parser-defs.h.
12805 (parse_exp_1): Add tracker_types parameter.
12806 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12807 reset innermost_block.
12808
12809 2019-03-23 Tom Tromey <tom@tromey.com>
12810
12811 * objfiles.h: Include bcache.h.
12812
12813 2019-03-23 Tom Tromey <tom@tromey.com>
12814
12815 * linespec.c (get_current_search_block): Use
12816 scoped_restore_current_language.
12817 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12818
12819 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12820 Jiong Wang <jiong.wang@arm.com>
12821
12822 * aarch64-linux-tdep.c
12823 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12824 section.
12825 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12826
12827 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12828 Jiong Wang <jiong.wang@arm.com>
12829
12830 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12831 instructions.
12832 (aarch64_analyze_prologue_test): Add PACIASP test.
12833 (aarch64_prologue_prev_register): Unmask PC value.
12834
12835 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12836 Jiong Wang <jiong.wang@arm.com>
12837
12838 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12839 (aarch64_dwarf2_prev_register): Unmask PC value.
12840 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12841 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12842 DW_CFA_AARCH64_negate_ra_state.
12843 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12844
12845 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12846 Jiong Wang <jiong.wang@arm.com>
12847
12848 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12849 registers.
12850 (aarch64_pseudo_register_name): Likewise.
12851 (aarch64_pseudo_register_type): Likewise.
12852 (aarch64_pseudo_register_reggroup_p): Likewise.
12853 (aarch64_gdbarch_init): Add pauth registers.
12854 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12855 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12856 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12857 (struct gdbarch_tdep): Add regnum for ra_state.
12858
12859 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12860 Jiong Wang <jiong.wang@arm.com>
12861
12862 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12863
12864 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12865 Jiong Wang <jiong.wang@arm.com>
12866
12867 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12868 function.
12869 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12870 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12871 (aarch64_gdbarch_init): Add puth registers.
12872 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12873 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12874 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12875
12876 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12877 Jiong Wang <jiong.wang@arm.com>
12878
12879 * aarch64-linux-nat.c
12880 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12881 * aarch64-linux-tdep.c
12882 (aarch64_linux_core_read_description): Likewise.
12883 (aarch64_linux_get_hwcap): New function.
12884 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12885 (aarch64_linux_get_hwcap): New declaration.
12886
12887 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12888 Jiong Wang <jiong.wang@arm.com>
12889
12890 * aarch64-linux-nat.c
12891 (aarch64_linux_nat_target::read_description): Add pauth param.
12892 * aarch64-linux-tdep.c
12893 (aarch64_linux_core_read_description): Likewise.
12894 * aarch64-tdep.c (struct target_desc): Add in pauth.
12895 (aarch64_read_description): Add pauth param.
12896 (aarch64_gdbarch_init): Likewise.
12897 * aarch64-tdep.h (aarch64_read_description): Likewise.
12898 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12899 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12900 * features/Makefile: Add new files.
12901 * features/aarch64-pauth.c: New file.
12902 * features/aarch64-pauth.xml: New file.
12903
12904 2019-03-20 Tom Tromey <tromey@adacore.com>
12905
12906 * infrun.c (handle_inferior_event): Rename from
12907 handle_inferior_event_1. Create a scoped_value_mark.
12908 (handle_inferior_event): Remove.
12909
12910 2019-03-19 Tom Tromey <tromey@adacore.com>
12911
12912 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12913 * infrun.h (print_stop_event): Add "displays" parameter.
12914 * infrun.c (print_stop_event): Add "displays" parameter.
12915
12916 2019-03-19 Pedro Alves <palves@redhat.com>
12917
12918 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12919 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12920 to -1. Fix TABs vs spaces.
12921 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12922 * tui/tui-out.h (tui_ui_out) Add intro comments.
12923 <m_line, m_start_of_line>: In-class initialize, and add describing
12924 comment.
12925
12926 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12927
12928 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12929 variable names.
12930 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12931
12932 2019-03-18 Pedro Alves <palves@redhat.com>
12933 Eli Zaretskii <eliz@gnu.org>
12934
12935 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12936 m_line and m_start_of_line.
12937
12938 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12939
12940 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12941 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12942 it returns a newline. This fixes a regression in TU mode, whereby
12943 the next line is output on the same screen line as the user input.
12944
12945 2019-03-18 Tom Tromey <tromey@adacore.com>
12946
12947 * minsyms.c (minimal_symbol_reader::install): Remove call to
12948 obstack_blank.
12949
12950 2019-03-18 Pedro Alves <palves@redhat.com>
12951
12952 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12953 New globals.
12954 (apply_style): New, factored out from ...
12955 (apply_ansi_escape): ... this. Handle reverse video mode.
12956 (tui_set_reverse_mode): New function.
12957 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12958 * tui/tui-winsource.c (tui_show_source_line): Use
12959 tui_set_reverse_mode instead of setting A_STANDOUT.
12960 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12961 New setter methods.
12962
12963 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12964
12965 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12966 Handle tabs.
12967
12968 2019-03-18 Tom Tromey <tromey@adacore.com>
12969
12970 * ada-lang.c (empty_array): Add "high" parameter.
12971 (ada_evaluate_subexp): Update.
12972
12973 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12974
12975 * unittests/string_view-selftests.c: Define
12976 _initialize_string_view_selftests unconditionally.
12977
12978 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12979
12980 PR gdb/24350
12981 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12982
12983 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12984
12985 PR gdb/24351
12986 * windows-nat.c (display_selector): Fix format specifiers.
12987
12988 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12989
12990 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12991 tui_refill_source_window instead of tui_refresh_win, to update the
12992 current execution line. This fixes redisplay of the current line
12993 when stepping through the code with "next" or "step".
12994
12995 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12996
12997 * source-cache.c (source_cache::get_source_lines): Call
12998 find_source_lines to initialize s->nlines. This fixes vertical
12999 scrolling of TUI source window when the DOWN arrow is pressed.
13000
13001 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13002
13003 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13004 linux-thread-db.c (_initialize_thread_db): Likewise.
13005
13006 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13007
13008 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13009 wclrtoeol in tui_show_source_line". This reverts changes made in
13010 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13011
13012 2019-03-15 Tom Tromey <tom@tromey.com>
13013
13014 * symtab.h (struct minimal_symbol): Derive from
13015 general_symbol_info.
13016 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13017 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13018 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13019 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13020 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13021 (MSYMBOL_SEARCH_NAME): Update.
13022 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13023 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13024 * minsyms.c (minimal_symbol_reader::record_full): Update.
13025
13026 2019-03-15 Tom Tromey <tom@tromey.com>
13027
13028 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13029
13030 2019-03-15 Tom Tromey <tom@tromey.com>
13031
13032 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13033 unique_xmalloc_ptr.
13034 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13035 Update.
13036 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13037 (build_minimal_symbol_hash_tables)
13038 (minimal_symbol_reader::install): Update.
13039
13040 2019-03-15 Tom Tromey <tom@tromey.com>
13041
13042 * symtab.c (create_demangled_names_hash): Update.
13043 (symbol_set_names): Update.
13044 * objfiles.h (struct objfile_per_bfd_storage)
13045 <demangled_names_hash>: Now an htab_up.
13046 * objfiles.c (objfile_per_bfd_storage): Simplify.
13047
13048 2019-03-15 Tom Tromey <tom@tromey.com>
13049
13050 * objfiles.h (struct objfile_per_bfd_storage): Declare
13051 destructor.
13052 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13053 New.
13054 (get_objfile_bfd_data): Use new. Don't initialize
13055 language_of_main.
13056 (free_objfile_per_bfd_storage): Remove.
13057 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13058
13059 2019-03-15 Tom Tromey <tom@tromey.com>
13060
13061 * symfile.c (reread_symbols): Update.
13062 * objfiles.c (objfile::objfile): Update.
13063 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13064 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13065 comment.
13066 (minimal_symbol_reader::install): Update.
13067 (terminate_minimal_symbol_table): Remove.
13068 * jit.c (jit_object_close_impl): Update.
13069
13070 2019-03-15 Tom Tromey <tom@tromey.com>
13071
13072 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13073 initializations.
13074
13075 2019-03-15 Tom Tromey <tom@tromey.com>
13076
13077 * objfiles.h (struct objfile_per_bfd_storage)
13078 <demangled_hash_languages>: Now a bitset.
13079 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13080 (lookup_minimal_symbol): Update.
13081
13082 2019-03-15 Tom Tromey <tom@tromey.com>
13083
13084 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13085 Don't return the symbol.
13086 * coffread.c (record_minimal_symbol): Use record_full.
13087
13088 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13089
13090 The MS-Windows port of ncurses fails to switch to a color pair if
13091 one or both of the colors are the implicit default colors. This
13092 change records the default colors when TUI is initialized, and
13093 then specifies them explicitly when a color pair uses the default
13094 colors. This allows color styling in TUI mode on MS-Windows.
13095
13096 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13097 ncurses_norm_attr.
13098 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13099 colors in ncurses_norm_attr.
13100 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13101 "none", replace it with the default color recorded in
13102 ncurses_norm_attr.
13103
13104 2019-03-14 Tom Tromey <tromey@adacore.com>
13105
13106 * source-cache.h (class source_cache) <get_source_lines>: Return
13107 std::string.
13108 * source-cache.c (source_cache::extract_lines): Handle case where
13109 first_pos==npos. Return std::string.
13110 (source_cache::get_source_lines): Update.
13111
13112 2019-03-14 Tom Tromey <tromey@adacore.com>
13113
13114 * NEWS: Add item for "style sources" commands.
13115 * source-cache.c (source_cache::get_source_lines): Check
13116 source_styling.
13117 * cli/cli-style.c (source_styling): New global.
13118 (_initialize_cli_style): Add "style sources" commands.
13119 (show_style_sources): New function.
13120 * cli/cli-style.h (source_styling): Declare.
13121
13122 2019-03-14 Pedro Alves <palves@redhat.com>
13123 Tom Tromey <tromey@adacore.com>
13124
13125 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13126 * tui/tui-winsource.c (tui_refill_source_window): New function,
13127 from...
13128 (tui_horizontal_source_scroll): ... here. Move some logic.
13129 * cli/cli-style.c (set_style_enabled): Notify new observable.
13130 * tui/tui-hooks.c (tui_redisplay_source): New function.
13131 (tui_attach_detach_observers): Attach or detach
13132 tui_redisplay_source.
13133 * observable.h (source_styling_changed): New observable.
13134 * observable.c: Define source_styling_changed observable.
13135
13136 2019-03-13 Tom Tromey <tromey@adacore.com>
13137
13138 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13139 (i386_gnu_nat_target::store_registers): Update.
13140 * target-debug.h (target_debug_print_std_string): New macro.
13141 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13142 * windows-tdep.c (display_one_tib): Update.
13143 * tui/tui-stack.c (tui_make_status_line): Update.
13144 * top.c (print_inferior_quit_action): Update.
13145 * thread.c (thr_try_catch_cmd): Update.
13146 (add_thread_with_info): Update.
13147 (thread_target_id_str): Update.
13148 (thr_try_catch_cmd): Update.
13149 (thread_command): Update.
13150 (thread_find_command): Update.
13151 * record-btrace.c (record_btrace_target::info_record)
13152 (record_btrace_resume_thread, record_btrace_target::resume)
13153 (record_btrace_cancel_resume, record_btrace_step_thread)
13154 (record_btrace_target::wait, record_btrace_target::wait)
13155 (record_btrace_target::wait, record_btrace_target::stop): Update.
13156 * progspace.c (print_program_space): Update.
13157 * process-stratum-target.c
13158 (process_stratum_target::thread_address_space): Update.
13159 * linux-fork.c (linux_fork_mourn_inferior)
13160 (detach_checkpoint_command, info_checkpoints_command)
13161 (linux_fork_context): Update.
13162 (linux_fork_detach): Update.
13163 (class scoped_switch_fork_info): Update.
13164 (delete_checkpoint_command): Update.
13165 * infrun.c (follow_fork_inferior): Update.
13166 (follow_fork_inferior): Update.
13167 (proceed_after_vfork_done): Update.
13168 (handle_vfork_child_exec_or_exit): Update.
13169 (follow_exec): Update.
13170 (displaced_step_prepare_throw): Update.
13171 (displaced_step_restore): Update.
13172 (start_step_over): Update.
13173 (resume_1): Update.
13174 (clear_proceed_status_thread): Update.
13175 (proceed): Update.
13176 (print_target_wait_results): Update.
13177 (do_target_wait): Update.
13178 (context_switch): Update.
13179 (stop_all_threads): Update.
13180 (restart_threads): Update.
13181 (finish_step_over): Update.
13182 (handle_signal_stop): Update.
13183 (switch_back_to_stepped_thread): Update.
13184 (keep_going_pass_signal): Update.
13185 (print_exited_reason): Update.
13186 (normal_stop): Update.
13187 * inferior.c (inferior_pid_to_str): Change return type.
13188 (print_selected_inferior): Update.
13189 (add_inferior): Update.
13190 (detach_inferior): Update.
13191 * dummy-frame.c (fprint_dummy_frames): Update.
13192 * dcache.c (dcache_info_1): Update.
13193 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13194 (btrace_fetch, btrace_clear): Update.
13195 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13196 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13197 type.
13198 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13199 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13200 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13201 * gdbarch.c, gdbarch.h: Rebuild.
13202 * gdbarch.sh (core_pid_to_str): Change return type.
13203 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13204 return type.
13205 (windows_nat_target::pid_to_str): Change return type.
13206 (windows_delete_thread): Update.
13207 (windows_nat_target::attach): Update.
13208 (windows_nat_target::files_info): Update.
13209 * target-delegates.c: Rebuild.
13210 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13211 return type.
13212 (sol_thread_target::pid_to_str): Change return type.
13213 * remote.c (class remote_target) <pid_to_str>: Change return
13214 type.
13215 (remote_target::pid_to_str): Change return type.
13216 (extended_remote_target::attach, remote_target::remote_stop_ns)
13217 (remote_target::remote_notif_remove_queued_reply)
13218 (remote_target::push_stop_reply, remote_target::disable_btrace):
13219 Update.
13220 (extended_remote_target::attach): Update.
13221 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13222 type.
13223 (gdbsim_target::pid_to_str): Change return type.
13224 * ravenscar-thread.c (struct ravenscar_thread_target)
13225 <pid_to_str>: Change return type.
13226 (ravenscar_thread_target::pid_to_str): Change return type.
13227 * procfs.c (class procfs_target) <pid_to_str>: Change return
13228 type.
13229 (procfs_target::pid_to_str): Change return type.
13230 (procfs_target::attach): Update.
13231 (procfs_target::detach): Update.
13232 (procfs_target::fetch_registers): Update.
13233 (procfs_target::store_registers): Update.
13234 (procfs_target::wait): Update.
13235 (procfs_target::files_info): Update.
13236 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13237 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13238 return type.
13239 (nto_procfs_target::pid_to_str): Change return type.
13240 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13241 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13242 return type.
13243 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13244 (exit_lwp): Update.
13245 (attach_proc_task_lwp_callback, get_detach_signal)
13246 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13247 (linux_nat_target::resume, wait_lwp, stop_callback)
13248 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13249 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13250 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13251 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13252 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13253 type.
13254 (inf_ptrace_target::attach): Update.
13255 (inf_ptrace_target::files_info): Update.
13256 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13257 type.
13258 (go32_nat_target::pid_to_str): Change return type.
13259 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13260 (gnu_nat_target::wait): Update.
13261 (gnu_nat_target::wait): Update.
13262 (gnu_nat_target::resume): Update.
13263 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13264 (fbsd_nat_target::wait): Update.
13265 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13266 type.
13267 (darwin_nat_target::attach): Update.
13268 * corelow.c (class core_target) <pid_to_str>: Change return type.
13269 (core_target::pid_to_str): Change return type.
13270 * target.c (normal_pid_to_str): Change return type.
13271 (default_pid_to_str): Likewise.
13272 (target_pid_to_str): Change return type.
13273 (target_translate_tls_address): Update.
13274 (target_announce_detach): Update.
13275 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13276 return type.
13277 (bsd_uthread_target::pid_to_str): Change return type.
13278 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13279 type.
13280 (bsd_kvm_target::pid_to_str): Change return type.
13281 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13282 return type.
13283 (aix_thread_target::pid_to_str): Change return type.
13284 * target.h (struct target_ops) <pid_to_str>: Change return type.
13285 (target_pid_to_str, normal_pid_to_str): Likewise.
13286 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13287 type.
13288 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13289 type.
13290 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13291 return type.
13292 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13293 type.
13294 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13295 type.
13296 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13297 return type.
13298
13299 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13300
13301 * NEWS: Mention that the new default MI version is 3. Mention
13302 changes to the output of commands and events that deal with
13303 multi-location breakpoints.
13304 * breakpoint.c: Include "mi/mi-out.h".
13305 (print_one_breakpoint): Change output syntax if using MI version
13306 >= 3.
13307 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13308 New.
13309 (mi_multi_location_breakpoint_output_fixed): New.
13310 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13311 (mi_cmd_fix_multi_location_breakpoint_output): New.
13312 (mi_multi_location_breakpoint_output_fixed): New.
13313 * mi/mi-cmds.c (mi_cmds): Register command
13314 -fix-multi-location-breakpoint-output.
13315 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13316 interpreter "mi".
13317
13318 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13319
13320 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13321 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13322 instantiate mi_ui_out based on interpreter name.
13323 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13324 * mi/mi-main.c (mi_load_progress): Likewise.
13325
13326 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13327
13328 * NEWS: Combine separate "New targets" sections for 8.3.
13329
13330 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13331
13332 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13333 (ppcfbsd_init_abi): Install gdbarch
13334 "fetch_tls_load_module_address" and "get_thread_local_address"
13335 methods.
13336
13337 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13338
13339 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13340 (riscv_fbsd_init_abi): Install gdbarch
13341 "fetch_tls_load_module_address" and "get_thread_local_address"
13342 methods.
13343
13344 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13345
13346 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13347 (i386fbsd_init_abi): Install gdbarch
13348 "fetch_tls_load_module_address" and "get_thread_local_address"
13349 methods.
13350
13351 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13352
13353 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13354 (amd64fbsd_init_abi): Install gdbarch
13355 "fetch_tls_load_module_address" and "get_thread_local_address"
13356 methods.
13357
13358 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13359
13360 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13361 (struct fbsd_pspace_data): New type.
13362 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13363 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13364 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13365 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13366 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13367
13368 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13369
13370 * gdbtypes.c (lookup_struct_elt): New function.
13371 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13372 * gdbtypes.h (struct struct_elt): New type.
13373 (lookup_struct_elt): New prototype.
13374
13375 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13376
13377 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13378 remove disabled code block.
13379
13380 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13381
13382 * gdbarch.sh (get_thread_local_address): New method.
13383 * gdbarch.h, gdbarch.c: Regenerate.
13384 * target.c (target_translate_tls_address): Use
13385 gdbarch_get_thread_local_address if present instead of
13386 target::get_thread_local_address.
13387
13388 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13389
13390 * target.h (target::get_thread_local_address): Update comment.
13391
13392 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13393
13394 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13395 objfile->separate_debug_objfile_backlink if not NULL.
13396
13397 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13398
13399 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13400 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13401 (amd64bsd_store_inferior_registers): Likewise.
13402 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13403 Enable segment base registers.
13404 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13405 PT_GETFSBASE and PT_GETGSBASE.
13406 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13407 PT_SETGSBASE.
13408 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13409 segment base registers.
13410 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13411
13412 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13413
13414 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13415 Update calls to i386_target_description to add 'segments'
13416 parameter.
13417 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13418 add segment base registers.
13419 * arch/i386.c (i386_create_target_description): Add 'segments'
13420 parameter to enable segment base registers.
13421 * arch/i386.h (i386_create_target_description): Likewise.
13422 * features/i386/32bit-segments.xml: New file.
13423 * features/i386/32bit-segments.c: Generate.
13424 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13425 call to i386_target_description to add 'segments' parameter.
13426 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13427 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13428 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13429 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13430 if feature is present.
13431 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13432 Add 'segments' parameter to call to i386_target_description.
13433 (i386_target_description): Add 'segments' parameter to enable
13434 segment base registers.
13435 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13436 to call to i386_target_description.
13437 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13438 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13439 Define I386_NUM_REGS.
13440 (i386_target_description): Add 'segments' parameter to enable
13441 segment base registers.
13442
13443 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13444
13445 PR/24325
13446 * source-cache.c: #undef open and close, to avoid unresolved
13447 externals during linking.
13448
13449 2019-03-12 Tom Tromey <tromey@adacore.com>
13450
13451 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13452 const. Add initializers.
13453 (_initialize_remote): Don't initialize ptid globals.
13454
13455 2019-03-12 Pedro Alves <palves@redhat.com>
13456
13457 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13458
13459 2019-03-12 Pedro Alves <palves@redhat.com>
13460
13461 * cp-name-parser.y (main): Remove unused 'len' variable.
13462
13463 2019-03-12 Tom Tromey <tromey@adacore.com>
13464
13465 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13466 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13467
13468 2019-03-12 Tom Tromey <tromey@adacore.com>
13469
13470 * linux-nat.c (iterate_over_lwps): Update.
13471 (stop_callback): Remove parameter.
13472 (stop_wait_callback, detach_callback, resume_set_callback)
13473 (select_singlestep_lwp_callback, set_ignore_sigint)
13474 (status_callback, resumed_callback, resume_clear_callback)
13475 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13476 data parameter.
13477 (linux_nat_target::detach, linux_nat_target::resume)
13478 (linux_stop_and_wait_all_lwps, select_event_lwp)
13479 (linux_nat_filter_event, linux_nat_wait_1)
13480 (linux_nat_target::kill, linux_nat_target::stop)
13481 (linux_nat_target::stop): Update.
13482 (linux_nat_resume_callback): Change type.
13483 (resume_stopped_resumed_lwps, count_events_callback)
13484 (select_event_lwp_callback): Likewise.
13485 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13486 * arm-linux-nat.c (struct update_registers_data): Remove.
13487 (update_registers_callback): Change type.
13488 (arm_linux_insert_hw_breakpoint1): Update.
13489 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13490 parameter.
13491 (x86_linux_dr_set_addr): Update.
13492 (x86_linux_dr_set_control): Update.
13493 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13494 (iterate_over_lwps): Use gdb::function_view.
13495 * nat/aarch64-linux-hw-point.c (struct
13496 aarch64_dr_update_callback_param): Remove.
13497 (debug_reg_change_callback): Change type.
13498 (aarch64_notify_debug_reg_change): Update.
13499 * s390-linux-nat.c (s390_refresh_per_info): Update.
13500
13501 2019-03-11 Tom Tromey <tromey@adacore.com>
13502
13503 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13504 redundant assignment to "this_cu".
13505
13506 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13507
13508 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13509
13510 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13511
13512 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13513 from...
13514 (rank_one_type): ... this.
13515
13516 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13517
13518 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13519 from...
13520 (rank_one_type): ... this.
13521
13522 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13523
13524 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13525 from...
13526 (rank_one_type): ... this.
13527
13528 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13529
13530 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13531 from...
13532 (rank_one_type): ... this.
13533
13534 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13535
13536 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13537 from...
13538 (rank_one_type): ... this.
13539
13540 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13541
13542 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13543 from...
13544 (rank_one_type): ... this.
13545
13546 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13547
13548 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13549 from...
13550 (rank_one_type): ... this.
13551
13552 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13553
13554 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13555 from...
13556 (rank_one_type): ... this.
13557
13558 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13559
13560 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13561 from...
13562 (rank_one_type): ... this.
13563
13564 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13565
13566 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13567 from...
13568 (rank_one_type): ... this.
13569
13570 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13571
13572 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13573 from...
13574 (rank_one_type): ... this.
13575
13576 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13577
13578 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13579 from...
13580 (rank_one_type): ... this.
13581
13582 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13583
13584 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13585 inferior-events' shows the example events.
13586
13587 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13588
13589 Support styling on native MS-Windows console
13590
13591 PR/24315
13592 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13593 on MS-Windows if $TERM is not defined.
13594
13595 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13596
13597 * posix-hdep.c (gdb_console_fputs):
13598 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13599 functions.
13600 * ui-file.h (gdb_console_fputs): Add prototype.
13601
13602 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13603 back to fputs only if the former returns zero.
13604
13605 2019-03-07 Tom Tromey <tom@tromey.com>
13606
13607 * symmisc.c (print_symbol_bcache_statistics): Update.
13608 (print_objfile_statistics): Update.
13609 * symfile.c (allocate_symtab): Update.
13610 * stabsread.c: Don't include bcache.h.
13611 * psymtab.h (struct psymbol_bcache): Don't declare.
13612 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13613 (psymbol_bcache_init, psymbol_bcache_free)
13614 (psymbol_bcache_get_bcache): Don't declare.
13615 * psymtab.c (struct psymbol_bcache): Remove.
13616 (psymtab_storage::psymtab_storage): Update.
13617 (psymtab_storage::~psymtab_storage): Update.
13618 (psymbol_bcache_init, psymbol_bcache_free)
13619 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13620 (add_psymbol_to_bcache): Update.
13621 (allocate_psymtab): Update.
13622 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13623 macro_cache>: No longer pointers.
13624 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13625 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13626 * macrotab.c (macro_bcache): Update.
13627 * macroexp.c: Don't include bcache.h.
13628 * gdbtypes.c (check_types_worklist): Update.
13629 (types_deeply_equal): Remove TRY/CATCH. Update.
13630 * elfread.c (elf_symtab_read): Update.
13631 * dwarf2read.c: Don't include bcache.h.
13632 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13633 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13634 (print_bcache_statistics, bcache_memory_used): Don't declare.
13635 (struct bcache): Move from bcache.c. Add constructor, destructor,
13636 methods. Rename all data members.
13637 * bcache.c (struct bcache): Move to bcache.h.
13638 (bcache::expand_hash_table): Rename from expand_hash_table.
13639 (bcache): Remove.
13640 (bcache::insert): Rename from bcache_full.
13641 (bcache::compare): Rename from bcache_compare.
13642 (bcache_xmalloc): Remove.
13643 (bcache::~bcache): Rename from bcache_xfree.
13644 (bcache::print_statistics): Rename from print_bcache_statistics.
13645 (bcache::memory_used): Rename from bcache_memory_used.
13646
13647 2019-03-07 Pedro Alves <palves@redhat.com>
13648
13649 * infrun.c (normal_stop): Also check for
13650 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13651
13652 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13653
13654 * f-lang.c (value_from_host_double): Moved to...
13655 * value.c (value_from_host_double): ...here.
13656 * value.h (value_from_host_double): Declare.
13657 * guile/scm-math.c (vlscm_convert_typed_number): Use
13658 value_from_host_double.
13659 (vlscm_convert_number): Likewise.
13660 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13661 * python/py-value.c (convert_value_from_python): Likewise.
13662
13663 2019-03-06 Tom Tromey <tom@tromey.com>
13664
13665 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13666
13667 2019-03-06 Tom Tromey <tom@tromey.com>
13668
13669 * utils.h (free_current_contents): Don't declare.
13670 * utils.c (free_current_contents): Remove.
13671
13672 2019-03-06 Tom Tromey <tom@tromey.com>
13673
13674 * top.c (quit_force): Update.
13675 * main.c (captured_command_loop): Update.
13676 * common/new-op.c (operator new): Update.
13677 * common/common-exceptions.c (struct catcher)
13678 <save_cleanup_chain>: Remove member.
13679 (exceptions_state_mc_init): Update.
13680 (exception_try_scope_entry): Return nullptr.
13681 (exception_try_scope_exit, exception_rethrow)
13682 (throw_exception_sjlj, throw_exception_cxx): Update.
13683 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13684 (all_cleanups, do_cleanups, discard_cleanups)
13685 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13686 (restore_cleanups, restore_final_cleanups): Don't declare.
13687 (do_final_cleanups): Remove parameter.
13688 * common/cleanups.c (cleanup_chain, make_cleanup)
13689 (make_cleanup_dtor, all_cleanups, do_cleanups)
13690 (discard_my_cleanups, discard_cleanups)
13691 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13692 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13693 (null_cleanup): Remove.
13694 (do_final_cleanups): Remove parameter.
13695
13696 2019-03-06 Tom Tromey <tom@tromey.com>
13697
13698 * remote.c (remote_target::remote_parse_stop_reply): Use
13699 unique_xmalloc_ptr.
13700
13701 2019-03-06 Tom Tromey <tom@tromey.com>
13702
13703 * stabsread.c (struct stabs_field_info): Rename from field_info.
13704 <list, fnlist>: Add initializers.
13705 <obstack>: New member.
13706 (read_member_functions, read_struct_fields, read_baseclasses):
13707 Allocate on obstack. Don't use cleanups.
13708 (read_one_struct_field, read_member_functions, read_struct_fields)
13709 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13710 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13711 (read_struct_type): Update.
13712
13713 2019-03-06 Tom Tromey <tom@tromey.com>
13714
13715 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13716 * common/filestuff.h (make_cleanup_close): Don't declare.
13717 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13718 Remove.
13719
13720 2019-03-06 Tom Tromey <tom@tromey.com>
13721
13722 * solib-aix.c: Use make_scope_exit.
13723
13724 2019-03-06 Tom Tromey <tom@tromey.com>
13725
13726 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13727 Use make_scope_exit.
13728
13729 2019-03-06 Tom Tromey <tom@tromey.com>
13730
13731 * solib-svr4.c (disable_probes_interface): Remove parameter.
13732 (svr4_handle_solib_event): Use make_scope_exit.
13733
13734 2019-03-06 Tom Tromey <tom@tromey.com>
13735
13736 * remote.c (struct stop_reply_deleter): Remove.
13737 (stop_reply_up): Update.
13738 (struct stop_reply): Derive from notif_event. Don't typedef.
13739 <regcache>: Now a std::vector.
13740 (stop_reply_xfree): Remove.
13741 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13742 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13743 (remote_target::discard_pending_stop_replies): Use delete.
13744 (remote_target::remote_parse_stop_reply): Update.
13745 (remote_target::process_stop_reply): Update.
13746 * remote-notif.h (struct notif_event): Add virtual destructor.
13747 Remove "dtr" member.
13748 (struct notif_client) <alloc_event>: Return a unique_ptr.
13749 (notif_event_xfree): Don't declare.
13750 (notif_event_up): New typedef.
13751 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13752 (notif_event_xfree, do_notif_event_xfree): Remove.
13753 (remote_notif_state_xfree): Update.
13754
13755 2019-03-06 Tom Tromey <tom@tromey.com>
13756
13757 * infrun.c (displaced_step_clear_cleanup): Now a
13758 forward_scope_exit type.
13759 (displaced_step_prepare_throw): Update.
13760 (displaced_step_fixup): Update.
13761
13762 2019-03-06 Tom Tromey <tom@tromey.com>
13763
13764 * inferior.h (class inferior): Update comment.
13765 * gdbthread.h (class thread_info): Update comment.
13766
13767 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13768 Tom Tromey <tom@tromey.com>
13769
13770 * stabsread.h (struct stab_section_list): Remove.
13771 (coffstab_build_psymtabs): Update.
13772 * dbxread.c (symbuf_sections): Now a std::vector.
13773 (sect_idx): New global.
13774 (fill_symbuf): Update.
13775 (coffstab_build_psymtabs): Change type of stabsects parameter.
13776 Update.
13777 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13778 std::vector.
13779 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13780 (coff_locate_sections): Update.
13781 (coff_symfile_read): Remove cleanups. Update.
13782 (init_stringtab): Add storage parameter.
13783 (free_stringtab, free_stringtab_cleanup): Remove.
13784 (init_lineno): Add storage parameter.
13785 (free_linetab, free_linetab_cleanup): Remove.
13786
13787 2019-03-06 Pedro Alves <palves@redhat.com>
13788
13789 * linux-fork.c (fork_info::clobber_regs): Delete.
13790 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13791 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13792 comment. Adjust.
13793 (scoped_switch_fork_info::scoped_switch_fork_info)
13794 (checkpoint_command, linux_fork_context): Adjust
13795 fork_save_infrun_state calls.
13796
13797 2019-03-06 Pedro Alves <palves@redhat.com>
13798
13799 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13800 (inf_has_multiple_threads): Return 'bool' and rewrite using
13801 inferior_info::threads().
13802
13803 2019-03-06 Pedro Alves <palves@redhat.com>
13804
13805 * linux-fork.c: Include <list>.
13806 (fork_list): Now a std::list instance.
13807 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13808 (forks_exist_p, find_last_fork): Adjust.
13809 (new_fork): Delete.
13810 (one_fork_p): New.
13811 (add_fork): Adjust.
13812 (free_fork): Delete, folded into fork_info::~fork_info().
13813 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13814 Adjust.
13815 (init_fork_list): Delete.
13816 (linux_fork_killall, linux_fork_mourn_inferior)
13817 (linux_fork_detach, info_checkpoints_command): Adjust.
13818 (_initialize_linux_fork): No longer call init_fork_list.
13819
13820 2019-03-06 Pedro Alves <palves@redhat.com>
13821
13822 * linux-fork.c (new_fork): New, split out of ...
13823 (add_fork): ... this. Return void. Move "first fork" special
13824 case from here, to ...
13825 (checkpoint_command): ... here.
13826 * linux-linux.h (add_fork): Return void.
13827
13828 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13829
13830 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13831
13832 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13833 Chris January <chris.january@arm.com>
13834 David Lecomber <david.lecomber@arm.com>
13835
13836 * f-exp.y: New token, UNOP_INTRINSIC.
13837 (exp): New pattern using UNOP_INTRINSIC token.
13838 (f77_keywords): Add 'abs' keyword.
13839 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13840 (value_from_host_double): New function.
13841 (evaluate_subexp_f): Support UNOP_ABS.
13842
13843 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13844
13845 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13846 types.
13847
13848 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13849
13850 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13851 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13852 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13853
13854 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13855
13856 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13857
13858 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13859 Chris January <chris.january@arm.com>
13860
13861 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13862 * f-exp.y: Define 'KIND' token.
13863 (exp): New pattern for KIND expressions.
13864 (ptype): Handle types with a kind extension.
13865 (direct_abs_decl): Extend to spot kind extensions.
13866 (f77_keywords): Add 'kind' to the list.
13867 (push_kind_type): New function.
13868 (convert_to_kind_type): New function.
13869 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13870 * parse.c (operator_length_standard): Likewise.
13871 * parser-defs.h (enum type_pieces): Add tp_kind.
13872 * std-operator.def: Add UNOP_KIND.
13873
13874 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13875
13876 * f-exp.y (f_parse): Set yydebug.
13877
13878 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13879
13880 * f-lang.c (evaluate_subexp_f): New function.
13881 (exp_descriptor_f): New global.
13882 (f_language_defn): Use exp_descriptor_f instead of
13883 exp_descriptor_standard.
13884
13885 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13886
13887 * f-exp.y (struct token): Add comments.
13888 (dot_ops): Remove uppercase versions and the end marker.
13889 (f77_keywords): Likewise.
13890 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13891 entries in the dot_ops array are case insensitive, and use
13892 strncasecmp to compare strings. Also some whitespace cleanup in
13893 this area. Similar for the f77_keywords array, except entries in
13894 this list might be case sensitive.
13895
13896 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13897
13898 * f-exp.y (struct f77_boolean_val): Add comments.
13899 (boolean_values): Remove uppercase versions, and end marker.
13900 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13901 and use strncasecmp to achieve case insensitivity. Additionally,
13902 perform whitespace cleanup around this code.
13903
13904 2019-03-06 Tom Tromey <tromey@adacore.com>
13905
13906 * remote-sim.c (gdbsim_target_open): Use result of
13907 gdb_argv::release.
13908
13909 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13910 Dirk Schubert <dirk.schubert@arm.com>
13911 Chris January <chris.january@arm.com>
13912
13913 * eval.c (evaluate_subexp_standard): Call Fortran argument
13914 wrapping logic.
13915 * f-lang.c (struct value): A value which can be passed into a
13916 Fortran function call.
13917 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13918 where appropriate.
13919 (struct type): Value ready for a Fortran function call.
13920 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13921 is needed.
13922 * f-lang.h (fortran_argument_convert): Declaration.
13923 (fortran_preserve_arg_pointer): Declaration.
13924 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13925
13926 2019-03-05 Tom Tromey <tromey@adacore.com>
13927
13928 * python/py-prettyprint.c (print_string_repr): Remove #if.
13929 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13930
13931 2019-03-05 Tom Tromey <tromey@adacore.com>
13932
13933 * target.c (the_dummy_target): Move later. Change type to
13934 "dummy_target".
13935 (initialize_targets): Don't initialize the_dummy_target.
13936
13937 2019-03-05 Tom Tromey <tromey@adacore.com>
13938
13939 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13940 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13941
13942 2019-03-05 Tom Tromey <tromey@adacore.com>
13943
13944 * windows-nat.c (windows_nat_target::attach)
13945 (windows_nat_target::detach): Don't call gdb_flush.
13946 * valprint.c (generic_val_print, val_print, val_print_string):
13947 Don't call gdb_flush.
13948 * utils.c (defaulted_query): Don't call gdb_flush.
13949 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13950 * target.c (target_announce_detach): Don't call gdb_flush.
13951 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13952 * remote.c (extended_remote_target::attach): Don't call
13953 gdb_flush.
13954 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13955 * printcmd.c (do_examine): Don't call gdb_flush.
13956 (info_display_command): Don't call gdb_flush.
13957 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13958 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13959 * memattr.c (info_mem_command): Don't call gdb_flush.
13960 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13961 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13962 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13963 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13964 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13965 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13966 (gnu_nat_target::detach): Don't call gdb_flush.
13967 * f-valprint.c (f_val_print): Don't call gdb_flush.
13968 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13969 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13970 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13971 gdb_flush.
13972 * c-valprint.c (c_val_print): Don't call gdb_flush.
13973 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13974
13975 2019-03-05 Tom Tromey <tromey@adacore.com>
13976
13977 * varobj.c (update_dynamic_varobj_children): Update.
13978 (install_default_visualizer): Use reset, not release.
13979 * value.c (set_internalvar): Update.
13980 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13981 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13982 ATTRIBUTE_UNUSED_RESULT.
13983
13984 2019-03-05 Tom Tromey <tromey@adacore.com>
13985
13986 * remote.c (class scoped_remote_fd) <release>: Add
13987 ATTRIBUTE_UNUSED_RESULT.
13988
13989 2019-03-05 Tom Tromey <tromey@adacore.com>
13990
13991 * macroexp.c (struct macro_buffer) <release>: Add
13992 ATTRIBUTE_UNUSED_RESULT.
13993
13994 2019-03-05 Tom Tromey <tromey@adacore.com>
13995
13996 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13997 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13998 ATTRIBUTE_UNUSED_RESULT.
13999
14000 2019-03-05 Tom Tromey <tromey@adacore.com>
14001
14002 * common/scoped_fd.h (class scoped_fd) <release>: Add
14003 ATTRIBUTE_UNUSED_RESULT.
14004
14005 2019-03-05 Tom Tromey <tromey@adacore.com>
14006
14007 * parser-defs.h (struct parser_state) <release>: Add
14008 ATTRIBUTE_UNUSED_RESULT.
14009
14010 2019-03-05 Tom Tromey <tromey@adacore.com>
14011
14012 * utils.h (class gdb_argv) <release>: Add
14013 ATTRIBUTE_UNUSED_RESULT.
14014 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14015
14016 2019-03-02 Eli Zaretskii <eliz@gnu.org>
14017
14018 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14019 for-loop range, to avoid compiler warnings.
14020
14021 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14022 avoid compiler warnings about unused variables.
14023
14024 * NEWS: Mention end of support for native debugging on MS-Windows
14025 before XP.
14026
14027 PR gdb/24292
14028 * common/netstuff.c:
14029 * gdbserver/gdbreplay.c
14030 * gdbserver/remote-utils.c:
14031 * ser-tcp.c:
14032 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14033 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14034 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14035 'getaddrinfo' and 'freeaddrinfo' were not available before
14036 Windows XP, and mingw.org's MinGW headers by default define
14037 _WIN32_WINNT to 0x500.
14038
14039 2019-03-01 Gary Benson <gbenson@redhat.com>
14040
14041 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14042
14043 2019-02-28 Brian Vandenberg <phantall@gmail.com>
14044 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14045
14046 PR gdb/8527
14047 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14048 set_sigint_trap, clear_sigint_trap.
14049
14050 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14051
14052 * target.c (target_detach): Clear the regcache and the
14053 frame cache.
14054
14055 2019-02-27 Pedro Alves <palves@redhat.com>
14056
14057 * utils.c (set_screen_size): When we cap the height/width sizes,
14058 tweak the corresponding command variable to show "unlimited":
14059
14060 2019-02-27 Saagar Jha <saagar@saagarjha.com>
14061 Pedro Alves <palves@redhat.com>
14062
14063 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14064 before calling rl_set_screen_size.
14065
14066 2019-02-27 Tom Tromey <tromey@adacore.com>
14067
14068 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14069 define.
14070 * python/py-value.c: Remove Python 2.4 workaround.
14071 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14072 workaround.
14073 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14074 Python 2.4 workaround.
14075 * python/python-internal.h: Remove Python 2.4 comment.
14076 (Py_ssize_t): Don't define.
14077 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14078 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14079 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14080 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14081 * python/python.c (do_start_initialization): Remove Python 2.4
14082 workaround.
14083 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14084 (print_children): Remove Python 2.4 workaround.
14085 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14086 workaround.
14087 (CHARBUFFERPROC_NAME): Remove.
14088 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14089 Python 2.4 workaround.
14090
14091 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14092
14093 * NEWS: Note minimum Python version.
14094
14095 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14096
14097 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14098 code from these functions. Remove corresponding ifdefs. Use
14099 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14100 Remove gotos and target of gotos.
14101 (infpy_search_memory): Likewise.
14102
14103 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14104
14105 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14106 (hppa_gdbarch_init): Don't register deleted functions with
14107 gdbarch.
14108
14109 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14110
14111 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14112 (h8300_unwind_sp): Delete.
14113 (h8300_dummy_id): Delete.
14114 (h8300_gdbarch_init): Don't register deleted functions with
14115 gdbarch.
14116
14117 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14118
14119 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14120 (ft32_unwind_pc): Delete.
14121 (ft32_unwind_sp): Delete.
14122 (ft32_gdbarch_init): Don't register deleted functions with
14123 gdbarch.
14124
14125 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14126
14127 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14128 (frv_unwind_pc): Delete.
14129 (frv_unwind_sp): Delete.
14130 (frv_gdbarch_init): Don't register deleted functions with
14131 gdbarch.
14132
14133 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14134
14135 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14136 (riscv_unwind_pc): Delete.
14137 (riscv_unwind_sp): Delete.
14138 (riscv_gdbarch_init): Don't register deleted functions with
14139 gdbarch.
14140
14141 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14142
14143 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14144 (csky_unwind_pc): Delete.
14145 (csky_unwind_sp): Delete.
14146 (csky_gdbarch_init): Don't register deleted functions with
14147 gdbarch.
14148
14149 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14150
14151 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14152 (cris_unwind_pc): Delete.
14153 (cris_unwind_sp): Delete.
14154 (cris_gdbarch_init): Don't register deleted functions with
14155 gdbarch.
14156
14157 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14158
14159 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14160 (bfin_unwind_pc): Delete.
14161 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14162
14163 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14164
14165 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14166 (arm_unwind_pc): Delete.
14167 (arm_unwind_sp): Delete.
14168 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14169
14170 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14171
14172 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14173 (arc_unwind_pc): Delete.
14174 (arc_unwind_sp): Delete.
14175 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14176
14177 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14178
14179 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14180 (alpha_unwind_pc): Delete.
14181 (alpha_gdbarch_init): Don't register deleted functions with
14182 gdbarch.
14183
14184 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14185
14186 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14187 (aarch64_unwind_pc): Delete.
14188 (aarch64_unwind_sp): Delete.
14189 (aarch64_gdbarch_init): Don't register deleted functions with
14190 gdbarch.
14191
14192 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14193
14194 * gdbtypes.c (type_align): Don't consider static members when
14195 computing structure alignment.
14196
14197 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14198
14199 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14200 return 0 for other types.
14201 * arch-utils.c (default_type_align): Always return 0.
14202 * gdbarch.h: Regenerate.
14203 * gdbarch.sh (type_align): Extend comment.
14204 * gdbtypes.c (type_align): Add additional comments, always call
14205 gdbarch_type_align before applying the default rules.
14206 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14207 generic code will then apply a suitable default.
14208 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14209 types, return 0 for other types.
14210
14211 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14212
14213 * NEWS: Create a new section for the next release branch.
14214 Rename the section of the current branch, now that it has
14215 been cut.
14216
14217 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14218
14219 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14220 * version.in: Bump version to 8.3.50.DATE-git.
14221
14222 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14223
14224 * aix-thread.c (ptid_cmp): Remove unused variable.
14225 (get_signaled_thread): Likewise.
14226 (store_regs_user_thread): Likewise.
14227 (store_regs_kernel_thread): Likewise.
14228 (fetch_regs_kernel_thread): Remove shadowed variable.
14229
14230 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14231
14232 * features/riscv/32bit-cpu.xml: Add register numbers.
14233 * features/riscv/32bit-fpu.c: Regenerate.
14234 * features/riscv/32bit-fpu.xml: Add register numbers.
14235 * features/riscv/64bit-cpu.xml: Add register numbers.
14236 * features/riscv/64bit-fpu.c: Regenerate.
14237 * features/riscv/64bit-fpu.xml: Add register numbers.
14238
14239 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14240
14241 * NEWS: Mention two argument form of gdb.Value constructor.
14242 * python/py-value.c (convert_buffer_and_type_to_value): New
14243 function.
14244 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14245 Add support for handling an optional second argument. Call
14246 convert_buffer_and_type_to_value as appropriate.
14247 * python/python-internal.h (Py_buffer_deleter): New struct.
14248 (Py_buffer_up): New typedef.
14249
14250 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14251
14252 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14253 instead of releasing ownership.
14254
14255 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14256
14257 * dwarf2read.c (open_and_init_dwp_file): Call
14258 elf_numsections instead of bfd_count_sections to initialize
14259 dwp_file->num_sections.
14260
14261 2019-02-25 Tom Tromey <tromey@adacore.com>
14262
14263 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14264
14265 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14266
14267 * gcore.in: Add '--readnever' option when invoking GDB.
14268
14269 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14270
14271 * MAINTAINERS: Update my email address.
14272
14273 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14274
14275 * build-id.c (build_id_to_debug_bfd_1): New function.
14276 (build_id_to_debug_bfd): Look for separate debug file in
14277 sysroot.
14278
14279 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14280
14281 * gdbarch.sh: Update the copyright year range that is placed into
14282 generated files.
14283
14284 2019-02-22 Keith Seitz <keiths@redhat.com>
14285
14286 PR symtab/23853
14287 * linespec.c (create_sals_line_offset): Search for the default
14288 symtab's filename instead of its fullname.
14289
14290 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14291
14292 * NEWS: Update style defaults.
14293
14294 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14295
14296 * main.c (captured_main_1): Disable styling in batch mode.
14297
14298 2019-02-20 Tom Tromey <tom@tromey.com>
14299
14300 * symtab.c (symtab_symbol_info): Fix typos.
14301
14302 2019-02-20 Tom Tromey <tromey@adacore.com>
14303
14304 * findcmd.c (_initialize_mem_search): Use upper case for
14305 metasyntactic variables.
14306
14307 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14308
14309 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14310 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14311
14312 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14313
14314 * top.h (source_file_name): Change to std::string.
14315 * top.c (source_file_name): Likewise.
14316 (command_line_input): Adjust.
14317 * cli/cli-script.c (script_from_file): Adjust.
14318
14319 2019-02-19 Tom Tromey <tromey@adacore.com>
14320
14321 * ravenscar-thread.c
14322 (ravenscar_thread_target::update_thread_list): Don't call
14323 ada_build_task_list.
14324 * ada-lang.h (ada_build_task_list): Don't declare.
14325 * ada-tasks.c (struct ada_tasks_inferior_data)
14326 <task_list_valid_p>: Now bool.
14327 (read_known_tasks, ada_task_list_changed)
14328 (ada_tasks_invalidate_inferior_data): Update.
14329 (read_known_tasks_array): Return bool.
14330 (read_known_tasks_list): Likewise.
14331 (read_known_tasks): Return void.
14332 (ada_build_task_list): Now static.
14333
14334 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14335
14336 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14337 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14338
14339 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14340
14341 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14342 variant for ada_tasks_pspace_data_handle and
14343 ada_tasks_inferior_data_handle.
14344 (ada_tasks_pspace_data_cleanup): New function.
14345 (ada_tasks_inferior_data_cleanup): New function.
14346
14347 2019-02-17 Tom Tromey <tom@tromey.com>
14348
14349 * macrotab.h (macro_source_fullname): Return a std::string.
14350 * macrotab.c (macro_include, check_for_redefinition)
14351 (macro_undef, macro_lookup_definition, foreach_macro)
14352 (foreach_macro_in_scope): Update.
14353 (macro_source_fullname): Return a std::string.
14354 * macrocmd.c (show_pp_source_pos): Update.
14355
14356 2019-02-17 Tom Tromey <tom@tromey.com>
14357
14358 * macrocmd.c (show_pp_source_pos): Style the file names.
14359
14360 2019-02-17 Tom Tromey <tom@tromey.com>
14361
14362 PR tui/24197:
14363 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14364
14365 2019-02-17 Tom Tromey <tom@tromey.com>
14366
14367 * ada-lang.c (user_select_syms): Use filtered printing.
14368 * utils.c (wrap_style): New global.
14369 (desired_style): Remove.
14370 (emit_style_escape): Add stream parameter.
14371 (set_output_style, reset_terminal_style, prompt_for_continue):
14372 Update.
14373 (flush_wrap_buffer): Only flush gdb_stdout.
14374 (wrap_here): Set wrap_style.
14375 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14376 treat escape sequences as a character. Change when wrap buffer is
14377 flushed.
14378 (fputs_styled): Do not set the output style when the default is
14379 requested.
14380 * ui-style.h (struct ui_file_style) <is_default>: New method.
14381 * source.c (print_source_lines_base): Emit escape sequences in one
14382 piece.
14383
14384 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14385
14386 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14387 integers and enumeration types.
14388
14389 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14390
14391 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14392 instead of lookup_symbol_in_language
14393 (do_exact_match): New function.
14394 (ada_get_symbol_name_matcher): Return do_exact_match when
14395 doing a verbatim match.
14396
14397 2019-02-15 Tom Tromey <tromey@adacore.com>
14398
14399 * ravenscar-thread.c (ravenscar_thread_target::resume)
14400 (ravenscar_thread_target::wait): Special case wildcard requests.
14401
14402 2019-02-15 Tom Tromey <tromey@adacore.com>
14403
14404 * ravenscar-thread.c (base_ptid): Remove.
14405 (struct ravenscar_thread_target) <close>: New method.
14406 <m_base_ptid>: New member.
14407 <update_inferior_ptid, active_task, task_is_currently_active,
14408 runtime_initialized>: Declare methods.
14409 <ravenscar_thread_target>: Add constructor.
14410 (ravenscar_thread_target::task_is_currently_active)
14411 (ravenscar_thread_target::update_inferior_ptid)
14412 (ravenscar_runtime_initialized): Rename. Now methods.
14413 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14414 (ravenscar_thread_target::update_thread_list): Update.
14415 (ravenscar_thread_target::active_task): Now method.
14416 (ravenscar_thread_target::store_registers)
14417 (ravenscar_thread_target::prepare_to_store)
14418 (ravenscar_thread_target::prepare_to_store)
14419 (ravenscar_thread_target::mourn_inferior): Update.
14420 (ravenscar_inferior_created): Use "new" to create target.
14421 (ravenscar_thread_target::get_ada_task_ptid): Update.
14422 (_initialize_ravenscar): Don't initialize base_ptid.
14423 (ravenscar_ops): Remove global.
14424
14425 2019-02-15 Tom Tromey <tromey@adacore.com>
14426
14427 * target.h (push_target): Declare new overload.
14428 * target.c (push_target): New overload, taking an rvalue reference.
14429 * remote.c (remote_target::open_1): Use push_target overload.
14430 * corelow.c (core_target_open): Use push_target overload.
14431
14432 2019-02-15 Tom Tromey <tromey@adacore.com>
14433
14434 * ravenscar-thread.c (is_ravenscar_task)
14435 (ravenscar_task_is_currently_active): Return bool.
14436 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14437 (_initialize_ravenscar): Remove "(void)".
14438 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14439 Return bool.
14440
14441 2019-02-15 Tom Tromey <tromey@adacore.com>
14442
14443 * ravenscar-thread.c (ravenscar_runtime_initializer)
14444 (has_ravenscar_runtime, get_running_thread_id)
14445 (ravenscar_thread_target::resume): Fix indentation.
14446
14447 2019-02-15 Tom Tromey <tromey@adacore.com>
14448
14449 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14450 from ravenscar_arch_ops.
14451 (sparc_ravenscar_ops::fetch_registers)
14452 (sparc_ravenscar_ops::store_registers): Now methods.
14453 (sparc_ravenscar_prepare_to_store): Remove.
14454 (sparc_ravenscar_ops): Redefine.
14455 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14456 methods and destructor. Remove members.
14457 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14458 (ravenscar_thread_target::store_registers)
14459 (ravenscar_thread_target::prepare_to_store): Update.
14460 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14461 Remove.
14462 (struct ppc_ravenscar_powerpc_ops): Derive from
14463 ravenscar_arch_ops.
14464 (ppc_ravenscar_powerpc_ops::fetch_registers)
14465 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14466 (ppc_ravenscar_powerpc_ops): Redefine.
14467 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14468 (ppc_ravenscar_e500_ops::fetch_registers)
14469 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14470 (ppc_ravenscar_e500_ops): Redefine.
14471 * aarch64-ravenscar-thread.c
14472 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14473 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14474 (aarch64_ravenscar_fetch_registers)
14475 (aarch64_ravenscar_store_registers): Now methods.
14476 (aarch64_ravenscar_ops): Redefine.
14477
14478 2019-02-15 Tom Tromey <tromey@adacore.com>
14479
14480 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14481 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14482 (ravenscar_thread_target::stopped_by_watchpoint)
14483 (ravenscar_thread_target::stopped_data_address)
14484 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14485
14486 2019-02-15 Tom Tromey <tromey@adacore.com>
14487
14488 * ravenscar-thread.c: Fix some typos.
14489
14490 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14491 Tom Tromey <tromey@adacore.com>
14492
14493 * ada-lang.c (ada_exception_sal): Change addr_string to a
14494 std::string.
14495 (create_ada_exception_catchpoint): Update.
14496
14497 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14498 Tom Tromey <tromey@adacore.com>
14499
14500 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14501 (bp_location_ops): Remove.
14502 (base_breakpoint_allocate_location): Update.
14503 (free_bp_location): Update.
14504 * ada-lang.c (class ada_catchpoint_location)
14505 <ada_catchpoint_location>: Remove ops parameter.
14506 (ada_catchpoint_location_dtor): Remove.
14507 (ada_catchpoint_location_ops): Remove.
14508 (allocate_location_exception): Update.
14509 * breakpoint.h (struct bp_location_ops): Remove.
14510 (class bp_location) <bp_location>: Remove bp_location_ops
14511 parameter.
14512 <~bp_location>: Add destructor.
14513 <ops>: Remove.
14514
14515 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14516 Pedro Alves <palves@redhat.com>
14517
14518 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14519 'PATH_MAX'.
14520
14521 2019-02-14 David Michael <fedora.dm0@gmail.com>
14522 Samuel Thibault <samuel.thibault@gnu.org>
14523 Thomas Schwinge <thomas@codesourcery.com>
14524
14525 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14526 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14527
14528 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14529
14530 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14531 (check_empty): Use "const char *".
14532
14533 * gnu-nat.c (gnu_nat_target::detach): Instead of
14534 'detach_inferior (pid)' call
14535 'detach_inferior (find_inferior_pid (pid))'.
14536
14537 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14538 'nat/fork-inferior.o'.
14539 * gnu-nat.c: #include "nat/fork-inferior.h".
14540
14541 * gnu-nat.c (gnu_nat_target::detach): Instead of
14542 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14543 * gnu-nat.h: #include "inf-child.h".
14544 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14545 'i386_gnu_nat_target::fetch_registers'.
14546 (gnu_store_registers): Rename/move to
14547 'i386_gnu_nat_target::store_registers'.
14548
14549 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14550 * gnu-nat.h (mach_thread_info): New function.
14551 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14552
14553 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14554
14555 2019-02-14 Frederic Konrad <konrad@adacore.com>
14556
14557 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14558
14559 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14560
14561 * windows-nat.c (windows_add_thread): Add new parameter
14562 "main_thread_p" with default value set to false. Update
14563 function documentation as well as all callers.
14564 (windows_delete_thread): Likewise.
14565 (fake_create_process): Update call to windows_add_thread.
14566 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14567 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14568 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14569 call to windows_delete_thread.
14570
14571 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14572
14573 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14574
14575 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14576
14577 * symfile.c (find_separate_debug_file): Use canonical path of
14578 sysroot with child_path instead of gdb_sysroot if it is valid.
14579
14580 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14581
14582 * symfile.c (find_separate_debug_file): Use child_path to
14583 determine if an object file is under a sysroot.
14584
14585 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14586
14587 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14588 unittests/child-path-selftests.c.
14589 * common/pathstuff.c (child_path): New function.
14590 * common/pathstuff.h (child_path): New prototype.
14591 * unittests/child-path-selftests.c: New file.
14592
14593 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14594
14595 * symfile.c (find_separate_debug_file): Look for separate debug
14596 files in debug directories under the sysroot.
14597
14598 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14599
14600 * symtab.h (struct minimal_symbol data_p): New const method.
14601 (struct minimal_symbol text_p): Likewise.
14602 * symtab.c (output_source_filename): Use file name style
14603 to print file name.
14604 (print_symbol_info): Likewise.
14605 (print_msymbol_info): Use address style to print addresses.
14606 Use function name style to print executable text symbols.
14607 (expand_symtab_containing_pc): Use data_p.
14608 (find_pc_sect_compunit_symtab): Likewise.
14609
14610 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14611
14612 * breakpoint.c (describe_other_breakpoints): Use address style
14613 to print addresses.
14614 (say_where): Likewise.
14615
14616 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14617
14618 * ada-typeprint.c (print_func_type): Print function name
14619 style to print function name.
14620 * c-typeprint.c (c_print_type_1): Likewise.
14621
14622 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14623
14624 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14625 for execve.
14626
14627 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14628
14629 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14630 type_stack.
14631
14632 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14633
14634 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14635 TYPE_CODE_REF types.
14636
14637 2019-02-08 Jim Wilson <jimw@sifive.com>
14638
14639 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14640 (riscv_linux_fregset): New.
14641 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14642
14643 2019-02-07 Tom Tromey <tom@tromey.com>
14644
14645 * thread.c (thread_cancel_execution_command): Update.
14646 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14647 methods.
14648 (struct thread_fsm_ops): Remove.
14649 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14650 (thread_fsm_should_stop, thread_fsm_return_value)
14651 (thread_fsm_set_finished, thread_fsm_finished_p)
14652 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14653 Don't declare.
14654 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14655 * infrun.c (clear_proceed_status_thread)
14656 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14657 (print_stop_event): Update.
14658 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14659 Add constructor.
14660 (step_command_fsm_ops): Remove.
14661 (new_step_command_fsm): Remove.
14662 (step_1): Update.
14663 (step_command_fsm::should_stop): Rename from
14664 step_command_fsm_should_stop.
14665 (step_command_fsm::clean_up): Rename from
14666 step_command_fsm_clean_up.
14667 (step_command_fsm::do_async_reply_reason): Rename from
14668 step_command_fsm_async_reply_reason.
14669 (struct until_next_fsm): Inherit from thread_fsm. Add
14670 constructor.
14671 (until_next_fsm_ops): Remove.
14672 (new_until_next_fsm): Remove.
14673 (until_next_fsm::should_stop): Rename from
14674 until_next_fsm_should_stop.
14675 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14676 (until_next_fsm::do_async_reply_reason): Rename from
14677 until_next_fsm_async_reply_reason.
14678 (struct finish_command_fsm): Inherit from thread_fsm. Add
14679 constructor. Change type of breakpoint.
14680 (finish_command_fsm_ops): Remove.
14681 (new_finish_command_fsm): Remove.
14682 (finish_command_fsm::should_stop): Rename from
14683 finish_command_fsm_should_stop.
14684 (finish_command_fsm::clean_up): Rename from
14685 finish_command_fsm_clean_up.
14686 (finish_command_fsm::return_value): Rename from
14687 finish_command_fsm_return_value.
14688 (finish_command_fsm::do_async_reply_reason): Rename from
14689 finish_command_fsm_async_reply_reason.
14690 (finish_command): Update.
14691 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14692 Add constructor.
14693 (call_thread_fsm_ops): Remove.
14694 (call_thread_fsm::call_thread_fsm): Rename from
14695 new_call_thread_fsm.
14696 (call_thread_fsm::should_stop): Rename from
14697 call_thread_fsm_should_stop.
14698 (call_thread_fsm::should_notify_stop): Rename from
14699 call_thread_fsm_should_notify_stop.
14700 (run_inferior_call, call_function_by_hand_dummy): Update.
14701 * cli/cli-interp.c (should_print_stop_to_console): Update.
14702 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14703 Add constructor. Change type of location_breakpoint,
14704 caller_breakpoint.
14705 (until_break_fsm_ops): Remove.
14706 (new_until_break_fsm): Remove.
14707 (until_break_fsm::should_stop): Rename from
14708 until_break_fsm_should_stop.
14709 (until_break_fsm::clean_up): Rename from
14710 until_break_fsm_clean_up.
14711 (until_break_fsm::do_async_reply_reason): Rename from
14712 until_break_fsm_async_reply_reason.
14713 (until_break_command): Update.
14714 * thread-fsm.c: Remove.
14715 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14716
14717 2019-02-07 Tom Tromey <tom@tromey.com>
14718
14719 * yy-remap.h: Add include guard.
14720 * xtensa-tdep.h: Add include guard.
14721 * xcoffread.h: Rename include guard.
14722 * varobj-iter.h: Add include guard.
14723 * tui/tui.h: Rename include guard.
14724 * tui/tui-winsource.h: Rename include guard.
14725 * tui/tui-wingeneral.h: Rename include guard.
14726 * tui/tui-windata.h: Rename include guard.
14727 * tui/tui-win.h: Rename include guard.
14728 * tui/tui-stack.h: Rename include guard.
14729 * tui/tui-source.h: Rename include guard.
14730 * tui/tui-regs.h: Rename include guard.
14731 * tui/tui-out.h: Rename include guard.
14732 * tui/tui-layout.h: Rename include guard.
14733 * tui/tui-io.h: Rename include guard.
14734 * tui/tui-hooks.h: Rename include guard.
14735 * tui/tui-file.h: Rename include guard.
14736 * tui/tui-disasm.h: Rename include guard.
14737 * tui/tui-data.h: Rename include guard.
14738 * tui/tui-command.h: Rename include guard.
14739 * tic6x-tdep.h: Add include guard.
14740 * target/waitstatus.h: Rename include guard.
14741 * target/wait.h: Rename include guard.
14742 * target/target.h: Rename include guard.
14743 * target/resume.h: Rename include guard.
14744 * target-float.h: Rename include guard.
14745 * stabsread.h: Add include guard.
14746 * rs6000-tdep.h: Add include guard.
14747 * riscv-fbsd-tdep.h: Add include guard.
14748 * regformats/regdef.h: Rename include guard.
14749 * record.h: Rename include guard.
14750 * python/python.h: Rename include guard.
14751 * python/python-internal.h: Rename include guard.
14752 * python/py-stopevent.h: Rename include guard.
14753 * python/py-ref.h: Rename include guard.
14754 * python/py-record.h: Rename include guard.
14755 * python/py-record-full.h: Rename include guard.
14756 * python/py-record-btrace.h: Rename include guard.
14757 * python/py-instruction.h: Rename include guard.
14758 * python/py-events.h: Rename include guard.
14759 * python/py-event.h: Rename include guard.
14760 * procfs.h: Add include guard.
14761 * proc-utils.h: Add include guard.
14762 * p-lang.h: Add include guard.
14763 * or1k-tdep.h: Rename include guard.
14764 * observable.h: Rename include guard.
14765 * nto-tdep.h: Rename include guard.
14766 * nat/x86-linux.h: Rename include guard.
14767 * nat/x86-linux-dregs.h: Rename include guard.
14768 * nat/x86-gcc-cpuid.h: Add include guard.
14769 * nat/x86-dregs.h: Rename include guard.
14770 * nat/x86-cpuid.h: Rename include guard.
14771 * nat/ppc-linux.h: Rename include guard.
14772 * nat/mips-linux-watch.h: Rename include guard.
14773 * nat/linux-waitpid.h: Rename include guard.
14774 * nat/linux-ptrace.h: Rename include guard.
14775 * nat/linux-procfs.h: Rename include guard.
14776 * nat/linux-osdata.h: Rename include guard.
14777 * nat/linux-nat.h: Rename include guard.
14778 * nat/linux-namespaces.h: Rename include guard.
14779 * nat/linux-btrace.h: Rename include guard.
14780 * nat/glibc_thread_db.h: Rename include guard.
14781 * nat/gdb_thread_db.h: Rename include guard.
14782 * nat/gdb_ptrace.h: Rename include guard.
14783 * nat/fork-inferior.h: Rename include guard.
14784 * nat/amd64-linux-siginfo.h: Rename include guard.
14785 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14786 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14787 * nat/aarch64-linux.h: Rename include guard.
14788 * nat/aarch64-linux-hw-point.h: Rename include guard.
14789 * mn10300-tdep.h: Add include guard.
14790 * mips-linux-tdep.h: Add include guard.
14791 * mi/mi-parse.h: Rename include guard.
14792 * mi/mi-out.h: Rename include guard.
14793 * mi/mi-main.h: Rename include guard.
14794 * mi/mi-interp.h: Rename include guard.
14795 * mi/mi-getopt.h: Rename include guard.
14796 * mi/mi-console.h: Rename include guard.
14797 * mi/mi-common.h: Rename include guard.
14798 * mi/mi-cmds.h: Rename include guard.
14799 * mi/mi-cmd-break.h: Rename include guard.
14800 * m2-lang.h: Add include guard.
14801 * location.h: Rename include guard.
14802 * linux-record.h: Rename include guard.
14803 * linux-nat.h: Add include guard.
14804 * linux-fork.h: Add include guard.
14805 * i386-darwin-tdep.h: Rename include guard.
14806 * hppa-linux-offsets.h: Add include guard.
14807 * guile/guile.h: Rename include guard.
14808 * guile/guile-internal.h: Rename include guard.
14809 * gnu-nat.h: Rename include guard.
14810 * gdb-stabs.h: Rename include guard.
14811 * frv-tdep.h: Add include guard.
14812 * f-lang.h: Add include guard.
14813 * event-loop.h: Add include guard.
14814 * darwin-nat.h: Rename include guard.
14815 * cp-abi.h: Rename include guard.
14816 * config/sparc/nm-sol2.h: Rename include guard.
14817 * config/nm-nto.h: Rename include guard.
14818 * config/nm-linux.h: Add include guard.
14819 * config/i386/nm-i386gnu.h: Rename include guard.
14820 * config/djgpp/nl_types.h: Rename include guard.
14821 * config/djgpp/langinfo.h: Rename include guard.
14822 * compile/gcc-cp-plugin.h: Add include guard.
14823 * compile/gcc-c-plugin.h: Add include guard.
14824 * compile/compile.h: Rename include guard.
14825 * compile/compile-object-run.h: Rename include guard.
14826 * compile/compile-object-load.h: Rename include guard.
14827 * compile/compile-internal.h: Rename include guard.
14828 * compile/compile-cplus.h: Rename include guard.
14829 * compile/compile-c.h: Rename include guard.
14830 * common/xml-utils.h: Rename include guard.
14831 * common/x86-xstate.h: Rename include guard.
14832 * common/version.h: Rename include guard.
14833 * common/vec.h: Rename include guard.
14834 * common/tdesc.h: Rename include guard.
14835 * common/selftest.h: Rename include guard.
14836 * common/scoped_restore.h: Rename include guard.
14837 * common/scoped_mmap.h: Rename include guard.
14838 * common/scoped_fd.h: Rename include guard.
14839 * common/safe-iterator.h: Rename include guard.
14840 * common/run-time-clock.h: Rename include guard.
14841 * common/refcounted-object.h: Rename include guard.
14842 * common/queue.h: Rename include guard.
14843 * common/ptid.h: Rename include guard.
14844 * common/print-utils.h: Rename include guard.
14845 * common/preprocessor.h: Rename include guard.
14846 * common/pathstuff.h: Rename include guard.
14847 * common/observable.h: Rename include guard.
14848 * common/netstuff.h: Rename include guard.
14849 * common/job-control.h: Rename include guard.
14850 * common/host-defs.h: Rename include guard.
14851 * common/gdb_wait.h: Rename include guard.
14852 * common/gdb_vecs.h: Rename include guard.
14853 * common/gdb_unlinker.h: Rename include guard.
14854 * common/gdb_unique_ptr.h: Rename include guard.
14855 * common/gdb_tilde_expand.h: Rename include guard.
14856 * common/gdb_sys_time.h: Rename include guard.
14857 * common/gdb_string_view.h: Rename include guard.
14858 * common/gdb_splay_tree.h: Rename include guard.
14859 * common/gdb_setjmp.h: Rename include guard.
14860 * common/gdb_ref_ptr.h: Rename include guard.
14861 * common/gdb_optional.h: Rename include guard.
14862 * common/gdb_locale.h: Rename include guard.
14863 * common/gdb_assert.h: Rename include guard.
14864 * common/filtered-iterator.h: Rename include guard.
14865 * common/filestuff.h: Rename include guard.
14866 * common/fileio.h: Rename include guard.
14867 * common/environ.h: Rename include guard.
14868 * common/common-utils.h: Rename include guard.
14869 * common/common-types.h: Rename include guard.
14870 * common/common-regcache.h: Rename include guard.
14871 * common/common-inferior.h: Rename include guard.
14872 * common/common-gdbthread.h: Rename include guard.
14873 * common/common-exceptions.h: Rename include guard.
14874 * common/common-defs.h: Rename include guard.
14875 * common/common-debug.h: Rename include guard.
14876 * common/cleanups.h: Rename include guard.
14877 * common/buffer.h: Rename include guard.
14878 * common/btrace-common.h: Rename include guard.
14879 * common/break-common.h: Rename include guard.
14880 * cli/cli-utils.h: Rename include guard.
14881 * cli/cli-style.h: Rename include guard.
14882 * cli/cli-setshow.h: Rename include guard.
14883 * cli/cli-script.h: Rename include guard.
14884 * cli/cli-interp.h: Rename include guard.
14885 * cli/cli-decode.h: Rename include guard.
14886 * cli/cli-cmds.h: Rename include guard.
14887 * charset-list.h: Add include guard.
14888 * buildsym-legacy.h: Rename include guard.
14889 * bfin-tdep.h: Add include guard.
14890 * ax.h: Rename include guard.
14891 * arm-linux-tdep.h: Add include guard.
14892 * arm-fbsd-tdep.h: Add include guard.
14893 * arch/xtensa.h: Rename include guard.
14894 * arch/tic6x.h: Add include guard.
14895 * arch/i386.h: Add include guard.
14896 * arch/arm.h: Rename include guard.
14897 * arch/arm-linux.h: Rename include guard.
14898 * arch/arm-get-next-pcs.h: Rename include guard.
14899 * arch/amd64.h: Add include guard.
14900 * arch/aarch64-insn.h: Rename include guard.
14901 * arch-utils.h: Rename include guard.
14902 * annotate.h: Add include guard.
14903 * amd64-darwin-tdep.h: Rename include guard.
14904 * aarch64-linux-tdep.h: Add include guard.
14905 * aarch64-fbsd-tdep.h: Add include guard.
14906 * aarch32-linux-nat.h: Add include guard.
14907
14908 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14909
14910 * macrotab.c (macro_define_internal): New function that
14911 factorizes macro_define_object_internal and macro_define_function
14912 code.
14913 (macro_define_object_internal): Use macro_define_internal.
14914 (macro_define_function): Likewise.
14915
14916 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14917
14918 * macrocmd.c (extract_identifier): Return
14919 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14920 callers.
14921
14922 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14923
14924 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14925
14926 2019-02-05 Tom Tromey <tom@tromey.com>
14927
14928 * target.c (target_stack::unpush): Move assertion earlier.
14929
14930 2019-01-30 Tom Tromey <tom@tromey.com>
14931
14932 PR python/23615:
14933 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14934 (gdbpy_parse_and_eval): Likewise.
14935 * python/python-internal.h (gdbpy_allow_threads): New class.
14936
14937 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14938
14939 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14940 (aarch64_fbsd_fpregmap): Move earlier.
14941 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14942 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14943 instead of individual calls to trad_frame_set_reg_addr.
14944 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14945 earlier.
14946 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14947 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14948 instead of individual calls to trad_frame_set_reg_addr.
14949
14950 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14951
14952 * CONTRIBUTE: Replace contribution list with wiki link.
14953
14954 2019-01-25 Tom Tromey <tom@tromey.com>
14955
14956 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14957
14958 2019-01-25 Tom Tromey <tom@tromey.com>
14959
14960 * xtensa-linux-nat.c: Fix common/ includes.
14961 * xml-support.h: Fix common/ includes.
14962 * xml-support.c: Fix common/ includes.
14963 * x86-linux-nat.c: Fix common/ includes.
14964 * windows-nat.c: Fix common/ includes.
14965 * varobj.h: Fix common/ includes.
14966 * varobj.c: Fix common/ includes.
14967 * value.c: Fix common/ includes.
14968 * valops.c: Fix common/ includes.
14969 * utils.c: Fix common/ includes.
14970 * unittests/xml-utils-selftests.c: Fix common/ includes.
14971 * unittests/utils-selftests.c: Fix common/ includes.
14972 * unittests/unpack-selftests.c: Fix common/ includes.
14973 * unittests/tracepoint-selftests.c: Fix common/ includes.
14974 * unittests/style-selftests.c: Fix common/ includes.
14975 * unittests/string_view-selftests.c: Fix common/ includes.
14976 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14977 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14978 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14979 * unittests/rsp-low-selftests.c: Fix common/ includes.
14980 * unittests/parse-connection-spec-selftests.c: Fix common/
14981 includes.
14982 * unittests/optional-selftests.c: Fix common/ includes.
14983 * unittests/offset-type-selftests.c: Fix common/ includes.
14984 * unittests/observable-selftests.c: Fix common/ includes.
14985 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14986 * unittests/memrange-selftests.c: Fix common/ includes.
14987 * unittests/memory-map-selftests.c: Fix common/ includes.
14988 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14989 * unittests/function-view-selftests.c: Fix common/ includes.
14990 * unittests/environ-selftests.c: Fix common/ includes.
14991 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14992 * unittests/common-utils-selftests.c: Fix common/ includes.
14993 * unittests/cli-utils-selftests.c: Fix common/ includes.
14994 * unittests/array-view-selftests.c: Fix common/ includes.
14995 * ui-file.c: Fix common/ includes.
14996 * tui/tui-io.c: Fix common/ includes.
14997 * tracepoint.h: Fix common/ includes.
14998 * tracepoint.c: Fix common/ includes.
14999 * tracefile-tfile.c: Fix common/ includes.
15000 * top.h: Fix common/ includes.
15001 * top.c: Fix common/ includes.
15002 * thread.c: Fix common/ includes.
15003 * target/waitstatus.h: Fix common/ includes.
15004 * target/waitstatus.c: Fix common/ includes.
15005 * target.h: Fix common/ includes.
15006 * target.c: Fix common/ includes.
15007 * target-memory.c: Fix common/ includes.
15008 * target-descriptions.c: Fix common/ includes.
15009 * symtab.h: Fix common/ includes.
15010 * symfile.c: Fix common/ includes.
15011 * stap-probe.c: Fix common/ includes.
15012 * spu-linux-nat.c: Fix common/ includes.
15013 * sparc-nat.c: Fix common/ includes.
15014 * source.c: Fix common/ includes.
15015 * solib.c: Fix common/ includes.
15016 * solib-target.c: Fix common/ includes.
15017 * ser-unix.c: Fix common/ includes.
15018 * ser-tcp.c: Fix common/ includes.
15019 * ser-pipe.c: Fix common/ includes.
15020 * ser-base.c: Fix common/ includes.
15021 * selftest-arch.c: Fix common/ includes.
15022 * s12z-tdep.c: Fix common/ includes.
15023 * rust-exp.y: Fix common/ includes.
15024 * rs6000-aix-tdep.c: Fix common/ includes.
15025 * riscv-tdep.c: Fix common/ includes.
15026 * remote.c: Fix common/ includes.
15027 * remote-notif.h: Fix common/ includes.
15028 * remote-fileio.h: Fix common/ includes.
15029 * remote-fileio.c: Fix common/ includes.
15030 * regcache.h: Fix common/ includes.
15031 * regcache.c: Fix common/ includes.
15032 * record-btrace.c: Fix common/ includes.
15033 * python/python.c: Fix common/ includes.
15034 * python/py-type.c: Fix common/ includes.
15035 * python/py-inferior.c: Fix common/ includes.
15036 * progspace.h: Fix common/ includes.
15037 * producer.c: Fix common/ includes.
15038 * procfs.c: Fix common/ includes.
15039 * proc-api.c: Fix common/ includes.
15040 * printcmd.c: Fix common/ includes.
15041 * ppc-linux-nat.c: Fix common/ includes.
15042 * parser-defs.h: Fix common/ includes.
15043 * osdata.c: Fix common/ includes.
15044 * obsd-nat.c: Fix common/ includes.
15045 * nat/x86-linux.c: Fix common/ includes.
15046 * nat/x86-linux-dregs.c: Fix common/ includes.
15047 * nat/x86-dregs.h: Fix common/ includes.
15048 * nat/x86-dregs.c: Fix common/ includes.
15049 * nat/ppc-linux.c: Fix common/ includes.
15050 * nat/mips-linux-watch.h: Fix common/ includes.
15051 * nat/mips-linux-watch.c: Fix common/ includes.
15052 * nat/linux-waitpid.c: Fix common/ includes.
15053 * nat/linux-ptrace.h: Fix common/ includes.
15054 * nat/linux-ptrace.c: Fix common/ includes.
15055 * nat/linux-procfs.c: Fix common/ includes.
15056 * nat/linux-personality.c: Fix common/ includes.
15057 * nat/linux-osdata.c: Fix common/ includes.
15058 * nat/linux-namespaces.c: Fix common/ includes.
15059 * nat/linux-btrace.h: Fix common/ includes.
15060 * nat/linux-btrace.c: Fix common/ includes.
15061 * nat/fork-inferior.c: Fix common/ includes.
15062 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15063 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15064 * nat/aarch64-linux.c: Fix common/ includes.
15065 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15066 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15067 * namespace.h: Fix common/ includes.
15068 * mips-linux-tdep.c: Fix common/ includes.
15069 * minsyms.c: Fix common/ includes.
15070 * mi/mi-parse.h: Fix common/ includes.
15071 * mi/mi-main.c: Fix common/ includes.
15072 * mi/mi-cmd-env.c: Fix common/ includes.
15073 * memrange.h: Fix common/ includes.
15074 * memattr.c: Fix common/ includes.
15075 * maint.h: Fix common/ includes.
15076 * maint.c: Fix common/ includes.
15077 * main.c: Fix common/ includes.
15078 * machoread.c: Fix common/ includes.
15079 * location.c: Fix common/ includes.
15080 * linux-thread-db.c: Fix common/ includes.
15081 * linux-nat.c: Fix common/ includes.
15082 * linux-fork.c: Fix common/ includes.
15083 * inline-frame.c: Fix common/ includes.
15084 * infrun.c: Fix common/ includes.
15085 * inflow.c: Fix common/ includes.
15086 * inferior.h: Fix common/ includes.
15087 * inferior.c: Fix common/ includes.
15088 * infcmd.c: Fix common/ includes.
15089 * inf-ptrace.c: Fix common/ includes.
15090 * inf-child.c: Fix common/ includes.
15091 * ia64-linux-nat.c: Fix common/ includes.
15092 * i387-tdep.c: Fix common/ includes.
15093 * i386-tdep.c: Fix common/ includes.
15094 * i386-linux-tdep.c: Fix common/ includes.
15095 * i386-linux-nat.c: Fix common/ includes.
15096 * i386-go32-tdep.c: Fix common/ includes.
15097 * i386-fbsd-tdep.c: Fix common/ includes.
15098 * i386-fbsd-nat.c: Fix common/ includes.
15099 * guile/scm-type.c: Fix common/ includes.
15100 * guile/guile.c: Fix common/ includes.
15101 * go32-nat.c: Fix common/ includes.
15102 * gnu-nat.c: Fix common/ includes.
15103 * gdbthread.h: Fix common/ includes.
15104 * gdbarch-selftests.c: Fix common/ includes.
15105 * gdb_usleep.c: Fix common/ includes.
15106 * gdb_select.h: Fix common/ includes.
15107 * gdb_bfd.c: Fix common/ includes.
15108 * gcore.c: Fix common/ includes.
15109 * fork-child.c: Fix common/ includes.
15110 * findvar.c: Fix common/ includes.
15111 * fbsd-nat.c: Fix common/ includes.
15112 * event-top.c: Fix common/ includes.
15113 * event-loop.c: Fix common/ includes.
15114 * dwarf2read.c: Fix common/ includes.
15115 * dwarf2loc.c: Fix common/ includes.
15116 * dwarf2-frame.c: Fix common/ includes.
15117 * dwarf-index-cache.c: Fix common/ includes.
15118 * dtrace-probe.c: Fix common/ includes.
15119 * disasm-selftests.c: Fix common/ includes.
15120 * defs.h: Fix common/ includes.
15121 * csky-tdep.c: Fix common/ includes.
15122 * cp-valprint.c: Fix common/ includes.
15123 * cp-support.h: Fix common/ includes.
15124 * cp-support.c: Fix common/ includes.
15125 * corelow.c: Fix common/ includes.
15126 * completer.h: Fix common/ includes.
15127 * completer.c: Fix common/ includes.
15128 * compile/compile.c: Fix common/ includes.
15129 * compile/compile-loc2c.c: Fix common/ includes.
15130 * compile/compile-cplus-types.c: Fix common/ includes.
15131 * compile/compile-cplus-symbols.c: Fix common/ includes.
15132 * command.h: Fix common/ includes.
15133 * cli/cli-dump.c: Fix common/ includes.
15134 * cli/cli-cmds.c: Fix common/ includes.
15135 * charset.c: Fix common/ includes.
15136 * build-id.c: Fix common/ includes.
15137 * btrace.h: Fix common/ includes.
15138 * btrace.c: Fix common/ includes.
15139 * breakpoint.h: Fix common/ includes.
15140 * breakpoint.c: Fix common/ includes.
15141 * ax.h:
15142 (enum agent_op): Fix common/ includes.
15143 * ax-general.c (struct aop_map): Fix common/ includes.
15144 * ax-gdb.c: Fix common/ includes.
15145 * auxv.c: Fix common/ includes.
15146 * auto-load.c: Fix common/ includes.
15147 * arm-tdep.c: Fix common/ includes.
15148 * arch/riscv.c: Fix common/ includes.
15149 * arch/ppc-linux-common.c: Fix common/ includes.
15150 * arch/i386.c: Fix common/ includes.
15151 * arch/arm.c: Fix common/ includes.
15152 * arch/arm-linux.c: Fix common/ includes.
15153 * arch/arm-get-next-pcs.c: Fix common/ includes.
15154 * arch/amd64.c: Fix common/ includes.
15155 * arch/aarch64.c: Fix common/ includes.
15156 * arch/aarch64-insn.c: Fix common/ includes.
15157 * arch-utils.c: Fix common/ includes.
15158 * amd64-windows-tdep.c: Fix common/ includes.
15159 * amd64-tdep.c: Fix common/ includes.
15160 * amd64-sol2-tdep.c: Fix common/ includes.
15161 * amd64-obsd-tdep.c: Fix common/ includes.
15162 * amd64-nbsd-tdep.c: Fix common/ includes.
15163 * amd64-linux-tdep.c: Fix common/ includes.
15164 * amd64-linux-nat.c: Fix common/ includes.
15165 * amd64-fbsd-tdep.c: Fix common/ includes.
15166 * amd64-fbsd-nat.c: Fix common/ includes.
15167 * amd64-dicos-tdep.c: Fix common/ includes.
15168 * amd64-darwin-tdep.c: Fix common/ includes.
15169 * agent.c: Fix common/ includes.
15170 * ada-lang.h: Fix common/ includes.
15171 * ada-lang.c: Fix common/ includes.
15172 * aarch64-tdep.c: Fix common/ includes.
15173
15174 2019-01-25 Tom Tromey <tom@tromey.com>
15175
15176 * common/create-version.sh: Use common/version.h.
15177
15178 2019-01-24 Pedro Alves <palves@redhat.com>
15179
15180 * infrun.c (signal_stop, signal_print, signal_program)
15181 (signal_catch, signal_pass): Now arrays instead of pointers.
15182 (update_signals_program_target, do_target_resume)
15183 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15184 * linux-nat.c (linux_nat_target::pass_signals)
15185 (linux_nat_target::create_inferior, linux_nat_target::attach):
15186 Adjust.
15187 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15188 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15189 * procfs.c (procfs_target::pass_signals): Adjust.
15190 * record-full.c (record_full_target::resume): Adjust.
15191 * remote.c (remote_target::pass_signals)
15192 (remote_target::program_signals): Adjust.
15193 * target-debug.h (target_debug_print_signals): Now takes a
15194 gdb::array_view as parameter. Adjust.
15195 * target.h (target_ops) <pass_signals, program_signals>: Replace
15196 pointer and length parameters with gdb::array_view.
15197 (target_pass_signals, target_program_signals): Likewise.
15198 * target-delegates.c: Regenerate.
15199
15200 2019-01-24 Pedro Alves <palves@redhat.com>
15201
15202 * common/forward-scope-exit.h
15203 (forward_scope_exit::forward_scope_exit): Pass arguments to
15204 m_bind_function directly, instead of creating a std::bind and
15205 copying that.
15206
15207 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15208
15209 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15210 for static members.
15211 (pass_in_v_vfp_candidate): Likewise.
15212
15213 2019-01-23 Tom Tromey <tom@tromey.com>
15214 Pedro Alves <palves@redhat.com>
15215
15216 * regcache.c (class regcache_invalidator): Remove.
15217 (regcache::raw_write): Use make_scope_exit.
15218
15219 2019-01-23 Tom Tromey <tom@tromey.com>
15220
15221 * ui-out.h (class ui_out_emit_type): Update comment.
15222
15223 2019-01-23 Tom Tromey <tom@tromey.com>
15224
15225 * infrun.c (fetch_inferior_event): Update comment.
15226
15227 2019-01-23 Tom Tromey <tom@tromey.com>
15228 Pedro Alves <palves@redhat.com>
15229
15230 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15231 parameter.
15232 (fetch_inferior_event): Use SCOPE_EXIT.
15233
15234
15235 2019-01-23 Tom Tromey <tom@tromey.com>
15236 Pedro Alves <palves@redhat.com>
15237
15238 * infrun.c (disable_thread_events): Delete.
15239 (stop_all_threads): Use SCOPE_EXIT.
15240
15241 2019-01-23 Tom Tromey <tom@tromey.com>
15242 Pedro Alves <palves@redhat.com>
15243
15244 * symfile.c: Include forward-scope-exit.h.
15245 (clear_symtab_users_cleanup): Replace forward declaration with
15246 a FORWARD_SCOPE_EXIT.
15247 (syms_from_objfile_1): Use the forward_scope_exit and
15248 gdb::optional instead of cleanup_function.
15249 (reread_symbols): Use the forward_scope_exit instead of
15250 cleanup_function.
15251 (clear_symtab_users_cleanup): Remove function.
15252
15253 2019-01-23 Tom Tromey <tom@tromey.com>
15254 Pedro Alves <palves@redhat.com>
15255
15256 * linux-nat.c: Include scope-exit.h.
15257 (cleanup_target_stop): Remove.
15258 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15259 SCOPE_EXIT.
15260
15261 2019-01-23 Tom Tromey <tom@tromey.com>
15262 Pedro Alves <palves@redhat.com>
15263
15264 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15265 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15266
15267 2019-01-23 Tom Tromey <tom@tromey.com>
15268 Andrew Burgess <andrew.burgess@embecosm.com>
15269 Pedro Alves <palves@redhat.com>
15270
15271 * infrun.c (fetch_inferior_event): Use scope_exit.
15272 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15273 * top.c (execute_command): Use scope_exit.
15274 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15275 * utils.c (do_bpstat_clear_actions_cleanup)
15276 (make_bpstat_clear_actions_cleanup): Remove.
15277
15278 2019-01-23 Tom Tromey <tom@tromey.com>
15279 Pedro Alves <palves@redhat.com>
15280
15281 * infrun.c: Include "common/scope-exit.h"
15282 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15283 (wait_for_inferior): Use SCOPE_EXIT.
15284 (fetch_inferior_event): Use scope_exit.
15285
15286 2019-01-23 Tom Tromey <tom@tromey.com>
15287 Pedro Alves <palves@redhat.com>
15288
15289 * breakpoint.c (create_breakpoint): Remove cleanup.
15290
15291 2019-01-23 Tom Tromey <tom@tromey.com>
15292 Andrew Burgess <andrew.burgess@embecosm.com>
15293 Pedro Alves <palves@redhat.com>
15294
15295 2019-01-23 Pedro Alves <palves@redhat.com>
15296
15297 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15298
15299 2019-01-23 Pedro Alves <palves@redhat.com>
15300 Andrew Burgess <andrew.burgess@embecosm.com>
15301
15302 * gdbthread.h: Include "common/forward-scope-exit.h".
15303 (scoped_finish_thread_state): Redefine custom class in terms of
15304 forward_scope_exit.
15305
15306 2019-01-23 Pedro Alves <palves@redhat.com>
15307 Andrew Burgess <andrew.burgess@embecosm.com>
15308
15309 * common/forward-scope-exit.h: New file.
15310
15311 2019-01-23 Pedro Alves <palves@redhat.com>
15312 Andrew Burgess <andrew.burgess@embecosm.com>
15313 Tom Tromey <tom@tromey.com>
15314
15315 * common/scope-exit.h: New file.
15316
15317 2019-01-23 Pedro Alves <palves@redhat.com>
15318
15319 * common/preprocessor.h (ESC): Rename to ...
15320 (ESC_PARENS): ... this.
15321 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15322 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15323
15324 2019-01-23 Tom Tromey <tom@tromey.com>
15325
15326 * language.h (class scoped_switch_to_sym_language_if_auto):
15327 Initialize m_lang in both cases.
15328
15329 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15330
15331 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15332 with XCNEW.
15333
15334 2019-01-22 Tom Tromey <tom@tromey.com>
15335
15336 * corelow.c: Do not include sys/file.h.
15337
15338 2019-01-22 Tom Tromey <tom@tromey.com>
15339
15340 * tui/tui-wingeneral.h: Include gdb_curses.h.
15341
15342 2019-01-22 Tom Tromey <tom@tromey.com>
15343
15344 * source-cache.h (class source_cache) <get_source_lines,
15345 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15346
15347 2019-01-22 Tom Tromey <tom@tromey.com>
15348
15349 * remote-fileio.h (struct remote_target): Declare.
15350
15351 2019-01-22 Tom Tromey <tom@tromey.com>
15352
15353 * python/py-arch.c: Do not include py-ref.h.
15354 * python/py-bpevent.c: Do not include py-ref.h.
15355 * python/py-cmd.c: Do not include py-ref.h.
15356 * python/py-continueevent.c: Do not include py-ref.h.
15357 * python/py-event.h: Do not include py-ref.h.
15358 * python/py-evtregistry.c: Do not include py-ref.h.
15359 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15360 * python/py-frame.c: Do not include py-ref.h.
15361 * python/py-framefilter.c: Do not include py-ref.h.
15362 * python/py-function.c: Do not include py-ref.h.
15363 * python/py-infevents.c: Do not include py-ref.h.
15364 * python/py-linetable.c: Do not include py-ref.h.
15365 * python/py-objfile.c: Do not include py-ref.h.
15366 * python/py-param.c: Do not include py-ref.h.
15367 * python/py-prettyprint.c: Do not include py-ref.h.
15368 * python/py-progspace.c: Do not include py-ref.h.
15369 * python/py-symbol.c: Do not include py-ref.h.
15370 * python/py-symtab.c: Do not include py-ref.h.
15371 * python/py-type.c: Do not include py-ref.h.
15372 * python/py-unwind.c: Do not include py-ref.h.
15373 * python/py-utils.c: Do not include py-ref.h.
15374 * python/py-value.c: Do not include py-ref.h.
15375 * python/py-varobj.c: Do not include py-ref.h.
15376 * python/py-xmethods.c: Do not include py-ref.h.
15377 * python/python.c: Do not include py-ref.h.
15378 * varobj.c: Do not include py-ref.h.
15379
15380 2019-01-22 Tom Tromey <tom@tromey.com>
15381
15382 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15383 keyword for bcache.
15384
15385 2019-01-22 Tom Tromey <tom@tromey.com>
15386
15387 * compile/compile-cplus-types.c: Remove a comment by #include.
15388
15389 2019-01-22 Tom Tromey <tom@tromey.com>
15390
15391 * compile/gcc-c-plugin.h: Include compile-internal.h.
15392
15393 2019-01-22 Tom Tromey <tom@tromey.com>
15394
15395 * stabsread.c (EXTERN): Do not define.
15396 (symnum, next_symbol_text_func, processing_gcc_compilation)
15397 (within_function, global_sym_chain, global_stabs)
15398 (previous_stab_code, this_object_header_files)
15399 (n_this_object_header_files)
15400 (n_allocated_this_object_header_files): Define.
15401 * stabsread.h (EXTERN): Never define. Use "extern".
15402
15403 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15404
15405 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15406 history_value.
15407
15408 2019-01-21 Tom Tromey <tom@tromey.com>
15409
15410 * ui-out.c: Fix includes.
15411 * tui/tui-source.c: Fix includes.
15412 * target.c: Fix includes.
15413 * remote.c: Fix includes.
15414 * regcache.c: Fix includes.
15415 * python/py-block.c: Fix includes.
15416 * printcmd.c: Fix includes.
15417 * or1k-tdep.c: Fix includes.
15418 * mi/mi-main.c: Fix includes.
15419 * m32r-tdep.c: Fix includes.
15420 * csky-tdep.c: Fix includes.
15421 * compile/compile-cplus-types.c: Fix includes.
15422 * cli/cli-interp.c: Fix includes.
15423
15424 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15425
15426 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15427 for padding.
15428
15429 2019-01-16 Tom Tromey <tom@tromey.com>
15430
15431 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15432 earlier.
15433 (struct objfile) <msymbols_range>: Move from top level.
15434 <msymbols>: New method.
15435 (class objfile_msymbols): Remove.
15436 * symtab.c (default_collect_symbol_completion_matches_break_on):
15437 Update.
15438 * symmisc.c (dump_msymbols): Update.
15439 * stabsread.c (scan_file_globals): Update.
15440 * objc-lang.c (info_selectors_command, info_classes_command)
15441 (find_methods): Update.
15442 * minsyms.c (find_solib_trampoline_target): Update.
15443 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15444 * coffread.c (coff_symfile_read): Update.
15445 * ada-lang.c (ada_lookup_simple_minsym)
15446 (ada_collect_symbol_completion_matches): Update.
15447
15448 2019-01-16 Tom Tromey <tom@tromey.com>
15449
15450 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15451 type. Remove no-argument constructor.
15452 <iterator::operator++>: Simplify.
15453 <begin>: Update.
15454 <end>: Use minimal_symbol_count.
15455
15456 2019-01-16 Tom Tromey <tom@tromey.com>
15457
15458 * objfiles.h (struct objfile) <psymtabs>: New method.
15459 (class objfile_psymtabs): Remove.
15460 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15461 typedef.
15462 <range>: New method.
15463 (require_partial_symbols): Change return type.
15464 * psymtab.c (require_partial_symbols)
15465 (psym_expand_symtabs_matching): Update.
15466 * mdebugread.c (parse_partial_symbols): Update.
15467 * dbxread.c (dbx_end_psymtab): Update.
15468
15469 2019-01-15 Tom Tromey <tom@tromey.com>
15470
15471 * symtab.c (lookup_objfile_from_block)
15472 (lookup_symbol_in_objfile_symtabs)
15473 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15474 (find_line_symtab, info_sources_command)
15475 (default_collect_symbol_completion_matches_break_on)
15476 (make_source_files_completion_list): Update.
15477 * symmisc.c (print_objfile_statistics, dump_objfile)
15478 (maintenance_print_symbols, maintenance_info_symtabs)
15479 (maintenance_check_symtabs, maintenance_info_line_tables):
15480 Update.
15481 * source.c (select_source_symtab)
15482 (forget_cached_source_info_for_objfile): Update.
15483 * objfiles.h (class objfile_compunits): Remove.
15484 (struct objfile) <compunits_range>: New typedef.
15485 (compunits): New method.
15486 * objfiles.c (objfile_relocate1): Update.
15487 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15488 * maint.c (count_symtabs_and_blocks): Update.
15489 * linespec.c (iterate_over_all_matching_symtabs): Update.
15490 * cp-support.c (add_symbol_overload_list_qualified): Update.
15491 * coffread.c (coff_symtab_read): Update.
15492 * ada-lang.c (add_nonlocal_symbols)
15493 (ada_collect_symbol_completion_matches)
15494 (ada_add_global_exceptions): Update.
15495
15496 2019-01-15 Tom Tromey <tom@tromey.com>
15497
15498 * progspace.h (program_space) <objfiles_safe_range>: New
15499 typedef.
15500 <objfiles_safe>: New method.
15501 * objfiles.h (class all_objfiles_safe): Remove.
15502 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15503 * jit.c (jit_inferior_exit_hook): Update.
15504
15505 2019-01-17 Tom Tromey <tom@tromey.com>
15506
15507 * progspace.h (program_space) <objfiles_range>: New typedef.
15508 <objfiles>: New method.
15509 <objfiles_head>: Rename from objfiles.
15510 (object_files): Update.
15511 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15512 * guile/scm-pretty-print.c
15513 (ppscm_find_pretty_printer_from_objfiles): Update.
15514 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15515 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15516 Update.
15517 * python/py-progspace.c (pspy_get_objfiles): Update.
15518 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15519 Update.
15520 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15521 (objfpy_lookup_objfile_by_build_id): Update.
15522 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15523 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15524 Update.
15525 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15526 (expand_symtab_containing_pc, lookup_objfile_from_block)
15527 (lookup_static_symbol, basic_lookup_transparent_type)
15528 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15529 (find_line_symtab, info_sources_command)
15530 (default_collect_symbol_completion_matches_break_on)
15531 (make_source_files_completion_list, find_main_name): Update.
15532 * symmisc.c (print_symbol_bcache_statistics)
15533 (print_objfile_statistics, maintenance_print_symbols)
15534 (maintenance_print_msymbols, maintenance_print_objfiles)
15535 (maintenance_info_symtabs, maintenance_check_symtabs)
15536 (maintenance_expand_symtabs, maintenance_info_line_tables):
15537 Update.
15538 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15539 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15540 (map_overlay_command, unmap_overlay_command)
15541 (simple_overlay_update, expand_symtabs_matching)
15542 (map_symbol_filenames): Update.
15543 * symfile-debug.c (set_debug_symfile): Update.
15544 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15545 Update.
15546 * source.c (select_source_symtab, forget_cached_source_info):
15547 Update.
15548 * solib.c (solib_read_symbols): Update.
15549 * solib-spu.c (append_ocl_sos): Update.
15550 * psymtab.c (maintenance_print_psymbols)
15551 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15552 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15553 * printcmd.c (info_symbol_command): Update.
15554 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15555 Update.
15556 * objfiles.h (class all_objfiles): Remove.
15557 * objfiles.c (have_partial_symbols, have_full_symbols)
15558 (have_minimal_symbols, qsort_cmp, update_section_map)
15559 (shared_objfile_contains_address_p)
15560 (default_iterate_over_objfiles_in_search_order): Update.
15561 * objc-lang.c (info_selectors_command, info_classes_command)
15562 (find_methods): Update.
15563 * minsyms.c (find_solib_trampoline_target): Update.
15564 * maint.c (maintenance_info_sections)
15565 (maintenance_translate_address, count_symtabs_and_blocks):
15566 Update.
15567 * main.c (captured_main_1): Update.
15568 * linux-thread-db.c (try_thread_db_load_from_pdir)
15569 (has_libpthread): Update.
15570 * linespec.c (iterate_over_all_matching_symtabs)
15571 (search_minsyms_for_name): Update.
15572 * jit.c (jit_find_objf_with_entry_addr): Update.
15573 * hppa-tdep.c (find_unwind_entry)
15574 (hppa_lookup_stub_minimal_symbol): Update.
15575 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15576 Update.
15577 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15578 (elf_gnu_ifunc_resolve_by_got): Update.
15579 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15580 * dwarf-index-write.c (save_gdb_index_command): Update.
15581 * cp-support.c (add_symbol_overload_list_qualified): Update.
15582 * breakpoint.c (create_overlay_event_breakpoint)
15583 (create_longjmp_master_breakpoint)
15584 (create_std_terminate_master_breakpoint)
15585 (create_exception_master_breakpoint): Update.
15586 * blockframe.c (find_pc_partial_function): Update.
15587 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15588 (ada_collect_symbol_completion_matches)
15589 (ada_add_global_exceptions): Update.
15590
15591 2019-01-17 Tom Tromey <tom@tromey.com>
15592
15593 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15594 declare VEC.
15595 (solib_target_parse_libraries): Change return type.
15596 (library_list_start_segment, library_list_start_section)
15597 (library_list_end_library, library_list_start_library); Update.
15598 (solib_target_free_library_list): Remove.
15599 (solib_target_parse_libraries): Remove cleanup. Change return
15600 type.
15601 (solib_target_current_sos): Update.
15602
15603 2019-01-17 Tom Tromey <tromey@bapiya>
15604
15605 * valprint.c: Replace "the the" with "the".
15606 * symtab.c: Replace "the the" with "the".
15607 * solib.c: Replace "the the" with "the".
15608 * solib-dsbt.c: Replace "the the" with "the".
15609 * linespec.c: Replace "the the" with "the".
15610 * dwarf2loc.h: Replace "the the" with "the".
15611 * amd64-windows-tdep.c: Replace "the the" with "the".
15612 * aarch64-tdep.c: Replace "the the" with "the".
15613
15614 2019-01-16 Keith Seitz <keiths@redhat.com>
15615
15616 PR gdb/23773
15617 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15618 <builder>: Rename to ..
15619 <m_builder>: ... this and make private.
15620 (dwarf2_cu::get_builder): New method. Change all users of
15621 `builder' to use this method.
15622 (dwarf2_start_symtab): Move to ...
15623 (dwarf2_cu::start_symtab): ... here. Update all callers
15624 (setup_type_unit_groups): Move to ...
15625 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15626 callers.
15627 (dwarf2_cu::reset_builder): New method.
15628 (process_full_compunit, process_full_type_unit): Use
15629 dwarf2_cu::reset_builder.
15630 (follow_die_offset): Record the ancestor CU if it is different
15631 from the followed DIE's CU.
15632 (follow_die_sig_1): Likewise.
15633
15634 2019-01-15 Tom Tromey <tom@tromey.com>
15635
15636 * remote.c (class remote_state) <buf>: Now a char_vector.
15637 <buf_size>: Remove.
15638 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15639 parameter.
15640 (remote_target::getpkt_or_notif_sane_1)
15641 (remote_target::getpkt_sane)
15642 (remote_target::getpkt_or_notif_sane): Likewise.
15643 (class remote_target) <putpkt>: New overload.
15644 (remote_target::read_frame): Change type of "buf_p". Remove
15645 sizeof_p parameter.
15646 (packet_ok): New overload.
15647 (packet_check_result): New overload.
15648 Update all uses.
15649
15650 2019-01-14 Tom Tromey <tom@tromey.com>
15651
15652 * remote-notif.c (handle_notification, remote_notif_ack)
15653 (remote_notif_parse): Make "buf" const.
15654 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15655 const.
15656 (remote_notif_parse, remote_notif_ack, handle_notification):
15657 Likewise.
15658 * remote.c (remote_notif_stop_parse): Make "buf" const.
15659 (remote_target::remote_parse_stop_reply): Make "buf" const.
15660 (remote_notif_stop_ack): Make "buf" const.
15661
15662 2019-01-14 Tom Tromey <tom@tromey.com>
15663
15664 * remote.c (remote_console_output): Make parameter const.
15665
15666 2019-01-14 Tom Tromey <tom@tromey.com>
15667
15668 * target-debug.h (target_debug_print_signals): Constify.
15669 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15670 * procfs.c (procfs_target::pass_signals): Update.
15671 * linux-nat.c (linux_nat_target::pass_signals): Update.
15672 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15673 * target-delegates.c: Rebuild.
15674 * remote.c (remote_target::program_signals): Update.
15675 (remote_target::pass_signals): Update.
15676 * target.c (target_pass_signals): Constify argument.
15677 (target_program_signals): Likewise.
15678 * target.h (struct target_ops) <pass_signals, program_signals>:
15679 Constify argument.
15680 (target_pass_signals, target_program_signals): Constify argument.
15681
15682 2019-01-14 Tom Tromey <tom@tromey.com>
15683
15684 PR tui/28819:
15685 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15686
15687 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15688
15689 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15690 field.
15691 * rs6000-tdep.c: Include reggroups.h.
15692 (IS_V_ALIAS_PSEUDOREG): Define.
15693 (rs6000_register_name): Return names for the "vX" aliases.
15694 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15695 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15696 aliases. Call default_register_reggroup_p for all other
15697 pseudo-registers.
15698 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15699 New functions.
15700 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15701 Handle "vX" aliases.
15702 (v_alias_pseudo_register_collect): New function.
15703 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15704 (rs6000_gdbarch_init): Initialize "vX" aliases as
15705 pseudo-registers. Restore registration of
15706 rs6000_pseudo_register_reggroup_p with
15707 set_tdesc_pseudo_register_reggroup_p.
15708
15709 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15710
15711 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15712 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15713 set_gdbarch_num_pseudo_regs.
15714
15715 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15716
15717 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15718 Remove arg prefixname, add do_set and do_show.
15719 Add member functions set_list and show_list.
15720 * cli/cli-style.c (class cli_style_option): Update accordingly.
15721 (style_set_list): Move to file scope.
15722 (style_show_list): Likewise.
15723 (set_style): Call help_list.
15724 (show_style): Call cmd_show_list.
15725 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15726 Update to use the new macro.
15727
15728 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15729
15730 * ada-lang.c (_initialize_ada_language): Expand the help text
15731 for the "catch exception" command.
15732
15733 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15734
15735 * symtab.c (matching_obj_sections): Initialize obj,
15736 declare it closer to its usage.
15737
15738 2019-01-10 Tom Tromey <tom@tromey.com>
15739
15740 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15741 (basic_inf_threads_range): Remove.
15742 (inf_threads_range, inf_non_exited_threads_range)
15743 (safe_inf_threads_range): Use next_adapter.
15744
15745 2019-01-10 Keith Seitz <keiths@redhat.com>
15746
15747 PR gdb/23712
15748 PR symtab/23010
15749 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15750 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15751
15752 2019-01-10 Keith Seitz <keiths@redhat.com>
15753
15754 PR gdb/23712
15755 PR symtab/23010
15756 * dictionary.c (pending_to_vector): Remove.
15757 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15758 Remove _1 suffix, replacing functions of the same name. Update
15759 all callers.
15760 (dict_create_hashed, dict_create_hashed_expandable)
15761 (dict_create_linear, dict_create_linear_expandable, dict_free)
15762 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15763 Make functions static.
15764
15765 2019-01-10 Keith Seitz <keiths@redhat.com>
15766
15767 PR gdb/23712
15768 PR symtab/23010
15769 * dictionary.h (struct dictionary): Replace declaration with
15770 multidictionary.
15771 (dict_create_hashed, dict_create_hashed_expandable)
15772 (dict_create_linear, dict_create_linear_expandable)
15773 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15774 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15775 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15776 taking multidictionary argument.
15777 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15778 * block.h (struct block) <dict>: Change to multidictionary
15779 and rename `multidict'.
15780 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15781 symmisc.c: Update all dictionary references to multidictionary.
15782
15783 2019-01-10 Keith Seitz <keiths@redhat.com>
15784
15785 PR gdb/23712
15786 PR symtab/23010
15787 * dictionary.c: Include unordered_map.
15788 (pending_to_vector): New function.
15789 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15790 Rewrite the non-"_1" functions to take vector instead
15791 of linked list.
15792 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15793 "new" _1 versions of the same name.
15794 (multidictionary): Define.
15795 (std::hash<enum language): New definition.
15796 (collate_pending_symbols_by_language, mdict_create_hashed)
15797 (mdict_create_hashed_expandable, mdict_create_linear)
15798 (mdict_create_linear_expandable, mdict_free)
15799 (find_language_dictionary, create_new_language_dictionary)
15800 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15801 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15802 (mdict_size, mdict_empty): New functions.
15803 * dictionary.h (mdict_iterator): Define.
15804
15805 2019-01-10 Pedro Alves <palves@redhat.com>
15806
15807 * breakpoint.c (read_uploaded_action)
15808 (create_tracepoint_from_upload): Adjust to use
15809 gdb::unique_xmalloc_ptr.
15810 * ctf.c (ctf_write_uploaded_tp):
15811 (SET_ARRAY_FIELD): Use emplace_back.
15812 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15813 * tracefile-tfile.c (tfile_write_uploaded_tp):
15814 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15815 gdb::unique_xmalloc_ptr.
15816 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15817 at_string, cond_string, cmd_strings>: Replace char pointers
15818 with gdb::unique_xmalloc_ptr.
15819
15820 2019-01-10 Pedro Alves <palves@redhat.com>
15821
15822 * solib-target.c (library_list_start_library): Don't xstrdup name.
15823
15824 2019-01-10 Pedro Alves <palves@redhat.com>
15825
15826 * mdebugread.c (parse_partial_symbols): Use
15827 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15828
15829 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15830
15831 * linux-fork.c (scoped_switch_fork_info)
15832 <~scoped_switch_fork_info>: Fix incorrect variable name.
15833
15834 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15835
15836 * linux-fork.c (scoped_switch_fork_info)
15837 <scoped_switch_fork_info>: Make explicit.
15838 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15839
15840 2019-01-10 Tom Tromey <tom@tromey.com>
15841
15842 * objfiles.h (objfile::reset_psymtabs): Update.
15843 * objfiles.c (objfile::objfile): Update.
15844 * psymtab.h (psymtab_storage::obstack): Update.
15845 (psymtab_storage::m_obstack): Use gdb::optional.
15846 (class psymtab_storage): Update comment. Remove objfile
15847 parameter.
15848 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15849
15850 2019-01-10 Tom Tromey <tom@tromey.com>
15851
15852 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15853 <free_psymtabs>: Now private.
15854 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15855 (allocate_psymtab): Use new method.
15856
15857 2019-01-10 Tom Tromey <tom@tromey.com>
15858
15859 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15860 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15861 * mdebugread.c (parse_partial_symbols): Use
15862 allocate_dependencies.
15863 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15864 allocate_dependencies.
15865 (process_psymtab_comp_unit_reader)
15866 (build_type_psymtab_dependencies): Likewise.
15867 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15868
15869 2019-01-10 Tom Tromey <tom@tromey.com>
15870
15871 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15872 PSYMBOL_SET_LANGUAGE.
15873 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15874
15875 2019-01-10 Tom Tromey <tom@tromey.com>
15876
15877 * psymtab.h (psymtab_storage::obstack): New method.
15878 <m_obstack>: Rename from obstack; now private.
15879 * psymtab.c (psymtab_storage): Update.
15880 * dwarf2read.c (create_addrmap_from_index)
15881 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15882 Update.
15883
15884 2019-01-10 Tom Tromey <tom@tromey.com>
15885
15886 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15887 * objfiles.h (objfile::reset_psymtabs): New method.
15888
15889 2019-01-10 Tom Tromey <tom@tromey.com>
15890
15891 * symmisc.c (print_symbol_bcache_statistics): Update.
15892 (print_objfile_statistics): Update.
15893 * symfile.c (reread_symbols): Update.
15894 * psymtab.h (class psymtab_storage): New.
15895 * psymtab.c (psymtab_storage): New constructor.
15896 (~psymtab_storage): New destructor.
15897 (require_partial_symbols): Update.
15898 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15899 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15900 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15901 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15902 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15903 (start_psymtab_common, end_psymtab_common)
15904 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15905 (allocate_psymtab): Update.
15906 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15907 Update.
15908 (dump_psymtab_addrmap, maintenance_print_psymbols)
15909 (maintenance_check_psymtabs): Update.
15910 (class objfile_psymtabs): Move to objfiles.h.
15911 * psympriv.h (discard_psymtab): Now inline.
15912 (psymtab_discarder::psymtab_discarder): Update.
15913 (psymtab_discarder::~psymtab_discarder): Update.
15914 (ALL_OBJFILE_PSYMTABS): Rewrite.
15915 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15916 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15917 Remove fields.
15918 <partial_symtabs>: New field.
15919 (class objfile_psymtabs): Move from psymtab.h. Update.
15920 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15921 psymbol_cache.
15922 (objfile::~objfile): Don't destroy psymbol_cache.
15923 * mdebugread.c (parse_partial_symbols): Update.
15924 * dwarf2read.c (create_addrmap_from_index)
15925 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15926 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15927 (add_partial_subprogram, dwarf2_ranges_read): Update.
15928 * dwarf-index-write.c (write_address_map)
15929 (write_one_signatured_type, recursively_write_psymbols)
15930 (class debug_names, class debug_names, write_psymtabs_to_index):
15931 Update.
15932
15933 2019-01-10 Tom Tromey <tom@tromey.com>
15934
15935 * symtab.h (SYMBOL_SET_NAMES): Update.
15936 (symbol_set_names): Update.
15937 (MSYMBOL_SET_NAMES): Update.
15938 * symtab.c (symbol_set_names): Change argument to be an
15939 objfile_per_bfd_storage.
15940 * psymtab.c (add_psymbol_to_bcache): Update.
15941 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15942
15943 2019-01-10 Tom Tromey <tom@tromey.com>
15944
15945 * symtab.c (create_demangled_names_hash): Change argument to be an
15946 objfile_per_bfd_storage.
15947 (symbol_set_names): Update.
15948
15949 2019-01-10 Tom Tromey <tom@tromey.com>
15950
15951 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15952 init_psymbol_list.
15953 * psymtab.c (init_psymbol_list): Do nothing if already called.
15954 * psympriv.h (init_psymbol_list): Add comment.
15955 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15956 init_psymbol_list.
15957 * dbxread.c (dbx_symfile_read): Unconditionally call
15958 init_psymbol_list.
15959
15960 2019-01-10 Tom Tromey <tom@tromey.com>
15961
15962 * xcoffread.c (scan_xcoff_symtab): Update.
15963 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15964 "where".
15965 * mdebugread.c (parse_partial_symbols)
15966 (handle_psymbol_enumerators): Update.
15967 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15968 * dbxread.c (read_dbx_symtab): Update.
15969 * psympriv.h (psymbol_placement): New enum.
15970 (add_psymbol_to_list): Update.
15971
15972 2019-01-10 Tom Tromey <tom@tromey.com>
15973
15974 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15975 static_psymbols parameters.
15976 (scan_xcoff_symtab): Update.
15977 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15978 static_psymbols parameters.
15979 * psympriv.h (start_psymtab_common): Update.
15980 * mdebugread.c (parse_partial_symbols): Update.
15981 * dwarf2read.c (create_partial_symtab): Update.
15982 * dbxread.c (read_dbx_symtab): Update.
15983 (start_psymtab): Remove global_psymbols and static_psymbols
15984 parameters.
15985
15986 2019-01-10 Tom Tromey <tom@tromey.com>
15987
15988 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15989 * psymtab.c (allocate_psymtab): Add comment.
15990 * psympriv.h (allocate_psymtab): Add comment.
15991 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15992 initializations.
15993 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15994
15995 2019-01-10 Tom Tromey <tom@tromey.com>
15996
15997 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15998 Don't declare.
15999 * mipsread.c: Include mdebugread.h.
16000 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16001 Declare.
16002 * elfread.c: Include mdebugread.h.
16003
16004 2019-01-09 Tom Tromey <tom@tromey.com>
16005
16006 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16007 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16008 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16009 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16010 (psym_lookup_symbol, psym_find_last_source_symtab)
16011 (psym_forget_cached_source_info, psym_print_stats)
16012 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16013 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16014 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16015 (psym_find_compunit_symtab_by_address)
16016 (maintenance_print_psymbols, maintenance_info_psymtabs)
16017 (maintenance_check_psymtabs): Use ranged for.
16018 * psymtab.h (class objfile_psymtabs): New.
16019 (require_partial_symbols): Return objfile_psymtabs.
16020 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16021
16022 2019-01-09 Tom Tromey <tom@tromey.com>
16023
16024 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16025 (find_pc_mapped_section, list_overlays_command)
16026 (map_overlay_command, unmap_overlay_command)
16027 (simple_overlay_update): Use all_objfiles.
16028 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16029 * printcmd.c (info_symbol_command): Use all_objfiles.
16030 * objfiles.h (ALL_OBJSECTIONS): Remove.
16031 * maint.c (maintenance_translate_address): Use all_objfiles.
16032 * gcore.c (gcore_create_callback): Use all_objfiles.
16033 (objfile_find_memory_regions): Likewise.
16034
16035 2019-01-09 Tom Tromey <tom@tromey.com>
16036
16037 * symtab.c (find_line_symtab, info_sources_command)
16038 (make_source_files_completion_list): Use objfile_compunits.
16039 * source.c (select_source_symtab): Use objfile_compunits.
16040 * objfiles.h (struct objfile): Update comment.
16041 (ALL_OBJFILES): Remove.
16042 (ALL_FILETABS): Remove.
16043 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16044 objfile_compunits.
16045
16046 2019-01-09 Tom Tromey <tom@tromey.com>
16047
16048 * symmisc.c (print_objfile_statistics, dump_objfile)
16049 (maintenance_print_symbols): Use compunit_filetabs.
16050 * source.c (forget_cached_source_info_for_objfile): Use
16051 compunit_filetabs.
16052 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16053 (ALL_FILETABS): Use compunit_filetabs.
16054 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16055 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16056
16057 2019-01-09 Tom Tromey <tom@tromey.com>
16058
16059 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16060 (compunit_filetabs): New.
16061 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16062 compunit_filetabs.
16063 (info_sources_command, make_source_files_completion_list): Remove
16064 declaration.
16065 * symmisc.c (print_objfile_statistics, dump_objfile)
16066 (maintenance_print_symbols): Remove declaration.
16067 (maintenance_info_symtabs): Use compunit_filetabs.
16068 (maintenance_info_line_tables): Likewise.
16069 * source.c (select_source_symtab): Change local variable name.
16070 (forget_cached_source_info_for_objfile): Remove declaration.
16071 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16072 * objfiles.c (objfile_relocate1): Remove declaration.
16073 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16074 declaration.
16075 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16076 * coffread.c (coff_symtab_read): Remove declaration.
16077 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16078 compunit_filetabs.
16079
16080 2019-01-09 Tom Tromey <tom@tromey.com>
16081
16082 * symtab.c (lookup_objfile_from_block)
16083 (find_pc_sect_compunit_symtab, search_symbols)
16084 (default_collect_symbol_completion_matches_break_on): Use
16085 objfile_compunits.
16086 * objfiles.h (ALL_COMPUNITS): Remove.
16087 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16088 * cp-support.c (add_symbol_overload_list_qualified): Use
16089 objfile_compunits.
16090 * ada-lang.c (ada_collect_symbol_completion_matches)
16091 (ada_add_global_exceptions): Use objfile_compunits.
16092
16093 2019-01-09 Tom Tromey <tom@tromey.com>
16094
16095 * source.c (select_source_symtab)
16096 (forget_cached_source_info_for_objfile): Remove declaration.
16097 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16098 declaration.
16099 * maint.c (count_symtabs_and_blocks): Remove declaration.
16100 * cp-support.c (add_symbol_overload_list_qualified): Remove
16101 declaration.
16102 * coffread.c (coff_symtab_read): Remove declaration.
16103 * symtab.c (lookup_symbol_in_objfile_symtabs)
16104 (basic_lookup_transparent_type_1): Use objfile_compunits.
16105 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16106 (info_sources_command, search_symbols)
16107 (default_collect_symbol_completion_matches_break_on)
16108 (make_source_files_completion_list): Remove declaration.
16109 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16110 (ada_collect_symbol_completion_matches)
16111 (ada_add_global_exceptions): Remove declaration.
16112 * linespec.c (iterate_over_all_matching_symtabs): Use
16113 objfile_compunits.
16114 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16115 (class objfile_compunits): New.
16116 (ALL_COMPUNITS): Use objfile_compunits.
16117 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16118 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16119 objfile_compunits.
16120 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16121
16122 2019-01-09 Tom Tromey <tom@tromey.com>
16123
16124 * symtab.c (search_symbols)
16125 (default_collect_symbol_completion_matches_break_on): Use
16126 objfile_msymbols.
16127 * ada-lang.c (ada_lookup_simple_minsym)
16128 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16129 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16130 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16131 objfile_msymbols.
16132 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16133 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16134 * objc-lang.c (find_methods): Use objfile_msymbols.
16135 (info_selectors_command, info_classes_command): Likewise.
16136 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16137 * objfiles.h (class objfile_msymbols): New.
16138 (ALL_OBJFILE_MSYMBOLS): Remove.
16139 (ALL_MSYMBOLS): Remove.
16140
16141 2019-01-09 Tom Tromey <tom@tromey.com>
16142
16143 * common/next-iterator.h (next_adapter): Add Iterator template
16144 parameter.
16145 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16146 (class all_objfiles_safe): New.
16147 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16148 * objfiles.c (put_objfile_before): Update comment.
16149 (add_separate_debug_objfile): Likewise.
16150 (free_all_objfiles): Use all_objfiles_safe.
16151 (objfile_purge_solibs): Likewise.
16152
16153 2019-01-09 Tom Tromey <tom@tromey.com>
16154
16155 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16156 (expand_symtab_containing_pc, lookup_static_symbol)
16157 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16158 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16159 all_objfiles.
16160 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16161 * breakpoint.c (create_overlay_event_breakpoint)
16162 (create_longjmp_master_breakpoint)
16163 (create_std_terminate_master_breakpoint)
16164 (create_exception_master_breakpoint): Use all_objfiles.
16165 * linux-thread-db.c (try_thread_db_load_from_pdir)
16166 (has_libpthread): Use all_objfiles.
16167 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16168 * linespec.c (iterate_over_all_matching_symtabs)
16169 (search_minsyms_for_name): Use all_objfiles.
16170 * maint.c (maintenance_info_sections): Use all_objfiles.
16171 * main.c (captured_main_1): Use all_objfiles.
16172 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16173 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16174 * guile/scm-pretty-print.c
16175 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16176 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16177 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16178 (maintenance_print_msymbols): Use all_objfiles.
16179 * source.c (select_source_symtab): Use all_objfiles.
16180 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16181 * symfile.c (remove_symbol_file_command)
16182 (expand_symtabs_matching, map_symbol_filenames): Use
16183 all_objfiles.
16184 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16185 all_objfiles.
16186 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16187 * objc-lang.c (find_methods): Use all_objfiles.
16188 * objfiles.c (have_partial_symbols, have_full_symbols)
16189 (have_minimal_symbols, qsort_cmp)
16190 (default_iterate_over_objfiles_in_search_order): Use
16191 all_objfiles.
16192 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16193 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16194 (maintenance_check_psymtabs): Use all_objfiles.
16195 (ALL_PSYMTABS): Remove.
16196 * compile/compile-object-run.c (do_module_cleanup): Use
16197 all_objfiles.
16198 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16199 * cp-support.c (add_symbol_overload_list_qualified): Use
16200 all_objfiles.
16201 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16202 Use all_objfiles.
16203 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16204 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16205 all_objfiles.
16206 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16207 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16208 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16209 Uses all_objfiles.
16210 * solib.c (solib_read_symbols): Use all_objfiles
16211
16212 2019-01-09 Tom Tromey <tom@tromey.com>
16213
16214 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16215 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16216 all_objfiles.
16217 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16218 * symmisc.c (print_symbol_bcache_statistics)
16219 (print_objfile_statistics, maintenance_print_objfiles)
16220 (maintenance_info_symtabs, maintenance_check_symtabs)
16221 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16222 all_objfiles.
16223 * source.c (forget_cached_source_info): Use all_objfiles.
16224 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16225 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16226 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16227 * objfiles.c (update_section_map): Use all_objfiles.
16228 (shared_objfile_contains_address_p): Likewise.
16229 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16230 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16231
16232 2019-01-09 Tom Tromey <tom@tromey.com>
16233
16234 * common/next-iterator.h: New file.
16235 * objfiles.h (class all_objfiles): New.
16236 (struct objfile_iterator): New.
16237
16238 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16239
16240 * NEWS: Move the description of the changed "frame", "select-frame",
16241 and "info frame" commands to the Changed commands section.
16242
16243 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16244
16245 * gdbtypes.c (check_stub_method_group): Remove handling of old
16246 mangling schemes.
16247 * linespec.c (find_methods): Likewise.
16248 * stabsread.c (read_member_functions): Likewise.
16249 * valops.c (search_struct_method): Likewise.
16250 (value_struct_elt_for_reference): Likewise.
16251 * NEWS: Mention this change.
16252
16253 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16254
16255 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16256 print_source_lines.
16257 * source.c (print_source_lines_base): Update line number check.
16258 (print_source_lines): New function.
16259 (source_lines_range::source_lines_range): New function.
16260 * source.h (class source_lines_range): New class.
16261 (print_source_lines): New declaration.
16262
16263 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16264
16265 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16266
16267 2019-01-08 Tom Tromey <tom@tromey.com>
16268 Simon Marchi <simon.marchi@ericsson.com>
16269
16270 PR gdb/24060
16271 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16272 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16273 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16274 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16275 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16276 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16277
16278 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16279
16280 * source.c (select_source_symtab): Move header comment to
16281 declaration in source.h.
16282 (forget_cached_source_info_for_objfile): Likewise.
16283 (forget_cached_source_info): Likewise.
16284 (identify_source_line): Likewise.
16285 * source.h (identify_source_line): Move declaration from symtab.h
16286 and add comment from source.c
16287 (print_source_lines): Likewise.
16288 (forget_cached_source_info_for_objfile): Likewise.
16289 (forget_cached_source_info): Likewise.
16290 (select_source_symtab): Likewise.
16291 (enum print_source_lines_flag): Move definition from symtab.h.
16292 * symtab.h (identify_source_line): Move declaration to source.h.
16293 (print_source_lines): Likewise.
16294 (forget_cached_source_info_for_objfile): Likewise.
16295 (forget_cached_source_info): Likewise.
16296 (select_source_symtab): Likewise.
16297 (enum print_source_lines_flag): Move definition to source.h.
16298 * tui/tui-hooks.c: Add 'source.h' include.
16299
16300 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16301
16302 * source.c (print_source_lines_base): Handle requests to print
16303 reverse line number sequences, and guard against empty lines
16304 string.
16305
16306 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16307
16308 * source.c (print_source_lines_base): Fix skip of '\r' if next
16309 character is '\n'.
16310
16311 2019-01-06 Tom Tromey <tom@tromey.com>
16312
16313 * c-exp.y (struct c_parse_state) <macro_original_text,
16314 expansion_obstack>: New member.
16315 (macro_original_text, expansion_obstack): Remove globals.
16316 (scan_macro_expansion, scanning_macro_expansion)
16317 (finished_macro_expansion): Update.
16318 (scan_macro_cleanup): Remove.
16319 (yylex, c_parse): Update.
16320
16321 2019-01-06 Tom Tromey <tom@tromey.com>
16322
16323 * c-exp.y (struct c_parse_state) <strings>: New member.
16324 (operator_stoken): Update.
16325
16326 2019-01-06 Tom Tromey <tom@tromey.com>
16327
16328 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16329 (union type_stack_elt) <typelist_val>: Now a pointer to
16330 std::vector.
16331 (type_stack_cleanup): Don't declare.
16332 (push_typelist): Update.
16333 * parse.c (pop_typelist): Return a std::vector.
16334 (push_typelist): Take a std::vector.
16335 (follow_types): Update. Do not free args.
16336 (type_stack_cleanup): Remove.
16337 * c-exp.y (struct c_parse_state): New.
16338 (cpstate): New global.
16339 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16340 (nonempty_typelist): Update.
16341 (func_mod): Create a new vector.
16342 (c_parse): Create a c_parse_state.
16343 (check_parameter_typelist): Do not delete params.
16344 (function_method): Update. Do not delete type_list.
16345
16346 2019-01-06 Tom Tromey <tom@tromey.com>
16347
16348 PR gdb/28155:
16349 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16350 check_typedef.
16351 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16352 (print_return_value): Likewise.
16353
16354 2019-01-05 Tom Tromey <tom@tromey.com>
16355
16356 * contrib/cleanup_check.py: Remove.
16357 * contrib/gcc-with-excheck: Remove.
16358 * contrib/exsummary.py: Remove.
16359 * contrib/excheck.py: Remove.
16360
16361 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16362
16363 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16364 NULL. Initialize tpprev to NULL instead of assigning it
16365 to NULL on the next statement.
16366 * windows-nat.c (windows_delete_thread): Remove check for
16367 main_thread_id before printing thread exit notifications.
16368 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16369 Remove thread ID check against main_thread_id.
16370 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16371 windows_delete_thread.
16372 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16373
16374 2019-01-04 Tom Tromey <tom@tromey.com>
16375
16376 * compile/compile.c (_initialize_compile): Use upper case for
16377 metasyntactic variables.
16378 * symmisc.c (_initialize_symmisc): Use upper case for
16379 metasyntactic variables.
16380 * psymtab.c (_initialize_psymtab): Use upper case for
16381 metasyntactic variables.
16382 * demangle.c (demangle_command): Use upper case for metasyntactic
16383 variables.
16384 (_initialize_demangler): Likewise.
16385 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16386 variables.
16387
16388 2019-01-03 Tom Tromey <tom@tromey.com>
16389
16390 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16391
16392 2019-01-03 Tom Tromey <tom@tromey.com>
16393
16394 * python/py-symtab.c (salpy_str): Update.
16395 (struct salpy_sal_object) <symtab>: Now a PyObject.
16396 (salpy_dealloc): Update.
16397 (del_objfile_sal): Use gdbpy_ref.
16398
16399 2019-01-03 Tom Tromey <tom@tromey.com>
16400
16401 * python/py-type.c (convert_field): Use new_reference. Return
16402 gdbpy_ref.
16403 (make_fielditem): Return gdbpy_ref.
16404 (typy_fields): Update.
16405 (typy_getitem): Update.
16406 (field_name): Return gdbpy_ref. Use new_reference.
16407 (typy_iterator_iternext): Update.
16408
16409 2019-01-03 Tom Tromey <tom@tromey.com>
16410
16411 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16412
16413 2019-01-03 Tom Tromey <tom@tromey.com>
16414
16415 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16416 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16417 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16418 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16419 (pspy_set_type_printers): Likewise.
16420 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16421 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16422 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16423 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16424 (objfpy_set_type_printers): Likewise.
16425
16426 2019-01-03 Tom Tromey <tom@tromey.com>
16427
16428 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16429 (gdbpy_print_stack): Use gdbpy_err_fetch.
16430 * python/python-internal.h (class gdbpy_err_fetch): New class.
16431 (class gdbpy_enter) <m_error_type, m_error_value,
16432 m_error_traceback>: Remove.
16433 <m_error>: New member.
16434 (gdbpy_exception_to_string): Don't declare.
16435 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16436 * python/py-value.c (convert_value_from_python): Use
16437 gdbpy_err_fetch.
16438 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16439 gdbpy_exception_to_string.
16440 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16441 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16442 gdbpy_err_fetch.
16443
16444 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16445
16446 * linux-nat.c (delete_lwp_cleanup): Delete.
16447 (struct lwp_deleter): New struct.
16448 (lwp_info_up): New typedef.
16449 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16450 lwp_info_up.
16451
16452 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16453
16454 * linux-fork.c (class scoped_switch_fork_info): New class.
16455 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16456
16457 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16458
16459 * valops.c (find_overload_match): Remove use of null_cleanup, and
16460 calls to do_cleanups.
16461
16462 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16463
16464 * compile/compile-cplus-types.c
16465 (compile_cplus_instance::decl_name): Handle changes to
16466 cp_func_name.
16467 * cp-support.c (cp_func_name): Update header comment, update
16468 return type.
16469 * cp-support.h (cp_func_name): Update return type in declaration.
16470 * valops.c (find_overload_match): Move temp_func local to top
16471 level of function and change its type. Use temp_func to hold and
16472 delete temporary string obtained from cp_func_name.
16473
16474 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16475
16476 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16477 gdb::char_vector, remove cleanup, and update uses of `msg`.
16478
16479 2019-01-03 Jim Wilson <jimw@sifive.com>
16480
16481 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16482
16483 2019-01-02 Tom Tromey <tom@tromey.com>
16484
16485 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16486 (tdesc_parse_xml): Remove cleanups.
16487 * target-descriptions.h (make_cleanup_free_target_description):
16488 Don't declare.
16489 (target_desc_deleter): New struct.
16490 (target_desc_up): New typedef.
16491 * target-descriptions.c (target_desc_deleter::operator()): Rename
16492 from free_target_description.
16493 (make_cleanup_free_target_description): Remove.
16494
16495 2019-01-02 Tom Tromey <tom@tromey.com>
16496
16497 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16498 constructor, destructor.
16499 (linespec_parser): Remove typedef.
16500 (~linespec_parser): Rename from linespec_parser_delete.
16501 (linespec_lex_to_end, linespec_complete_label)
16502 (linespec_complete): Update.
16503 (decode_line_full): Remove cleanups.
16504 (decode_line_1): Update.
16505
16506 2019-01-02 Tom Tromey <tom@tromey.com>
16507
16508 * python/python-internal.h (inferior_to_inferior_object): Change
16509 return type.
16510 * python/py-exitedevent.c (create_exited_event_object): Update.
16511 * python/py-inferior.c (inferior_to_inferior_object): Return
16512 gdbpy_ref.
16513 (python_new_inferior, python_inferior_deleted)
16514 (thread_to_thread_object, delete_thread_object)
16515 (build_inferior_list, gdbpy_selected_inferior): Update.
16516 * python/py-infthread.c (create_thread_object): Update. Also fail
16517 if inferior_to_inferior_object fails.
16518
16519 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16520
16521 * inferior.h (class inferior) <displaced_step_state>: New field.
16522 * infrun.h (struct displaced_step_state): Move here from
16523 infrun.c. Initialize fields, add constructor.
16524 <inf>: Remove field.
16525 <reset>: New method.
16526 * infrun.c (struct displaced_step_inferior_state): Move to
16527 infrun.h.
16528 (displaced_step_inferior_states): Remove.
16529 (get_displaced_stepping_state): Adust.
16530 (displaced_step_in_progress_any_inferior): Adjust.
16531 (displaced_step_in_progress_thread): Adjust.
16532 (displaced_step_in_progress): Adjust.
16533 (add_displaced_stepping_state): Remove.
16534 (get_displaced_step_closure_by_addr): Adjust.
16535 (remove_displaced_stepping_state): Remove.
16536 (infrun_inferior_exit): Call displaced_step_state.reset.
16537 (use_displaced_stepping): Don't check for NULL.
16538 (displaced_step_prepare_throw): Call
16539 get_displaced_stepping_state.
16540 (displaced_step_fixup): Don't check for NULL.
16541 (prepare_for_detach): Don't check for NULL.
16542
16543 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16544
16545 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16546 in case of call that did not complete.
16547
16548 2019-01-02 Andrey Utkin <autkin@undo.io>
16549
16550 * symfile.c (find_separate_debug_file): Fix search of debug files for
16551 remote debuggee.
16552
16553 2019-01-02 Tom Tromey <tom@tromey.com>
16554
16555 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16556 indentation.
16557 * python/py-frame.c (frapy_older): Remove cast.
16558 (frapy_newer): Likewise.
16559 * python/py-breakpoint.c (local_setattro): Remove cast.
16560 * python/py-arch.c (archpy_name): Remove local variable.
16561 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16562
16563 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16564
16565 * unittests/basic_string_view/element_access/char/empty.cc:
16566 Fix year range in copyright header.
16567
16568 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16569
16570 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16571 Delete.
16572 <operator==>: Update with for removed field.
16573 <hash>: Likewise.
16574 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16575 <isa_features>: ...this.
16576 <abi_features>: New field.
16577 (riscv_isa_flen): Update comment.
16578 (riscv_abi_xlen): New declaration.
16579 (riscv_abi_flen): New declaration.
16580 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16581 isa_features.
16582 (riscv_abi_xlen): New function.
16583 (riscv_isa_flen): Update to get answer from isa_features.
16584 (riscv_abi_flen): New function.
16585 (riscv_has_fp_abi): Update to get answer from abi_features.
16586 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16587 xlen and flen.
16588 (riscv_call_info) <xlen, flen>: Update comment.
16589 (riscv_call_arg_struct): Remove invalid assertions
16590 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16591 is removed.
16592 (riscv_gdbarch_init): Gather isa features and abi features
16593 separately, ensure both match on the gdbarch when reusing an old
16594 gdbarch. Relax an error check to allow 32-bit abi float to run on
16595 a target with 64-bit float hardware.
16596
16597 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16598
16599 * source.c (search_command_helper): Stop reverse search
16600 when line 1 has been searched.
16601
16602 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16603
16604 * record-full.c (record_full_base_target::close): Rewrite
16605 record_full_core_buf_list free logic.
16606
16607 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16608
16609 * break-catch-syscall.c (print_one_catch_syscall): xfree
16610 the last text.
16611
16612 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16613
16614 * top.c (print_gdb_version): Update Copyright year in version
16615 message.
16616
16617 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16618
16619 Update copyright year range in all GDB files.
16620
16621 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16622
16623 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16624
16625 For older changes see ChangeLog-2018.
16626 \f
16627 Local Variables:
16628 mode: change-log
16629 left-margin: 8
16630 fill-column: 74
16631 version-control: never
16632 coding: utf-8
16633 End:
16634
This page took 0.391733 seconds and 4 git commands to generate.