Make add_separate_debug_objfile static
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-12-12 Tom Tromey <tom@tromey.com>
2
3 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
4 objfile::make.
5 * objfiles.h (struct objjfile) <make>: No longer inline.
6 (add_separate_debug_objfile): Don't declare.
7 * objfiles.c (add_separate_debug_objfile): Now static.
8 (objfile::make): Move from objfiles.h. Call
9 add_separate_debug_objfile. Add "parent" parameter.
10
11 2019-12-12 Tom Tromey <tom@tromey.com>
12
13 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
14 * objfiles.h (struct objfile): Make constructor private.
15 <make>: New static method.
16 * jit.c (jit_object_close_impl): Update.
17
18 2019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
19
20 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
21 gdb::byte_vector.
22
23 2019-12-12 Tom Tromey <tromey@adacore.com>
24
25 * xml-support.c (xml_fetch_content_from_file): Don't call
26 malloc_failure.
27 * utils.h (class gdb_argv): Remove malloc_failure comment.
28 * utils.c (gdb_argv::reset): Don't call malloc_failure.
29
30 2019-12-12 Tom Tromey <tromey@adacore.com>
31
32 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
33 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
34 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
35 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
36 * riscv-ravenscar-thread.c: New file.
37 * riscv-ravenscar-thread.h: New file.
38 * riscv-tdep.c (riscv_gdbarch_init): Call
39 register_riscv_ravenscar_ops.
40
41 2019-12-12 Tom Tromey <tromey@adacore.com>
42
43 * gdbsupport/thread-pool.c (set_thread_name): Use
44 ATTRIBUTE_UNUSED.
45
46 2019-12-12 Luis Machado <luis.machado@linaro.org>
47
48 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
49 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
50 macros.
51
52 2019-12-11 Tom Tromey <tom@tromey.com>
53
54 * tui/tui-win.c (tui_set_win_height_command): Call
55 tui_adjust_window_height.
56 (tui_adjust_win_heights, new_height_ok): Remove.
57 * tui/tui-layout.h (tui_adjust_window_height): Declare.
58 * tui/tui-layout.c (tui_adjust_window_height): New function.
59
60 2019-12-11 Tom Tromey <tom@tromey.com>
61
62 * tui/tui-win.c (tui_resize_all): Remove code, call
63 tui_apply_current_layout.
64
65 2019-12-11 Tom Tromey <tom@tromey.com>
66
67 * tui/tui-layout.h (tui_apply_current_layout): Declare.
68 * tui/tui-layout.c (standard_layouts, applied_layout): New
69 globals.
70 (tui_apply_current_layout): New function.
71 (show_layout): Set applied_layout. Call
72 tui_apply_current_layout.
73 (show_source_command, show_disasm_command)
74 (show_source_disasm_command, show_data)
75 (show_source_or_disasm_and_command): Remove.
76 (initialize_layouts): New function.
77 (_initialize_tui_layout): Call initialize_layouts.
78
79 2019-12-11 Tom Tromey <tom@tromey.com>
80
81 * tui/tui-layout.h (class tui_layout_base)
82 (class tui_layout_window, class tui_layout_split): New.
83 * tui/tui-layout.c (tui_get_window_by_name)
84 (tui_layout_window::clone, tui_layout_window::apply)
85 (tui_layout_window::get_sizes, tui_layout_window::add_split)
86 (tui_layout_split::add_window, tui_layout_split::clone)
87 (tui_layout_split::get_sizes)
88 (tui_layout_split::set_weights_from_heights)
89 (tui_layout_split::adjust_size, tui_layout_split::apply): New
90 functions.
91 (tui_layout_split::add_split, tui_layout_split::add_split)
92 (tui_layout_split::set_weights_from_heights)
93 (tui_layout_split::set_weights_from_heights): New functions.
94
95 2019-12-11 Tom Tromey <tom@tromey.com>
96
97 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
98 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
99 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
100 * tui/tui-data.h (struct tui_point): Remove.
101 (struct tui_gen_win_info) <origin>: Remove.
102 <x, y>: New fields.
103 * tui/tui-command.c (tui_cmd_window::resize): Update.
104
105 2019-12-11 Tom Tromey <tom@tromey.com>
106
107 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
108 Implement.
109 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
110 Implement.
111 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
112 method.
113 (struct tui_win_info) <min_height>: Implement.
114
115 2019-12-11 Tom Tromey <tom@tromey.com>
116
117 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
118 (struct tui_win_info) <can_box>: Update.
119
120 2019-12-11 Tom Tromey <tom@tromey.com>
121
122 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
123 method.
124 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
125 method.
126 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
127 method.
128 (struct tui_win_info) <max_height>: Now override.
129
130 2019-12-11 Joel Brobecker <brobecker@adacore.com>
131
132 * NEWS: Create a new section for the next release branch.
133 Rename the section of the current branch, now that it has
134 been cut.
135
136 2019-12-11 Joel Brobecker <brobecker@adacore.com>
137
138 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
139 * version.in: Bump version to 10.0.50.DATE-git.
140
141 2019-12-11 Tom Tromey <tromey@adacore.com>
142
143 PR build/25268:
144 * gdbsupport/thread-pool.c (set_thread_name): New function.
145 (thread_pool::set_thread_count): Don't call pthread_setname_np.
146 (thread_pool::thread_function): Call set_thread_name.
147
148 2019-12-11 Tom Tromey <tromey@adacore.com>
149
150 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
151 bfd_get_signed_8.
152
153 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
154
155 * NEWS: Document -raw-values option and the related setting commands.
156 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
157 only set it on when /r is given.
158 * valprint.c (value_print_option_defs): New element raw-values.
159 * Makefile.in: Add the new file.
160
161 2019-12-10 Christian Biesinger <cbiesinger@google.com>
162
163 * gdbsupport/safe-strerror.c: Supress the unused function warning
164 for select_strerror_r.
165
166 2019-12-10 Christian Biesinger <cbiesinger@google.com>
167
168 * config.in: Regenerate.
169 * configure: Regenerate.
170 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
171 safe_strerror instead of strerror.
172 * gdbsupport/common.m4: Don't check for strerror.
173 * gdbsupport/safe-strerror.c: Support both the glibc version
174 of strerror_r and the XSI version.
175
176 2019-12-10 Tom Tromey <tromey@adacore.com>
177
178 * ada-typeprint.c (print_choices): Use a single "?".
179 (print_variant_part): Print "?" if the discriminant name
180 is not known.
181
182 2019-12-10 George Barrett <bob@bob131.so>
183
184 Fix scripted probe breakpoints.
185 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
186 declaration forward.
187 (breakpoint_ops_for_event_location_type)
188 (breakpoint_ops_for_event_location): Add function definitions.
189 (break_command_1, trace_command): Use
190 breakpoint_ops_for_event_location.
191 * breakpoint.h (breakpoint_ops_for_event_location): Add function
192 declarations.
193 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
194 breakpoint_ops_for_event_location.
195 * python/py-breakpoint.c (bppy_init): Use
196 breakpoint_ops_for_event_location.
197
198 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
199
200 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
201 when ranking an lvalue argument for an rvalue parameter.
202
203 2019-12-08 Wataru Ashihara <wataash@wataash.com>
204
205 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
206 template argument for scoped_restore_tmpl from bool to int.
207
208 2019-12-07 Keith Seitz <keiths@redhat.com>
209
210 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
211 (build_id_to_debug_bfd): Make static, rewriting to use
212 build_id_to_bfd_suffix.
213 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
214 adding `suffix' parameter. Append SUFFIX to file names
215 when searching for matching files.
216 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
217 (build_id_to_exec_bfd): Likewise.
218 * build-id.h (build_id_to_debug_bfd): Clarify that function
219 searches for BFD of debug info file.
220 (build_id_to_exec_bfd): Declare.
221 * corelow.c: Include build-id.h.
222 (locate_exec_from_corefile_build_id): New function.
223 (core_target_open): If no executable BFD is found,
224 search for a core file BFD using build-id.
225
226 2019-12-06 Christian Biesinger <cbiesinger@google.com>
227
228 * bcache.c: Put in namespace gdb.
229 * bcache.h: Likewise.
230 * gdbtypes.c (check_types_worklist): Update.
231 (types_deeply_equal): Update.
232 * macrotab.c (struct macro_table) <bcache>: Update.
233 (new_macro_table): Update.
234 * macrotab.h (struct bcache): Put this forward declaration
235 inside namespace gdb.
236 (new_macro_table): Update.
237 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
238 Update.
239 <macro_cache>: Update.
240 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
241
242 2019-12-06 Tom de Vries <tdevries@suse.de>
243
244 PR symtab/24971
245 * block.c (best_symbol, better_symbol): New function.
246 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
247 decl.
248
249 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
250
251 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
252 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
253 for ranking see-through reference cases.
254
255 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
256 * stack.c (faas_command): Check a command is provided.
257 * thread.c (taas_command, tfaas_command): Likewise.
258
259 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
260 * inferior.c (prune_inferiors): Only call delete_inferior,
261 Do not modify the inferior list.
262
263 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
264
265 * c-exp.y: Update calls to lookup_typename,
266 lookup_signed_typename and lookup_unsigned_typename.
267 * c-lang.c (evaluate_subexp_c): Likewise.
268 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
269 Likewise.
270 * eval.c (binop_promote): Likewise.
271 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
272 (lookup_unsigned_typename): Likewise.
273 (lookup_signed_typename): Likewise.
274 * gdbtypes.h (lookup_unsigned_typename): Likewise.
275 (lookup_signed_typename): Likewise.
276 (lookup_typename): Likewise.
277 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
278 lookup_typename, lookup_signed_typename,
279 lookup_unsigned_typename.
280 * m2-exp.y: Likewise.
281 * printcmd.c (printf_wide_c_string): Likewise.
282 (ui_printf): Likewise.
283 * python/py-type.c (typy_lookup_typename): Likewise.
284 * python/py-xmethods.c (python_xmethod_worker::invoke):
285 Likewise.
286 * rust-exp.y: Likewise.
287
288 2019-12-04 Christian Biesinger <cbiesinger@google.com>
289
290 * configure.nat (obsd64): Add missing files x86-nat.o and
291 nat/x86-dregs.o.
292
293 2019-12-04 Tom Tromey <tom@tromey.com>
294
295 * valprint.c (val_print_string): Use metadata_style.
296 * go-valprint.c (print_go_string): Use metadata style.
297 * p-valprint.c (pascal_object_print_static_field): Use metadata
298 style.
299 * cp-valprint.c (cp_print_static_field): Use metadata style.
300
301 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
302 Chris January <chris.january@arm.com>
303
304 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
305 tokens.
306 (typebase): New patterns for complex, single/double precision, and
307 single/double complex.
308 (f77_keywords): Change token for complex keyword, and add single,
309 double, and precision keywords.
310
311 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
312
313 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
314 "info io_registers".
315
316 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
317
318 * regcache.c (cooked_read_test): Initialize thread list of
319 mock_inferior.
320
321 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
322
323 * aarch64-linux-tdep.c: Remove includes.
324
325 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
326
327 * aarch64-tdep.c: Remove includes.
328
329 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
330
331 * filtered-iterator.h (filtered_iterator) <operator==,
332 operator!=>: Compare wrapped iterators, not wrapped pointers.
333 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
334 unittests/filtered_iterator-selftests.c.
335 * unittests/filtered_iterator-selftests.c: New file.
336
337 2019-12-04 Tom Tromey <tromey@adacore.com>
338
339 * gdbtypes.c (create_range_type): Inherit endianity
340 from base type.
341
342 2019-12-04 Tom Tromey <tromey@adacore.com>
343
344 * ada-lang.c (decode_constrained_packed_array)
345 (ada_value_assign, value_assign_to_component): Update.
346 * dwarf2loc.c (rw_pieced_value, access_memory)
347 (dwarf2_compile_expr_to_ax): Update.
348 * dwarf2read.c (dwarf2_add_field): Update.
349 * eval.c (evaluate_subexp_standard): Update.
350 * gdbarch.c, gdbarch.h: Rebuild.
351 * gdbarch.sh (bits_big_endian): Remove.
352 * gdbtypes.h (union field_location): Update comment.
353 * target-descriptions.c (make_gdb_type): Update.
354 * valarith.c (value_bit_index): Update.
355 * value.c (struct value) <bitpos>: Update comment.
356 (unpack_bits_as_long, modify_field): Update.
357 * value.h (value_bitpos): Update comment.
358
359 2019-12-04 Tom Tromey <tromey@adacore.com>
360
361 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
362 endian-ness.
363
364 2019-12-04 Tom Tromey <tromey@adacore.com>
365
366 * dwarf2read.c (dwarf2_init_float_type)
367 (dwarf2_init_complex_target_type): Add byte_order parameter.
368 (read_base_type): Compute byte order earlier.
369 * gdbtypes.c (init_float_type): Add byte_order parameter.
370 * gdbtypes.h (init_float_type): Add byte_order parameter.
371
372 2019-12-04 Tom Tromey <tromey@adacore.com>
373
374 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
375
376 2019-12-04 Tom Tromey <tromey@adacore.com>
377
378 * dwarf2read.c (process_structure_scope): Initialize
379 "discr_offset".
380
381 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
382
383 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
384 add it into the search spec.
385 (parse_max_results_option): New function.
386 (mi_info_functions_or_variables): Parse -max-results flag and pass
387 it to mi_symbol_info.
388 (mi_cmd_symbol_info_modules): Likewise.
389 (mi_cmd_symbol_info_types): Likewise.
390 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
391 return type to bool, change result container into a set, and don't
392 add new results if we have enough already.
393 (global_symbol_searcher::add_matching_msymbols): Change return
394 type to bool, and don't add new results if we have enough already.
395 (sort_search_symbols_remove_dups): Delete.
396 (global_symbol_searcher::search): Early exit from search loop when
397 we have enough results. Use a std::set to collect the results
398 from calling add_matching_symbols.
399 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
400 member function.
401 (global_symbol_searcher) <m_max_search_results>: New member
402 variable.
403 (global_symbol_searcher) <add_matching_symbols>: Update header
404 comment and change return type to bool.
405 (global_symbol_searcher) <add_matching_msymbols>: Update header
406 comment and change return type to bool.
407
408 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
409
410 * symtab.c (symbol_search::compare_search_syms): Update header
411 comment.
412 (global_symbol_searcher::is_suitable_msymbol): New function.
413 (global_symbol_searcher::expand_symtabs): New function.
414 (global_symbol_searcher::add_matching_symbols): New function.
415 (global_symbol_searcher::add_matching_msymbols): New function.
416 (global_symbol_searcher::search): Move most of the content
417 into the new functions above, and call them as needed.
418 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
419 function.
420 (global_symbol_searcher) <add_matching_symbols>: New member
421 function.
422 (global_symbol_searcher) <add_matching_msymbols>: New member
423 function.
424 (global_symbol_searcher) <is_suitable_msymbol>: New member
425 function.
426
427 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
428
429 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
430 -symbol-info-module-variables entries.
431 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
432 (mi_cmd_symbol_info_module_variables): Declare.
433 * mi/mi-symbol-cmds.c
434 (module_symbol_search_iterator): New typedef.
435 (output_module_symbols_in_single_module_and_file): New function.
436 (output_module_symbols_in_single_module): New function.
437 (mi_info_module_functions_or_variables): New function.
438 (mi_cmd_symbol_info_module_functions): New function.
439 (mi_cmd_symbol_info_module_variables): New function.
440 * NEWS: Mention new MI command.
441
442 2019-12-03 Christian Biesinger <cbiesinger@google.com>
443
444 * bcache.c (hash): Remove.
445 (hash_continue): Remove.
446 * bcache.h (hash): Remove.
447 (hash_continue): Remove.
448 (struct bcache) <ctor>: Update.
449 * psymtab.c (psymbol_hash): Update.
450 * stabsread.c (hashname): Update.
451 * utils.h (fast_hash): Add an argument for a start value,
452 defaulting to zero.
453
454 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
455 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
456 (destroy_block_symbol_cache): New function.
457 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
458 (resize_symbol_cache): Likewise.
459
460 2019-12-02 Tom Tromey <tom@tromey.com>
461
462 * unittests/tui-selftests.c (run_tests): Make conditional.
463 (_initialize_tui_selftest): Make conditional.
464
465 2019-12-02 Christian Biesinger <cbiesinger@google.com>
466
467 * aix-thread.c (debug_aix_thread): Change type to bool.
468
469 2019-12-02 Luis Machado <luis.machado@linaro.org>
470
471 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
472
473 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
474
475 * dwarf2read.c (read_tag_string_type): Read the fields required to
476 make a dynamic string, and possibly create a dynamic range for the
477 string.
478 (attr_to_dynamic_prop): Setup is_reference based on the type of
479 attribute being processed.
480 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
481 (resolve_dynamic_array): Rename to...
482 (resolve_dynamic_array_or_string): ...this, update header comment,
483 and accept TYPE_CODE_STRING.
484 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
485
486 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
487
488 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
489 of its implementation from...
490 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
491 the new function.
492
493 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
494
495 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
496 create a range with stride where appropriate.
497 * f-valprint.c: Include 'gdbarch.h'.
498 (f77_print_array_1): Take the stride into account when walking the
499 array. Also convert the stride into addressable units.
500 * gdbtypes.c (create_range_type): Initialise the stride to
501 constant zero.
502 (create_range_type_with_stride): New function, initialise the
503 range as normal, and then setup the stride.
504 (has_static_range): Include the stride here. Also change the
505 return type to bool.
506 (create_array_type_with_stride): Consider the range stride if the
507 array isn't given its own stride.
508 (resolve_dynamic_range): Resolve the stride if needed.
509 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
510 (struct range_bounds) <flag_is_byte_stride>: New member variable.
511 (TYPE_BIT_STRIDE): Define.
512 (TYPE_ARRAY_BIT_STRIDE): Define.
513 (create_range_type_with_stride): Declare.
514 * valarith.c (value_subscripted_rvalue): Take range stride into
515 account when walking the array.
516
517 2019-12-01 Tom Tromey <tom@tromey.com>
518
519 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
520 specially.
521
522 2019-12-01 Tom Tromey <tom@tromey.com>
523
524 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
525 \0.
526 * unittests/tui-selftests.c: New file.
527 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
528
529 2019-12-01 Tom Tromey <tom@tromey.com>
530
531 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
532
533 2019-12-01 Tom Tromey <tom@tromey.com>
534
535 * NEWS: Document new settings.
536 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
537 * tui/tui-win.c (_initialize_tui_win): Add border style
538 observers.
539 * tui/tui-io.h (tui_apply_style): Declare.
540 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
541 longer static.
542 (apply_ansi_escape, tui_set_reverse_mode): Update.
543 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
544 Add "skip_intensity" parameter.
545 <changed>: New member.
546 <do_set_value>: Declare.
547 (tui_border_style, tui_active_border_style): Declare.
548 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
549 globals.
550 (cli_style_option): Initialize "changed".
551 (cli_style_option::do_set_value): New function.
552 (cli_style_option::add_setshow_commands): Add "skip_intensity"
553 parameter. Update.
554 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
555 (_initialize_cli_style): Update. Create TUI border style
556 commands.
557
558 2019-12-01 Tom Tromey <tom@tromey.com>
559
560 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
561 parameter.
562 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
563 parameter.
564 * tui/tui-win.h (compact_source): Declare.
565 * tui/tui-win.c (compact_source): New global.
566 (tui_set_compact_source, tui_show_compact_source): New functions.
567 (_initialize_tui_win): Add "compact-source" setting.
568 * tui/tui-source.c (tui_source_window::set_contents): Handle
569 compact_source setting.
570 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
571 * NEWS: Document new setting.
572
573 2019-11-30 Tom Tromey <tom@tromey.com>
574
575 * dwarf2read.c (dwarf2_add_field): Include field offset when
576 computing variant part length.
577
578 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
579 * NEWS: Mention define-prefix. Tell that command names can now
580 contain a . character.
581
582 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
583
584 * command.h (valid_cmd_char_p): Declare.
585 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
586 the check of valid command char.
587 (find_command_name_length, valid_user_defined_cmd_name_p): Use
588 valid_cmd_char_p.
589 * cli/cli-script.c (validate_comname): Likewise.
590 * completer.c (gdb_completer_command_word_break_characters):
591 Do not remove . from the word break char, update comments.
592 (complete_line_internal_1): Use valid_cmd_char_p.
593 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
594 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
595
596 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
597
598 * cli/cli-script.c (do_define_command): Ensure a redefined
599 prefix command is kept as a prefix command.
600 (define_prefix_command): New function.
601 (show_user_1): Report user defined prefixes.
602 (_initialize_cli_script): Create the new 'define-prefix' command.
603 Add completers for 'define' and 'document'.
604 * top.c (execute_command): If command is a user-defined prefix only
605 command, report the list of commands for this prefix command.
606
607 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
608
609 * valops.c (find_oload_champ): Improve debug output.
610
611 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
612
613 * valops.c (find_oload_champ): Print part of debug messages
614 before the badness vector is std::move'd.
615
616 2019-11-28 Tom Tromey <tom@tromey.com>
617
618 * value.c (creal_internal_fn): Fix comment.
619
620 2019-11-28 Tom Tromey <tom@tromey.com>
621
622 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
623 flag_bound_evaluated>: Now unsigned.
624
625 2019-11-28 Tom Tromey <tom@tromey.com>
626
627 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
628 declare.
629
630 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
631
632 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
633 debug output.
634 * jit.c (jit_unregister_code): Add debug print to match
635 `jit_register_code`.
636
637 2019-11-27 Christian Biesinger <cbiesinger@google.com>
638
639 * NEWS: Mention the new multithreaded symbol loading.
640
641 2019-11-27 Christian Biesinger <cbiesinger@google.com>
642
643 * maint.c (n_worker_threads): Default to 0.
644 (worker_threads_disabled): New function.
645 * maint.h (worker_threads_disabled): New function.
646 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
647 here if worker_threads_disabled () is true.
648 (minimal_symbol_reader::install): Skip all threading if
649 worker_threads_disabled () is true.
650
651 2019-11-27 Christian Biesinger <cbiesinger@google.com>
652
653 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
654 hash code if possible.
655 (add_minsym_to_demangled_hash_table): Likewise.
656 (minimal_symbol_reader::install): Compute the hash codes for msymbol
657 on the background thread.
658 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
659 Add these fields.
660
661 2019-11-27 Christian Biesinger <cbiesinger@google.com>
662
663 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
664 of the mangled name on the background thread.
665 * symtab.c (symbol_set_names): Allow passing in the hash of the
666 linkage_name.
667 * symtab.h (symbol_set_names): Likewise.
668
669 2019-11-27 Kevin Buettner <kevinb@redhat.com>
670
671 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
672 physnames are computed for inherited DIEs.
673
674 2019-11-27 Tom Tromey <tromey@adacore.com>
675
676 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
677 backslashes.
678 * cp-support.c: Remove unnecessary backslashes.
679
680 2019-11-27 Christian Biesinger <cbiesinger@google.com>
681
682 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
683 with sym->set_linkage_name.
684 * coffread.c (coff_read_enum_type): Likewise.
685 * mdebugread.c (parse_symbol): Likewise.
686 * stabsread.c (patch_block_stabs): Likewise.
687 (define_symbol): Likewise.
688 (read_enum_type): Likewise.
689 (common_block_end): Likewise.
690 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
691 function.
692 (SYMBOL_SET_LINKAGE_NAME): Remove.
693 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
694 with sym->set_linkage_name.
695
696 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
697
698 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
699 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
700 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
701 * NEWS: Mention new MI command.
702
703 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
704
705 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
706 '-symbol-info-types', and '-symbol-info-variables'.
707 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
708 (mi_cmd_symbol_info_types): Declare.
709 (mi_cmd_symbol_info_variables): Declare.
710 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
711 (output_debug_symbol): New function.
712 (output_nondebug_symbol): New function.
713 (mi_symbol_info): New function.
714 (mi_info_functions_or_variables): New function.
715 (mi_cmd_symbol_info_functions): New function.
716 (mi_cmd_symbol_info_types): New function.
717 (mi_cmd_symbol_info_variables): New function.
718 * NEWS: Mention new commands.
719
720 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
721
722 * symtab.c (symbol_to_info_string): New function, most content
723 moved from print_symbol_info, but updated to return a std::string.
724 (print_symbol_info): Update to use symbol_to_info_string and print
725 returned string.
726 * symtab.h (symbol_to_info_string): Declare new function.
727
728 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
729
730 * python/python.c (gdbpy_rbreak): Convert to using
731 global_symbol_searcher.
732 * symtab.c (file_matches): Convert return type to bool, change
733 file list to std::vector, update header comment.
734 (search_symbols): Rename to...
735 (global_symbol_searcher::search): ...this and update now its
736 a member function of global_symbol_searcher. Take account of the
737 changes to file_matches.
738 (symtab_symbol_info): Convert to using global_symbol_searcher.
739 (rbreak_command): Likewise.
740 (search_module_symbols): Likewise.
741 * symtab.h (enum symbol_search): Update comment.
742 (search_symbols): Remove declaration.
743 (class global_symbol_searcher): New class.
744
745 2019-11-26 Tom Tromey <tromey@adacore.com>
746
747 * cp-support.c (_initialize_cp_support): Conditionally initialize
748 gdb_demangle_attempt_core_dump.
749
750 2019-11-26 Tom Tromey <tom@tromey.com>
751
752 * python/py-function.c (fnpy_init): Update.
753 * value.h (add_internal_function): Adjust declaration.
754 * value.c (function_destroyer): Remove.
755 (do_add_internal_function): Don't set destroyer or copy name.
756 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
757 Set name_allocated.
758 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
759 (cmdpy_init): Set name_allocated.
760 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
761 member.
762 (~cmd_list_element): Free "name" if needed.
763
764 2019-11-26 Tom Tromey <tom@tromey.com>
765
766 * value.h (add_internal_function): Add new overload. Move
767 documentation from value.h.
768 * value.c (do_add_internal_function): New function.
769 (add_internal_function): Use it. Add new overload.
770 (function_destroyer): Don't free doc.
771 * python/py-function.c (fnpy_init): Update.
772
773 2019-11-26 Tom Tromey <tom@tromey.com>
774
775 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
776 (cmdpy_init): Set "doc_allocated".
777
778 2019-11-26 Tom Tromey <tom@tromey.com>
779
780 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
781 name of worker thread.
782 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
783 pthread_setname_np.
784 * configure, config.in: Rebuild.
785
786 2019-11-26 Tom Tromey <tom@tromey.com>
787
788 * python/python.c (class gdbpy_gil): New.
789 (struct gdbpy_event): Add constructor, destructor, operator().
790 (gdbpy_post_event): Use run_on_main_thread.
791 (gdbpy_initialize_events): Remove.
792 (do_start_initialization): Update.
793
794 2019-11-26 Tom Tromey <tom@tromey.com>
795
796 * NEWS: Add entry.
797 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
798 commands. Call update_thread_pool_size.
799 (update_thread_pool_size, maintenance_set_worker_threads): New
800 functions.
801 (n_worker_threads): New global.
802
803 2019-11-26 Christian Biesinger <cbiesinger@google.com>
804 Tom Tromey <tom@tromey.com>
805
806 * minsyms.c (minimal_symbol_reader::install): Use
807 parallel_for_each.
808 * gdbsupport/parallel-for.h: New file.
809 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
810
811 2019-11-26 Christian Biesinger <cbiesinger@google.com>
812 Tom Tromey <tom@tromey.com>
813
814 * gdbsupport/thread-pool.h: New file.
815 * gdbsupport/thread-pool.c: New file.
816 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
817 (HFILES_NO_SRCDIR): Add thread-pool.h.
818
819 2019-11-26 Tom Tromey <tom@tromey.com>
820
821 * event-top.h (thread_local_segv_handler): Declare.
822 * event-top.c (thread_local_segv_handler): New global.
823 (install_handle_sigsegv, handle_sigsegv): New functions.
824 (async_init_signals): Install SIGSEGV handler.
825 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
826 thread-local.
827 (report_failed_demangle): New function.
828 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
829 handler-setting code, instead use segv_handler. Run warning code
830 on main thread.
831
832 2019-11-26 Tom Tromey <tom@tromey.com>
833
834 * run-on-main-thread.c: New file.
835 * run-on-main-thread.h: New file.
836 * unittests/main-thread-selftests.c: New file.
837 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
838 main-thread-selftests.c.
839 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
840 (COMMON_SFILES): Add run-on-main-thread.c.
841
842 2019-11-26 Tom Tromey <tom@tromey.com>
843
844 * main.c (setup_alternate_signal_stack): Remove.
845 (captured_main_1): Use gdb::alternate_signal_stack.
846 * gdbsupport/alt-stack.h: New file.
847
848 2019-11-26 Tom Tromey <tom@tromey.com>
849
850 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
851 Remove comment.
852 (save_original_signals_state, restore_original_signals_state): Use
853 gdb_sigmask.
854 * linux-nat.c (block_child_signals, restore_child_signals_mask)
855 (_initialize_linux_nat): Use gdb_sigmask.
856 * guile/guile.c (_initialize_guile): Use block_signals.
857 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
858 * gdbsupport/gdb-sigmask.h: New file.
859 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
860 * cp-support.c (gdb_demangle): Use gdb_sigmask.
861 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
862 pthread_sigmask.
863 * configure, config.in: Rebuild.
864 * gdbsupport/block-signals.h: New file.
865
866 2019-11-26 Tom Tromey <tom@tromey.com>
867
868 * acinclude.m4: Include ax_pthread.m4.
869 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
870 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
871 (CLIBS): Use PTHREAD_LIBS.
872 (aclocal_m4_deps): Add ax_pthread.m4.
873 * config.in, configure: Rebuild.
874 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
875
876 2019-11-26 Tom Tromey <tom@tromey.com>
877
878 * symtab.h (struct minimal_symbol) <name_set>: New member.
879 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
880 Don't call symbol_set_names.
881 (minimal_symbol_reader::install): Call symbol_set_names.
882
883 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
884
885 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
886 restore_active_ext_lang, as GIL is needed for (indirectly)
887 called PyOS_InterruptOccurred.
888
889 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
890
891 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
892 definition.
893
894 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
895
896 * remote-sim.c (simulator_command): Make static, remove
897 declaration.
898
899 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
900
901 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
902 static.
903 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
904 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
905 (main): Likewise.
906 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
907 (main): Likewise.
908 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
909 (main): Likewise.
910 * unittests/basic_string_view/element_access/char/1.cc (test01):
911 Likewise.
912 (main): Likewise.
913 * unittests/basic_string_view/element_access/char/empty.cc (main):
914 Likewise.
915 * unittests/basic_string_view/element_access/char/front_back.cc
916 (test01): Likewise.
917 (main): Likewise.
918 * unittests/basic_string_view/inserters/char/2.cc (test05):
919 Likewise.
920 (main): Likewise.
921 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
922 (test01): Likewise.
923 (main): Likewise.
924 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
925 (test01): Likewise.
926 (main): Likewise.
927 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
928 Likewise.
929 * unittests/basic_string_view/operations/compare/char/1.cc
930 (test01): Likewise.
931 (main): Likewise.
932 * unittests/basic_string_view/operations/compare/char/13650.cc
933 (test01): Likewise.
934 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
935 Likewise.
936 (main): Likewise.
937 * unittests/basic_string_view/operations/data/char/1.cc (test01):
938 Likewise.
939 (main): Likewise.
940 * unittests/basic_string_view/operations/find/char/1.cc (test01):
941 Likewise.
942 (main): Likewise.
943 * unittests/basic_string_view/operations/find/char/2.cc (test02):
944 Likewise.
945 (main): Likewise.
946 * unittests/basic_string_view/operations/find/char/3.cc (test03):
947 Likewise.
948 (main): Likewise.
949 * unittests/basic_string_view/operations/find/char/4.cc (main):
950 Likewise.
951 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
952 Likewise.
953 (main): Likewise.
954 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
955 Likewise.
956 (main): Likewise.
957 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
958 Likewise.
959 (main): Likewise.
960 * unittests/basic_string_view/operations/substr/char/1.cc
961 (test01): Likewise.
962 (main): Likewise.
963 * unittests/basic_string_view/operators/char/2.cc (main):
964 Likewise.
965 * unittests/optional/assignment/1.cc (test): Likewise.
966 * unittests/optional/assignment/2.cc (test): Likewise.
967 * unittests/optional/assignment/3.cc (test): Likewise.
968 * unittests/optional/assignment/4.cc (test): Likewise.
969 * unittests/optional/assignment/5.cc (test): Likewise.
970 * unittests/optional/assignment/6.cc (test): Likewise.
971 * unittests/optional/assignment/7.cc (test): Likewise.
972 * unittests/optional/cons/copy.cc (test): Likewise.
973 * unittests/optional/cons/default.cc (test): Likewise.
974 * unittests/optional/cons/move.cc (test): Likewise.
975 * unittests/optional/cons/value.cc (test): Likewise.
976 * unittests/optional/in_place.cc (test): Likewise.
977 * unittests/optional/observers/1.cc (test): Likewise.
978 * unittests/optional/observers/2.cc (test): Likewise.
979
980 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
981
982 * tui-win.h (tui_set_var_cmd): Remove.
983 * tui-win.c (tui_set_var_cmd): Make static.
984
985 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
986
987 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
988 rbreak_command_wrapper): Remove.
989 * symtab.c (rbreak_command_wrapper): Remove.
990
991 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
992
993 * inferior.h (info_terminal_command): Remove declaration.
994 * inflow.c (info_terminal_command): Make static.
995
996 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
997
998 * inferior.c (exit_inferior_silent): Remove.
999
1000 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1001
1002 * dictionary.c (dict_empty, mdict_empty): Remove.
1003 * dictionary.c (mdict_empty): Remove.
1004
1005 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1006
1007 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1008 (arc_insn_get_memory_offset): Likewise.
1009 (arc_insn_dump): Likewise.
1010 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1011 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1012 * dictionary.c (dict_iterator_next): Likewise.
1013 (dict_iter_match_first): Likewise.
1014 (dict_iter_match_next): Likewise.
1015 * f-lang.c (evaluate_subexp_f): Likewise.
1016 * hppa-tdep.c (hppa_read_pc): Likewise.
1017 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1018 * parse.c (write_exp_elt_msym): Likewise.
1019 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1020 * remote.c (remote_packet_size): Likewise.
1021 (remote_notif_stop_parse): Likewise.
1022 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1023 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1024 * source.c (prepare_path_for_appending): Likewise.
1025 * sparc64-linux-tdep.c
1026 (sparc64_linux_handle_segmentation_fault); Likewise.
1027 * stack.c (frame_selection_by_function_completer): Likewise.
1028
1029 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1030
1031 * completer.c (set_gdb_completion_word_break_characters):
1032 Remove.
1033
1034 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1035
1036 * dwarf-index-write.c: Include dwarf-index-write.h.
1037 * mi/mi-interp.c: Include mi/mi-interp.h.
1038
1039 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1040
1041 * aarch32-tdep.c: Include aarch32-tdep.h.
1042 * aarch32-tdep.h: Forward-declare struct target_desc.
1043
1044 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1045
1046 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1047 strerror.
1048 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1049 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1050
1051 2019-11-25 Tom de Vries <tdevries@suse.de>
1052
1053 * contrib/words.sh: Add -c option.
1054
1055 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1056
1057 * solib.c (solib_find_1): Change int to bool.
1058 (exec_file_find): Change int to bool.
1059 (solib_find): Change int to bool.
1060 (solib_read_symbols): Change int to bool.
1061 (solib_used): Change int to bool.
1062 (solib_add): Change int to bool.
1063 (info_sharedlibrary_command): Change int to bool.
1064 (solib_contains_address_p): Change int to bool.
1065 (solib_keep_data_in_core): Change int to bool.
1066 (in_solib_dynsym_resolve_code): Change int to bool.
1067 (reload_shared_libraries_1): Change int to bool.
1068 (gdb_sysroot_changed): Change int to bool.
1069 * solib.h (solib_read_symbols): Change int to bool.
1070 (solib_contains_address_p): Change int to bool.
1071 (solib_keep_data_in_core): Change int to bool.
1072 (in_solib_dynsym_resolve_code): Change int to bool.
1073 (libpthread_name_p): Change int to bool.
1074
1075 2019-11-25 Luis Machado <luis.machado@linaro.org>
1076
1077 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1078 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1079 (remote_packet_max_chars): New static global.
1080 (show_remote_packet_max_chars): New function.
1081 (remote_target::putpkt_binary): Adjust to use new
1082 remote_packet_max_chars option.
1083 (remote_target::getpkt_or_notif_sane_1): Likewise.
1084 (_initialize_remote): Register new remote-packet-max-chars option.
1085
1086 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1087
1088 * m68k-linux-nat.c: Include gdbarch.h.
1089
1090 2019-11-24 Tom Tromey <tom@tromey.com>
1091
1092 * symfile.c (read_symbols): Update.
1093 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1094 bool.
1095 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1096 (psym_lookup_symbol, psym_find_last_source_symtab)
1097 (psym_forget_cached_source_info, psym_print_stats)
1098 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1099 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1100 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1101 (psym_find_compunit_symtab_by_address)
1102 (maintenance_print_psymbols, maintenance_info_psymtabs)
1103 (maintenance_check_psymtabs): Update.
1104 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1105 bool.
1106
1107 2019-11-22 Tom Tromey <tom@tromey.com>
1108
1109 * observable.h: Update comments.
1110
1111 2019-11-22 Tom Tromey <tromey@adacore.com>
1112
1113 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1114 (print_ada_task_info): Don't try to fetch thread id if task is not
1115 alive.
1116
1117 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1118
1119 * ada-exp.y: Update.
1120 * ada-lang.c (sort_choices): Update.
1121 (ada_print_symbol_signature): Update.
1122 (resolve_subexp): Update.
1123 (ada_parse_renaming): Update.
1124 (ada_read_renaming_var_value): Update.
1125 (lesseq_defined_than): Update.
1126 (remove_extra_symbols): Update.
1127 (remove_irrelevant_renamings): Update.
1128 (ada_add_block_symbols): Update.
1129 (ada_collect_symbol_completion_matches): Update.
1130 (ada_is_renaming_symbol): Update.
1131 (aggregate_assign_from_choices): Update.
1132 (ada_evaluate_subexp): Update.
1133 (ada_has_this_exception_support): Update.
1134 (ada_is_non_standard_exception_sym): Update.
1135 (ada_add_exceptions_from_frame): Update.
1136 (ada_add_global_exceptions): Update.
1137 (ada_print_subexp): Update.
1138 * ax-gdb.c (gen_var_ref): Update.
1139 (gen_maybe_namespace_elt): Update.
1140 (gen_expr_for_cast): Update.
1141 (gen_expr): Update.
1142 * block.h: Update.
1143 * blockframe.c (find_pc_partial_function): Update.
1144 * breakpoint.c (print_breakpoint_location): Update.
1145 (update_static_tracepoint): Update.
1146 * btrace.c (ftrace_print_function_name): Update.
1147 (ftrace_function_switched): Update.
1148 * buildsym.c (find_symbol_in_list): Update.
1149 * c-exp.y: Update.
1150 * c-typeprint.c (c_print_typedef): Update.
1151 (c_type_print_template_args): Update.
1152 * cli/cli-cmds.c (edit_command): Update.
1153 (list_command): Update.
1154 (print_sal_location): Update.
1155 * coffread.c (patch_opaque_types): Update.
1156 (process_coff_symbol): Update.
1157 (coff_read_enum_type): Update.
1158 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1159 (convert_one_symbol): Update.
1160 (hash_symname): Update.
1161 (eq_symname): Update.
1162 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1163 * compile/compile-cplus-types.c (debug_print_scope): Update.
1164 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1165 * compile/compile-object-load.c (get_out_value_type): Update.
1166 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1167 (search_symbol_list): Update.
1168 (cp_lookup_symbol_imports_or_template): Update.
1169 * cp-support.c (overload_list_add_symbol): Update.
1170 * ctfread.c (psymtab_to_symtab): Update.
1171 * dbxread.c (cp_set_block_scope): Update.
1172 * dictionary.c (iter_match_first_hashed): Update.
1173 (iter_match_next_hashed): Update.
1174 (insert_symbol_hashed): Update.
1175 (iter_match_next_linear): Update.
1176 * dictionary.h: Update.
1177 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1178 (locexpr_describe_location_piece): Update.
1179 (locexpr_describe_location_1): Update.
1180 (locexpr_generate_c_location): Update.
1181 (loclist_describe_location): Update.
1182 (loclist_generate_c_location): Update.
1183 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1184 (read_func_scope): Update.
1185 (process_enumeration_scope): Update.
1186 (new_symbol): Update.
1187 (dwarf2_const_value): Update.
1188 (dwarf2_symbol_mark_computed): Update.
1189 * eval.c (evaluate_funcall): Update.
1190 (evaluate_subexp_standard): Update.
1191 * expprint.c (print_subexp_standard): Update.
1192 (dump_subexp_body_standard): Update.
1193 * f-valprint.c (info_common_command_for_block): Update.
1194 * findvar.c (get_hosting_frame): Update.
1195 (default_read_var_value): Update.
1196 * go-lang.c (go_symbol_package_name): Update.
1197 * guile/scm-block.c (bkscm_print_block_smob): Update.
1198 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1199 (gdbscm_symbol_name): Update.
1200 (gdbscm_symbol_linkage_name): Update.
1201 (gdbscm_symbol_print_name): Update.
1202 * infcall.c (get_function_name): Update.
1203 * infcmd.c (jump_command): Update.
1204 (finish_command): Update.
1205 * infrun.c (insert_exception_resume_breakpoint): Update.
1206 * linespec.c (canonicalize_linespec): Update.
1207 (create_sals_line_offset): Update.
1208 (convert_linespec_to_sals): Update.
1209 (complete_label): Update.
1210 (find_label_symbols_in_block): Update.
1211 * m2-typeprint.c (m2_print_typedef): Update.
1212 * mdebugread.c (mdebug_reg_to_regnum): Update.
1213 (parse_symbol): Update.
1214 (mylookup_symbol): Update.
1215 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1216 (list_args_or_locals): Update.
1217 * objc-lang.c (compare_selectors): Update.
1218 (info_selectors_command): Update.
1219 (compare_classes): Update.
1220 (info_classes_command): Update.
1221 (find_imps): Update.
1222 * p-typeprint.c (pascal_print_typedef): Update.
1223 * printcmd.c (build_address_symbolic): Update.
1224 (info_address_command): Update.
1225 (print_variable_and_value): Update.
1226 * python/py-framefilter.c (extract_sym): Update.
1227 (py_print_single_arg): Update.
1228 * python/py-symbol.c (sympy_str): Update.
1229 (sympy_get_name): Update.
1230 (sympy_get_linkage_name): Update.
1231 * python/python.c (gdbpy_rbreak): Update.
1232 * record-btrace.c (btrace_get_bfun_name): Update.
1233 (btrace_call_history): Update.
1234 * rust-lang.c (rust_print_typedef): Update.
1235 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1236 * stabsread.c (stab_reg_to_regnum): Update.
1237 (define_symbol): Update.
1238 (read_enum_type): Update.
1239 (common_block_end): Update.
1240 (cleanup_undefined_types_1): Update.
1241 (scan_file_globals): Update.
1242 * stack.c (print_frame_arg): Update.
1243 (print_frame_args): Update.
1244 (find_frame_funname): Update.
1245 (info_frame_command_core): Update.
1246 (iterate_over_block_locals): Update.
1247 (print_block_frame_labels): Update.
1248 (do_print_variable_and_value): Update.
1249 (iterate_over_block_arg_vars): Update.
1250 (return_command): Update.
1251 * symmisc.c (dump_symtab_1): Update.
1252 (print_symbol): Update.
1253 * symtab.c (eq_symbol_entry): Update.
1254 (symbol_cache_dump): Update.
1255 (lookup_language_this): Update.
1256 (find_pc_sect_line): Update.
1257 (skip_prologue_sal): Update.
1258 (symbol_search::compare_search_syms): Update.
1259 (treg_matches_sym_type_name): Update.
1260 (search_symbols): Update.
1261 (print_symbol_info): Update.
1262 (rbreak_command): Update.
1263 (completion_list_add_symbol): Update.
1264 (find_gnu_ifunc): Update.
1265 (get_symbol_address): Update.
1266 (search_module_symbols): Update.
1267 (info_module_subcommand): Update.
1268 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1269 (SYMBOL_LINKAGE_NAME): Remove.
1270 (SYMBOL_DEMANGLED_NAME): Remove.
1271 (SYMBOL_PRINT_NAME): Remove.
1272 (SYMBOL_SEARCH_NAME): Remove.
1273 * tracepoint.c (set_traceframe_context): Update.
1274 (validate_actionline): Update.
1275 (collection_list::collect_symbol): Update.
1276 (encode_actions_1): Update.
1277 (info_scope_command): Update.
1278 (print_one_static_tracepoint_marker): Update.
1279 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1280 * valops.c (address_of_variable): Update.
1281 (find_overload_match): Update.
1282 (find_oload_champ): Update.
1283
1284 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1285
1286 * ada-lang.c (ada_lookup_simple_minsym): Update.
1287 (ada_collect_symbol_completion_matches): Update.
1288 * ada-tasks.c (read_atcb): Update.
1289 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1290 (amd64_windows_skip_trampoline_code): Update.
1291 * arm-tdep.c (skip_prologue_function): Update.
1292 (arm_skip_stack_protector): Update.
1293 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1294 (arm_wince_skip_main_prologue): Update.
1295 * ax-gdb.c (gen_expr): Update.
1296 * block.c (call_site_for_pc): Update.
1297 * blockframe.c (find_pc_partial_function): Update.
1298 * breakpoint.c (set_breakpoint_location_function): Update.
1299 * btrace.c (ftrace_print_function_name): Update.
1300 (ftrace_function_switched): Update.
1301 * c-valprint.c (print_unpacked_pointer): Update.
1302 * coffread.c (coff_symfile_read): Update.
1303 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1304 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1305 * dwarf-index-write.c (write_psymbols): Update.
1306 * dwarf2loc.c (call_site_to_target_addr): Update.
1307 (func_verify_no_selftailcall): Update.
1308 (tailcall_dump): Update.
1309 (call_site_find_chain_1): Update.
1310 (dwarf_expr_reg_to_entry_parameter): Update.
1311 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1312 * eval.c (evaluate_funcall): Update.
1313 (evaluate_subexp_standard): Update.
1314 (evaluate_subexp_for_sizeof): Update.
1315 * expprint.c (print_subexp_standard): Update.
1316 (dump_subexp_body_standard): Update.
1317 * frame.c (get_prev_frame_always_1): Update.
1318 * frv-tdep.c (frv_skip_main_prologue): Update.
1319 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1320 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1321 (gnuv3_get_typename_from_type_info): Update.
1322 (gnuv3_skip_trampoline): Update.
1323 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1324 * i386-tdep.c (i386_skip_main_prologue): Update.
1325 (i386_pe_skip_trampoline_code): Update.
1326 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1327 * infcall.c (get_function_name): Update.
1328 * linespec.c (minsym_found): Update.
1329 * linux-fork.c (info_checkpoints_command): Update.
1330 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1331 (m32c_m16c_pointer_to_address): Update.
1332 * maint.c (maintenance_translate_address): Update.
1333 * minsyms.c (add_minsym_to_hash_table): Update.
1334 (add_minsym_to_demangled_hash_table): Update.
1335 (lookup_minimal_symbol_mangled): Update.
1336 (lookup_minimal_symbol_demangled): Update.
1337 (lookup_minimal_symbol_linkage): Update.
1338 (lookup_minimal_symbol_text): Update.
1339 (lookup_minimal_symbol_by_pc_name): Update.
1340 (minimal_symbol_is_less_than): Update.
1341 (compact_minimal_symbols): Update.
1342 (build_minimal_symbol_hash_tables): Update.
1343 (find_solib_trampoline_target): Update.
1344 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1345 (mips_skip_pic_trampoline_code): Update.
1346 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1347 * objc-lang.c (info_selectors_command): Update.
1348 (info_classes_command): Update.
1349 (find_methods): Update.
1350 (find_imps): Update.
1351 * p-valprint.c (pascal_val_print): Update.
1352 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1353 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1354 * printcmd.c (build_address_symbolic): Update.
1355 (info_symbol_command): Update.
1356 * psymtab.c (psymbol_name_matches): Update.
1357 (match_partial_symbol): Update.
1358 (lookup_partial_symbol): Update.
1359 (print_partial_symbols): Update.
1360 (sort_pst_symbols): Update.
1361 (maintenance_check_psymtabs): Update.
1362 * python/py-framefilter.c (py_print_frame): Update.
1363 * python/python.c (gdbpy_rbreak): Update.
1364 * record-btrace.c (btrace_get_bfun_name): Update.
1365 (btrace_call_history): Update.
1366 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1367 (rs6000_skip_trampoline_code): Update.
1368 * sol-thread.c (info_cb): Update.
1369 * stabsread.c (scan_file_globals): Update.
1370 * stack.c (find_frame_funname): Update.
1371 (info_frame_command_core): Update.
1372 * symmisc.c (dump_msymbols): Update.
1373 * symtab.c (symbol_natural_name): Rename to..,
1374 (general_symbol_info::natural_name): ...this.
1375 (symbol_demangled_name): Rename to...
1376 (general_symbol_info::demangled_name): ...this.
1377 (symbol_search_name): Rename to...
1378 (general_symbol_info::search_name): ...this.
1379 (symbol_matches_search_name): Update.
1380 (find_pc_sect_line): Update.
1381 (skip_prologue_sal): Update.
1382 (search_symbols): Update.
1383 (print_msymbol_info): Update.
1384 (rbreak_command): Update.
1385 (completion_list_add_msymbol): Update.
1386 (completion_list_objc_symbol): Update.
1387 (get_msymbol_address): Update.
1388 * symtab.h (struct general_symbol_info): Add member functions
1389 natural_name (), linkage_name (), print_name (), demangled_name (),
1390 and search_name ().
1391 (SYMBOL_NATURAL_NAME): Update.
1392 (symbol_natural_name): Move to a member function on general_symbol_info.
1393 (SYMBOL_DEMANGLED_NAME): Update.
1394 (symbol_demangled_name): Move to a member function on
1395 general_symbol_info.
1396 (SYMBOL_SEARCH_NAME): Update.
1397 (symbol_search_name): Move to a member function on general_symbol_info.
1398 (MSYMBOL_NATURAL_NAME): Remove.
1399 (MSYMBOL_LINKAGE_NAME): Remove.
1400 (MSYMBOL_PRINT_NAME): Remove.
1401 (MSYMBOL_DEMANGLED_NAME): Remove.
1402 (MSYMBOL_SEARCH_NAME): Remove.
1403 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1404
1405 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1406
1407 * symtab.c (create_demangled_names_hash): Use per_bfd->
1408 minimal_symbol_count for computing the initial size, if greater
1409 than our default size.
1410
1411 2019-11-22 Tom de Vries <tdevries@suse.de>
1412
1413 * contrib/words.sh: Improve words extraction.
1414
1415 2019-11-22 Tom de Vries <tdevries@suse.de>
1416
1417 * contrib/words.sh: Combine sed invocations.
1418
1419 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1420
1421 * Makefile.in: Update.
1422 * demangle.c: Rename to...
1423 * gdb-demangle.c: ..this.
1424 (is_cplus_marker): Change return type to bool.
1425 (_initialize_demangler): Rename to...
1426 (_initialize_gdb_demangle): ...this.
1427 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1428 * symtab.h (demangle): Remove declaration; instead include
1429 gdb-demangle.h.
1430
1431 2019-11-21 Tom Tromey <tromey@adacore.com>
1432
1433 * gdbsupport/format.c (format_pieces): Parse %I64d.
1434 * unittests/format_pieces-selftests.c (test_windows_formats): New
1435 function.
1436 (run_tests): Call it.
1437
1438 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1439
1440 Byte reverse display of variables with DW_END_big, DW_END_little
1441 (DW_AT_endianity) dwarf attributes if different than the native
1442 byte order.
1443 * ada-lang.c (ada_value_binop):
1444 Use type_byte_order instead of gdbarch_byte_order.
1445 * ada-valprint.c (printstr):
1446 (ada_val_print_string):
1447 * ada-lang.c (value_pointer):
1448 (ada_value_binop):
1449 Use type_byte_order instead of gdbarch_byte_order.
1450 * c-lang.c (c_get_string):
1451 Use type_byte_order instead of gdbarch_byte_order.
1452 * c-valprint.c (c_val_print_array):
1453 Use type_byte_order instead of gdbarch_byte_order.
1454 * cp-valprint.c (cp_print_class_member):
1455 Use type_byte_order instead of gdbarch_byte_order.
1456 * dwarf2loc.c (rw_pieced_value):
1457 Use type_byte_order instead of gdbarch_byte_order.
1458 * dwarf2read.c (read_base_type): Handle DW_END_big,
1459 DW_END_little
1460 * f-lang.c (f_get_encoding):
1461 Use type_byte_order instead of gdbarch_byte_order.
1462 * findvar.c (default_read_var_value):
1463 Use type_byte_order instead of gdbarch_byte_order.
1464 * gdbtypes.c (check_types_equal):
1465 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1466 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1467 and TYPE_ENDIANITY_LITTLE if set.
1468 (type_byte_order): new function.
1469 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1470 (struct main_type) <flag_endianity_not_default>:
1471 New field.
1472 (type_byte_order): New function.
1473 * infcmd.c (default_print_one_register_info):
1474 Use type_byte_order instead of gdbarch_byte_order.
1475 * p-lang.c (pascal_printstr):
1476 Use type_byte_order instead of gdbarch_byte_order.
1477 * p-valprint.c (pascal_val_print):
1478 Use type_byte_order instead of gdbarch_byte_order.
1479 * printcmd.c (print_scalar_formatted):
1480 Use type_byte_order instead of gdbarch_byte_order.
1481 * solib-darwin.c (darwin_current_sos):
1482 Use type_byte_order instead of gdbarch_byte_order.
1483 * solib-svr4.c (solib_svr4_r_ldsomap):
1484 Use type_byte_order instead of gdbarch_byte_order.
1485 * stap-probe.c (stap_modify_semaphore):
1486 Use type_byte_order instead of gdbarch_byte_order.
1487 * target-float.c (target_float_same_format_p):
1488 Use type_byte_order instead of gdbarch_byte_order.
1489 * valarith.c (scalar_binop):
1490 (value_bit_index):
1491 Use type_byte_order instead of gdbarch_byte_order.
1492 * valops.c (value_cast):
1493 Use type_byte_order instead of gdbarch_byte_order.
1494 * valprint.c (generic_emit_char):
1495 (generic_printstr):
1496 (val_print_string):
1497 Use type_byte_order instead of gdbarch_byte_order.
1498 * value.c (unpack_long):
1499 (unpack_bits_as_long):
1500 (unpack_value_bitfield):
1501 (modify_field):
1502 (pack_long):
1503 (pack_unsigned_long):
1504 Use type_byte_order instead of gdbarch_byte_order.
1505 * findvar.c (unsigned_pointer_to_address):
1506 (signed_pointer_to_address):
1507 (unsigned_address_to_pointer):
1508 (address_to_signed_pointer):
1509 (default_read_var_value):
1510 (default_value_from_register):
1511 Use type_byte_order instead of gdbarch_byte_order.
1512 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1513 Use type_byte_order instead of gdbarch_byte_order.
1514 * riscv-tdep.c (riscv_print_one_register_info):
1515 Use type_byte_order instead of gdbarch_byte_order.
1516
1517 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1518
1519 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1520 (current_ui_gdb_stdin_ptr): Likewise.
1521 (current_ui_gdb_stderr_ptr): Likewise.
1522 (current_ui_gdb_stdlog_ptr): Likewise.
1523 (current_ui_current_uiout_ptr): Likewise.
1524 (gen_ret_current_ui_field_ptr): Remove.
1525
1526 2019-11-21 Tom de Vries <tdevries@suse.de>
1527
1528 PR gdb/24956
1529 * cli/cli-script.c (execute_control_command): Only switch to
1530 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1531
1532 2019-11-19 Tom Tromey <tom@tromey.com>
1533
1534 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1535 Now static. Change type of "name".
1536 (tui_set_win_height_command): Don't copy "arg".
1537 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1538 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1539
1540 2019-11-19 Ali Tamur <tamur@google.com>
1541
1542 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1543 "if (attr != nullptr)".
1544 (dwarf2_find_base_address): Likewise.
1545 (dwarf2_build_include_psymtabs): Likewise.
1546 (read_cutu_die_from_dwo): Likewise.
1547 (read_func_scope): Likewise.
1548 (read_call_site_scope): Likewise.
1549 (dwarf2_get_pc_bounds): Likewise.
1550 (dwarf2_record_block_ranges): Likewise.
1551 (dwarf2_add_field): Likewise.
1552 (dwarf2_add_member_fn): Likewise.
1553 (read_structure_type): Likewise.
1554 (read_enumeration_type): Likewise.
1555 (read_array_type): Likewise.
1556 (read_array_order): Likewise.
1557 (read_set_type): Likewise.
1558 (read_common_block): Likewise.
1559 (read_tag_reference_type): Likewise.
1560 (read_tag_string_type): Likewise.
1561 (read_subroutine_type): Likewise.
1562 (read_base_type): Likewise.
1563 (read_subrange_type): Likewise.
1564 (new_symbol): Likewise.
1565 (prepare_one_comp_unit): Likewise.
1566
1567 2019-11-19 Tom Tromey <tromey@adacore.com>
1568
1569 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1570 result in error when DebugActiveProcess fails.
1571
1572 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1573 Pedro Alves <palves@redhat.com>
1574
1575 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1576 * target.c (target_stack::push): Call 'unpush' if there's a
1577 target on top of the stack.
1578
1579 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1580
1581 * python/py-block.c (blpy_dealloc): Call tp_free.
1582 (blpy_block_syms_dealloc): Likewise.
1583 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1584 * python/py-inferior.c (infpy_dealloc): Likewise.
1585 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1586 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1587 * python/py-symbol.c (sympy_dealloc): Likewise.
1588 * python/py-symtab.c (stpy_dealloc): Likewise.
1589 * python/py-type.c (typy_iterator_dealloc): Likewise.
1590
1591 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1592
1593 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1594 constructor instead of using a class initializer.
1595
1596 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1597
1598 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1599 * configure: Regenerate.
1600 * configure.ac: Don't source common.host.
1601 * gdbsupport/common.host: Remove.
1602 * gdbsupport/mingw-strerror.c: Remove.
1603 * gdbsupport/posix-strerror.c: Rename to...
1604 * gdbsupport/safe-strerror.c: ...this.
1605
1606 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1607
1608 * maint.c (scoped_command_stats::print_time): Use localtime_r
1609 instead of localtime (provided through gnulib if necessary).
1610 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1611 of ctime.
1612
1613 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1614
1615 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1616 avoid compile errors.
1617
1618 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1619
1620 * config.in: Regenerate.
1621 * configure: Regenerate.
1622 * gdbsupport/common.m4: No longer check for strerror_r.
1623 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1624 POSIX version of strerror_r, now that gnulib provides it if
1625 necessary.
1626
1627 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1628
1629 * README (`configure' options): Update.
1630
1631 2019-11-14 Tom Tromey <tromey@adacore.com>
1632
1633 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1634 expected type for the RHS if the LHS is a convenience variable.
1635
1636 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1637
1638 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1639 Provide explicit default and copy constructor.
1640
1641 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1642
1643 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1644 only call Py_INCREF (newbp) in the bppy_pending_object case.
1645
1646 2019-11-13 Tom Tromey <tromey@adacore.com>
1647
1648 PR build/25182:
1649 * psympriv.h (partial_symbol): Remove static assert.
1650 * symtab.h (general_symbol_info, symbol): Remove static assert.
1651
1652 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1653
1654 * gdbsupport/format.c (format_pieces::format_pieces): Support
1655 printf 'z' size modifier.
1656 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1657 * printcmd.c (ui_printf): Handle size_t_arg.
1658 * ui-out.c (ui_out::vmessage): Likewise.
1659 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1660 function.
1661 (run_tests): Call test_format_int_sizes.
1662
1663 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1664
1665 * ada-exp.y (write_ambiguous_var): Update.
1666 * buildsym.c (add_symbol_to_list): Update.
1667 * dwarf2read.c (read_variable): Update.
1668 (new_symbol): Update.
1669 * jit.c (finalize_symtab): Update.
1670 * language.c (language_alloc_type_symbol): Update.
1671 * symtab.c (fixup_symbol_section): Update.
1672 (initialize_objfile_symbol_1): Move code to...
1673 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1674 (allocate_symbol): Update.
1675 (allocate_template_symbol): Update.
1676 (get_symbol_address): Update.
1677 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1678 of having as a field, and add a constructor.
1679 (SYMBOL_VALUE): Update.
1680 (SYMBOL_VALUE_ADDRESS): Update.
1681 (SET_SYMBOL_VALUE_ADDRESS): Update.
1682 (SYMBOL_VALUE_BYTES): Update.
1683 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1684 (SYMBOL_BLOCK_VALUE): Update.
1685 (SYMBOL_VALUE_CHAIN): Update.
1686 (SYMBOL_LANGUAGE): Update.
1687 (SYMBOL_SECTION): Update.
1688 (SYMBOL_OBJ_SECTION): Update.
1689 (SYMBOL_SET_LANGUAGE): Update.
1690 (SYMBOL_SET_LINKAGE_NAME): Update.
1691 (SYMBOL_SET_NAMES): Update.
1692 (SYMBOL_NATURAL_NAME): Update.
1693 (SYMBOL_LINKAGE_NAME): Update.
1694 (SYMBOL_DEMANGLED_NAME): Update.
1695 (SYMBOL_SEARCH_NAME): Update.
1696 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1697 (struct symbol): Update.
1698 (struct template_symbol): Update.
1699 (struct rust_vtable_symbol): Update.
1700 * xcoffread.c (SYMBOL_DUP): Update.
1701
1702 2019-11-12 Tom Tromey <tom@tromey.com>
1703
1704 * tui/tui-layout.c (show_layout): Set current_layout.
1705 (show_source_disasm_command, show_data)
1706 (show_source_or_disasm_and_command): Don't set current_layout.
1707
1708 2019-11-12 Tom Tromey <tom@tromey.com>
1709
1710 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1711
1712 2019-11-12 Tom Tromey <tom@tromey.com>
1713
1714 * tui/tui-win.c (resize_message): New global.
1715 (show_tui_resize_message): New function.
1716 (tui_async_resize_screen): Print message if requested.
1717 (_initialize_tui_win): Add tui-resize-message setting.
1718 * NEWS: Add entry for new commands.
1719
1720 2019-11-11 Tom Tromey <tom@tromey.com>
1721
1722 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1723 functions.
1724
1725 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1726
1727 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1728
1729 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1730
1731 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1732 function.
1733 * python/python-internal.h (gdbpy_lookup_static_symbols):
1734 Declare new function.
1735 * python/python.c (python_GdbMethods): Add
1736 gdb.lookup_static_symbols method.
1737 * NEWS: Mention gdb.lookup_static_symbols.
1738
1739 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1740
1741 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1742 static block of current object file first. Also fix typo in
1743 header comment.
1744
1745 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1746
1747 * stack.c (set_last_displayed_sal): Delete.
1748 (last_displayed_sal_valid): Delete.
1749 (last_displayed_pspace): Delete.
1750 (last_displayed_addr): Delete.
1751 (last_displayed_symtab): Delete.
1752 (last_displayed_line): Delete.
1753 (class last_displayed_symtab_info_type): New.
1754 (last_displayed_symtab_info): New static global variable.
1755 (print_frame_info): Call methods on last_displayed_symtab_info.
1756 (clear_last_displayed_sal): Update header comment, and make use of
1757 last_displayed_symtab_info.
1758 (last_displayed_sal_is_valid): Likewise.
1759 (get_last_displayed_pspace): Likewise.
1760 (get_last_displayed_addr): Likewise.
1761 (get_last_displayed_symtab): Likewise.
1762 (get_last_displayed_line): Likewise.
1763 (get_last_displayed_sal): Likewise.
1764 * stack.h (clear_last_displayed_sal): Update header comment.
1765 (last_displayed_sal_is_valid): Likewise.
1766 (get_last_displayed_pspace): Likewise.
1767 (get_last_displayed_addr): Likewise.
1768 (get_last_displayed_symtab): Likewise.
1769 (get_last_displayed_line): Likewise.
1770 (get_last_displayed_sal): Likewise.
1771
1772 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1773
1774 * stack.c (frame_show_address): Convert return type to bool.
1775 * stack.h (frame_show_address): Likewise, and update header
1776 comment.
1777
1778 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1779
1780 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1781 * unittests/vec-utils-selftests.c: New file.
1782 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1783
1784 2019-11-10 Tom Tromey <tom@tromey.com>
1785
1786 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1787 (tui_highlight_win): Likewise.
1788 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1789 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1790 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1791 Don't set can_highlight.
1792
1793 2019-11-10 Tom Tromey <tom@tromey.com>
1794
1795 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1796 Remove unused declaration.
1797
1798 2019-11-08 Tom Tromey <tromey@adacore.com>
1799
1800 * top.c (read_command_file): Update.
1801 (command_line_input): Make return type const.
1802 * python/py-gdb-readline.c: Update.
1803 * linespec.c (decode_line_2): Update.
1804 * defs.h (command_line_input): Make return type const.
1805 * cli/cli-script.c (read_next_line): Make return type const.
1806 * ada-lang.c (get_selections): Update.
1807
1808 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1809
1810 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1811 * mi/mi-main.c (output_cores): Likewise.
1812 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1813 (linux_xfer_osdata_modules): Likewise.
1814 * remote.c (register_remote_support_xml): Likewise.
1815 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1816 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1817
1818 2019-11-06 Tom Tromey <tom@tromey.com>
1819
1820 * tui/tui-interp.c: Don't include readline.h.
1821 * tui/tui-hooks.c: Don't include readline.h.
1822 * symmisc.c: Include tilde.h, not readline.h.
1823 * symfile.c: Include tilde.h, not readline.h.
1824 * source.c: Include tilde.h, not readline.h.
1825 * solib.c: Include tilde.h, not readline.h.
1826 * psymtab.c: Include tilde.h, not readline.h.
1827 * exec.c: Include tilde.h, not readline.h.
1828 * corelow.c: Include tilde.h, not readline.h.
1829 * cli/cli-dump.c: Include tilde.h, not readline.h.
1830 * cli/cli-cmds.c: Don't include readline.h.
1831
1832 2019-11-05 Tom Tromey <tom@tromey.com>
1833
1834 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1835 (tui_disassemble): Set addr_size.
1836 (tui_disasm_window::set_contents): Use addr_size.
1837
1838 2019-11-05 Tom Tromey <tom@tromey.com>
1839
1840 * rust-lang.c (rust_language_defn): Update.
1841 * python/py-value.c (valpy_string): Call c_get_string.
1842 * p-lang.c (pascal_language_defn): Update.
1843 * opencl-lang.c (opencl_language_defn): Update.
1844 * objc-lang.c (objc_language_defn): Update.
1845 * m2-lang.c (m2_language_defn): Update.
1846 * language.c (unknown_language_defn, auto_language_defn): Update.
1847 (default_get_string): Remove.
1848 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1849 * go-lang.c (go_language_defn): Update.
1850 * f-lang.c (f_language_defn): Update.
1851 * d-lang.c (d_language_defn): Update.
1852 * c-lang.c (c_language_defn, cplus_language_defn)
1853 (asm_language_defn, minimal_language_defn): Update.
1854 * ada-lang.c (ada_language_defn): Update.
1855 * language.h (struct language_defn) <la_get_string>: Remove.
1856 (LA_GET_STRING): Remove.
1857 (default_get_string): Don't declare.
1858
1859 2019-11-05 Tom Tromey <tom@tromey.com>
1860
1861 * tui/tui-source.h (struct tui_source_window): Inline
1862 constructor. Remove destructor.
1863 <style_changed, m_observable>: Move to superclass.
1864 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1865 (struct tui_source_window_base): Move private members to end.
1866 <style_changed, m_observable>: Move from tui_source_window.
1867 * tui/tui-winsource.c (tui_copy_source_line): Move from
1868 tui-source.c. Rename from copy_source_line. Add special handling
1869 for negative line number.
1870 (tui_source_window_base::style_changed): Move from
1871 tui_source_window.
1872 (tui_source_window_base): Register observer.
1873 (~tui_source_window_base): New.
1874 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1875 rename.
1876 (tui_source_window::set_contents): Use tui_copy_source_line.
1877 (tui_source_window::tui_source_window): Move to tui-source.h.
1878 (tui_source_window::~tui_source_window): Remove.
1879 (tui_source_window::style_changed): Move to superclass.
1880 * tui/tui-disasm.c (tui_disassemble): Create string file with
1881 styling, when possible. Add "addr_size" parameter.
1882 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1883 Don't compute maximum size.
1884 (len_without_escapes): New function
1885
1886 2019-11-05 Tom Tromey <tom@tromey.com>
1887
1888 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1889 std::string.
1890 * tui/tui-winsource.c (tui_show_source_line): Update.
1891 * tui/tui-source.c (tui_source_window::set_contents): Update.
1892 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1893
1894 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1895
1896 * symtab.h (gdb_static_assert): Put && operator at the beginning
1897 of the line instead of the end.
1898
1899 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1900
1901 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1902 and sizeof (symbol).
1903 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1904
1905 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1906
1907 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1908 * configure.host: Mark *-*-solaris2.10* obsolete.
1909 * configure.tgt: Mark Solaris < 11 obsolete.
1910 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1911 Update target triplet.
1912
1913 2019-11-01 Tom Tromey <tromey@adacore.com>
1914
1915 * utils.c (print_sys_errmsg): Simplify.
1916
1917 2019-11-01 Tom Tromey <tromey@adacore.com>
1918
1919 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1920
1921 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1922
1923 * configure: Regenerate.
1924 * configure.ac: Remove check for strerror_r.
1925 * gdbsupport/common.m4: Check for strerror_r.
1926
1927 2019-11-01 Luis Machado <luis.machado@linaro.org>
1928
1929 PR gdb/25124
1930
1931 * arm-tdep.c (arm_per_objfile): Rename to ...
1932 (arm_per_bfd): ... this.
1933 (arm_objfile_data_key): Rename to ...
1934 (arm_bfd_data_key): ... this.
1935 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1936 data.
1937 (arm_record_special_symbol): Likewise.
1938
1939 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1940
1941 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1942 end.
1943 * c-typeprint.c (c_print_typedef): Likewise.
1944 * f-typeprint.c (f_print_typedef): Likewise.
1945 * m2-typeprint.c (m2_print_typedef): Likewise.
1946 * p-typeprint.c (pascal_print_typedef): Likewise.
1947 * rust-lang.c (rust_print_typedef): Likewise.
1948 * symtab.c (print_symbol_info): Print a newline after calling
1949 typedef_print.
1950
1951 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1952
1953 * symtab.c (info_module_cmdlist): New variable.
1954 (info_module_command): New function.
1955 (search_module_symbols): New function.
1956 (info_module_subcommand): New function.
1957 (struct info_modules_var_func_options): New struct.
1958 (info_modules_var_func_options_defs): New variable.
1959 (make_info_modules_var_func_options_def_group): New function.
1960 (info_module_functions_command): New function.
1961 (info_module_variables_command): New function.
1962 (info_module_var_func_command_completer): New function.
1963 (_initialize_symtab): Register new 'info module functions' and
1964 'info module variables' commands.
1965 * symtab.h (typedef symbol_search_in_module): New typedef.
1966 (search_module_symbols): Declare new function.
1967 * NEWS: Mention new commands.
1968
1969 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1970
1971 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1972 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1973 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1974 MODULES_DOMAIN.
1975 (scan_partial_symbols): Only create partial module symbols for non
1976 declarations.
1977 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1978 and MODULES_DOMAIN.
1979 * symtab.c (search_domain_name): Likewise.
1980 (search_symbols): Likewise.
1981 (print_symbol_info): Likewise.
1982 (symtab_symbol_info): Likewise.
1983 (info_modules_command): New function.
1984 (_initialize_symtab): Register 'info modules' command.
1985 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1986 * NEWS: Mention new 'info modules' command.
1987
1988 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1989
1990 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1991 and $_gdb_maint_setting_str.
1992
1993 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1994
1995 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1996 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1997 (str_value_from_setting, gdb_setting_str_internal_fn)
1998 (gdb_maint_setting_str_internal_fn): New functions.
1999 (_initialize_cli_cmds): Define the new convenience functions.
2000 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2001 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2002
2003 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2004
2005 * agent.c (set_can_use_agent): When the setting is turned on,
2006 look up agent symbols if we don't have them yet.
2007 (agent_new_objfile): Don't look up agent symbols when the agent
2008 setting is off.
2009
2010 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2011
2012 * config.in: Regenerate.
2013
2014 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2015
2016 * configure: Regenerate.
2017 * configure.ac: Check for strerror_r.
2018 * gdbsupport/common-utils.h (safe_strerror): Change return value
2019 to const char * and document that this function is now threadsafe.
2020 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2021 thread_local and call strerror_r, if available.
2022 * utils.c (perror_string): Update.
2023 (print_sys_errmsg): Update.
2024
2025 2019-10-31 Luis Machado <luis.machado@linaro.org>
2026
2027 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2028 objfile_key.
2029 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2030 objfile to fetch per-bfd data.
2031 (arm_find_exidx_entry): Likewise.
2032
2033 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2034
2035 * gdbsupport/agent.c (debug_agent): Change type to bool.
2036 (use_agent): Likewise.
2037 (all_agent_symbols_look_up): Likewise.
2038 (agent_loaded_p): Change return value to bool.
2039 (agent_look_up_symbols): Update.
2040 (agent_capability_check): Change return value to bool.
2041 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2042 (debug_agent): Change type to bool.
2043 (use_agent): Likewise.
2044 (agent_capability_check): Change return value to bool.
2045
2046 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2047
2048 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2049 (build_minimal_symbol_hash_tables): Code to clear the table moved
2050 to clear_minimal_symbol_hash_tables.
2051 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2052 when needed.
2053
2054 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2055
2056 * infcmd.c: Remove includes.
2057 * infrun.c: Remove includes.
2058
2059 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2060
2061 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2062 (grow_vect): Remove declaration.
2063 (ada_type_of_array): Remove declaration.
2064 (ada_update_initial_language): Remove declaration.
2065 (ada_fold_name): Remove declaration.
2066 (ada_fill_in_ada_prototype): Remove declaration.
2067 (user_select_syms): Remove declaration.
2068 (get_selections): Remove declaration.
2069 (ada_tag_type): Remove declaration.
2070 (ada_value_tag): Remove declaration.
2071 (ada_is_others_clause): Remove declaration.
2072 (ada_in_variant): Remove declaration.
2073 (ada_value_struct_elt): Remove declaration.
2074 (ada_attribute_name): Remove declaration.
2075 (ada_system_address_type): Remove declaration.
2076 * ada-lang.c (ada_watch_location_expression): Make static.
2077 (GROW_VECT): Move here from ada-lang.h.
2078 (grow_vect): Make static.
2079 (ada_update_initial_language): Make static.
2080 (ada_fold_name): Make static.
2081 (ada_type_of_array): Make static.
2082 (encoded_ordered_before): Move up.
2083 (sort_choices): Move up.
2084 (print_signatures): Move up.
2085 (ada_print_symbol_signature): Move up.
2086 (get_selections): Move up and make static.
2087 (user_select_syms): Move up and make static.
2088 (ada_value_struct_elt): Move up and make static.
2089 (ada_tag_type): Make static.
2090 (ada_value_tag): Make static.
2091 (ada_is_others_clause): Make static.
2092 (ada_in_variant): Make static.
2093 (ada_attribute_name): Make static.
2094
2095 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2096
2097 * ada-lang.c: Remove includes.
2098 * ada-typeprint.c: Remove includes.
2099 * ada-valprint.c: Remove includes.
2100
2101 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2102
2103 * addrmap.c: Add static assertions of type size, moved from
2104 _initialize_addrmap.
2105 (_initialize_addrmap): Remove.
2106
2107 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2108
2109 * coffread.c (record_minimal_symbol): Update.
2110 (process_coff_symbol): Update.
2111 * dbxread.c (read_dbx_symtab): Update.
2112 * dwarf2read.c (add_partial_symbol): Update.
2113 (fixup_go_packaging): Update.
2114 (load_partial_dies): Update.
2115 (new_symbol): Update.
2116 * elfread.c (record_minimal_symbol): Change signature to use
2117 gdb::string_view instead of name+len.
2118 (elf_symtab_read): Update.
2119 (elf_rel_plt_read): Update.
2120 * mdebugread.c (parse_partial_symbols): Update.
2121 (handle_psymbol_enumerators): Update.
2122 (new_symbol): Update.
2123 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2124 to use gdb::string_view instead of name+len.
2125 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2126 * psympriv.h (add_psymbol_to_list): Likewise.
2127 * psymtab.c (add_psymbol_to_bcache): Likewise.
2128 (add_psymbol_to_list): Likewise.
2129 * stabsread.c (define_symbol): Update.
2130 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2131 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2132 (symbol_set_names): Likewise.
2133 * xcoffread.c (scan_xcoff_symtab): Update.
2134
2135 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2136
2137 * symtab.h (symbol_set_names): Document that copy_name must be
2138 set to true for non-nullterminated strings.
2139 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2140 linkage_name if the entry was not found and we need to demangle.
2141
2142 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2143
2144 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2145 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2146 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2147 * gdbsupport/gdb_binary_search.h: New file.
2148
2149 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2150
2151 * NEWS: Mention new --with-system-gdbinit-dir option.
2152 * config.in: Regenerate.
2153 * configure: Regenerate.
2154 * configure.ac: Add new option --with-system-gdbinit-dir.
2155 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2156 for a ".gdb" suffix.
2157 * main.c (get_init_files): Change system_gdbinit argument to
2158 a vector and return the files in SYSTEM_GDBINIT_DIR in
2159 addition to SYSTEM_GDBINIT.
2160 (captured_main_1): Update.
2161 (print_gdb_help): Update.
2162 * top.c (print_gdb_configuration): Also print the value of
2163 SYSTEM_GDBINIT_DIR.
2164
2165 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2166
2167 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2168 that takes gdb::string_view arguments.
2169
2170 2019-10-26 Tom de Vries <tdevries@suse.de>
2171
2172 * aarch64-linux-tdep.c: Fix typos in comments.
2173 * aarch64-tdep.c: Same.
2174 * ada-lang.c: Same.
2175 * amd64-nat.c: Same.
2176 * arc-tdep.c: Same.
2177 * arch/aarch64-insn.c: Same.
2178 * block.c: Same.
2179 * breakpoint.h: Same.
2180 * btrace.h: Same.
2181 * c-varobj.c: Same.
2182 * cli/cli-decode.c: Same.
2183 * cli/cli-script.c: Same.
2184 * cli/cli-utils.h: Same.
2185 * coff-pe-read.c: Same.
2186 * coffread.c: Same.
2187 * compile/compile-cplus-symbols.c: Same.
2188 * compile/compile-object-run.c: Same.
2189 * completer.c: Same.
2190 * corelow.c: Same.
2191 * cp-support.c: Same.
2192 * demangle.c: Same.
2193 * dwarf-index-write.c: Same.
2194 * dwarf2-frame.c: Same.
2195 * dwarf2-frame.h: Same.
2196 * eval.c: Same.
2197 * frame-base.h: Same.
2198 * frame.h: Same.
2199 * gdbcmd.h: Same.
2200 * gdbtypes.h: Same.
2201 * gnu-nat.c: Same.
2202 * guile/scm-objfile.c: Same.
2203 * i386-tdep.c: Same.
2204 * i386-tdep.h: Same.
2205 * infcall.c: Same.
2206 * infcall.h: Same.
2207 * linux-nat.c: Same.
2208 * m68k-tdep.c: Same.
2209 * macroexp.c: Same.
2210 * memattr.c: Same.
2211 * mi/mi-cmd-disas.c: Same.
2212 * mi/mi-getopt.h: Same.
2213 * mi/mi-main.c: Same.
2214 * minsyms.c: Same.
2215 * nat/aarch64-sve-linux-sigcontext.h: Same.
2216 * objfiles.h: Same.
2217 * ppc-linux-nat.c: Same.
2218 * ppc-linux-tdep.c: Same.
2219 * ppc-tdep.h: Same.
2220 * progspace.h: Same.
2221 * prologue-value.h: Same.
2222 * python/py-evtregistry.c: Same.
2223 * python/py-instruction.h: Same.
2224 * record-btrace.c: Same.
2225 * record-full.c: Same.
2226 * remote.c: Same.
2227 * rs6000-tdep.c: Same.
2228 * ser-tcp.c: Same.
2229 * sol-thread.c: Same.
2230 * sparc-sol2-tdep.c: Same.
2231 * sparc64-tdep.c: Same.
2232 * stabsread.c: Same.
2233 * symfile.c: Same.
2234 * symtab.h: Same.
2235 * target.c: Same.
2236 * tracepoint.c: Same.
2237 * tui/tui-data.h: Same.
2238 * tui/tui-io.c: Same.
2239 * tui/tui-win.c: Same.
2240 * tui/tui.c: Same.
2241 * unittests/rsp-low-selftests.c: Same.
2242 * user-regs.h: Same.
2243 * utils.c: Same.
2244 * utils.h: Same.
2245 * valarith.c: Same.
2246 * valops.c: Same.
2247 * valprint.c: Same.
2248 * valprint.h: Same.
2249 * value.c: Same.
2250 * value.h: Same.
2251 * varobj.c: Same.
2252 * x86-nat.h: Same.
2253 * xtensa-tdep.c: Same.
2254
2255 2019-10-25 Ali Tamur <tamur@google.com>
2256
2257 * charset.c (find_charset_names): Reflect API change.
2258
2259 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2260
2261 * symtab.c (struct demangled_name_entry): Change demangled name
2262 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2263 part of the struct anymore.
2264 (symbol_set_names): No longer obstack allocate + copy the demangled
2265 name, just store the allocated name from bfd.
2266
2267 2019-10-25 Tom Tromey <tromey@adacore.com>
2268
2269 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2270 (bsearch_cie_cmp, add_cie): Remove.
2271 (find_cie): Reimplement.
2272 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2273 (dwarf2_build_frame_info): Update.
2274
2275 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2276
2277 PR gdb/25126
2278 * symfile.c (reread_symbols): Call forget_cached_source_info to
2279 clear the stale source cache.
2280
2281 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2282
2283 * configure: Regenerate.
2284 * configure.ac: Remove code that sets python_has_threads.
2285
2286 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2287
2288 * config.in: Regenerate.
2289 * configure: Regenerate.
2290 * configure.ac: Remove the code that uses sed to get the python
2291 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2292
2293 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2294
2295 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2296 error paths.
2297
2298 2019-10-23 Tom Tromey <tom@tromey.com>
2299
2300 * arc-tdep.c: Remove ".." from include.
2301 * frv-tdep.c: Remove ".." from include.
2302 * lm32-tdep.c: Remove ".." from include.
2303 * microblaze-tdep.c: Remove ".." from include.
2304 * or1k-tdep.h: Remove ".." from include.
2305 * s12z-tdep.c: Remove ".." from include.
2306 * Makefile.in (OPCODES_CFLAGS): Add comment.
2307 (TOP_CFLAGS): New variable.
2308 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2309
2310 2019-10-23 Tom Tromey <tom@tromey.com>
2311
2312 * Makefile.in (READLINE_DIR): Update.
2313
2314 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2315
2316 * infcall.c (call_function_by_hand_dummy): Fix the function
2317 comment. And extract out a code section into...
2318 (reserve_stack_space): ...this new function.
2319
2320 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2321
2322 * infcall.c (value_arg_coerce): Remove an unused parameter.
2323 (call_function_by_hand_dummy): Update the call to
2324 'value_arg_coerce'.
2325
2326 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2327
2328 * infcall.c (call_function_by_hand_dummy): Refactor.
2329
2330 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2331
2332 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2333
2334 2019-10-23 Tom Tromey <tom@tromey.com>
2335
2336 * configure: Rebuild.
2337 * configure.ac: Don't check for sigprocmask.
2338 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2339
2340 2019-10-23 Tom Tromey <tom@tromey.com>
2341
2342 * configure: Rebuild.
2343 * acinclude.m4: Use m4_include, not sinclude.
2344
2345 2019-10-23 Tom de Vries <tdevries@suse.de>
2346
2347 PR breakpoints/24687
2348 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2349
2350 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2351
2352 * symtab.c (struct demangled_name_entry) <language>: Change from
2353 bitfield to regular variable.
2354
2355 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2356
2357 * symtab.c (struct demangled_name_entry): Add a constructor.
2358 (free_demangled_name_entry): New function to call the destructor
2359 for demangled_name_entry.
2360 (create_demangled_names_hash): Pass free_demangled_name_entry to
2361 htab_create_alloc.
2362 (symbol_set_names): Call placement new for demangled_name_entry.
2363 * utils.c: No longer include xxhash.h here, now that fast_hash
2364 is inlined in the header.
2365 * utils.h: Instead, include it here.
2366
2367 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2368
2369 * Makefile.in: Link with libxxhash.
2370 * config.in: Regenerate.
2371 * configure: Regenerate.
2372 * configure.ac: Search for libxxhash.
2373 * utils.c (fast_hash): Use xxhash if present.
2374
2375 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2376
2377 * utils.h (fast_hash): New function.
2378 * symtab.c (hash_demangled_name_entry): Call new function
2379 fast_hash.
2380
2381 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2382
2383 * symtab.c (struct demangled_name_entry): Change type of mangled
2384 to gdb::string_view. Also adds a constructor that takes the
2385 mangled name.
2386 (hash_demangled_name_entry): Update.
2387 (eq_demangled_name_entry): Update.
2388 (free_demangled_name_entry): New function to call the destructor
2389 now that this is not a POD anymore.
2390 (create_demangled_names_hash): Pass free_demangled_name_entry to
2391 htab_create_alloc.
2392 (symbol_set_names): Update.
2393
2394 2019-10-21 Ali Tamur <tamu@google.com>
2395
2396 * dwarf2read.c (dir_index): Change type.
2397 (file_name_index): Likewise.
2398 (line_header::include_dir_at): Change comment and implementation on
2399 whether it is DWARF 5.
2400 (line_header::is_valid_file_index): New function.
2401 (line_header::file_name_at): Change comment and implementation on
2402 whether it is DWARF 5.
2403 (line_header::file_names): Change to private field renamed as
2404 m_file_names and introduce a new accessor method.
2405 (line_header::file_names_size): New method.
2406 (line_header::include_dirs): Change to private field and rename as
2407 m_include_dirs.
2408 (dw2_get_file_names_reader): Define local var at a smaller scope and
2409 reflect API change.
2410 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2411 (process_structure_scope): Likewise.
2412 (line_header::add_include_dir): Change message and reflect renaming.
2413 (line_header::add_file_name): Likewise.
2414 (read_formatted_entries): Handle DW_FORM_data16.
2415 (dwarf_decode_line_header): Fix line header length calculation.
2416 (psymtab_include_file_name): Change comment and API.
2417 (lnp_state_machine::m_file): Update comment and reflect type change.
2418 (lnp_state_machine::record_line): Reflect type change.
2419 (dwarf_decode_lines): Reflect API change.
2420 (file_file_name): Likewise.
2421 (file_full_name): Likewise.
2422
2423 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2424
2425 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2426
2427 2019-10-21 Tom Tromey <tom@tromey.com>
2428
2429 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2430
2431 2019-10-21 Tom Tromey <tom@tromey.com>
2432
2433 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2434 NM_H. Use AC_CONFIG_LINKS.
2435 * configure: Rebuild.
2436 * Makefile.in (NM_H): New variable.
2437 (generated_files): Add NM_H. Remove gcore.
2438 (nm.h, stamp-nmh): New targets.
2439
2440 2019-10-20 Tom Tromey <tom@tromey.com>
2441
2442 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2443 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2444 obsolete comment.
2445 (put_objfile_before): Now static.
2446
2447 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2448
2449 * gdbsupport/common-utils.h (startswith): Change return type to
2450 bool.
2451
2452 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2453
2454 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2455 * breakpoint.c (bp_locations_compare): Rename to...
2456 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2457 (update_global_location_list): Use std::sort instead of qsort.
2458 * buildsym.c (compare_line_numbers): Rename to...
2459 (lte_is_less_than): ...this, and change to std::sort semantics.
2460 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2461 instead of qsort.
2462 * disasm.c (compare_lines): Rename to...
2463 (line_is_less_than): ...this, and change to std::sort semantics.
2464 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2465 of qsort.
2466 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2467 (fde_is_less_than): ...this, and change to std::sort semantics.
2468 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2469 * mdebugread.c (compare_blocks):
2470 (block_is_less_than): ...this, and change to std::sort semantics.
2471 (sort_blocks): Call std::sort instead of qsort.
2472 * objfiles.c (qsort_cmp): Rename to...
2473 (sort_cmp): ...this, and change to std::sort semantics.
2474 (update_section_map): Call std::sort instead of qsort.
2475 * remote.c (compare_pnums): Remove.
2476 (map_regcache_remote_table): Call std::sort instead of qsort.
2477 * utils.c (compare_positive_ints): Remove.
2478 * utils.h (compare_positive_ints): Remove.
2479 * xcoffread.c (compare_lte): Remove.
2480 (arrange_linetable): Call std::sort instead of qsort.
2481
2482 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2483
2484 * symfile.c (init_entry_point_info): Fix typo.
2485 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2486
2487 2019-10-18 Tom de Vries <tdevries@suse.de>
2488
2489 * aarch64-tdep.c: Fix typos in comments.
2490 * ada-lang.c: Same.
2491 * ada-tasks.c: Same.
2492 * alpha-tdep.c: Same.
2493 * alpha-tdep.h: Same.
2494 * amd64-nat.c: Same.
2495 * amd64-windows-tdep.c: Same.
2496 * arc-tdep.c: Same.
2497 * arc-tdep.h: Same.
2498 * arch-utils.c: Same.
2499 * arm-nbsd-tdep.c: Same.
2500 * arm-tdep.c: Same.
2501 * ax-gdb.c: Same.
2502 * blockframe.c: Same.
2503 * btrace.c: Same.
2504 * c-varobj.c: Same.
2505 * coff-pe-read.c: Same.
2506 * coffread.c: Same.
2507 * cris-tdep.c: Same.
2508 * darwin-nat.c: Same.
2509 * dbxread.c: Same.
2510 * dcache.c: Same.
2511 * disasm.c: Same.
2512 * dtrace-probe.c: Same.
2513 * dwarf-index-write.c: Same.
2514 * dwarf2-frame-tailcall.c: Same.
2515 * dwarf2-frame.c: Same.
2516 * dwarf2read.c: Same.
2517 * eval.c: Same.
2518 * exceptions.c: Same.
2519 * fbsd-tdep.c: Same.
2520 * findvar.c: Same.
2521 * frame.c: Same.
2522 * frv-tdep.c: Same.
2523 * gnu-v3-abi.c: Same.
2524 * go32-nat.c: Same.
2525 * h8300-tdep.c: Same.
2526 * hppa-tdep.c: Same.
2527 * i386-linux-tdep.c: Same.
2528 * i386-tdep.c: Same.
2529 * ia64-libunwind-tdep.c: Same.
2530 * ia64-tdep.c: Same.
2531 * infcmd.c: Same.
2532 * infrun.c: Same.
2533 * linespec.c: Same.
2534 * linux-nat.c: Same.
2535 * linux-thread-db.c: Same.
2536 * machoread.c: Same.
2537 * mdebugread.c: Same.
2538 * mep-tdep.c: Same.
2539 * mn10300-tdep.c: Same.
2540 * namespace.c: Same.
2541 * objfiles.c: Same.
2542 * opencl-lang.c: Same.
2543 * or1k-tdep.c: Same.
2544 * osabi.c: Same.
2545 * ppc-linux-nat.c: Same.
2546 * ppc-linux-tdep.c: Same.
2547 * ppc-sysv-tdep.c: Same.
2548 * printcmd.c: Same.
2549 * procfs.c: Same.
2550 * record-btrace.c: Same.
2551 * record-full.c: Same.
2552 * remote-fileio.c: Same.
2553 * remote.c: Same.
2554 * rs6000-tdep.c: Same.
2555 * s12z-tdep.c: Same.
2556 * score-tdep.c: Same.
2557 * ser-base.c: Same.
2558 * ser-go32.c: Same.
2559 * skip.c: Same.
2560 * sol-thread.c: Same.
2561 * solib-svr4.c: Same.
2562 * solib.c: Same.
2563 * source.c: Same.
2564 * sparc-nat.c: Same.
2565 * sparc-sol2-tdep.c: Same.
2566 * sparc-tdep.c: Same.
2567 * sparc64-tdep.c: Same.
2568 * stabsread.c: Same.
2569 * stack.c: Same.
2570 * symfile.c: Same.
2571 * symtab.c: Same.
2572 * target-descriptions.c: Same.
2573 * target-float.c: Same.
2574 * thread.c: Same.
2575 * utils.c: Same.
2576 * valops.c: Same.
2577 * valprint.c: Same.
2578 * value.c: Same.
2579 * varobj.c: Same.
2580 * windows-nat.c: Same.
2581 * xcoffread.c: Same.
2582 * xstormy16-tdep.c: Same.
2583 * xtensa-tdep.c: Same.
2584
2585 2019-10-17 Tom Tromey <tromey@adacore.com>
2586
2587 * configure: Rebuild.
2588 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2589 in AC_CONFIG_FILES invocation.
2590 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2591 new-style config.status invocation.
2592
2593 2019-10-17 Tom de Vries <tdevries@suse.de>
2594
2595 * arm-nbsd-nat.c: Fix typos in comments.
2596 * arm-tdep.c: Same.
2597 * darwin-nat-info.c: Same.
2598 * dwarf2read.c: Same.
2599 * elfread.c: Same.
2600 * event-top.c: Same.
2601 * findvar.c: Same.
2602 * gdbtypes.c: Same.
2603 * hppa-tdep.c: Same.
2604 * i386-tdep.c: Same.
2605 * jit.c: Same.
2606 * main.c: Same.
2607 * mdebugread.c: Same.
2608 * moxie-tdep.c: Same.
2609 * nto-procfs.c: Same.
2610 * osabi.c: Same.
2611 * ppc-linux-tdep.c: Same.
2612 * remote.c: Same.
2613 * riscv-tdep.c: Same.
2614 * s390-tdep.c: Same.
2615 * sh-tdep.c: Same.
2616 * sparc-linux-tdep.c: Same.
2617 * sparc-nat.c: Same.
2618 * stack.c: Same.
2619 * target-descriptions.c: Same.
2620 * top.c: Same.
2621 * varobj.c: Same.
2622
2623 2019-10-16 Tom Tromey <tom@tromey.com>
2624
2625 * objfiles.h (struct objfile) <original_name>: Now const.
2626
2627 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2628
2629 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2630 pass on to sigsetjmp's second argument.
2631 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2632
2633 2019-10-16 Keith Seitz <keiths@redhat.com>
2634
2635 PR gdb/23567
2636 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2637 sections whose size is greater than the file size.
2638
2639 2019-10-16 Jim Wilson <jimw@sifive.com>
2640
2641 * riscv-tdep.c (riscv_gcc_target_options): New.
2642 (riscv_gnu_triplet_regexp): New.
2643 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2644 set_gdbarch_gnu_triplet_regexp.
2645
2646 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2647
2648 * Makefile.in: Add xml-builtin.h.
2649 * features/feature_to_c.sh: Add an include for xml-builtin.h
2650 to ensure that the compiler checks that the types match.
2651 * xml-builtin.h: New file.
2652 * xml-support.c (fetch_xml_builtin): Add missing const.
2653 * xml-support.h: Remove declaration of xml_builtins.
2654
2655 2019-10-16 Tom de Vries <tdevries@suse.de>
2656
2657 PR tdep/25096
2658 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2659 (amd64_classify_aggregate): ... here.
2660 (amd64_classify_aggregate_field): Handled fiels of nested structs
2661 recursively.
2662
2663 2019-10-16 Tom de Vries <tdevries@suse.de>
2664
2665 PR tdep/24104
2666 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2667 that handles 'theclass'.
2668
2669 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2670
2671 * linespec.c (decode_digits_ordinary): Update comment.
2672 * make-target-delegates: No longer need to handle VEC case.
2673 * memrange.c (normalize_mem_ranges): Update comment.
2674 * namespace.c (add_using_directive): Update comment.
2675 * objc-lang.c (uniquify_strings): Update comment.
2676 * ppc-linux-nat.c (struct thread_points): Update comment.
2677 * probe.h (find_probes_in_objfile): Update comment.
2678 * target.h (enum flash_preserve_mode): Update comment.
2679 * varobj.c (varobj_restrict_range): Update comment.
2680 * varobj.h (varobj_list_children): Update comment.
2681
2682 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2683
2684 * Makefile.in: Remove references to vec.h and vec.c.
2685 * aarch64-tdep.c: No longer include vec.h.
2686 * ada-lang.c: Likewise.
2687 * ada-lang.h: Likewise.
2688 * arm-tdep.c: Likewise.
2689 * ax.h: Likewise.
2690 * breakpoint.h: Likewise.
2691 * charset.c: Likewise.
2692 * cp-support.h: Likewise.
2693 * dtrace-probe.c: Likewise.
2694 * dwarf2read.c: Likewise.
2695 * extension.h: Likewise.
2696 * gdb_bfd.c: Likewise.
2697 * gdbsupport/gdb_vecs.h: Likewise.
2698 * gdbsupport/vec.c: Remove.
2699 * gdbsupport/vec.h: Remove.
2700 * gdbthread.h: Likewise.
2701 * guile/scm-type.c: Likewise.
2702 * inline-frame.c: Likewise.
2703 * machoread.c: Likewise.
2704 * memattr.c: Likewise.
2705 * memrange.h: Likewise.
2706 * namespace.h: Likewise.
2707 * nat/linux-btrace.h: Likewise.
2708 * osdata.c: Likewise.
2709 * parser-defs.h: Likewise.
2710 * progspace.h: Likewise.
2711 * python/py-type.c: Likewise.
2712 * record-btrace.c: Likewise.
2713 * rust-exp.y: Likewise.
2714 * solib-target.c: Likewise.
2715 * stap-probe.c: Likewise.
2716 * target-descriptions.c: Likewise.
2717 * target-memory.c: Likewise.
2718 * target.h: Likewise.
2719 * varobj.c: Likewise.
2720 * varobj.h: Likewise.
2721 * xml-support.h: Likewise.
2722
2723 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2724
2725 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2726 Update for new std::vector based implementation.
2727 (process_psymtab_comp_unit_reader): Likewise.
2728 (scan_partial_symbols): Likewise.
2729 (recursively_compute_inclusions): Likewise.
2730 (compute_compunit_symtab_includes): Likewise.
2731 (process_imported_unit_die): Likewise.
2732 (queue_and_load_dwo_tu): Likewise.
2733 (follow_die_sig_1): Likewise.
2734 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2735 (typedef dwarf2_per_cu_ptr): Remove.
2736 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2737 function.
2738 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2739 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2740 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2741 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2742 std::vector.
2743
2744 2019-10-15 Tom Tromey <tromey@adacore.com>
2745
2746 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2747 TID.
2748
2749 2019-10-15 Tom Tromey <tromey@adacore.com>
2750
2751 * windows-nat.c (windows_nat_target::fetch_registers)
2752 (windows_nat_target::store_registers): Rename "pid" to "tid".
2753
2754 2019-10-15 Tom Tromey <tromey@adacore.com>
2755
2756 * gdbarch.h, gdbarch.c: Rebuild.
2757 * gdbarch.sh (gcc_target_options): Change return type to
2758 std::string.
2759 * compile/compile.c (get_args): Update.
2760 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2761 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2762 std::string.
2763 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2764 std::string.
2765 * arch-utils.c (default_gcc_target_options): Return std::string.
2766 * arch-utils.h (default_gcc_target_options): Return std::string.
2767 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2768
2769 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2770
2771 * breakpoint.c (breakpoint_chain): Make static.
2772 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2773 of accessing breakpoint_chain.
2774
2775 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2776
2777 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2778 to a gdb::function_view and return value to bool.
2779 * breakpoint.h (iterate_over_breakpoints): Likewise.
2780 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2781 (pop_dummy_frame): Update.
2782 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2783 (gdbscm_breakpoints): Update.
2784 * python/py-breakpoint.c (build_bp_list): Update.
2785 (gdbpy_breakpoints): Update.
2786 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2787 Update.
2788 (bpfinishpy_handle_stop): Update.
2789 (bpfinishpy_handle_exit): Update.
2790 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2791 (svr4_update_solib_event_breakpoints): Update.
2792
2793 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2794
2795 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2796 when unwrapping single-field structs.
2797
2798 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2799
2800 * dwarf2read.c: Remove includes.
2801
2802 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2803
2804 * ui-out.c (ui_out::call_do_message): Silence
2805 -Wformat-nonliteral warning.
2806
2807 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2808
2809 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2810 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2811 include: readline/tilde.h.
2812
2813 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2814
2815 * remote.c (remote_target::get_trace_status): Remove declaration of
2816 trace_regblock_size.
2817
2818 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2819
2820 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2821 (show_user): Remove declaration of cmdlist.
2822 * cli/cli-cmds.h (max_user_call_depth): Declare.
2823 * cli/cli-script.c (execute_user_command): Remove declaration
2824 of max_user_call_depth.
2825
2826 2019-10-11 Jim Wilson <jimw@sifive.com>
2827
2828 * gdbsupport/print-utils.h (pulongest): Fix comment.
2829 (plongest): Likewise.
2830 (phex): Add missing comment, mention leading zeros.
2831 (phex_nz): Add mention of no leading zeros to comment.
2832
2833 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2834 plongest instead of unsigned long long cast.
2835
2836 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2837
2838 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2839 for external_editor_command and gdbtk_test.
2840
2841 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2842
2843 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2844 * varobj.c (varobjdebug): Move comment to...
2845 * varobj.h (varobjdebug): ...here, and declare.
2846
2847 2019-10-09 Tom Tromey <tom@tromey.com>
2848
2849 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2850 erase_data_content.
2851
2852 2019-10-09 Tom Tromey <tom@tromey.com>
2853
2854 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2855 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2856 * tui/tui-command.c (tui_cmd_window::resize)
2857 (tui_refresh_cmd_win): Update.
2858 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2859 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2860 * tui/tui-data.c (~tui_gen_win_info): Remove.
2861 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2862 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2863 (tui_redisplay_readline, tui_mld_flush)
2864 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2865 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2866 (tui_data_window::erase_data_content)
2867 (tui_data_item_window::rerender)
2868 (tui_data_item_window::refresh_window): Update.
2869 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2870 (box_win, tui_gen_win_info::make_window)
2871 (tui_gen_win_info::make_visible): Update.
2872 (tui_delete_win): Remove.
2873 * tui/tui-winsource.c
2874 (tui_source_window_base::do_erase_source_content): Update.
2875 (tui_show_source_line, tui_source_window_base::update_tab_width)
2876 (tui_source_window_base::update_exec_info): Update.
2877 * tui/tui-data.h (struct curses_deleter): New.
2878 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2879 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2880
2881 2019-10-09 Tom Tromey <tom@tromey.com>
2882
2883 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2884
2885 2019-10-09 Tom Tromey <tom@tromey.com>
2886
2887 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2888 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2889
2890 2019-10-09 Tom Tromey <tom@tromey.com>
2891
2892 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2893 window height directly.
2894 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2895 declare.
2896 * tui/tui-layout.c (tui_default_win_height): Remove.
2897 (tui_default_win_viewport_height): Remove.
2898
2899 2019-10-09 Tom Tromey <tom@tromey.com>
2900
2901 * tui/tui.h: Remove comments.
2902
2903 2019-10-09 Tom de Vries <tdevries@suse.de>
2904
2905 * python/lib/gdb/printer/bound_registers.py: Use
2906 '^builtin_type_bound128' as regexp argument for
2907 add_builtin_pretty_printer.
2908
2909 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2910
2911 * guile/guile.c (guile_extension_script_ops): Remove forward
2912 declaration and mark as static.
2913 (guile_script_ops): Likewise.
2914 (extension_language_guile): Move further down in the file so
2915 it can reference the definitions for guile_{extension_,}script_ops.
2916
2917 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2918
2919 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2920 except SORTL, DFLTCC, and KDSA.
2921
2922 2019-10-08 Tom Tromey <tromey@adacore.com>
2923
2924 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2925 (struct safe_symbol_file_add_args): Remove.
2926
2927 2019-10-08 Tom Tromey <tromey@adacore.com>
2928
2929 * windows-nat.c: Don't include buildsym-legacy.h.
2930
2931 2019-10-08 Tom Tromey <tromey@adacore.com>
2932
2933 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2934
2935 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2936
2937 * gdbtypes.c (overload_debug): Move comment to header.
2938 * gdbtypes.h (overload_debug): Declare.
2939 * valops.c: Remove declaration of overload_debug, instead
2940 include gdbtypes.h.
2941
2942 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2943
2944 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2945 through _().
2946 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2947 move comment...
2948 * language.h (lang_frame_mismatch_warn): ... here. Also add
2949 declaration.
2950 * top.c (lang_frame_mismatch_warn): Remove declaration.
2951 (check_frame_language_change): Pass lang_frame_mismatch_warn
2952 through _().
2953
2954 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2955
2956 * c-lang.h (vtbl_ptr_name): Declare.
2957 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2958 it from the header.
2959 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2960
2961 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2962
2963 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2964 gdb_static_assert.
2965
2966 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2967
2968 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2969 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2970 * ctfread.c: New file.
2971 * ctfread.h: New file.
2972 * elfread.c: Include ctfread.h.
2973 (struct elfinfo text_p): New member ctfsect.
2974 (elf_locate_sections): Mark CTF section.
2975 (elf_symfile_read): Call elfctf_build_psymtabs.
2976 * Makefile.in (LIBCTF): Add.
2977 (CLIBS): Use it.
2978 (CDEPS): Likewise.
2979 (DIST): Add ctfread.c.
2980
2981 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2982
2983 * ctfread.c (struct nextfield): Renamed to ...
2984 (struct ctf_nextfield): ... this.
2985 (struct field_info): Renamed to ...
2986 (strut ctf_field_info): ... this.
2987 (attach_fields_to_type): Update for renamed structures.
2988 (ctf_add_member_cb): Likewise.
2989 (ctf_add_enum_member_cb): Likewise.
2990 (process_struct_members): Likewise.
2991 (process_enum_type): Likewise.
2992
2993 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2994
2995 * tracectf.h: Rename, was ctf.h.
2996 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2997 * tracefile.c: Likewise.
2998 * tracepoint.c: Remove unused include ctf.h.
2999 * mi/mi-main.c: Likewise.
3000 * Makefile.in Replace ctf.c with tracectf.c.
3001
3002 2019-10-06 Joel Brobecker <brobecker@adacore.com>
3003
3004 * version.in: Change version number to "9.0.50.DATE-git".
3005
3006 2019-10-03 Tom Tromey <tom@tromey.com>
3007
3008 PR rust/24976:
3009 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3010
3011 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3012
3013 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3014 cp_search_name_hash.
3015 * NEWS: Add entry about nested function support.
3016
3017 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3018 Andrew Burgess <andrew.burgess@embecosm.com>
3019
3020 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3021 for nested static variables when searchin VAR_DOMAIN.
3022 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3023 global scope, update comment.
3024 (add_partial_subprogram): Call add_partial_subprogram recursively
3025 for nested subroutines when processinng Fortran.
3026 (load_partial_dies): Process the child entities of a subprogram
3027 when processing Fortran.
3028 (partial_die_parent_scope): Handle building scope
3029 for Fortran nested functions.
3030 (process_die): Record that nested functions have a scope.
3031 (new_symbol): Always record Fortran subprograms on the global
3032 symbol list.
3033 (determine_prefix): How to build the prefix for Fortran
3034 subprograms.
3035
3036 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3037
3038 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3039 have just sent the thread a SIGSTOP and are waiting for it to
3040 arrive.
3041
3042 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3043
3044 * btrace.c (btrace_add_pc): Remove whitespace before the template
3045 parameter in 'std::vector <...>'.
3046 (parse_xml_btrace_block): Likewise.
3047 (btrace_maint_decode_pt): Likewise.
3048 (btrace_maint_update_packets): Likewise.
3049 (btrace_maint_print_packets): Likewise.
3050 * btrace.h (struct btrace_maint_info): Likewise.
3051 * dwarf2read.c (struct type_unit_group): Likewise.
3052 (build_type_psymtabs_reader): Likewise.
3053 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3054 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3055 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3056
3057 2019-10-03 Tom de Vries <tdevries@suse.de>
3058
3059 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3060 the first line of the help text for set/show style metadata.
3061
3062 2019-10-02 Tom Tromey <tromey@adacore.com>
3063
3064 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3065 * gdbsupport/common-inferior.c: New file.
3066 * infcmd.c (startup_with_shell): Don't define.
3067 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3068 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3069 * inferior.h (startup_with_shell): Don't declare.
3070
3071 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3072
3073 * gdbsupport/gdb_assert.h: Include errors.h.
3074 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3075
3076 2019-10-02 Tom Tromey <tromey@adacore.com>
3077
3078 * NEWS: Add $_ada_exception entry.
3079 * ada-lang.c (struct ada_catchpoint): Add constructor.
3080 <m_kind>: New member.
3081 (allocate_location_exception, re_set_exception): Remove
3082 "ex" parameter.
3083 (should_stop_exception): Compute $_ada_exception.
3084 (check_status_exception, print_it_exception)
3085 (print_one_exception, print_mention_exception): Remove
3086 "ex" parameter.
3087 (allocate_location_catch_exception, re_set_catch_exception)
3088 (check_status_exception, print_it_catch_exception)
3089 (print_one_catch_exception, print_mention_catch_exception)
3090 (print_recreate_catch_exception)
3091 (allocate_location_catch_exception_unhandled)
3092 (re_set_catch_exception_unhandled)
3093 (check_status_exception, print_it_catch_exception_unhandled)
3094 (print_one_catch_exception_unhandled)
3095 (print_mention_catch_exception_unhandled)
3096 (print_recreate_catch_exception_unhandled)
3097 (allocate_location_catch_assert, re_set_catch_assert)
3098 (check_status_assert, print_it_catch_assert)
3099 (print_one_catch_assert, print_mention_catch_assert)
3100 (print_recreate_catch_assert)
3101 (allocate_location_catch_handlers, re_set_catch_handlers)
3102 (check_status_handlers, print_it_catch_handlers)
3103 (print_one_catch_handlers, print_mention_catch_handlers)
3104 (print_recreate_catch_handlers): Remove.
3105 (create_ada_exception_catchpoint): Update.
3106 (initialize_ada_catchpoint_ops): Update.
3107
3108 2019-10-02 Tom Tromey <tromey@adacore.com>
3109
3110 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3111 (create_excep_cond_exprs): Simplify exception string computation.
3112 (ada_exception_catchpoint_cond_string): Likewise.
3113
3114 2019-10-02 Tom Tromey <tromey@adacore.com>
3115
3116 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3117 * ada-lang.c (lesseq_defined_than): Handle
3118 LOC_STATIC.
3119 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3120 parameter.
3121 (dwarf2_has_info): Likewise.
3122 (new_symbol): Set maybe_copied on symbol when
3123 appropriate.
3124 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3125 parameter.
3126 <can_copy>: New member.
3127 * elfread.c (record_minimal_symbol): Set maybe_copied
3128 on symbol when appropriate.
3129 (elf_symfile_read): Update call to dwarf2_has_info.
3130 * minsyms.c (lookup_minimal_symbol_linkage): New
3131 function.
3132 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3133 * symtab.c (get_symbol_address, get_msymbol_address):
3134 New functions.
3135 * symtab.h (get_symbol_address, get_msymbol_address):
3136 Declare.
3137 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3138 maybe_copied.
3139 (struct symbol, struct minimal_symbol) <maybe_copied>:
3140 New member.
3141
3142 2019-10-02 Tom Tromey <tromey@adacore.com>
3143
3144 * source.c (struct current_source_location): New.
3145 (current_source_key): New global.
3146 (current_source_symtab, current_source_line)
3147 (current_source_pspace): Remove.
3148 (get_source_location): New function.
3149 (get_current_source_symtab_and_line)
3150 (set_default_source_symtab_and_line)
3151 (set_current_source_symtab_and_line)
3152 (clear_current_source_symtab_and_line, select_source_symtab)
3153 (info_source_command, print_source_lines_base)
3154 (info_line_command, search_command_helper, _initialize_source):
3155 Update.
3156
3157 2019-10-02 Tom Tromey <tromey@adacore.com>
3158
3159 * source.c (select_source_symtab): Don't call
3160 decode_line_with_current_source.
3161
3162 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3163
3164 * symtab.c (lookup_global_symbol): Search global block.
3165
3166 2019-10-02 Tom Tromey <tromey@adacore.com>
3167
3168 * coffread.c (process_coff_symbol): Update.
3169 * dwarf2read.c (var_decode_location, new_symbol): Update.
3170 * mdebugread.c (parse_symbol): Update.
3171 * objfiles.c (relocate_one_symbol): Update.
3172 * stabsread.c (define_symbol, fix_common_block)
3173 (scan_file_globals): Update.
3174 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3175 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3176 * xcoffread.c (process_xcoff_symbol): Update.
3177
3178 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3179
3180 * MAINTAINERS: Update my email address.
3181
3182 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3183
3184 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3185 std::vector.
3186 (build_type_psymtabs_reader): Update for std::vector.
3187 (build_type_psymtab_dependencies): Likewise.
3188 * dwarf2read.h: Remove use of DEF_VEC_P.
3189 (typedef sig_type_ptr): Delete.
3190
3191 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3192
3193 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3194 to std::vector.
3195 (btrace_maint_decode_pt): Likewise, and move allocation of the
3196 vector outside of the loop.
3197 (btrace_maint_update_packets): Update to handle change from VEC to
3198 std::vector.
3199 (btrace_maint_print_packets): Likewise.
3200 (maint_info_btrace_cmd): Likewise.
3201 * btrace.h: Remove use of DEF_VEC_O.
3202 (typedef btrace_pt_packet_s): Delete.
3203 (struct btrace_maint_info) <packets>: Change fromm VEC to
3204 std::vector.
3205 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3206
3207 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3208
3209 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3210 make accesses into the vector constant references.
3211 (btrace_add_pc): Update for std::vector.
3212 (btrace_stitch_bts): Likewise.
3213 (parse_xml_btrace_block): Likewise.
3214 (btrace_maint_update_packets): Likewise.
3215 (btrace_maint_print_packets): Likewise.
3216 (maint_info_btrace_cmd): Likewise.
3217 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3218 std::vector.
3219 (btrace_data::empty): Likewise.
3220 (btrace_data_append): Likewise.
3221 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3222 (typedef btrace_block_s): Delete.
3223 (struct btrace_block): Add constructor.
3224 (struct btrace_data_bts) <blocks>: Change to std::vector.
3225 * nat/linux-btrace.c (perf_event_read_bts): Update for
3226 std::vector.
3227 (linux_read_bts): Likewise.
3228
3229 2019-10-01 Tom Tromey <tom@tromey.com>
3230
3231 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3232
3233 2019-10-01 Tom Tromey <tom@tromey.com>
3234
3235 * stack.c (print_frame, info_frame_command_core): Use
3236 styled_string.
3237 * linux-thread-db.c (try_thread_db_load_1)
3238 (try_thread_db_load_from_pdir_1): Use styled_string.
3239 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3240 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3241 (maybe_print_unsupported_script_warning)
3242 (maybe_print_script_not_found_warning): Use styled_string.
3243 * ada-lang.c (user_select_syms): Use styled_string.
3244
3245 2019-10-01 Tom Tromey <tom@tromey.com>
3246
3247 * p-lang.c (pascal_printstr): Use metadata style.
3248 * value.c (show_convenience): Use metadata style.
3249 * valprint.c (valprint_check_validity, val_print_optimized_out)
3250 (val_print_not_saved, val_print_unavailable)
3251 (val_print_invalid_address, generic_val_print, val_print)
3252 (value_check_printable, val_print_array_elements): Use metadata
3253 style.
3254 * ui-out.h (class ui_out) <field_fmt>: New overload.
3255 <do_field_fmt>: Add style parameter.
3256 * ui-out.c (ui_out::field_fmt): New overload.
3257 * typeprint.c (type_print_unknown_return_type)
3258 (val_print_not_allocated, val_print_not_associated): Use metadata
3259 style.
3260 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3261 parameter.
3262 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3263 * tracepoint.c (tvariables_info_1): Use metadata style.
3264 * stack.c (print_frame_arg, print_frame_info, print_frame)
3265 (info_frame_command_core): Use metadata style.
3266 * skip.c (info_skip_command): Use metadata style.
3267 * rust-lang.c (rust_print_enum): Use metadata style.
3268 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3269 metadata style.
3270 * python/py-framefilter.c (py_print_single_arg): Use metadata
3271 style.
3272 * printcmd.c (do_one_display, print_variable_and_value): Use
3273 metadata style.
3274 * p-valprint.c (pascal_val_print)
3275 (pascal_object_print_value_fields): Use metadata style.
3276 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3277 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3278 parameter.
3279 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3280 * m2-valprint.c (m2_print_long_set): Use metadata style.
3281 * m2-typeprint.c (m2_print_type): Use metadata style.
3282 * infcmd.c (print_return_value_1): Use metadata style.
3283 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3284 * f-valprint.c (info_common_command_for_block): Use metadata
3285 style.
3286 * f-typeprint.c (f_type_print_base): Use metadata style.
3287 * expprint.c (print_subexp_standard): Use metadata style.
3288 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3289 * cli/cli-style.h (class cli_style_option): Add constructor.
3290 (metadata_style): Declare.
3291 * cli/cli-style.c (metadata_style): New global.
3292 (_initialize_cli_style): Register metadata style.
3293 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3294 parameter.
3295 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3296 * c-typeprint.c (c_type_print_base_struct_union)
3297 (c_type_print_base_1): Use metadata style.
3298 * breakpoint.c (watchpoint_value_print)
3299 (print_one_breakpoint_location): Use metadata style.
3300 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3301 style.
3302 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3303 style.
3304 * ada-valprint.c (val_print_packed_array_elements, printstr)
3305 (print_field_values, ada_val_print_ref, ada_val_print): Use
3306 metadata style.
3307 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3308 style.
3309 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3310 style.
3311 * ada-lang.c (user_select_syms): Use metadata style.
3312
3313 2019-10-01 Tom Tromey <tom@tromey.com>
3314
3315 * cli/cli-cmds.c (pwd_command): Style output.
3316
3317 2019-10-01 Pedro Alves <palves@redhat.com>
3318 Tom Tromey <tom@tromey.com>
3319
3320 * symtab.c (print_symbol_info): Use %ps.
3321 (print_msymbol_info): Use %ps.
3322 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3323 * printcmd.c (print_variable_and_value): Use %ps.
3324 * macrocmd.c (show_pp_source_pos): Use %ps.
3325 * infrun.c (print_exited_reason): Use ui_out::message.
3326 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3327 (describe_other_breakpoints): Use ui_out::message and new
3328 formats.
3329 (say_where): Use new formats.
3330 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3331 and new formats.
3332
3333 2019-10-01 Pedro Alves <palves@redhat.com>
3334 Tom Tromey <tom@tromey.com>
3335
3336 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3337 (test_gdb_formats): New function.
3338 (run_tests): Call it.
3339 (test_format_specifier): Update.
3340 * utils.h (fputs_filtered): Update comment.
3341 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3342 (fputs_styled_unfiltered): Declare.
3343 * utils.c (fputs_styled_unfiltered): New function.
3344 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3345 (vfprintf_filtered): Update.
3346 (vfprintf_unfiltered, vprintf_filtered): Update.
3347 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3348 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3349 disallow_ui_out_field>: New constants.
3350 (enum class field_kind): New.
3351 (struct base_field_s, struct signed_field_s): New.
3352 (signed_field): New function.
3353 (struct string_field_s): New.
3354 (string_field): New function.
3355 (struct styled_string_s): New.
3356 (styled_string): New function.
3357 (class ui_out) <message>: Add comment.
3358 <vmessage, call_do_message>: New methods.
3359 <do_message>: Add style parameter.
3360 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3361 methods.
3362 (ui_out::message): Rewrite.
3363 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3364 parameter.
3365 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3366 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3367 gdb_extensions parameter.
3368 (class format_piece): Add parameter to constructor.
3369 (n_int_args): New field.
3370 * gdbsupport/format.c (format_pieces::format_pieces): Add
3371 gdb_extensions parameter. Handle '*'.
3372 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3373 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3374 vfprintf_styled_no_gdbfmt.
3375 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3376 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3377 unfiltered output.
3378 * ui-style.h (struct ui_file_style) <ptr>: New method.
3379
3380 2019-10-01 Tom Tromey <tom@tromey.com>
3381
3382 * unittests/format_pieces-selftests.c: Update. Add final format.
3383 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3384 empty literal pieces.
3385
3386 2019-10-01 Tom Tromey <tom@tromey.com>
3387
3388 * ui-out.h (enum class ui_out_style_kind): Remove.
3389 (class ui_out) <field_string, field_stsream, do_field_string>:
3390 Change type of "style".
3391 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3392 (ui_out::field_string): Update.
3393 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3394 of "style".
3395 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3396 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3397 * stack.c (print_frame_arg, print_frame_info, print_frame):
3398 Update.
3399 * source.c (print_source_lines_base): Update.
3400 * solib.c (info_sharedlibrary_command): Update.
3401 * skip.c (info_skip_command): Update.
3402 * record-btrace.c (btrace_call_history_src_line)
3403 (btrace_call_history): Update.
3404 * python/py-framefilter.c (py_print_frame): Update.
3405 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3406 "style".
3407 * mi/mi-out.c (mi_ui_out::do_table_header)
3408 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3409 (mi_ui_out::do_field_string): Update.
3410 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3411 Update.
3412 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3413 "style".
3414 * cli-out.c (cli_ui_out::do_table_header)
3415 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3416 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3417 (cli_ui_out::do_field_fmt): Update.
3418 * breakpoint.c (print_breakpoint_location): Update.
3419 (update_static_tracepoint): Update.
3420
3421 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3422
3423 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3424 conversion of gdb_datadir.
3425 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3426 remove not needed c_str ().
3427
3428 2019-09-30 Ali Tamur <tamur@google.com>
3429
3430 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3431 (dwarf2_string_attr): Likewise.
3432
3433 2019-09-30 Ali Tamur <tamur@google.com>
3434
3435 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3436 (process_full_type_unit): Likewise.
3437 (dump_die_shallow): Likewise.
3438 (cu_debug_loc_section): Likewise.
3439
3440 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3441
3442 * minsyms.c (compare_minimal_symbols): Rename to...
3443 (minimal_symbol_is_less_than): ...this, and adjust to STL
3444 conventions (return bool, take arguments as references)
3445 (minimal_symbol_reader::install): Call std::sort instead
3446 of qsort.
3447
3448 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3449
3450 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3451 hash and why.
3452 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3453 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3454
3455 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3456
3457 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3458 * psympriv.h (add_psymbol_to_list): Move comment here and update
3459 it.
3460
3461 2019-09-29 Tom de Vries <tdevries@suse.de>
3462
3463 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3464 Use $tmpdir/$(basename "$output_file").dwz instead of
3465 "${output_file}.dwz".
3466
3467 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3468
3469 PR gdb/25045
3470 * hppa-linux-nat.c: Include gdbarch.h.
3471
3472 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3473
3474 * blockframe.c (find_pc_partial_function): Change return type to bool.
3475 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3476 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3477 (stub_gnu_ifunc_resolve_name): Likewise.
3478 * symtab.c (compare_filenames_for_search): Likewise.
3479 (compare_glob_filenames_for_search): Likewise.
3480 (matching_obj_sections): Likewise.
3481 (symbol_matches_domain): Likewise.
3482 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3483 (find_line_pc): Change return type to bool.
3484 (find_line_pc_range): Likewise.
3485 (producer_is_realview): Likewise.
3486 * symtab.h (symbol_matches_domain): Likewise.
3487 (find_pc_partial_function): Likewise.
3488 (find_pc_line_pc_range): Likewise.
3489 (in_gnu_ifunc_stub): Likewise.
3490 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3491 (find_line_pc): Likewise.
3492 (find_line_pc_range): Likewise.
3493 (matching_obj_sections): Likewise.
3494 (find_line_symtab): Change out parameter to bool.
3495 (producer_is_realview): Change return type to bool.
3496 (compare_filenames_for_search): Likewise.
3497 (compare_glob_filenames_for_search): Likewise.
3498
3499 2019-09-26 Tom Tromey <tom@tromey.com>
3500
3501 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3502 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3503 * gdb_usleep.h: Remove.
3504 * gdb_usleep.c: Remove.
3505 * utils.c: Don't include gdb_usleep.h.
3506
3507 2019-09-26 Tom Tromey <tromey@adacore.com>
3508
3509 * python/py-type.c (type_to_type_object): Call check_typedef
3510 for stub types.
3511
3512 2019-09-26 Tom Tromey <tom@tromey.com>
3513
3514 * utils.h (initialize_utils): Don't declare.
3515 * top.c (gdb_init): Don't call initialize_utils.
3516 * utils.c (initialize_utils): Remove. Move contents...
3517 (_initialize_utils): ... here.
3518
3519 2019-09-25 Tom Tromey <tom@tromey.com>
3520
3521 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3522 * utils.h (make_hex_string): Don't declare.
3523 * utils.c (make_hex_string): Remove.
3524
3525 2019-09-24 Tom de Vries <tdevries@suse.de>
3526
3527 PR gdb/23815
3528 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3529 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3530
3531 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3532
3533 * NEWS: Mention new simulator port for PRU.
3534
3535 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3536
3537 * ada-exp.y (write_object_remaining): Update.
3538 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3539 and eliminate the static buffer.
3540 (ada_decode_symbol): Update.
3541 (ada_la_decode): Update.
3542 (ada_sniff_from_mangled_name): Update.
3543 (is_valid_name_for_wild_match): Update.
3544 (ada_lookup_name_info::matches): Update and simplify.
3545 (name_matches_regex): Update.
3546 (ada_add_global_exceptions): Update.
3547 * ada-lang.h (ada_decode): Update signature.
3548 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3549 * dwarf-index-write.c (debug_names::insert): Update.
3550
3551 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3552
3553 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3554 formatting.
3555
3556 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3557
3558 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3559 Change "nonzero" to "true" in documentation.
3560
3561 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3562
3563 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3564 (_initialize_darwin_solib): Don't set
3565 darwin_so_ops.lookup_lib_global_symbol.
3566 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3567 set_gdbarch_iterate_over_objfiles_in_search_order.
3568 (elf_lookup_lib_symbol): Rename to...
3569 (svr4_iterate_over_objfiles_in_search_order): this, and update
3570 to iterate semantics.
3571 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3572 * solib.c (solib_global_lookup): Remove.
3573 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3574 (solib_global_lookup): Remove.
3575 * symtab.c (lookup_global_or_static_symbol): Remove call to
3576 solib_global_lookup.
3577
3578 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3579
3580 * NEWS: Move entries about default MI version now being
3581 version 3, and about the GDB/MI fix for multi-location
3582 breakpoints to the "since GDB 8.3" section.
3583
3584 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3585
3586 GDB 8.3.1 released.
3587
3588 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3589
3590 * NEWS: Mention that Cell/B.E. debugging support was removed.
3591 * MAINTAINERS: Remove spu target.
3592
3593 * config/djgpp/fnchange.lst: Remove entries for removed files.
3594
3595 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3596 spu-multiarch.o, and spu-tdep.o.
3597 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3598 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3599 spu-multiarch.c, and spu-tdep.c.
3600 * spu-linux-nat.c: Remove file.
3601 * spu-multiarch.c: Remove file.
3602 * spu-tdep.c: Remove file.
3603 * spu-tdep.h: Remove file.
3604 * solib-spu.c: Remove file.
3605 * solib-spu.h: Remove file.
3606
3607 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3608 * configure.nat (spu-linux): Remove.
3609 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3610 solib-multiarch.o from gdb_target_obs.
3611 (spu*-*-*): Remove.
3612
3613 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3614 feature flag.
3615 (ppc_linux_no_features): Update.
3616 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3617 Cell/B.E. support.
3618 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3619 (tdesc_powerpc_cell64l): Likewise.
3620 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3621 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3622 Cell/B.E. support.
3623 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3624 Do not include "features/rs6000/powerpc-cell32l.c" or
3625 "features/rs6000/powerpc-cell64l.c".
3626 (ppc_linux_spu_section): Remove.
3627 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3628 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3629 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3630 (ppc_linux_spe_context_lookup): Remove.
3631 (ppc_linux_spe_context_inferior_created): Remove.
3632 (ppc_linux_spe_context_solib_loaded): Remove.
3633 (ppc_linux_spe_context_solib_unloaded): Remove.
3634 (ppc_linux_spe_context): Remove.
3635 (struct ppu2spu_cache): Remove.
3636 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3637 (struct ppu2spu_data): Remove.
3638 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3639 ppu2spu_unwind): Remove.
3640 (ppc_linux_init_abi): Remove Cell/B.E. support.
3641 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3642
3643 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3644 (rs6000/powerpc-cell64l-expedite): Likewise
3645 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3646 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3647 rs6000/powerpc-cell64l.xml.
3648 * features/rs6000/powerpc-cell32l.xml: Remove.
3649 * features/rs6000/powerpc-cell64l.xml: Likewise.
3650 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3651 * features/rs6000/powerpc-cell64l.c: Likewise.
3652 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3653 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3654 * regformats/reg-spu.dat: Remove.
3655
3656 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3657 * corelow.c (struct spuid_list): Remove.
3658 (add_to_spuid_list): Remove.
3659 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3660 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3661 (remote_protocol_features): Remove associated entries.
3662 (_initialize_remote): No longer initialize them.
3663 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3664 * linux-nat.c (SPUFS_MAGIC): Remove.
3665 (linux_proc_xfer_spu): Remove.
3666 (spu_enumerate_spu_ids): Remove.
3667 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3668 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3669 (linux_make_corefile_notes): No longer call it.
3670
3671 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3672 (cooked_write_test): Likewise.
3673
3674 2019-09-20 Tom Tromey <tom@tromey.com>
3675
3676 * NEWS: Mention case-sensitivity of TUI commands.
3677 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3678 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3679 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3680
3681 2019-09-20 Tom Tromey <tom@tromey.com>
3682
3683 * tui/tui-source.c (tui_source_window::set_contents): Use
3684 make_unique_xstrdup.
3685 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3686 make_unique_xstrdup.
3687
3688 2019-09-20 Tom Tromey <tom@tromey.com>
3689
3690 * tui/tui-data.c: Remove separator comments.
3691 * tui/tui-layout.c: Remove separator comments.
3692 * tui/tui-win.c: Remove separator comments.
3693 * tui/tui-wingeneral.c: Remove separator comments.
3694
3695 2019-09-20 Tom Tromey <tom@tromey.com>
3696
3697 * tui/tui.h (strcat_to_buf): Don't declare.
3698 * tui/tui.c (strcat_to_buf): Remove.
3699
3700 2019-09-20 Tom Tromey <tom@tromey.com>
3701
3702 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3703 from "fullname".
3704 * tui/tui-source.c (tui_source_window::set_contents)
3705 (tui_source_window::location_matches_p)
3706 (tui_source_window::maybe_update): Update.
3707
3708 2019-09-20 Tom Tromey <tom@tromey.com>
3709
3710 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3711 Update.
3712 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3713 prefix.
3714 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3715 (tui_data_window::line_from_reg_element_no)
3716 (tui_data_window::first_reg_element_no_inline)
3717 (tui_data_window::show_registers)
3718 (tui_data_window::show_register_group)
3719 (tui_data_window::display_registers_from)
3720 (tui_data_window::display_registers_from_line)
3721 (tui_data_window::first_data_item_displayed)
3722 (tui_data_window::delete_data_content_windows)
3723 (tui_data_window::erase_data_content)
3724 (tui_data_window::do_scroll_vertical)
3725 (tui_data_window::refresh_window)
3726 (tui_data_window::check_register_values): Update.
3727
3728 2019-09-20 Tom Tromey <tom@tromey.com>
3729
3730 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3731 (struct tui_locator_window) <full_name, proc_name>: Now
3732 std::string.
3733 * tui/tui-stack.c (tui_locator_window::make_status_line)
3734 (tui_locator_window::set_locator_fullname)
3735 (tui_locator_window::set_locator_info): Update.
3736 * tui/tui-source.c (tui_source_window::set_contents)
3737 (tui_source_window::showing_source_p): Update.
3738
3739 2019-09-20 Tom Tromey <tom@tromey.com>
3740
3741 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3742 Don't call tui_locator_win_info_ptr.
3743
3744 2019-09-20 Tom Tromey <tom@tromey.com>
3745
3746 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3747
3748 2019-09-20 Tom Tromey <tom@tromey.com>
3749
3750 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3751 height for locator.
3752 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3753 * tui/tui-layout.c (show_source_disasm_command, show_data)
3754 (show_source_or_disasm_and_command): Use 1 as height for locator.
3755
3756 2019-09-20 Tom Tromey <tom@tromey.com>
3757
3758 * tui/tui.c (tui_enable): Update.
3759 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3760 Update.
3761 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3762 Update.
3763 * tui/tui-data.c (win_resized): Now bool.
3764 (tui_win_resized): Return bool.
3765 (tui_set_win_resized_to): Accept a bool.
3766
3767 2019-09-20 Tom Tromey <tom@tromey.com>
3768
3769 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3770 Change type of "refresh_values_only".
3771 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3772 type of "refresh_values_only".
3773
3774 2019-09-20 Tom Tromey <tom@tromey.com>
3775
3776 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3777 std::string.
3778 (tui_disassemble): Add "pos" parameter.
3779 (tui_disasm_window::set_contents): Simplify.
3780
3781 2019-09-20 Tom Tromey <tom@tromey.com>
3782
3783 * tui/tui-winsource.h (struct tui_source_window_base)
3784 <show_source_content>: Now private.
3785 * tui/tui-winsource.c
3786 (tui_source_window_base::show_source_content): Don't handle empty
3787 content case.
3788
3789 2019-09-20 Tom Tromey <tom@tromey.com>
3790
3791 * tui/tui-layout.c (show_source_disasm_command)
3792 (show_source_or_disasm_and_command): Don't call
3793 show_source_content.
3794
3795 2019-09-20 Tom Tromey <tom@tromey.com>
3796
3797 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3798 Declare.
3799 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3800 from tui_make_status_line.
3801 (tui_locator_window::rerender): Update.
3802
3803 2019-09-20 Tom Tromey <tom@tromey.com>
3804
3805 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3806 (tui_locator_window::rerender): Update.
3807
3808 2019-09-20 Tom Tromey <tom@tromey.com>
3809
3810 * tui/tui-winsource.h (struct tui_source_window_base)
3811 <~tui_source_window_base>: Don't declare.
3812 <fullname>: Remove.
3813 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3814 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3815 member.
3816 * tui/tui-source.c (tui_source_window::set_contents): Update.
3817 (tui_source_window::location_matches_p)
3818 (tui_source_window::maybe_update): Update.
3819
3820 2019-09-20 Tom Tromey <tom@tromey.com>
3821
3822 * tui/tui-winsource.h (~tui_source_element): Remove.
3823 (tui_source_element): Update.
3824 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3825 * tui/tui-winsource.c (tui_show_source_line): Update.
3826 * tui/tui-source.c (tui_source_window::set_contents): Update.
3827 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3828
3829 2019-09-20 Tom Tromey <tom@tromey.com>
3830
3831 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3832 declare.
3833 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3834 tui_clear_source_windows_detail.
3835 * tui/tui-winsource.h (struct tui_source_window_base)
3836 <clear_detail>: Don't declare.
3837 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3838 Remove.
3839 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3840
3841 2019-09-20 Tom Tromey <tromey@adacore.com>
3842
3843 PR ada/24919:
3844 * block.c (contained_in): Fix final return value.
3845
3846 2019-09-20 Alan Modra <amodra@gmail.com>
3847
3848 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3849 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3850 (read_indirect_string_from_dwz): Use bfd accessor.
3851 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3852 * machoread.c (macho_symfile_read_all_oso): Likewise.
3853 * solib.c (solib_bfd_open): Likewise.
3854
3855 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3856
3857 * eval.c: Move declaration of overload_resolution to...
3858 * value.h: ...here.
3859
3860 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3861
3862 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3863 * arm-linux-tdep.c: Likewise.
3864 * arm-nbsd-nat.c: Likewise.
3865 * arm-tdep.h: Declare arm_apcs_32.
3866 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3867
3868 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3869
3870 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3871 * dwarf2read.h: Declare dwarf_always_disassemble.
3872
3873 2019-09-19 Tom de Vries <tdevries@suse.de>
3874
3875 PR gdb/25009
3876 * source-cache.c (source_cache::ensure): Catch exception thrown during
3877 construction of the highlighter.
3878
3879 2019-09-18 Alan Modra <amodra@gmail.com>
3880
3881 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3882 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3883 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3884 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3885 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3886 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3887 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3888 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3889 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3890 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3891 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3892 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3893 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3894 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3895 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3896 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3897 * mi/mi-interp.c: Update throughout for bfd section macro and
3898 function changes.
3899 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3900 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3901
3902 2019-09-18 Tom Tromey <tom@tromey.com>
3903
3904 * NEWS: Add entry.
3905 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3906 call rl_initialize.
3907 (tui_enable): Do not call rl_initialize.
3908
3909 2019-09-18 Christian Groessler <chris@groessler.org>
3910
3911 * alpha-linux-nat.c: Include gdbarch.h.
3912
3913 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3914
3915 * ui-file.c: Include cli/cli-style.h.
3916 (term_cli_styling): Remove cli_styling declaration.
3917
3918 2019-09-18 Alan Modra <amodra@gmail.com>
3919
3920 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3921 to bfd_asymbol_section.
3922
3923 2019-09-18 Alan Modra <amodra@gmail.com>
3924
3925 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3926 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3927 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3928
3929 2019-09-18 Alan Modra <amodra@gmail.com>
3930
3931 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3932 * spu-linux-nat.c (spu_bfd_open): Likewise.
3933
3934 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3935
3936 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3937 to bool to match definition in dwarf2read.c.
3938
3939 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3940
3941 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3942 (print_signatures): Likewise.
3943 (trust_pad_over_xvs): Likewise.
3944 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3945 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3946 * arm-linux-nat.c (arm_apcs_32): Likewise.
3947 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3948 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3949 * arm-tdep.c (arm_debug): Likewise.
3950 (arm_apcs_32): Likewise.
3951 * auto-load.c (debug_auto_load): Likewise.
3952 (auto_load_gdb_scripts): Likewise.
3953 (global_auto_load): Likewise.
3954 (auto_load_local_gdbinit): Likewise.
3955 (auto_load_local_gdbinit_loaded): Likewise.
3956 * auto-load.h (global_auto_load): Likewise.
3957 (auto_load_local_gdbinit): Likewise.
3958 (auto_load_local_gdbinit_loaded): Likewise.
3959 * breakpoint.c (disconnected_dprintf): Likewise.
3960 (breakpoint_proceeded): Likewise.
3961 (automatic_hardware_breakpoints): Likewise.
3962 (always_inserted_mode): Likewise.
3963 (target_exact_watchpoints): Likewise.
3964 (_initialize_breakpoint): Update.
3965 * breakpoint.h (target_exact_watchpoints): Change to bool.
3966 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3967 * cli/cli-cmds.c (trace_commands): Likewise.
3968 * cli/cli-cmds.h (trace_commands): Likewise.
3969 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3970 to bool*.
3971 * cli/cli-logging.c (logging_overwrite): Change to bool.
3972 (logging_redirect): Likewise.
3973 (debug_redirect): Likewise.
3974 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3975 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3976 to bool.
3977 <boolean_option_def>: Update.
3978 (struct flag_option_def): Change default type of Context to bool
3979 from int.
3980 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3981 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3982 (get_setshow_command_value_string): Likewise.
3983 * cli/cli-style.c (cli_styling): Change to bool.
3984 (source_styling): Likewise.
3985 * cli/cli-style.h (source_styling): Likewise.
3986 (cli_styling): Likewise.
3987 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3988 to bool.
3989 * command.h (var_types): Update comment.
3990 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3991 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3992 bool.
3993 (debug_compile_cplus_scopes): Likewise.
3994 * compile/compile-internal.h (compile_debug): Likewise.
3995 * compile/compile.c (compile_debug): Likewise.
3996 (struct compile_options) <raw>: Likewise.
3997 * cp-support.c (catch_demangler_crashes): Likewise.
3998 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3999 (usr_cmd_cris_dwarf2_cfi): Likewise.
4000 * csky-tdep.c (csky_debug): Likewise.
4001 * darwin-nat.c (enable_mach_exceptions): Likewise.
4002 * dcache.c (dcache_enabled_p): Likewise.
4003 * defs.h (info_verbose): Likewise.
4004 * demangle.c (demangle): Likewise.
4005 (asm_demangle): Likewise.
4006 * dwarf-index-cache.c (debug_index_cache): Likewise.
4007 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4008 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4009 * dwarf2read.c (check_physname): Likewise.
4010 (use_deprecated_index_sections): Likewise.
4011 (dwarf_always_disassemble): Likewise.
4012 * eval.c (overload_resolution): Likewise.
4013 * event-top.c (set_editing_cmd_var): Likewise.
4014 (exec_done_display_p): Likewise.
4015 * event-top.h (set_editing_cmd_var): Likewise.
4016 (exec_done_display_p): Likewise.
4017 * exec.c (write_files): Likewise.
4018 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4019 (debug_fbsd_nat): Likewise.
4020 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4021 Likewise.
4022 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4023 <backtrace_past_entry> Likewise.
4024 * gdb-demangle.h (demangle): Likewise.
4025 (asm_demangle): Likewise.
4026 * gdb_bfd.c (bfd_sharing): Likewise.
4027 * gdbcore.h (write_files): Likewise.
4028 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4029 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4030 * gdbthread.h (print_thread_events): Likewise.
4031 * gdbtypes.c (opaque_type_resolution): Likewise.
4032 (strict_type_checking): Likewise.
4033 * gnu-nat.c (gnu_debug_flag): Likewise.
4034 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4035 * guile/scm-param.c (pascm_variable): Add boolval.
4036 (add_setshow_generic): Update.
4037 (pascm_param_value): Update.
4038 (pascm_set_param_value_x): Update.
4039 * hppa-tdep.c (hppa_debug): Change to bool..
4040 * infcall.c (may_call_functions_p): Likewise.
4041 (coerce_float_to_double_p): Likewise.
4042 (unwind_on_signal_p): Likewise.
4043 (unwind_on_terminating_exception_p): Likewise.
4044 * infcmd.c (startup_with_shell): Likewise.
4045 * inferior.c (print_inferior_events): Likewise.
4046 * inferior.h (startup_with_shell): Likewise.
4047 (print_inferior_events): Likewise.
4048 * infrun.c (step_stop_if_no_debug): Likewise.
4049 (detach_fork): Likewise.
4050 (debug_displaced): Likewise.
4051 (disable_randomization): Likewise.
4052 (non_stop): Likewise.
4053 (non_stop_1): Likewise.
4054 (observer_mode): Likewise.
4055 (observer_mode_1): Likewise.
4056 (set_observer_mode): Update.
4057 (sched_multi): Change to bool.
4058 * infrun.h (debug_displaced): Likewise.
4059 (sched_multi): Likewise.
4060 (step_stop_if_no_debug): Likewise.
4061 (non_stop): Likewise.
4062 (disable_randomization): Likewise.
4063 * linux-tdep.c (use_coredump_filter): Likewise.
4064 (dump_excluded_mappings): Likewise.
4065 * linux-thread-db.c (auto_load_thread_db): Likewise.
4066 (check_thread_db_on_load): Likewise.
4067 * main.c (captured_main_1): Update.
4068 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4069 xx2_opt, boolean_opt>: Change to bool.
4070 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4071 * maint.c (maintenance_profile_p): Likewise.
4072 (per_command_time): Likewise.
4073 (per_command_space): Likewise.
4074 (per_command_symtab): Likewise.
4075 * memattr.c (inaccessible_by_default): Likewise.
4076 * mi/mi-main.c (mi_async): Likewise.
4077 (mi_async_1): Likewise.
4078 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4079 * nat/fork-inferior.h (startup_with_shell): Likewise.
4080 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4081 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4082 * nios2-tdep.c (nios2_debug): Likewise.
4083 * or1k-tdep.c (or1k_debug): Likewise.
4084 * parse.c (parser_debug): Likewise.
4085 * parser-defs.h (parser_debug): Likewise.
4086 * printcmd.c (print_symbol_filename): Likewise.
4087 * proc-api.c (procfs_trace): Likewise.
4088 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4089 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4090 (set_parameter_value): Update.
4091 (add_setshow_generic): Update.
4092 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4093 to bool*.
4094 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4095 int*.
4096 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4097 * record-btrace.c (record_btrace_target::store_registers): Update.
4098 * record-full.c (record_full_memory_query): Change to bool.
4099 (record_full_stop_at_limit): Likewise.
4100 * record-full.h (record_full_memory_query): Likewise.
4101 * remote-notif.c (notif_debug): Likewise.
4102 * remote-notif.h (notif_debug): Likewise.
4103 * remote.c (use_range_stepping): Likewise.
4104 (interrupt_on_connect): Likewise.
4105 (remote_break): Likewise.
4106 * ser-tcp.c (tcp_auto_retry): Likewise.
4107 * ser-unix.c (serial_hwflow): Likewise.
4108 * skip.c (debug_skip): Likewise.
4109 * solib-aix.c (solib_aix_debug): Likewise.
4110 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4111 (spu_auto_flush_cache_p): Likewise.
4112 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4113 Likewise.
4114 (struct info_print_options) <quiet>: Likewise.
4115 * symfile-debug.c (debug_symfile): Likewise.
4116 * symfile.c (auto_solib_add): Likewise.
4117 (separate_debug_file_debug): Likewise.
4118 * symfile.h (auto_solib_add): Likewise.
4119 (separate_debug_file_debug): Likewise.
4120 * symtab.c (basenames_may_differ): Likewise.
4121 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4122 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4123 (struct info_types_options) <quiet>: Likewise.
4124 * symtab.h (demangle): Likewise.
4125 (basenames_may_differ): Likewise.
4126 * target-dcache.c (stack_cache_enabled_1): Likewise.
4127 (code_cache_enabled_1): Likewise.
4128 * target.c (trust_readonly): Likewise.
4129 (may_write_registers): Likewise.
4130 (may_write_memory): Likewise.
4131 (may_insert_breakpoints): Likewise.
4132 (may_insert_tracepoints): Likewise.
4133 (may_insert_fast_tracepoints): Likewise.
4134 (may_stop): Likewise.
4135 (auto_connect_native_target): Likewise.
4136 (target_stop_and_wait): Update.
4137 (target_async_permitted): Change to bool.
4138 (target_async_permitted_1): Likewise.
4139 (may_write_registers_1): Likewise.
4140 (may_write_memory_1): Likewise.
4141 (may_insert_breakpoints_1): Likewise.
4142 (may_insert_tracepoints_1): Likewise.
4143 (may_insert_fast_tracepoints_1): Likewise.
4144 (may_stop_1): Likewise.
4145 * target.h (target_async_permitted): Likewise.
4146 (may_write_registers): Likewise.
4147 (may_write_memory): Likewise.
4148 (may_insert_breakpoints): Likewise.
4149 (may_insert_tracepoints): Likewise.
4150 (may_insert_fast_tracepoints): Likewise.
4151 (may_stop): Likewise.
4152 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4153 (make_thread_apply_all_options_def_group): Change argument from int*
4154 to bool*.
4155 (thread_apply_all_command): Update.
4156 (print_thread_events): Change to bool.
4157 * top.c (confirm): Likewise.
4158 (command_editing_p): Likewise.
4159 (history_expansion_p): Likewise.
4160 (write_history_p): Likewise.
4161 (info_verbose): Likewise.
4162 * top.h (confirm): Likewise.
4163 (history_expansion_p): Likewise.
4164 * tracepoint.c (disconnected_tracing): Likewise.
4165 (circular_trace_buffer): Likewise.
4166 * typeprint.c (print_methods): Likewise.
4167 (print_typedefs): Likewise.
4168 * utils.c (debug_timestamp): Likewise.
4169 (sevenbit_strings): Likewise.
4170 (pagination_enabled): Likewise.
4171 * utils.h (sevenbit_strings): Likewise.
4172 (pagination_enabled): Likewise.
4173 * valops.c (overload_resolution): Likewise.
4174 * valprint.h (struct value_print_options) <prettyformat_arrays,
4175 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4176 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4177 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4178 Likewise.
4179 * windows-nat.c (new_console): Likewise.
4180 (cygwin_exceptions): Likewise.
4181 (new_group): Likewise.
4182 (debug_exec): Likewise.
4183 (debug_events): Likewise.
4184 (debug_memory): Likewise.
4185 (debug_exceptions): Likewise.
4186 (useshell): Likewise.
4187 * windows-tdep.c (maint_display_all_tib): Likewise.
4188 * xml-support.c (debug_xml): Likewise.
4189
4190 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4191
4192 * source.c (prepare_path_for_appending): New function.
4193 (openp): Make use of new function.
4194 (find_and_open_source): Search for the compilation directory and
4195 source file as a relative path beneath the directory search path.
4196
4197 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4198
4199 * source-cache.c (source_cache::get_line_charpos): Catch
4200 exceptions and return false, this matches the behaviour documented
4201 in the header file.
4202
4203 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4204
4205 * ada-tasks.c (info_task): Remove quoting of the task's name.
4206
4207 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4208
4209 * symfile.c (auto_solib_add): Replace comment with a reference
4210 to the header file.
4211
4212 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4213
4214 * NEWS: Mention that gdb can now be compiled with Python 3
4215 on Windows.
4216
4217 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4218
4219 * maint.c (maint_print_section_data::maint_print_section_data):
4220 Force use of 'float log10 (float)' by casting the argument to
4221 float.
4222
4223 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4224
4225 * maint.c: Add 'cmath' include.
4226 (struct maint_print_section_data): New structure.
4227 (print_section_index): New function.
4228 (print_bfd_section_info): Add header comment, small whitespace
4229 cleanup, and update to call new print_section_index function.
4230 (print_objfile_section_info): Likewise.
4231 (maint_obj_section_from_bfd_section): New function.
4232 (print_bfd_section_info_maybe_relocated): New function.
4233 (maintenance_info_sections): Add header comment, always use
4234 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4235
4236 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4237
4238 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4239 inner scope, add check that the objfile has psymtabs before
4240 checking psymtabs_addrmap.
4241 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4242
4243 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4244
4245 * NEWS: Announce that Ada task names are now shown at more places,
4246 and between quotes (except in info task output).
4247 * gdb/ada-tasks.c (task_to_str): New function.
4248 (display_current_task_id): Call task_to_str.
4249 (task_command_1): Likewise.
4250 (print_ada_task_info): In non-mi mode, Properly align headers and data
4251 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4252
4253 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4254
4255 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4256 prstatus.pr_lwp.pr_info instead of making it up.
4257
4258 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4259
4260 * auto-load.c (auto_load_expand_dir_vars): Update.
4261 * defs.h (gdb_datadir): Change to std::string.
4262 (python_libdir): Likewise.
4263 (relocate_gdb_directory): Change return type to std::string.
4264 * guile/guile.c (gdbscm_data_directory): Update.
4265 (initialize_scheme_side): Update.
4266 * jit.c (jit_reader_dir): Change to std::string.
4267 (jit_reader_load_command): Update.
4268 * main.c (gdb_datadir): Change to std::string.
4269 (python_libdir): Likewise.
4270 (set_gdb_data_directory): Update.
4271 (relocate_path): Change to return std::string.
4272 (relocate_gdb_directory): Change to return std::string.
4273 (relocate_gdbinit_path_maybe_in_datadir): Update.
4274 (captured_main_1): Update.
4275 * python/python.c (do_start_initialization): Update.
4276 * top.c (show_gdb_datadir): Update.
4277 * xml-syscall.c (xml_init_syscalls_info): Update.
4278 (init_syscalls_info): Update.
4279
4280 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4281
4282 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4283 out of get_init_files.
4284 (get_init_files): Update.
4285
4286 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4287
4288 * main.c (get_init_files): Change to use std::string.
4289 (captured_main_1): Update.
4290 (print_gdb_help): Update.
4291
4292 2019-09-11 Ali Tamur <tamur@google.com>
4293
4294 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4295 implementation.
4296
4297 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4298
4299 * dbxread.c (read_dbx_symtab): Update.
4300 * dwarf2read.c (load_partial_dies): Update.
4301 * mdebugread.c (parse_partial_symbols): Update.
4302 (handle_psymbol_enumerators): Update.
4303 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4304 * psymtab.c (add_psymbol_to_bcache): Likewise.
4305 (add_psymbol_to_list): Likewise.
4306 * symtab.c (symbol_set_names): Likewise.
4307 * symtab.h (symbol_set_names): Likewise.
4308 * xcoffread.c (scan_xcoff_symtab): Update.
4309
4310 2019-09-11 Tom Tromey <tom@tromey.com>
4311
4312 * symfile-mem.c (symbol_file_add_from_memory): Use
4313 bfd_set_filename.
4314 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4315 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4316
4317 2019-09-10 Tom Tromey <tromey@adacore.com>
4318
4319 * dwarf-index-write.c (write_psymbols): Extend error message.
4320 (debug_names::insert): Add Ada code.
4321 (debug_names::write_psymbols): Remove Ada check.
4322 (debug_names) <m_string_obstack>: New member.
4323 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4324 (gdb_index_symbol_name_matcher::matches): Remove.
4325 (mapped_index_base::find_name_components_bounds): Add "lang"
4326 parameter.
4327 (mapped_index_base::build_name_components): Also split names
4328 according to Ada syntax.
4329 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4330 type of "match_callback".
4331 (check_match, check_find_bounds_finds)
4332 (dw2_expand_symtabs_matching): Update.
4333 (dw2_debug_names_iterator): Add new constructor.
4334 (dw2_debug_names_map_matching_symbols): New function.
4335 (dw2_debug_names_expand_symtabs_matching): Update.
4336 (dwarf2_debug_names_functions): Use
4337 dw2_debug_names_map_matching_symbols.
4338
4339 2019-09-10 Tom Tromey <tromey@adacore.com>
4340
4341 * dwarf2read.c (dw2_get_file_names_reader): Add the
4342 CU's file name to the results.
4343
4344 2019-09-10 Tom Tromey <tromey@adacore.com>
4345
4346 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4347 map_matching_symbols. Update.
4348 * dwarf2read.c (dw2_map_matching_symbols): Update.
4349 * psymtab.c (match_partial_symbol): Change type; update.
4350 (psym_map_matching_symbols): Likewise.
4351 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4352 type; update.
4353 * symfile.h (struct quick_symbol_functions)
4354 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4355 Remove "match".
4356
4357 2019-09-10 Tom Tromey <tromey@adacore.com>
4358
4359 * psymtab.c (map_block): Remove.
4360 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4361 * symtab.c (iterate_over_symbols_terminated): New function.
4362 * symtab.c (iterate_over_symbols_terminated): Declare.
4363
4364 2019-09-10 Tom Tromey <tromey@adacore.com>
4365
4366 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4367 * language.h (struct language_defn) <la_iterate_over_symbols>:
4368 Return bool.
4369 * symtab.c (iterate_over_symbols): Return bool.
4370 * symtab.h (iterate_over_symbols): Return bool.
4371
4372 2019-09-10 Tom Tromey <tromey@adacore.com>
4373
4374 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4375 (add_nonlocal_symbols): Update.
4376 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4377 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4378 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4379 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4380 Change type of "callback". Remove "data".
4381
4382
4383 2019-09-09 Ali Tamur <tamur@google.com>
4384
4385 * dwarf2read.c (comp_unit_head): Update comment.
4386 (dwarf2_dwo_name): New function declaration.
4387 (dwarf_unit_type_name): New function declaration.
4388 (read_comp_unit_head): Add support for new compilation units,
4389 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4390 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4391 (currently named as "signature") in their header. Also clarify error
4392 messages.
4393 (lookup_dwo_id): New function. Returns the dwo id of the given
4394 compile unit.
4395 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4396 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4397 functions.
4398 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4399 (dwarf2_dwo_name): Get the dwo name if present.
4400 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4401 purposes.
4402
4403 2019-09-09 Tom Tromey <tom@tromey.com>
4404
4405 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4406
4407 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4408
4409 * python/python.c (do_start_initialization): Make progname_copy static,
4410 to avoid a leak report.
4411
4412 2019-09-08 Tom Tromey <tom@tromey.com>
4413
4414 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4415
4416 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4417
4418 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4419 Change type to gdb::optional<block_enum>.
4420 (dw2_symtab_iter_init): Change block_index parameter type
4421 to gdb::optional<block_enum>.
4422 (dw2_lookup_symbol): Change block_index parameter
4423 type to block_enum.c
4424 (dw2_debug_names_lookup_symbol): Likewise.
4425 * psymtab.c (psym_lookup_symbol): Likewise.
4426 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4427 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4428 Likewise.
4429
4430 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4431
4432 * defs.h (relocate_gdb_directory): Change int to bool in
4433 signature and rename flag to relocatable.
4434 * main.c (relocate_path): Likewise.
4435 (relocate_gdb_directory): Likewise.
4436
4437 2019-09-06 Alan Modra <amodra@gmail.com>
4438
4439 * coffread.c (coff_symfile_read): Constify filename variable.
4440 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4441 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4442 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4443 * solib.c (reload_shared_libraries_1): Likewise.
4444 * symfile.c (reread_symbols): Likewise.
4445 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4446 * solib-darwin.c (darwin_bfd_open): Likewise.
4447 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4448
4449 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4450
4451 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4452 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4453
4454 2019-09-03 Tom Tromey <tromey@adacore.com>
4455
4456 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4457 types.
4458 (has_negatives): Unbias a range type bound.
4459 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4460 * gdbtypes.c (operator==): Handle new field.
4461 (create_range_type): Add "bias" parameter.
4462 (create_static_range_type, resolve_dynamic_range): Update.
4463 * gdbtypes.h (struct range_bounds) <bias>: New member.
4464 (create_range_type): Add bias parameter.
4465 * printcmd.c (print_scalar_formatted): Unbias range types.
4466 * value.c (unpack_long): Unbias range types.
4467 (pack_long): Bias range types.
4468
4469 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4470
4471 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4472 probe arguments.
4473
4474 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4475
4476 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4477 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4478 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4479 (compile_probe_arg): Likewise.
4480 * probe.h (get_argument_count): Likewise.
4481 * solib-svr4.c (solib_event_probe_action): Likewise.
4482 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4483
4484 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4485
4486 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4487 code to here...
4488 (svr4_create_solib_event_breakpoints): ...from here.
4489
4490 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4491
4492 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4493 suffix from warning message.
4494
4495 2019-08-30 Tom Tromey <tom@tromey.com>
4496
4497 * tui/tui-winsource.h (struct tui_source_window_base)
4498 <refresh_all>: Don't declare.
4499 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4500 Remove.
4501 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4502 tui_show_locator_content.
4503 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4504 declare.
4505 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4506 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4507 declare.
4508
4509 2019-08-30 Tom Tromey <tom@tromey.com>
4510
4511 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4512
4513 2019-08-30 Tom Tromey <tom@tromey.com>
4514
4515 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4516 Remove unnecessary forward declarations.
4517
4518 2019-08-30 Tom Tromey <tom@tromey.com>
4519
4520 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4521 rerender.
4522 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4523 tui_show_locator_content.
4524
4525 2019-08-30 Tom Tromey <tom@tromey.com>
4526
4527 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4528 (tui_locator_window::rerender): Rewrite using body of previous
4529 tui_show_locator_content.
4530
4531 2019-08-30 Tom Tromey <tom@tromey.com>
4532
4533 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4534 set_locator_fullname>: New methods.
4535 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4536 Rename from tui_set_locator_fullname.
4537 (tui_locator_window::set_locator_info): Rename from
4538 tui_set_locator_info. Return bool.
4539 (tui_update_locator_fullname, tui_show_frame_info): Update.
4540
4541 2019-08-30 Tom Tromey <tom@tromey.com>
4542
4543 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4544
4545 2019-08-30 Tom Tromey <tom@tromey.com>
4546
4547 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4548 call touchwin.
4549
4550 2019-08-30 Tom Tromey <tom@tromey.com>
4551
4552 * tui/tui-wingeneral.c (box_win): Assume win_info and
4553 win_info->handle cannot be NULL.
4554
4555 2019-08-30 Tom Tromey <tom@tromey.com>
4556
4557 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4558 refresh_window>: Declare.
4559 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4560 resize.
4561 (tui_data_item_window::rerender): Rename from
4562 tui_display_register.
4563 (tui_data_item_window::refresh_window): New method.
4564 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4565 no-op.
4566
4567 2019-08-30 Tom Tromey <tom@tromey.com>
4568
4569 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4570 regs_column_count, current_group>: Move later. Now private.
4571 <get_current_group>: New method.
4572 * tui/tui-regs.c (tui_reg_command): Update.
4573 * tui/tui-layout.c (tui_set_layout): Update.
4574
4575 2019-08-30 Tom Tromey <tom@tromey.com>
4576
4577 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4578 (tui_data_window::rerender): Don't call
4579 check_and_display_highlight_if_needed.
4580 (tui_data_window::refresh_all): Remove call to
4581 erase_data_content.
4582
4583 2019-08-30 Tom Tromey <tom@tromey.com>
4584
4585 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4586 (tui_data_window::display_registers_from)
4587 (tui_data_window::display_reg_element_at_line)
4588 (tui_data_window::display_registers_from_line): Remove checks of
4589 "empty".
4590
4591 2019-08-30 Tom Tromey <tom@tromey.com>
4592
4593 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4594 Don't declare.
4595 * tui/tui-regs.c (tui_data_window::show_registers): Call
4596 rerender.
4597 (tui_data_window::rerender): Rename from display_all_data.
4598 (tui_data_window::rerender): Remove old implementation.
4599
4600 2019-08-30 Tom Tromey <tom@tromey.com>
4601
4602 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4603 text.
4604 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4605
4606 2019-08-29 Bernhard Wodok <barto@gmx.net>
4607 Sergio Durigan Junior <sergiodj@redhat.com>
4608
4609 PR win32/24284
4610 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4611
4612 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4613
4614 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4615 when searching for types.
4616
4617 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4618
4619 * f-lang.c (f_language_defn): Use f_print_typedef.
4620 * f-lang.h (f_print_typedef): Declare.
4621 * f-typeprint.c (f_print_typedef): Define.
4622
4623 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4624
4625 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4626
4627 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4628
4629 * cli/cli-utils.c (info_print_options_defs): Delete.
4630 (make_info_print_options_def_group): Delete.
4631 (extract_info_print_options): Delete.
4632 (info_print_command_completer): Delete.
4633 (info_print_args_help): Add extra parameter, and optionally
4634 include text about -n flag.
4635 * cli/cli-utils.h (struct info_print_options): Delete.
4636 (extract_info_print_options): Delete declaration.
4637 (info_print_command_completer): Delete declaration.
4638 (info_print_args_help): Add extra parameter, extend header
4639 comment.
4640 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4641 search_symbols.
4642 * stack.c (struct info_print_options): New type.
4643 (info_print_options_defs): New file scoped variable.
4644 (make_info_print_options_def_group): New static function.
4645 (info_print_command_completer): New static function.
4646 (info_locals_command): Update to use new local functions.
4647 (info_args_command): Likewise.
4648 (_initialize_stack): Add extra parameter to calls to
4649 info_print_args_help.
4650 * symtab.c (search_symbols): Add extra parameter, use this to
4651 possibly excluse non-debug symbols.
4652 (symtab_symbol_info): Add extra parameter, which is passed on to
4653 search_symbols.
4654 (struct info_print_options): New type.
4655 (info_print_options_defs): New file scoped variable.
4656 (make_info_print_options_def_group): New static function.
4657 (info_print_command_completer): New static function.
4658 (info_variables_command): Update to use local functions, and pass
4659 extra parameter through to symtab_symbol_info.
4660 (info_functions_command): Likewise.
4661 (info_types_command): Pass additional argument through to
4662 symtab_symbol_info.
4663 (rbreak_command): Pass extra argument to search_symbols.
4664 (_initialize_symtab): Add extra arguments for calls to
4665 info_print_args_help, and update help text for 'info variables',
4666 'whereis', and 'info functions' commands.
4667 * symtab.h (search_symbols): Add extra argument to declaration.
4668 * NEWS: Mention new flags.
4669
4670 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4671
4672 * symtab.c (lookup_static_symbol): Call the new function (and move
4673 it down to be next to lookup_global_symbol).
4674 (struct global_sym_lookup_data): Add block_enum member and rename to...
4675 (struct global_or_static_sym_lookup_data): ...this.
4676 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4677 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4678 (lookup_symbol_global_or_static_iterator_cb): ...this.
4679 (lookup_global_or_static_symbol): New function.
4680 (lookup_global_symbol): Call new function.
4681
4682 2019-08-26 Tom de Vries <tdevries@suse.de>
4683
4684 PR c++/24852
4685 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4686 when pc_probe.prob == NULL.
4687
4688 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4689
4690 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4691 variable symbol_linkage to symbol_linkage_.
4692
4693 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4694
4695 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4696 represent whether the symbol is static, dynamic, or we don't
4697 know.
4698
4699 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4700
4701 * gdb/rx-tdep.c (rx_register_names): New.
4702 (rx_register_name): Delete.
4703 (rx_psw_type): Delete.
4704 (rx_fpsw_type): Delete.
4705 (rx_register_type): Delete.
4706 (rx_gdbarch_init): Convert target-descriptions.
4707 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4708 * gdb/features/Makefile: Add rx.xml.
4709 * gdb/features/rx.xml: New.
4710 * gdb/features/rx.c: Generated.
4711 * gdb/NEWS: Mention target description support.
4712
4713 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4714
4715 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4716 *slot_ptr.
4717
4718 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4719
4720 * configure.ac: Don't check for 'dlfcn.h' (moved to
4721 gdbsupport/common.m4).
4722 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4723 'gdbsupport/'.
4724 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4725 * compile/compile-c-support.c: Include
4726 'gdbsupport/gdb-dlfcn.h'.
4727 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4728 * gdb-dlfcn.c: Move to...
4729 * gdbsupport/gdb-dlfcn.c: ... here.
4730 * gdb-dlfcn.h: Move to...
4731 * gdbsupport/gdb-dlfcn.h: ... here.
4732
4733 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4734
4735 * nios2-tdep.c (struct reg_value): Improve comments. Make
4736 the offset field signed.
4737
4738 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4739
4740 * python/lib/gdb/__init__.py (_execute_file): New function.
4741 * python/python.c (python_run_simple_file): Call gdb._execute_file
4742 on Windows.
4743
4744 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4745
4746 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4747 all uses as this was never set to anything but a zero value.
4748
4749 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4750
4751 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4752
4753 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4754
4755 * tui/tui-data.h (tui_gen_win_info): Add an =default
4756 move constructor, required by some GCC versions.
4757
4758 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4759
4760 * go32-nat.c (go32_sysinfo): Add hygon_p.
4761
4762 2019-08-20 Tom Tromey <tom@tromey.com>
4763
4764 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4765 line_from_reg_element_no, first_reg_element_no_inline,
4766 display_all_data, delete_data_content_windows,
4767 erase_data_content>: Now private.
4768
4769 2019-08-20 Tom Tromey <tom@tromey.com>
4770
4771 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4772 (tui_unhighlight_win, tui_highlight_win)
4773 (tui_win_info::make_window): Update.
4774 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4775
4776 2019-08-20 Tom Tromey <tom@tromey.com>
4777
4778 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4779 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4780 (MAX_PID_WIDTH): Move to tui-stack.c.
4781 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4782 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4783 (MAX_PID_WIDTH): Move from tui-data.h.
4784
4785 2019-08-20 Tom Tromey <tom@tromey.com>
4786
4787 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4788 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4789 (box_win): Update.
4790 (tui_gen_win_info::make_window): Rename from tui_make_window.
4791 (tui_win_info::make_window): New method.
4792 (tui_gen_win_info::make_visible): Update.
4793 * tui/tui-source.c (tui_source_window::set_contents): Update.
4794 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4795 (tui_data_window::display_registers_from): Update.
4796 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4797 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4798 Declare.
4799 <can_box>: Remove.
4800 <title>: Remove.
4801 (struct tui_win_info) <make_window>: Declare.
4802 <can_box>: Now virtual.
4803 <title>: New member.
4804 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4805 * tui/tui-command.c (tui_cmd_window::resize): Update.
4806
4807 2019-08-20 Tom Tromey <tom@tromey.com>
4808
4809 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4810 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4811 (tui_data_window::check_register_values): Update.
4812
4813 2019-08-20 Tom Tromey <tom@tromey.com>
4814
4815 * tui/tui-regs.h (struct tui_data_window): Use
4816 DISABLE_COPY_AND_ASSIGN.
4817 <regs_content>: Change type, removing unique_ptr.
4818 <tui_data_window>: Add move constructor.
4819 * tui/tui-regs.c (tui_data_window::show_registers)
4820 (tui_data_window::show_register_group)
4821 (tui_data_window::display_registers_from)
4822 (tui_data_window::display_registers_from)
4823 (tui_data_window::first_data_item_displayed)
4824 (tui_data_window::delete_data_content_windows)
4825 (tui_data_window::rerender, tui_data_window::refresh_window)
4826 (tui_data_window::check_register_values): Update.
4827
4828 2019-08-20 Tom Tromey <tom@tromey.com>
4829
4830 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4831 show_register_group>: Declare.
4832 (tui_show_register_group): Don't declare.
4833 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4834 tui_show_registers.
4835 (tui_data_window::show_register_group): Rename from
4836 tui_show_register_group.
4837 (tui_data_window::check_register_values, tui_reg_command):
4838 Update.
4839 * tui/tui-layout.c (tui_set_layout): Update.
4840
4841 2019-08-20 Tom Tromey <tom@tromey.com>
4842
4843 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4844 Declare.
4845 (tui_check_register_values): Don't declare.
4846 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4847 from tui_check_register_values.
4848 * tui/tui-hooks.c (tui_register_changed): Update.
4849
4850 2019-08-20 Tom Tromey <tom@tromey.com>
4851
4852 * tui/tui-regs.c (tui_reg_layout): Move later.
4853 (tui_show_registers): Don't enable TUI mode or change layout.
4854
4855 2019-08-20 Tom Tromey <tom@tromey.com>
4856
4857 * tui/tui-regs.h (struct tui_data_item_window)
4858 <~tui_data_item_window>: Remove.
4859 <content>: Now a unique_xmalloc_ptr.
4860 * tui/tui-regs.c (tui_register_format): Return a
4861 unique_xmalloc_ptr.
4862 (tui_get_register): Update.
4863 (~tui_data_item_window): Remove.
4864 (tui_data_window::display_registers_from, tui_display_register):
4865 Update.
4866 * tui/tui-io.h (tui_expand_tabs): Update.
4867 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4868 Remove "col" parameter.
4869
4870 2019-08-20 Tom Tromey <tom@tromey.com>
4871
4872 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4873 field.
4874 * tui/tui-regs.c (~tui_data_item_window): Update.
4875
4876 2019-08-20 Tom Tromey <tom@tromey.com>
4877
4878 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4879 earlier.
4880
4881 2019-08-20 Tom Tromey <tom@tromey.com>
4882
4883 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4884
4885 2019-08-20 Tom Tromey <tom@tromey.com>
4886
4887 * tui/tui-source.h (struct tui_source_window): Update.
4888 * tui/tui-regs.c (tui_show_registers): Update.
4889 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4890 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4891 (NO_REGS_STRING): Remove defines.
4892
4893 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4894
4895 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4896 unnecessary thread walk if remote doesn't support the packet.
4897
4898 2019-08-19 Tom Tromey <tromey@adacore.com>
4899
4900 * python/py-value.c (value_has_field): Fix indentation.
4901
4902 2019-08-19 Tom Tromey <tromey@adacore.com>
4903
4904 * printcmd.c (do_one_display, info_display_command): Update.
4905 * block.h (contained_in): Return bool. Add allow_nested
4906 parameter.
4907 * block.c (contained_in): Return bool. Add allow_nested
4908 parameter.
4909
4910 2019-08-19 Tom Tromey <tom@tromey.com>
4911
4912 * configure: Rebuild.
4913 * configure.ac: Disallow the combination of -static-libstdc++ and
4914 source highlight.
4915 * source-cache.c (get_language_name): Handle rust.
4916 (source_cache::get_source_lines): Ignore highlighting exceptions.
4917
4918 2019-08-16 Tom Tromey <tom@tromey.com>
4919
4920 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4921 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4922 (struct tui_source_window_base) <make_visible, refresh_window,
4923 resize>: Remove methods.
4924 <execution_info>: Remove field.
4925 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4926 (tui_show_source_line, tui_source_window_base)
4927 (~tui_source_window_base): Update.
4928 (tui_source_window_base::resize)
4929 (tui_source_window_base::make_visible)
4930 (tui_source_window_base::refresh_window): Remove.
4931 (tui_source_window_base::update_exec_info): Update.
4932 * tui/tui-source.c (tui_source_window::set_contents): Update.
4933 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4934
4935 2019-08-16 Tom Tromey <tom@tromey.com>
4936
4937 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4938 deprecated_query_hook.
4939
4940 2019-08-16 Tom Tromey <tom@tromey.com>
4941
4942 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4943 (tui_update_source_windows_with_line): Update.
4944 * tui/tui-source.h (struct tui_source_window)
4945 <show_symtab_source>: Declare.
4946 (tui_show_symtab_source): Don't declare.
4947 * tui/tui-source.c (tui_show_symtab_source): Rename from
4948 tui_show_symtab_source.
4949
4950 2019-08-16 Tom Tromey <tom@tromey.com>
4951
4952 * tui/tui-winsource.h (struct tui_source_window_base)
4953 <set_contents>: Declare.
4954 * tui/tui-winsource.c
4955 (tui_source_window_base::update_source_window_as_is): Update.
4956 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4957 Declare.
4958 (tui_set_source_content): Don't declare.
4959 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4960 tui_set_source_content.
4961 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4962 Declare.
4963 (tui_set_disassem_content): Don't declare.
4964 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4965 tui_set_disassem_content.
4966
4967 2019-08-16 Tom Tromey <tom@tromey.com>
4968
4969 * tui/tui-winsource.h (struct tui_source_window_base)
4970 <update_breakpoint_info>: Declare.
4971 (tui_update_breakpoint_info): Don't declare.
4972 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4973 (tui_update_all_breakpoint_info): Update.
4974 (tui_source_window_base::update_breakpoint_info): Rename from
4975 tui_update_breakpoint_info.
4976 (tui_source_window_base::update_exec_info): Update.
4977
4978 2019-08-16 Tom Tromey <tom@tromey.com>
4979
4980 * tui/tui-winsource.h (struct tui_source_window_base)
4981 <update_source_window>: Declare.
4982 (tui_update_source_window): Don't declare.
4983 * tui/tui-winsource.c
4984 (tui_source_window_base::update_source_window): Rename from
4985 tui_update_source_window.
4986 (tui_source_window_base::rerender): Update.
4987 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4988 * tui/tui-disasm.c (tui_show_disassem)
4989 (tui_show_disassem_and_update_source)
4990 (tui_disasm_window::maybe_update): Update.
4991
4992 2019-08-16 Tom Tromey <tom@tromey.com>
4993
4994 * tui/tui-winsource.h (struct tui_source_window_base)
4995 <update_source_window_as_is>: Declare.
4996 (tui_update_source_window_as_is): Don't declare.
4997 * tui/tui-winsource.c (tui_update_source_window): Update
4998 (tui_source_window_base::update_source_window_as_is): Rename from
4999 tui_update_source_window_as_is.
5000 (tui_source_window_base::refill): Update.
5001 * tui/tui-source.c (tui_show_symtab_source): Update.
5002 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5003 Update.
5004
5005 2019-08-16 Tom Tromey <tom@tromey.com>
5006
5007 * tui/tui-winsource.h (tui_update_source_window)
5008 (tui_update_source_window_as_is): Remove "noerror" parameter.
5009 * tui/tui-winsource.c (tui_update_source_window)
5010 (tui_update_source_window_as_is): Remove "noerror" parameter.
5011 (tui_update_source_windows_with_addr)
5012 (tui_update_source_windows_with_line)
5013 (tui_source_window_base::rerender)
5014 (tui_source_window_base::refill): Update.
5015 * tui/tui-source.h (tui_set_source_content)
5016 (tui_show_symtab_source): Remove "noerror" parameter.
5017 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5018 parameter.
5019 (tui_show_symtab_source): Likewise.
5020 (tui_source_window::maybe_update): Update.
5021 * tui/tui-disasm.c (tui_show_disassem)
5022 (tui_show_disassem_and_update_source)
5023 (tui_disasm_window::do_scroll_vertical)
5024 (tui_disasm_window::maybe_update): Update.
5025
5026 2019-08-16 Tom Tromey <tom@tromey.com>
5027
5028 * tui/tui.c (tui_is_window_visible): Update.
5029 * tui/tui-wingeneral.c (tui_make_window)
5030 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5031 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5032 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5033 (tui_set_win_height_command, parse_scrolling_args): Update.
5034 * tui/tui-source.c (tui_source_window::style_changed): Update.
5035 * tui/tui-regs.c (tui_show_registers)
5036 (tui_data_window::first_data_item_displayed)
5037 (tui_data_window::delete_data_content_windows)
5038 (tui_check_register_values, tui_reg_command): Update.
5039 * tui/tui-disasm.c (tui_show_disassem): Update.
5040 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5041 method.
5042 <is_visible>: Remove field.
5043 * tui/tui-data.c (tui_next_win, tui_prev_win)
5044 (tui_delete_invisible_windows): Update.
5045
5046 2019-08-16 Tom Tromey <tom@tromey.com>
5047
5048 * tui/tui-winsource.h (struct tui_source_window_base)
5049 <m_has_locator>: Remove.
5050 * tui/tui-layout.c (show_source_disasm_command, show_data)
5051 (show_source_or_disasm_and_command): Update.
5052
5053 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5054
5055 * NEWS (Other MI changes): New subsection.
5056 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5057 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5058 * arch-utils.c (default_get_pc_address_flags): New function.
5059 * arch-utils.h (default_get_pc_address_flags): New declaration.
5060 * gdbarch.sh: Add get_pc_address_flags.
5061 * gdbarch.c: Regenerate.
5062 * gdbarch.h: Likewise.
5063 * stack.c (print_pc): New function.
5064 (print_frame_info) (print_frame): Call print_pc.
5065
5066 2019-08-16 Tom de Vries <tdevries@suse.de>
5067
5068 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5069 print_objfile_section_info.
5070
5071 2019-08-15 Tom Tromey <tom@tromey.com>
5072
5073 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5074 calling update_cmdwin_start_line.
5075 * tui/tui-winsource.h (struct tui_source_window_base)
5076 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5077 <rerender>: Declare.
5078 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5079 Call rerender.
5080 (tui_source_window_base::set_new_height): Remove.
5081 (tui_source_window_base::rerender): Rename from
5082 do_make_visible_with_new_height.
5083 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5084 resize method.
5085 (tui_win_info::make_invisible_and_set_new_height)
5086 (tui_win_info::make_visible_with_new_height): Remove.
5087 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5088 Declare.
5089 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5090 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5091 do_make_visible_with_new_height>: Don't declare.
5092 <rerender>: Declare.
5093 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5094 set_new_height.
5095 (tui_data_window::do_make_visible_with_new_height): Remove.
5096 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5097 call tui_show_locator_content.
5098 (tui_gen_win_info::resize): Call rerender.
5099 (show_source_or_disasm_and_command): Don't call
5100 tui_show_locator_content.
5101 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5102 method.
5103 (struct tui_win_info) <rerender>: Declare.
5104 <set_new_height, make_invisible_and_set_new_height,
5105 make_visible_with_new_height>: Don't declare.
5106 * tui/tui-data.c (tui_win_list::rerender): New method.
5107 * tui/tui-command.h (struct tui_cmd_window)
5108 <do_make_visible_with_new_height>: Don't declare.
5109 * tui/tui-command.c
5110 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5111
5112 2019-08-15 Tom Tromey <tromey@adacore.com>
5113
5114 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5115 * ada-lang.c (ada_enum_name): Likewise.
5116
5117 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5118
5119 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5120 leading underscore.
5121 (GdbOutputErrorFile): Likewise.
5122 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5123 accordingly.
5124 (execute_unwinders): Rename to have a leading underscore.
5125 (auto_load_packages): Likewise.
5126 (global scope): Adjust call to auto_load_packages accordingly.
5127 (GdbSetPythonDirectory): Likewise.
5128 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5129 instead of execute_unwinders.
5130
5131 2019-08-15 Tom Tromey <tom@tromey.com>
5132
5133 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5134 (show_data): Don't change window visibility.
5135 (tui_gen_win_info::resize): Remove special case for command
5136 window. Use wresize, when available.
5137 (show_source_or_disasm_and_command): Don't change window
5138 visibility.
5139 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5140 <make_visible>: New method.
5141 * tui/tui-command.c (tui_cmd_window::resize): New method.
5142
5143 2019-08-15 Tom Tromey <tom@tromey.com>
5144
5145 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5146 (struct tui_source_windows): New.
5147 * tui/tui-winsource.c (tui_display_main): Update.
5148 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5149 (new_height_ok, parse_scrolling_args): Update.
5150 * tui/tui-layout.c (show_layout, show_data): Update.
5151 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5152 (tui_add_to_source_windows): Don't declare.
5153 * tui/tui-data.c (source_windows, tui_source_windows)
5154 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5155
5156 2019-08-15 Tom Tromey <tom@tromey.com>
5157
5158 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5159 Rename from reset.
5160 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5161 * tui/tui-layout.c (show_source_disasm_command, show_data):
5162 Update.
5163 (tui_gen_win_info::resize): Rename.
5164 (show_source_or_disasm_and_command): Update.
5165 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5166 reset.
5167
5168 2019-08-15 Tom Tromey <tom@tromey.com>
5169
5170 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5171 * tui/tui-interp.c (tui_interp::init): Don't call
5172 tui_initialize_static_data.
5173 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5174
5175 2019-08-15 Tom Tromey <tom@tromey.com>
5176
5177 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5178 examine tui_win_list.
5179
5180 2019-08-15 Tom Tromey <tom@tromey.com>
5181
5182 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5183 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5184 tui_clear_source_content.
5185 (tui_clear_source_content): Remove.
5186 (tui_source_window_base::do_erase_source_content): Hoist call to
5187 content.clear().
5188 * tui/tui-stack.c (tui_show_frame_info): Don't call
5189 tui_clear_source_content.
5190
5191 2019-08-15 Tom Tromey <tom@tromey.com>
5192
5193 * tui/tui-winsource.h (struct tui_source_window_base)
5194 <do_erase_source_content>: New method.
5195 <erase_source_content>: New method.
5196 (tui_erase_source_content): Don't declare.
5197 * tui/tui-winsource.c (tui_clear_source_content): Update.
5198 (tui_source_window_base::do_erase_source_content): Rename from
5199 tui_erase_source_content.
5200 (tui_source_window_base::show_source_content): Update.
5201 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5202 * tui/tui-source.h (struct tui_source_window)
5203 <erase_source_content>: New method.
5204 * tui/tui-disasm.h (struct tui_disasm_window)
5205 <erase_source_content>: New method.
5206
5207 2019-08-15 Tom Tromey <tom@tromey.com>
5208
5209 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5210 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5211 constructor.
5212 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5213 * tui/tui-source.c (tui_set_source_content): Update.
5214 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5215
5216 2019-08-15 Tom Tromey <tom@tromey.com>
5217
5218 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5219 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5220 tui-source.c.
5221 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5222 Declare.
5223 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5224 method.
5225 (tui_source_window::maybe_update): Update.
5226
5227 2019-08-15 Tom Tromey <tom@tromey.com>
5228
5229 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5230 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5231 tui-disasm.c.
5232 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5233 Declare.
5234 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5235 method.
5236 (tui_disasm_window::maybe_update): Update.
5237
5238 2019-08-15 Tom Tromey <tom@tromey.com>
5239
5240 * tui/tui-winsource.h (struct tui_source_window_base)
5241 <maybe_update>: Declare.
5242 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5243 method.
5244 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5245 Declare.
5246 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5247 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5248 Declare.
5249 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5250
5251 2019-08-15 Tom Tromey <tom@tromey.com>
5252
5253 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5254
5255 2019-08-15 Tom Tromey <tom@tromey.com>
5256
5257 * tui/tui-wingeneral.c: Include tui-stack.h.
5258 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5259 (struct tui_locator_window): Move from tui-data.h.
5260 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5261 (tui_initialize_static_data): Move from tui-data.c.
5262 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5263 (struct tui_locator_window): Move to tui-stack.c.
5264 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5265 (tui_initialize_static_data): Move to tui-stack.c.
5266
5267 2019-08-15 Tom Tromey <tom@tromey.com>
5268
5269 * tui/tui-layout.c (show_source_disasm_command)
5270 (show_source_or_disasm_and_command): Use make_visible method, not
5271 tui_make_window.
5272 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5273 Remove.
5274
5275 2019-08-15 Tom Tromey <tom@tromey.com>
5276
5277 * tui/tui-wingeneral.h (tui_make_window): Update.
5278 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5279 parameter.
5280 (tui_gen_win_info::make_visible): Update.
5281 * tui/tui-regs.c (tui_data_window::display_registers_from):
5282 Update.
5283 * tui/tui-layout.c (show_source_disasm_command)
5284 (show_source_or_disasm_and_command): Update.
5285 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5286 (enum tui_box): Remove.
5287 (struct tui_win_info) <can_box>: New method.
5288 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5289 method.
5290
5291 2019-08-15 Tom de Vries <tdevries@suse.de>
5292
5293 * linux-nat-trad.c: Include gdbarch.h.
5294
5295 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5296
5297 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5298 register sizes.
5299
5300 2019-08-14 Tom Tromey <tromey@adacore.com>
5301
5302 * darwin-nat.c: Include gdbarch.h.
5303 * darwin-nat-info.c: Include gdbarch.h.
5304
5305 2019-08-13 Tom Tromey <tom@tromey.com>
5306
5307 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5308 Remove.
5309 * tui/tui-data.c (tui_initialize_static_data): Update.
5310
5311 2019-08-13 Tom Tromey <tom@tromey.com>
5312
5313 * tui/tui-winsource.h (struct tui_exec_info_window)
5314 <~tui_exec_info_window, maybe_allocate_content, get_content,
5315 m_content>: Remove.
5316 (struct tui_source_window_base) <set_exec_info_content,
5317 show_exec_info_content>: Don't declare.
5318 * tui/tui-winsource.c
5319 (tui_exec_info_window::maybe_allocate_content): Remove.
5320 (tui_source_window_base::update_exec_info): Rename from
5321 set_exec_info_content.
5322 (tui_source_window_base::show_exec_info_content)
5323 (tui_source_window_base::update_exec_info): Remove.
5324
5325 2019-08-13 Tom Tromey <tom@tromey.com>
5326
5327 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5328 declare.
5329 * tui/tui-winsource.c (tui_update_source_window_as_is)
5330 (tui_update_source_windows_with_addr, tui_erase_source_content):
5331 Update.
5332 (tui_clear_exec_info_content): Remove.
5333
5334 2019-08-13 Tom Tromey <tom@tromey.com>
5335
5336 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5337 declare.
5338 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5339 call tui_erase_exec_info_content.
5340 (tui_clear_exec_info_content): Rename from
5341 tui_erase_exec_info_content.
5342 (tui_clear_exec_info_content): Delete.
5343
5344 2019-08-13 Tom Tromey <tom@tromey.com>
5345
5346 * tui/tui-winsource.h (struct tui_source_window_base)
5347 <show_exec_info_content>: Declare.
5348 (tui_show_exec_info_content): Don't declare.
5349 * tui/tui-winsource.c
5350 (tui_source_window_base::show_exec_info_content): Rename from
5351 tui_show_exec_info_content.
5352 (tui_source_window_base::update_exec_info): Update.
5353
5354 2019-08-13 Tom Tromey <tom@tromey.com>
5355
5356 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5357 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5358 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5359 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5360 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5361 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5362 ... here.
5363
5364 2019-08-13 Tom Tromey <tom@tromey.com>
5365
5366 * tui/tui-winsource.h (struct tui_source_window_base)
5367 <update_exec_info>: Declare.
5368 (tui_update_exec_info): Don't declare.
5369 * tui/tui-winsource.c (tui_update_source_window_as_is)
5370 (tui_source_window_base::refresh_all)
5371 (tui_update_all_breakpoint_info): Update.
5372 (tui_source_window_base::update_exec_info): Rename from
5373 tui_update_exec_info.
5374 * tui/tui-stack.c (tui_show_frame_info): Update.
5375
5376 2019-08-13 Tom Tromey <tom@tromey.com>
5377
5378 * tui/tui-winsource.h (struct tui_source_window_base)
5379 <set_exec_info_content>: Declare.
5380 (tui_set_exec_info_content): Don't declare.
5381 * tui/tui-winsource.c
5382 (tui_source_window_base::set_exec_info_content): Rename from
5383 tui_set_exec_info_content.
5384 (tui_update_exec_info): Update.
5385
5386 2019-08-13 Tom Tromey <tom@tromey.com>
5387
5388 * tui/tui-winsource.h (struct tui_source_window_base)
5389 <show_source_content>: Declare.
5390 (tui_show_source_content): Don't declare.
5391 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5392 (tui_source_window_base::show_source_content): Rename from
5393 tui_show_source_content.
5394 (tui_source_window_base::refresh_all): Update.
5395 * tui/tui-layout.c (show_source_disasm_command)
5396 (show_source_or_disasm_and_command): Update.
5397
5398 2019-08-13 Tom Tromey <tom@tromey.com>
5399
5400 * tui/tui-winsource.c (tui_erase_source_content)
5401 (tui_show_source_content, tui_source_window_base::refresh_all):
5402 Update.
5403 * tui/tui-wingeneral.h
5404 (tui_check_and_display_highlight_if_needed): Don't declare.
5405 * tui/tui-wingeneral.c
5406 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5407 check_and_display_highlight_if_needed.
5408 * tui/tui-win.c (tui_rehighlight_all)
5409 (tui_win_info::make_visible_with_new_height): Update.
5410 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5411 (tui_data_window::erase_data_content)
5412 (tui_data_window::display_all_data): Update.
5413 * tui/tui-data.h (struct tui_win_info)
5414 <check_and_display_highlight_if_needed>: Declare.
5415
5416 2019-08-13 Tom Tromey <tom@tromey.com>
5417
5418 * tui/tui-win.c (tui_resize_all): Call
5419 tui_delete_invisible_windows.
5420 * tui/tui-layout.c (show_layout): Call
5421 tui_delete_invisible_windows.
5422 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5423 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5424
5425 2019-08-13 Tom Tromey <tom@tromey.com>
5426
5427 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5428 tui_add_win_to_layout.
5429
5430 2019-08-13 Tom Tromey <tom@tromey.com>
5431
5432 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5433 * tui/tui-layout.c (tui_default_win_height): Now static.
5434
5435 2019-08-13 Tom Tromey <tom@tromey.com>
5436
5437 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5438 single switch.
5439 (show_source_disasm_command, show_source_or_disasm_and_command):
5440 Don't check current layout.
5441
5442 2019-08-13 Tom Tromey <tom@tromey.com>
5443
5444 * tui/tui-wingeneral.c (make_all_visible): Remove.
5445 (tui_make_all_invisible): Simplify.
5446 * tui/tui-layout.c (tui_make_all_invisible): Move from
5447 tui-wingeneral.c; simplify.
5448 (show_layout): Hoist call to tui_make_all_invisible.
5449 (show_data): Don't call tui_make_all_invisible.
5450
5451 2019-08-13 Tom Tromey <tom@tromey.com>
5452
5453 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5454 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5455
5456 2019-08-13 Tom Tromey <tom@tromey.com>
5457
5458 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5459 tui-data.c.
5460 (show_source_disasm_command, show_data)
5461 (show_source_or_disasm_and_command): Don't use
5462 tui_set_current_layout_to.
5463 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5464 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5465 tui-layout.c.
5466 (tui_set_current_layout_to): Remove.
5467
5468 2019-08-13 Tom Tromey <tom@tromey.com>
5469
5470 * tui/tui-layout.c (tui_set_layout): Update.
5471 * tui/tui-data.h (struct tui_layout_def): Remove.
5472 (tui_layout_def): Don't declare.
5473 * tui/tui-data.c (layout_def): Remove.
5474 (tui_layout_def): Remove.
5475
5476 2019-08-13 Tom Tromey <tom@tromey.com>
5477
5478 * tui/tui-winsource.h (struct tui_source_window_base)
5479 <clear_detail>: No longer "override".
5480 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5481 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5482 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5483 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5484 Remove.
5485 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5486
5487 2019-08-13 Tom Tromey <tromey@adacore.com>
5488
5489 * tracepoint.c: Don't include readline.h or history.h.
5490
5491 2019-08-12 Tom Tromey <tom@tromey.com>
5492
5493 * configure: Rebuild.
5494 * configure.ac: Check for readline 7.
5495 * NEWS: Mention readline 7 requirement.
5496 * README: Update.
5497
5498 2019-08-12 Tom Tromey <tom@tromey.com>
5499
5500 * mingw-hdep.c (gdb_select): Remove readline hack.
5501
5502 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5503
5504 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5505 when the function fails.
5506
5507 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5508
5509 * s390-tdep.c (s390_type_align): New function.
5510 (s390_gdbarch_init): Set it as type_align gdbarch method.
5511
5512 2019-08-09 Tom de Vries <tdevries@suse.de>
5513
5514 PR gdb/24591
5515 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5516 pc_low with relocation offset.
5517
5518 2019-08-07 Tom Tromey <tromey@adacore.com>
5519
5520 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5521 (print_frame_args): Update.
5522 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5523 Update.
5524 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5525 * frame.h (struct frame_arg): Add initializers.
5526 <error>: Now a unique_xmalloc_ptr.
5527
5528 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5529
5530 * NEWS: Expand the Pointer Authentication entry.
5531 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5532 (aarch64_frame_unmask_lr): ... to this.
5533 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5534 Call aarch64_frame_unmask_lr.
5535 * frame.c (struct frame_info): Add "masked" variable.
5536 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5537 (fprint_frame): Check for masked pc.
5538 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5539 declarations.
5540 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5541 * stack.c (print_frame): Check for masked pc.
5542
5543 2019-08-06 Tom Tromey <tom@tromey.com>
5544
5545 * stabsread.c (patch_block_stabs, read_one_struct_field)
5546 (read_enum_type): Use obstack_strndup.
5547 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5548 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5549 * dwarf2read.c (guess_full_die_structure_name)
5550 (anonymous_struct_prefix): Use obstack_strndup.
5551 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5552 * c-exp.y (yylex): Use obstack_strndup.
5553 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5554 (write_var_or_type): Use obstack_strndup.
5555
5556 2019-08-06 Tom Tromey <tom@tromey.com>
5557
5558 * symfile.c (reread_symbols): Use obstack_strdup.
5559 * stabsread.c (read_type): Use obstack_strdup.
5560 * gdb_obstack.h (obstack_strdup): New overload.
5561 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5562 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5563 (dwarf2_canonicalize_name): Use obstack_strdup.
5564 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5565 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5566 Use obstack_strdup.
5567
5568 2019-08-06 Tom Tromey <tom@tromey.com>
5569
5570 * gdb_obstack.h (obstack_strdup): Define.
5571 * gdb_obstack.c (obstack_strdup): Don't define.
5572
5573 2019-08-06 Tom Tromey <tom@tromey.com>
5574
5575 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5576 obstack_strdup.
5577 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5578 obstack_strdup.
5579 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5580 * stabsread.c (common_block_start): Use obstack_strdup.
5581 * objfiles.c (set_objfile_main_name, objfile): Use
5582 obstack_strdup.
5583 * namespace.c (add_using_directive): Use obstack_strdup.
5584 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5585 * jit.c (finalize_symtab): Use obstack_strdup.
5586 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5587 (guess_partial_die_structure_name, partial_die_info::fixup)
5588 (dwarf2_name): Use obstack_strdup.
5589 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5590 obstack_strdup.
5591 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5592 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5593 obstack_strdup.
5594 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5595
5596 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5597
5598 * unittests/help-doc-selftests.c: New file.
5599 * Makefile.in: Add the new file.
5600
5601 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5602
5603 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5604 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5605 the full first line, except when FOR_VALUE_PREFIX. In this case,
5606 the trailing '.' is not output, and the first character is uppercased.
5607 (print_help_for_command): Update call to print_doc_line.
5608 (print_doc_of_command): Likewise.
5609 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5610 * cli/cli-option.c (append_indented_doc): Do not append newline.
5611 (build_help_option): Append newline after first appended_indented_doc
5612 only if a second call is done.
5613 (build_help): Append 2 new lines before each option, except the first
5614 one.
5615 * compile/compile.c (_initialize_compile): Add new lines after
5616 %OPTIONS%, when not at the end of the help.
5617 Change help doc or code
5618 producing the help doc to respect the invariants.
5619 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5620 Also removed the new line after 'Options:', as all other commands
5621 do not put an empty line between 'Options:' and the first option.
5622 * printcmd.c (_initialize_printcmd): Likewise.
5623 * stack.c (_initialize_stack): Likewise.
5624 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5625 incorrectly telling COMMAND is optional.
5626 * ada-lang.c (_initialize_ada_language): Change help doc or code
5627 producing the help doc to respect the invariants.
5628 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5629 * breakpoint.c (_initialize_breakpoint): Likewise.
5630 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5631 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5632 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5633 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5634 _initialize_cli_style): Likewise.
5635 * corelow.c (core_target_info): Likewise.
5636 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5637 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5638 * filesystem.c (_initialize_filesystem): Likewise.
5639 * frame.c (_initialize_frame): Likewise.
5640 * gnu-nat.c (add_task_commands): Likewise.
5641 * infcall.c (_initialize_infcall): Likewise.
5642 * infcmd.c (_initialize_infcmd): Likewise.
5643 * interps.c (_initialize_interpreter): Likewise.
5644 * language.c (_initialize_language): Likewise.
5645 * linux-fork.c (_initialize_linux_fork): Likewise.
5646 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5647 * maint.c (_initialize_maint_cmds): Likewise.
5648 * memattr.c (_initialize_mem): Likewise.
5649 * printcmd.c (_initialize_printcmd): Likewise.
5650 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5651 _RegEx): Likewise.
5652 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5653 * record-btrace.c (_initialize_record_btrace): Likewise.
5654 * record-full.c (_initialize_record_full): Likewise.
5655 * record.c (_initialize_record): Likewise.
5656 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5657 * regcache.c (_initialize_regcache): Likewise.
5658 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5659 _initialize_remote): Likewise.
5660 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5661 * serial.c (_initialize_serial): Likewise.
5662 * skip.c (_initialize_step_skip): Likewise.
5663 * source.c (_initialize_source): Likewise.
5664 * stack.c (_initialize_stack): Likewise.
5665 * symfile.c (_initialize_symfile): Likewise.
5666 * symtab.c (_initialize_symtab): Likewise.
5667 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5668 * top.c (init_main): Likewise.
5669 * tracefile-tfile.c (tfile_target_info): Likewise.
5670 * tracepoint.c (_initialize_tracepoint): Likewise.
5671 * tui/tui-win.c (_initialize_tui_win): Likewise.
5672 * utils.c (add_internal_problem_command): Likewise.
5673 * valprint.c (value_print_option_defs): Likewise.
5674
5675 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5676
5677 PR build/24886
5678 * configure.ac: Drop enable-libmcheck support.
5679 * configure, config.in: Rebuild.
5680 * libmcheck.m4: Remove.
5681 * acinclude.m4: Don't include it.
5682 * Makefile.in: Don't distribute it.
5683 * top.c (print_gdb_configuration): Don't mention it.
5684
5685 2019-08-06 Tom Tromey <tom@tromey.com>
5686
5687 * utils.c (set_output_style): Sometimes pass stream to
5688 emit_style_escape.
5689 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5690 * record-btrace.c (btrace_insn_history): Update.
5691 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5692 method.
5693 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5694 Update initializers.
5695 <m_uiout>: New field.
5696 <m_di>: Move lower.
5697 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5698 Remove "uiout" parameter.
5699 (dump_insns): Update.
5700 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5701 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5702
5703 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5704
5705 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5706 (error_in_psymtab_expansion): Likewise.
5707 (lookup_symbol_via_quick_fns): Likewise.
5708 (basic_lookup_transparent_type_quick): Likewise.
5709 (basic_lookup_transparent_type_1): Likewise.
5710
5711 2019-08-06 Tom Tromey <tromey@adacore.com>
5712
5713 * source.c (last_source_error): Now bool.
5714 (print_source_lines_base): Make "noprint" bool. Only open
5715 source file when last_source_visited changes.
5716
5717 2019-08-06 Tom Tromey <tromey@adacore.com>
5718
5719 * annotate.c (annotate_source_line): Use g_source_cache.
5720 * source-cache.c (source_cache::get_plain_source_lines): Change
5721 parameters. Populate m_offset_cache.
5722 (source_cache::ensure): New method.
5723 (source_cache::get_line_charpos): New method.
5724 (extract_lines): Move lower. Change parameters.
5725 (source_cache::get_source_lines): Move lower.
5726 * source-cache.h (class source_cache): Update comment.
5727 <get_line_charpos>: New method.
5728 <get_source_lines>: Update comment.
5729 <clear>: Clear m_offset_cache.
5730 <get_plain_source_lines>: Change parameters.
5731 <ensure>: New method
5732 <m_offset_cache>: New member.
5733 * source.c (forget_cached_source_info_for_objfile): Update.
5734 (info_source_command): Use g_source_cache.
5735 (find_source_lines, open_source_file_with_line_charpos): Remove.
5736 (print_source_lines_base, search_command_helper): Use g_source_cache.
5737 * source.h (open_source_file_with_line_charpos): Don't declare.
5738 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5739 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5740 Use g_source_cache.
5741
5742 2019-08-06 Tom Tromey <tromey@adacore.com>
5743
5744 * source-cache.c (source_cache::get_plain_source_lines):
5745 Remove "first_line" and "last_line" parameters.
5746 (source_cache::get_source_lines): Cache plain text.
5747 * source-cache.h (class source_cache)
5748 <get_plain_source_lines>: Update.
5749
5750 2019-08-06 Tom Tromey <tromey@adacore.com>
5751
5752 * source-cache.c (extract_lines): No longer a method.
5753 Changed type of parameter. Include final newline.
5754 (selftests::extract_lines_test): New function.
5755 (_initialize_source_cache): Likewise.
5756 * source-cache.h (class source_cache)
5757 <extract_lines>: Don't declare.
5758
5759 2019-08-06 Tom Tromey <tromey@adacore.com>
5760
5761 * breakpoint.c (init_breakpoint_sal): Update.
5762 (breakpoint): Update.
5763 * breakpoint.h (struct breakpoint) <filter>: Now a
5764 unique_xmalloc_ptr.
5765
5766 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5767
5768 * NEWS: Mention dictionary access on blocks.
5769 * python/py-block.c (blpy_getitem): New function.
5770 (block_object_as_mapping): New struct.
5771 (block_object_type): Use new struct for tp_as_mapping field.
5772
5773 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5774
5775 * objfiles.h (objfile): Add a comment describing partial symbols.
5776
5777 2019-08-05 Tom Tromey <tromey@adacore.com>
5778
5779 * compile/compile.c (_initialize_compile): Use _(), not N_().
5780 * thread.c (_initialize_thread): Use _(), not N_().
5781 * stack.c (_initialize_stack): Use _(), not N_().
5782 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5783
5784 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5785
5786 * dwarf2read.c (struct dw2_symtab_iterator):
5787 <want_specific_block>: Remove.
5788 <block_index>: Change type to gdb::optional.
5789 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5790 change type of BLOCK_INDEX parameter to gdb::optional.
5791 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5792 (dw2_lookup_symbol): Don't pass argument for
5793 WANT_SPECIFIC_BLOCK.
5794 (dw2_expand_symtabs_for_function): Don't pass argument for
5795 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5796 (class dw2_debug_names_iterator)
5797 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5798 parameter, change BLOCK_INDEX type to gdb::optional.
5799 <m_want_specific_block>: Remove.
5800 <m_block_index>: Change type to gdb::optional.
5801 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5802 gdb::optional. Re-write in function of gdb::optional.
5803 (dw2_debug_names_lookup_symbol): Don't pass argument for
5804 WANT_SPECIFIC_BLOCK.
5805 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5806 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5807 BLOCK_INDEX.
5808
5809 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5810
5811 * NEWS: Mention changes to "info sources" command.
5812
5813 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5814
5815 * symtab.c (filename_partial_match_opts): New struct type.
5816 (struct output_source_filename_data): New members
5817 regexp, c_regexp, partial_match.
5818 (output_source_filename): Use new members to decide to print file.
5819 (info_sources_option_defs): New variable.
5820 (make_info_sources_options_def_group, print_info_sources_header,
5821 info_sources_command_completer):
5822 New functions.
5823 (info_sources_command): Read new optional arguments.
5824 (_initialize_symtab): Update info sources help.
5825
5826 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5827
5828 * ada-lang.c (exception_support_info_v0): Renamed from...
5829 (default_exception_support_info): ... this. Create new
5830 definition for v1.
5831 (ada_has_this_exception_support): Look up catch_handlers_sym.
5832 (ada_exception_support_info_sniffer): Try v0 after default.
5833
5834 2019-08-01 Tom Tromey <tromey@adacore.com>
5835
5836 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5837 gdbarch.h.
5838
5839 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5840
5841 * s12z-tdep.c: Fix include path for s12z-opc.h.
5842
5843 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5844
5845 * NEWS: Require GNU make 3.82.
5846
5847 2019-07-16 Tom Tromey <tom@tromey.com>
5848
5849 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5850 declare.
5851
5852 2019-07-30 Tom Tromey <tromey@adacore.com>
5853
5854 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5855
5856 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5857
5858 * printcmd.c (print_address_symbolic): Print negative offsets.
5859 (build_address_symbolic): Force signed arithmetic when computing
5860 offset.
5861
5862 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5863
5864 PR/24474: Add a function to lookup static variables.
5865 * NEWS: Mention this new function.
5866 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5867 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5868 * python/python.c (python_GdbMethods): Add new function.
5869
5870 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5871
5872 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5873 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5874 (objfpy_lookup_static_symbol): New function.
5875 (objfile_object_methods): Add new functions.
5876
5877 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5878
5879 * NEWS: Mention 'set|show print frame-info'. Mention new
5880 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5881 backtrace argument. Mention that python frame filtering code
5882 is now consistent with what 'backtrace' command prints.
5883
5884 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5885
5886 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5887 comments.
5888 (print_frame_info_auto, print_frame_info_source_line,
5889 print_frame_info_location, print_frame_info_source_and_location,
5890 print_frame_info_location_and_address, print_frame_info_short_location):
5891 New declarations.
5892 (struct frame_print_options): New member print_frame_info.
5893 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5894 * stack.h (get_user_print_what_frame_info): New declaration.
5895 (frame_show_address): New declaration.
5896 * stack.c (print_frame_arguments_choices): New value 'presence'.
5897 (print_frame_info_auto, print_frame_info_source_line,
5898 print_frame_info_location, print_frame_info_source_and_location,
5899 print_frame_info_location_and_address, print_frame_info_short_location,
5900 print_frame_info_choices, print_frame_info_print_what): New definitions.
5901 (print_frame_args): Only print dots for args if print frame-arguments
5902 is 'presence'.
5903 (frame_print_option_defs): New element for "frame-info".
5904 (get_user_print_what_frame_info): New function.
5905 (frame_show_address): Make non static. Move comment to stack.h.
5906 (print_frame_info_to_print_what): New function.
5907 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5908 to decide what to print.
5909 (backtrace_command_1): Handle the new print_frame_arguments_presence
5910 value.
5911 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5912 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5913 (py_print_frame): In non-mi mode, use LOCATION as default for
5914 print_what, similarly to frame information printed directly by
5915 backtrace command. Handle frame-info user option in non MI mode.
5916
5917 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5918
5919 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5920 Add case for debugging 32-bit target on 64-bit host. Revise
5921 comment.
5922
5923 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5924
5925 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5926 instead of find_function_entry_range_from_pc.
5927
5928 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5929
5930 * stack.c (find_frame_funname): Remove code which preferred
5931 minsym over symtab sym in "certain pathological cases".
5932
5933 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5934 parameter. Change type of "do_demangle" to bool.
5935 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5936 Pass suitable "prefer_sym_over_minsym" flag to
5937 build_address_symbolic(). Don't output "+" for negative offsets.
5938 * printcmd.c (print_address_symbolic): Update invocation of
5939 build_address_symbolic to include a "prefer_sym_over_minsym"
5940 flag.
5941 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5942 Restrict cases in which use of minimal symbol is preferred to that
5943 of a found symbol. Update comments.
5944
5945 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5946 for entry pc when entry pc is out of range for that FDE.
5947
5948 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5949
5950 PR gdb/24839:
5951 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5952 type.
5953
5954 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5955
5956 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5957 this function's Python signature.
5958
5959
5960 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5961
5962 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5963 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5964 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5965 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5966 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5967
5968
5969 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5970
5971 * h8300-tdep.c (h8300_register_name_common): New.
5972 h8300_register_name): Use h8300_register_name_common.
5973 (h8300s_register_name): Likewise.
5974 (h8300sx_register_name): Likewise.
5975 (h8300h_register_nam): New.
5976 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5977
5978
5979 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5980
5981 * arm-tdep.c (arm_skip_cmse_entry): New function.
5982 (arm_is_sgstubs_section): New function.
5983 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5984
5985 2019-07-22 Tom Tromey <tom@tromey.com>
5986
5987 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5988 Don't self-assign.
5989
5990 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5991
5992 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5993 type_print.
5994
5995 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5996
5997 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5998 so that GDB doesn't match any msymbols when searching in the
5999 TYPES_DOMAIN.
6000 (print_symbol_info): Print using typedef_print or type_print based
6001 on the type of the symbol. Add updated FIXME comment moved from...
6002 (_initialize_symtab): ... move and update FIXME comment to above.
6003
6004 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6005
6006 * NEWS: Mention adding -q option to "info types".
6007 * symtab.c (struct info_types_options): New struct.
6008 (info_types_options_defs): New variable.
6009 (make_info_types_options_def_group): New function.
6010 (info_types_command): Use gdb::option framework to parse options.
6011 (info_types_command_completer): New function.
6012 (_initialize_symtab): Extend the help text on "info types" and
6013 register command completer.
6014
6015 2019-07-21 Christian Biesinger <cbiesinger@google.com>
6016
6017 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6018 (lookup_symbol_in_objfile): Change int to block_enum and add a
6019 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6020
6021 2019-07-20 Christian Biesinger <cbiesinger@google.com>
6022
6023 * MAINTAINERS (Write After Approval): Add self.
6024
6025 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6026
6027 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6028 instruction to the dummy code region.
6029
6030 2019-07-19 Tom Tromey <tromey@adacore.com>
6031
6032 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6033 (ARGSUSED, PARAMS, __func__): Remove rules.
6034
6035 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6036
6037 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6038 * features/arm/arm-with-iwmmxt.c: Remove.
6039 * features/arm/arm-with-iwmmxt.xml: Remove.
6040 * features/arm/arm-with-m-fpa-layout.c: Remove.
6041 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6042 * features/arm/arm-with-m-vfp-d16.c: Remove.
6043 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6044 * features/arm/arm-with-m.c: Remove.
6045 * features/arm/arm-with-m.xml: Remove.
6046 * features/arm/arm-with-neon.c: Remove.
6047 * features/arm/arm-with-neon.xml: Remove.
6048 * features/arm/arm-with-vfpv2.c: Remove.
6049 * features/arm/arm-with-vfpv2.xml: Remove.
6050 * features/arm/arm-with-vfpv3.c: Remove.
6051 * features/arm/arm-with-vfpv3.xml: Remove.
6052
6053 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6054
6055 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6056
6057 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6058
6059 * arch/aarch32.c (aarch32_create_target_description): Create
6060 target descriptions using features.
6061 * arch/arm.c (arm_create_target_description)
6062 (arm_create_mprofile_target_description): Likewise.
6063 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6064
6065 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6066
6067 * Makefile.in: Add new files.
6068 * aarch32-tdep.c: New file.
6069 * aarch32-tdep.h: New file.
6070 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6071 Call aarch32_read_description.
6072 * arch/aarch32.c: New file.
6073 * arch/aarch32.h: New file.
6074 * arch/arm.c (arm_create_target_description)
6075 (arm_create_mprofile_target_description): New function.
6076 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6077 (arm_create_target_description)
6078 (arm_create_mprofile_target_description): New declaration.
6079 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6080 read_description functions.
6081 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6082 Likewise.
6083 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6084 * arm-tdep.c (tdesc_arm_list): New variable.
6085 (arm_register_g_packet_guesses): Call create description functions.
6086 (arm_read_description) (arm_read_mprofile_description): New
6087 function.
6088 * arm-tdep.h (arm_read_description)
6089 (arm_read_mprofile_description): Add declaration.
6090 * configure.tgt: Add new files.
6091
6092 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6093
6094 * top.c (new_ui_command): Open specified terminal just once.
6095
6096 2019-07-18 Tom Tromey <tromey@adacore.com>
6097
6098 * symtab.c (main_name): Constify return type.
6099 * symfile.c (set_initial_language): Update.
6100 * symtab.h (main_name): Constify return type.
6101
6102 2019-07-17 Tom Tromey <tom@tromey.com>
6103
6104 * tui/tui-winsource.c (tui_update_source_window)
6105 (tui_update_source_window_as_is)
6106 (tui_update_source_windows_with_line): Remove return.
6107 * tui/tui-disasm.c (tui_show_disassem)
6108 (tui_show_disassem_and_update_source): Remove return.
6109 * tui/tui.c (tui_reset): Remove return.
6110 * tui/tui-wingeneral.c
6111 (tui_check_and_display_highlight_if_needed): Remove return.
6112
6113 2019-07-17 Tom Tromey <tom@tromey.com>
6114
6115 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6116
6117 2019-07-17 Tom Tromey <tom@tromey.com>
6118
6119 * tui/tui-winsource.h (struct tui_exec_info_window)
6120 (struct tui_source_window_base): Move from tui-data.h.
6121 * tui/tui-winsource.c: Move many method definitions from
6122 elsewhere. Remove "structuring" comments.
6123 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6124 (tui_source_window_base::refresh_window): Move to
6125 tui-winsource.c.
6126 * tui/tui-win.c (tui_source_window_base::refresh_all)
6127 (tui_source_window_base::update_tab_width)
6128 (tui_source_window_base::set_new_height)
6129 (tui_source_window_base::do_make_visible_with_new_height): Move to
6130 tui-winsource.c.
6131 * tui/tui-source.h: Update.
6132 * tui/tui-source.c (tui_source_window_base::reset): Move to
6133 tui-winsource.c.
6134 * tui/tui-disasm.h: Update.
6135 * tui/tui-data.h (struct tui_exec_info_window): Move to
6136 tui-winsource.h.
6137 (struct tui_source_window_base): Likewise.
6138 * tui/tui-data.c (tui_source_window_base::clear_detail)
6139 (tui_source_window_base, ~tui_source_window_base): Move to
6140 tui-winsource.c.
6141
6142 2019-07-17 Tom Tromey <tom@tromey.com>
6143
6144 * tui/tui-win.c (tui_resize_all)
6145 (tui_source_window_base::update_tab_width)
6146 (tui_adjust_win_heights): Update.
6147 (tui_win_info::make_invisible_and_set_new_height): Rename from
6148 make_invisible_and_set_new_height.
6149 * tui/tui-data.h (struct tui_win_info)
6150 <make_invisible_and_set_new_height>: New method.
6151
6152 2019-07-17 Tom Tromey <tom@tromey.com>
6153
6154 * tui/tui.c: Update.
6155 * tui/tui-source.h (struct tui_source_window): Move from
6156 tui-data.h.
6157 * tui/tui-layout.c: Update.
6158 * tui/tui-disasm.c: Update.
6159 * tui/tui-data.h (struct tui_source_window): Move to
6160 tui-source.h.
6161
6162 2019-07-17 Tom Tromey <tom@tromey.com>
6163
6164 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6165 tui-data.h.
6166 * tui/tui-data.h (struct tui_disasm_window): Move to
6167 tui-disasm.h.
6168
6169 2019-07-17 Tom Tromey <tom@tromey.com>
6170
6171 * tui/tui-regs.h (struct tui_data_item_window): Move from
6172 tui-data.h.
6173 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6174 * tui/tui-data.h (struct tui_data_item_window): Move to
6175 tui-regs.h.
6176 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6177
6178 2019-07-17 Tom Tromey <tom@tromey.com>
6179
6180 * tui/tui.c: Update.
6181 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6182 (tui_cmd_window::max_height): Move to tui-command.c.
6183 * tui/tui-layout.c: Update.
6184 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6185 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6186 tui-command.c.
6187 * tui/tui-command.h (struct tui_cmd_window): Move from
6188 tui-data.h.
6189 * tui/tui-command.c: Remove "structuring" comments.
6190 (tui_cmd_window::clear_detail)
6191 (tui_cmd_window::do_make_visible_with_new_height)
6192 (tui_cmd_window::max_height): Move from elsewhere.
6193
6194 2019-07-17 Tom Tromey <tom@tromey.com>
6195
6196 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6197 Now static.
6198 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6199 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6200
6201 2019-07-17 Tom Tromey <tom@tromey.com>
6202
6203 * tui/tui.c: Update.
6204 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6205 tui-regs.c.
6206 * tui/tui-windata.h: Remove file.
6207 * tui/tui-windata.c: Remove file.
6208 * tui/tui-win.c (tui_data_window::set_new_height)
6209 (tui_data_window::do_make_visible_with_new_height): Move to
6210 tui-regs.c.
6211 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6212 * tui/tui-regs.c: Remove "structuring" comments.
6213 (tui_data_window::first_data_item_displayed)
6214 (tui_data_window::delete_data_content_windows)
6215 (tui_data_window::erase_data_content)
6216 (tui_data_window::display_all_data)
6217 (tui_data_window::refresh_all)
6218 (tui_data_window::do_scroll_vertical)
6219 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6220 (tui_data_window::do_make_visible_with_new_height)
6221 (tui_data_window::refresh_window): Move from elsewhere.
6222 (_initialize_tui_regs): Move to end of file.
6223 * tui/tui-layout.c: Update.
6224 * tui/tui-hooks.c: Update.
6225 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6226 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6227 tui-regs.c.
6228 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6229
6230 2019-07-17 Tom Tromey <tom@tromey.com>
6231
6232 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6233 seen.
6234
6235 2019-07-17 Tom Tromey <tom@tromey.com>
6236
6237 * tui/tui-win.c (tui_source_window_base::set_new_height)
6238 (tui_source_window_base::do_make_visible_with_new_height): Use
6239 m_has_locator field directly.
6240 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6241 method.
6242 (struct tui_source_window_base) <has_locator>: Likewise.
6243
6244 2019-07-17 Tom Tromey <tom@tromey.com>
6245
6246 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6247 Don't declare.
6248 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6249 Remove.
6250 * tui/tui-win.c (tui_source_window_base::set_new_height)
6251 (tui_source_window_base::set_new_height)
6252 (make_invisible_and_set_new_height)
6253 (tui_source_window_base::do_make_visible_with_new_height)
6254 (tui_source_window_base::do_make_visible_with_new_height):
6255 Update.
6256 * tui/tui-layout.c (show_source_disasm_command, show_data)
6257 (show_source_or_disasm_and_command): Update.
6258 * tui/tui-layout.c (show_layout): Update.
6259
6260 2019-07-17 Tom Tromey <tom@tromey.com>
6261
6262 * tui/tui-layout.c (make_data_window): Remove.
6263 (show_data): Unify creation and re-initialization cases.
6264
6265 2019-07-17 Tom Tromey <tom@tromey.com>
6266
6267 * tui/tui-layout.c (make_source_window, make_disasm_window):
6268 Remove.
6269 (show_data): Unify creation and re-initialization cases.
6270
6271 2019-07-17 Tom Tromey <tom@tromey.com>
6272
6273 * tui/tui-layout.c (make_command_window): Remove.
6274 (show_source_disasm_command, show_source_or_disasm_and_command):
6275 Unify creation and re-initialization cases.
6276
6277 2019-07-17 Tom Tromey <tom@tromey.com>
6278
6279 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6280 creation and re-initialization cases.
6281
6282 2019-07-17 Tom Tromey <tom@tromey.com>
6283
6284 * tui/tui-regs.c (tui_get_register): Return void.
6285
6286 2019-07-17 Tom Tromey <tom@tromey.com>
6287
6288 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6289 Simplify.
6290
6291 2019-07-17 Tom Tromey <tom@tromey.com>
6292
6293 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6294 resetting.
6295
6296 2019-07-17 Tom Tromey <tom@tromey.com>
6297
6298 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6299 * tui/tui-regs.c (tui_reg_layout): New function.
6300 (tui_show_registers, tui_reg_command): Use it.
6301 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6302 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6303 parameters.
6304 (tui_layout_command): Remove.
6305
6306 2019-07-17 Tom Tromey <tom@tromey.com>
6307
6308 * tui/tui-layout.h (tui/tui-layout): Return void.
6309 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6310
6311 2019-07-17 Tom Tromey <tom@tromey.com>
6312
6313 * tui/tui-layout.c (show_source_disasm_command, show_data):
6314 Update.
6315 (reset_locator): Remove.
6316 (show_source_or_disasm_and_command): Update.
6317
6318 2019-07-17 Tom Tromey <tom@tromey.com>
6319
6320 * tui/tui-source.c (tui_source_window_base::reset): Remove
6321 win_type parameter.
6322 * tui/tui-layout.c (make_command_window, make_source_window)
6323 (make_disasm_window, make_data_window)
6324 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6325 (reset_locator, show_source_or_disasm_and_command): Update.
6326 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6327 win_type parameter.
6328 (struct tui_source_window_base) <reset>: Likewise.
6329
6330 2019-07-17 Tom Tromey <tom@tromey.com>
6331
6332 * tui/tui-layout.c (show_source_disasm_command): Use
6333 reset_locator.
6334 (reset_locator): New function.
6335 (init_and_make_win): Remove.
6336 (show_source_or_disasm_and_command): Use reset_locator.
6337
6338 2019-07-17 Tom Tromey <tom@tromey.com>
6339
6340 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6341 condition.
6342 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6343 Remove condition.
6344 * tui/tui-source.c (tui_source_window_base::reset): New method.
6345 * tui/tui-layout.c (make_command_window): Don't call
6346 init_and_make_win.
6347 (make_source_window, make_disasm_window): Don't call
6348 make_source_or_disasm_window.
6349 (make_data_window): Don't call init_and_make_win. Change calling
6350 convention.
6351 (show_source_disasm_command, show_data): Simplify.
6352 (make_source_or_disasm_window): Remove.
6353 (show_source_or_disasm_and_command): Simplify.
6354 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6355 (struct tui_source_window_base) <reset>: Likewise.
6356 <execution_info>: Remove initializer.
6357 * tui/tui-data.c (tui_source_window_base): Initialize
6358 execution_info.
6359
6360 2019-07-17 Tom Tromey <tom@tromey.com>
6361
6362 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6363 variable.
6364
6365 2019-07-17 Tom Tromey <tom@tromey.com>
6366
6367 * tui/tui.c (tui_rl_other_window): Update.
6368 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6369 superclass method first. Always iterate over regs_content.
6370 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6371 method.
6372 * tui/tui-win.c (tui_set_focus_command): Update.
6373
6374 2019-07-17 Tom Tromey <tom@tromey.com>
6375
6376 * tui/tui-win.c (tui_set_focus_command): Rename from
6377 tui_set_focus. Call tui_enable.
6378 (tui_set_focus_command): Remove.
6379
6380 2019-07-17 Tom Tromey <tom@tromey.com>
6381
6382 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6383 refresh_window.
6384 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6385 touchwin.
6386 (tui_data_window::refresh_window): Call refresh_window on data
6387 items. Always call superclass refresh_window.
6388 (tui_win_info::refresh): Remove.
6389 (tui_source_window_base::refresh_window): Update.
6390 (tui_refresh_all): Update.
6391 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6392 refresh_window.
6393 (show_source_or_disasm_and_command): Likewise.
6394 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6395 (struct tui_source_window_base) <refresh>: Likewise.
6396
6397 2019-07-17 Tom Tromey <tom@tromey.com>
6398
6399 * tui/tui-winsource.c (tui_clear_source_content)
6400 (tui_show_source_content): Update.
6401 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6402 whether content is empty.
6403 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6404 Remove.
6405
6406 2019-07-17 Tom Tromey <tom@tromey.com>
6407
6408 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6409 window's contents.
6410 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6411 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6412
6413 2019-07-17 Tom Tromey <tom@tromey.com>
6414
6415 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6416 (struct tui_data_item_window): Update.
6417
6418 2019-07-17 Tom Tromey <tom@tromey.com>
6419
6420 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6421 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6422 defines.
6423
6424 2019-07-17 Tom Tromey <tom@tromey.com>
6425
6426 * tui/tui-winsource.h (tui_erase_source_content)
6427 (tui_clear_source_content): Remove "display_prompt" parameter.
6428 * tui/tui-winsource.c (tui_update_source_window_as_is)
6429 (tui_update_source_windows_with_addr): Update.
6430 (tui_clear_source_content): Remove "display_prompt" parameter.
6431 (tui_erase_source_content): Likewise. Simplify.
6432 (tui_show_source_content): Update.
6433 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6434 * tui/tui-stack.c (tui_show_frame_info): Update.
6435 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6436 Remove defines.
6437
6438 2019-07-17 Tom Tromey <tom@tromey.com>
6439
6440 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6441 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6442 parameter.
6443 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6444 parameter.
6445
6446 2019-07-17 Tom Tromey <tom@tromey.com>
6447
6448 * tui/tui-winsource.c (tui_clear_source_content)
6449 (tui_show_source_content, tui_show_exec_info_content)
6450 (tui_clear_exec_info_content): Update.
6451 * tui/tui-stack.c (tui_show_locator_content): Update.
6452 (tui_show_frame_info): Update.
6453 * tui/tui-source.h (tui_source_window): Don't declare.
6454 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6455 from tui_source_is_displayed.
6456 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6457 Remove field.
6458 (struct tui_source_window_base) <content_in_use>: New field. Now
6459 bool.
6460 (struct tui_source_window) <showing_source_p>: New method.
6461 (TUI_SRC_WIN): Change cast.
6462 * tui/tui-data.c (tui_initialize_static_data): Update.
6463
6464 2019-07-17 Tom Tromey <tom@tromey.com>
6465
6466 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6467 location_matches_p.
6468 * tui/tui-source.c (tui_source_window::location_matches_p): New
6469 method.
6470 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6471 method.
6472 * tui/tui-data.h (struct tui_source_window_base)
6473 <location_matches_p>: New method.
6474 (struct tui_source_window, struct tui_disasm_window)
6475 <location_matches_p>: Likewise.
6476
6477 2019-07-17 Tom Tromey <tom@tromey.com>
6478
6479 * tui/tui-win.c (tui_set_win_height_command): Rename from
6480 tui_set_win_height.
6481 (tui_set_win_height_command): Remove.
6482
6483 2019-07-17 Tom Tromey <tom@tromey.com>
6484
6485 * tui/tui-source.c (tui_source_window): New constructor. Add
6486 observer.
6487 (~tui_source_window): New destructor.
6488 (tui_source_window::style_changed): New method.
6489 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6490 (tui_attach_detach_observers): Update.
6491 * tui/tui-data.h (struct tui_source_window): Make constructor not
6492 inline. Add destructor.
6493 (struct tui_source_window) <style_changed>: New method.
6494 <m_observable>: New member.
6495
6496 2019-07-17 Tom Tromey <tom@tromey.com>
6497
6498 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6499 * tui/tui-win.c (tui_resize_all): Fix typo.
6500
6501 2019-07-17 Tom Tromey <tom@tromey.com>
6502
6503 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6504 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6505 (tui_refresh_all): Remove "list" parameter. Use foreach.
6506 * tui/tui-win.c (window_name_completer): Use foreach.
6507 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6508 (update_tab_width): Likewise.
6509 * tui/tui-layout.c (show_layout): Update.
6510 * tui/tui-data.h (class tui_window_iterator): New.
6511 (struct all_tui_windows): New.
6512 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6513
6514 2019-07-17 Tom Tromey <tom@tromey.com>
6515
6516 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6517 parameter. Don't reference globals.
6518 (tui_reg_command): Update.
6519
6520 2019-07-17 Tom Tromey <tom@tromey.com>
6521
6522 * tui/tui-regs.c (tui_show_registers): Simplify.
6523
6524 2019-07-17 Tom Tromey <tom@tromey.com>
6525
6526 * tui/tui-regs.c (tui_show_registers): Update.
6527 (tui_show_register_group): Add win_info parameter.
6528
6529 2019-07-17 Tom Tromey <tom@tromey.com>
6530
6531 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6532 Rename from tui_display_reg_element_at_line.
6533 (tui_data_window::display_registers_from_line): Update.
6534 * tui/tui-data.h (struct tui_data_window)
6535 <display_reg_element_at_line>: New method.
6536
6537 2019-07-17 Tom Tromey <tom@tromey.com>
6538
6539 * tui/tui-regs.h (tui_display_registers_from)
6540 (tui_display_registers_from_line): Don't declare.
6541 * tui/tui-windata.c (tui_data_window::display_all_data)
6542 (tui_data_window::refresh_all)
6543 (tui_data_window::do_scroll_vertical): Update.
6544 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6545 from tui_display_registers_from.
6546 (tui_display_reg_element_at_line): Update.
6547 (tui_data_window::display_registers_from_line): Rename from
6548 tui_display_registers_from_line.
6549 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6550 display_registers_from_line>: New methods.
6551
6552 2019-07-17 Tom Tromey <tom@tromey.com>
6553
6554 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6555 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6556 from tui_erase_data_content.
6557 (tui_data_window::display_all_data)
6558 (tui_data_window::refresh_all)
6559 (tui_data_window::do_scroll_vertical): Update.
6560 * tui/tui-regs.c (tui_show_registers): Update.
6561 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6562 New method.
6563
6564 2019-07-17 Tom Tromey <tom@tromey.com>
6565
6566 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6567 declare.
6568 * tui/tui-windata.c
6569 (tui_data_window::delete_data_content_windows): Rename from
6570 tui_delete_data_content_windows.
6571 (tui_data_window::display_all_data)
6572 (tui_data_window::do_scroll_vertical): Update.
6573 * tui/tui-data.h (struct tui_data_window)
6574 <delete_data_content_windows>: New method.
6575
6576 2019-07-17 Tom Tromey <tom@tromey.com>
6577
6578 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6579 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6580
6581 2019-07-17 Tom Tromey <tom@tromey.com>
6582
6583 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6584 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6585 from tui_display_all_data.
6586 * tui/tui-win.c
6587 (tui_data_window::do_make_visible_with_new_height): Update.
6588 * tui/tui-regs.c (tui_show_registers): Update.
6589 * tui/tui-layout.c (tui_set_layout): Update.
6590 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6591 method.
6592
6593 2019-07-17 Tom Tromey <tom@tromey.com>
6594
6595 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6596 * tui/tui-windata.c (tui_display_data_from): Remove.
6597 (tui_data_window::refresh_all): Update.
6598
6599 2019-07-17 Tom Tromey <tom@tromey.com>
6600
6601 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6602 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6603 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6604 tui_display_registers_from_line.
6605 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6606 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6607 "force_display" parameter.
6608
6609 2019-07-17 Tom Tromey <tom@tromey.com>
6610
6611 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6612 declare.
6613 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6614 Rename from tui_first_reg_element_no_inline.
6615 (tui_display_reg_element_at_line)
6616 (tui_display_registers_from_line): Update.
6617 * tui/tui-data.h (struct tui_data_window)
6618 <first_reg_element_no_inline>: New method.
6619
6620 2019-07-17 Tom Tromey <tom@tromey.com>
6621
6622 * tui/tui-windata.c (tui_display_data_from)
6623 (tui_data_window::do_scroll_vertical): Update.
6624 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6625 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6626 Rename from tui_line_from_reg_element_no.
6627 (tui_display_registers_from_line): Update.
6628 * tui/tui-data.h (struct tui_data_window)
6629 <line_from_reg_element_no>: New method.
6630
6631 2019-07-17 Tom Tromey <tom@tromey.com>
6632
6633 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6634 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6635 tui_last_regs_line_no.
6636 (tui_display_reg_element_at_line)
6637 (tui_display_registers_from_line): Update.
6638 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6639 method.
6640
6641 2019-07-17 Tom Tromey <tom@tromey.com>
6642
6643 PR tui/24722:
6644 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6645 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6646 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6647 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6648 (tui_update_breakpoint_info): Likewise.
6649 * tui/tui-hooks.c (tui_event_create_breakpoint)
6650 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6651 Update.
6652
6653 2019-07-17 Tom Tromey <tom@tromey.com>
6654
6655 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6656
6657 2019-07-17 Tom Tromey <tom@tromey.com>
6658
6659 * tui/tui-winsource.c (tui_update_source_window_as_is)
6660 (tui_update_source_windows_with_addr): Update.
6661 * tui/tui-source.h (tui_set_source_content)
6662 (tui_show_symtab_source): Add "win_info" parameter.
6663 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6664 parameter.
6665 (tui_show_symtab_source): Likewise.
6666
6667 2019-07-17 Tom Tromey <tom@tromey.com>
6668
6669 * tui/tui-wingeneral.c
6670 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6671
6672 2019-07-17 Tom Tromey <tom@tromey.com>
6673
6674 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6675 (struct tui_cmd_window) <can_scroll>: New method.
6676 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6677 method.
6678
6679 2019-07-17 Tom Tromey <tromey@adacore.com>
6680
6681 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6682 do_field_signed>: Rename. Change type of "value".
6683 * ui-out.c (ui_out::field_signed): Rename from field_int.
6684 Change type of "value".
6685 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6686 type of "value".
6687 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6688 do_field_int. Change type of "value".
6689 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6690 do_field_int. Change type of "value".
6691 * tracepoint.c (trace_status_mi, tfind_1)
6692 (print_one_static_tracepoint_marker): Update.
6693 * thread.c (print_thread_info_1, print_selected_thread_frame):
6694 Update.
6695 * stack.c (print_frame, print_frame_info): Update.
6696 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6697 Update.
6698 * source.c (print_source_lines_base): Update.
6699 * skip.c (info_skip_command): Update.
6700 * record-btrace.c (btrace_ui_out_decode_error)
6701 (btrace_call_history_src_line): Update.
6702 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6703 Update.
6704 * progspace.c (print_program_space): Update.
6705 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6706 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6707 do_field_int. Change type of "value".
6708 * mi/mi-out.c (mi_ui_out::do_table_begin)
6709 (mi_ui_out::do_table_header): Update.
6710 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6711 type of "value".
6712 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6713 (mi_cmd_data_list_changed_registers, output_register)
6714 (mi_cmd_data_read_memory, mi_load_progress)
6715 (mi_cmd_trace_frame_collected): Update.
6716 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6717 Update.
6718 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6719 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6720 (mi_cmd_var_list_children, varobj_update_one): Update.
6721 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6722 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6723 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6724 * inferior.c (print_inferior): Update.
6725 * gdb_bfd.c (print_one_bfd): Update.
6726 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6727 Update.
6728 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6729 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6730 do_field_int. Change type of "value".
6731 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6732 do_field_int. Change type of "value".
6733 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6734 (print_one_breakpoint_location, print_it_catch_fork)
6735 (print_one_catch_fork, print_it_catch_vfork)
6736 (print_one_catch_vfork, print_it_catch_solib)
6737 (print_it_catch_exec, print_it_ranged_breakpoint)
6738 (print_mention_watchpoint, print_mention_masked_watchpoint)
6739 (bkpt_print_it, update_static_tracepoint): Update.
6740 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6741 * break-catch-syscall.c (print_it_catch_syscall): Update.
6742 * ada-tasks.c (print_ada_task_info): Update.
6743 * ada-lang.c (print_it_exception, print_mention_exception):
6744 Update.
6745
6746 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6747
6748 PR breakpoints/24541
6749 * gdbarch.c: Regenerate.
6750 * gdbarch.h: Regenerate.
6751 * gdbarch.sh: Adjust return type and parameter types for
6752 'stap_adjust_register'.
6753 (i386_stap_adjust_register): Adjust signature and return new
6754 register name.
6755 * stap-probe.c (stap_parse_register_operand): Adjust use of
6756 'gdbarch_stap_adjust_register'.
6757
6758 2019-07-17 Tom Tromey <tromey@adacore.com>
6759
6760 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6761 declare VEC.
6762 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6763 std::vector.
6764 (struct s390_process_info): Add initializers.
6765 (s390_add_process): Use new.
6766 (s390_linux_nat_target::low_forget_process): Use delete.
6767 (s390_linux_nat_target::low_new_fork)
6768 (s390_linux_nat_target::stopped_by_watchpoint)
6769 (s390_linux_nat_target::low_prepare_to_resume)
6770 (s390_linux_nat_target::insert_watchpoint)
6771 (s390_linux_nat_target::insert_hw_breakpoint)
6772 (s390_linux_nat_target::remove_watchpoint)
6773 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6774
6775 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6776
6777 * aarch64-fbsd-nat.c: Include regcache.h.
6778 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6779 argument.
6780 (aarch64_fbsd_nat_target::fetch_registers)
6781 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6782 variable.
6783 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6784
6785 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6786
6787 * fbsd-nat.c: Include gdbarch.h.
6788
6789 2019-07-15 Tom Tromey <tromey@adacore.com>
6790
6791 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6792
6793 2019-07-15 Tom Tromey <tromey@adacore.com>
6794
6795 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6796 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6797 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6798 * cli-out.c (cli_ui_out::do_field_int): New method.
6799 * ui-out.c (ui_out::field_unsigned): New method.
6800 * symfile.c (generic_load): Use field_unsigned.
6801 (print_transfer_performance): Likewise.
6802 * record-btrace.c (ui_out_field_uint): Remove.
6803 (btrace_call_history_insn_range, btrace_call_history): Use
6804 field_unsigned.
6805 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6806 field_unsigned.
6807 * ui-out.h (class ui_out) <field_unsigned>: New method.
6808 <do_field_unsigned>: Likewise.
6809
6810 2019-07-15 Tom Tromey <tromey@adacore.com>
6811
6812 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6813 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6814 * target.c (flash_erase_command): Use field_string.
6815 * infrun.c (print_signal_received_reason): Use field_string.
6816 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6817 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6818 field_string.
6819 * ada-tasks.c (print_ada_task_info): Use field_string.
6820
6821 2019-07-15 Tom Tromey <tromey@adacore.com>
6822
6823 * target.c (flash_erase_command): Use field_core_addr.
6824 * symfile.c (generic_load): Use field_core_addr.
6825 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6826 Use field_core_addr.
6827 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6828 field_core_addr.
6829
6830 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6831
6832 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6833 value if its desired type is smaller than a CORE_ADDR and signed.
6834
6835 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6836
6837 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6838 of changes to field names, and use new is_reference field to
6839 decide if a property is a reference or not.
6840 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6841 field.
6842 (struct dwarf2_property_baton): Update header comment, rename
6843 'referenced_type' to 'property_type' and update comments.
6844 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6845 default property type, store in property baton, update to take
6846 accound of renamed field.
6847 (read_func_scope): Update call to attr_to_dynamic_prop.
6848 (read_array_type): Likewise.
6849 (dwarf2_per_cu_addr_sized_int_type): New function.
6850 (read_subrange_index_type): Move type finding code to
6851 dwarf2_per_cu_addr_sized_int_type.
6852 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6853 (dwarf2_per_cu_addr_type): New function.
6854 (set_die_type): Update calls to attr_to_dynamic_prop.
6855
6856 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6857
6858 * dwarf2read.c (read_subrange_index_type): New function.
6859 (read_subrange_type): Move code into new function and call it.
6860 * gdbtypes.c (create_range_type): Add some asserts.
6861
6862 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6863
6864 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6865 update return statements.
6866 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6867 declaration, and update comment to match.
6868 * gdbtypes.c (resolve_dynamic_array): Update call to
6869 dwarf2_evaluate_property to match new return type.
6870
6871 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6872
6873 * valarith.c (value_subscripted_rvalue): Change lowerbound
6874 parameter type from int to LONGEST.
6875 * value.h (value_subscripted_rvalue): Likewise in declaration.
6876
6877 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6878
6879 * cli/cli-utils.c (info_print_command_completer): New function.
6880 * cli/cli-utils.h: Add 'completer.h' include, and forward
6881 declaration for 'struct cmd_list_element'.
6882 (info_print_command_completer): Declare.
6883 * stack.c (_initialize_stack): Add completer for 'info locals' and
6884 'info args'.
6885 * symtab.c (_initialize_symtab): Add completer for 'info
6886 variables' and 'info functions'.
6887 * NEWS: Mention completion for additional info commands.
6888
6889 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6890
6891 * cli/cli-utils.c (extract_info_print_args): Delete.
6892 (extract_arg_maybe_quoted): Delete.
6893 (info_print_options_defs): New variable.
6894 (make_info_print_options_def_group): New function.
6895 (extract_info_print_options): Define new function.
6896 * cli/cli-utils.h (extract_info_print_args): Delete.
6897 (struct info_print_options): New structure.
6898 (extract_info_print_options): Declare new function.
6899 * stack.c (info_locals_command): Update to use new
6900 extract_info_print_options, also add a header comment.
6901 (info_args_command): Likewise.
6902 * symtab.c (info_variables_command): Likewise.
6903 (info_functions_command): Likewise.
6904
6905 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6906
6907 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6908 to extract string arguments.
6909 * common/common-utils.c (extract_string_maybe_quoted): New function.
6910 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6911
6912 2019-07-11 Tom Tromey <tromey@adacore.com>
6913
6914 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6915 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6916 * top.h (gdbinit): Don't declare.
6917 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6918 into...
6919 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6920 * top.c (gdb_init): Don't call init_cli_cmds.
6921 (gdbinit): Remove.
6922 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6923
6924 2019-07-11 Tom Tromey <tromey@adacore.com>
6925
6926 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6927 after it has been moved.
6928
6929 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6930
6931 * valops.c (value_must_coerce_to_target): Change return type to
6932 bool.
6933 * value.h (value_must_coerce_to_target): Likewise.
6934
6935 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6936
6937 * breakpoint.c (is_hardware_watchpoint): Remove
6938 forward-declaration.
6939 (is_masked_watchpoint): Change return type to bool.
6940 (is_tracepoint): Likewise.
6941 (is_breakpoint): Likewise.
6942 (is_hardware_watchpoint): Likewise.
6943 (is_watchpoint): Likewise.
6944 (is_no_memory_software_watchpoint): Likewise.
6945 (is_catchpoint): Likewise.
6946 (breakpoint_1): Make FILTER parameter's return type bool.
6947 is_masked_watchpoint): Change return type to bool.
6948 (save_breakpoints): Make FILTER parameter's return type bool.
6949 * breakpoint.h (is_breakpoint): Change return type to bool.
6950 (is_watchpoint): Likewise.
6951 (is_catchpoint): Likewise.
6952 (is_tracepoint): Likewise.
6953
6954 2019-07-10 Tom Tromey <tom@tromey.com>
6955
6956 * defs.h: Don't include gdbarch.h.
6957 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6958 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6959 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6960 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6961 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6962 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6963 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6964 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6965 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6966 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6967 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6968 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6969 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6970 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6971 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6972 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6973 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6974 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6975 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6976 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6977 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6978 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6979 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6980 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6981 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6982 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6983 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6984
6985 2019-07-10 Tom Tromey <tromey@adacore.com>
6986
6987 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6988 * breakpoint.c (init_ada_exception_breakpoint): Register as
6989 bp_catchpoint.
6990 (print_one_breakpoint_location, print_one_breakpoint): Use
6991 is_ada_exception_catchpoint.
6992 * ada-lang.c (class ada_catchpoint_location): Pass
6993 bp_loc_software_breakpoint to bp_location constructor.
6994 (is_ada_exception_catchpoint): New function.
6995
6996 2019-07-10 Tom Tromey <tromey@adacore.com>
6997
6998 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6999 VEC.
7000 (struct arm_exidx_entry): New method operator<.
7001 (struct arm_exidx_data) <section_maps>: Change type.
7002 (arm_exidx_data_free): Remove.
7003 (arm_exidx_data_key): Change type. Move lower.
7004 (arm_exidx_new_objfile): Update.
7005 (arm_compare_exidx_entries): Remove.
7006 (arm_find_exidx_entry, _initialize_arm_tdep)
7007
7008 2019-07-10 Tom Tromey <tromey@adacore.com>
7009
7010 * solib-spu.c (ocl_program_data_key): Change type.
7011 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7012 Update.
7013
7014 2019-07-10 Tom Tromey <tromey@adacore.com>
7015
7016 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7017 (struct solib_aix_inferior_data) <library_list>: Change type.
7018 (solib_aix_inferior_data_handle): Change type.
7019 (get_solib_aix_inferior_data): Update.
7020 (solib_aix_free_library_list): Remove.
7021 (library_list_start_library): Update.
7022 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7023 return type.
7024 (solib_aix_get_library_list)
7025 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7026 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7027
7028 2019-07-10 Tom Tromey <tromey@adacore.com>
7029
7030 * solib-dsbt.c (struct dsbt_info): Add initializers.
7031 (solib_dsbt_pspace_data): Change type.
7032 (dsbt_pspace_data_cleanup): Remove.
7033 (get_dsbt_info, _initialize_dsbt_solib): Update.
7034
7035 2019-07-10 Tom Tromey <tromey@adacore.com>
7036
7037 * spu-tdep.c (spu_overlay_data): Change type.
7038 (spu_get_overlay_table, spu_overlay_new_objfile)
7039 (_initialize_spu_tdep): Update.
7040
7041 2019-07-10 Tom Tromey <tromey@adacore.com>
7042
7043 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7044 destructor.
7045 (dbx_objfile_data_key): Change type and declare later.
7046 (DBX_SYMFILE_INFO): Rewrite.
7047 * dbxread.c (dbx_objfile_data_key): Change type.
7048 (dbx_symfile_init): Update.
7049 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7050 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7051 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7052
7053 2019-07-10 Tom Tromey <tromey@adacore.com>
7054
7055 * jit.c (jit_program_space_key): Change type. Move lower.
7056 (get_jit_program_space_data): Update.
7057 (jit_program_space_data_cleanup): Remove.
7058 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7059 Update.
7060 (struct jit_program_space_data): Add initializers.
7061
7062 2019-07-10 Tom Tromey <tromey@adacore.com>
7063
7064 * solib-darwin.c (struct darwin_info): Add initializers.
7065 (solib_darwin_pspace_data): Change type.
7066 (darwin_pspace_data_cleanup): Remove.
7067 (get_darwin_info, _initialize_darwin_solib): Update.
7068
7069 2019-07-10 Tom Tromey <tromey@adacore.com>
7070
7071 * remote-sim.c (struct sim_inferior_data): Add initializers,
7072 constructor, and destructor.
7073 (sim_inferior_data_key): Change type. Move lower.
7074 (check_for_duplicate_sim_descriptor): Update.
7075 (get_sim_inferior_data): Use new. Update.
7076 (~sim_inferior_data_cleanup): Rename from
7077 sim_inferior_data_cleanup. Simplify.
7078 (gdbsim_close_inferior, simulator_command)
7079 (sim_command_completer, _initialize_remote_sim): Update.
7080 (next_pid, INITIAL_PID): Move earlier.
7081
7082 2019-07-10 Tom Tromey <tromey@adacore.com>
7083
7084 * python/python-internal.h (create_thread_object): Return
7085 gdbpy_ref.
7086 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7087 * python/py-inferior.c (struct threadlist_entry): Add
7088 constructor.
7089 <thread_obj>: Now a gdbpy_ref.
7090 (thread_to_thread_object): Update.
7091 (add_thread_object): Use new.
7092 (delete_thread_object): Use delete.
7093 (infpy_threads): Update.
7094 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7095 GIL.
7096
7097 2019-07-10 Tom Tromey <tromey@adacore.com>
7098
7099 * valops.c (value_cast): Specialize error message for Ada.
7100
7101 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7102
7103 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7104
7105 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7106
7107 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7108 bpstat_should_step): Return bool, adjust comments.
7109 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7110 bpstat_should_step): Likewise.
7111
7112 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7113
7114 * features/Makefile: Use feature target descriptions for Arm.
7115 * features/arm/arm-core.c: Generate new file.
7116 * features/arm/arm-fpa.c: Likewise.
7117 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7118 * features/arm/arm-m-profile.c: Likewise.
7119 * features/arm/arm-vfpv2.c: Likewise.
7120 * features/arm/arm-vfpv3.c: Likewise.
7121 * features/arm/xscale-iwmmxt.c: Likewise.
7122 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7123
7124 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7125
7126 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7127 ptrace earlier.
7128
7129 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7130
7131 * features/aarch64-pauth.c: Regenerate.
7132
7133 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7134
7135 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7136 bool.
7137 (bpstat_what): Use false instead of 0.
7138
7139 2019-07-09 Pedro Alves <palves@redhat.com>
7140
7141 * break-catch-throw.c (is_exception_catchpoint): New.
7142 * breakpoint.c (print_one_breakpoint_location): New parameter
7143 'raw_loc'. Handle it. Use
7144 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7145 looking at the breakpoint's type.
7146 (print_one_breakpoint): If handling "maint info breakpoints", also
7147 print locations of exception catchpoints.
7148 * breakpoint.h (is_exception_catchpoint): Declare.
7149
7150 2019-07-09 Pedro Alves <palves@redhat.com>
7151
7152 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7153 "addr" field.
7154 (allocate_location_exception_catchpoint): New.
7155 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7156 (initialize_throw_catchpoint_ops): Install
7157 allocate_location_exception_catchpoint as allocate_location
7158 method.
7159 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7160 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7161 bp_loc_other.
7162 (breakpoint_address_is_meaningful): Delete.
7163 (bl_address_is_meaningful): New.
7164 (breakpoint_locations_match): Adjust comment.
7165 (bp_location_from_bp_type): New, factored out of...
7166 (bp_location::bp_location(breakpoint *)): ... this.
7167 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7168 factored out of...
7169 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7170 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7171 breakpoint_address_is_meaningful.
7172 (bp_locations_compare): Adjust comment.
7173 (update_global_location_list): Use bl_address_is_meaningful
7174 instead of breakpoint_address_is_meaningful.
7175 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7176 explicit.
7177 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7178 * python/py-breakpoint.c (bppy_get_location): No longer check
7179 whether location is null.
7180
7181 2019-07-09 Pedro Alves <palves@redhat.com>
7182
7183 PR c++/15468
7184 * breakpoint.c (print_one_breakpoint_location): Remove
7185 single-location assert.
7186
7187 2019-07-09 Tom Tromey <tom@tromey.com>
7188
7189 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7190 * configure: Rebuild.
7191 * configure.ac: Change common to gdbsupport.
7192 * gdbsupport: Rename from common.
7193 * acinclude.m4: Change common to gdbsupport.
7194 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7195 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7196 gdbsupport.
7197 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7198 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7199 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7200 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7201 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7202 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7203 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7204 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7205 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7206 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7207 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7208 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7209 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7210 coff-pe-read.c, command.h, compile/compile-c-support.c,
7211 compile/compile-c.h, compile/compile-cplus-symbols.c,
7212 compile/compile-cplus-types.c, compile/compile-cplus.h,
7213 compile/compile-loc2c.c, compile/compile.c, completer.c,
7214 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7215 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7216 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7217 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7218 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7219 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7220 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7221 features/aarch64-core.c, features/aarch64-fpu.c,
7222 features/aarch64-pauth.c, features/aarch64-sve.c,
7223 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7224 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7225 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7226 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7227 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7228 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7229 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7230 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7231 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7232 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7233 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7234 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7235 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7236 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7237 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7238 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7239 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7240 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7241 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7242 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7243 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7244 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7245 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7246 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7247 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7248 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7249 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7250 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7251 minsyms.c, mips-linux-tdep.c, namespace.h,
7252 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7253 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7254 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7255 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7256 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7257 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7258 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7259 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7260 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7261 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7262 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7263 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7264 procfs.c, producer.c, progspace.h, psymtab.h,
7265 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7266 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7267 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7268 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7269 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7270 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7271 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7272 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7273 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7274 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7275 target-memory.c, target.c, target.h, target/waitstatus.c,
7276 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7277 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7278 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7279 unittests/array-view-selftests.c,
7280 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7281 unittests/common-utils-selftests.c,
7282 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7283 unittests/format_pieces-selftests.c,
7284 unittests/function-view-selftests.c,
7285 unittests/lookup_name_info-selftests.c,
7286 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7287 unittests/mkdir-recursive-selftests.c,
7288 unittests/observable-selftests.c,
7289 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7290 unittests/parse-connection-spec-selftests.c,
7291 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7292 unittests/scoped_fd-selftests.c,
7293 unittests/scoped_mmap-selftests.c,
7294 unittests/scoped_restore-selftests.c,
7295 unittests/string_view-selftests.c, unittests/style-selftests.c,
7296 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7297 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7298 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7299 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7300 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7301 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7302
7303 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7304
7305 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7306 bool value.
7307 (decode_digits_ordinary): Set explicit_line field in sal.
7308 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7309 symtab_and_line that was set on an explicit line number in
7310 assembler code. Do always update the recorded symtab and line if
7311 we do skip the prologue.
7312
7313 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7314
7315 * breakpoint.c (set_breakpoint_location_function): Remove
7316 explicit_loc parameter.
7317 (momentary_breakpoint_from_master): Update call to
7318 set_breakpoint_location_function.
7319 (add_location_to_breakpoint): Likewise.
7320
7321 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7322
7323 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7324 required features based on default bfd type when no specific bfd
7325 is present.
7326
7327 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7328
7329 * NEWS: Mention that GDB printf and eval commands can now print
7330 C-style and Ada-style convenience var strings without
7331 calling the inferior.
7332 * printcmd.c (printf_c_string): Locally print GDB internal var
7333 instead of transiting via the inferior.
7334 (printf_wide_c_string): Likewise.
7335
7336 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7337
7338 PR breakpoints/25011
7339 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7340
7341 2019-07-04 Tom Tromey <tom@tromey.com>
7342
7343 PR tui/24724:
7344 * tui/tui-winsource.c (tui_clear_source_content): Update.
7345 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7346 (tui_update_breakpoint_info): Update.
7347 (tui_set_exec_info_content): Update.
7348 * tui/tui-source.c (tui_set_source_content_nil): Update.
7349 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7350 has_break.
7351 * tui/tui-data.h (enum tui_bp_flag): New.
7352 (tui_bp_flags): New enum flags type.
7353 (struct tui_source_element) <break_mode>: Change type. Rename
7354 from has_break.
7355 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7356 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7357 constants.
7358 * tui/tui-winsource.h: Fix comment.
7359
7360 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7361
7362 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7363 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7364 (store_fpregs_to_thread)
7365 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7366 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7367 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7368 (IWMMXT_REGS_SIZE): Add define.
7369 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7370 (fetch_vfp_regs, store_vfp_regs)
7371 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7372 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7373
7374 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7375
7376 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7377 defines.
7378 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7379 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7380 (ARM_INT_REGISTER_SIZE): ...to this.
7381 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7382 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7383 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7384 (arm_linux_collect_gregset, supply_nwfpe_register)
7385 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7386 defines.
7387 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7388 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7389 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7390 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7391 (arm_return_in_memory, arm_store_return_value)
7392 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7393 (arm_record_ld_st_multiple): Likewise.
7394 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7395 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7396
7397 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7398
7399 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7400 AARCH64_DISPLACED_MODIFIED_INSNS.
7401 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7402 (aarch64_displaced_step_copy_insn): Likewise.
7403 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7404 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7405 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7406 ARM_DISPLACED_MODIFIED_INSNS.
7407 * arm-tdep.c (arm_gdbarch_init): Likewise.
7408 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7409 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7410 (struct arm_displaced_step_closure): Use
7411 ARM_DISPLACED_MODIFIED_INSNS.
7412
7413 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7414
7415 * features/Makefile: Remove unused xml files.
7416 * features/aarch64.xml: Remove.
7417 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7418 * features/i386/amd64-avx-avx512.xml: Remove.
7419 * features/i386/amd64-avx-linux.xml: Remove.
7420 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7421 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7422 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7423 * features/i386/amd64-avx-mpx.xml: Remove.
7424 * features/i386/amd64-avx.xml: Remove.
7425 * features/i386/amd64-linux.xml: Remove.
7426 * features/i386/amd64-mpx-linux.xml: Remove.
7427 * features/i386/amd64-mpx.xml: Remove.
7428 * features/i386/amd64.xml: Remove.
7429 * features/i386/i386-avx-avx512-linux.xml: Remove.
7430 * features/i386/i386-avx-avx512.xml: Remove.
7431 * features/i386/i386-avx-linux.xml: Remove.
7432 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7433 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7434 * features/i386/i386-avx-mpx-linux.xml: Remove.
7435 * features/i386/i386-avx-mpx.xml: Remove.
7436 * features/i386/i386-avx.xml: Remove.
7437 * features/i386/i386-linux.xml: Remove.
7438 * features/i386/i386-mmx-linux.xml: Remove.
7439 * features/i386/i386-mmx.xml: Remove.
7440 * features/i386/i386-mpx-linux.xml: Remove.
7441 * features/i386/i386-mpx.xml: Remove.
7442 * features/i386/i386.xml: Remove.
7443 * features/i386/x32-avx-avx512-linux.xml: Remove.
7444 * features/i386/x32-avx-linux.xml: Remove.
7445 * features/i386/x32-linux.xml: Remove.
7446
7447 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7448
7449 * regformats/aarch64.dat: Remove.
7450 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7451 * regformats/i386/amd64-avx-linux.dat: Remove.
7452 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7453 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7454 * regformats/i386/amd64-linux.dat: Remove.
7455 * regformats/i386/amd64-mpx-linux.dat: Remove.
7456 * regformats/i386/amd64.dat: Remove.
7457 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7458 * regformats/i386/i386-avx-linux.dat: Remove.
7459 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7460 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7461 * regformats/i386/i386-linux.dat: Remove.
7462 * regformats/i386/i386-mmx-linux.dat: Remove.
7463 * regformats/i386/i386-mpx-linux.dat: Remove.
7464 * regformats/i386/i386.dat: Remove.
7465 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7466 * regformats/i386/x32-avx-linux.dat: Remove.
7467 * regformats/i386/x32-linux.dat: Remove.
7468
7469 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7470
7471 * aarch64-tdep.c: Remove xml self tests.
7472 * amd64-linux-tdep.c: Likewise.
7473 * amd64-tdep.c: Likewise.
7474 * i386-linux-tdep.c: Likewise.
7475 * i386-tdep.c: Likewise.
7476
7477 2019-07-03 Pedro Alves <palves@redhat.com>
7478
7479 PR cli/24732
7480 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7481 (pipe_cmd_option_defs): New.
7482 (make_pipe_cmd_options_def_group): New.
7483 (pipe_command): Use gdb::option::process_options.
7484 (pipe_command_completer): New function.
7485 (_initialize_cli_cmds): Install completer for "pipe" command.
7486
7487 2019-07-03 Pedro Alves <palves@redhat.com>
7488
7489 * cli/cli-option.c (union option_value) <string>: New field.
7490 (struct option_def_and_value): Add ctor, move ctor, dtor and
7491 use DISABLE_COPY_AND_ASSIGN.
7492 (option_def_and_value::clear_value): New.
7493 (parse_option, save_option_value_in_ctx, get_val_type_str)
7494 (add_setshow_cmds_for_options): Handle var_string.
7495 * cli-option.h (union option_def::var_address) <string>: New
7496 field.
7497 (struct string_option_def): New.
7498 * maint-test-options.c (struct test_options_opts): Add default
7499 ctor and use DISABLE_COPY_AND_ASSIGN.
7500 <string_opt>: New field.
7501 (test_options_opts::~test_options_opts): New.
7502 (test_options_opts::dump): Also dump "-string".
7503 (test_options_option_defs): Install "string.
7504
7505 2019-07-03 Pedro Alves <palves@redhat.com>
7506
7507 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7508 option_value with a null enumeration.
7509 (complete_options): Save the option values in the context.
7510 (save_option_value_in_ctx): New, factored out from ...
7511 (process_options): ... here.
7512 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7513 of the function.
7514 * maint-test-options.c (test_options_opts::dump): New, factored
7515 out from ...
7516 (maintenance_test_options_command_mode): ... here.
7517 (maintenance_test_options_command_completion_result): Delete.
7518 (maintenance_test_options_command_completion_text): Update
7519 comment.
7520 (maintenance_show_test_options_completion_result): Change
7521 prototype. Just print
7522 maintenance_test_options_command_completion_text.
7523 (save_completion_result): New.
7524 (maintenance_test_options_completer_mode): Pass options context to
7525 complete_options, and then save a dump.
7526 (_initialize_maint_test_options): Use add_cmd to install "maint
7527 show test-options-completion-result".
7528
7529 2019-07-03 Pedro Alves <palves@redhat.com>
7530
7531 * NEWS (New commands): Mention "with" and "maint with".
7532 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7533 (with_command, with_command_completer): New.
7534 (pipe_command): Adjust to new repeat_previous
7535 interface.
7536 (_initialize_cli_cmds): Install the "with" command and its "w"
7537 alias.
7538 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7539 declarations.
7540 * cli/cli-setshow.c (parse_cli_var_uinteger)
7541 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7542 argument strings for all var_types.
7543 (get_setshow_command_value_string): New, factored out from ...
7544 (do_show_command): ... this.
7545 * cli/cli-setshow.h: Include <string>.
7546 (get_setshow_command_value_string): Declare.
7547 * command.h (repeat_previous): Now returns const char *. Adjust
7548 comment.
7549 * maint.c: Include "cli/cli-cmds.h".
7550 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7551 (_initialize_maint_cmds): Register the "maintenance with" command.
7552 * top.c (repeat_previous): Move bits from pipe_command here:
7553 Return the saved command line, if any; error out if there's no
7554 command to relaunch.
7555
7556 2019-07-03 Pedro Alves <palves@redhat.com>
7557
7558 * NEWS (New commands): Mention "maint set/show test-settings"
7559 instead of "maint test-settings".
7560 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7561 (maintenance_test_settings_set_list): Rename to ...
7562 (maintenance_set_test_settings_list): ... this.
7563 (maintenance_test_settings_show_list): Rename to ...
7564 (maintenance_show_test_settings_list): ... this.
7565 (maintenance_test_settings_cmd): Delete.
7566 (maintenance_test_settings_set_cmd): ...
7567 (maintenance_set_test_settings_cmd): ... this.
7568 (maintenance_test_settings_show_cmd): ...
7569 (maintenance_show_test_settings_cmd): ... this.
7570 (maintenance_test_settings_show_value_cmd):
7571 (maintenance_show_test_settings_value_cmd): ... this.
7572 (_initialize_maint_test_settings): No longer install the "maint
7573 test-settings" prefix command. Rename "maint test-settings set"
7574 to "maint set test-settings", and "maint test-settings show" to
7575 "maint show test-settings". Adjust all subcommands.
7576
7577 2019-07-03 Pedro Alves <palves@redhat.com>
7578
7579 * maint-test-settings.c: Fix file's intro comment. Replace all
7580 references to "test-options" with references to "test-settings",
7581 in comments.
7582
7583 2019-07-03 Pedro Alves <palves@redhat.com>
7584
7585 * maint-test-settings.c (maintenance_test_settings_xxx)
7586 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7587 New.
7588 (maintenance_test_settings_enums): Use them.
7589 (maintenance_test_settings_enum): Default to
7590 maintenance_test_settings_xxx.
7591 (_initialize_maint_test_settings): Initialize
7592 MAINTENANCE_TEST_SETTINGS_FILENAME.
7593
7594 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7595
7596 * breakpoint.h (remove_breakpoints_inf): Change return type to
7597 void, move function documentation here.
7598 * breakpoint.c (remove_breakpoints_inf): Change return type to
7599 void, move function documentation to header.
7600
7601 2019-07-02 Pedro Alves <palves@redhat.com>
7602
7603 * NEWS (Completion improvements): Mention "info threads".
7604 * thread.c (struct info_threads_opts, info_threads_option_defs)
7605 (make_info_threads_options_def_group): New.
7606 (info_threads_command): Use gdb::option::process_options.
7607 (info_threads_command_completer): New.
7608 (_initialize_thread): Use gdb::option::build_help to build the
7609 help text for "info threads".
7610
7611 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7612
7613 * defs.h (generic_load): Move from here...
7614 * symfile.h (generic_load): ... to here. Rename name parameter
7615 to args.
7616 * symfile.c (generic_load): Add comment.
7617
7618 2019-07-01 Tom Tromey <tromey@adacore.com>
7619
7620 * dwarf2read.c
7621 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7622 declaration of without_params. Fix formatting.
7623
7624 2019-07-01 Tom Tromey <tromey@adacore.com>
7625
7626 * ada-exp.y (find_primitive_type): Update.
7627 * ada-lang.h (ada_lookup_symbol): Update.
7628 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7629 parameter.
7630 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7631
7632 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7633
7634 PR breakpoints/24541
7635 * gdbarch.c: Regenerate.
7636 * gdbarch.h: Regenerate.
7637 * gdbarch.sh: Add 'stap_adjust_register'.
7638 * i386-tdep.c: Include '<unordered_set>'.
7639 (i386_stap_adjust_register): New function.
7640 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7641 * stap-probe.c (stap_parse_register_operand): Call
7642 'gdbarch_stap_adjust_register'.
7643
7644 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7645
7646 PR python/24742
7647 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7648 * python/python.c (do_start_initialization): Use 'xmalloc'
7649 instead of 'PyMem_Malloc'.
7650
7651 2019-06-28 Tom Tromey <tromey@adacore.com>
7652
7653 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7654 for Ada.
7655
7656 2019-06-27 Tom Tromey <tromey@adacore.com>
7657
7658 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7659 objfile_key.
7660 (arm_find_mapping_symbol, arm_record_special_symbol)
7661 (_initialize_arm_tdep): Update.
7662 (arm_objfile_data_free): Remove.
7663
7664 2019-06-27 Tom Tromey <tromey@adacore.com>
7665
7666 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7667 to cp_print_static_field.
7668
7669 2019-06-26 Tom Tromey <tromey@adacore.com>
7670
7671 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7672 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7673 declare.
7674
7675 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7676
7677 * features/aarch64-core.c (create_feature_aarch64_core):
7678 Regenerate.
7679 * features/aarch64-core.xml: Add cpsr flags.
7680
7681 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7682
7683 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7684 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7685
7686 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7687
7688 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7689 field.
7690 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7691 use.
7692 (arm_record_special_symbol): Don't insert new symbol in sorted
7693 position, push it at the end.
7694
7695 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7696
7697 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7698 (arm_mapping_symbol_s): Remove.
7699 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7700 (arm_mapping_symbol_vec): New typedef.
7701 (struct arm_per_objfile): Add constructor.
7702 <section_maps>: Change type to
7703 std::unique_ptr<arm_mapping_symbol_vec[]>.
7704 (arm_compare_mapping_symbols): Remove.
7705 (arm_find_mapping_symbol): Adjust to section_maps type change.
7706 (arm_objfile_data_free): Call delete on arm_per_objfile.
7707 (arm_record_special_symbol): Adjust to section_maps type change.
7708 Allocate arm_per_objfile with new.
7709
7710 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7711
7712 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7713 with the command prefix.
7714
7715 2019-06-25 Tom Tromey <tom@tromey.com>
7716
7717 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7718 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7719
7720 2019-06-25 Tom Tromey <tom@tromey.com>
7721
7722 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7723 type.
7724 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7725 protected.
7726
7727 2019-06-25 Tom Tromey <tom@tromey.com>
7728
7729 * tui/tui-winsource.c
7730 (tui_source_window_base::set_is_exec_point_at): Add check against
7731 LOA_ADDRESS.
7732
7733 2019-06-25 Tom Tromey <tom@tromey.com>
7734
7735 * tui/tui-source.c (tui_set_source_content): Don't check before
7736 xfree.
7737 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7738
7739 2019-06-25 Tom Tromey <tom@tromey.com>
7740
7741 * tui/tui-winsource.h (tui_update_source_window_as_is)
7742 (tui_alloc_source_buffer, tui_line_is_displayed)
7743 (tui_addr_is_displayed): Change type of win_info.
7744 * tui/tui-winsource.c (tui_update_source_window_as_is)
7745 (tui_clear_source_content, tui_show_source_line)
7746 (tui_show_source_content, tui_source_window_base::refill)
7747 (tui_source_window_base::set_is_exec_point_at)
7748 (tui_source_window_base::set_is_exec_point_at)
7749 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7750 (tui_alloc_source_buffer, tui_line_is_displayed)
7751 (tui_addr_is_displayed): Change type of win_info. Update.
7752 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7753 (tui_source_window_base::do_make_visible_with_new_height):
7754 Update.
7755 * tui/tui-source.c (tui_set_source_content)
7756 (tui_set_source_content_nil)
7757 (tui_source_window::do_scroll_vertical): Update.
7758 * tui/tui-layout.c (show_layout): Update.
7759 * tui/tui-disasm.c (tui_set_disassem_content)
7760 (tui_disasm_window::do_scroll_vertical): Update.
7761 * tui/tui-data.h (tui_win_content): Remove.
7762 (struct tui_gen_win_info) <content, content_size>: Remove.
7763 (struct tui_source_element): Add initializers and destructor.
7764 (union tui_which_element, struct tui_win_element): Remove.
7765 (struct tui_source_window_base) <content>: New field.
7766 (struct tui_data_window): Remove destructor.
7767 (tui_alloc_content, tui_free_win_content)
7768 (tui_free_all_source_wins_content): Don't declare.
7769 * tui/tui-data.c (tui_initialize_static_data): Update.
7770 (init_content_element, tui_alloc_content): Remove.
7771 (~tui_gen_win_info): Update.
7772 (~tui_data_window, tui_free_all_source_wins_content)
7773 (tui_free_win_content, free_content, free_content_elements):
7774 Remove.
7775
7776 2019-06-25 Tom Tromey <tom@tromey.com>
7777
7778 * tui/tui-winsource.h (tui_clear_source_content)
7779 (tui_erase_source_content, tui_show_source_content): Change type
7780 of win_info.
7781 * tui/tui-winsource.c (tui_clear_source_content)
7782 (tui_erase_source_content, tui_show_source_content): Change type
7783 of win_info.
7784 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7785 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7786 win_info.
7787 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7788 win_info.
7789 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7790
7791 2019-06-25 Tom Tromey <tom@tromey.com>
7792
7793 * tui/tui-winsource.c (tui_clear_source_content)
7794 (tui_source_window_base::set_is_exec_point_at): Update.
7795 * tui/tui-source.c (tui_set_source_content_nil): Update.
7796 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7797 a bool.
7798 * tui/tui-data.c (init_content_element): Update.
7799
7800 2019-06-25 Tom Tromey <tom@tromey.com>
7801
7802 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7803 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7804 * tui/tui-layout.c (init_and_make_win): Update.
7805 * tui/tui.h (enum tui_win_type): Update.
7806 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7807 tui_win_is_auxillary.
7808 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7809 tui_win_is_auxillary.
7810
7811 2019-06-25 Tom Tromey <tom@tromey.com>
7812
7813 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7814 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7815 (tui_delete_data_content_windows, tui_display_all_data)
7816 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7817 Update.
7818 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7819 * tui/tui-regs.c (tui_last_regs_line_no)
7820 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7821 (tui_show_registers): Update.
7822 (tui_show_register_group): Return void. Update.
7823 (tui_display_registers_from, tui_display_reg_element_at_line)
7824 (tui_display_registers_from_line, tui_check_register_values):
7825 Update.
7826 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7827 member.
7828 (struct tui_data_window) <regs_content>: Now a std::vector.
7829 <regs_content_count>: Remove.
7830 (tui_add_content_elements, tui_free_data_content): Don't declare.
7831 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7832 (init_content_element): Remove DATA_WIN case. Add assert.
7833 (tui_add_content_elements): Remove.
7834 (tui_data_window): Update.
7835 (tui_free_data_content): Remove.
7836 (free_content_elements): Remove DATA_WIN case.
7837
7838 2019-06-25 Tom Tromey <tom@tromey.com>
7839
7840 * tui/tui-data.c (tui_data_item_window): Update.
7841 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7842 * tui/tui-windata.c (tui_display_all_data)
7843 (tui_display_data_from_line): Update.
7844 (tui_check_data_values): Remove.
7845 * tui/tui-regs.c (tui_show_register_group)
7846 (tui_display_reg_element_at_line): Update.
7847 * tui/tui-hooks.c (tui_register_changed)
7848 (tui_refresh_frame_and_register_information): Call
7849 tui_check_register_values.
7850 * tui/tui-data.h (struct tui_data_window) <data_content,
7851 data_content_count, data_type>: Remove.
7852 (enum tui_data_type): Remove.
7853
7854 * tui/tui-data.c (tui_data_window::clear_detail)
7855 (~tui_data_window): Update.
7856
7857 2019-06-25 Tom Tromey <tom@tromey.com>
7858
7859 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7860 declare.
7861 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7862 Rename from tui_first_data_item_displayed. Update.
7863 (tui_data_window::refresh_all)
7864 (tui_data_window::do_scroll_vertical): Update.
7865 * tui/tui-data.h (struct tui_data_window)
7866 <first_data_item_displayed>: Declare new method.
7867
7868 2019-06-25 Tom Tromey <tom@tromey.com>
7869
7870 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7871 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7872 contents...
7873 (tui_initialize_static_data): ...here.
7874
7875 2019-06-25 Tom Tromey <tom@tromey.com>
7876
7877 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7878 (tui_display_registers_from, tui_check_register_values): Update.
7879 (tui_display_register): Remove win_info parameter; update.
7880 (tui_get_register): Change type of parameters.
7881 * tui/tui-data.h (struct tui_data_element): Remove.
7882 (union tui_which_element) <data>: Remove.
7883 <data_window>: Change type.
7884 (struct tui_data_item_window): New.
7885 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7886 case. Add assert.
7887 (~tui_data_item_window): New destructor.
7888 (free_content_elements): Remove DATA_ITEM_WIN case.
7889
7890 2019-06-25 Tom Tromey <tom@tromey.com>
7891
7892 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7893 Remove.
7894
7895 2019-06-25 Tom Tromey <tom@tromey.com>
7896
7897 * tui/tui-data.h (struct tui_command_element): Remove.
7898 (union tui_which_element) <command>: Remove.
7899 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7900 assert.
7901 (free_content_elements): Remove CMD_WIN case.
7902
7903 2019-06-25 Tom Tromey <tom@tromey.com>
7904
7905 * tui/tui-layout.c (tui_set_layout): Update.
7906 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7907 * tui/tui-data.c (layout_def): Update.
7908
7909 2019-06-25 Tom Tromey <tom@tromey.com>
7910
7911 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7912 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7913 (tui_source_window_base::set_new_height): Update.
7914 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7915 Update.
7916 (tui_set_locator_fullname, tui_set_locator_info)
7917 (tui_show_frame_info): Update.
7918 * tui/tui-source.c (tui_set_source_content)
7919 (tui_source_is_displayed): Update.
7920 * tui/tui-layout.c (show_source_disasm_command, show_data)
7921 (show_source_or_disasm_and_command): Update.
7922 * tui/tui-disasm.c (tui_set_disassem_content)
7923 (tui_get_begin_asm_address): Update.
7924 * tui/tui-data.h (struct tui_locator_element): Remove.
7925 (union tui_which_element) <locator>: Remove.
7926 (struct tui_locator_window): New.
7927 (tui_locator_win_info_ptr): Change return type.
7928 * tui/tui-data.c (_locator): Change type.
7929 (tui_locator_win_info_ptr): Change return type.
7930 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7931 (tui_alloc_content): Add assert.
7932
7933 2019-06-25 Tom Tromey <tom@tromey.com>
7934
7935 * tui/tui-winsource.c
7936 (tui_exec_info_window::maybe_allocate_content): New method.
7937 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7938 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7939 (make_source_or_disasm_window): Add cast.
7940 * tui/tui-data.h (union tui_which_element) <simple_string>:
7941 Remove.
7942 (struct tui_source_info): New.
7943 (struct tui_source_window_base) <execution_info>: Change type.
7944 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7945 case, and add assert.
7946 (tui_alloc_content): Add assert.
7947
7948 2019-06-25 Tom Tromey <tom@tromey.com>
7949
7950 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7951 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7952 * tui/tui-data.c (tui_alloc_win_info): Remove.
7953
7954 2019-06-25 Tom Tromey <tom@tromey.com>
7955
7956 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7957 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7958 can_highlight.
7959
7960 2019-06-25 Tom Tromey <tom@tromey.com>
7961
7962 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7963 make_visible_with_new_height method.
7964 (tui_win_info::make_visible_with_new_height): New method.
7965 (tui_source_window_base::do_make_visible_with_new_height)
7966 (tui_data_window::do_make_visible_with_new_height)
7967 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7968 (make_visible_with_new_height): Remove.
7969 (tui_resize_all, tui_adjust_win_heights): Use
7970 make_visible_with_new_height method.
7971 * tui/tui-data.h (struct tui_win_info)
7972 <do_make_visible_with_new_height, make_visible_with_new_height>:
7973 New methods.
7974 (struct tui_source_window_base, struct tui_data_window)
7975 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7976 methods.
7977
7978 2019-06-25 Tom Tromey <tom@tromey.com>
7979
7980 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7981 method.
7982 (update_tab_width): Call update_tab_width method.
7983 * tui/tui-data.h (struct tui_win_info)
7984 (struct tui_source_window_base) <update_tab_width>: New methods.
7985
7986 2019-06-25 Tom Tromey <tom@tromey.com>
7987
7988 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7989 parameter.
7990 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7991 parameter.
7992 (tui_gen_win_info::make_visible): Update.
7993 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7994 parameter.
7995 * tui/tui-data.h (enum tui_box): New enum.
7996 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7997
7998 2019-06-25 Tom Tromey <tom@tromey.com>
7999
8000 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8001 init_and_make_win for EXEC_INFO_WIN.
8002 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8003 longer inline.
8004 (struct tui_win_info) <~tui_win_info>: Inline.
8005 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8006 Don't declare.
8007 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8008 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8009 Remove.
8010 (tui_initialize_static_data): Update.
8011 (~tui_gen_win_info): Handle more cleanup here.
8012 (~tui_source_window_base): Delete "execution_info".
8013 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8014
8015 2019-06-25 Tom Tromey <tom@tromey.com>
8016
8017 * tui/tui-layout.c (make_command_window): Don't set
8018 can_highlight.
8019 (show_source_disasm_command): Call the reset method.
8020 (show_data): Don't set can_highlight. Call the reset method.
8021 (tui_gen_win_info::reset): Rename from init_gen_win_info
8022 (init_and_make_win): Simplify. Return tui_gen_win_info.
8023 (show_source_or_disasm_and_command): Call the reset method.
8024 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8025 (struct tui_cmd_window): Set can_highlight.
8026
8027 2019-06-25 Tom Tromey <tom@tromey.com>
8028
8029 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8030 from make_visible.
8031 (tui_make_visible, tui_make_invisible): Rewrite.
8032 (tui_win_info::make_visible): Remove.
8033 (tui_source_window_base::make_visible): Update.
8034 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8035 method. Moved from...
8036 (struct tui_win_info) <make_visible>: ...here.
8037
8038 2019-06-25 Tom Tromey <tom@tromey.com>
8039
8040 * tui/tui-winsource.c
8041 (tui_source_window_base::do_scroll_horizontal): Remove direction
8042 parameter.
8043 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8044 direction parameter.
8045 * tui/tui-win.c (tui_win_info::forward_scroll)
8046 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8047 (tui_win_info::right_scroll): Update.
8048 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8049 direction parameter.
8050 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8051 direction parameter.
8052 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8053 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8054 Remove direction parameter.
8055 (struct tui_source_window_base, struct tui_source_window)
8056 (struct tui_disasm_window, struct tui_data_window)
8057 (struct tui_cmd_window): Update.
8058
8059 2019-06-25 Tom Tromey <tom@tromey.com>
8060
8061 * tui/tui-winsource.h (tui_set_exec_info_content)
8062 (tui_show_exec_info_content, tui_erase_exec_info_content)
8063 (tui_clear_exec_info_content, tui_update_exec_info): Change
8064 argument to tui_source_window_base.
8065 * tui/tui-winsource.c (tui_set_exec_info_content)
8066 (tui_show_exec_info_content, tui_erase_exec_info_content)
8067 (tui_clear_exec_info_content, tui_update_exec_info): Change
8068 argument to tui_source_window_base.
8069
8070 2019-06-25 Tom Tromey <tom@tromey.com>
8071
8072 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8073 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8074
8075 2019-06-25 Tom Tromey <tom@tromey.com>
8076
8077 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8078 check.
8079
8080 2019-06-25 Tom Tromey <tom@tromey.com>
8081
8082 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8083 type to void.
8084 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8085 type to void.
8086 * tui/tui-source.c (tui_set_source_content): Update.
8087 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8088
8089 2019-06-25 Tom Tromey <tom@tromey.com>
8090
8091 * tui/tui-win.c (window_name_completer, tui_set_focus)
8092 (tui_all_windows_info): Use name method.
8093 * tui/tui-data.h (struct tui_gen_win_info)
8094 (struct tui_source_window, struct tui_disasm_window)
8095 (struct tui_data_window, struct tui_cmd_window) <name>: New
8096 method.
8097 (tui_win_name): Don't declare.
8098 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8099 (tui_win_name): Remove.
8100
8101 2019-06-25 Tom Tromey <tom@tromey.com>
8102
8103 * tui/tui-winsource.h (tui_update_source_window)
8104 (tui_update_source_window_as_is): Change parameter type.
8105 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8106 to be a tui_source_window_base.
8107 (tui_update_source_window_as_is): Likewise.
8108 * tui/tui-win.c (make_visible_with_new_height): Update.
8109
8110 2019-06-25 Tom Tromey <tom@tromey.com>
8111
8112 * tui/tui-winsource.c (tui_erase_source_content)
8113 (tui_show_source_content, tui_show_exec_info_content)
8114 (tui_erase_exec_info_content): Use refresh_window method.
8115 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8116 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8117 from tui_refresh_win.
8118 (tui_data_window::refresh_window): New method.
8119 (tui_win_info::refresh, tui_source_window_base::refresh)
8120 (tui_refresh_all): Use refresh_window method.
8121 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8122 method.
8123 * tui/tui-regs.c (tui_display_register): Call refresh_window
8124 method.
8125 * tui/tui-layout.c (show_source_disasm_command)
8126 (show_source_or_disasm_and_command): Call refresh_window method.
8127 * tui/tui-data.h (struct tui_gen_win_info)
8128 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8129 New method.
8130
8131 2019-06-25 Tom Tromey <tom@tromey.com>
8132
8133 * tui/tui.c (tui_rl_other_window, tui_enable)
8134 (tui_is_window_visible, tui_get_command_dimension): Update.
8135 * tui/tui-winsource.c (tui_update_source_window_as_is)
8136 (tui_clear_source_content, tui_erase_source_content)
8137 (tui_show_source_line, tui_source_window_base::refill)
8138 (tui_source_window_base::do_scroll_horizontal)
8139 (tui_source_window_base::set_is_exec_point_at)
8140 (tui_update_breakpoint_info, tui_set_exec_info_content)
8141 (tui_alloc_source_buffer, tui_line_is_displayed)
8142 (tui_addr_is_displayed): Update.
8143 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8144 (tui_check_and_display_highlight_if_needed)
8145 (tui_win_info::make_visible, tui_win_info::refresh)
8146 (tui_refresh_all): Update.
8147 * tui/tui-windata.c (tui_first_data_item_displayed)
8148 (tui_delete_data_content_windows, tui_erase_data_content)
8149 (tui_display_all_data, tui_data_window::refresh_all)
8150 (tui_check_data_values): Update.
8151 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8152 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8153 (tui_win_info::backward_scroll, tui_refresh_all_win)
8154 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8155 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8156 (tui_source_window_base::set_new_height)
8157 (tui_data_window::set_new_height)
8158 (make_invisible_and_set_new_height)
8159 (make_visible_with_new_height, new_height_ok)
8160 (parse_scrolling_args): Update.
8161 * tui/tui-stack.c (tui_show_frame_info): Update.
8162 * tui/tui-source.c (tui_set_source_content)
8163 (tui_set_source_content_nil, tui_source_is_displayed)
8164 (tui_source_window::do_scroll_vertical): Update.
8165 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8166 (tui_display_registers_from, tui_display_reg_element_at_line)
8167 (tui_check_register_values, tui_reg_command): Update.
8168 * tui/tui-layout.c (tui_default_win_height)
8169 (show_source_disasm_command, show_data, init_and_make_win)
8170 (show_source_or_disasm_and_command): Update.
8171 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8172 (tui_redisplay_readline, tui_mld_flush)
8173 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8174 (tui_getc): Update.
8175 * tui/tui-disasm.c (tui_set_disassem_content)
8176 (tui_disasm_window::do_scroll_vertical): Update.
8177 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8178 Now virtual.
8179 (struct tui_win_info): Derive from tui_gen_win_info.
8180 <~tui_win_info>: Mark as override.
8181 <generic>: Remove member.
8182 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8183 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8184 (~tui_data_window, ~tui_win_info)
8185 (tui_free_all_source_wins_content): Update.
8186 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8187
8188 2019-06-25 Tom Tromey <tom@tromey.com>
8189
8190 * tui/tui-layout.c (init_and_make_win): Use new.
8191 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8192 destructor, initializers.
8193 (tui_alloc_generic_win_info): Don't declare.
8194 * tui/tui-data.c (_locator): Add argument to constructor.
8195 (source_win, disasm_win): New globals.
8196 (exec_info): Remove.
8197 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8198 Update.
8199 (tui_alloc_generic_win_info): Remove.
8200 (init_content_element): Use new.
8201 (tui_win_info::tui_win_info): Update.
8202 (free_content_elements) <case DATA_WIN>: Use delete.
8203
8204 2019-06-25 Tom Tromey <tom@tromey.com>
8205
8206 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8207 * tui/tui-windata.c (tui_first_data_item_displayed)
8208 (tui_delete_data_content_windows): Update.
8209 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8210 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8211 (tui_display_registers_from, tui_check_register_values): Update.
8212 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8213 pointer.
8214 * tui/tui-data.c (init_content_element): Update. Allocate the new
8215 window.
8216 (tui_free_data_content): Update.
8217 (free_content_elements) <case DATA_WIN>: Free the window.
8218
8219 2019-06-25 Tom Tromey <tom@tromey.com>
8220
8221 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8222 Update.
8223 * tui/tui-layout.c (make_command_window)
8224 (show_source_disasm_command, show_data, init_and_make_win)
8225 (show_source_or_disasm_and_command): Update.
8226 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8227 method.
8228 <can_highight, is_highlighted>: Now bool.
8229 (tui_set_win_highlight): Don't declare.
8230 * tui/tui-data.c (tui_set_win_highlight): Remove.
8231
8232 2019-06-25 Tom Tromey <tom@tromey.com>
8233
8234 * tui/tui-wingeneral.c (make_visible): Remove check of window
8235 type.
8236
8237 2019-06-25 Tom Tromey <tom@tromey.com>
8238
8239 * tui/tui-win.c (tui_win_info::max_height)
8240 (tui_cmd_window::max_height): New methods.
8241 (new_height_ok): Call max_height.
8242 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8243 <max_height>: New method.
8244
8245 2019-06-25 Tom Tromey <tom@tromey.com>
8246
8247 * tui/tui-win.c (tui_source_window_base::set_new_height)
8248 (tui_data_window::set_new_height): New methods.
8249 (make_invisible_and_set_new_height): Call set_new_height method.
8250 * tui/tui-data.h (struct tui_win_info)
8251 (struct tui_source_window_base, struct tui_data_window)
8252 <set_new_height>: New method.
8253
8254 2019-06-25 Tom Tromey <tom@tromey.com>
8255
8256 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8257 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8258 tui_refresh_data_win.
8259 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8260 method.
8261 (tui_refresh_all_win): Call the refresh_all method.
8262 (tui_set_focus): Likewise.
8263 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8264 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8265 Likewise.
8266
8267 2019-06-25 Tom Tromey <tom@tromey.com>
8268
8269 * tui/tui-winsource.h (tui_refill_source_window)
8270 (tui_set_is_exec_point_at): Don't declare.
8271 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8272 (tui_source_window_base::refill): Rename from
8273 tui_refill_source_window.
8274 (tui_source_window_base::do_scroll_horizontal): Update.
8275 (tui_source_window_base::set_is_exec_point_at): Rename from
8276 tui_set_is_exec_point_at.
8277 (tui_update_all_breakpoint_info): Update.
8278 * tui/tui-stack.c (tui_show_frame_info): Update.
8279 * tui/tui-layout.c (show_data): Add cast.
8280 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8281 * tui/tui-data.h (struct tui_source_window_base) <refill,
8282 set_is_exec_point_at>: New methods.
8283 (tui_source_windows, tui_add_to_source_windows): Update types.
8284 (tui_add_to_source_windows): Remove redundant declaration.
8285 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8286 (tui_source_windows): Change return type.
8287 (tui_clear_source_windows_detail): Update.
8288 (tui_add_to_source_windows): Change type of parameter.
8289 (tui_free_all_source_wins_content): Update.
8290
8291 2019-06-25 Tom Tromey <tom@tromey.com>
8292
8293 * tui/tui-wingeneral.c (tui_win_info::refresh)
8294 (tui_source_window_base::refresh): New methods.
8295 (tui_refresh_all): Call the refresh method.
8296 * tui/tui-data.h (struct tui_win_info)
8297 (struct tui_source_window_base) <refresh>: New method.
8298
8299 2019-06-25 Tom Tromey <tom@tromey.com>
8300
8301 * tui/tui.h (tui_is_window_visible): Return bool.
8302 * tui/tui.c (tui_is_window_visible): Return bool.
8303 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8304 (tui_make_visible, tui_make_invisible)
8305 (tui_win_info::make_visible)
8306 (tui_source_window_base::make_visible, make_all_visible)
8307 (tui_make_all_visible, tui_make_all_invisible): Update.
8308 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8309 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8310 bool.
8311 (struct tui_win_info, struct tui_source_window_base)
8312 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8313 * tui/tui-data.c (tui_init_generic_part): Update.
8314
8315 2019-06-25 Tom Tromey <tom@tromey.com>
8316
8317 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8318 (tui_source_window_base::make_visible): New methods.
8319 (make_all_visible): Make method call.
8320 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8321 (struct tui_source_window_base, struct tui_cmd_window): Override
8322 make_visible.
8323 (tui_win_is_source_type): Don't declare.
8324 * tui/tui-data.c (tui_win_is_source_type): Remove.
8325
8326 2019-06-25 Tom Tromey <tom@tromey.com>
8327
8328 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8329 NULL check.
8330
8331 2019-06-25 Tom Tromey <tom@tromey.com>
8332
8333 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8334 Inline constructor. Add initializers for members.
8335 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8336 constructors; now inline in class.
8337
8338 2019-06-25 Tom Tromey <tom@tromey.com>
8339
8340 * tui/tui-regs.c (tui_show_registers): Update.
8341 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8342 bool.
8343 * tui/tui-data.c (tui_data_window::clear_detail)
8344 (tui_data_window): Update.
8345
8346 2019-06-25 Tom Tromey <tom@tromey.com>
8347
8348 * tui/tui-windata.c (tui_display_all_data)
8349 (tui_display_data_from_line, tui_display_data_from)
8350 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8351 Update.
8352 * tui/tui-regs.c (tui_last_regs_line_no)
8353 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8354 (tui_show_registers, tui_show_register_group)
8355 (tui_display_registers_from, tui_display_reg_element_at_line)
8356 (tui_display_registers_from_line, tui_check_register_values)
8357 (tui_reg_next, tui_reg_prev): Update.
8358 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8359 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8360 tui_data_window.
8361 (struct tui_win_info) <detail>: Remove. Add new fields from
8362 tui_data_info.
8363 (TUI_DATA_WIN): Add cast.
8364 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8365 (~tui_data_window): Simplify.
8366
8367 2019-06-25 Tom Tromey <tom@tromey.com>
8368
8369 * tui/tui-layout.c (show_source_disasm_command)
8370 (show_source_or_disasm_and_command): Update.
8371 * tui/tui-io.c (update_cmdwin_start_line)
8372 (tui_redisplay_readline): Update.
8373 * tui/tui-data.h (struct tui_command_info): Remove.
8374 (struct tui_win_info) <detail>: Remove command_info member.
8375 (struct tui_data_window) <start_line>: New member, from
8376 tui_command_info.
8377 (TUI_CMD_WIN): Add casts.
8378
8379 2019-06-25 Tom Tromey <tom@tromey.com>
8380
8381 * tui/tui-winsource.c (tui_update_source_window)
8382 (tui_refill_source_window)
8383 (tui_source_window_base::do_scroll_horizontal)
8384 (tui_update_breakpoint_info, tui_set_exec_info_content)
8385 (tui_show_exec_info_content, tui_erase_exec_info_content)
8386 (tui_clear_exec_info_content): Update.
8387 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8388 Update.
8389 * tui/tui-win.c (make_invisible_and_set_new_height)
8390 (make_visible_with_new_height): Update.
8391 * tui/tui-source.c (tui_set_source_content)
8392 (tui_show_symtab_source): Update.
8393 * tui/tui-layout.c (extract_display_start_addr)
8394 (show_source_disasm_command, show_data)
8395 (make_source_or_disasm_window)
8396 (show_source_or_disasm_and_command): Update.
8397 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8398 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8399 "gdbarch".
8400 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8401 to tui_source_window_base.
8402 (struct tui_win_info) <detail>: Remove source_info member.
8403 (struct tui_source_window_base) <has_locator>: Inline.
8404 Move contents from tui_source_info; rename has_locator member to
8405 m_has_locator.
8406 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8407 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8408 header file.
8409 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8410 Simplify.
8411 (tui_free_all_source_wins_content): Cast to
8412 tui_source_window_base.
8413
8414 2019-06-25 Tom Tromey <tom@tromey.com>
8415
8416 * tui/tui-win.c (make_invisible_and_set_new_height)
8417 (make_visible_with_new_height): Call has_locator method.
8418 * tui/tui-layout.c (show_source_disasm_command, show_data)
8419 (show_source_or_disasm_and_command): Update for bool change.
8420 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8421 (tui_win_info) <has_locator>: New method.
8422 (struct tui_source_window_base) <has_locator>: New method.
8423 (tui_win_has_locator): Don't declare.
8424 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8425 from tui_win_has_locator.
8426 (tui_source_window_base): Use false, not FALSE.
8427
8428 2019-06-25 Tom Tromey <tom@tromey.com>
8429
8430 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8431 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8432 clear_detail method directly.
8433 (tui_clear_win_detail): Remove.
8434
8435 2019-06-25 Tom Tromey <tom@tromey.com>
8436
8437 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8438 "this", not TUI_DISASM_WIN.
8439
8440 2019-06-25 Tom Tromey <tom@tromey.com>
8441
8442 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8443 declare.
8444 * tui/tui-winsource.c
8445 (tui_source_window_base::do_scroll_horizontal): Rename from
8446 tui_horizontal_source_scroll.
8447 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8448 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8449 from tui_vertical_data_scroll.
8450 * tui/tui-win.h (tui_scroll): Don't declare.
8451 * tui/tui-win.c (tui_win_info::forward_scroll)
8452 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8453 (tui_win_info::right_scroll): Rename and update.
8454 (tui_scroll_forward_command, tui_scroll_backward_command)
8455 (tui_scroll_left_command, tui_scroll_right_command): Update.
8456 (tui_scroll): Remove.
8457 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8458 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8459 from tui_vertical_source_scroll.
8460 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8461 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8462 from tui_vertical_disassem_scroll.
8463 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8464 do_scroll_horizontal>: New methods.
8465 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8466 Likewise.
8467 (struct tui_source_window_base): Add do_scroll_horizontal.
8468 (struct tui_source_window, struct tui_disasm_window): Add
8469 do_scroll_vertical.
8470 (struct tui_data_window, struct tui_cmd_window): Add
8471 do_scroll_horizontal and do_scroll_vertical.
8472 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8473
8474 2019-06-25 Tom Tromey <tom@tromey.com>
8475
8476 * tui/tui-data.h (struct tui_source_window_base): New struct.
8477 (struct tui_source_window): Derive from tui_source_window_base.
8478 (struct tui_disasm_window): New struct.
8479 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8480 from tui_source_window::clear_detail.
8481 (tui_source_window_base): Rename from tui_source_window.
8482 (~tui_source_window_base): Rename from ~tui_source_window.
8483 (tui_alloc_win_info): Create a tui_disasm_window.
8484
8485 2019-06-25 Tom Tromey <tom@tromey.com>
8486
8487 * tui/tui-data.h (struct tui_source_window)
8488 (struct tui_data_window): Declare destructors.
8489 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8490 destructors.
8491 (tui_win_info): Simplify.
8492
8493 2019-06-25 Tom Tromey <tom@tromey.com>
8494
8495 * tui/tui-winsource.c (tui_display_main)
8496 (tui_update_source_windows_with_addr)
8497 (tui_update_all_breakpoint_info): Update.
8498 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8499 (new_height_ok, parse_scrolling_args): Update.
8500 * tui/tui-stack.c (tui_show_frame_info): Update.
8501 * tui/tui-data.h (struct tui_list): Remove.
8502 (tui_source_windows): Return a reference to a std::vector.
8503 * tui/tui-data.c (source_windows): Now a std::vector.
8504 (tui_source_windows): Change return type.
8505 (tui_clear_source_windows): Rewrite.
8506 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8507 (tui_free_all_source_wins_content): Rewrite.
8508
8509 2019-06-25 Tom Tromey <tom@tromey.com>
8510
8511 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8512 (struct tui_data_window, struct tui_cmd_window): Declare
8513 clear_detail method.
8514 * tui/tui-data.c (tui_source_window::clear_detail)
8515 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8516 methods.
8517 (tui_clear_win_detail): Simplify.
8518
8519 2019-06-25 Tom Tromey <tom@tromey.com>
8520
8521 * tui/tui-layout.c (make_source_window, make_disasm_window)
8522 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8523 Return the new window.
8524 (show_source_disasm_command, show_data)
8525 (show_source_or_disasm_and_command): Update.
8526
8527 2019-06-25 Tom Tromey <tom@tromey.com>
8528
8529 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8530 parameter. Return the new window.
8531 (show_source_disasm_command): Update and remove NULL check.
8532 (show_source_or_disasm_and_command): Update.
8533
8534 2019-06-25 Tom Tromey <tom@tromey.com>
8535
8536 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8537
8538 2019-06-25 Tom Tromey <tom@tromey.com>
8539
8540 * tui/tui-data.h (struct tui_win_info): Make constructor
8541 protected. Make destructor virtual. Add initializers.
8542 (tui_source_window, tui_data_window, tui_cmd_window): New
8543 classes.
8544 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8545 constructor. Add "type" parameter.
8546 (tui_source_window, tui_data_window, tui_cmd_window): New
8547 constructors.
8548 (tui_alloc_win_info): Instantiate the appropriate subclass.
8549
8550 2019-06-25 Tom Tromey <tom@tromey.com>
8551
8552 * tui/tui-win.c (tui_resize_all): Use delete.
8553 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8554 destructor.
8555 (tui_free_window): Don't declare.
8556 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8557 Update.
8558
8559 2019-06-25 Tom Tromey <tom@tromey.com>
8560
8561 * tui/tui-data.h (struct tui_win_info): Add constructor.
8562 * tui/tui-data.c (tui_alloc_win_info): Use new.
8563 (tui_free_window): Use delete.
8564
8565 2019-06-22 Tom Tromey <tom@tromey.com>
8566
8567 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8568 declare.
8569 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8570
8571 2019-06-22 Tom Tromey <tom@tromey.com>
8572
8573 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8574 declare.
8575 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8576
8577 2019-06-22 Tom de Vries <tdevries@suse.de>
8578
8579 * dwarf2read.c (create_addrmap_from_aranges)
8580 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8581 instead of '%zu'.
8582
8583 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8584
8585 * dwarf2read.h (dwarf2_section_info_def): Remove.
8586 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8587 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8588 std::vector<dwarf2_section_info>.
8589 (struct dwo_file) <~dwo_file>: Remove.
8590 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8591 types field.
8592 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8593 (dwarf2_read_debug_names): Likewise.
8594 (create_debug_types_hash_table): Change parameter type to
8595 array_view, adjust code accordingly.
8596 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8597 (partial_die_info::fixup): Likewise.
8598 (determine_prefix): Likewise.
8599 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8600
8601 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8602
8603 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8604 gdb_bfd_ref_ptr.
8605 <~dwo_file>: Remove call to gdb_bfd_unref.
8606 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8607 gdb_bfd_ref_ptr::get.
8608
8609 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8610
8611 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8612 type to htab_up.
8613 * dwarf2read.c (struct dwo_file): Initialize fields.
8614 <~dwo_file>: New.
8615 (free_dwo_file): Remove, move content to ~dwo_file.
8616 (struct dwo_file_deleter): Remove.
8617 (dwo_file_up>: Remove custom deleter.
8618 (free_dwo_files): Remove.
8619 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8620 dwo_files.
8621 (process_skeletonless_type_units): Call unique_ptr::get.
8622 (allocate_dwo_file_hash_table): Add deleter to created hash
8623 table. Change return type to htab_up.
8624 (lookup_dwo_file_slot): Don't memset dwo_file, call
8625 unique_ptr::get.
8626 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8627 (create_dwo_unit_in_dwp_v2): Likewise.
8628 (open_and_init_dwo_file): Likewise.
8629 (free_dwo_file_from_slot): Remove.
8630
8631 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8632
8633 * dwarf2read.h (struct dwarf2_section_info) <readin,
8634 is_virtual>: Change type to bool.
8635 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8636 true instead of 1.
8637
8638 2019-06-19 Tom Tromey <tom@tromey.com>
8639
8640 * tui/tui-data.h (tui_init_content_element): Don't declare.
8641
8642 2019-06-19 Tom Tromey <tom@tromey.com>
8643
8644 * tui/tui-data.h (tui_init_win_info): Don't declare.
8645
8646 2019-06-19 Tom de Vries <tdevries@suse.de>
8647
8648 * dwarf2read.h (abstract_to_concrete): Change type to
8649 std::unordered_map<sect_offset, std::vector<sect_offset>,
8650 gdb::hash_enum<sect_offset>>.
8651
8652 2019-06-19 Tom Tromey <tromey@adacore.com>
8653
8654 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8655 EVAL_AVOID_SIDE_EFFECTS specially.
8656
8657 2019-06-19 Tom Tromey <tromey@adacore.com>
8658
8659 * source-cache.c (highlighter): New global.
8660 (source_cache::get_source_lines): Create a highlighter on demand.
8661
8662 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8663
8664 * defs.h (deprecated_interactive_hook): Delete declaration.
8665 * interps.c (clear_interpreter_hooks): Remove use of
8666 deprecated_interactive_hook.
8667 * top.c (deprecated_interactive_hook): Delete definition.
8668 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8669
8670 2019-06-18 Tom de Vries <tdevries@suse.de>
8671
8672 PR gdb/24515
8673 * dwarf2read.h (abstract_to_concrete): Change type from
8674 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8675 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8676 * dwarf2read.c (read_variable): Update.
8677 (dwarf2_fetch_die_loc_sect_off): Update.
8678
8679 2019-06-17 Tom de Vries <tdevries@suse.de>
8680
8681 PR gdb/24617
8682 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8683 accessing parent[parent_len - 1].
8684
8685 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8686
8687 PR gdb/24364
8688 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8689 call dtrace_process_dof with NULL dof.
8690
8691 2019-06-16 Tom de Vries <tdevries@suse.de>
8692
8693 PR gdb/24445
8694 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8695
8696 2019-06-16 Tom Tromey <tom@tromey.com>
8697
8698 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8699 (make_all_visible): Use address of member.
8700
8701 2019-06-16 Tom Tromey <tom@tromey.com>
8702
8703 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8704 (tui_free_window, free_content, free_content_elements): Remove
8705 unnecessary cast.
8706 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8707 cast.
8708 * tui/tui-regs.c (tui_show_register_group)
8709 (tui_display_registers_from, tui_display_reg_element_at_line):
8710 Remove unnecessary cast.
8711
8712 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8713
8714 * linux-nat.c (normal_mask): Delete.
8715 (_initialize_linux_nat): Don't initialise normal_mask.
8716
8717 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8718
8719 PR gdb/24445
8720 * dwarf-index-write.h (write_psymtabs_to_index): Add
8721 dwz_basename parameter.
8722 * dwarf-index-write.c (write_gdbindex): Move file writing to
8723 write_gdbindex_1. Change return type void.
8724 (assert_file_size): Move up, remove filename parameter.
8725 (write_gdbindex_1): New function.
8726 (write_debug_names): Change return type to void, call
8727 assert_file_size.
8728 (struct index_wip_file): New struct.
8729 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8730 file logic to index_wip_file. Write index for dwz file if
8731 needed.
8732 (save_gdb_index_command): Pass basename of dwz file, if present.
8733 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8734 build-id of dwz file, if present.
8735 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8736 (dwarf2_get_dwz_file): Likewise.
8737 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8738 (dwarf2_get_dwz_file): Likewise.
8739
8740 2019-06-16 Tom Tromey <tom@tromey.com>
8741
8742 * coffread.c (process_coff_symbol): Use xstrdup.
8743 * value.c (create_internalvar): Use xstrdup.
8744
8745 2019-06-16 Tom Tromey <tom@tromey.com>
8746
8747 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8748 * breakpoint.c (stopin_command, stopat_command)
8749 (until_break_command, decode_location_default): Remove unnecessary
8750 cast.
8751 * utils.c (subset_compare): Remove unnecessary cast.
8752 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8753 cast.
8754 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8755 cast.
8756 * infcmd.c (path_command): Remove unnecessary cast.
8757 * coffread.c (decode_type): Remove unnecessary cast.
8758 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8759 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8760 * tui/tui-stack.c (tui_show_locator_content)
8761 (tui_show_frame_info): Remove unnecessary cast.
8762 * tui/tui-win.c (tui_scroll_forward_command)
8763 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8764 (parse_scrolling_args): Remove unnecessary cast.
8765 * tui/tui-data.c (init_win_info, tui_del_window)
8766 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8767 (free_content_elements): Remove unnecessary cast.
8768 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8769 unnecessary cast.
8770 * tui/tui-source.c (tui_set_source_content)
8771 (tui_vertical_source_scroll): Remove unnecessary cast.
8772 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8773 cast.
8774 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8775 * tui/tui-regs.c (tui_display_registers_from)
8776 (tui_display_register): Remove unnecessary cast.
8777 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8778 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8779 (make_visible): Remove unnecessary cast.
8780 * tui/tui-winsource.c (tui_erase_source_content)
8781 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8782 unnecessary cast.
8783 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8784 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8785 * stabsread.c (read_type, read_array_type, read_range_type):
8786 Remove unnecessary cast.
8787 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8788 (parse_symbol, parse_type, upgrade_type, parse_external)
8789 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8790 unnecessary cast.
8791 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8792
8793 2019-06-16 Tom Tromey <tom@tromey.com>
8794
8795 * tui/tui-data.c (tui_alloc_generic_win_info)
8796 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8797 checks.
8798
8799 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8800 Andrew Burgess <andrew.burgess@embecosm.com>
8801
8802 * f-typeprint.c (f_print_type): Don't return early for not
8803 associated or not allocated types.
8804 (f_type_print_varspec_suffix): Add print_rank parameter and print
8805 ranks of array types in case they dangling.
8806 (f_type_print_base): Add print_rank parameter.
8807
8808 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8809
8810 * NEWS: Mention new MI commands.
8811 * break-catch-throw.c (enum exception_event_kind): Move to
8812 breakpoint.h.
8813 (print_mention_exception_catchpoint): Output text as a single
8814 message.
8815 (catch_exception_command_1): Rename to...
8816 (catch_exception_event): ...this, make non-static, update header
8817 command, and change some parameter types.
8818 (catch_catch_command): Update for changes to
8819 catch_exception_command_1.
8820 (catch_throw_command): Likewise.
8821 (catch_rethrow_command): Likewise.
8822 * breakpoint.c (enum exception_event_kind): Delete.
8823 * breakpoint.h (enum exception_event_kind): Moved here from
8824 break-catch-throw.c.
8825 (catch_exception_event): Declare.
8826 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8827 (mi_cmd_catch_throw): New function.
8828 (mi_cmd_catch_rethrow): New function.
8829 (mi_cmd_catch_catch): New function.
8830 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8831 'catch-catch' entries.
8832 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8833 (mi_cmd_catch_rethrow): Declare.
8834 (mi_cmd_catch_catch): Declare.
8835
8836 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8837
8838 * annotate.c (annotate_source_line): Change return type to void,
8839 update implementation to match.
8840 * annotate.h (annotate_source_line): Change return type to void,
8841 update header comment.
8842 * stack.c (print_frame_info): Don't change what frame information
8843 is printed based on whether annotations are on or not.
8844
8845 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8846
8847 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8848 (annotate_source): Make static.
8849 (annotate_source_line): Moved from source.c and renamed from
8850 identify_source_line. Update the return type.
8851 * annotate.h (annotate_source): Delete declaration.
8852 (annotate_source_line): Declaration moved from source.h, and
8853 renamed from identify_source_line. Return type updated.
8854 * source.c (identify_source_line): Moved to annotate.c and renamed
8855 to annotate_source_line.
8856 (info_line_command): Remove check of annotation_level.
8857 * source.h (identify_source_line): Move declaration to annotate.h
8858 and rename to annotate_source_line.
8859 * stack.c: Add 'annotate.h' include.
8860 (print_frame_info): Remove check of annotation_level before
8861 calling annotate_source_line.
8862
8863 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8864
8865 * source-cache.c (source_cache::get_plain_source_lines): Use
8866 open_source_file_with_line_charpos instead of just
8867 open_source_file, remove call to find_source_lines.
8868 (source_cache::get_source_lines): Likewise.
8869 * source.c (find_source_lines): Make static.
8870 (get_filename_and_charpos): Renamed into...
8871 (open_source_file_with_line_charpos): ..this along with changes to
8872 return a scoped_fd, and some other minor clean ups.
8873 (identify_source_line): Use open_source_file_with_line_charpos.
8874 (search_command_helper): Use open_source_file_with_line_charpos
8875 instead of just open_source_file, remove call to
8876 find_source_lines.
8877 * source.h (open_source_file_with_line_charpos): Declare new
8878 function.
8879 (find_source_lines): Delete declaration.
8880
8881 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8882
8883 * source.c (get_filename_and_charpos): Remove fullname
8884 parameter.
8885 (identify_source_line): Update call to get_filename_and_charpos.
8886
8887 2019-06-14 Tom Tromey <tromey@adacore.com>
8888
8889 PR gdb/24502:
8890 * ui-style.h (skip_ansi_escape): Update comment.
8891 * ui-file.h (class no_terminal_escape_file): New class.
8892 * ui-file.c (no_terminal_escape_file::write)
8893 (no_terminal_escape_file::puts): New methods.
8894 * cli/cli-logging.c (handle_redirections): Use
8895 no_terminal_escape_file.
8896
8897 2019-06-14 Tom Tromey <tromey@adacore.com>
8898
8899 * NEWS: Move convenience variable news above Python news.
8900
8901 2019-06-14 Tom Tromey <tom@tromey.com>
8902
8903 * gnulib: Move directory to top-level.
8904 * configure.ac: Don't configure gnulib.
8905 * configure: Rebuild.
8906 * common/common-defs.h: Use new path to gnulib.
8907 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8908 (GNULIB_H): Remove.
8909 (INCGNU): Look in new gnulib location.
8910 (HFILES_NO_SRCDIR): Remove gnulib files.
8911 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8912 (generated_files): Remove GNULIB_H.
8913 ($(LIBGNU), all-lib): Remove targets.
8914 (distclean): Don't mention GNULIB_BUILDDIR.
8915 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8916
8917 2019-06-14 Tom Tromey <tromey@adacore.com>
8918
8919 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8920 Warn if symbol file does not provide any symbols.
8921
8922 2019-06-14 Tom Tromey <tromey@adacore.com>
8923
8924 * source.c (find_and_open_source): Respect basenames_may_differ.
8925
8926 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8927
8928 * annotate.c (annotate_breakpoints_invalid): Make use of
8929 scoped_restore_terminal_state.
8930 (annotate_frames_invalid): Likewise.
8931
8932 2019-06-14 Tom Tromey <tromey@adacore.com>
8933
8934 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8935 allow assignment to an internalvar.
8936
8937 2019-06-14 Tom Tromey <tromey@adacore.com>
8938
8939 * ada-lex.l: Allow "_" in attribute names.
8940
8941 2019-06-14 Tom Tromey <tromey@adacore.com>
8942
8943 PR gdb/24653:
8944 * regcache.c (registers_changed): Don't call alloca.
8945 * top.c (execute_command): Don't call alloca.
8946
8947 2019-06-13 Pedro Alves <palves@redhat.com>
8948
8949 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8950 'expression'. When parsing an expression, error out if there's
8951 junk after "unlimited".
8952 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8953 (do_set_command): Adjust calls to is_unlimited_literal.
8954
8955 2019-06-13 Pedro Alves <palves@redhat.com>
8956
8957 * compile/compile.c (make_compile_options_def_group): Add braces
8958 around array_view initializer.
8959 * thread.c (make_thread_apply_all_options_def_group)
8960 (make_thread_apply_all_options_def_group): Likewise.
8961
8962 2019-06-13 Pedro Alves <palves@redhat.com>
8963
8964 * NEWS (New commands): Mention "maint test-options
8965 require-delimiter", "maint test-options unknown-is-error", "maint
8966 test-options unknown-is-operand" and "maint show
8967 test-options-completion-result".
8968 (New command options, command completion): New section.
8969 (Completion improvements): New section.
8970 Mention that you can abbreviate "unlimited".
8971
8972 2019-06-13 Pedro Alves <palves@redhat.com>
8973
8974 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8975 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8976 * unittests/cli-utils-selftests.c (test_parse_flags)
8977 (test_parse_flags_qcs): Delete.
8978 (test_cli_utils): Don't call deleted functions.
8979
8980 2019-06-13 Pedro Alves <palves@redhat.com>
8981
8982 * thread.c: Include "cli/cli-option.h".
8983 (tp_array_compar_ascending): Global.
8984 (tp_array_compar): Delete function.
8985 (tp_array_compar_ascending, tp_array_compar_descending): New
8986 functions.
8987 (ascending_option_def, qcs_flag_option_def)
8988 (thr_qcs_flags_option_defs)
8989 (make_thread_apply_all_options_def_group)
8990 (make_thread_apply_options_def_group): New.
8991 (thread_apply_all_command): Use gdb::option::process_options.
8992 (thread_apply_command_completer)
8993 (thread_apply_all_command_completer): New.
8994 (thread_apply_command): Use gdb::option::process_options.
8995 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8996 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8997 to generate help text of "thread apply". Adjust "taas"'s help.
8998 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8999 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9000
9001 2019-06-13 Pedro Alves <palves@redhat.com>
9002
9003 * thread.c (thread_apply_command): Check for invalid TID with
9004 isdigit instead of !isalpha.
9005
9006 2019-06-13 Pedro Alves <palves@redhat.com>
9007
9008 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9009 (validate_flags_qcs): New.
9010 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9011 (validate_flags_qcs): Declare.
9012 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9013 (make_frame_apply_options_def_group): New.
9014 (frame_apply_command_count): Process options with
9015 gdb::option::process_options.
9016 (frame_apply_completer): New.
9017 (frame_apply_level_completer, frame_apply_all_completer)
9018 (frame_apply_completer): New.
9019 (_initialize_stack): Update help of "frame apply", "frame apply
9020 level", "frame apply all" and "faas" to mention supported options
9021 and install command completers.
9022 * stack.h (frame_apply_all_completer): Declare.
9023 * thread.c: Include "stack.h".
9024 (tfaas_command): Add "--".
9025 (_initialize_thread): Update help "tfaas" to mention supported
9026 options and install command completer.
9027
9028 2019-06-13 Pedro Alves <palves@redhat.com>
9029
9030 * completer.c (complete_nested_command_line): New.
9031 (gdb_completion_word_break_characters_throw): Add assertion.
9032 * completer.h (complete_nested_command_line): Declare.
9033
9034 2019-06-13 Pedro Alves <palves@redhat.com>
9035
9036 * stack.c (parse_backtrace_qualifiers): New.
9037 (backtrace_command): Use it.
9038 (backtrace_command_completer): Complete on qualifiers.
9039
9040 2019-06-13 Pedro Alves <palves@redhat.com>
9041
9042 * frame.c: Include "cli/cli-option.h.
9043 (user_set_backtrace_options): New.
9044 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9045 Delete.
9046 (get_prev_frame): Adjust.
9047 (boolean_option_def, uinteger_option_def)
9048 (set_backtrace_option_defs): New.
9049 (_initialize_frame): Adjust and use
9050 gdb::option::add_setshow_cmds_for_options to install "set
9051 backtrace past-main" and "set backtrace past-entry".
9052 * frame.h: Include "cli/cli-option.h".
9053 (struct frame_print_options): Forward declare.
9054 (print_frame_arguments_all, print_frame_arguments_scalars)
9055 (print_frame_arguments_none): Declare.
9056 (print_entry_values): Delete declaration.
9057 (struct frame_print_options, user_frame_print_options): New.
9058 (struct set_backtrace_options): New.
9059 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9060 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9061 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9062 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9063 (list_args_or_locals): Add frame_print_options parameter.
9064 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9065 * python/py-framefilter.c (enumerate_args): Pass down
9066 USER_FRAME_PRINT_OPTIONS.
9067 * stack.c: Include "cli/cli-option.h".
9068 (print_frame_arguments_all, print_frame_arguments_scalars)
9069 (print_frame_arguments_none): Declare.
9070 (print_raw_frame_arguments, print_entry_values): Delete.
9071 (user_frame_print_options): New.
9072 (boolean_option_def, enum_option_def, frame_print_option_defs):
9073 New.
9074 (struct backtrace_cmd_options): New.
9075 (bt_flag_option_def): New.
9076 (backtrace_command_option_defs): New.
9077 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9078 (print_frame_arg, read_frame_arg, print_frame_args)
9079 (print_frame_info, print_frame): Add frame_print_options parameter
9080 and use it.
9081 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9082 (backtrace_command_1): Add frame_print_options and
9083 backtrace_cmd_options parameters and use them.
9084 (make_backtrace_options_def_group): New.
9085 (backtrace_command): Process command options with
9086 gdb::option::process_options.
9087 (backtrace_command_completer): New.
9088 (_initialize_stack): Extend "backtrace"'s help to mention
9089 supported options. Install completer for "backtrace".
9090 Install some settings commands with add_setshow_cmds_for_options.
9091
9092 2019-06-13 Pedro Alves <palves@redhat.com>
9093
9094 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9095 and that "set/show print raw frame-arguments" are now deprecated.
9096
9097 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9098 command.
9099 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9100 * stack.c (_initialize_stack): Install "set/show print
9101 raw-frame-arguments", and deprecate "set/show print raw
9102 frame-arguments".
9103 * valprint.c (_initialize_valprint): Deprecate "set/show print
9104 raw".
9105
9106 2019-06-13 Pedro Alves <palves@redhat.com>
9107
9108 * compile/compile.c (struct compile_options): New.
9109 (compile_flag_option_def, compile_command_option_defs)
9110 (make_compile_options_def_group): New.
9111 (compile_file_command): Handle options with
9112 gdb::option::process_options.
9113 (compile_file_command_completer): New function.
9114 (compile_code_command): Handle options with
9115 gdb::option::process_options.
9116 (compile_code_command_completer): New function.
9117 (_initialize_compiler): Install completers for "compile code" and
9118 "compile file". Mention available options in "compile code" and
9119 "compile code"'s help.
9120 * completer.c (advance_to_completion_word): New, factored out from
9121 ...
9122 (advance_to_expression_complete_word_point): ... this.
9123 (advance_to_filename_complete_word_point): New.
9124 * completer.h (advance_to_filename_complete_word_point): New
9125 declaration.
9126
9127 2019-06-13 Pedro Alves <palves@redhat.com>
9128
9129 * compile/compile.c: Include "cli/cli-option.h".
9130 (compile_print_value): Scope data pointer is now a
9131 value_print_options pointer; adjust.
9132 (compile_print_command): Process options. Scope data pointer is
9133 now a value_print_options pointer; adjust.
9134 (_initialize_compile): Update "compile print"'s help to include
9135 supported options. Install a completer for "compile print".
9136 * cp-valprint.c (show_vtblprint, show_objectprint)
9137 (show_static_field_print): Delete.
9138 (_initialize_cp_valprint): Don't install "set print
9139 static-members", "set print vtbl", "set print object" here.
9140 * printcmd.c: Include "cli/cli-option.h" and
9141 "common/gdb_optional.h".
9142 (print_command_parse_format): Rework to fill in a
9143 value_print_options instead of a format_data.
9144 (print_value): Change parameter type from format_data pointer to
9145 value_print_options reference. Adjust.
9146 (print_command_1): Process options. Adjust to pass down a
9147 value_print_options.
9148 (print_command_completer): New.
9149 (_initialize_printcmd): Install print_command_completer as
9150 handle_brkchars completer for the "print" command. Update
9151 "print"'s help to include supported options.
9152 * valprint.c: Include "cli/cli-option.h".
9153 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9154 here from cp-valprint.c.
9155 (boolean_option_def, uinteger_option_def)
9156 (value_print_option_defs, make_value_print_options_def_group):
9157 New. Use gdb::option::add_setshow_cmds_for_options to install
9158 "set print elements", "set print null-stop", "set print repeats",
9159 "set print pretty", "set print union", "set print array", "set
9160 print address", "set print symbol", "set print array-indexes".
9161 * valprint.h: Include <string> and "cli/cli-option.h".
9162 (make_value_print_options_def_group): Declare.
9163 (print_value): Change parameter type from format_data pointer to
9164 value_print_options reference.
9165 (print_command_completer): Declare.
9166
9167 2019-06-13 Pedro Alves <palves@redhat.com>
9168
9169 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9170 (COMMON_SFILES): Add maint-test-settings.c.
9171 * cli/cli-decode.c (boolean_enums): New global, factored out from
9172 ...
9173 (add_setshow_boolean_cmd): ... here.
9174 * cli/cli-decode.h (boolean_enums): Declare.
9175 * cli/cli-option.c: New file.
9176 * cli/cli-option.h: New file.
9177 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9178 factored out from ...
9179 (parse_cli_boolean_value(const char *)): ... this.
9180 (is_unlimited_literal): Change parameter type to pointer to
9181 pointer. Adjust and advance ARG pointer.
9182 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9183 (parse_cli_var_enum): New, factored out from ...
9184 (do_set_command): ... this. Adjust.
9185 * cli/cli-setshow.h (parse_cli_boolean_value)
9186 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9187 (parse_cli_var_enum): Declare.
9188 * cli/cli-utils.c: Include "cli/cli-option.h".
9189 (get_ulongest): New.
9190 * cli/cli-utils.h (get_ulongest): Declare.
9191 (check_for_argument): New overloads.
9192 * maint-test-options.c: New file.
9193
9194 2019-06-13 Pedro Alves <palves@redhat.com>
9195
9196 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9197 parse a range if "-" is at the end of the string.
9198
9199 2019-06-13 Pedro Alves <palves@redhat.com>
9200
9201 * cli/cli-setshow.c (parse_auto_binary_operation)
9202 (parse_cli_boolean_value): Don't allow "o".
9203
9204 2019-06-13 Pedro Alves <palves@redhat.com>
9205
9206 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9207 * NEWS: Mention maint test-settings KIND.
9208 * maint-test-settings.c: New file.
9209
9210 2019-06-13 Pedro Alves <palves@redhat.com>
9211
9212 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9213 completer.
9214 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9215 "set" completers.
9216
9217 2019-06-13 Pedro Alves <palves@redhat.com>
9218
9219 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9220 after item.
9221
9222 2019-06-13 Pedro Alves <palves@redhat.com>
9223
9224 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9225
9226 2019-06-13 Pedro Alves <palves@redhat.com>
9227
9228 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9229 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9230 call.
9231 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9232 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9233 calls.
9234 (check_for_argument): Skip spaces after argument.
9235
9236 2019-06-13 Pedro Alves <palves@redhat.com>
9237
9238 * thread.c (thread_apply_command): Adjust TID parsing.
9239 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9240 detected before end of string.
9241 (tid_is_in_list): Error out if LIST is invalid.
9242
9243 2019-06-13 Pedro Alves <palves@redhat.com>
9244
9245 * completer.c (complete_line_internal_1): Rewind completion word
9246 point.
9247 (completion_tracker::advance_custom_word_point_by): Change
9248 parameter type to int.
9249 * completer.h (completion_tracker::advance_custom_word_point_by):
9250 Likewise.
9251
9252 2019-06-13 Pedro Alves <palves@redhat.com>
9253
9254 * completer.c (advance_to_completion_word): Handle delimiters.
9255
9256 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9257
9258 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9259
9260 2019-06-11 Tom Tromey <tom@tromey.com>
9261
9262 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9263 (xmalloc_failed): Move to alloc.c.
9264 * alloc.c: New file.
9265 * Makefile.in (COMMON_SFILES): Add alloc.c.
9266
9267 2019-06-11 Tom Tromey <tom@tromey.com>
9268
9269 * nat/linux-waitpid.c: Don't include server.h.
9270 (linux_debug): Remove.
9271 (my_waitpid): Update.
9272
9273 2019-06-11 Tom Tromey <tromey@adacore.com>
9274
9275 * infcall.c (_initialize_infcall): Remove trailing newline from
9276 help.
9277 * user-regs.c (_initialize_user_regs): Remove trailing newline
9278 from help.
9279 * typeprint.c (_initialize_typeprint): Remove trailing newline
9280 from help.
9281 * reverse.c (_initialize_reverse): Remove trailing newlines from
9282 help.
9283 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9284 from help.
9285 * language.c (add_set_language_command): Remove trailing newline
9286 from help.
9287 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9288 help.
9289 * disasm.c (_initialize_disasm): Remove trailing newline from
9290 help.
9291 * top.c (init_main): Remove trailing newline from help.
9292 * interps.c (_initialize_interpreter): Remove trailing newline
9293 from help.
9294 * btrace.c (_initialize_btrace): Remove trailing newlines from
9295 help.
9296 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9297 from help.
9298 * python/python.c (_initialize_python): Remove trailing newline
9299 from help.
9300 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9301 help.
9302 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9303 from help. Reformat some text.
9304 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9305 from help.
9306 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9307 newline from help.
9308
9309 2019-06-11 Tom Tromey <tromey@adacore.com>
9310
9311 * darwin-nat.c (darwin_decode_exception_message)
9312 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9313
9314 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9315
9316 * valops.c (value_slice): Check for not allocated or not
9317 associated values.
9318
9319 2019-06-10 Tom de Vries <tdevries@suse.de>
9320
9321 PR gdb/24618
9322 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9323 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9324 invalid.
9325
9326 2019-06-10 Tom de Vries <tdevries@suse.de>
9327
9328 PR gdb/24611
9329 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9330 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9331
9332 2019-06-10 Tom de Vries <tdevries@suse.de>
9333
9334 PR symtab/24545
9335 * symtab.c (struct demangled_name_entry): Add language field.
9336 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9337 static minimal symbol". Set and use language field.
9338
9339 2019-06-10 Tom Tromey <tromey@adacore.com>
9340
9341 * ada-lang.c (_initialize_ada_language): Update help text.
9342
9343 2019-06-10 Tom Tromey <tromey@adacore.com>
9344
9345 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9346 with a newline.
9347 * guile/guile.c (handle_boot_error): Don't end warning with a
9348 newline.
9349 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9350 warning with a newline.
9351 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9352 newline.
9353 (s12z_frame_cache): Likewise.
9354 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9355 a newline.
9356 * solib-svr4.c (disable_probes_interface): Don't end warning with
9357 a newline.
9358 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9359 newline.
9360 * python/python.c (do_finish_initialization): Don't end warning
9361 with a newline.
9362
9363 2019-06-10 Tom Tromey <tom@tromey.com>
9364
9365 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9366 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9367 gdbpy_enter.
9368
9369 2019-06-10 Tom Tromey <tromey@adacore.com>
9370
9371 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9372 data.
9373 (elf_new_init): Don't call stabsread_new_init.
9374 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9375 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9376 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9377
9378 2019-06-10 Tom de Vries <tdevries@suse.de>
9379
9380 PR symtab/16264
9381 PR symtab/24517
9382 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9383
9384 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9385
9386 * source.c (find_and_open_source): Also rewrite relative file
9387 names.
9388
9389 2019-04-26 Amos Bird <amosbird@gmail.com>
9390
9391 * annotate.c (annotate_thread_exited): Add "thread-exited"
9392 annotation.
9393
9394 2019-06-06 Tom Tromey <tromey@adacore.com>
9395
9396 * maint.h (class scoped_command_stats): Use
9397 DISABLE_COPY_AND_ASSIGN.
9398 <print_time>: New method.
9399 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9400 print_time.
9401 (scoped_command_stats::print_time): New method.
9402
9403 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9404
9405 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9406 instructions of lengths 6 or 8 bytes.
9407
9408 2019-06-04 Pedro Alves <palves@redhat.com>
9409
9410 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9411
9412 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9413 * breakpoint.c (condition_completer): Likewise.
9414 * cli/cli-dump.c (scan_expression): Likewise.
9415 * common/filestuff.c (mkdir_recursive): Likewise.
9416 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9417 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9418 (gdb_abspath): Likewise.
9419 * compile/compile-cplus-types.c
9420 (compile_cplus_instance::decl_name): Likewise.
9421 * completer.c (complete_explicit_location):
9422 (signal_completer, reg_or_group_completer_1): Likewise.
9423 * cp-support.c (cp_remove_params_if_any): Likewise.
9424 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9425 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9426 * infcmd.c (strip_bg_char): Likewise.
9427 * linespec.c (copy_token_string): Likewise.
9428 * mi/mi-main.c (output_cores): Likewise.
9429 * psymtab.c (psymtab_search_name):
9430 * symfile.c (test_set_ext_lang_command): Likewise.
9431 * target.c (target_fileio_read_stralloc): Likewise.
9432 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9433 * value.c (complete_internalvar): Likewise.
9434
9435 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9436
9437 Add objfile property to gdb.Type.
9438 * NEWS: Mention Python API addition.
9439 * python/py-type.c (typy_get_objfile): New method.
9440
9441 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9442
9443 * NEWS: Mention the new set|show style [title|highlight].
9444 Mention changes to "show style", "help" and "apropos".
9445
9446 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9447
9448 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9449 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9450 instead of print_help_for_command.
9451 (print_doc_of_command): New function.
9452 (help_list): Add 'apropos -v word' suggestion.
9453 (print_help_for_command): Style the command name using title style.
9454 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9455 (_initialize_cli_cmds): Describe -v in apropos_command help.
9456
9457 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9458
9459 * cli/cli-style.h (cli_style_option): Add name in constructor,
9460 add m_name class member, add constructor with intensity,
9461 add name class function.
9462 (cli_style_option::add_setshow_commands): Remove name argument.
9463 (highlight_style, title_style): New styles.
9464 * cli/cli-style.c (do_show): New function that shows a style
9465 characteristic styling the style name with itself.
9466 (set_style_name): New function.
9467 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9468 Update all callers according to the changes in cli/cli-style.h.
9469 * utils.h (fputs_highlighted): New function.
9470 * utils.c (fputs_highlighted): Likewise.
9471
9472 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9473
9474 * NEWS: Mention new pipe command and new convenience variables.
9475
9476 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9477
9478 * cli/cli-cmds.c (pipe_command): New function.
9479 (_initialize_cli_cmds): Call add_com for pipe_command.
9480 Define | as an alias for pipe.
9481 (exit_status_set_internal_vars): New function.
9482 (shell_escape): Call exit_status_set_internal_vars.
9483 cli/cli-decode.c (find_command_name_length): Recognize | as
9484 a single character command.
9485
9486 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9487
9488 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9489 top.c (execute_command_to_ui_file): New function, mostly a copy
9490 of execute_command_to_string.
9491 (execute_command_to_string): Implement by calling
9492 execute_command_to_ui_file.
9493
9494 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9495
9496 * top.h (saved_command_line): Remove declaration.
9497 * top.c (previous_saved_command_line, previous_repeat_arguments):
9498 New variables.
9499 (saved_command_line): Make static, define together with other
9500 'repeat variables'.
9501 (dont_repeat): Clear repeat_arguments.
9502 (repeat_previous, get_saved_command_line, save_command_line):
9503 New functions.
9504 (gdb_init): Initialize saved_command_line
9505 and previous_saved_command_line.
9506 * main.c (captured_main_1): Remove saved_command_line initialization.
9507 * event-top.c (handle_line_of_input): Update to use
9508 the new 'repeat' related functions instead of direct access to
9509 saved_command_line.
9510 * command.h (repeat_previous, get_saved_command_line,
9511 save_command_line): New declarations.
9512 (dont_repeat): Add comment.
9513
9514 2019-05-30 Tom Tromey <tromey@adacore.com>
9515
9516 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9517 Fix comment.
9518 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9519
9520 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9521
9522 PR cli/24587
9523 * completer.c (complete): Initialize variable word.
9524
9525 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9526
9527 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9528 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9529 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9530 'body' is NULL to the outter 'if', protecting the '!is_define'
9531 situation as well.
9532
9533 2019-05-29 Tom Tromey <tromey@adacore.com>
9534
9535 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9536 (dwarf_unknown): New function.
9537 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9538 (dwarf_type_encoding_name): Use dwarf_unknown.
9539
9540 2019-05-29 Tom Tromey <tromey@adacore.com>
9541
9542 PR c++/20020:
9543 * cp-valprint.c (cp_print_value_fields): Call
9544 cp_print_static_field inside "try".
9545
9546 2019-05-29 Tom Tromey <tromey@adacore.com>
9547
9548 * inflow.c (struct terminal_info): Add default operator=.
9549 * configure: Rebuild.
9550 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9551 -Wdeprecated-copy-dtor, -Wredundant-move.
9552
9553 2019-05-29 Tom Tromey <tromey@adacore.com>
9554
9555 * NEWS: Add entry.
9556 * infcmd.c (print_return_value_1): Handle finish_print
9557 option.
9558 (show_print_finish): New function.
9559 (_initialize_infcmd): Add "set/show print finish" commands.
9560 * valprint.c (user_print_options): Initialize new member.
9561 * valprint.h (struct value_print_options) <finish_print>: New
9562 member.
9563
9564 2019-05-28 Tom Tromey <tromey@adacore.com>
9565
9566 * ada-lang.c (ada_remove_Xbn_suffix)
9567 (find_old_style_renaming_symbol)
9568 (parse_old_style_renaming): Remove.
9569 (ada_find_renaming_symbol): Don't call
9570 find_old_style_renaming_symbol.
9571 (ada_is_renaming_symbol): Rename from
9572 ada_find_renaming_symbol. Remove "block" parameter. Return
9573 bool. Now static.
9574 (ada_read_var_value): Update and simplify.
9575 * ada-exp.y (write_var_or_type): Remove old code.
9576
9577 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9578
9579 PR gdb/25010
9580 * event-top.c: Remove include comment.
9581 * inflow.c (class scoped_ignore_sigttou): Move from here...
9582 * inflow.h (class scoped_ignore_sigttou): ...to here.
9583 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9584 * top.c: Remove include comment.
9585
9586 2019-05-27 Tom Tromey <tom@tromey.com>
9587
9588 * NEWS: Fix typo.
9589
9590 2019-05-22 Tom Tromey <tromey@adacore.com>
9591
9592 * target.c (target_follow_exec): Constify parameter.
9593 * target-delegates.c: Rebuild.
9594 * remote.c (remote_target::follow_exec): Constify parameter.
9595 * infrun.c (follow_exec): Constify parameter.
9596 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9597 (target_follow_exec): Likewise.
9598
9599 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9600
9601 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9602 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9603
9604 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9605
9606 * NEWS: Add debugredirect and testsuite sections.
9607
9608 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9609
9610 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9611 target descriptions using exclusively floating point register name
9612 aliases.
9613
9614 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9615
9616 PR gdb/18644:
9617 * f-lang.c (build_fortran_types): Handle the case where
9618 gdbarch_floatformat_for_type returns a nullptr.
9619
9620 2019-05-21 Tom de Vries <tdevries@suse.de>
9621
9622 PR cli/24587
9623 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9624
9625 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9626
9627 PR gdb/18644:
9628 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9629 16-byte floats.
9630 * i386-tdep.c (i386_floatformat_for_type): Use
9631 floatformats_ia64_quad for the 16-byte floating point component
9632 within a fortran 32-byte complex number.
9633
9634 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9635
9636 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9637 delete default constructor.
9638 (find_partial_die): Update to return const struct.
9639 (partial_die_parent_scope): Move variable declaration into scope
9640 of its use and change its type to auto.
9641 (guess_partial_die_structure_name): Likewise.
9642 (partial_die_info::fixup): Likewise.
9643
9644 2019-05-17 Tom Tromey <tromey@adacore.com>
9645
9646 * source.c (find_and_open_source): Remove cast.
9647
9648 2019-05-17 Tom Tromey <tromey@adacore.com>
9649
9650 * annotate.c (annotate_source): Make "filename" const.
9651 * annotate.h (annotate_source): Use const.
9652
9653 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9654
9655 * disasm.c (set_disassembler_options): Send errors to stderr.
9656
9657 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9658
9659 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9660 (cli_interp_base::set_logging): Check debug_redirect.
9661 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9662 * cli/cli-logging.c (debug_redirect): Add static variable.
9663 (pop_output_files): Add default param.
9664 (handle_redirections): Print debug setting.
9665 (show_logging_command): Likewise.
9666 (_initialize_cli_logging): Add debugredirect command.
9667 * interps.c (current_interp_set_logging): Add debug_redirect
9668 parameter.
9669 * interps.h (set_logging): Add debug_redirect parameter.
9670 (current_interp_set_logging): Likewise.
9671 * mi/mi-common.h: Likewise.
9672 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9673
9674 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9675 Tom Tromey <tromey@adacore.com>
9676
9677 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9678 directly.
9679 * cli/cli-interp.h (make_logging_output): Remove declaration.
9680 * cli/cli-logging.c (make_logging_output): Remove function.
9681 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9682 directly.
9683 * ui-file.c (tee_file::tee_file): Remove bools.
9684 (tee_file::~tee_file): Remove deletes.
9685 * ui-file.h (tee_file): Remove bools.
9686
9687 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9688
9689 * mi/mi-cmds.h (mi_cmd_complete): New function.
9690 * mi/mi-main.c (mi_cmd_complete): Likewise.
9691 * mi/mi-cmds.c: Define new MI command -complete.
9692 * NEWS: Mention new -complete command.
9693
9694 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9695
9696 * completer.h (complete): New function.
9697 * completer.c (complete): Likewise.
9698 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9699 function defined in completer.h.
9700
9701 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9702
9703 * MAINTAINERS (Write After Approval): Add myself.
9704
9705 2019-05-17 Tom de Vries <tdevries@suse.de>
9706
9707 PR gdb/24094
9708 * dwarf2read.c (struct cu_partial_die_info): New struct.
9709 (find_partial_die): Return cu_partial_die_info.
9710 (partial_die_parent_scope, guess_partial_die_structure_name)
9711 (partial_die_info::fixup): Handle new return type of find_partial_die.
9712
9713 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9714
9715 PR breakpoints/24541
9716 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9717 "std::string", simplifying the algorithm.
9718
9719 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9720
9721 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9722 (stap_static_probe_ops::get_probes): Likewise.
9723
9724 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9725
9726 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9727 '-')" and "else if".
9728 (stap_parse_single_operand): Join checks for
9729 "gdbarch_stap_parse_special_token_p" and
9730 "gdbarch_stap_parse_special_token" in the same "if" statement.
9731 Invert check when verifying for operation on register
9732 displacement.
9733
9734 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9735
9736 * stap-probe.c (stap_get_opcode): Update comment.
9737 (stap_get_expected_argument_type): Likewise.
9738 (handle_stap_probe): Likewise.
9739
9740 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9741
9742 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9743 return type to 'bool'. Adjust comment. Use 'bool' when
9744 appropriate.
9745 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9746 * stap-probe.c (stap_parse_argument_1): Likewise.
9747 (stap_is_operator): Likewise.
9748 (stap_is_generic_prefix): Likewise.
9749 (stap_is_register_prefix): Likewise.
9750 (stap_is_register_indirection_prefix): Likewise.
9751 (stap_is_integer_prefix): Likewise.
9752 (stap_generic_check_suffix): Likewise.
9753 (stap_check_integer_suffix): Likewise.
9754 (stap_check_register_suffix): Likewise.
9755 (stap_check_register_indirection_suffix): Likewise.
9756 (stap_parse_register_operand): Likewise.
9757 (stap_parse_single_operand): Likewise.
9758 (stap_parse_argument_1): Likewise.
9759 (stap_probe::get_argument_count): Likewise.
9760 (stap_is_operator): Likewise.
9761
9762 2019-05-16 Tom Tromey <tromey@adacore.com>
9763
9764 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9765 keyword to foreach.
9766
9767 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9768
9769 * linux-thread-db.c (try_thread_db_load_1): Change return type
9770 to bool.
9771 (try_thread_db_load): Likewise.
9772 (try_thread_db_load_from_pdir_1): Likewise.
9773 (try_thread_db_load_from_pdir): Likewise.
9774 (try_thread_db_load_from_sdir): Likewise.
9775 (try_thread_db_load_from_dir): Likewise.
9776 (thread_db_load_search): Likewise.
9777 (has_libpthread): Likewise.
9778 (thread_db_load): Likewise.
9779
9780 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9781
9782 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9783 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9784 NULL, and complain/return if that's the case.
9785
9786 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9787
9788 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9789 (advance, posn, abstract_read_memory): New functions.
9790 [struct mem_read_abstraction]: New struct.
9791 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9792
9793 2019-05-14 Tom Tromey <tromey@adacore.com>
9794
9795 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9796 value is not lval_memory.
9797
9798 2019-05-14 Tom Tromey <tromey@adacore.com>
9799
9800 * solib.c (info_sharedlibrary_command): Style the file name.
9801
9802 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9803
9804 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9805 (aarch64_vnv_type): Likewise.
9806 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9807 * common/tdesc.c: Likewise.
9808 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9809 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9810 * features/aarch64-fpu.xml: Add ieee half view.
9811 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9812 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9813 * gdbtypes.h (struct builtin_type): Likewise.
9814 (struct objfile_type): Likewise.
9815
9816 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9817
9818 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9819 typo.
9820 * location.h (string_to_event_location): Likewise.
9821
9822 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9823
9824 GDB 8.3 released.
9825
9826 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9827
9828 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9829 New variable declaration.
9830 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9831 New variable.
9832 (print_one_breakpoint): Use ui_out::test_flags and new global
9833 variable to compute use_fixed_output.
9834 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9835 Remove.
9836 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9837 (mi_multi_location_breakpoint_output_fixed): Remove.
9838 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9839 new variable.
9840 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9841 fix_multi_location_breakpoint_output flag if version >= 3.
9842 * ui-out.h (enum ui_out_flag)
9843 <fix_multi_location_breakpoint_output>: New enumerator.
9844
9845 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9846
9847 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9848
9849 2019-05-10 Tom Tromey <tromey@adacore.com>
9850
9851 * ada-lang.c (catch_ada_completer): New function.
9852 (_initialize_ada_language): Use it.
9853
9854 2019-05-10 Tom Tromey <tromey@adacore.com>
9855
9856 * thread.c (print_thread_info): Make "requested_threads" const.
9857 * gdbthread.h (print_thread_info): Make "requested_threads"
9858 const.
9859 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9860 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9861
9862 2019-05-08 Tom Tromey <tom@tromey.com>
9863
9864 * gdbtypes.c (objfile_type_data): Change type.
9865 (objfile_type, _initialize_gdbtypes): Update.
9866
9867 2019-05-08 Tom Tromey <tom@tromey.com>
9868
9869 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9870 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9871 (_initialize_dwarf2_frame): Update.
9872
9873 2019-05-08 Tom Tromey <tom@tromey.com>
9874
9875 * objc-lang.c (objc_objfile_data): Change type.
9876 (find_methods): Update.
9877 (_initialize_objc_lang): Remove.
9878
9879 2019-05-08 Tom Tromey <tom@tromey.com>
9880
9881 * stabsread.c (rs6000_builtin_type_data): Change type.
9882 (rs6000_builtin_type, _initialize_stabsread): Update.
9883
9884 2019-05-08 Tom Tromey <tom@tromey.com>
9885
9886 * mips-tdep.c (mips_pdr_data): Remove.
9887 (_initialize_mips_tdep): Update.
9888
9889 2019-05-08 Tom Tromey <tom@tromey.com>
9890
9891 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9892 (hppa_init_objfile_priv_data, read_unwind_info)
9893 (find_unwind_entry, _initialize_hppa_tdep): Update.
9894
9895 2019-05-08 Tom Tromey <tom@tromey.com>
9896
9897 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9898 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9899 on obstack.
9900 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9901
9902 2019-05-08 Tom Tromey <tom@tromey.com>
9903
9904 * mdebugread.c (basic_type_data): Change type.
9905 (basic_type, _initialize_mdebugread): Update.
9906
9907 2019-05-08 Tom Tromey <tom@tromey.com>
9908
9909 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9910
9911 2019-05-08 Tom Tromey <tom@tromey.com>
9912
9913 * nto-tdep.c (nto_inferior_data_reg): Change type.
9914 (nto_inferior_data): Update.
9915 (nto_inferior_data_cleanup, nto_new_inferior_data)
9916 (_initialize_nto_tdep): Remove.
9917 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9918
9919 2019-05-08 Tom Tromey <tom@tromey.com>
9920
9921 * ada-lang.c (struct ada_inferior_data): Add initializers.
9922 (ada_inferior_data): Change type.
9923 (ada_inferior_data_cleanup): Remove.
9924 (get_ada_inferior_data, ada_inferior_exit)
9925 (struct ada_pspace_data): Add initializers, destructor.
9926 (ada_pspace_data_handle): Change type.
9927 (get_ada_pspace_data): Update.
9928 (ada_pspace_data_cleanup): Remove.
9929
9930 2019-05-08 Tom Tromey <tom@tromey.com>
9931
9932 * coffread.c (struct coff_symfile_info): Add initializers.
9933 (coff_objfile_data_key): Move lower. Change type.
9934 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9935 Update.
9936 (coff_free_info): Remove.
9937
9938 2019-05-08 Tom Tromey <tom@tromey.com>
9939
9940 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9941 (fbsd_pspace_data_handle): Move lower. Change type.
9942 (get_fbsd_pspace_data): Update.
9943 (fbsd_pspace_data_cleanup): Remove.
9944 (_initialize_fbsd_tdep): Update.
9945
9946 2019-05-08 Tom Tromey <tom@tromey.com>
9947
9948 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9949 (get_ada_tasks_pspace_data): Update.
9950 (ada_tasks_pspace_data_cleanup): Remove.
9951 (_initialize_tasks): Update.
9952 (ada_tasks_inferior_data_handle): Change type.
9953 (get_ada_tasks_inferior_data): Update.
9954 (ada_tasks_inferior_data_cleanup): Remove.
9955 (struct ada_tasks_pspace_data): Add initializers.
9956
9957 2019-05-08 Tom Tromey <tom@tromey.com>
9958
9959 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9960 * symfile-debug.c (debug_sym_get_probes): Change type.
9961 * stap-probe.c (handle_stap_probe):
9962 (stap_static_probe_ops::get_probes): Change type.
9963 * probe.h (class static_probe_ops) <get_probes>: Change type.
9964 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9965 (parse_probes_in_pspace): Update.
9966 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9967 Update.
9968 (any_static_probe_ops::get_probes): Change type.
9969 * elfread.c (elfread_data): New typedef.
9970 (probe_key): Change type.
9971 (elf_get_probes): Likewise. Update.
9972 (probe_key_free): Remove.
9973 (_initialize_elfread): Update.
9974 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9975 Change type.
9976 (dtrace_process_dof_probe, dtrace_process_dof)
9977 (dtrace_static_probe_ops::get_probe): Change type.
9978
9979 2019-05-08 Tom Tromey <tom@tromey.com>
9980
9981 * xcoffread.c (struct xcoff_symfile_info): Rename from
9982 coff_symfile_info. Add initializers.
9983 (xcoff_objfile_data_key): Move lower. Change type.
9984 (XCOFF_DATA): Rewrite.
9985 (xcoff_free_info): Remove.
9986 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9987 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9988 (xcoff_initial_scan): Update.
9989
9990 2019-05-08 Tom Tromey <tom@tromey.com>
9991
9992 * solib-svr4.c (struct svr4_info): Add initializers and
9993 destructor.
9994 <probes_table>: Now an htab_up.
9995 (solib_svr4_pspace_data): Change type.
9996 (free_probes_table): Simplify.
9997 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9998 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9999 (probes_table_remove_objfile_probes, register_solib_event_probe)
10000 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10001 (_initialize_svr4_solib): Update.
10002
10003 2019-05-08 Tom Tromey <tom@tromey.com>
10004
10005 * remote.c (remote_pspace_data): Change type.
10006 (remote_pspace_data_cleanup): Remove.
10007 (get_remote_exec_file, set_pspace_remote_exec_file)
10008 (_initialize_remote): Update.
10009
10010 2019-05-08 Tom Tromey <tom@tromey.com>
10011
10012 * breakpoint.c (breakpoint_objfile_key): Change type.
10013 (get_breakpoint_objfile_data): Update.
10014 (free_breakpoint_objfile_data): Remove.
10015 (_initialize_breakpoint): Update.
10016
10017 2019-05-08 Tom Tromey <tom@tromey.com>
10018
10019 * linux-tdep.c (struct linux_info): Add initializers.
10020 (linux_inferior_data): Move. Change type.
10021 (invalidate_linux_cache_inf): Update.
10022 (linux_inferior_data_cleanup): Remove.
10023 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10024
10025 2019-05-08 Tom Tromey <tom@tromey.com>
10026
10027 * auxv.c (auxv_inferior_data): Move. Change type.
10028 (auxv_inferior_data_cleanup): Remove.
10029 (invalidate_auxv_cache_inf): Rewrite.
10030 (get_auxv_inferior_data, _initialize_auxv): Update.
10031
10032 2019-05-08 Tom Tromey <tom@tromey.com>
10033
10034 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10035 (symfile_debug_objfile_data_key): Change type.
10036 (symfile_debug_installed, debug_qf_has_symbols)
10037 (debug_qf_find_last_source_symtab)
10038 (debug_qf_forget_cached_source_info)
10039 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10040 (debug_qf_print_stats, debug_qf_dump)
10041 (debug_qf_expand_symtabs_for_function)
10042 (debug_qf_expand_all_symtabs)
10043 (debug_qf_expand_symtabs_with_fullname)
10044 (debug_qf_map_matching_symbols)
10045 (debug_qf_expand_symtabs_matching)
10046 (debug_qf_find_pc_sect_compunit_symtab)
10047 (debug_qf_map_symbol_filenames)
10048 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10049 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10050 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10051 (debug_sym_read_linetable, debug_sym_relocate): Update.
10052 (symfile_debug_free_objfile): Remove.
10053 (install_symfile_debug_logging, _initialize_symfile_debug):
10054 Update.
10055
10056 2019-05-08 Tom Tromey <tom@tromey.com>
10057
10058 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10059 allocate_on_obstack.
10060 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10061 (get_dwarf2_per_objfile): Update.
10062 (set_dwarf2_per_objfile): Remove.
10063 (dwarf2_has_info, dwarf2_get_section_info): Update.
10064 (dwarf2_free_objfile): Remove.
10065 (_initialize_dwarf2_read): Update.
10066
10067 2019-05-08 Tom Tromey <tom@tromey.com>
10068
10069 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10070 initializers.
10071 <unsupported_script_warning_printed,
10072 script_not_found_warning_printed>: Now bool.
10073 (auto_load_pspace_data): Change type.
10074 (~auto_load_pspace_info): Rename from
10075 auto_load_pspace_data_cleanup.
10076 (get_auto_load_pspace_data, init_loaded_scripts_info)
10077 (clear_section_scripts, maybe_print_unsupported_script_warning)
10078 (maybe_print_script_not_found_warning, _initialize_auto_load):
10079 Update.
10080
10081 2019-05-08 Tom Tromey <tom@tromey.com>
10082
10083 * objfiles.c (objfile_pspace_info): Add destructor and
10084 initializers.
10085 (objfiles_pspace_data): Change type.
10086 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10087 (get_objfile_pspace_data): Update.
10088 (objfiles_bfd_data): Change type.
10089 (get_objfile_bfd_data): Update.
10090 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10091
10092 2019-05-08 Tom Tromey <tom@tromey.com>
10093
10094 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10095 Change type.
10096 (get_catch_syscall_inferior_data): Update.
10097 (catch_syscall_inferior_data_cleanup): Remove.
10098 (_initialize_break_catch_syscall): Update.
10099
10100 2019-05-08 Tom Tromey <tom@tromey.com>
10101
10102 * inflow.c (struct terminal_info): Add destructor and
10103 initializers.
10104 (inflow_inferior_data): Change type.
10105 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10106 (get_inflow_inferior_data, inflow_inferior_exit)
10107 (swap_terminal_info, _initialize_inflow): Update.
10108
10109 2019-05-08 Tom Tromey <tom@tromey.com>
10110
10111 * target-dcache.c (target_dcache_cleanup): Remove.
10112 (target_dcache_aspace_key): Change type.
10113 (target_dcache_init_p, target_dcache_invalidate)
10114 (target_dcache_get, target_dcache_get_or_init)
10115 (_initialize_target_dcache): Update.
10116 * dcache.h (struct dcache_deleter): New.
10117
10118 2019-05-08 Tom Tromey <tom@tromey.com>
10119
10120 * symtab.c (struct symbol_cache): Add destructor and
10121 initializers.
10122 (symbol_cache_key): Move. Change type.
10123 (make_symbol_cache, free_symbol_cache): Remove.
10124 (get_symbol_cache): Update.
10125 (symbol_cache_cleanup): Remove.
10126 (ALL_PSPACES, symbol_cache_flush)
10127 (maintenance_print_symbol_cache)
10128 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10129 Update.
10130
10131 2019-05-08 Tom Tromey <tom@tromey.com>
10132
10133 * symtab.c (struct main_info): Add destructor and initializers.
10134 (main_progspace_key): Move. Change type.
10135 (get_main_info): Update.
10136 (main_info_cleanup): Remove.
10137 (_initialize_symtab): Update.
10138
10139 2019-05-08 Tom Tromey <tom@tromey.com>
10140
10141 * registry.h (DECLARE_REGISTRY): Define the _key class.
10142
10143 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10144
10145 * NEWS: Merge two 'New commands' sections.
10146
10147 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10148
10149 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10150 parameter and use Ada language definition instead.
10151 (ada_val_print_ptr): Remove unused language parameter.
10152 (ada_val_print_num): Remove language parameter and use Ada language
10153 definition instead.
10154 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10155 parameter.
10156 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10157 parameter and use Ada language definition instead.
10158 (ada_val_print_1): Update all ada_val_print_xxx calls.
10159 Remove language parameter.
10160 (ada_val_print): Update ada_val_print_1 call.
10161
10162 2019-05-08 Tom Tromey <tromey@adacore.com>
10163
10164 * remote.c (remote_hw_watchpoint_limit)
10165 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10166 Now static.
10167
10168 2019-05-08 Tom Tromey <tromey@adacore.com>
10169
10170 * maint.c (_initialize_maint_cmds): Move initialization code to
10171 remote.c.
10172 (watchdog, show_watchdog): Move to remote.c.
10173 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10174 "watchdog" static.
10175 (_initialize_remote): Move initialization code from maint.c.
10176 * defs.h (watchdog): Don't declare.
10177
10178 2019-05-08 Tom Tromey <tromey@adacore.com>
10179
10180 * tui/tui-interp.c: Include main.h.
10181 * interps.c: Include main.h.
10182 * main.h (interpreter_p): Declare.
10183 * defs.h (interpreter_p): Don't declare.
10184
10185 2019-05-08 Tom Tromey <tromey@adacore.com>
10186
10187 * dwarf2loc.c: Include dwarf2read.h.
10188 * defs.h (read_unsigned_leb128): Don't declare.
10189 * dwarf2read.h (read_unsigned_leb128): Declare.
10190
10191 2019-05-08 Tom Tromey <tromey@adacore.com>
10192
10193 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10194 method.
10195
10196 2019-05-08 Tom Tromey <tromey@adacore.com>
10197
10198 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10199 when no wrap column is set.
10200
10201 2019-05-08 Tom Tromey <tromey@adacore.com>
10202
10203 * c-lang.c (c_get_string): Handle non-C-style arrays.
10204
10205 2019-05-08 Tom Tromey <tromey@adacore.com>
10206
10207 * typeprint.c (print_offset_data::update): Print the bit offset,
10208 not the number of bits remaining.
10209
10210 2019-05-08 Tom Tromey <tromey@adacore.com>
10211
10212 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10213 padding at end of comment.
10214
10215 2019-05-08 Tom Tromey <tromey@adacore.com>
10216
10217 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10218 Compare main types.
10219
10220 2019-05-06 Tom Tromey <tom@tromey.com>
10221
10222 * common/scoped_mmap.c: Include common-defs.h.
10223 * common/scoped_mmap.h: Don't include config.h.
10224
10225 2019-05-04 Tom Tromey <tom@tromey.com>
10226
10227 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10228 (struct aarch64_call_info): Add initializers.
10229 <si>: Now a std::vector.
10230 (pass_on_stack, aarch64_push_dummy_call): Update.
10231
10232 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10233 Tom Tromey <tom@tromey.com>
10234
10235 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10236 (ppc_threads): Now a std::vector. Now static.
10237 (hwdebug_find_thread_points_by_tid)
10238 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10239 Update.
10240
10241 2019-05-04 Tom Tromey <tom@tromey.com>
10242
10243 * arc-tdep.c (arc_tdesc_init): Return bool.
10244
10245 2019-05-04 Tom Tromey <tom@tromey.com>
10246
10247 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10248 Use gdb_assert_not_reached.
10249
10250 2019-05-04 Tom Tromey <tom@tromey.com>
10251
10252 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10253 "false".
10254
10255 2019-05-04 Tom Tromey <tom@tromey.com>
10256
10257 * arc-tdep.c (arc_tdesc_init): Use bool.
10258
10259 2019-05-04 Tom Tromey <tom@tromey.com>
10260
10261 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10262
10263 2019-05-04 Tom Tromey <tom@tromey.com>
10264
10265 * cli/cli-cmds.c (valid_command_p): Return bool.
10266
10267 2019-05-04 Tom Tromey <tom@tromey.com>
10268
10269 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10270 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10271
10272 2019-05-04 Raul Tambre <raul@tambre.ee>
10273
10274 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10275 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10276 operator for comparison.
10277
10278 2019-05-04 Tom Tromey <tom@tromey.com>
10279
10280 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10281 (lookup_partial_symbol, print_partial_symbols)
10282 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10283 (psymbol_compare): Update.
10284 (add_psymbol_to_bcache): Clear the entire psymbol.
10285 (maintenance_check_psymtabs): Update.
10286 * psympriv.h (struct partial_symbol): Don't derive from
10287 general_symbol_info.
10288 <obj_section, unrelocated_address, address,
10289 set_unrelocated_address>: Update.
10290 <ginfo>: New member.
10291 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10292 (debug_names::write_psymbols): Update.
10293
10294 2019-05-04 Tom de Vries <tdevries@suse.de>
10295
10296 * contrib/cc-with-tweaks.sh: Support -n arg.
10297
10298 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10299
10300 * corelow.c (core_target::detach): Ensure frame cache and
10301 register caches are cleared.
10302 inferior.c (exit_inferior_1): Likewise.
10303
10304 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10305 Tom Tromey <tom@tromey.com>
10306
10307 * dictionary.c (collate_pending_symbols_by_language): Remove
10308 "struct" from foreach.
10309 * symtab.c (lookup_global_symbol_from_objfile)
10310 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10311 foreach.
10312 * ser-tcp.c (net_open): Remove "struct" from foreach.
10313 * objfiles.c (objfile_relocate, objfile_rebase)
10314 (objfile_has_symbols): Remove "struct" from foreach.
10315 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10316 from foreach.
10317 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10318 foreach.
10319 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10320 "struct" from foreach.
10321 * ada-lang.c (create_excep_cond_exprs)
10322 (ada_exception_catchpoint_cond_string): Remove "struct" from
10323 foreach.
10324
10325 2019-05-03 Tom Tromey <tromey@adacore.com>
10326
10327 * ada-exp.y (convert_char_literal): Check suffix of each
10328 enumerator.
10329
10330 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10331
10332 PR ada/21406:
10333 * ada-exp.y (yywrap): Don't define.
10334 * ada-lex.l (%option): Add noyywrap
10335 (yywrap): Remove.
10336
10337 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10338
10339 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10340 _WIN32_WINNT to the XP level, unless already defined to a higher
10341 level.
10342
10343 * unittests/parse-connection-spec-selftests.c:
10344 * ser-tcp.c:
10345 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10346 override.
10347
10348 * symfile.c (find_separate_debug_file): Remove colon from the
10349 drive spec of DOS/Windows file names of the target, so that the
10350 file name produced from DEBUGDIR and the target's directory will
10351 be valid on DOS/Windows systems.
10352
10353 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10354
10355 * rust-lang.c (val_print_struct): Handle printing structures
10356 containing strings.
10357
10358 2019-05-02 Tom Tromey <tromey@adacore.com>
10359
10360 * valarith.c (_initialize_valarith): Remove.
10361
10362 2019-05-01 Tom Tromey <tromey@adacore.com>
10363
10364 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10365 bitfields.
10366
10367 2019-05-01 Tom Tromey <tromey@adacore.com>
10368
10369 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10370 for big-endian copies.
10371
10372 2019-04-30 Ali Tamur <tamur@google.com>
10373 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10374 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10375 (read_3_bytes): New function.
10376
10377 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10378
10379 * windows-nat.c (main_thread_id): Delete.
10380 (handle_output_debug_string): Replace main_thread_id by
10381 current_event.dwThreadId.
10382 (fake_create_process): Likewise.
10383 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10384 Do not set main_thread_id.
10385 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10386 current_event.dwThreadId.
10387 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10388
10389 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10390
10391 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10392 Use current_event.dwThreadId instead of main_thread_id.
10393
10394 2019-04-30 Tom Tromey <tromey@adacore.com>
10395
10396 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10397 (create_excep_cond_exprs): Iterate over program spaces.
10398 (ada_exception_catchpoint_cond_string): Examine all minimal
10399 symbols for exception types.
10400
10401 2019-04-30 Tom Tromey <tromey@adacore.com>
10402
10403 PR c++/24470:
10404 * dwarf2read.c (process_structure_scope): Handle case where type
10405 has template parameters but no symbol was created.
10406
10407 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10408 Chris January <chris.january@arm.com>
10409
10410 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10411 qualifier.
10412 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10413
10414 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10415
10416 * f-typeprint.c (f_print_type): Update rules for printing
10417 whitespace.
10418 (f_type_print_varspec_suffix): Likewise.
10419
10420 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10421 Chris January <chris.january@arm.com>
10422
10423 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10424 function arguments.
10425
10426 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10427
10428 * f-lang.c (build_fortran_types): Change name of void type to
10429 lower case.
10430 * f-typeprint.c (f_type_print_base): Print the name of the void
10431 type, rather than a fixed string.
10432 * f-valprint.c (f_decorations): Use lower case void string.
10433
10434 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10435 Chris January <chris.january@arm.com>
10436
10437 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10438 types for Fortran.
10439
10440 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10441 Chris January <chris.january@arm.com>
10442 David Lecomber <david.lecomber@arm.com>
10443
10444 * f-exp.y (BINOP_INTRINSIC): New token.
10445 (exp): New parser rule handling BINOP_INTRINSIC.
10446 (f77_keywords): Add new builtin procedures.
10447 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10448 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10449 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10450 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10451 (print_unop_subexp_f): New function.
10452 (print_binop_subexp_f): New function.
10453 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10454 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10455 (dump_subexp_body_f): Likewise.
10456 (operator_check_f): Likewise.
10457 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10458 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10459
10460 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10461
10462 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10463 UNOP_KIND.
10464 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10465 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10466 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10467 (operator_length_f): New fuction.
10468 (print_subexp_f): New function.
10469 (op_name_f): New function.
10470 (dump_subexp_body_f): New function.
10471 (operator_check_f): New function.
10472 (exp_descriptor_f): Replace standard expression handling functions
10473 with new functions.
10474 * gdb/fortran-operator.def: New file.
10475 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10476 * gdb/std-operator.def: Remove UNOP_KIND.
10477
10478 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10479
10480 * std-operator.def: Remove unbalanced, stray double quote
10481 character.
10482
10483 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10484 Chris January <chris.january@arm.com>
10485 Daniel Everett <daniel.everett@arm.com>
10486 Nick Forrington <nick.forrington@arm.com>
10487 Richard Bunt <richard.bunt@arm.com>
10488
10489 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10490 of depth when printing anonymous structs or unions.
10491 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10492 Don't print either the top-level value, or the children if the
10493 max-depth is exceeded.
10494 (ppscm_print_children): When printing the key of a map, allow one
10495 extra level of depth.
10496 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10497 print either the top-level value, or the children if the max-depth
10498 is exceeded.
10499 (print_children): When printing the key of a map, allow one extra
10500 level of depth.
10501 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10502 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10503 (user_print_options): Initialise max_depth field.
10504 (val_print_scalar_or_string_type_p): New function.
10505 (val_print): Check to see if the max depth has been reached.
10506 (val_print_check_max_depth): Define new function.
10507 (show_print_max_depth): New function.
10508 (_initialize_valprint): Add 'print max-depth' option.
10509 * valprint.h (struct value_print_options) <max_depth>: New field.
10510 (val_print_check_max_depth): Declare new function.
10511 * NEWS: Document new feature.
10512
10513 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10514
10515 * ada-lang.c (ada_language_defn): Initialise new field.
10516 * c-lang.c (c_is_string_type_p): New function.
10517 (c_language_defn): Initialise new field.
10518 (cplus_language_defn): Initialise new field.
10519 (asm_language_defn): Initialise new field.
10520 (minimal_language_defn): Initialise new field.
10521 * c-lang.h (c_is_string_type_p): Declare new function.
10522 * d-lang.c (d_language_defn): Initialise new field.
10523 * f-lang.c (f_is_string_type_p): New function.
10524 (f_language_defn): Initialise new field.
10525 * go-lang.c (go_is_string_type_p): New function.
10526 (go_language_defn): Initialise new field.
10527 * language.c (default_is_string_type_p): New function.
10528 (unknown_language_defn): Initialise new field.
10529 (auto_language_defn): Initialise new field.
10530 * language.h (struct language_defn) <la_is_string_type_p>: New
10531 member variable.
10532 (default_is_string_type_p): Declare new function.
10533 * m2-lang.c (m2_language_defn): Initialise new field.
10534 * objc-lang.c (objc_language_defn): Initialise new field.
10535 * opencl-lang.c (opencl_language_defn): Initialise new field.
10536 * p-lang.c (pascal_is_string_type_p): New function.
10537 (pascal_language_defn): Initialise new field.
10538 * rust-lang.c (rust_is_string_type_p): New function.
10539 (rust_language_defn): Initialise new field.
10540
10541 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10542
10543 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10544 New field.
10545 * ada-lang.c (ada_language_defn): Initialise new field.
10546 * c-lang.c (c_language_defn): Likewise.
10547 (cplus_language_defn): Likewise.
10548 (asm_language_defn): Likewise.
10549 (minimal_language_defn): Likewise.
10550 * d-lang.c (d_language_defn): Likewise.
10551 * f-lang.c (f_language_defn): Likewise.
10552 * go-lang.c (go_language_defn): Likewise.
10553 * language.c (unknown_language_defn): Likewise.
10554 (auto_language_defn): Likewise.
10555 * m2-lang.c (m2_language_defn): Likewise.
10556 * objc-lang.c (objc_language_defn): Likewise.
10557 * opencl-lang.c (opencl_language_defn): Likewise.
10558 * p-lang.c (pascal_language_defn): Likewise.
10559 * rust-lang.c (rust_language_defn): Likewise.
10560
10561 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10562
10563 * ada-lang.c (ada_is_character_type): Change return type to bool.
10564 (ada_is_string_type): Likewise.
10565 * ada-lang.h (ada_is_character_type): Update declaration
10566 (ada_is_string_type): Likewise.
10567
10568 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10569
10570 Support style in 'frame|thread apply'
10571
10572 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10573 * record.c (record_start, record_stop): Update callers of
10574 execute_command_to_string with false.
10575 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10576 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10577 methods.
10578 (class string_file): New constructor with term_out parameter.
10579 Override methods term_out and can_emit_style_escape. New member
10580 term_out.
10581 (class stdio_file): Override can_emit_style_escape.
10582 (class tee_file): Override term_out and can_emit_style_escape.
10583 * utils.h (can_emit_style_escape): Remove.
10584 * utils.c (can_emit_style_escape): Likewise.
10585 Update all callers of can_emit_style_escape (SOMESTREAM) to
10586 SOMESTREAM->can_emit_style_escape.
10587 * source-cache.c (source_cache::get_source_lines): Likewise.
10588 * stack.c (frame_apply_command_count): Call execute_command_to_string
10589 passing the term_out characteristic of the current gdb_stdout.
10590 * thread.c (thr_try_catch_cmd): Likewise.
10591 * top.c (execute_command_to_string): pass term_out parameter
10592 to construct the string_file for the command output.
10593 * ui-file.c (term_cli_styling): New function (most code moved
10594 from utils.c can_emit_style_escape).
10595 (string_file::string_file, string_file::can_emit_style_escape,
10596 stdio_file::can_emit_style_escape, tee_file::term_out,
10597 tee_file::can_emit_style_escape): New functions.
10598
10599 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10600
10601 * NEWS: Mention the new set|show may-call-functions.
10602 * infcall.c (may_call_functions_p): New variable.
10603 (show_may_call_functions_p): New function.
10604 (call_function_by_hand_dummy): Throws an error if not
10605 may-call-functions.
10606 (_initialize_infcall): Call add_setshow_boolean_cmd for
10607 may-call-functions.
10608
10609 2019-04-25 Keith Seitz <keiths@redhat.com>
10610
10611 PR c++/24367
10612 * cp-support.c (inspect_type): Don't attempt substitutions
10613 of symbol with the same name.
10614
10615 2019-04-25 Tom Tromey <tromey@adacore.com>
10616
10617 PR gdb/24475:
10618 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10619 static.
10620
10621 2019-04-25 Tom Tromey <tromey@adacore.com>
10622
10623 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10624 rvalue reference.
10625 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10626 (gdb_xml_parser::parse): Use std::move.
10627 * python/python-internal.h (gdbpy_convert_exception): Take a const
10628 reference.
10629 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10630 std::move.
10631 * python/py-utils.c (gdbpy_convert_exception): Take a const
10632 reference.
10633 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10634 Use std::move.
10635 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10636 Use std::move.
10637 * mi/mi-main.c (mi_print_exception): Take a const reference.
10638 * main.c (handle_command_errors): Take a const reference.
10639 * linespec.c (parse_linespec): Use std::move.
10640 * infcall.c (run_inferior_call): Use std::move.
10641 (call_function_by_hand_dummy): Use std::move.
10642 * exec.c (try_open_exec_file): Use std::move.
10643 * exceptions.h (exception_print, exception_fprintf)
10644 (exception_print_same): Update.
10645 * exceptions.c (print_exception, exception_print)
10646 (exception_fprintf, exception_print_same): Change parameters to
10647 const reference.
10648 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10649 * common/new-op.c: Use std::move.
10650 * common/common-exceptions.h (struct gdb_exception): Add move
10651 constructor.
10652 (struct gdb_exception_error, struct gdb_exception_quit, struct
10653 gdb_quit_bad_alloc): Change constructor to move constructor.
10654 (throw_exception): Change parameter to rvalue reference.
10655 * common/common-exceptions.c (throw_exception): Take rvalue
10656 reference.
10657 * cli/cli-interp.c (safe_execute_command): Use std::move.
10658 * breakpoint.c (insert_bp_location, location_to_sals): Use
10659 std::move.
10660
10661 2019-04-25 Tom Tromey <tromey@adacore.com>
10662
10663 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10664 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10665 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10666 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10667 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10668 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10669 guile/scm-value.c: Use unpack.
10670 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10671 gdbscm_gdb_exception.
10672 (gdbscm_throw_gdb_exception): Likewise.
10673 (struct gdbscm_gdb_exception): New.
10674 (unpack): New function.
10675 (gdbscm_wrap): Use unpack.
10676
10677 2019-04-25 Tom Tromey <tromey@adacore.com>
10678
10679 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10680 (gdb_rl_callback_handler): Use std::move.
10681 * common/common-exceptions.h (struct gdb_exception): Add move
10682 assignment operator.
10683 (throw_exception_sjlj): Change "exception" to const reference.
10684 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10685 (throw_exception_sjlj): Change "exception" to const reference.
10686
10687 2019-04-25 Tom Tromey <tromey@adacore.com>
10688
10689 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10690 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10691 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10692 Update.
10693 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10694 Update.
10695 * mi/mi-interp.c (mi_interp::exec): Update.
10696 * linespec.c (parse_linespec): Update.
10697 * infcall.c (run_inferior_call): Update.
10698 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10699 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10700 (gdbscm_lookup_global_symbol): Update.
10701 * guile/scm-param.c (gdbscm_parameter_value): Update.
10702 * guile/scm-frame.c (gdbscm_frame_read_register)
10703 (gdbscm_frame_read_var): Update.
10704 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10705 * exec.c (try_open_exec_file): Update.
10706 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10707 (gdb_rl_callback_handler): Update.
10708 * common/common-exceptions.h (exception_none): Don't declare.
10709 * common/common-exceptions.c (exception_none): Don't define.
10710 (struct catcher) <exception>: Update.
10711 * cli/cli-interp.c (safe_execute_command): Update.
10712 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10713
10714 2019-04-25 Ali Tamur <tamur@google.com>
10715
10716 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10717 (read_attribute_value): Likewise.
10718 (dwarf2_read_addr_index): Update comment.
10719 (read_str_index): Add DW_FORM_strx.
10720 (dwarf2_string_attr): Likewise.
10721 (dwarf2_const_value_attr): Likewise.
10722 (dump_die_shallow): Likewise.
10723 (dwarf2_fetch_constant_bytes): Likewise.
10724 (skip_form_bytes): Likewise.
10725 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10726
10727 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10728
10729 PR corefiles/11608
10730 PR corefiles/18187
10731 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10732 OFFSET. Verify if current mapping contains an ELF header.
10733 (linux_find_memory_regions_full): Adjust call to
10734 dump_mapping_p.
10735
10736 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10737 Kang Li <kanglictf@gmail.com>
10738
10739 PR gdb/21600
10740
10741 * dwarf2-frame.c (read_initial_length): Be consistent about using
10742 unsigned representation of length.
10743 (decode_frame_entry_1): Likewise. Check for wraparound of
10744 end pointer as well as buffer overflow.
10745
10746 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10747
10748 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10749 "vq".
10750
10751 2019-04-24 Tom Tromey <tromey@adacore.com>
10752
10753 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10754
10755 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10756
10757 * s12z-tdep.c (s12z_unwind_pc): Delete.
10758 (s12z_unwind_sp): Delete.
10759 (s12z_gdbarch_init): Don't register deleted functions with
10760 gdbarch.
10761
10762 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10763
10764 * rl78-tdep.c (rl78_unwind_sp): Delete.
10765 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10766
10767 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10768
10769 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10770 (xstormy16_unwind_pc): Delete.
10771 (xstormy16_dummy_id): Delete.
10772 (xstormy16_gdbarch_init): Don't register deleted functions with
10773 gdbarch.
10774
10775 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10776
10777 * vax-tdep.c (vax_unwind_pc): Delete.
10778 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10779
10780 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10781
10782 * v850-tdep.c (v850_unwind_sp): Delete.
10783 (v850_unwind_pc): Delete.
10784 (v850_dummy_id): Delete.
10785 (v850_gdbarch_init): Don't register deleted functions with
10786 gdbarch.
10787
10788 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10789
10790 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10791 (tilegx_unwind_pc): Delete.
10792 (tilegx_unwind_dummy_id): Delete.
10793 (tilegx_gdbarch_init): Don't register deleted functions with
10794 gdbarch.
10795
10796 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10797
10798 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10799 (tic6x_dummy_id): Delete.
10800 (tic6x_gdbarch_init): Don't register deleted functions with
10801 gdbarch.
10802
10803 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10804
10805 * sparc-tdep.c (sparc_unwind_pc): Delete.
10806 (sparc32_gdbarch_init): Don't register deleted function with
10807 gdbarch.
10808
10809 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10810
10811 * sh-tdep.c (sh_unwind_sp): Delete.
10812 (sh_unwind_pc): Delete.
10813 (sh_dummy_id): Delete.
10814 (sh_gdbarch_init): Don't register deleted functions with
10815 gdbarch.
10816
10817 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10818
10819 * score-tdep.c (score_unwind_sp): Delete.
10820 (score_unwind_pc): Delete.
10821 (score_dummy_id): Delete.
10822 (score_gdbarch_init): Don't register deleted functions with
10823 gdbarch.
10824
10825 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10826
10827 * rx-tdep.c (rx_unwind_pc): Delete.
10828 (rx_unwind_sp): Delete.
10829 (rx_dummy_id): Delete.
10830 (rx_gdbarch_init): Don't register deleted functions with
10831 gdbarch. Update comment.
10832
10833 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10834
10835 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10836 (rs6000_dummy_id): Delete.
10837 (rs6000_gdbarch_init): Don't register deleted functions with
10838 gdbarch.
10839
10840 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10841
10842 * or1k-tdep.c (or1k_dummy_id): Delete.
10843 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10844
10845 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10846
10847 * nios2-tdep.c (nios2_dummy_id): Delete.
10848 (nios2_unwind_sp): Delete.
10849 (nios2_gdbarch_init): Don't register deleted functions with
10850 gdbarch.
10851
10852 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10853
10854 * nds32-tdep.c (nds32_dummy_id): Delete.
10855 (nds32_unwind_pc): Delete.
10856 (nds32_unwind_sp): Delete.
10857 (nds32_gdbarch_init): Don't register deleted functions with
10858 gdbarch.
10859
10860 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10861
10862 * msp430-tdep.c (msp430_unwind_pc): Delete.
10863 (msp430_unwind_sp): Delete.
10864 (msp430_dummy_id): Delete.
10865 (msp430_gdbarch_init): Don't register deleted functions with
10866 gdbarch.
10867
10868 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10869
10870 * moxie-tdep.c (moxie_unwind_sp): Delete.
10871 (moxie_unwind_pc): Delete.
10872 (moxie_dummy_id): Delete.
10873 (moxie_gdbarch_init): Don't register deleted functions with
10874 gdbarch.
10875
10876 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10877
10878 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10879 (mn10300_unwind_pc): Delete.
10880 (mn10300_unwind_sp): Delete.
10881 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10882 mn10300_unwind_sp.
10883 (mn10300_frame_unwind_init): Don't register deleted functions with
10884 gdbarch.
10885
10886 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10887
10888 * mep-tdep.c (mep_unwind_pc): Delete.
10889 (mep_unwind_sp): Delete.
10890 (mep_dummy_id): Delete.
10891 (mep_gdbarch_init): Don't register deleted functions with
10892 gdbarch.
10893
10894 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10895
10896 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10897 (m68hc11_unwind_sp): Delete.
10898 (m68hc11_gdbarch_init): Don't register deleted functions with
10899 gdbarch.
10900
10901 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10902
10903 * m32r-tdep.c (m32r_unwind_sp): Delete.
10904 (m32r_unwind_pc): Delete.
10905 (m32r_dummy_id): Delete.
10906 (m32r_gdbarch_init): Don't register deleted functions with
10907 gdbarch.
10908
10909 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10910
10911 * m32c-tdep.c (m32c_unwind_pc): Delete.
10912 (m32c_unwind_sp): Delete.
10913 (m32c_dummy_id): Delete.
10914 (m32c_gdbarch_init): Don't register deleted functions with
10915 gdbarch.
10916
10917 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10918
10919 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10920 (lm32_unwind_pc): Delete.
10921 (lm32_dummy_id): Delete.
10922 (lm32_gdbarch_init): Don't register deleted functions with
10923 gdbarch.
10924
10925 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10926
10927 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10928 (iq2000_unwind_pc): Delete.
10929 (iq2000_dummy_id): Delete.
10930 (iq2000_gdbarch_init): Don't register deleted functions with
10931 gdbarch.
10932
10933 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10934
10935 * nds32-tdep.c (nds32_type_align): Delete.
10936 (nds32_push_dummy_call): Use type_align instead.
10937
10938 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10939
10940 * arm-tdep.c (arm_type_align): Only handle vector override case.
10941 (arm_push_dummy_call): Use type_align.
10942 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10943
10944 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10945
10946 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10947 case.
10948 (pass_on_stack): Use type_align.
10949 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10950 function.
10951
10952 2019-04-23 Tom Tromey <tromey@adacore.com>
10953
10954 * dwarf2read.c (line_header::file_name_at): Remove unused
10955 overload.
10956
10957 2019-04-23 Tom de Vries <tdevries@suse.de>
10958
10959 PR gdb/24438
10960 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10961 invocation.
10962
10963
10964 2019-03-27 Ali Tamur <tamur@google.com>
10965
10966 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10967 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10968 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10969 (dwarf_expr_context::get_addr_index): Likewise
10970 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10971 (symbol_needs_eval_context::get_addr_index): Likewise
10972 (disassemble_dwarf_expression): Add DW_OP_addrx
10973 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10974 (read_cutu_die_from_dwo): Update comment
10975 (skip_one_die): Add DW_FORM_addrx
10976 (read_attribute_value): Likewise
10977 (var_decode_location): Add DW_OP_addrx
10978 (dwarf2_const_value_attr): Add DW_FORM_addrx
10979 (dump_die_shallow): Likewise
10980 (dwarf2_fetch_constant_bytes): Likewise
10981 (decode_locdesc): Add DW_OP_addrx
10982 (skip_form_bytes): Add DW_FORM_addrx
10983
10984 2019-04-22 Ali Tamur <tamur@google.com>
10985
10986 * MAINTAINERS (Write After Approval): Add self.
10987
10988 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10989
10990 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10991 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10992 (open_symbol_file_object): Likewise.
10993 (svr4_default_sos): Add info parameter.
10994 (svr4_read_so_list): Likewise.
10995 (svr4_current_sos_direct): Adjust functions calls to pass down
10996 info.
10997 (svr4_current_sos_1): Add info parameter.
10998 (svr4_current_sos): Call get_svr4_info, pass info down to
10999 svr4_current_sos_1.
11000 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11001 get_svr4_info.
11002 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11003 get_svr4_info.
11004 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11005 to get_svr4_info.
11006 (probes_table_remove_objfile_probes): Likewise.
11007 (register_solib_event_probe): Add info parameter.
11008 (solist_update_incremental): Pass info parameter down to
11009 svr4_read_so_list.
11010 (disable_probes_interface): Add info parameter.
11011 (svr4_handle_solib_event): Pass current_program_space to
11012 get_svr4_info. Adjust disable_probes_interface cleanup.
11013 (svr4_create_probe_breakpoints): Add info parameter, pass it
11014 down to register_solib_event_probe.
11015 (svr4_create_solib_event_breakpoints): Add info parameter,
11016 pass it down to svr4_create_probe_breakpoints.
11017 (enable_break): Pass info down to
11018 svr4_create_solib_event_breakpoints.
11019 (svr4_solib_create_inferior_hook): Pass current_program_space to
11020 get_svr4_info.
11021 (svr4_clear_solib): Likewise.
11022
11023 2019-04-22 Pedro Alves <palves@redhat.com>
11024
11025 * solib-svr4.c (svr4_free_objfile_observer): New.
11026 (probe_and_action::objfile): New field.
11027 (probes_table_htab_remove_objfile_probes)
11028 (probes_table_remove_objfile_probes): New functions.
11029 (register_solib_event_probe): Add 'objfile' parameter. Store it
11030 in the new probe_and_action. Don't store the probe in 'lookup'.
11031 (svr4_create_probe_breakpoints): Pass objfile to
11032 register_solib_event_probe.
11033 (_initialize_svr4_solib): Register a free_objfile observer.
11034
11035 2019-04-19 Tom Tromey <tom@tromey.com>
11036
11037 * common/queue.h: Remove.
11038
11039 2019-04-19 Tom Tromey <tom@tromey.com>
11040
11041 * event-loop.c: Don't include "common/queue.h".
11042
11043 2019-04-19 Tom Tromey <tom@tromey.com>
11044
11045 * remote.c (remote_target): Use delete.
11046 * remote-notif.h: Include <list>, not "common/queue.h".
11047 (notif_client_p): Remove typedef.
11048 (remote_notif_state): Add constructor, destructor, initializer.
11049 <notif_queue>: Now a std::list.
11050 (remote_notif_state_xfree): Don't declare.
11051 * remote-notif.c (remote_notif_process, handle_notification)
11052 (remote_notif_state_allocate): Update.
11053 (~remote_notif_state): Rename from remote_notif_state_xfree.
11054
11055 2019-04-19 Tom Tromey <tom@tromey.com>
11056
11057 * symfile.c (reread_symbols): Update.
11058 * objfiles.c (objfile_register_static_link)
11059 (objfile_lookup_static_link): Update
11060 (~objfile) Don't delete static_links.
11061 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11062
11063 2019-04-19 Tom Tromey <tom@tromey.com>
11064
11065 * type-stack.h (struct type_stack) <insert>: Constify string.
11066 * type-stack.c (type_stack::insert): Constify string.
11067 * gdbtypes.h (lookup_template_type): Update.
11068 (address_space_name_to_int): Update.
11069 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11070 const.
11071 (lookup_template_type): Make name const.
11072 * c-exp.y: Update rules.
11073 (lex_one_token, classify_name, classify_inner_name)
11074 (c_print_token): Update.
11075 * p-exp.y: Update rules.
11076 (yylex): Update.
11077 * f-exp.y: Update rules.
11078 (yylex): Update.
11079 * d-exp.y: Update rules.
11080 (lex_one_token, classify_name, classify_inner_name): Update.
11081 * parse.c (write_dollar_variable, copy_name): Return std::string.
11082 * parser-defs.h (copy_name): Change return type.
11083 * m2-exp.y: Update rules.
11084 (yylex): Update.
11085 * go-exp.y (lex_one_token): Update.
11086 Update rules.
11087 (classify_unsafe_function, classify_packaged_name)
11088 (classify_name, yylex): Update.
11089
11090 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11091
11092 * configure.ac: add --enable-source-highlight switch.
11093 * configure: Regenerate.
11094 * top.c (print_gdb_version): plumb --enable-source-highlight
11095 status to "show configuration".
11096
11097 2019-04-19 Tom Tromey <tromey@adacore.com>
11098
11099 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11100 Check ADA_TYPE_P.
11101 (empty_record, ada_template_to_fixed_record_type_1)
11102 (template_to_static_fixed_type)
11103 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11104 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11105 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11106 macros.
11107
11108 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11109
11110 PR symtab/24423:
11111 * source.c (print_source_lines_base): Advance "iter" when a
11112 control character is seen.
11113
11114 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11115
11116 * inferior.h (struct infcall_suspend_state_deleter):
11117 Catch exception in destructor to avoid crash.
11118
11119 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11120
11121 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11122 close to the add_com "shell".
11123
11124 2019-04-18 Tom Tromey <tromey@adacore.com>
11125
11126 * process-stratum-target.h (class process_stratum_target)
11127 <stratum>: Add "final".
11128
11129 2019-04-17 Tom Tromey <tromey@adacore.com>
11130
11131 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11132 against nullptr before use.
11133
11134 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11135
11136 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11137
11138 2019-04-17 Jim Wilson <jimw@sifive.com>
11139 Andrew Burgess <andrew.burgess@embecosm.com>
11140
11141 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11142 code read might fail, assume 4-byte breakpoint in that case.
11143
11144 2019-04-15 Leszek Swirski <leszeks@google.com>
11145
11146 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11147 rather than a hand-rolled POD check when checking for forced MEMORY
11148 classification.
11149
11150 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11151
11152 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11153 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11154 function.
11155 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11156 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11157 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11158 declaration.
11159
11160 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11161
11162 * aarch64-linux-nat.c
11163 (aarch64_linux_nat_target::thread_architecture): Add override.
11164 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11165 each VQ.
11166
11167 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11168
11169 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11170
11171 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11172
11173 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11174 target types of size 96-bits, add some additional comments, and
11175 check that the builtin type we found was the correct size.
11176
11177 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11178
11179 * utils.c (prompt_for_continue): Don't restore the styling at the
11180 end, as applied_style has the wrong value. This fixes styling in
11181 long lists of file names that are interrupted by the "Continue?"
11182 prompt.
11183
11184 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11185
11186 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11187 * c-lang.c (c_language_defn): Likewise.
11188 (cplus_language_defn): Likewise.
11189 (asm_language_defn): Likewise.
11190 (minimal_language_defn): Likewise.
11191 * d-lang.c (d_language_defn): Likewise.
11192 * f-lang.c (f_language_defn): Likewise.
11193 * go-lang.c (go_language_defn): Likewise.
11194 * language.c (unknown_language_defn): Likewise.
11195 (auto_language_defn): Likewise.
11196 * language.h (struct language_defn): Remove la_magic field.
11197 (LANG_MAGIC): Delete.
11198 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11199 * objc-lang.c (objc_language_defn): Likewise.
11200 * opencl-lang.c (opencl_language_defn): Likewise.
11201 * p-lang.c (pascal_language_defn): Likewise.
11202 * rust-lang.c (rust_language_defn): Likewise.
11203
11204 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11205
11206 * riscv-tdep.c (riscv_type_align): New function.
11207 (riscv_type_alignment): Delete.
11208 (riscv_arg_location): Use 'type_align'.
11209 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11210
11211 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11212
11213 * gdbtypes.c (type_align): A struct with no non-static fields also
11214 has alignment of 1.
11215
11216 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11217
11218 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11219 component to 0.
11220 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11221 member.
11222 (riscv_struct_info::analyse): New implementation using new
11223 analyse_inner member function.
11224 (riscv_struct_info::field_offset): New member function.
11225 (riscv_struct_info::m_offsets): New member variable.
11226 (riscv_struct_info::analyse_inner): New private member function,
11227 takes the old implementation of riscv_struct_info::analyse but
11228 extended to track field offsets.
11229 (riscv_call_arg_struct): Update the struct folding special cases
11230 to handle cases where empty C++ structs, which are non-zero
11231 length, are found.
11232 (riscv_arg_location): Initialise the length of each location, a
11233 non-zero length now indicates the location is in use.
11234 (riscv_push_dummy_call): Allow for the first location having a
11235 non-zero offset when setting up arguments.
11236 (riscv_return_value): Likewise, but for return values.
11237
11238 2019-04-11 Tom Tromey <tromey@adacore.com>
11239
11240 * utils.c (internal_vproblem): Make "msg" const.
11241
11242 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11243
11244 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11245 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11246 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11247 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11248
11249 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11250
11251 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11252 function.
11253 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11254 of amd64_collect_native_gregset.
11255 (amd64_linux_nat_target::store_registers): Likewise.
11256
11257 2019-04-10 Tom Tromey <tom@tromey.com>
11258
11259 * symtab.c (lookup_global_symbol_from_objfile)
11260 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11261 * objfiles.h (class separate_debug_iterator): New.
11262 (class separate_debug_range): New.
11263 (struct objfile) <separate_debug_objfiles>: New method.
11264 (objfile_separate_debug_iterate): Don't declare.
11265 * objfiles.c (separate_debug_iterator::operator++): Rename from
11266 objfile_separate_debug_iterate.
11267 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11268 iterator.
11269 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11270 iterator.
11271
11272 2019-04-10 Tom Tromey <tom@tromey.com>
11273
11274 * symfile.c (reread_symbols): Remove old comment.
11275 * objfiles.c (free_all_objfiles): Fix a typo.
11276
11277 2019-04-10 Tom Tromey <tom@tromey.com>
11278
11279 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11280 * minsyms.c (lookup_minimal_symbol): Use foreach.
11281 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11282 (lookup_minimal_symbol_solib_trampoline): Likewise.
11283 * symfile.c (reread_symbols): Use foreach.
11284
11285 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11286 Tom Tromey <tromey@adacore.com>
11287
11288 PR rust/24414:
11289 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11290 (rust_lex_int_test): Change "value" to be LONGEST.
11291 (rust_lex_tests): Add test for long integer literal.
11292
11293 2019-04-09 Tom Tromey <tromey@adacore.com>
11294
11295 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11296 to bool.
11297 (extended_remote_target::attach): Update.
11298 (remote_target::remote_notice_new_inferior): Update.
11299 (remote_target::add_current_inferior_and_thread): Update.
11300 * inferior.c (exit_inferior_1): Use "false".
11301 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11302
11303 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11304
11305 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11306 the "start" command.
11307
11308 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11309
11310 * python/py-inferior.c (infpy_thread_from_thread_handle):
11311 Adjust comments to reflect renaming of thread_from_thread_handle
11312 to thread_from_handle. Adjust keywords. Fix type error message.
11313 (inferior_object_methods): Add thread_from_handle. Retain
11314 thread_from_thread_handle, but mark it as deprecated.
11315
11316 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11317
11318 * gdbthread.h (find_thread_by_handle): Revise declaration.
11319 * thread.c (find_thread_by_handle): Likewise. Adjust
11320 implementation too.
11321 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11322 support for buffer objects as handles.
11323
11324 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11325
11326 * python/py-infthread.c (thpy_thread_handle): New function.
11327 (thread_object_methods): Register thpy_thread_handle.
11328
11329 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11330
11331 * gdbthread.h (thread_to_thread_handle): Declare.
11332 * thread.c (gdbtypes.h): Include.
11333 (thread_to_thread_handle): New function.
11334
11335 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11336 (target_thread_info_to_thread_handle): Declare.
11337 * target.c (target_thread_info_to_thread_handle): New function.
11338 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11339 * target-delegates.c: Regenerate.
11340
11341 * linux-thread-db.c (class thread_db_target): Add method
11342 thread_info_to_thread_handle.
11343 (thread_db_target::thread_info_to_thread_handle): Define.
11344 * remote.c (class remote_target): Add new method
11345 thread_info_to_thread_handle.
11346 (remote_target::thread_info_to_thread_handle): Define.
11347
11348 2019-04-08 Pedro Alves <palves@redhat.com>
11349
11350 * common/common-exceptions.c (throw_exception): Don't create
11351 named object to throw; throw directly.
11352 (throw_it): Likewise. Don't initialize gdb_exception::message
11353 here, with new; pass FMT and AP to the ctor instead.
11354 * common/common-exceptions.h: Include <string>.
11355 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11356 const char *, va_list)): New ctor. Use std::make_shared.
11357 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11358 errors)): Delete.
11359 (gdb_exception_error::gdb_exception_error(enum errors, const char
11360 *, va_list)): New.
11361 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11362 Add assertion.
11363 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11364 errors)): Delete.
11365 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11366 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11367 Add assertion.
11368
11369 2019-04-08 Tom Tromey <tom@tromey.com>
11370
11371 * valops.c (value_rtti_indirect_type): Replace throw_exception
11372 with throw.
11373 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11374 with throw.
11375 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11376 throw.
11377 * target.c (target_translate_tls_address): Replace throw_exception
11378 with throw.
11379 * stack.c (frame_apply_command_count): Replace throw_exception
11380 with throw.
11381 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11382 throw.
11383 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11384 with throw.
11385 * rs6000-tdep.c (rs6000_frame_cache)
11386 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11387 * remote.c: Replace throw_exception with throw.
11388 * record-full.c (record_full_message, record_full_wait_1)
11389 (record_full_restore): Replace throw_exception with throw.
11390 * record-btrace.c:
11391 (get_thread_current_frame_id, record_btrace_start_replaying)
11392 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11393 (cmd_record_btrace_start): Replace throw_exception with throw.
11394 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11395 throw.
11396 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11397 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11398 * linespec.c:
11399 (find_linespec_symbols): Replace throw_exception with throw.
11400 * infrun.c (displaced_step_prepare, resume): Replace
11401 throw_exception with throw.
11402 * infcmd.c (post_create_inferior): Replace throw_exception with
11403 throw.
11404 * inf-loop.c (inferior_event_handler): Replace throw_exception
11405 with throw.
11406 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11407 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11408 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11409 (get_prev_frame_always, get_frame_pc_if_available)
11410 (get_frame_address_in_block_if_available, get_frame_language):
11411 Replace throw_exception with throw.
11412 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11413 throw_exception with throw.
11414 * eval.c (fetch_subexp_value, evaluate_var_value)
11415 (evaluate_funcall, evaluate_subexp_standard): Replace
11416 throw_exception with throw.
11417 * dwarf2loc.c (call_site_find_chain)
11418 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11419 Replace throw_exception with throw.
11420 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11421 with throw.
11422 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11423 throw.
11424 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11425 * completer.c (complete_line_internal): Replace throw_exception
11426 with throw.
11427 * compile/compile-object-run.c (compile_object_run): Replace
11428 throw_exception with throw.
11429 * cli/cli-script.c (process_next_line): Replace throw_exception
11430 with throw.
11431 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11432 (btrace_enable, btrace_maint_update_pt_packets): Replace
11433 throw_exception with throw.
11434 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11435 throw_exception with throw.
11436 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11437 throw_exception with throw.
11438 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11439 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11440 * aarch64-tdep.c (aarch64_make_prologue_cache)
11441 (aarch64_make_stub_cache): Replace throw_exception with throw.
11442
11443 2019-04-08 Tom Tromey <tom@tromey.com>
11444
11445 * common/common-exceptions.c (throw_exception): Rename from
11446 throw_exception_cxx. Remove old copy. Make argument const.
11447 (throw_it): Create and throw exception objects directly.
11448 * common/common-exceptions.h (throw_exception): Make argument
11449 const.
11450 (struct gdb_exception_error): Add constructor.
11451 (struct gdb_exception_quit): Add constructor.
11452
11453 2019-04-08 Tom Tromey <tom@tromey.com>
11454
11455 * common/common-exceptions.h (exception_rethrow): Don't declare.
11456 (TRY_SJLJ): Update comment.
11457 (TRY, CATCH, END_CATCH): Remove.
11458 * common/common-exceptions.c (exception_rethrow): Remove.
11459
11460 2019-04-08 Tom Tromey <tom@tromey.com>
11461
11462 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11463 Remove.
11464 (gdb_exception_error): Rename from
11465 gdb_exception_RETURN_MASK_ERROR.
11466 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11467 (gdb_quit_bad_alloc): Update.
11468 * aarch64-tdep.c: Update.
11469 * ada-lang.c: Update.
11470 * ada-typeprint.c: Update.
11471 * ada-valprint.c: Update.
11472 * amd64-tdep.c: Update.
11473 * arch-utils.c: Update.
11474 * break-catch-throw.c: Update.
11475 * breakpoint.c: Update.
11476 * btrace.c: Update.
11477 * c-varobj.c: Update.
11478 * cli/cli-cmds.c: Update.
11479 * cli/cli-interp.c: Update.
11480 * cli/cli-script.c: Update.
11481 * common/common-exceptions.c: Update.
11482 * common/new-op.c: Update.
11483 * common/selftest.c: Update.
11484 * compile/compile-c-symbols.c: Update.
11485 * compile/compile-cplus-symbols.c: Update.
11486 * compile/compile-object-load.c: Update.
11487 * compile/compile-object-run.c: Update.
11488 * completer.c: Update.
11489 * corelow.c: Update.
11490 * cp-abi.c: Update.
11491 * cp-support.c: Update.
11492 * cp-valprint.c: Update.
11493 * darwin-nat.c: Update.
11494 * disasm-selftests.c: Update.
11495 * dtrace-probe.c: Update.
11496 * dwarf-index-cache.c: Update.
11497 * dwarf-index-write.c: Update.
11498 * dwarf2-frame-tailcall.c: Update.
11499 * dwarf2-frame.c: Update.
11500 * dwarf2loc.c: Update.
11501 * dwarf2read.c: Update.
11502 * eval.c: Update.
11503 * event-loop.c: Update.
11504 * event-top.c: Update.
11505 * exec.c: Update.
11506 * f-valprint.c: Update.
11507 * fbsd-tdep.c: Update.
11508 * frame-unwind.c: Update.
11509 * frame.c: Update.
11510 * gdbtypes.c: Update.
11511 * gnu-v3-abi.c: Update.
11512 * guile/guile-internal.h: Update.
11513 * guile/scm-block.c: Update.
11514 * guile/scm-breakpoint.c: Update.
11515 * guile/scm-cmd.c: Update.
11516 * guile/scm-disasm.c: Update.
11517 * guile/scm-frame.c: Update.
11518 * guile/scm-lazy-string.c: Update.
11519 * guile/scm-math.c: Update.
11520 * guile/scm-param.c: Update.
11521 * guile/scm-ports.c: Update.
11522 * guile/scm-pretty-print.c: Update.
11523 * guile/scm-symbol.c: Update.
11524 * guile/scm-symtab.c: Update.
11525 * guile/scm-type.c: Update.
11526 * guile/scm-value.c: Update.
11527 * i386-linux-tdep.c: Update.
11528 * i386-tdep.c: Update.
11529 * inf-loop.c: Update.
11530 * infcall.c: Update.
11531 * infcmd.c: Update.
11532 * infrun.c: Update.
11533 * jit.c: Update.
11534 * language.c: Update.
11535 * linespec.c: Update.
11536 * linux-fork.c: Update.
11537 * linux-nat.c: Update.
11538 * linux-tdep.c: Update.
11539 * linux-thread-db.c: Update.
11540 * main.c: Update.
11541 * mi/mi-cmd-break.c: Update.
11542 * mi/mi-cmd-stack.c: Update.
11543 * mi/mi-interp.c: Update.
11544 * mi/mi-main.c: Update.
11545 * objc-lang.c: Update.
11546 * p-valprint.c: Update.
11547 * parse.c: Update.
11548 * ppc-linux-tdep.c: Update.
11549 * printcmd.c: Update.
11550 * python/py-arch.c: Update.
11551 * python/py-breakpoint.c: Update.
11552 * python/py-cmd.c: Update.
11553 * python/py-finishbreakpoint.c: Update.
11554 * python/py-frame.c: Update.
11555 * python/py-framefilter.c: Update.
11556 * python/py-gdb-readline.c: Update.
11557 * python/py-inferior.c: Update.
11558 * python/py-infthread.c: Update.
11559 * python/py-lazy-string.c: Update.
11560 * python/py-linetable.c: Update.
11561 * python/py-objfile.c: Update.
11562 * python/py-param.c: Update.
11563 * python/py-prettyprint.c: Update.
11564 * python/py-progspace.c: Update.
11565 * python/py-record-btrace.c: Update.
11566 * python/py-record.c: Update.
11567 * python/py-symbol.c: Update.
11568 * python/py-type.c: Update.
11569 * python/py-unwind.c: Update.
11570 * python/py-utils.c: Update.
11571 * python/py-value.c: Update.
11572 * python/python.c: Update.
11573 * record-btrace.c: Update.
11574 * record-full.c: Update.
11575 * remote-fileio.c: Update.
11576 * remote.c: Update.
11577 * riscv-tdep.c: Update.
11578 * rs6000-aix-tdep.c: Update.
11579 * rs6000-tdep.c: Update.
11580 * rust-exp.y: Update.
11581 * rust-lang.c: Update.
11582 * s390-tdep.c: Update.
11583 * selftest-arch.c: Update.
11584 * solib-dsbt.c: Update.
11585 * solib-frv.c: Update.
11586 * solib-spu.c: Update.
11587 * solib-svr4.c: Update.
11588 * solib.c: Update.
11589 * sparc64-linux-tdep.c: Update.
11590 * stack.c: Update.
11591 * symfile-mem.c: Update.
11592 * symmisc.c: Update.
11593 * target.c: Update.
11594 * thread.c: Update.
11595 * top.c: Update.
11596 * tracefile-tfile.c: Update.
11597 * tui/tui.c: Update.
11598 * typeprint.c: Update.
11599 * unittests/cli-utils-selftests.c: Update.
11600 * unittests/parse-connection-spec-selftests.c: Update.
11601 * valops.c: Update.
11602 * valprint.c: Update.
11603 * value.c: Update.
11604 * varobj.c: Update.
11605 * windows-nat.c: Update.
11606 * x86-linux-nat.c: Update.
11607 * xml-support.c: Update.
11608
11609 2019-04-08 Tom Tromey <tom@tromey.com>
11610
11611 * xml-support.c: Use C++ exception handling.
11612 * x86-linux-nat.c: Use C++ exception handling.
11613 * windows-nat.c: Use C++ exception handling.
11614 * varobj.c: Use C++ exception handling.
11615 * value.c: Use C++ exception handling.
11616 * valprint.c: Use C++ exception handling.
11617 * valops.c: Use C++ exception handling.
11618 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11619 handling.
11620 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11621 * typeprint.c: Use C++ exception handling.
11622 * tui/tui.c: Use C++ exception handling.
11623 * tracefile-tfile.c: Use C++ exception handling.
11624 * top.c: Use C++ exception handling.
11625 * thread.c: Use C++ exception handling.
11626 * target.c: Use C++ exception handling.
11627 * symmisc.c: Use C++ exception handling.
11628 * symfile-mem.c: Use C++ exception handling.
11629 * stack.c: Use C++ exception handling.
11630 * sparc64-linux-tdep.c: Use C++ exception handling.
11631 * solib.c: Use C++ exception handling.
11632 * solib-svr4.c: Use C++ exception handling.
11633 * solib-spu.c: Use C++ exception handling.
11634 * solib-frv.c: Use C++ exception handling.
11635 * solib-dsbt.c: Use C++ exception handling.
11636 * selftest-arch.c: Use C++ exception handling.
11637 * s390-tdep.c: Use C++ exception handling.
11638 * rust-lang.c: Use C++ exception handling.
11639 * rust-exp.y: Use C++ exception handling.
11640 * rs6000-tdep.c: Use C++ exception handling.
11641 * rs6000-aix-tdep.c: Use C++ exception handling.
11642 * riscv-tdep.c: Use C++ exception handling.
11643 * remote.c: Use C++ exception handling.
11644 * remote-fileio.c: Use C++ exception handling.
11645 * record-full.c: Use C++ exception handling.
11646 * record-btrace.c: Use C++ exception handling.
11647 * python/python.c: Use C++ exception handling.
11648 * python/py-value.c: Use C++ exception handling.
11649 * python/py-utils.c: Use C++ exception handling.
11650 * python/py-unwind.c: Use C++ exception handling.
11651 * python/py-type.c: Use C++ exception handling.
11652 * python/py-symbol.c: Use C++ exception handling.
11653 * python/py-record.c: Use C++ exception handling.
11654 * python/py-record-btrace.c: Use C++ exception handling.
11655 * python/py-progspace.c: Use C++ exception handling.
11656 * python/py-prettyprint.c: Use C++ exception handling.
11657 * python/py-param.c: Use C++ exception handling.
11658 * python/py-objfile.c: Use C++ exception handling.
11659 * python/py-linetable.c: Use C++ exception handling.
11660 * python/py-lazy-string.c: Use C++ exception handling.
11661 * python/py-infthread.c: Use C++ exception handling.
11662 * python/py-inferior.c: Use C++ exception handling.
11663 * python/py-gdb-readline.c: Use C++ exception handling.
11664 * python/py-framefilter.c: Use C++ exception handling.
11665 * python/py-frame.c: Use C++ exception handling.
11666 * python/py-finishbreakpoint.c: Use C++ exception handling.
11667 * python/py-cmd.c: Use C++ exception handling.
11668 * python/py-breakpoint.c: Use C++ exception handling.
11669 * python/py-arch.c: Use C++ exception handling.
11670 * printcmd.c: Use C++ exception handling.
11671 * ppc-linux-tdep.c: Use C++ exception handling.
11672 * parse.c: Use C++ exception handling.
11673 * p-valprint.c: Use C++ exception handling.
11674 * objc-lang.c: Use C++ exception handling.
11675 * mi/mi-main.c: Use C++ exception handling.
11676 * mi/mi-interp.c: Use C++ exception handling.
11677 * mi/mi-cmd-stack.c: Use C++ exception handling.
11678 * mi/mi-cmd-break.c: Use C++ exception handling.
11679 * main.c: Use C++ exception handling.
11680 * linux-thread-db.c: Use C++ exception handling.
11681 * linux-tdep.c: Use C++ exception handling.
11682 * linux-nat.c: Use C++ exception handling.
11683 * linux-fork.c: Use C++ exception handling.
11684 * linespec.c: Use C++ exception handling.
11685 * language.c: Use C++ exception handling.
11686 * jit.c: Use C++ exception handling.
11687 * infrun.c: Use C++ exception handling.
11688 * infcmd.c: Use C++ exception handling.
11689 * infcall.c: Use C++ exception handling.
11690 * inf-loop.c: Use C++ exception handling.
11691 * i386-tdep.c: Use C++ exception handling.
11692 * i386-linux-tdep.c: Use C++ exception handling.
11693 * guile/scm-value.c: Use C++ exception handling.
11694 * guile/scm-type.c: Use C++ exception handling.
11695 * guile/scm-symtab.c: Use C++ exception handling.
11696 * guile/scm-symbol.c: Use C++ exception handling.
11697 * guile/scm-pretty-print.c: Use C++ exception handling.
11698 * guile/scm-ports.c: Use C++ exception handling.
11699 * guile/scm-param.c: Use C++ exception handling.
11700 * guile/scm-math.c: Use C++ exception handling.
11701 * guile/scm-lazy-string.c: Use C++ exception handling.
11702 * guile/scm-frame.c: Use C++ exception handling.
11703 * guile/scm-disasm.c: Use C++ exception handling.
11704 * guile/scm-cmd.c: Use C++ exception handling.
11705 * guile/scm-breakpoint.c: Use C++ exception handling.
11706 * guile/scm-block.c: Use C++ exception handling.
11707 * guile/guile-internal.h: Use C++ exception handling.
11708 * gnu-v3-abi.c: Use C++ exception handling.
11709 * gdbtypes.c: Use C++ exception handling.
11710 * frame.c: Use C++ exception handling.
11711 * frame-unwind.c: Use C++ exception handling.
11712 * fbsd-tdep.c: Use C++ exception handling.
11713 * f-valprint.c: Use C++ exception handling.
11714 * exec.c: Use C++ exception handling.
11715 * event-top.c: Use C++ exception handling.
11716 * event-loop.c: Use C++ exception handling.
11717 * eval.c: Use C++ exception handling.
11718 * dwarf2read.c: Use C++ exception handling.
11719 * dwarf2loc.c: Use C++ exception handling.
11720 * dwarf2-frame.c: Use C++ exception handling.
11721 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11722 * dwarf-index-write.c: Use C++ exception handling.
11723 * dwarf-index-cache.c: Use C++ exception handling.
11724 * dtrace-probe.c: Use C++ exception handling.
11725 * disasm-selftests.c: Use C++ exception handling.
11726 * darwin-nat.c: Use C++ exception handling.
11727 * cp-valprint.c: Use C++ exception handling.
11728 * cp-support.c: Use C++ exception handling.
11729 * cp-abi.c: Use C++ exception handling.
11730 * corelow.c: Use C++ exception handling.
11731 * completer.c: Use C++ exception handling.
11732 * compile/compile-object-run.c: Use C++ exception handling.
11733 * compile/compile-object-load.c: Use C++ exception handling.
11734 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11735 * compile/compile-c-symbols.c: Use C++ exception handling.
11736 * common/selftest.c: Use C++ exception handling.
11737 * common/new-op.c: Use C++ exception handling.
11738 * cli/cli-script.c: Use C++ exception handling.
11739 * cli/cli-interp.c: Use C++ exception handling.
11740 * cli/cli-cmds.c: Use C++ exception handling.
11741 * c-varobj.c: Use C++ exception handling.
11742 * btrace.c: Use C++ exception handling.
11743 * breakpoint.c: Use C++ exception handling.
11744 * break-catch-throw.c: Use C++ exception handling.
11745 * arch-utils.c: Use C++ exception handling.
11746 * amd64-tdep.c: Use C++ exception handling.
11747 * ada-valprint.c: Use C++ exception handling.
11748 * ada-typeprint.c: Use C++ exception handling.
11749 * ada-lang.c: Use C++ exception handling.
11750 * aarch64-tdep.c: Use C++ exception handling.
11751
11752 2019-04-08 Tom Tromey <tom@tromey.com>
11753
11754 * xml-support.c (gdb_xml_parser::parse): Update.
11755 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11756 * value.c (show_convenience): Update.
11757 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11758 (test_parse_flags_qcs): Update.
11759 * thread.c (thr_try_catch_cmd): Update.
11760 * target.c (target_translate_tls_address): Update.
11761 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11762 (info_frame_command_core, frame_apply_command_count): Update.
11763 * rust-exp.y (rust_lex_exception_test): Update.
11764 * riscv-tdep.c (riscv_print_one_register_info): Update.
11765 * remote.c (remote_target::enable_btrace): Update.
11766 * record-btrace.c (record_btrace_enable_warn): Update.
11767 * python/py-utils.c (gdbpy_convert_exception): Update.
11768 * printcmd.c (do_one_display, print_variable_and_value): Update.
11769 * mi/mi-main.c (mi_print_exception): Update.
11770 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11771 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11772 * linux-nat.c (linux_nat_target::attach): Update.
11773 * linux-fork.c (class scoped_switch_fork_info): Update.
11774 * infrun.c (displaced_step_prepare): Update.
11775 * infcall.c (call_function_by_hand_dummy): Update.
11776 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11777 * gnu-v3-abi.c (print_one_vtable): Update.
11778 * frame.c (get_prev_frame_always): Update.
11779 * f-valprint.c (info_common_command_for_block): Update.
11780 * exec.c (try_open_exec_file): Update.
11781 * exceptions.c (print_exception, exception_print)
11782 (exception_fprintf, exception_print_same): Update.
11783 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11784 * dwarf-index-cache.c (index_cache::store)
11785 (index_cache::lookup_gdb_index): Update.
11786 * darwin-nat.c (maybe_cache_shell): Update.
11787 * cp-valprint.c (cp_print_value_fields): Update.
11788 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11789 (gcc_cplus_symbol_address): Update.
11790 * compile/compile-c-symbols.c (gcc_convert_symbol)
11791 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11792 * common/selftest.c: Update.
11793 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11794 a std::string.
11795 (exception_try_scope_entry, exception_try_scope_exit): Don't
11796 declare.
11797 (struct exception_try_scope): Remove.
11798 (TRY): Don't use exception_try_scope.
11799 (struct gdb_exception): Add constructor, operator=.
11800 <what>: New method.
11801 (struct gdb_exception_RETURN_MASK_ALL)
11802 (struct gdb_exception_RETURN_MASK_ERROR)
11803 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11804 (struct gdb_quit_bad_alloc): Update.
11805 * common/common-exceptions.c (exception_none): Change
11806 initializer.
11807 (struct catcher) <state, exception>: Initialize inline.
11808 <prev>: Remove member.
11809 (current_catcher): Remove.
11810 (catchers): New global.
11811 (exceptions_state_mc_init): Simplify.
11812 (catcher_pop): Remove.
11813 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11814 (try_scope_depth, exception_try_scope_entry)
11815 (exception_try_scope_exit): Remove.
11816 (throw_exception_sjlj): Update.
11817 (exception_messages, exception_messages_size): Remove.
11818 (throw_it): Simplify.
11819 (gdb_exception_sliced_copy): Remove.
11820 (throw_exception_cxx): Update.
11821 * cli/cli-script.c (script_from_file): Update.
11822 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11823 Update.
11824 * ada-valprint.c (ada_val_print): Update.
11825 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11826 (create_excep_cond_exprs): Update.
11827
11828 2019-04-08 Tom Tromey <tom@tromey.com>
11829
11830 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11831 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11832 (TRY, CATCH, END_CATCH): Remove some definitions.
11833 * common/common-exceptions.c: Don't use GDB_XCPT.
11834 (catcher_list_size): Remove.
11835 (throw_exception, throw_it): Simplify.
11836
11837 2019-04-05 Tom Tromey <tom@tromey.com>
11838
11839 Revert the header-sorting patch.
11840 * ft32-tdep.c: Revert.
11841 * frv-tdep.c: Revert.
11842 * frv-linux-tdep.c: Revert.
11843 * frame.c: Revert.
11844 * frame-unwind.c: Revert.
11845 * frame-base.c: Revert.
11846 * fork-child.c: Revert.
11847 * findvar.c: Revert.
11848 * findcmd.c: Revert.
11849 * filesystem.c: Revert.
11850 * filename-seen-cache.h: Revert.
11851 * filename-seen-cache.c: Revert.
11852 * fbsd-tdep.c: Revert.
11853 * fbsd-nat.h: Revert.
11854 * fbsd-nat.c: Revert.
11855 * f-valprint.c: Revert.
11856 * f-typeprint.c: Revert.
11857 * f-lang.c: Revert.
11858 * extension.h: Revert.
11859 * extension.c: Revert.
11860 * extension-priv.h: Revert.
11861 * expprint.c: Revert.
11862 * exec.h: Revert.
11863 * exec.c: Revert.
11864 * exceptions.c: Revert.
11865 * event-top.c: Revert.
11866 * event-loop.c: Revert.
11867 * eval.c: Revert.
11868 * elfread.c: Revert.
11869 * dwarf2read.h: Revert.
11870 * dwarf2read.c: Revert.
11871 * dwarf2loc.c: Revert.
11872 * dwarf2expr.h: Revert.
11873 * dwarf2expr.c: Revert.
11874 * dwarf2-frame.c: Revert.
11875 * dwarf2-frame-tailcall.c: Revert.
11876 * dwarf-index-write.h: Revert.
11877 * dwarf-index-write.c: Revert.
11878 * dwarf-index-common.c: Revert.
11879 * dwarf-index-cache.h: Revert.
11880 * dwarf-index-cache.c: Revert.
11881 * dummy-frame.c: Revert.
11882 * dtrace-probe.c: Revert.
11883 * disasm.h: Revert.
11884 * disasm.c: Revert.
11885 * disasm-selftests.c: Revert.
11886 * dictionary.c: Revert.
11887 * dicos-tdep.c: Revert.
11888 * demangle.c: Revert.
11889 * dcache.h: Revert.
11890 * dcache.c: Revert.
11891 * darwin-nat.h: Revert.
11892 * darwin-nat.c: Revert.
11893 * darwin-nat-info.c: Revert.
11894 * d-valprint.c: Revert.
11895 * d-namespace.c: Revert.
11896 * d-lang.c: Revert.
11897 * ctf.c: Revert.
11898 * csky-tdep.c: Revert.
11899 * csky-linux-tdep.c: Revert.
11900 * cris-tdep.c: Revert.
11901 * cris-linux-tdep.c: Revert.
11902 * cp-valprint.c: Revert.
11903 * cp-support.c: Revert.
11904 * cp-namespace.c: Revert.
11905 * cp-abi.c: Revert.
11906 * corelow.c: Revert.
11907 * corefile.c: Revert.
11908 * continuations.c: Revert.
11909 * completer.h: Revert.
11910 * completer.c: Revert.
11911 * complaints.c: Revert.
11912 * coffread.c: Revert.
11913 * coff-pe-read.c: Revert.
11914 * cli-out.h: Revert.
11915 * cli-out.c: Revert.
11916 * charset.c: Revert.
11917 * c-varobj.c: Revert.
11918 * c-valprint.c: Revert.
11919 * c-typeprint.c: Revert.
11920 * c-lang.c: Revert.
11921 * buildsym.c: Revert.
11922 * buildsym-legacy.c: Revert.
11923 * build-id.h: Revert.
11924 * build-id.c: Revert.
11925 * btrace.c: Revert.
11926 * bsd-uthread.c: Revert.
11927 * breakpoint.h: Revert.
11928 * breakpoint.c: Revert.
11929 * break-catch-throw.c: Revert.
11930 * break-catch-syscall.c: Revert.
11931 * break-catch-sig.c: Revert.
11932 * blockframe.c: Revert.
11933 * block.c: Revert.
11934 * bfin-tdep.c: Revert.
11935 * bfin-linux-tdep.c: Revert.
11936 * bfd-target.c: Revert.
11937 * bcache.c: Revert.
11938 * ax-general.c: Revert.
11939 * ax-gdb.h: Revert.
11940 * ax-gdb.c: Revert.
11941 * avr-tdep.c: Revert.
11942 * auxv.c: Revert.
11943 * auto-load.c: Revert.
11944 * arm-wince-tdep.c: Revert.
11945 * arm-tdep.c: Revert.
11946 * arm-symbian-tdep.c: Revert.
11947 * arm-pikeos-tdep.c: Revert.
11948 * arm-obsd-tdep.c: Revert.
11949 * arm-nbsd-tdep.c: Revert.
11950 * arm-nbsd-nat.c: Revert.
11951 * arm-linux-tdep.c: Revert.
11952 * arm-linux-nat.c: Revert.
11953 * arm-fbsd-tdep.c: Revert.
11954 * arm-fbsd-nat.c: Revert.
11955 * arm-bsd-tdep.c: Revert.
11956 * arch-utils.c: Revert.
11957 * arc-tdep.c: Revert.
11958 * arc-newlib-tdep.c: Revert.
11959 * annotate.h: Revert.
11960 * annotate.c: Revert.
11961 * amd64-windows-tdep.c: Revert.
11962 * amd64-windows-nat.c: Revert.
11963 * amd64-tdep.c: Revert.
11964 * amd64-sol2-tdep.c: Revert.
11965 * amd64-obsd-tdep.c: Revert.
11966 * amd64-obsd-nat.c: Revert.
11967 * amd64-nbsd-tdep.c: Revert.
11968 * amd64-nbsd-nat.c: Revert.
11969 * amd64-nat.c: Revert.
11970 * amd64-linux-tdep.c: Revert.
11971 * amd64-linux-nat.c: Revert.
11972 * amd64-fbsd-tdep.c: Revert.
11973 * amd64-fbsd-nat.c: Revert.
11974 * amd64-dicos-tdep.c: Revert.
11975 * amd64-darwin-tdep.c: Revert.
11976 * amd64-bsd-nat.c: Revert.
11977 * alpha-tdep.c: Revert.
11978 * alpha-obsd-tdep.c: Revert.
11979 * alpha-nbsd-tdep.c: Revert.
11980 * alpha-mdebug-tdep.c: Revert.
11981 * alpha-linux-tdep.c: Revert.
11982 * alpha-linux-nat.c: Revert.
11983 * alpha-bsd-tdep.c: Revert.
11984 * alpha-bsd-nat.c: Revert.
11985 * aix-thread.c: Revert.
11986 * agent.c: Revert.
11987 * addrmap.c: Revert.
11988 * ada-varobj.c: Revert.
11989 * ada-valprint.c: Revert.
11990 * ada-typeprint.c: Revert.
11991 * ada-tasks.c: Revert.
11992 * ada-lang.c: Revert.
11993 * aarch64-tdep.c: Revert.
11994 * aarch64-ravenscar-thread.c: Revert.
11995 * aarch64-newlib-tdep.c: Revert.
11996 * aarch64-linux-tdep.c: Revert.
11997 * aarch64-linux-nat.c: Revert.
11998 * aarch64-fbsd-tdep.c: Revert.
11999 * aarch64-fbsd-nat.c: Revert.
12000 * aarch32-linux-nat.c: Revert.
12001
12002 2019-04-05 Tom Tromey <tom@tromey.com>
12003
12004 * ft32-tdep.c: Sort headers.
12005 * frv-tdep.c: Sort headers.
12006 * frv-linux-tdep.c: Sort headers.
12007 * frame.c: Sort headers.
12008 * frame-unwind.c: Sort headers.
12009 * frame-base.c: Sort headers.
12010 * fork-child.c: Sort headers.
12011 * findvar.c: Sort headers.
12012 * findcmd.c: Sort headers.
12013 * filesystem.c: Sort headers.
12014 * filename-seen-cache.h: Sort headers.
12015 * filename-seen-cache.c: Sort headers.
12016 * fbsd-tdep.c: Sort headers.
12017 * fbsd-nat.h: Sort headers.
12018 * fbsd-nat.c: Sort headers.
12019 * f-valprint.c: Sort headers.
12020 * f-typeprint.c: Sort headers.
12021 * f-lang.c: Sort headers.
12022 * extension.h: Sort headers.
12023 * extension.c: Sort headers.
12024 * extension-priv.h: Sort headers.
12025 * expprint.c: Sort headers.
12026 * exec.h: Sort headers.
12027 * exec.c: Sort headers.
12028 * exceptions.c: Sort headers.
12029 * event-top.c: Sort headers.
12030 * event-loop.c: Sort headers.
12031 * eval.c: Sort headers.
12032 * elfread.c: Sort headers.
12033 * dwarf2read.h: Sort headers.
12034 * dwarf2read.c: Sort headers.
12035 * dwarf2loc.c: Sort headers.
12036 * dwarf2expr.h: Sort headers.
12037 * dwarf2expr.c: Sort headers.
12038 * dwarf2-frame.c: Sort headers.
12039 * dwarf2-frame-tailcall.c: Sort headers.
12040 * dwarf-index-write.h: Sort headers.
12041 * dwarf-index-write.c: Sort headers.
12042 * dwarf-index-common.c: Sort headers.
12043 * dwarf-index-cache.h: Sort headers.
12044 * dwarf-index-cache.c: Sort headers.
12045 * dummy-frame.c: Sort headers.
12046 * dtrace-probe.c: Sort headers.
12047 * disasm.h: Sort headers.
12048 * disasm.c: Sort headers.
12049 * disasm-selftests.c: Sort headers.
12050 * dictionary.c: Sort headers.
12051 * dicos-tdep.c: Sort headers.
12052 * demangle.c: Sort headers.
12053 * dcache.h: Sort headers.
12054 * dcache.c: Sort headers.
12055 * darwin-nat.h: Sort headers.
12056 * darwin-nat.c: Sort headers.
12057 * darwin-nat-info.c: Sort headers.
12058 * d-valprint.c: Sort headers.
12059 * d-namespace.c: Sort headers.
12060 * d-lang.c: Sort headers.
12061 * ctf.c: Sort headers.
12062 * csky-tdep.c: Sort headers.
12063 * csky-linux-tdep.c: Sort headers.
12064 * cris-tdep.c: Sort headers.
12065 * cris-linux-tdep.c: Sort headers.
12066 * cp-valprint.c: Sort headers.
12067 * cp-support.c: Sort headers.
12068 * cp-namespace.c: Sort headers.
12069 * cp-abi.c: Sort headers.
12070 * corelow.c: Sort headers.
12071 * corefile.c: Sort headers.
12072 * continuations.c: Sort headers.
12073 * completer.h: Sort headers.
12074 * completer.c: Sort headers.
12075 * complaints.c: Sort headers.
12076 * coffread.c: Sort headers.
12077 * coff-pe-read.c: Sort headers.
12078 * cli-out.h: Sort headers.
12079 * cli-out.c: Sort headers.
12080 * charset.c: Sort headers.
12081 * c-varobj.c: Sort headers.
12082 * c-valprint.c: Sort headers.
12083 * c-typeprint.c: Sort headers.
12084 * c-lang.c: Sort headers.
12085 * buildsym.c: Sort headers.
12086 * buildsym-legacy.c: Sort headers.
12087 * build-id.h: Sort headers.
12088 * build-id.c: Sort headers.
12089 * btrace.c: Sort headers.
12090 * bsd-uthread.c: Sort headers.
12091 * breakpoint.h: Sort headers.
12092 * breakpoint.c: Sort headers.
12093 * break-catch-throw.c: Sort headers.
12094 * break-catch-syscall.c: Sort headers.
12095 * break-catch-sig.c: Sort headers.
12096 * blockframe.c: Sort headers.
12097 * block.c: Sort headers.
12098 * bfin-tdep.c: Sort headers.
12099 * bfin-linux-tdep.c: Sort headers.
12100 * bfd-target.c: Sort headers.
12101 * bcache.c: Sort headers.
12102 * ax-general.c: Sort headers.
12103 * ax-gdb.h: Sort headers.
12104 * ax-gdb.c: Sort headers.
12105 * avr-tdep.c: Sort headers.
12106 * auxv.c: Sort headers.
12107 * auto-load.c: Sort headers.
12108 * arm-wince-tdep.c: Sort headers.
12109 * arm-tdep.c: Sort headers.
12110 * arm-symbian-tdep.c: Sort headers.
12111 * arm-pikeos-tdep.c: Sort headers.
12112 * arm-obsd-tdep.c: Sort headers.
12113 * arm-nbsd-tdep.c: Sort headers.
12114 * arm-nbsd-nat.c: Sort headers.
12115 * arm-linux-tdep.c: Sort headers.
12116 * arm-linux-nat.c: Sort headers.
12117 * arm-fbsd-tdep.c: Sort headers.
12118 * arm-fbsd-nat.c: Sort headers.
12119 * arm-bsd-tdep.c: Sort headers.
12120 * arch-utils.c: Sort headers.
12121 * arc-tdep.c: Sort headers.
12122 * arc-newlib-tdep.c: Sort headers.
12123 * annotate.h: Sort headers.
12124 * annotate.c: Sort headers.
12125 * amd64-windows-tdep.c: Sort headers.
12126 * amd64-windows-nat.c: Sort headers.
12127 * amd64-tdep.c: Sort headers.
12128 * amd64-sol2-tdep.c: Sort headers.
12129 * amd64-obsd-tdep.c: Sort headers.
12130 * amd64-obsd-nat.c: Sort headers.
12131 * amd64-nbsd-tdep.c: Sort headers.
12132 * amd64-nbsd-nat.c: Sort headers.
12133 * amd64-nat.c: Sort headers.
12134 * amd64-linux-tdep.c: Sort headers.
12135 * amd64-linux-nat.c: Sort headers.
12136 * amd64-fbsd-tdep.c: Sort headers.
12137 * amd64-fbsd-nat.c: Sort headers.
12138 * amd64-dicos-tdep.c: Sort headers.
12139 * amd64-darwin-tdep.c: Sort headers.
12140 * amd64-bsd-nat.c: Sort headers.
12141 * alpha-tdep.c: Sort headers.
12142 * alpha-obsd-tdep.c: Sort headers.
12143 * alpha-nbsd-tdep.c: Sort headers.
12144 * alpha-mdebug-tdep.c: Sort headers.
12145 * alpha-linux-tdep.c: Sort headers.
12146 * alpha-linux-nat.c: Sort headers.
12147 * alpha-bsd-tdep.c: Sort headers.
12148 * alpha-bsd-nat.c: Sort headers.
12149 * aix-thread.c: Sort headers.
12150 * agent.c: Sort headers.
12151 * addrmap.c: Sort headers.
12152 * ada-varobj.c: Sort headers.
12153 * ada-valprint.c: Sort headers.
12154 * ada-typeprint.c: Sort headers.
12155 * ada-tasks.c: Sort headers.
12156 * ada-lang.c: Sort headers.
12157 * aarch64-tdep.c: Sort headers.
12158 * aarch64-ravenscar-thread.c: Sort headers.
12159 * aarch64-newlib-tdep.c: Sort headers.
12160 * aarch64-linux-tdep.c: Sort headers.
12161 * aarch64-linux-nat.c: Sort headers.
12162 * aarch64-fbsd-tdep.c: Sort headers.
12163 * aarch64-fbsd-nat.c: Sort headers.
12164 * aarch32-linux-nat.c: Sort headers.
12165
12166 2019-04-04 Tom Tromey <tom@tromey.com>
12167
12168 * varobj.c (varobj_create): Update.
12169 * rust-exp.y (struct rust_parser) <update_innermost_block,
12170 lookup_symbol>: New methods.
12171 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12172 Rename.
12173 (rust_parser::rust_lookup_type)
12174 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12175 * printcmd.c (display_command, do_one_display): Update.
12176 * parser-defs.h (struct parser_state) <parser_state>: Add
12177 "tracker" parameter.
12178 (block_tracker): New member.
12179 (class innermost_block_tracker) <innermost_block_tracker>: Add
12180 "types" parameter.
12181 <reset>: Remove method.
12182 (innermost_block): Don't declare.
12183 (null_post_parser): Update.
12184 * parse.c (innermost_block): Remove global.
12185 (write_dollar_variable): Update.
12186 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12187 Remove "tracker_types" parameter.
12188 (parse_expression): Add "tracker" parameter.
12189 (parse_expression_for_completion): Update.
12190 (null_post_parser): Add "tracker" parameter.
12191 * p-exp.y: Update rules.
12192 * m2-exp.y: Update rules.
12193 * language.h (struct language_defn) <la_post_parser>: Add
12194 "tracker" parameter.
12195 * go-exp.y: Update rules.
12196 * f-exp.y: Update rules.
12197 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12198 parameter.
12199 * d-exp.y: Update rules.
12200 * c-exp.y: Update rules.
12201 * breakpoint.c (set_breakpoint_condition): Create an
12202 innermost_block_tracker.
12203 (watch_command_1): Likewise.
12204 * ada-lang.c (resolve): Add "tracker" parameter.
12205 (resolve_subexp): Likewise.
12206 * ada-exp.y (write_var_from_sym): Update.
12207
12208 2019-04-04 Tom Tromey <tom@tromey.com>
12209
12210 * type-stack.h: New file.
12211 * type-stack.c: New file.
12212 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12213 type-stack.h.
12214 (insert_into_type_stack, insert_type, push_type, push_type_int)
12215 (insert_type_address_space, pop_type, pop_type_int)
12216 (pop_typelist, pop_type_stack, append_type_stack)
12217 (push_type_stack, get_type_stack, push_typelist)
12218 (follow_type_instance_flags, follow_types): Don't declare.
12219 * parse.c (type_stack): Remove global.
12220 (parse_exp_in_context): Update.
12221 (insert_into_type_stack, insert_type, push_type, push_type_int)
12222 (insert_type_address_space, pop_type, pop_type_int)
12223 (pop_typelist, pop_type_stack, append_type_stack)
12224 (push_type_stack, get_type_stack, push_typelist)
12225 (follow_type_instance_flags, follow_types): Remove (moved to
12226 type-stack.c).
12227 * f-exp.y (type_stack): New global.
12228 Update rules.
12229 (push_kind_type, f_parse): Update.
12230 * d-exp.y (type_stack): New global.
12231 Update rules.
12232 (d_parse): Update.
12233 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12234 Update rules.
12235 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12236 (HFILES_NO_SRCDIR): Add type-stack.h.
12237
12238 2019-04-04 Tom Tromey <tom@tromey.com>
12239
12240 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12241 (rust_parser::convert_ast_to_expression, rust_parse)
12242 (rust_lex_test_completion, rust_lex_tests): Update.
12243 * parser-defs.h (struct expr_completion_state): New.
12244 (struct parser_state) <parser_state>: Add completion parameter.
12245 <mark_struct_expression, mark_completion_tag>: New methods.
12246 <parse_completion, m_completion_state>: New members.
12247 (prefixify_expression, null_post_parser): Update.
12248 (mark_struct_expression, mark_completion_tag): Don't declare.
12249 * parse.c (parse_completion, expout_last_struct)
12250 (expout_tag_completion_type, expout_completion_name): Remove
12251 globals.
12252 (parser_state::mark_struct_expression)
12253 (parser_state::mark_completion_tag): Now methods.
12254 (prefixify_expression): Add last_struct parameter.
12255 (prefixify_subexp): Likewise.
12256 (parse_exp_1): Update.
12257 (parse_exp_in_context): Add cstate parameter. Update.
12258 (parse_expression_for_completion): Create an
12259 expr_completion_state.
12260 (null_post_parser): Add "completion" parameter.
12261 * p-exp.y: Update rules.
12262 (yylex): Update.
12263 * language.h (struct language_defn) <la_post_parser>: Add
12264 "completing" parameter.
12265 * go-exp.y: Update rules.
12266 (lex_one_token): Update.
12267 * expression.h (parse_completion): Don't declare.
12268 * d-exp.y: Update rules.
12269 (lex_one_token): Update rules.
12270 * c-exp.y: Update rules.
12271 (lex_one_token): Update.
12272 * ada-lang.c (resolve): Add "parse_completion" parameter.
12273 (resolve_subexp): Likewise.
12274 (ada_resolve_function): Likewise.
12275
12276 2019-04-04 Tom Tromey <tom@tromey.com>
12277
12278 * parser-defs.h (struct parser_state) <start_arglist,
12279 end_arglist>: New methods.
12280 <arglist_len, m_funcall_chain>: New members.
12281 (arglist_len, start_arglist, end_arglist): Don't declare.
12282 * parse.c (arglist_len, funcall_chain): Remove global.
12283 (start_arglist, end_arglist): Remove functions.
12284 (parse_exp_in_context): Update.
12285 * p-exp.y: Update rules.
12286 * m2-exp.y: Update rules.
12287 * go-exp.y: Update rules.
12288 * f-exp.y: Update rules.
12289 * d-exp.y: Update rules.
12290 * c-exp.y: Update rules.
12291
12292 2019-04-04 Tom Tromey <tom@tromey.com>
12293
12294 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12295 lex_operator, push_back>: New methods.
12296 Update all rules.
12297 (rust_parser::lex_hex, lex_escape): Rename and update.
12298 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12299 (rust_parser::lex_operator): Rename and update.
12300 (rust_parser::lex_number, rustyylex, rustyyerror)
12301 (rust_lex_test_init, rust_lex_test_sequence)
12302 (rust_lex_test_push_back, rust_lex_tests): Update.
12303 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12304 parameter.
12305 <lexptr, prev_lexptr>: New members.
12306 (lexptr, prev_lexptr): Don't declare.
12307 * parse.c (lexptr, prev_lexptr): Remove globals.
12308 (parse_exp_in_context): Update.
12309 * p-exp.y (yylex, yyerror): Update.
12310 * m2-exp.y (parse_number, yylex, yyerror): Update.
12311 * go-exp.y (lex_one_token, yyerror): Update.
12312 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12313 * d-exp.y (lex_one_token, yyerror): Update.
12314 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12315 (lex_one_token, yyerror): Update.
12316 * ada-lex.l (YY_INPUT): Update.
12317 (rewind_to_char): Update.
12318 * ada-exp.y (yyerror): Update.
12319
12320 2019-04-04 Tom Tromey <tom@tromey.com>
12321
12322 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12323 * parser-defs.h (struct parser_state) <parser_state>: Add new
12324 parameter.
12325 <comma_terminates>: New member.
12326 (comma_terminates): Don't declare global.
12327 * parse.c (comma_terminates): Remove global.
12328 (parse_exp_in_context): Update.
12329 * p-exp.y (yylex): Update.
12330 * m2-exp.y (yylex): Update.
12331 * go-exp.y (lex_one_token): Update.
12332 * f-exp.y (yylex): Update.
12333 * d-exp.y (lex_one_token): Update.
12334 * c-exp.y (lex_one_token): Update.
12335 * ada-lex.l: Update.
12336
12337 2019-04-04 Tom Tromey <tom@tromey.com>
12338
12339 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12340 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12341 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12342 * parser-defs.h (paren_depth): Don't declare.
12343 * parse.c (paren_depth): Remove global.
12344 (parse_exp_in_context): Update.
12345 * p-exp.y (paren_depth): New global.
12346 (pascal_parse): Initialize it.
12347 * m2-exp.y (paren_depth): New global.
12348 (m2_parse): Initialize it.
12349 * go-exp.y (paren_depth): New global.
12350 (go_parse): Initialize it.
12351 * f-exp.y (paren_depth): New global.
12352 (f_parse): Initialize it.
12353 * d-exp.y (paren_depth): New global.
12354 (d_parse): Initialize it.
12355 * c-exp.y (paren_depth): New global.
12356 (c_parse): Initialize it.
12357 * ada-lex.l (paren_depth): New global.
12358 (lexer_init): Initialize it.
12359
12360 2019-04-04 Tom Tromey <tom@tromey.com>
12361
12362 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12363 (rust_parser::convert_ast_to_type)
12364 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12365 * parser-defs.h (struct parser_state) <parser_state>: Add
12366 parameters. Initialize new members.
12367 <expression_context_block, expression_context_pc>: New members.
12368 * parse.c (expression_context_block, expression_context_pc):
12369 Remove globals.
12370 (parse_exp_in_context): Update.
12371 * p-exp.y: Update all rules.
12372 (yylex): Update.
12373 * m2-exp.y: Update all rules.
12374 (yylex): Update.
12375 * go-exp.y (yylex): Update.
12376 * f-exp.y (yylex): Update.
12377 * d-exp.y: Update all rules.
12378 (yylex): Update.
12379 * c-exp.y: Update all rules.
12380 (lex_one_token, classify_name, yylex, c_parse): Update.
12381 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12382
12383 2019-04-04 Tom Tromey <tom@tromey.com>
12384
12385 * gdbarch.h, gdbarch.c: Rebuild.
12386 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12387 * stap-probe.h:
12388 (struct stap_parse_info): Replace "parser_state" with
12389 "expr_builder".
12390 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12391 (parser_state): New class.
12392 * parse.c (expr_builder): Rename.
12393 (expr_builder::release): Rename.
12394 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12395 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12396 (write_exp_elt_longcst, write_exp_elt_floatcst)
12397 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12398 (write_exp_string_vector, write_exp_bitstring)
12399 (write_exp_msymbol, mark_struct_expression)
12400 (write_dollar_variable)
12401 (insert_type_address_space, increase_expout_size): Replace
12402 "parser_state" with "expr_builder".
12403 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12404 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12405 "parser_state" with "expr_builder".
12406
12407 2019-04-04 Tom Tromey <tom@tromey.com>
12408
12409 * rust-exp.y: Replace "parse_language" with method call.
12410 * p-exp.y:
12411 (yylex): Replace "parse_language" with method call.
12412 * m2-exp.y:
12413 (yylex): Replace "parse_language" with method call.
12414 * go-exp.y (classify_name): Replace "parse_language" with method
12415 call.
12416 * f-exp.y (yylex): Replace "parse_language" with method call.
12417 * d-exp.y (lex_one_token): Replace "parse_language" with method
12418 call.
12419 * c-exp.y:
12420 (lex_one_token, classify_name, yylex): Replace "parse_language"
12421 with method call.
12422 * ada-exp.y (find_primitive_type, type_char)
12423 (type_system_address): Replace "parse_language" with method call.
12424
12425 2019-04-04 Tom Tromey <tom@tromey.com>
12426
12427 * rust-exp.y: Replace "parse_gdbarch" with method call.
12428 * parse.c (write_dollar_variable, insert_type_address_space):
12429 Replace "parse_gdbarch" with method call.
12430 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12431 call.
12432 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12433 call.
12434 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12435 "parse_gdbarch" with method call.
12436 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12437 with method call.
12438 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12439 "parse_gdbarch" with method call.
12440 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12441 "parse_gdbarch" with method call.
12442 * c-exp.y (parse_type, parse_number, classify_name): Replace
12443 "parse_gdbarch" with method call.
12444 * ada-lex.l: Replace "parse_gdbarch" with method call.
12445 * ada-exp.y (parse_type, find_primitive_type, type_char)
12446 (type_system_address): Replace "parse_gdbarch" with method call.
12447
12448 2019-04-04 Tom Tromey <tom@tromey.com>
12449
12450 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12451 * stap-probe.c (stap_parse_argument): Update.
12452 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12453 initial_size parameter.
12454 * rust-exp.y (rust_lex_tests): Update.
12455 * parse.c (parser_state): Update.
12456 (parse_exp_in_context): Update.
12457 * parser-defs.h (struct parser_state) <parser_state>: Remove
12458 "initial_size" parameter.
12459
12460 2019-04-04 Tom Tromey <tom@tromey.com>
12461
12462 * parser-defs.h (increase_expout_size): Don't declare.
12463 * parse.c (increase_expout_size): Now static.
12464
12465 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12466
12467 * gnu-nat.c (gnu_nat_target::wait): Fix
12468 target_waitstatus_to_string call.
12469
12470 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12471
12472 * eval.c (evaluate_subexp_standard): Handle internal functions
12473 during Fortran function call handling.
12474
12475 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12476
12477 * NEWS: Mention new internal functions.
12478 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12479 (read_base_type): Use dwarf2_init_complex_target_type.
12480 * value.c (creal_internal_fn): New function.
12481 (cimag_internal_fn): New function.
12482 (_initialize_values): Register new internal functions.
12483
12484 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12485
12486 * infrun.c (stop_all_threads): If debug_infrun, always
12487 trace the wait status after wait_one, using
12488 target_waitstatus_to_string and target_pid_to_str.
12489 (handle_inferior_event): Replace various trace of
12490 wait status kind by a single trace.
12491 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12492 wait status kind image by target_waitstatus_to_string.
12493 * target/waitstatus.c (target_waitstatus_to_string): Fix
12494 obsolete comment.
12495
12496 2019-04-01 Tom Tromey <tromey@adacore.com>
12497
12498 PR symtab/23331:
12499 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12500
12501 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12502 Pedro Alves <palves@redhat.com>
12503
12504 * top.c (quit_force): Call 'finalize_values'.
12505 * value.c (finalize_values): New function.
12506 * value.h (finalize_values): Declare.
12507
12508 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12509
12510 * NEWS: Announce $_gdb_major and $_gdb_minor.
12511
12512 * top.c (init_gdb_version_vars): New function.
12513 (gdb_init): Call init_gdb_version_vars.
12514
12515 2019-03-29 Tom Tromey <tromey@adacore.com>
12516
12517 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12518 help text. Remove dead code.
12519
12520 2019-03-29 Keith Seitz <keiths@redhat.com>
12521
12522 From Siddhesh Poyarekar:
12523 * f-lang.h (f77_get_upperbound): Return LONGEST.
12524 (f77_get_lowerbound): Likewise.
12525 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12526 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12527 print them.
12528 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12529 plongest to format print it.
12530 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12531 (f77_get_upperbound): Likewise.
12532 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12533 LOWER_BOUND to LONGEST.
12534 (f77_create_arrayprint_offset_tbl): Likewise.
12535
12536 2019-03-29 Keith Seitz <keiths@redhat.com>
12537
12538 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12539 %s/pulongest for TYPE_LENGTH instead of %d in format
12540 strings.
12541 * ada-typerint.c (ada_print_type): Likewise.
12542 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12543 * compile/compile-c-support.c (generate_register_struct): Likewise.
12544 * gdbtypes.c (recursive_dump_type): Likewise.
12545 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12546 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12547 instead of %d in format strings.
12548 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12549 to std::min to ULONGEST.
12550 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12551 instead of %d in format strings.
12552 * tracepoint.c (info_scope_command): Likewise.
12553 * typeprint.c (print_offset_data::update)
12554 (print_offset_data::finish): Likewise.
12555 * xtensa-tdep.c (xtensa_store_return_value)
12556 (xtensa_push_dummy_call): Likewise.
12557
12558 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12559
12560 * windows-nat.c (display_selector): Fixed format specifications
12561 for 64-bit Cygwin.
12562
12563 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12564
12565 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12566
12567 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12568
12569 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12570 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12571 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12572 (nios2_linux_init_abi): Install it.
12573
12574 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12575
12576 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12577
12578 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12579
12580 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12581
12582 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12583 Tom Tromey <tromey@adacore.com>
12584
12585 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12586
12587 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12588
12589 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12590 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12591 method to compute the bounds of range types. Also print "[evaluated]"
12592 if the bounds' values come from a dynamic evaluation.
12593
12594 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12595
12596 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12597 whitespace when pretty printing is on.
12598
12599 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12600
12601 * ppc-linux-nat.c: Add include.
12602
12603 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12604
12605 * NEWS: Mention AArch64 Pointer Authentication.
12606
12607 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12608
12609 * arm-linux-nat.c: Add include.
12610
12611 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12612
12613 * source-cache.c (source_cache::get_source_lines): Re-read
12614 fullname after calling open_source_file.
12615
12616 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12617
12618 * NEWS: Mention TLS support for FreeBSD.
12619
12620 2019-03-25 Tom Tromey <tromey@adacore.com>
12621
12622 * minsyms.c (BUNCH_SIZE): Update comment.
12623 (~minimal_symbol_reader): Remove old comment.
12624 (compact_minimal_symbols): Update comment.
12625 (minimal_symbol_reader::install): Remove old comment. Update
12626 other comments.
12627
12628 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12629
12630 * s390-linux-nat.c: Add include.
12631
12632 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12633
12634 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12635 Call linux_get_hwcap.
12636 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12637 Likewise.
12638 (aarch64_linux_get_hwcap): Remove function.
12639 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12640 declaration.
12641 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12642 linux_get_hwcap.
12643 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12644 * linux-tdep.c (linux_get_hwcap): Add function.
12645 (linux_get_hwcap2): Likewise.
12646 * linux-tdep.h (linux_get_hwcap): Add declaration.
12647 (linux_get_hwcap2): Likewise.
12648 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12649 (ppc_linux_get_hwcap2): Likewise.
12650 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12651 linux_get_hwcap.
12652 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12653 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12654 (ppc_linux_nat_target::read_description): Likewise.
12655 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12656 * s390-linux-nat.c: Likewise.
12657 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12658
12659 2019-03-24 Tom Tromey <tom@tromey.com>
12660
12661 * ada-lang.c (standard_lookup): Simplify initialization.
12662 (ada_lookup_symbol_nonlocal): Simplify return.
12663 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12664 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12665 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12666 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12667 initialization.
12668 * solib.c (solib_global_lookup): Simplify.
12669 * symtab.c (null_block_symbol): Remove.
12670 (symbol_cache_lookup): Simplify returns.
12671 (lookup_language_this): Simplify returns.
12672 (lookup_symbol_aux): Simplify return.
12673 (lookup_local_symbol): Simplify returns.
12674 (lookup_global_symbol_from_objfile): Simplify return.
12675 (lookup_symbol_in_objfile_symtabs)
12676 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12677 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12678 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12679 * cp-namespace.c (cp_lookup_bare_symbol)
12680 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12681 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12682 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12683 (cp_lookup_symbol_via_imports): Simplify initialization.
12684 (find_symbol_in_baseclass): Likewise.
12685 * symtab.h (null_block_symbol): Remove.
12686 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12687 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12688 (d_lookup_symbol_module): Likewise.
12689 (find_symbol_in_baseclass): Simplify initialization.
12690
12691 2019-03-24 Tom Tromey <tom@tromey.com>
12692
12693 * expression.h: Don't include symtab.h.
12694 (struct block): Forward declare.
12695
12696 2019-03-24 Tom Tromey <tom@tromey.com>
12697
12698 * c-exp.y (typebase): Remove casts.
12699 * gdbtypes.c (lookup_unsigned_typename, )
12700 (lookup_signed_typename): Remove cast.
12701 * eval.c (parse_to_comma_and_eval): Remove cast.
12702 * parse.c (write_dollar_variable): Remove cast.
12703 * block.h (struct block) <superblock>: Now const.
12704 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12705 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12706 (map_block): Make "block" const.
12707 * symfile.h (struct quick_symbol_functions)
12708 <map_matching_symbols>: Constify block argument to "callback".
12709 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12710 const.
12711 (find_pc_sect_compunit_symtab): Make "b" const.
12712 (find_symbol_at_address): Likewise.
12713 (search_symbols): Likewise.
12714 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12715 (dw2_debug_names_lookup_symbol): Likewise.
12716 (dw2_map_matching_symbols): Update.
12717 * p-valprint.c (pascal_val_print): Remove "block".
12718 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12719 (aux_add_nonlocal_symbols): Make "block" const.
12720 (resolve_subexp): Remove cast.
12721 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12722 const.
12723 (iterate_over_file_blocks): Likewise.
12724 * f-exp.y (%union) <bval>: Remove.
12725 * coffread.c (patch_opaque_types): Make "b" const.
12726 * spu-tdep.c (spu_catch_start): Make "block" const.
12727 * c-valprint.c (print_unpacked_pointer): Remove "block".
12728 * symmisc.c (dump_symtab_1): Make "b" const.
12729 (block_depth): Make "block" const.
12730 * d-exp.y (%union) <bval>: Remove.
12731 * cp-support.h (cp_lookup_rtti_type): Update.
12732 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12733 * psymtab.c (psym_lookup_symbol): Make "block" const.
12734 (maintenance_check_psymtabs): Make "b" const.
12735 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12736 (enumerate_locals, enumerate_args): Update.
12737 * python/py-symtab.c (stpy_global_block): Make "block" const.
12738 (stpy_static_block): Likewise.
12739 * inline-frame.c (block_starting_point_at): Make "new_block"
12740 const.
12741 * block.c (find_block_in_blockvector): Make return type const.
12742 (blockvector_for_pc_sect): Make "b" const.
12743 (find_block_in_blockvector): Make "b" const.
12744
12745 2019-03-23 Tom Tromey <tom@tromey.com>
12746
12747 * varobj.c (varobj_create): Update.
12748 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12749 * printcmd.c (display_command, do_one_display): Don't reset
12750 innermost_block.
12751 * parser-defs.h (enum innermost_block_tracker_type): Move to
12752 expression.h.
12753 (innermost_block): Update comment.
12754 * parse.c (parse_exp_1): Add tracker_types parameter.
12755 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12756 tracker_types parameter. Reset innermost_block.
12757 (parse_exp_in_context): Remove.
12758 (parse_expression_for_completion): Update.
12759 * objfiles.c (~objfile): Don't reset expression_context_block or
12760 innermost_block.
12761 * expression.h (enum innermost_block_tracker_type): Move from
12762 parser-defs.h.
12763 (parse_exp_1): Add tracker_types parameter.
12764 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12765 reset innermost_block.
12766
12767 2019-03-23 Tom Tromey <tom@tromey.com>
12768
12769 * objfiles.h: Include bcache.h.
12770
12771 2019-03-23 Tom Tromey <tom@tromey.com>
12772
12773 * linespec.c (get_current_search_block): Use
12774 scoped_restore_current_language.
12775 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12776
12777 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12778 Jiong Wang <jiong.wang@arm.com>
12779
12780 * aarch64-linux-tdep.c
12781 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12782 section.
12783 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12784
12785 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12786 Jiong Wang <jiong.wang@arm.com>
12787
12788 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12789 instructions.
12790 (aarch64_analyze_prologue_test): Add PACIASP test.
12791 (aarch64_prologue_prev_register): Unmask PC value.
12792
12793 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12794 Jiong Wang <jiong.wang@arm.com>
12795
12796 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12797 (aarch64_dwarf2_prev_register): Unmask PC value.
12798 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12799 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12800 DW_CFA_AARCH64_negate_ra_state.
12801 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12802
12803 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12804 Jiong Wang <jiong.wang@arm.com>
12805
12806 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12807 registers.
12808 (aarch64_pseudo_register_name): Likewise.
12809 (aarch64_pseudo_register_type): Likewise.
12810 (aarch64_pseudo_register_reggroup_p): Likewise.
12811 (aarch64_gdbarch_init): Add pauth registers.
12812 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12813 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12814 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12815 (struct gdbarch_tdep): Add regnum for ra_state.
12816
12817 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12818 Jiong Wang <jiong.wang@arm.com>
12819
12820 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12821
12822 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12823 Jiong Wang <jiong.wang@arm.com>
12824
12825 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12826 function.
12827 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12828 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12829 (aarch64_gdbarch_init): Add puth registers.
12830 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12831 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12832 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12833
12834 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12835 Jiong Wang <jiong.wang@arm.com>
12836
12837 * aarch64-linux-nat.c
12838 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12839 * aarch64-linux-tdep.c
12840 (aarch64_linux_core_read_description): Likewise.
12841 (aarch64_linux_get_hwcap): New function.
12842 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12843 (aarch64_linux_get_hwcap): New declaration.
12844
12845 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12846 Jiong Wang <jiong.wang@arm.com>
12847
12848 * aarch64-linux-nat.c
12849 (aarch64_linux_nat_target::read_description): Add pauth param.
12850 * aarch64-linux-tdep.c
12851 (aarch64_linux_core_read_description): Likewise.
12852 * aarch64-tdep.c (struct target_desc): Add in pauth.
12853 (aarch64_read_description): Add pauth param.
12854 (aarch64_gdbarch_init): Likewise.
12855 * aarch64-tdep.h (aarch64_read_description): Likewise.
12856 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12857 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12858 * features/Makefile: Add new files.
12859 * features/aarch64-pauth.c: New file.
12860 * features/aarch64-pauth.xml: New file.
12861
12862 2019-03-20 Tom Tromey <tromey@adacore.com>
12863
12864 * infrun.c (handle_inferior_event): Rename from
12865 handle_inferior_event_1. Create a scoped_value_mark.
12866 (handle_inferior_event): Remove.
12867
12868 2019-03-19 Tom Tromey <tromey@adacore.com>
12869
12870 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12871 * infrun.h (print_stop_event): Add "displays" parameter.
12872 * infrun.c (print_stop_event): Add "displays" parameter.
12873
12874 2019-03-19 Pedro Alves <palves@redhat.com>
12875
12876 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12877 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12878 to -1. Fix TABs vs spaces.
12879 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12880 * tui/tui-out.h (tui_ui_out) Add intro comments.
12881 <m_line, m_start_of_line>: In-class initialize, and add describing
12882 comment.
12883
12884 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12885
12886 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12887 variable names.
12888 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12889
12890 2019-03-18 Pedro Alves <palves@redhat.com>
12891 Eli Zaretskii <eliz@gnu.org>
12892
12893 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12894 m_line and m_start_of_line.
12895
12896 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12897
12898 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12899 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12900 it returns a newline. This fixes a regression in TU mode, whereby
12901 the next line is output on the same screen line as the user input.
12902
12903 2019-03-18 Tom Tromey <tromey@adacore.com>
12904
12905 * minsyms.c (minimal_symbol_reader::install): Remove call to
12906 obstack_blank.
12907
12908 2019-03-18 Pedro Alves <palves@redhat.com>
12909
12910 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12911 New globals.
12912 (apply_style): New, factored out from ...
12913 (apply_ansi_escape): ... this. Handle reverse video mode.
12914 (tui_set_reverse_mode): New function.
12915 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12916 * tui/tui-winsource.c (tui_show_source_line): Use
12917 tui_set_reverse_mode instead of setting A_STANDOUT.
12918 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12919 New setter methods.
12920
12921 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12922
12923 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12924 Handle tabs.
12925
12926 2019-03-18 Tom Tromey <tromey@adacore.com>
12927
12928 * ada-lang.c (empty_array): Add "high" parameter.
12929 (ada_evaluate_subexp): Update.
12930
12931 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12932
12933 * unittests/string_view-selftests.c: Define
12934 _initialize_string_view_selftests unconditionally.
12935
12936 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12937
12938 PR gdb/24350
12939 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12940
12941 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12942
12943 PR gdb/24351
12944 * windows-nat.c (display_selector): Fix format specifiers.
12945
12946 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12947
12948 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12949 tui_refill_source_window instead of tui_refresh_win, to update the
12950 current execution line. This fixes redisplay of the current line
12951 when stepping through the code with "next" or "step".
12952
12953 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12954
12955 * source-cache.c (source_cache::get_source_lines): Call
12956 find_source_lines to initialize s->nlines. This fixes vertical
12957 scrolling of TUI source window when the DOWN arrow is pressed.
12958
12959 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12960
12961 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12962 linux-thread-db.c (_initialize_thread_db): Likewise.
12963
12964 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12965
12966 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12967 wclrtoeol in tui_show_source_line". This reverts changes made in
12968 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12969
12970 2019-03-15 Tom Tromey <tom@tromey.com>
12971
12972 * symtab.h (struct minimal_symbol): Derive from
12973 general_symbol_info.
12974 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12975 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12976 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12977 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12978 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12979 (MSYMBOL_SEARCH_NAME): Update.
12980 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12981 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12982 * minsyms.c (minimal_symbol_reader::record_full): Update.
12983
12984 2019-03-15 Tom Tromey <tom@tromey.com>
12985
12986 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12987
12988 2019-03-15 Tom Tromey <tom@tromey.com>
12989
12990 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12991 unique_xmalloc_ptr.
12992 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12993 Update.
12994 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12995 (build_minimal_symbol_hash_tables)
12996 (minimal_symbol_reader::install): Update.
12997
12998 2019-03-15 Tom Tromey <tom@tromey.com>
12999
13000 * symtab.c (create_demangled_names_hash): Update.
13001 (symbol_set_names): Update.
13002 * objfiles.h (struct objfile_per_bfd_storage)
13003 <demangled_names_hash>: Now an htab_up.
13004 * objfiles.c (objfile_per_bfd_storage): Simplify.
13005
13006 2019-03-15 Tom Tromey <tom@tromey.com>
13007
13008 * objfiles.h (struct objfile_per_bfd_storage): Declare
13009 destructor.
13010 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13011 New.
13012 (get_objfile_bfd_data): Use new. Don't initialize
13013 language_of_main.
13014 (free_objfile_per_bfd_storage): Remove.
13015 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13016
13017 2019-03-15 Tom Tromey <tom@tromey.com>
13018
13019 * symfile.c (reread_symbols): Update.
13020 * objfiles.c (objfile::objfile): Update.
13021 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13022 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13023 comment.
13024 (minimal_symbol_reader::install): Update.
13025 (terminate_minimal_symbol_table): Remove.
13026 * jit.c (jit_object_close_impl): Update.
13027
13028 2019-03-15 Tom Tromey <tom@tromey.com>
13029
13030 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13031 initializations.
13032
13033 2019-03-15 Tom Tromey <tom@tromey.com>
13034
13035 * objfiles.h (struct objfile_per_bfd_storage)
13036 <demangled_hash_languages>: Now a bitset.
13037 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13038 (lookup_minimal_symbol): Update.
13039
13040 2019-03-15 Tom Tromey <tom@tromey.com>
13041
13042 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13043 Don't return the symbol.
13044 * coffread.c (record_minimal_symbol): Use record_full.
13045
13046 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13047
13048 The MS-Windows port of ncurses fails to switch to a color pair if
13049 one or both of the colors are the implicit default colors. This
13050 change records the default colors when TUI is initialized, and
13051 then specifies them explicitly when a color pair uses the default
13052 colors. This allows color styling in TUI mode on MS-Windows.
13053
13054 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13055 ncurses_norm_attr.
13056 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13057 colors in ncurses_norm_attr.
13058 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13059 "none", replace it with the default color recorded in
13060 ncurses_norm_attr.
13061
13062 2019-03-14 Tom Tromey <tromey@adacore.com>
13063
13064 * source-cache.h (class source_cache) <get_source_lines>: Return
13065 std::string.
13066 * source-cache.c (source_cache::extract_lines): Handle case where
13067 first_pos==npos. Return std::string.
13068 (source_cache::get_source_lines): Update.
13069
13070 2019-03-14 Tom Tromey <tromey@adacore.com>
13071
13072 * NEWS: Add item for "style sources" commands.
13073 * source-cache.c (source_cache::get_source_lines): Check
13074 source_styling.
13075 * cli/cli-style.c (source_styling): New global.
13076 (_initialize_cli_style): Add "style sources" commands.
13077 (show_style_sources): New function.
13078 * cli/cli-style.h (source_styling): Declare.
13079
13080 2019-03-14 Pedro Alves <palves@redhat.com>
13081 Tom Tromey <tromey@adacore.com>
13082
13083 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13084 * tui/tui-winsource.c (tui_refill_source_window): New function,
13085 from...
13086 (tui_horizontal_source_scroll): ... here. Move some logic.
13087 * cli/cli-style.c (set_style_enabled): Notify new observable.
13088 * tui/tui-hooks.c (tui_redisplay_source): New function.
13089 (tui_attach_detach_observers): Attach or detach
13090 tui_redisplay_source.
13091 * observable.h (source_styling_changed): New observable.
13092 * observable.c: Define source_styling_changed observable.
13093
13094 2019-03-13 Tom Tromey <tromey@adacore.com>
13095
13096 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13097 (i386_gnu_nat_target::store_registers): Update.
13098 * target-debug.h (target_debug_print_std_string): New macro.
13099 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13100 * windows-tdep.c (display_one_tib): Update.
13101 * tui/tui-stack.c (tui_make_status_line): Update.
13102 * top.c (print_inferior_quit_action): Update.
13103 * thread.c (thr_try_catch_cmd): Update.
13104 (add_thread_with_info): Update.
13105 (thread_target_id_str): Update.
13106 (thr_try_catch_cmd): Update.
13107 (thread_command): Update.
13108 (thread_find_command): Update.
13109 * record-btrace.c (record_btrace_target::info_record)
13110 (record_btrace_resume_thread, record_btrace_target::resume)
13111 (record_btrace_cancel_resume, record_btrace_step_thread)
13112 (record_btrace_target::wait, record_btrace_target::wait)
13113 (record_btrace_target::wait, record_btrace_target::stop): Update.
13114 * progspace.c (print_program_space): Update.
13115 * process-stratum-target.c
13116 (process_stratum_target::thread_address_space): Update.
13117 * linux-fork.c (linux_fork_mourn_inferior)
13118 (detach_checkpoint_command, info_checkpoints_command)
13119 (linux_fork_context): Update.
13120 (linux_fork_detach): Update.
13121 (class scoped_switch_fork_info): Update.
13122 (delete_checkpoint_command): Update.
13123 * infrun.c (follow_fork_inferior): Update.
13124 (follow_fork_inferior): Update.
13125 (proceed_after_vfork_done): Update.
13126 (handle_vfork_child_exec_or_exit): Update.
13127 (follow_exec): Update.
13128 (displaced_step_prepare_throw): Update.
13129 (displaced_step_restore): Update.
13130 (start_step_over): Update.
13131 (resume_1): Update.
13132 (clear_proceed_status_thread): Update.
13133 (proceed): Update.
13134 (print_target_wait_results): Update.
13135 (do_target_wait): Update.
13136 (context_switch): Update.
13137 (stop_all_threads): Update.
13138 (restart_threads): Update.
13139 (finish_step_over): Update.
13140 (handle_signal_stop): Update.
13141 (switch_back_to_stepped_thread): Update.
13142 (keep_going_pass_signal): Update.
13143 (print_exited_reason): Update.
13144 (normal_stop): Update.
13145 * inferior.c (inferior_pid_to_str): Change return type.
13146 (print_selected_inferior): Update.
13147 (add_inferior): Update.
13148 (detach_inferior): Update.
13149 * dummy-frame.c (fprint_dummy_frames): Update.
13150 * dcache.c (dcache_info_1): Update.
13151 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13152 (btrace_fetch, btrace_clear): Update.
13153 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13154 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13155 type.
13156 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13157 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13158 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13159 * gdbarch.c, gdbarch.h: Rebuild.
13160 * gdbarch.sh (core_pid_to_str): Change return type.
13161 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13162 return type.
13163 (windows_nat_target::pid_to_str): Change return type.
13164 (windows_delete_thread): Update.
13165 (windows_nat_target::attach): Update.
13166 (windows_nat_target::files_info): Update.
13167 * target-delegates.c: Rebuild.
13168 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13169 return type.
13170 (sol_thread_target::pid_to_str): Change return type.
13171 * remote.c (class remote_target) <pid_to_str>: Change return
13172 type.
13173 (remote_target::pid_to_str): Change return type.
13174 (extended_remote_target::attach, remote_target::remote_stop_ns)
13175 (remote_target::remote_notif_remove_queued_reply)
13176 (remote_target::push_stop_reply, remote_target::disable_btrace):
13177 Update.
13178 (extended_remote_target::attach): Update.
13179 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13180 type.
13181 (gdbsim_target::pid_to_str): Change return type.
13182 * ravenscar-thread.c (struct ravenscar_thread_target)
13183 <pid_to_str>: Change return type.
13184 (ravenscar_thread_target::pid_to_str): Change return type.
13185 * procfs.c (class procfs_target) <pid_to_str>: Change return
13186 type.
13187 (procfs_target::pid_to_str): Change return type.
13188 (procfs_target::attach): Update.
13189 (procfs_target::detach): Update.
13190 (procfs_target::fetch_registers): Update.
13191 (procfs_target::store_registers): Update.
13192 (procfs_target::wait): Update.
13193 (procfs_target::files_info): Update.
13194 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13195 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13196 return type.
13197 (nto_procfs_target::pid_to_str): Change return type.
13198 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13199 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13200 return type.
13201 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13202 (exit_lwp): Update.
13203 (attach_proc_task_lwp_callback, get_detach_signal)
13204 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13205 (linux_nat_target::resume, wait_lwp, stop_callback)
13206 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13207 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13208 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13209 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13210 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13211 type.
13212 (inf_ptrace_target::attach): Update.
13213 (inf_ptrace_target::files_info): Update.
13214 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13215 type.
13216 (go32_nat_target::pid_to_str): Change return type.
13217 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13218 (gnu_nat_target::wait): Update.
13219 (gnu_nat_target::wait): Update.
13220 (gnu_nat_target::resume): Update.
13221 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13222 (fbsd_nat_target::wait): Update.
13223 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13224 type.
13225 (darwin_nat_target::attach): Update.
13226 * corelow.c (class core_target) <pid_to_str>: Change return type.
13227 (core_target::pid_to_str): Change return type.
13228 * target.c (normal_pid_to_str): Change return type.
13229 (default_pid_to_str): Likewise.
13230 (target_pid_to_str): Change return type.
13231 (target_translate_tls_address): Update.
13232 (target_announce_detach): Update.
13233 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13234 return type.
13235 (bsd_uthread_target::pid_to_str): Change return type.
13236 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13237 type.
13238 (bsd_kvm_target::pid_to_str): Change return type.
13239 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13240 return type.
13241 (aix_thread_target::pid_to_str): Change return type.
13242 * target.h (struct target_ops) <pid_to_str>: Change return type.
13243 (target_pid_to_str, normal_pid_to_str): Likewise.
13244 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13245 type.
13246 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13247 type.
13248 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13249 return type.
13250 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13251 type.
13252 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13253 type.
13254 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13255 return type.
13256
13257 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13258
13259 * NEWS: Mention that the new default MI version is 3. Mention
13260 changes to the output of commands and events that deal with
13261 multi-location breakpoints.
13262 * breakpoint.c: Include "mi/mi-out.h".
13263 (print_one_breakpoint): Change output syntax if using MI version
13264 >= 3.
13265 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13266 New.
13267 (mi_multi_location_breakpoint_output_fixed): New.
13268 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13269 (mi_cmd_fix_multi_location_breakpoint_output): New.
13270 (mi_multi_location_breakpoint_output_fixed): New.
13271 * mi/mi-cmds.c (mi_cmds): Register command
13272 -fix-multi-location-breakpoint-output.
13273 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13274 interpreter "mi".
13275
13276 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13277
13278 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13279 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13280 instantiate mi_ui_out based on interpreter name.
13281 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13282 * mi/mi-main.c (mi_load_progress): Likewise.
13283
13284 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13285
13286 * NEWS: Combine separate "New targets" sections for 8.3.
13287
13288 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13289
13290 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13291 (ppcfbsd_init_abi): Install gdbarch
13292 "fetch_tls_load_module_address" and "get_thread_local_address"
13293 methods.
13294
13295 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13296
13297 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13298 (riscv_fbsd_init_abi): Install gdbarch
13299 "fetch_tls_load_module_address" and "get_thread_local_address"
13300 methods.
13301
13302 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13303
13304 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13305 (i386fbsd_init_abi): Install gdbarch
13306 "fetch_tls_load_module_address" and "get_thread_local_address"
13307 methods.
13308
13309 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13310
13311 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13312 (amd64fbsd_init_abi): Install gdbarch
13313 "fetch_tls_load_module_address" and "get_thread_local_address"
13314 methods.
13315
13316 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13317
13318 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13319 (struct fbsd_pspace_data): New type.
13320 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13321 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13322 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13323 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13324 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13325
13326 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13327
13328 * gdbtypes.c (lookup_struct_elt): New function.
13329 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13330 * gdbtypes.h (struct struct_elt): New type.
13331 (lookup_struct_elt): New prototype.
13332
13333 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13334
13335 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13336 remove disabled code block.
13337
13338 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13339
13340 * gdbarch.sh (get_thread_local_address): New method.
13341 * gdbarch.h, gdbarch.c: Regenerate.
13342 * target.c (target_translate_tls_address): Use
13343 gdbarch_get_thread_local_address if present instead of
13344 target::get_thread_local_address.
13345
13346 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13347
13348 * target.h (target::get_thread_local_address): Update comment.
13349
13350 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13351
13352 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13353 objfile->separate_debug_objfile_backlink if not NULL.
13354
13355 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13356
13357 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13358 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13359 (amd64bsd_store_inferior_registers): Likewise.
13360 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13361 Enable segment base registers.
13362 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13363 PT_GETFSBASE and PT_GETGSBASE.
13364 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13365 PT_SETGSBASE.
13366 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13367 segment base registers.
13368 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13369
13370 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13371
13372 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13373 Update calls to i386_target_description to add 'segments'
13374 parameter.
13375 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13376 add segment base registers.
13377 * arch/i386.c (i386_create_target_description): Add 'segments'
13378 parameter to enable segment base registers.
13379 * arch/i386.h (i386_create_target_description): Likewise.
13380 * features/i386/32bit-segments.xml: New file.
13381 * features/i386/32bit-segments.c: Generate.
13382 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13383 call to i386_target_description to add 'segments' parameter.
13384 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13385 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13386 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13387 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13388 if feature is present.
13389 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13390 Add 'segments' parameter to call to i386_target_description.
13391 (i386_target_description): Add 'segments' parameter to enable
13392 segment base registers.
13393 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13394 to call to i386_target_description.
13395 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13396 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13397 Define I386_NUM_REGS.
13398 (i386_target_description): Add 'segments' parameter to enable
13399 segment base registers.
13400
13401 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13402
13403 PR/24325
13404 * source-cache.c: #undef open and close, to avoid unresolved
13405 externals during linking.
13406
13407 2019-03-12 Tom Tromey <tromey@adacore.com>
13408
13409 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13410 const. Add initializers.
13411 (_initialize_remote): Don't initialize ptid globals.
13412
13413 2019-03-12 Pedro Alves <palves@redhat.com>
13414
13415 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13416
13417 2019-03-12 Pedro Alves <palves@redhat.com>
13418
13419 * cp-name-parser.y (main): Remove unused 'len' variable.
13420
13421 2019-03-12 Tom Tromey <tromey@adacore.com>
13422
13423 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13424 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13425
13426 2019-03-12 Tom Tromey <tromey@adacore.com>
13427
13428 * linux-nat.c (iterate_over_lwps): Update.
13429 (stop_callback): Remove parameter.
13430 (stop_wait_callback, detach_callback, resume_set_callback)
13431 (select_singlestep_lwp_callback, set_ignore_sigint)
13432 (status_callback, resumed_callback, resume_clear_callback)
13433 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13434 data parameter.
13435 (linux_nat_target::detach, linux_nat_target::resume)
13436 (linux_stop_and_wait_all_lwps, select_event_lwp)
13437 (linux_nat_filter_event, linux_nat_wait_1)
13438 (linux_nat_target::kill, linux_nat_target::stop)
13439 (linux_nat_target::stop): Update.
13440 (linux_nat_resume_callback): Change type.
13441 (resume_stopped_resumed_lwps, count_events_callback)
13442 (select_event_lwp_callback): Likewise.
13443 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13444 * arm-linux-nat.c (struct update_registers_data): Remove.
13445 (update_registers_callback): Change type.
13446 (arm_linux_insert_hw_breakpoint1): Update.
13447 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13448 parameter.
13449 (x86_linux_dr_set_addr): Update.
13450 (x86_linux_dr_set_control): Update.
13451 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13452 (iterate_over_lwps): Use gdb::function_view.
13453 * nat/aarch64-linux-hw-point.c (struct
13454 aarch64_dr_update_callback_param): Remove.
13455 (debug_reg_change_callback): Change type.
13456 (aarch64_notify_debug_reg_change): Update.
13457 * s390-linux-nat.c (s390_refresh_per_info): Update.
13458
13459 2019-03-11 Tom Tromey <tromey@adacore.com>
13460
13461 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13462 redundant assignment to "this_cu".
13463
13464 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13465
13466 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13467
13468 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13469
13470 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13471 from...
13472 (rank_one_type): ... this.
13473
13474 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13475
13476 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13477 from...
13478 (rank_one_type): ... this.
13479
13480 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13481
13482 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13483 from...
13484 (rank_one_type): ... this.
13485
13486 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13487
13488 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13489 from...
13490 (rank_one_type): ... this.
13491
13492 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13493
13494 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13495 from...
13496 (rank_one_type): ... this.
13497
13498 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13499
13500 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13501 from...
13502 (rank_one_type): ... this.
13503
13504 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13505
13506 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13507 from...
13508 (rank_one_type): ... this.
13509
13510 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13511
13512 * gdbtypes.c (rank_one_type_parm_enum): 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_int): 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_func): 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_array): 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_ptr): New function extracted
13537 from...
13538 (rank_one_type): ... this.
13539
13540 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13541
13542 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13543 inferior-events' shows the example events.
13544
13545 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13546
13547 Support styling on native MS-Windows console
13548
13549 PR/24315
13550 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13551 on MS-Windows if $TERM is not defined.
13552
13553 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13554
13555 * posix-hdep.c (gdb_console_fputs):
13556 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13557 functions.
13558 * ui-file.h (gdb_console_fputs): Add prototype.
13559
13560 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13561 back to fputs only if the former returns zero.
13562
13563 2019-03-07 Tom Tromey <tom@tromey.com>
13564
13565 * symmisc.c (print_symbol_bcache_statistics): Update.
13566 (print_objfile_statistics): Update.
13567 * symfile.c (allocate_symtab): Update.
13568 * stabsread.c: Don't include bcache.h.
13569 * psymtab.h (struct psymbol_bcache): Don't declare.
13570 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13571 (psymbol_bcache_init, psymbol_bcache_free)
13572 (psymbol_bcache_get_bcache): Don't declare.
13573 * psymtab.c (struct psymbol_bcache): Remove.
13574 (psymtab_storage::psymtab_storage): Update.
13575 (psymtab_storage::~psymtab_storage): Update.
13576 (psymbol_bcache_init, psymbol_bcache_free)
13577 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13578 (add_psymbol_to_bcache): Update.
13579 (allocate_psymtab): Update.
13580 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13581 macro_cache>: No longer pointers.
13582 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13583 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13584 * macrotab.c (macro_bcache): Update.
13585 * macroexp.c: Don't include bcache.h.
13586 * gdbtypes.c (check_types_worklist): Update.
13587 (types_deeply_equal): Remove TRY/CATCH. Update.
13588 * elfread.c (elf_symtab_read): Update.
13589 * dwarf2read.c: Don't include bcache.h.
13590 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13591 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13592 (print_bcache_statistics, bcache_memory_used): Don't declare.
13593 (struct bcache): Move from bcache.c. Add constructor, destructor,
13594 methods. Rename all data members.
13595 * bcache.c (struct bcache): Move to bcache.h.
13596 (bcache::expand_hash_table): Rename from expand_hash_table.
13597 (bcache): Remove.
13598 (bcache::insert): Rename from bcache_full.
13599 (bcache::compare): Rename from bcache_compare.
13600 (bcache_xmalloc): Remove.
13601 (bcache::~bcache): Rename from bcache_xfree.
13602 (bcache::print_statistics): Rename from print_bcache_statistics.
13603 (bcache::memory_used): Rename from bcache_memory_used.
13604
13605 2019-03-07 Pedro Alves <palves@redhat.com>
13606
13607 * infrun.c (normal_stop): Also check for
13608 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13609
13610 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13611
13612 * f-lang.c (value_from_host_double): Moved to...
13613 * value.c (value_from_host_double): ...here.
13614 * value.h (value_from_host_double): Declare.
13615 * guile/scm-math.c (vlscm_convert_typed_number): Use
13616 value_from_host_double.
13617 (vlscm_convert_number): Likewise.
13618 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13619 * python/py-value.c (convert_value_from_python): Likewise.
13620
13621 2019-03-06 Tom Tromey <tom@tromey.com>
13622
13623 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13624
13625 2019-03-06 Tom Tromey <tom@tromey.com>
13626
13627 * utils.h (free_current_contents): Don't declare.
13628 * utils.c (free_current_contents): Remove.
13629
13630 2019-03-06 Tom Tromey <tom@tromey.com>
13631
13632 * top.c (quit_force): Update.
13633 * main.c (captured_command_loop): Update.
13634 * common/new-op.c (operator new): Update.
13635 * common/common-exceptions.c (struct catcher)
13636 <save_cleanup_chain>: Remove member.
13637 (exceptions_state_mc_init): Update.
13638 (exception_try_scope_entry): Return nullptr.
13639 (exception_try_scope_exit, exception_rethrow)
13640 (throw_exception_sjlj, throw_exception_cxx): Update.
13641 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13642 (all_cleanups, do_cleanups, discard_cleanups)
13643 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13644 (restore_cleanups, restore_final_cleanups): Don't declare.
13645 (do_final_cleanups): Remove parameter.
13646 * common/cleanups.c (cleanup_chain, make_cleanup)
13647 (make_cleanup_dtor, all_cleanups, do_cleanups)
13648 (discard_my_cleanups, discard_cleanups)
13649 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13650 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13651 (null_cleanup): Remove.
13652 (do_final_cleanups): Remove parameter.
13653
13654 2019-03-06 Tom Tromey <tom@tromey.com>
13655
13656 * remote.c (remote_target::remote_parse_stop_reply): Use
13657 unique_xmalloc_ptr.
13658
13659 2019-03-06 Tom Tromey <tom@tromey.com>
13660
13661 * stabsread.c (struct stabs_field_info): Rename from field_info.
13662 <list, fnlist>: Add initializers.
13663 <obstack>: New member.
13664 (read_member_functions, read_struct_fields, read_baseclasses):
13665 Allocate on obstack. Don't use cleanups.
13666 (read_one_struct_field, read_member_functions, read_struct_fields)
13667 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13668 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13669 (read_struct_type): Update.
13670
13671 2019-03-06 Tom Tromey <tom@tromey.com>
13672
13673 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13674 * common/filestuff.h (make_cleanup_close): Don't declare.
13675 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13676 Remove.
13677
13678 2019-03-06 Tom Tromey <tom@tromey.com>
13679
13680 * solib-aix.c: Use make_scope_exit.
13681
13682 2019-03-06 Tom Tromey <tom@tromey.com>
13683
13684 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13685 Use make_scope_exit.
13686
13687 2019-03-06 Tom Tromey <tom@tromey.com>
13688
13689 * solib-svr4.c (disable_probes_interface): Remove parameter.
13690 (svr4_handle_solib_event): Use make_scope_exit.
13691
13692 2019-03-06 Tom Tromey <tom@tromey.com>
13693
13694 * remote.c (struct stop_reply_deleter): Remove.
13695 (stop_reply_up): Update.
13696 (struct stop_reply): Derive from notif_event. Don't typedef.
13697 <regcache>: Now a std::vector.
13698 (stop_reply_xfree): Remove.
13699 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13700 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13701 (remote_target::discard_pending_stop_replies): Use delete.
13702 (remote_target::remote_parse_stop_reply): Update.
13703 (remote_target::process_stop_reply): Update.
13704 * remote-notif.h (struct notif_event): Add virtual destructor.
13705 Remove "dtr" member.
13706 (struct notif_client) <alloc_event>: Return a unique_ptr.
13707 (notif_event_xfree): Don't declare.
13708 (notif_event_up): New typedef.
13709 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13710 (notif_event_xfree, do_notif_event_xfree): Remove.
13711 (remote_notif_state_xfree): Update.
13712
13713 2019-03-06 Tom Tromey <tom@tromey.com>
13714
13715 * infrun.c (displaced_step_clear_cleanup): Now a
13716 forward_scope_exit type.
13717 (displaced_step_prepare_throw): Update.
13718 (displaced_step_fixup): Update.
13719
13720 2019-03-06 Tom Tromey <tom@tromey.com>
13721
13722 * inferior.h (class inferior): Update comment.
13723 * gdbthread.h (class thread_info): Update comment.
13724
13725 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13726 Tom Tromey <tom@tromey.com>
13727
13728 * stabsread.h (struct stab_section_list): Remove.
13729 (coffstab_build_psymtabs): Update.
13730 * dbxread.c (symbuf_sections): Now a std::vector.
13731 (sect_idx): New global.
13732 (fill_symbuf): Update.
13733 (coffstab_build_psymtabs): Change type of stabsects parameter.
13734 Update.
13735 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13736 std::vector.
13737 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13738 (coff_locate_sections): Update.
13739 (coff_symfile_read): Remove cleanups. Update.
13740 (init_stringtab): Add storage parameter.
13741 (free_stringtab, free_stringtab_cleanup): Remove.
13742 (init_lineno): Add storage parameter.
13743 (free_linetab, free_linetab_cleanup): Remove.
13744
13745 2019-03-06 Pedro Alves <palves@redhat.com>
13746
13747 * linux-fork.c (fork_info::clobber_regs): Delete.
13748 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13749 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13750 comment. Adjust.
13751 (scoped_switch_fork_info::scoped_switch_fork_info)
13752 (checkpoint_command, linux_fork_context): Adjust
13753 fork_save_infrun_state calls.
13754
13755 2019-03-06 Pedro Alves <palves@redhat.com>
13756
13757 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13758 (inf_has_multiple_threads): Return 'bool' and rewrite using
13759 inferior_info::threads().
13760
13761 2019-03-06 Pedro Alves <palves@redhat.com>
13762
13763 * linux-fork.c: Include <list>.
13764 (fork_list): Now a std::list instance.
13765 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13766 (forks_exist_p, find_last_fork): Adjust.
13767 (new_fork): Delete.
13768 (one_fork_p): New.
13769 (add_fork): Adjust.
13770 (free_fork): Delete, folded into fork_info::~fork_info().
13771 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13772 Adjust.
13773 (init_fork_list): Delete.
13774 (linux_fork_killall, linux_fork_mourn_inferior)
13775 (linux_fork_detach, info_checkpoints_command): Adjust.
13776 (_initialize_linux_fork): No longer call init_fork_list.
13777
13778 2019-03-06 Pedro Alves <palves@redhat.com>
13779
13780 * linux-fork.c (new_fork): New, split out of ...
13781 (add_fork): ... this. Return void. Move "first fork" special
13782 case from here, to ...
13783 (checkpoint_command): ... here.
13784 * linux-linux.h (add_fork): Return void.
13785
13786 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13787
13788 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13789
13790 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13791 Chris January <chris.january@arm.com>
13792 David Lecomber <david.lecomber@arm.com>
13793
13794 * f-exp.y: New token, UNOP_INTRINSIC.
13795 (exp): New pattern using UNOP_INTRINSIC token.
13796 (f77_keywords): Add 'abs' keyword.
13797 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13798 (value_from_host_double): New function.
13799 (evaluate_subexp_f): Support UNOP_ABS.
13800
13801 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13802
13803 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13804 types.
13805
13806 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13807
13808 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13809 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13810 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13811
13812 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13813
13814 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13815
13816 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13817 Chris January <chris.january@arm.com>
13818
13819 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13820 * f-exp.y: Define 'KIND' token.
13821 (exp): New pattern for KIND expressions.
13822 (ptype): Handle types with a kind extension.
13823 (direct_abs_decl): Extend to spot kind extensions.
13824 (f77_keywords): Add 'kind' to the list.
13825 (push_kind_type): New function.
13826 (convert_to_kind_type): New function.
13827 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13828 * parse.c (operator_length_standard): Likewise.
13829 * parser-defs.h (enum type_pieces): Add tp_kind.
13830 * std-operator.def: Add UNOP_KIND.
13831
13832 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13833
13834 * f-exp.y (f_parse): Set yydebug.
13835
13836 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13837
13838 * f-lang.c (evaluate_subexp_f): New function.
13839 (exp_descriptor_f): New global.
13840 (f_language_defn): Use exp_descriptor_f instead of
13841 exp_descriptor_standard.
13842
13843 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13844
13845 * f-exp.y (struct token): Add comments.
13846 (dot_ops): Remove uppercase versions and the end marker.
13847 (f77_keywords): Likewise.
13848 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13849 entries in the dot_ops array are case insensitive, and use
13850 strncasecmp to compare strings. Also some whitespace cleanup in
13851 this area. Similar for the f77_keywords array, except entries in
13852 this list might be case sensitive.
13853
13854 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13855
13856 * f-exp.y (struct f77_boolean_val): Add comments.
13857 (boolean_values): Remove uppercase versions, and end marker.
13858 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13859 and use strncasecmp to achieve case insensitivity. Additionally,
13860 perform whitespace cleanup around this code.
13861
13862 2019-03-06 Tom Tromey <tromey@adacore.com>
13863
13864 * remote-sim.c (gdbsim_target_open): Use result of
13865 gdb_argv::release.
13866
13867 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13868 Dirk Schubert <dirk.schubert@arm.com>
13869 Chris January <chris.january@arm.com>
13870
13871 * eval.c (evaluate_subexp_standard): Call Fortran argument
13872 wrapping logic.
13873 * f-lang.c (struct value): A value which can be passed into a
13874 Fortran function call.
13875 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13876 where appropriate.
13877 (struct type): Value ready for a Fortran function call.
13878 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13879 is needed.
13880 * f-lang.h (fortran_argument_convert): Declaration.
13881 (fortran_preserve_arg_pointer): Declaration.
13882 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13883
13884 2019-03-05 Tom Tromey <tromey@adacore.com>
13885
13886 * python/py-prettyprint.c (print_string_repr): Remove #if.
13887 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13888
13889 2019-03-05 Tom Tromey <tromey@adacore.com>
13890
13891 * target.c (the_dummy_target): Move later. Change type to
13892 "dummy_target".
13893 (initialize_targets): Don't initialize the_dummy_target.
13894
13895 2019-03-05 Tom Tromey <tromey@adacore.com>
13896
13897 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13898 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13899
13900 2019-03-05 Tom Tromey <tromey@adacore.com>
13901
13902 * windows-nat.c (windows_nat_target::attach)
13903 (windows_nat_target::detach): Don't call gdb_flush.
13904 * valprint.c (generic_val_print, val_print, val_print_string):
13905 Don't call gdb_flush.
13906 * utils.c (defaulted_query): Don't call gdb_flush.
13907 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13908 * target.c (target_announce_detach): Don't call gdb_flush.
13909 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13910 * remote.c (extended_remote_target::attach): Don't call
13911 gdb_flush.
13912 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13913 * printcmd.c (do_examine): Don't call gdb_flush.
13914 (info_display_command): Don't call gdb_flush.
13915 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13916 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13917 * memattr.c (info_mem_command): Don't call gdb_flush.
13918 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13919 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13920 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13921 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13922 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13923 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13924 (gnu_nat_target::detach): Don't call gdb_flush.
13925 * f-valprint.c (f_val_print): Don't call gdb_flush.
13926 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13927 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13928 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13929 gdb_flush.
13930 * c-valprint.c (c_val_print): Don't call gdb_flush.
13931 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13932
13933 2019-03-05 Tom Tromey <tromey@adacore.com>
13934
13935 * varobj.c (update_dynamic_varobj_children): Update.
13936 (install_default_visualizer): Use reset, not release.
13937 * value.c (set_internalvar): Update.
13938 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13939 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13940 ATTRIBUTE_UNUSED_RESULT.
13941
13942 2019-03-05 Tom Tromey <tromey@adacore.com>
13943
13944 * remote.c (class scoped_remote_fd) <release>: Add
13945 ATTRIBUTE_UNUSED_RESULT.
13946
13947 2019-03-05 Tom Tromey <tromey@adacore.com>
13948
13949 * macroexp.c (struct macro_buffer) <release>: Add
13950 ATTRIBUTE_UNUSED_RESULT.
13951
13952 2019-03-05 Tom Tromey <tromey@adacore.com>
13953
13954 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13955 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13956 ATTRIBUTE_UNUSED_RESULT.
13957
13958 2019-03-05 Tom Tromey <tromey@adacore.com>
13959
13960 * common/scoped_fd.h (class scoped_fd) <release>: Add
13961 ATTRIBUTE_UNUSED_RESULT.
13962
13963 2019-03-05 Tom Tromey <tromey@adacore.com>
13964
13965 * parser-defs.h (struct parser_state) <release>: Add
13966 ATTRIBUTE_UNUSED_RESULT.
13967
13968 2019-03-05 Tom Tromey <tromey@adacore.com>
13969
13970 * utils.h (class gdb_argv) <release>: Add
13971 ATTRIBUTE_UNUSED_RESULT.
13972 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13973
13974 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13975
13976 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13977 for-loop range, to avoid compiler warnings.
13978
13979 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13980 avoid compiler warnings about unused variables.
13981
13982 * NEWS: Mention end of support for native debugging on MS-Windows
13983 before XP.
13984
13985 PR gdb/24292
13986 * common/netstuff.c:
13987 * gdbserver/gdbreplay.c
13988 * gdbserver/remote-utils.c:
13989 * ser-tcp.c:
13990 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13991 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13992 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13993 'getaddrinfo' and 'freeaddrinfo' were not available before
13994 Windows XP, and mingw.org's MinGW headers by default define
13995 _WIN32_WINNT to 0x500.
13996
13997 2019-03-01 Gary Benson <gbenson@redhat.com>
13998
13999 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14000
14001 2019-02-28 Brian Vandenberg <phantall@gmail.com>
14002 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14003
14004 PR gdb/8527
14005 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14006 set_sigint_trap, clear_sigint_trap.
14007
14008 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14009
14010 * target.c (target_detach): Clear the regcache and the
14011 frame cache.
14012
14013 2019-02-27 Pedro Alves <palves@redhat.com>
14014
14015 * utils.c (set_screen_size): When we cap the height/width sizes,
14016 tweak the corresponding command variable to show "unlimited":
14017
14018 2019-02-27 Saagar Jha <saagar@saagarjha.com>
14019 Pedro Alves <palves@redhat.com>
14020
14021 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14022 before calling rl_set_screen_size.
14023
14024 2019-02-27 Tom Tromey <tromey@adacore.com>
14025
14026 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14027 define.
14028 * python/py-value.c: Remove Python 2.4 workaround.
14029 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14030 workaround.
14031 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14032 Python 2.4 workaround.
14033 * python/python-internal.h: Remove Python 2.4 comment.
14034 (Py_ssize_t): Don't define.
14035 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14036 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14037 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14038 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14039 * python/python.c (do_start_initialization): Remove Python 2.4
14040 workaround.
14041 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14042 (print_children): Remove Python 2.4 workaround.
14043 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14044 workaround.
14045 (CHARBUFFERPROC_NAME): Remove.
14046 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14047 Python 2.4 workaround.
14048
14049 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14050
14051 * NEWS: Note minimum Python version.
14052
14053 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14054
14055 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14056 code from these functions. Remove corresponding ifdefs. Use
14057 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14058 Remove gotos and target of gotos.
14059 (infpy_search_memory): Likewise.
14060
14061 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14062
14063 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14064 (hppa_gdbarch_init): Don't register deleted functions with
14065 gdbarch.
14066
14067 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14068
14069 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14070 (h8300_unwind_sp): Delete.
14071 (h8300_dummy_id): Delete.
14072 (h8300_gdbarch_init): Don't register deleted functions with
14073 gdbarch.
14074
14075 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14076
14077 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14078 (ft32_unwind_pc): Delete.
14079 (ft32_unwind_sp): Delete.
14080 (ft32_gdbarch_init): Don't register deleted functions with
14081 gdbarch.
14082
14083 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14084
14085 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14086 (frv_unwind_pc): Delete.
14087 (frv_unwind_sp): Delete.
14088 (frv_gdbarch_init): Don't register deleted functions with
14089 gdbarch.
14090
14091 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14092
14093 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14094 (riscv_unwind_pc): Delete.
14095 (riscv_unwind_sp): Delete.
14096 (riscv_gdbarch_init): Don't register deleted functions with
14097 gdbarch.
14098
14099 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14100
14101 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14102 (csky_unwind_pc): Delete.
14103 (csky_unwind_sp): Delete.
14104 (csky_gdbarch_init): Don't register deleted functions with
14105 gdbarch.
14106
14107 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14108
14109 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14110 (cris_unwind_pc): Delete.
14111 (cris_unwind_sp): Delete.
14112 (cris_gdbarch_init): Don't register deleted functions with
14113 gdbarch.
14114
14115 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14116
14117 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14118 (bfin_unwind_pc): Delete.
14119 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14120
14121 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14122
14123 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14124 (arm_unwind_pc): Delete.
14125 (arm_unwind_sp): Delete.
14126 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14127
14128 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14129
14130 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14131 (arc_unwind_pc): Delete.
14132 (arc_unwind_sp): Delete.
14133 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14134
14135 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14136
14137 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14138 (alpha_unwind_pc): Delete.
14139 (alpha_gdbarch_init): Don't register deleted functions with
14140 gdbarch.
14141
14142 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14143
14144 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14145 (aarch64_unwind_pc): Delete.
14146 (aarch64_unwind_sp): Delete.
14147 (aarch64_gdbarch_init): Don't register deleted functions with
14148 gdbarch.
14149
14150 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14151
14152 * gdbtypes.c (type_align): Don't consider static members when
14153 computing structure alignment.
14154
14155 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14156
14157 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14158 return 0 for other types.
14159 * arch-utils.c (default_type_align): Always return 0.
14160 * gdbarch.h: Regenerate.
14161 * gdbarch.sh (type_align): Extend comment.
14162 * gdbtypes.c (type_align): Add additional comments, always call
14163 gdbarch_type_align before applying the default rules.
14164 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14165 generic code will then apply a suitable default.
14166 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14167 types, return 0 for other types.
14168
14169 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14170
14171 * NEWS: Create a new section for the next release branch.
14172 Rename the section of the current branch, now that it has
14173 been cut.
14174
14175 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14176
14177 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14178 * version.in: Bump version to 8.3.50.DATE-git.
14179
14180 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14181
14182 * aix-thread.c (ptid_cmp): Remove unused variable.
14183 (get_signaled_thread): Likewise.
14184 (store_regs_user_thread): Likewise.
14185 (store_regs_kernel_thread): Likewise.
14186 (fetch_regs_kernel_thread): Remove shadowed variable.
14187
14188 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14189
14190 * features/riscv/32bit-cpu.xml: Add register numbers.
14191 * features/riscv/32bit-fpu.c: Regenerate.
14192 * features/riscv/32bit-fpu.xml: Add register numbers.
14193 * features/riscv/64bit-cpu.xml: Add register numbers.
14194 * features/riscv/64bit-fpu.c: Regenerate.
14195 * features/riscv/64bit-fpu.xml: Add register numbers.
14196
14197 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14198
14199 * NEWS: Mention two argument form of gdb.Value constructor.
14200 * python/py-value.c (convert_buffer_and_type_to_value): New
14201 function.
14202 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14203 Add support for handling an optional second argument. Call
14204 convert_buffer_and_type_to_value as appropriate.
14205 * python/python-internal.h (Py_buffer_deleter): New struct.
14206 (Py_buffer_up): New typedef.
14207
14208 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14209
14210 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14211 instead of releasing ownership.
14212
14213 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14214
14215 * dwarf2read.c (open_and_init_dwp_file): Call
14216 elf_numsections instead of bfd_count_sections to initialize
14217 dwp_file->num_sections.
14218
14219 2019-02-25 Tom Tromey <tromey@adacore.com>
14220
14221 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14222
14223 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14224
14225 * gcore.in: Add '--readnever' option when invoking GDB.
14226
14227 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14228
14229 * MAINTAINERS: Update my email address.
14230
14231 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14232
14233 * build-id.c (build_id_to_debug_bfd_1): New function.
14234 (build_id_to_debug_bfd): Look for separate debug file in
14235 sysroot.
14236
14237 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14238
14239 * gdbarch.sh: Update the copyright year range that is placed into
14240 generated files.
14241
14242 2019-02-22 Keith Seitz <keiths@redhat.com>
14243
14244 PR symtab/23853
14245 * linespec.c (create_sals_line_offset): Search for the default
14246 symtab's filename instead of its fullname.
14247
14248 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14249
14250 * NEWS: Update style defaults.
14251
14252 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14253
14254 * main.c (captured_main_1): Disable styling in batch mode.
14255
14256 2019-02-20 Tom Tromey <tom@tromey.com>
14257
14258 * symtab.c (symtab_symbol_info): Fix typos.
14259
14260 2019-02-20 Tom Tromey <tromey@adacore.com>
14261
14262 * findcmd.c (_initialize_mem_search): Use upper case for
14263 metasyntactic variables.
14264
14265 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14266
14267 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14268 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14269
14270 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14271
14272 * top.h (source_file_name): Change to std::string.
14273 * top.c (source_file_name): Likewise.
14274 (command_line_input): Adjust.
14275 * cli/cli-script.c (script_from_file): Adjust.
14276
14277 2019-02-19 Tom Tromey <tromey@adacore.com>
14278
14279 * ravenscar-thread.c
14280 (ravenscar_thread_target::update_thread_list): Don't call
14281 ada_build_task_list.
14282 * ada-lang.h (ada_build_task_list): Don't declare.
14283 * ada-tasks.c (struct ada_tasks_inferior_data)
14284 <task_list_valid_p>: Now bool.
14285 (read_known_tasks, ada_task_list_changed)
14286 (ada_tasks_invalidate_inferior_data): Update.
14287 (read_known_tasks_array): Return bool.
14288 (read_known_tasks_list): Likewise.
14289 (read_known_tasks): Return void.
14290 (ada_build_task_list): Now static.
14291
14292 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14293
14294 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14295 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14296
14297 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14298
14299 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14300 variant for ada_tasks_pspace_data_handle and
14301 ada_tasks_inferior_data_handle.
14302 (ada_tasks_pspace_data_cleanup): New function.
14303 (ada_tasks_inferior_data_cleanup): New function.
14304
14305 2019-02-17 Tom Tromey <tom@tromey.com>
14306
14307 * macrotab.h (macro_source_fullname): Return a std::string.
14308 * macrotab.c (macro_include, check_for_redefinition)
14309 (macro_undef, macro_lookup_definition, foreach_macro)
14310 (foreach_macro_in_scope): Update.
14311 (macro_source_fullname): Return a std::string.
14312 * macrocmd.c (show_pp_source_pos): Update.
14313
14314 2019-02-17 Tom Tromey <tom@tromey.com>
14315
14316 * macrocmd.c (show_pp_source_pos): Style the file names.
14317
14318 2019-02-17 Tom Tromey <tom@tromey.com>
14319
14320 PR tui/24197:
14321 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14322
14323 2019-02-17 Tom Tromey <tom@tromey.com>
14324
14325 * ada-lang.c (user_select_syms): Use filtered printing.
14326 * utils.c (wrap_style): New global.
14327 (desired_style): Remove.
14328 (emit_style_escape): Add stream parameter.
14329 (set_output_style, reset_terminal_style, prompt_for_continue):
14330 Update.
14331 (flush_wrap_buffer): Only flush gdb_stdout.
14332 (wrap_here): Set wrap_style.
14333 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14334 treat escape sequences as a character. Change when wrap buffer is
14335 flushed.
14336 (fputs_styled): Do not set the output style when the default is
14337 requested.
14338 * ui-style.h (struct ui_file_style) <is_default>: New method.
14339 * source.c (print_source_lines_base): Emit escape sequences in one
14340 piece.
14341
14342 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14343
14344 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14345 integers and enumeration types.
14346
14347 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14348
14349 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14350 instead of lookup_symbol_in_language
14351 (do_exact_match): New function.
14352 (ada_get_symbol_name_matcher): Return do_exact_match when
14353 doing a verbatim match.
14354
14355 2019-02-15 Tom Tromey <tromey@adacore.com>
14356
14357 * ravenscar-thread.c (ravenscar_thread_target::resume)
14358 (ravenscar_thread_target::wait): Special case wildcard requests.
14359
14360 2019-02-15 Tom Tromey <tromey@adacore.com>
14361
14362 * ravenscar-thread.c (base_ptid): Remove.
14363 (struct ravenscar_thread_target) <close>: New method.
14364 <m_base_ptid>: New member.
14365 <update_inferior_ptid, active_task, task_is_currently_active,
14366 runtime_initialized>: Declare methods.
14367 <ravenscar_thread_target>: Add constructor.
14368 (ravenscar_thread_target::task_is_currently_active)
14369 (ravenscar_thread_target::update_inferior_ptid)
14370 (ravenscar_runtime_initialized): Rename. Now methods.
14371 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14372 (ravenscar_thread_target::update_thread_list): Update.
14373 (ravenscar_thread_target::active_task): Now method.
14374 (ravenscar_thread_target::store_registers)
14375 (ravenscar_thread_target::prepare_to_store)
14376 (ravenscar_thread_target::prepare_to_store)
14377 (ravenscar_thread_target::mourn_inferior): Update.
14378 (ravenscar_inferior_created): Use "new" to create target.
14379 (ravenscar_thread_target::get_ada_task_ptid): Update.
14380 (_initialize_ravenscar): Don't initialize base_ptid.
14381 (ravenscar_ops): Remove global.
14382
14383 2019-02-15 Tom Tromey <tromey@adacore.com>
14384
14385 * target.h (push_target): Declare new overload.
14386 * target.c (push_target): New overload, taking an rvalue reference.
14387 * remote.c (remote_target::open_1): Use push_target overload.
14388 * corelow.c (core_target_open): Use push_target overload.
14389
14390 2019-02-15 Tom Tromey <tromey@adacore.com>
14391
14392 * ravenscar-thread.c (is_ravenscar_task)
14393 (ravenscar_task_is_currently_active): Return bool.
14394 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14395 (_initialize_ravenscar): Remove "(void)".
14396 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14397 Return bool.
14398
14399 2019-02-15 Tom Tromey <tromey@adacore.com>
14400
14401 * ravenscar-thread.c (ravenscar_runtime_initializer)
14402 (has_ravenscar_runtime, get_running_thread_id)
14403 (ravenscar_thread_target::resume): Fix indentation.
14404
14405 2019-02-15 Tom Tromey <tromey@adacore.com>
14406
14407 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14408 from ravenscar_arch_ops.
14409 (sparc_ravenscar_ops::fetch_registers)
14410 (sparc_ravenscar_ops::store_registers): Now methods.
14411 (sparc_ravenscar_prepare_to_store): Remove.
14412 (sparc_ravenscar_ops): Redefine.
14413 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14414 methods and destructor. Remove members.
14415 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14416 (ravenscar_thread_target::store_registers)
14417 (ravenscar_thread_target::prepare_to_store): Update.
14418 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14419 Remove.
14420 (struct ppc_ravenscar_powerpc_ops): Derive from
14421 ravenscar_arch_ops.
14422 (ppc_ravenscar_powerpc_ops::fetch_registers)
14423 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14424 (ppc_ravenscar_powerpc_ops): Redefine.
14425 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14426 (ppc_ravenscar_e500_ops::fetch_registers)
14427 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14428 (ppc_ravenscar_e500_ops): Redefine.
14429 * aarch64-ravenscar-thread.c
14430 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14431 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14432 (aarch64_ravenscar_fetch_registers)
14433 (aarch64_ravenscar_store_registers): Now methods.
14434 (aarch64_ravenscar_ops): Redefine.
14435
14436 2019-02-15 Tom Tromey <tromey@adacore.com>
14437
14438 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14439 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14440 (ravenscar_thread_target::stopped_by_watchpoint)
14441 (ravenscar_thread_target::stopped_data_address)
14442 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14443
14444 2019-02-15 Tom Tromey <tromey@adacore.com>
14445
14446 * ravenscar-thread.c: Fix some typos.
14447
14448 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14449 Tom Tromey <tromey@adacore.com>
14450
14451 * ada-lang.c (ada_exception_sal): Change addr_string to a
14452 std::string.
14453 (create_ada_exception_catchpoint): Update.
14454
14455 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14456 Tom Tromey <tromey@adacore.com>
14457
14458 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14459 (bp_location_ops): Remove.
14460 (base_breakpoint_allocate_location): Update.
14461 (free_bp_location): Update.
14462 * ada-lang.c (class ada_catchpoint_location)
14463 <ada_catchpoint_location>: Remove ops parameter.
14464 (ada_catchpoint_location_dtor): Remove.
14465 (ada_catchpoint_location_ops): Remove.
14466 (allocate_location_exception): Update.
14467 * breakpoint.h (struct bp_location_ops): Remove.
14468 (class bp_location) <bp_location>: Remove bp_location_ops
14469 parameter.
14470 <~bp_location>: Add destructor.
14471 <ops>: Remove.
14472
14473 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14474 Pedro Alves <palves@redhat.com>
14475
14476 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14477 'PATH_MAX'.
14478
14479 2019-02-14 David Michael <fedora.dm0@gmail.com>
14480 Samuel Thibault <samuel.thibault@gnu.org>
14481 Thomas Schwinge <thomas@codesourcery.com>
14482
14483 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14484 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14485
14486 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14487
14488 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14489 (check_empty): Use "const char *".
14490
14491 * gnu-nat.c (gnu_nat_target::detach): Instead of
14492 'detach_inferior (pid)' call
14493 'detach_inferior (find_inferior_pid (pid))'.
14494
14495 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14496 'nat/fork-inferior.o'.
14497 * gnu-nat.c: #include "nat/fork-inferior.h".
14498
14499 * gnu-nat.c (gnu_nat_target::detach): Instead of
14500 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14501 * gnu-nat.h: #include "inf-child.h".
14502 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14503 'i386_gnu_nat_target::fetch_registers'.
14504 (gnu_store_registers): Rename/move to
14505 'i386_gnu_nat_target::store_registers'.
14506
14507 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14508 * gnu-nat.h (mach_thread_info): New function.
14509 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14510
14511 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14512
14513 2019-02-14 Frederic Konrad <konrad@adacore.com>
14514
14515 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14516
14517 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14518
14519 * windows-nat.c (windows_add_thread): Add new parameter
14520 "main_thread_p" with default value set to false. Update
14521 function documentation as well as all callers.
14522 (windows_delete_thread): Likewise.
14523 (fake_create_process): Update call to windows_add_thread.
14524 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14525 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14526 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14527 call to windows_delete_thread.
14528
14529 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14530
14531 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14532
14533 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14534
14535 * symfile.c (find_separate_debug_file): Use canonical path of
14536 sysroot with child_path instead of gdb_sysroot if it is valid.
14537
14538 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14539
14540 * symfile.c (find_separate_debug_file): Use child_path to
14541 determine if an object file is under a sysroot.
14542
14543 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14544
14545 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14546 unittests/child-path-selftests.c.
14547 * common/pathstuff.c (child_path): New function.
14548 * common/pathstuff.h (child_path): New prototype.
14549 * unittests/child-path-selftests.c: New file.
14550
14551 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14552
14553 * symfile.c (find_separate_debug_file): Look for separate debug
14554 files in debug directories under the sysroot.
14555
14556 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14557
14558 * symtab.h (struct minimal_symbol data_p): New const method.
14559 (struct minimal_symbol text_p): Likewise.
14560 * symtab.c (output_source_filename): Use file name style
14561 to print file name.
14562 (print_symbol_info): Likewise.
14563 (print_msymbol_info): Use address style to print addresses.
14564 Use function name style to print executable text symbols.
14565 (expand_symtab_containing_pc): Use data_p.
14566 (find_pc_sect_compunit_symtab): Likewise.
14567
14568 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14569
14570 * breakpoint.c (describe_other_breakpoints): Use address style
14571 to print addresses.
14572 (say_where): Likewise.
14573
14574 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14575
14576 * ada-typeprint.c (print_func_type): Print function name
14577 style to print function name.
14578 * c-typeprint.c (c_print_type_1): Likewise.
14579
14580 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14581
14582 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14583 for execve.
14584
14585 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14586
14587 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14588 type_stack.
14589
14590 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14591
14592 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14593 TYPE_CODE_REF types.
14594
14595 2019-02-08 Jim Wilson <jimw@sifive.com>
14596
14597 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14598 (riscv_linux_fregset): New.
14599 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14600
14601 2019-02-07 Tom Tromey <tom@tromey.com>
14602
14603 * thread.c (thread_cancel_execution_command): Update.
14604 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14605 methods.
14606 (struct thread_fsm_ops): Remove.
14607 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14608 (thread_fsm_should_stop, thread_fsm_return_value)
14609 (thread_fsm_set_finished, thread_fsm_finished_p)
14610 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14611 Don't declare.
14612 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14613 * infrun.c (clear_proceed_status_thread)
14614 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14615 (print_stop_event): Update.
14616 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14617 Add constructor.
14618 (step_command_fsm_ops): Remove.
14619 (new_step_command_fsm): Remove.
14620 (step_1): Update.
14621 (step_command_fsm::should_stop): Rename from
14622 step_command_fsm_should_stop.
14623 (step_command_fsm::clean_up): Rename from
14624 step_command_fsm_clean_up.
14625 (step_command_fsm::do_async_reply_reason): Rename from
14626 step_command_fsm_async_reply_reason.
14627 (struct until_next_fsm): Inherit from thread_fsm. Add
14628 constructor.
14629 (until_next_fsm_ops): Remove.
14630 (new_until_next_fsm): Remove.
14631 (until_next_fsm::should_stop): Rename from
14632 until_next_fsm_should_stop.
14633 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14634 (until_next_fsm::do_async_reply_reason): Rename from
14635 until_next_fsm_async_reply_reason.
14636 (struct finish_command_fsm): Inherit from thread_fsm. Add
14637 constructor. Change type of breakpoint.
14638 (finish_command_fsm_ops): Remove.
14639 (new_finish_command_fsm): Remove.
14640 (finish_command_fsm::should_stop): Rename from
14641 finish_command_fsm_should_stop.
14642 (finish_command_fsm::clean_up): Rename from
14643 finish_command_fsm_clean_up.
14644 (finish_command_fsm::return_value): Rename from
14645 finish_command_fsm_return_value.
14646 (finish_command_fsm::do_async_reply_reason): Rename from
14647 finish_command_fsm_async_reply_reason.
14648 (finish_command): Update.
14649 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14650 Add constructor.
14651 (call_thread_fsm_ops): Remove.
14652 (call_thread_fsm::call_thread_fsm): Rename from
14653 new_call_thread_fsm.
14654 (call_thread_fsm::should_stop): Rename from
14655 call_thread_fsm_should_stop.
14656 (call_thread_fsm::should_notify_stop): Rename from
14657 call_thread_fsm_should_notify_stop.
14658 (run_inferior_call, call_function_by_hand_dummy): Update.
14659 * cli/cli-interp.c (should_print_stop_to_console): Update.
14660 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14661 Add constructor. Change type of location_breakpoint,
14662 caller_breakpoint.
14663 (until_break_fsm_ops): Remove.
14664 (new_until_break_fsm): Remove.
14665 (until_break_fsm::should_stop): Rename from
14666 until_break_fsm_should_stop.
14667 (until_break_fsm::clean_up): Rename from
14668 until_break_fsm_clean_up.
14669 (until_break_fsm::do_async_reply_reason): Rename from
14670 until_break_fsm_async_reply_reason.
14671 (until_break_command): Update.
14672 * thread-fsm.c: Remove.
14673 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14674
14675 2019-02-07 Tom Tromey <tom@tromey.com>
14676
14677 * yy-remap.h: Add include guard.
14678 * xtensa-tdep.h: Add include guard.
14679 * xcoffread.h: Rename include guard.
14680 * varobj-iter.h: Add include guard.
14681 * tui/tui.h: Rename include guard.
14682 * tui/tui-winsource.h: Rename include guard.
14683 * tui/tui-wingeneral.h: Rename include guard.
14684 * tui/tui-windata.h: Rename include guard.
14685 * tui/tui-win.h: Rename include guard.
14686 * tui/tui-stack.h: Rename include guard.
14687 * tui/tui-source.h: Rename include guard.
14688 * tui/tui-regs.h: Rename include guard.
14689 * tui/tui-out.h: Rename include guard.
14690 * tui/tui-layout.h: Rename include guard.
14691 * tui/tui-io.h: Rename include guard.
14692 * tui/tui-hooks.h: Rename include guard.
14693 * tui/tui-file.h: Rename include guard.
14694 * tui/tui-disasm.h: Rename include guard.
14695 * tui/tui-data.h: Rename include guard.
14696 * tui/tui-command.h: Rename include guard.
14697 * tic6x-tdep.h: Add include guard.
14698 * target/waitstatus.h: Rename include guard.
14699 * target/wait.h: Rename include guard.
14700 * target/target.h: Rename include guard.
14701 * target/resume.h: Rename include guard.
14702 * target-float.h: Rename include guard.
14703 * stabsread.h: Add include guard.
14704 * rs6000-tdep.h: Add include guard.
14705 * riscv-fbsd-tdep.h: Add include guard.
14706 * regformats/regdef.h: Rename include guard.
14707 * record.h: Rename include guard.
14708 * python/python.h: Rename include guard.
14709 * python/python-internal.h: Rename include guard.
14710 * python/py-stopevent.h: Rename include guard.
14711 * python/py-ref.h: Rename include guard.
14712 * python/py-record.h: Rename include guard.
14713 * python/py-record-full.h: Rename include guard.
14714 * python/py-record-btrace.h: Rename include guard.
14715 * python/py-instruction.h: Rename include guard.
14716 * python/py-events.h: Rename include guard.
14717 * python/py-event.h: Rename include guard.
14718 * procfs.h: Add include guard.
14719 * proc-utils.h: Add include guard.
14720 * p-lang.h: Add include guard.
14721 * or1k-tdep.h: Rename include guard.
14722 * observable.h: Rename include guard.
14723 * nto-tdep.h: Rename include guard.
14724 * nat/x86-linux.h: Rename include guard.
14725 * nat/x86-linux-dregs.h: Rename include guard.
14726 * nat/x86-gcc-cpuid.h: Add include guard.
14727 * nat/x86-dregs.h: Rename include guard.
14728 * nat/x86-cpuid.h: Rename include guard.
14729 * nat/ppc-linux.h: Rename include guard.
14730 * nat/mips-linux-watch.h: Rename include guard.
14731 * nat/linux-waitpid.h: Rename include guard.
14732 * nat/linux-ptrace.h: Rename include guard.
14733 * nat/linux-procfs.h: Rename include guard.
14734 * nat/linux-osdata.h: Rename include guard.
14735 * nat/linux-nat.h: Rename include guard.
14736 * nat/linux-namespaces.h: Rename include guard.
14737 * nat/linux-btrace.h: Rename include guard.
14738 * nat/glibc_thread_db.h: Rename include guard.
14739 * nat/gdb_thread_db.h: Rename include guard.
14740 * nat/gdb_ptrace.h: Rename include guard.
14741 * nat/fork-inferior.h: Rename include guard.
14742 * nat/amd64-linux-siginfo.h: Rename include guard.
14743 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14744 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14745 * nat/aarch64-linux.h: Rename include guard.
14746 * nat/aarch64-linux-hw-point.h: Rename include guard.
14747 * mn10300-tdep.h: Add include guard.
14748 * mips-linux-tdep.h: Add include guard.
14749 * mi/mi-parse.h: Rename include guard.
14750 * mi/mi-out.h: Rename include guard.
14751 * mi/mi-main.h: Rename include guard.
14752 * mi/mi-interp.h: Rename include guard.
14753 * mi/mi-getopt.h: Rename include guard.
14754 * mi/mi-console.h: Rename include guard.
14755 * mi/mi-common.h: Rename include guard.
14756 * mi/mi-cmds.h: Rename include guard.
14757 * mi/mi-cmd-break.h: Rename include guard.
14758 * m2-lang.h: Add include guard.
14759 * location.h: Rename include guard.
14760 * linux-record.h: Rename include guard.
14761 * linux-nat.h: Add include guard.
14762 * linux-fork.h: Add include guard.
14763 * i386-darwin-tdep.h: Rename include guard.
14764 * hppa-linux-offsets.h: Add include guard.
14765 * guile/guile.h: Rename include guard.
14766 * guile/guile-internal.h: Rename include guard.
14767 * gnu-nat.h: Rename include guard.
14768 * gdb-stabs.h: Rename include guard.
14769 * frv-tdep.h: Add include guard.
14770 * f-lang.h: Add include guard.
14771 * event-loop.h: Add include guard.
14772 * darwin-nat.h: Rename include guard.
14773 * cp-abi.h: Rename include guard.
14774 * config/sparc/nm-sol2.h: Rename include guard.
14775 * config/nm-nto.h: Rename include guard.
14776 * config/nm-linux.h: Add include guard.
14777 * config/i386/nm-i386gnu.h: Rename include guard.
14778 * config/djgpp/nl_types.h: Rename include guard.
14779 * config/djgpp/langinfo.h: Rename include guard.
14780 * compile/gcc-cp-plugin.h: Add include guard.
14781 * compile/gcc-c-plugin.h: Add include guard.
14782 * compile/compile.h: Rename include guard.
14783 * compile/compile-object-run.h: Rename include guard.
14784 * compile/compile-object-load.h: Rename include guard.
14785 * compile/compile-internal.h: Rename include guard.
14786 * compile/compile-cplus.h: Rename include guard.
14787 * compile/compile-c.h: Rename include guard.
14788 * common/xml-utils.h: Rename include guard.
14789 * common/x86-xstate.h: Rename include guard.
14790 * common/version.h: Rename include guard.
14791 * common/vec.h: Rename include guard.
14792 * common/tdesc.h: Rename include guard.
14793 * common/selftest.h: Rename include guard.
14794 * common/scoped_restore.h: Rename include guard.
14795 * common/scoped_mmap.h: Rename include guard.
14796 * common/scoped_fd.h: Rename include guard.
14797 * common/safe-iterator.h: Rename include guard.
14798 * common/run-time-clock.h: Rename include guard.
14799 * common/refcounted-object.h: Rename include guard.
14800 * common/queue.h: Rename include guard.
14801 * common/ptid.h: Rename include guard.
14802 * common/print-utils.h: Rename include guard.
14803 * common/preprocessor.h: Rename include guard.
14804 * common/pathstuff.h: Rename include guard.
14805 * common/observable.h: Rename include guard.
14806 * common/netstuff.h: Rename include guard.
14807 * common/job-control.h: Rename include guard.
14808 * common/host-defs.h: Rename include guard.
14809 * common/gdb_wait.h: Rename include guard.
14810 * common/gdb_vecs.h: Rename include guard.
14811 * common/gdb_unlinker.h: Rename include guard.
14812 * common/gdb_unique_ptr.h: Rename include guard.
14813 * common/gdb_tilde_expand.h: Rename include guard.
14814 * common/gdb_sys_time.h: Rename include guard.
14815 * common/gdb_string_view.h: Rename include guard.
14816 * common/gdb_splay_tree.h: Rename include guard.
14817 * common/gdb_setjmp.h: Rename include guard.
14818 * common/gdb_ref_ptr.h: Rename include guard.
14819 * common/gdb_optional.h: Rename include guard.
14820 * common/gdb_locale.h: Rename include guard.
14821 * common/gdb_assert.h: Rename include guard.
14822 * common/filtered-iterator.h: Rename include guard.
14823 * common/filestuff.h: Rename include guard.
14824 * common/fileio.h: Rename include guard.
14825 * common/environ.h: Rename include guard.
14826 * common/common-utils.h: Rename include guard.
14827 * common/common-types.h: Rename include guard.
14828 * common/common-regcache.h: Rename include guard.
14829 * common/common-inferior.h: Rename include guard.
14830 * common/common-gdbthread.h: Rename include guard.
14831 * common/common-exceptions.h: Rename include guard.
14832 * common/common-defs.h: Rename include guard.
14833 * common/common-debug.h: Rename include guard.
14834 * common/cleanups.h: Rename include guard.
14835 * common/buffer.h: Rename include guard.
14836 * common/btrace-common.h: Rename include guard.
14837 * common/break-common.h: Rename include guard.
14838 * cli/cli-utils.h: Rename include guard.
14839 * cli/cli-style.h: Rename include guard.
14840 * cli/cli-setshow.h: Rename include guard.
14841 * cli/cli-script.h: Rename include guard.
14842 * cli/cli-interp.h: Rename include guard.
14843 * cli/cli-decode.h: Rename include guard.
14844 * cli/cli-cmds.h: Rename include guard.
14845 * charset-list.h: Add include guard.
14846 * buildsym-legacy.h: Rename include guard.
14847 * bfin-tdep.h: Add include guard.
14848 * ax.h: Rename include guard.
14849 * arm-linux-tdep.h: Add include guard.
14850 * arm-fbsd-tdep.h: Add include guard.
14851 * arch/xtensa.h: Rename include guard.
14852 * arch/tic6x.h: Add include guard.
14853 * arch/i386.h: Add include guard.
14854 * arch/arm.h: Rename include guard.
14855 * arch/arm-linux.h: Rename include guard.
14856 * arch/arm-get-next-pcs.h: Rename include guard.
14857 * arch/amd64.h: Add include guard.
14858 * arch/aarch64-insn.h: Rename include guard.
14859 * arch-utils.h: Rename include guard.
14860 * annotate.h: Add include guard.
14861 * amd64-darwin-tdep.h: Rename include guard.
14862 * aarch64-linux-tdep.h: Add include guard.
14863 * aarch64-fbsd-tdep.h: Add include guard.
14864 * aarch32-linux-nat.h: Add include guard.
14865
14866 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14867
14868 * macrotab.c (macro_define_internal): New function that
14869 factorizes macro_define_object_internal and macro_define_function
14870 code.
14871 (macro_define_object_internal): Use macro_define_internal.
14872 (macro_define_function): Likewise.
14873
14874 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14875
14876 * macrocmd.c (extract_identifier): Return
14877 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14878 callers.
14879
14880 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14881
14882 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14883
14884 2019-02-05 Tom Tromey <tom@tromey.com>
14885
14886 * target.c (target_stack::unpush): Move assertion earlier.
14887
14888 2019-01-30 Tom Tromey <tom@tromey.com>
14889
14890 PR python/23615:
14891 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14892 (gdbpy_parse_and_eval): Likewise.
14893 * python/python-internal.h (gdbpy_allow_threads): New class.
14894
14895 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14896
14897 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14898 (aarch64_fbsd_fpregmap): Move earlier.
14899 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14900 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14901 instead of individual calls to trad_frame_set_reg_addr.
14902 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14903 earlier.
14904 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14905 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14906 instead of individual calls to trad_frame_set_reg_addr.
14907
14908 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14909
14910 * CONTRIBUTE: Replace contribution list with wiki link.
14911
14912 2019-01-25 Tom Tromey <tom@tromey.com>
14913
14914 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14915
14916 2019-01-25 Tom Tromey <tom@tromey.com>
14917
14918 * xtensa-linux-nat.c: Fix common/ includes.
14919 * xml-support.h: Fix common/ includes.
14920 * xml-support.c: Fix common/ includes.
14921 * x86-linux-nat.c: Fix common/ includes.
14922 * windows-nat.c: Fix common/ includes.
14923 * varobj.h: Fix common/ includes.
14924 * varobj.c: Fix common/ includes.
14925 * value.c: Fix common/ includes.
14926 * valops.c: Fix common/ includes.
14927 * utils.c: Fix common/ includes.
14928 * unittests/xml-utils-selftests.c: Fix common/ includes.
14929 * unittests/utils-selftests.c: Fix common/ includes.
14930 * unittests/unpack-selftests.c: Fix common/ includes.
14931 * unittests/tracepoint-selftests.c: Fix common/ includes.
14932 * unittests/style-selftests.c: Fix common/ includes.
14933 * unittests/string_view-selftests.c: Fix common/ includes.
14934 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14935 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14936 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14937 * unittests/rsp-low-selftests.c: Fix common/ includes.
14938 * unittests/parse-connection-spec-selftests.c: Fix common/
14939 includes.
14940 * unittests/optional-selftests.c: Fix common/ includes.
14941 * unittests/offset-type-selftests.c: Fix common/ includes.
14942 * unittests/observable-selftests.c: Fix common/ includes.
14943 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14944 * unittests/memrange-selftests.c: Fix common/ includes.
14945 * unittests/memory-map-selftests.c: Fix common/ includes.
14946 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14947 * unittests/function-view-selftests.c: Fix common/ includes.
14948 * unittests/environ-selftests.c: Fix common/ includes.
14949 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14950 * unittests/common-utils-selftests.c: Fix common/ includes.
14951 * unittests/cli-utils-selftests.c: Fix common/ includes.
14952 * unittests/array-view-selftests.c: Fix common/ includes.
14953 * ui-file.c: Fix common/ includes.
14954 * tui/tui-io.c: Fix common/ includes.
14955 * tracepoint.h: Fix common/ includes.
14956 * tracepoint.c: Fix common/ includes.
14957 * tracefile-tfile.c: Fix common/ includes.
14958 * top.h: Fix common/ includes.
14959 * top.c: Fix common/ includes.
14960 * thread.c: Fix common/ includes.
14961 * target/waitstatus.h: Fix common/ includes.
14962 * target/waitstatus.c: Fix common/ includes.
14963 * target.h: Fix common/ includes.
14964 * target.c: Fix common/ includes.
14965 * target-memory.c: Fix common/ includes.
14966 * target-descriptions.c: Fix common/ includes.
14967 * symtab.h: Fix common/ includes.
14968 * symfile.c: Fix common/ includes.
14969 * stap-probe.c: Fix common/ includes.
14970 * spu-linux-nat.c: Fix common/ includes.
14971 * sparc-nat.c: Fix common/ includes.
14972 * source.c: Fix common/ includes.
14973 * solib.c: Fix common/ includes.
14974 * solib-target.c: Fix common/ includes.
14975 * ser-unix.c: Fix common/ includes.
14976 * ser-tcp.c: Fix common/ includes.
14977 * ser-pipe.c: Fix common/ includes.
14978 * ser-base.c: Fix common/ includes.
14979 * selftest-arch.c: Fix common/ includes.
14980 * s12z-tdep.c: Fix common/ includes.
14981 * rust-exp.y: Fix common/ includes.
14982 * rs6000-aix-tdep.c: Fix common/ includes.
14983 * riscv-tdep.c: Fix common/ includes.
14984 * remote.c: Fix common/ includes.
14985 * remote-notif.h: Fix common/ includes.
14986 * remote-fileio.h: Fix common/ includes.
14987 * remote-fileio.c: Fix common/ includes.
14988 * regcache.h: Fix common/ includes.
14989 * regcache.c: Fix common/ includes.
14990 * record-btrace.c: Fix common/ includes.
14991 * python/python.c: Fix common/ includes.
14992 * python/py-type.c: Fix common/ includes.
14993 * python/py-inferior.c: Fix common/ includes.
14994 * progspace.h: Fix common/ includes.
14995 * producer.c: Fix common/ includes.
14996 * procfs.c: Fix common/ includes.
14997 * proc-api.c: Fix common/ includes.
14998 * printcmd.c: Fix common/ includes.
14999 * ppc-linux-nat.c: Fix common/ includes.
15000 * parser-defs.h: Fix common/ includes.
15001 * osdata.c: Fix common/ includes.
15002 * obsd-nat.c: Fix common/ includes.
15003 * nat/x86-linux.c: Fix common/ includes.
15004 * nat/x86-linux-dregs.c: Fix common/ includes.
15005 * nat/x86-dregs.h: Fix common/ includes.
15006 * nat/x86-dregs.c: Fix common/ includes.
15007 * nat/ppc-linux.c: Fix common/ includes.
15008 * nat/mips-linux-watch.h: Fix common/ includes.
15009 * nat/mips-linux-watch.c: Fix common/ includes.
15010 * nat/linux-waitpid.c: Fix common/ includes.
15011 * nat/linux-ptrace.h: Fix common/ includes.
15012 * nat/linux-ptrace.c: Fix common/ includes.
15013 * nat/linux-procfs.c: Fix common/ includes.
15014 * nat/linux-personality.c: Fix common/ includes.
15015 * nat/linux-osdata.c: Fix common/ includes.
15016 * nat/linux-namespaces.c: Fix common/ includes.
15017 * nat/linux-btrace.h: Fix common/ includes.
15018 * nat/linux-btrace.c: Fix common/ includes.
15019 * nat/fork-inferior.c: Fix common/ includes.
15020 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15021 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15022 * nat/aarch64-linux.c: Fix common/ includes.
15023 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15024 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15025 * namespace.h: Fix common/ includes.
15026 * mips-linux-tdep.c: Fix common/ includes.
15027 * minsyms.c: Fix common/ includes.
15028 * mi/mi-parse.h: Fix common/ includes.
15029 * mi/mi-main.c: Fix common/ includes.
15030 * mi/mi-cmd-env.c: Fix common/ includes.
15031 * memrange.h: Fix common/ includes.
15032 * memattr.c: Fix common/ includes.
15033 * maint.h: Fix common/ includes.
15034 * maint.c: Fix common/ includes.
15035 * main.c: Fix common/ includes.
15036 * machoread.c: Fix common/ includes.
15037 * location.c: Fix common/ includes.
15038 * linux-thread-db.c: Fix common/ includes.
15039 * linux-nat.c: Fix common/ includes.
15040 * linux-fork.c: Fix common/ includes.
15041 * inline-frame.c: Fix common/ includes.
15042 * infrun.c: Fix common/ includes.
15043 * inflow.c: Fix common/ includes.
15044 * inferior.h: Fix common/ includes.
15045 * inferior.c: Fix common/ includes.
15046 * infcmd.c: Fix common/ includes.
15047 * inf-ptrace.c: Fix common/ includes.
15048 * inf-child.c: Fix common/ includes.
15049 * ia64-linux-nat.c: Fix common/ includes.
15050 * i387-tdep.c: Fix common/ includes.
15051 * i386-tdep.c: Fix common/ includes.
15052 * i386-linux-tdep.c: Fix common/ includes.
15053 * i386-linux-nat.c: Fix common/ includes.
15054 * i386-go32-tdep.c: Fix common/ includes.
15055 * i386-fbsd-tdep.c: Fix common/ includes.
15056 * i386-fbsd-nat.c: Fix common/ includes.
15057 * guile/scm-type.c: Fix common/ includes.
15058 * guile/guile.c: Fix common/ includes.
15059 * go32-nat.c: Fix common/ includes.
15060 * gnu-nat.c: Fix common/ includes.
15061 * gdbthread.h: Fix common/ includes.
15062 * gdbarch-selftests.c: Fix common/ includes.
15063 * gdb_usleep.c: Fix common/ includes.
15064 * gdb_select.h: Fix common/ includes.
15065 * gdb_bfd.c: Fix common/ includes.
15066 * gcore.c: Fix common/ includes.
15067 * fork-child.c: Fix common/ includes.
15068 * findvar.c: Fix common/ includes.
15069 * fbsd-nat.c: Fix common/ includes.
15070 * event-top.c: Fix common/ includes.
15071 * event-loop.c: Fix common/ includes.
15072 * dwarf2read.c: Fix common/ includes.
15073 * dwarf2loc.c: Fix common/ includes.
15074 * dwarf2-frame.c: Fix common/ includes.
15075 * dwarf-index-cache.c: Fix common/ includes.
15076 * dtrace-probe.c: Fix common/ includes.
15077 * disasm-selftests.c: Fix common/ includes.
15078 * defs.h: Fix common/ includes.
15079 * csky-tdep.c: Fix common/ includes.
15080 * cp-valprint.c: Fix common/ includes.
15081 * cp-support.h: Fix common/ includes.
15082 * cp-support.c: Fix common/ includes.
15083 * corelow.c: Fix common/ includes.
15084 * completer.h: Fix common/ includes.
15085 * completer.c: Fix common/ includes.
15086 * compile/compile.c: Fix common/ includes.
15087 * compile/compile-loc2c.c: Fix common/ includes.
15088 * compile/compile-cplus-types.c: Fix common/ includes.
15089 * compile/compile-cplus-symbols.c: Fix common/ includes.
15090 * command.h: Fix common/ includes.
15091 * cli/cli-dump.c: Fix common/ includes.
15092 * cli/cli-cmds.c: Fix common/ includes.
15093 * charset.c: Fix common/ includes.
15094 * build-id.c: Fix common/ includes.
15095 * btrace.h: Fix common/ includes.
15096 * btrace.c: Fix common/ includes.
15097 * breakpoint.h: Fix common/ includes.
15098 * breakpoint.c: Fix common/ includes.
15099 * ax.h:
15100 (enum agent_op): Fix common/ includes.
15101 * ax-general.c (struct aop_map): Fix common/ includes.
15102 * ax-gdb.c: Fix common/ includes.
15103 * auxv.c: Fix common/ includes.
15104 * auto-load.c: Fix common/ includes.
15105 * arm-tdep.c: Fix common/ includes.
15106 * arch/riscv.c: Fix common/ includes.
15107 * arch/ppc-linux-common.c: Fix common/ includes.
15108 * arch/i386.c: Fix common/ includes.
15109 * arch/arm.c: Fix common/ includes.
15110 * arch/arm-linux.c: Fix common/ includes.
15111 * arch/arm-get-next-pcs.c: Fix common/ includes.
15112 * arch/amd64.c: Fix common/ includes.
15113 * arch/aarch64.c: Fix common/ includes.
15114 * arch/aarch64-insn.c: Fix common/ includes.
15115 * arch-utils.c: Fix common/ includes.
15116 * amd64-windows-tdep.c: Fix common/ includes.
15117 * amd64-tdep.c: Fix common/ includes.
15118 * amd64-sol2-tdep.c: Fix common/ includes.
15119 * amd64-obsd-tdep.c: Fix common/ includes.
15120 * amd64-nbsd-tdep.c: Fix common/ includes.
15121 * amd64-linux-tdep.c: Fix common/ includes.
15122 * amd64-linux-nat.c: Fix common/ includes.
15123 * amd64-fbsd-tdep.c: Fix common/ includes.
15124 * amd64-fbsd-nat.c: Fix common/ includes.
15125 * amd64-dicos-tdep.c: Fix common/ includes.
15126 * amd64-darwin-tdep.c: Fix common/ includes.
15127 * agent.c: Fix common/ includes.
15128 * ada-lang.h: Fix common/ includes.
15129 * ada-lang.c: Fix common/ includes.
15130 * aarch64-tdep.c: Fix common/ includes.
15131
15132 2019-01-25 Tom Tromey <tom@tromey.com>
15133
15134 * common/create-version.sh: Use common/version.h.
15135
15136 2019-01-24 Pedro Alves <palves@redhat.com>
15137
15138 * infrun.c (signal_stop, signal_print, signal_program)
15139 (signal_catch, signal_pass): Now arrays instead of pointers.
15140 (update_signals_program_target, do_target_resume)
15141 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15142 * linux-nat.c (linux_nat_target::pass_signals)
15143 (linux_nat_target::create_inferior, linux_nat_target::attach):
15144 Adjust.
15145 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15146 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15147 * procfs.c (procfs_target::pass_signals): Adjust.
15148 * record-full.c (record_full_target::resume): Adjust.
15149 * remote.c (remote_target::pass_signals)
15150 (remote_target::program_signals): Adjust.
15151 * target-debug.h (target_debug_print_signals): Now takes a
15152 gdb::array_view as parameter. Adjust.
15153 * target.h (target_ops) <pass_signals, program_signals>: Replace
15154 pointer and length parameters with gdb::array_view.
15155 (target_pass_signals, target_program_signals): Likewise.
15156 * target-delegates.c: Regenerate.
15157
15158 2019-01-24 Pedro Alves <palves@redhat.com>
15159
15160 * common/forward-scope-exit.h
15161 (forward_scope_exit::forward_scope_exit): Pass arguments to
15162 m_bind_function directly, instead of creating a std::bind and
15163 copying that.
15164
15165 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15166
15167 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15168 for static members.
15169 (pass_in_v_vfp_candidate): Likewise.
15170
15171 2019-01-23 Tom Tromey <tom@tromey.com>
15172 Pedro Alves <palves@redhat.com>
15173
15174 * regcache.c (class regcache_invalidator): Remove.
15175 (regcache::raw_write): Use make_scope_exit.
15176
15177 2019-01-23 Tom Tromey <tom@tromey.com>
15178
15179 * ui-out.h (class ui_out_emit_type): Update comment.
15180
15181 2019-01-23 Tom Tromey <tom@tromey.com>
15182
15183 * infrun.c (fetch_inferior_event): Update comment.
15184
15185 2019-01-23 Tom Tromey <tom@tromey.com>
15186 Pedro Alves <palves@redhat.com>
15187
15188 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15189 parameter.
15190 (fetch_inferior_event): Use SCOPE_EXIT.
15191
15192
15193 2019-01-23 Tom Tromey <tom@tromey.com>
15194 Pedro Alves <palves@redhat.com>
15195
15196 * infrun.c (disable_thread_events): Delete.
15197 (stop_all_threads): Use SCOPE_EXIT.
15198
15199 2019-01-23 Tom Tromey <tom@tromey.com>
15200 Pedro Alves <palves@redhat.com>
15201
15202 * symfile.c: Include forward-scope-exit.h.
15203 (clear_symtab_users_cleanup): Replace forward declaration with
15204 a FORWARD_SCOPE_EXIT.
15205 (syms_from_objfile_1): Use the forward_scope_exit and
15206 gdb::optional instead of cleanup_function.
15207 (reread_symbols): Use the forward_scope_exit instead of
15208 cleanup_function.
15209 (clear_symtab_users_cleanup): Remove function.
15210
15211 2019-01-23 Tom Tromey <tom@tromey.com>
15212 Pedro Alves <palves@redhat.com>
15213
15214 * linux-nat.c: Include scope-exit.h.
15215 (cleanup_target_stop): Remove.
15216 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15217 SCOPE_EXIT.
15218
15219 2019-01-23 Tom Tromey <tom@tromey.com>
15220 Pedro Alves <palves@redhat.com>
15221
15222 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15223 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15224
15225 2019-01-23 Tom Tromey <tom@tromey.com>
15226 Andrew Burgess <andrew.burgess@embecosm.com>
15227 Pedro Alves <palves@redhat.com>
15228
15229 * infrun.c (fetch_inferior_event): Use scope_exit.
15230 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15231 * top.c (execute_command): Use scope_exit.
15232 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15233 * utils.c (do_bpstat_clear_actions_cleanup)
15234 (make_bpstat_clear_actions_cleanup): Remove.
15235
15236 2019-01-23 Tom Tromey <tom@tromey.com>
15237 Pedro Alves <palves@redhat.com>
15238
15239 * infrun.c: Include "common/scope-exit.h"
15240 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15241 (wait_for_inferior): Use SCOPE_EXIT.
15242 (fetch_inferior_event): Use scope_exit.
15243
15244 2019-01-23 Tom Tromey <tom@tromey.com>
15245 Pedro Alves <palves@redhat.com>
15246
15247 * breakpoint.c (create_breakpoint): Remove cleanup.
15248
15249 2019-01-23 Tom Tromey <tom@tromey.com>
15250 Andrew Burgess <andrew.burgess@embecosm.com>
15251 Pedro Alves <palves@redhat.com>
15252
15253 2019-01-23 Pedro Alves <palves@redhat.com>
15254
15255 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15256
15257 2019-01-23 Pedro Alves <palves@redhat.com>
15258 Andrew Burgess <andrew.burgess@embecosm.com>
15259
15260 * gdbthread.h: Include "common/forward-scope-exit.h".
15261 (scoped_finish_thread_state): Redefine custom class in terms of
15262 forward_scope_exit.
15263
15264 2019-01-23 Pedro Alves <palves@redhat.com>
15265 Andrew Burgess <andrew.burgess@embecosm.com>
15266
15267 * common/forward-scope-exit.h: New file.
15268
15269 2019-01-23 Pedro Alves <palves@redhat.com>
15270 Andrew Burgess <andrew.burgess@embecosm.com>
15271 Tom Tromey <tom@tromey.com>
15272
15273 * common/scope-exit.h: New file.
15274
15275 2019-01-23 Pedro Alves <palves@redhat.com>
15276
15277 * common/preprocessor.h (ESC): Rename to ...
15278 (ESC_PARENS): ... this.
15279 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15280 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15281
15282 2019-01-23 Tom Tromey <tom@tromey.com>
15283
15284 * language.h (class scoped_switch_to_sym_language_if_auto):
15285 Initialize m_lang in both cases.
15286
15287 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15288
15289 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15290 with XCNEW.
15291
15292 2019-01-22 Tom Tromey <tom@tromey.com>
15293
15294 * corelow.c: Do not include sys/file.h.
15295
15296 2019-01-22 Tom Tromey <tom@tromey.com>
15297
15298 * tui/tui-wingeneral.h: Include gdb_curses.h.
15299
15300 2019-01-22 Tom Tromey <tom@tromey.com>
15301
15302 * source-cache.h (class source_cache) <get_source_lines,
15303 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15304
15305 2019-01-22 Tom Tromey <tom@tromey.com>
15306
15307 * remote-fileio.h (struct remote_target): Declare.
15308
15309 2019-01-22 Tom Tromey <tom@tromey.com>
15310
15311 * python/py-arch.c: Do not include py-ref.h.
15312 * python/py-bpevent.c: Do not include py-ref.h.
15313 * python/py-cmd.c: Do not include py-ref.h.
15314 * python/py-continueevent.c: Do not include py-ref.h.
15315 * python/py-event.h: Do not include py-ref.h.
15316 * python/py-evtregistry.c: Do not include py-ref.h.
15317 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15318 * python/py-frame.c: Do not include py-ref.h.
15319 * python/py-framefilter.c: Do not include py-ref.h.
15320 * python/py-function.c: Do not include py-ref.h.
15321 * python/py-infevents.c: Do not include py-ref.h.
15322 * python/py-linetable.c: Do not include py-ref.h.
15323 * python/py-objfile.c: Do not include py-ref.h.
15324 * python/py-param.c: Do not include py-ref.h.
15325 * python/py-prettyprint.c: Do not include py-ref.h.
15326 * python/py-progspace.c: Do not include py-ref.h.
15327 * python/py-symbol.c: Do not include py-ref.h.
15328 * python/py-symtab.c: Do not include py-ref.h.
15329 * python/py-type.c: Do not include py-ref.h.
15330 * python/py-unwind.c: Do not include py-ref.h.
15331 * python/py-utils.c: Do not include py-ref.h.
15332 * python/py-value.c: Do not include py-ref.h.
15333 * python/py-varobj.c: Do not include py-ref.h.
15334 * python/py-xmethods.c: Do not include py-ref.h.
15335 * python/python.c: Do not include py-ref.h.
15336 * varobj.c: Do not include py-ref.h.
15337
15338 2019-01-22 Tom Tromey <tom@tromey.com>
15339
15340 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15341 keyword for bcache.
15342
15343 2019-01-22 Tom Tromey <tom@tromey.com>
15344
15345 * compile/compile-cplus-types.c: Remove a comment by #include.
15346
15347 2019-01-22 Tom Tromey <tom@tromey.com>
15348
15349 * compile/gcc-c-plugin.h: Include compile-internal.h.
15350
15351 2019-01-22 Tom Tromey <tom@tromey.com>
15352
15353 * stabsread.c (EXTERN): Do not define.
15354 (symnum, next_symbol_text_func, processing_gcc_compilation)
15355 (within_function, global_sym_chain, global_stabs)
15356 (previous_stab_code, this_object_header_files)
15357 (n_this_object_header_files)
15358 (n_allocated_this_object_header_files): Define.
15359 * stabsread.h (EXTERN): Never define. Use "extern".
15360
15361 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15362
15363 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15364 history_value.
15365
15366 2019-01-21 Tom Tromey <tom@tromey.com>
15367
15368 * ui-out.c: Fix includes.
15369 * tui/tui-source.c: Fix includes.
15370 * target.c: Fix includes.
15371 * remote.c: Fix includes.
15372 * regcache.c: Fix includes.
15373 * python/py-block.c: Fix includes.
15374 * printcmd.c: Fix includes.
15375 * or1k-tdep.c: Fix includes.
15376 * mi/mi-main.c: Fix includes.
15377 * m32r-tdep.c: Fix includes.
15378 * csky-tdep.c: Fix includes.
15379 * compile/compile-cplus-types.c: Fix includes.
15380 * cli/cli-interp.c: Fix includes.
15381
15382 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15383
15384 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15385 for padding.
15386
15387 2019-01-16 Tom Tromey <tom@tromey.com>
15388
15389 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15390 earlier.
15391 (struct objfile) <msymbols_range>: Move from top level.
15392 <msymbols>: New method.
15393 (class objfile_msymbols): Remove.
15394 * symtab.c (default_collect_symbol_completion_matches_break_on):
15395 Update.
15396 * symmisc.c (dump_msymbols): Update.
15397 * stabsread.c (scan_file_globals): Update.
15398 * objc-lang.c (info_selectors_command, info_classes_command)
15399 (find_methods): Update.
15400 * minsyms.c (find_solib_trampoline_target): Update.
15401 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15402 * coffread.c (coff_symfile_read): Update.
15403 * ada-lang.c (ada_lookup_simple_minsym)
15404 (ada_collect_symbol_completion_matches): Update.
15405
15406 2019-01-16 Tom Tromey <tom@tromey.com>
15407
15408 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15409 type. Remove no-argument constructor.
15410 <iterator::operator++>: Simplify.
15411 <begin>: Update.
15412 <end>: Use minimal_symbol_count.
15413
15414 2019-01-16 Tom Tromey <tom@tromey.com>
15415
15416 * objfiles.h (struct objfile) <psymtabs>: New method.
15417 (class objfile_psymtabs): Remove.
15418 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15419 typedef.
15420 <range>: New method.
15421 (require_partial_symbols): Change return type.
15422 * psymtab.c (require_partial_symbols)
15423 (psym_expand_symtabs_matching): Update.
15424 * mdebugread.c (parse_partial_symbols): Update.
15425 * dbxread.c (dbx_end_psymtab): Update.
15426
15427 2019-01-15 Tom Tromey <tom@tromey.com>
15428
15429 * symtab.c (lookup_objfile_from_block)
15430 (lookup_symbol_in_objfile_symtabs)
15431 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15432 (find_line_symtab, info_sources_command)
15433 (default_collect_symbol_completion_matches_break_on)
15434 (make_source_files_completion_list): Update.
15435 * symmisc.c (print_objfile_statistics, dump_objfile)
15436 (maintenance_print_symbols, maintenance_info_symtabs)
15437 (maintenance_check_symtabs, maintenance_info_line_tables):
15438 Update.
15439 * source.c (select_source_symtab)
15440 (forget_cached_source_info_for_objfile): Update.
15441 * objfiles.h (class objfile_compunits): Remove.
15442 (struct objfile) <compunits_range>: New typedef.
15443 (compunits): New method.
15444 * objfiles.c (objfile_relocate1): Update.
15445 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15446 * maint.c (count_symtabs_and_blocks): Update.
15447 * linespec.c (iterate_over_all_matching_symtabs): Update.
15448 * cp-support.c (add_symbol_overload_list_qualified): Update.
15449 * coffread.c (coff_symtab_read): Update.
15450 * ada-lang.c (add_nonlocal_symbols)
15451 (ada_collect_symbol_completion_matches)
15452 (ada_add_global_exceptions): Update.
15453
15454 2019-01-15 Tom Tromey <tom@tromey.com>
15455
15456 * progspace.h (program_space) <objfiles_safe_range>: New
15457 typedef.
15458 <objfiles_safe>: New method.
15459 * objfiles.h (class all_objfiles_safe): Remove.
15460 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15461 * jit.c (jit_inferior_exit_hook): Update.
15462
15463 2019-01-17 Tom Tromey <tom@tromey.com>
15464
15465 * progspace.h (program_space) <objfiles_range>: New typedef.
15466 <objfiles>: New method.
15467 <objfiles_head>: Rename from objfiles.
15468 (object_files): Update.
15469 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15470 * guile/scm-pretty-print.c
15471 (ppscm_find_pretty_printer_from_objfiles): Update.
15472 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15473 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15474 Update.
15475 * python/py-progspace.c (pspy_get_objfiles): Update.
15476 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15477 Update.
15478 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15479 (objfpy_lookup_objfile_by_build_id): Update.
15480 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15481 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15482 Update.
15483 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15484 (expand_symtab_containing_pc, lookup_objfile_from_block)
15485 (lookup_static_symbol, basic_lookup_transparent_type)
15486 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15487 (find_line_symtab, info_sources_command)
15488 (default_collect_symbol_completion_matches_break_on)
15489 (make_source_files_completion_list, find_main_name): Update.
15490 * symmisc.c (print_symbol_bcache_statistics)
15491 (print_objfile_statistics, maintenance_print_symbols)
15492 (maintenance_print_msymbols, maintenance_print_objfiles)
15493 (maintenance_info_symtabs, maintenance_check_symtabs)
15494 (maintenance_expand_symtabs, maintenance_info_line_tables):
15495 Update.
15496 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15497 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15498 (map_overlay_command, unmap_overlay_command)
15499 (simple_overlay_update, expand_symtabs_matching)
15500 (map_symbol_filenames): Update.
15501 * symfile-debug.c (set_debug_symfile): Update.
15502 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15503 Update.
15504 * source.c (select_source_symtab, forget_cached_source_info):
15505 Update.
15506 * solib.c (solib_read_symbols): Update.
15507 * solib-spu.c (append_ocl_sos): Update.
15508 * psymtab.c (maintenance_print_psymbols)
15509 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15510 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15511 * printcmd.c (info_symbol_command): Update.
15512 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15513 Update.
15514 * objfiles.h (class all_objfiles): Remove.
15515 * objfiles.c (have_partial_symbols, have_full_symbols)
15516 (have_minimal_symbols, qsort_cmp, update_section_map)
15517 (shared_objfile_contains_address_p)
15518 (default_iterate_over_objfiles_in_search_order): Update.
15519 * objc-lang.c (info_selectors_command, info_classes_command)
15520 (find_methods): Update.
15521 * minsyms.c (find_solib_trampoline_target): Update.
15522 * maint.c (maintenance_info_sections)
15523 (maintenance_translate_address, count_symtabs_and_blocks):
15524 Update.
15525 * main.c (captured_main_1): Update.
15526 * linux-thread-db.c (try_thread_db_load_from_pdir)
15527 (has_libpthread): Update.
15528 * linespec.c (iterate_over_all_matching_symtabs)
15529 (search_minsyms_for_name): Update.
15530 * jit.c (jit_find_objf_with_entry_addr): Update.
15531 * hppa-tdep.c (find_unwind_entry)
15532 (hppa_lookup_stub_minimal_symbol): Update.
15533 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15534 Update.
15535 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15536 (elf_gnu_ifunc_resolve_by_got): Update.
15537 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15538 * dwarf-index-write.c (save_gdb_index_command): Update.
15539 * cp-support.c (add_symbol_overload_list_qualified): Update.
15540 * breakpoint.c (create_overlay_event_breakpoint)
15541 (create_longjmp_master_breakpoint)
15542 (create_std_terminate_master_breakpoint)
15543 (create_exception_master_breakpoint): Update.
15544 * blockframe.c (find_pc_partial_function): Update.
15545 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15546 (ada_collect_symbol_completion_matches)
15547 (ada_add_global_exceptions): Update.
15548
15549 2019-01-17 Tom Tromey <tom@tromey.com>
15550
15551 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15552 declare VEC.
15553 (solib_target_parse_libraries): Change return type.
15554 (library_list_start_segment, library_list_start_section)
15555 (library_list_end_library, library_list_start_library); Update.
15556 (solib_target_free_library_list): Remove.
15557 (solib_target_parse_libraries): Remove cleanup. Change return
15558 type.
15559 (solib_target_current_sos): Update.
15560
15561 2019-01-17 Tom Tromey <tromey@bapiya>
15562
15563 * valprint.c: Replace "the the" with "the".
15564 * symtab.c: Replace "the the" with "the".
15565 * solib.c: Replace "the the" with "the".
15566 * solib-dsbt.c: Replace "the the" with "the".
15567 * linespec.c: Replace "the the" with "the".
15568 * dwarf2loc.h: Replace "the the" with "the".
15569 * amd64-windows-tdep.c: Replace "the the" with "the".
15570 * aarch64-tdep.c: Replace "the the" with "the".
15571
15572 2019-01-16 Keith Seitz <keiths@redhat.com>
15573
15574 PR gdb/23773
15575 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15576 <builder>: Rename to ..
15577 <m_builder>: ... this and make private.
15578 (dwarf2_cu::get_builder): New method. Change all users of
15579 `builder' to use this method.
15580 (dwarf2_start_symtab): Move to ...
15581 (dwarf2_cu::start_symtab): ... here. Update all callers
15582 (setup_type_unit_groups): Move to ...
15583 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15584 callers.
15585 (dwarf2_cu::reset_builder): New method.
15586 (process_full_compunit, process_full_type_unit): Use
15587 dwarf2_cu::reset_builder.
15588 (follow_die_offset): Record the ancestor CU if it is different
15589 from the followed DIE's CU.
15590 (follow_die_sig_1): Likewise.
15591
15592 2019-01-15 Tom Tromey <tom@tromey.com>
15593
15594 * remote.c (class remote_state) <buf>: Now a char_vector.
15595 <buf_size>: Remove.
15596 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15597 parameter.
15598 (remote_target::getpkt_or_notif_sane_1)
15599 (remote_target::getpkt_sane)
15600 (remote_target::getpkt_or_notif_sane): Likewise.
15601 (class remote_target) <putpkt>: New overload.
15602 (remote_target::read_frame): Change type of "buf_p". Remove
15603 sizeof_p parameter.
15604 (packet_ok): New overload.
15605 (packet_check_result): New overload.
15606 Update all uses.
15607
15608 2019-01-14 Tom Tromey <tom@tromey.com>
15609
15610 * remote-notif.c (handle_notification, remote_notif_ack)
15611 (remote_notif_parse): Make "buf" const.
15612 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15613 const.
15614 (remote_notif_parse, remote_notif_ack, handle_notification):
15615 Likewise.
15616 * remote.c (remote_notif_stop_parse): Make "buf" const.
15617 (remote_target::remote_parse_stop_reply): Make "buf" const.
15618 (remote_notif_stop_ack): Make "buf" const.
15619
15620 2019-01-14 Tom Tromey <tom@tromey.com>
15621
15622 * remote.c (remote_console_output): Make parameter const.
15623
15624 2019-01-14 Tom Tromey <tom@tromey.com>
15625
15626 * target-debug.h (target_debug_print_signals): Constify.
15627 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15628 * procfs.c (procfs_target::pass_signals): Update.
15629 * linux-nat.c (linux_nat_target::pass_signals): Update.
15630 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15631 * target-delegates.c: Rebuild.
15632 * remote.c (remote_target::program_signals): Update.
15633 (remote_target::pass_signals): Update.
15634 * target.c (target_pass_signals): Constify argument.
15635 (target_program_signals): Likewise.
15636 * target.h (struct target_ops) <pass_signals, program_signals>:
15637 Constify argument.
15638 (target_pass_signals, target_program_signals): Constify argument.
15639
15640 2019-01-14 Tom Tromey <tom@tromey.com>
15641
15642 PR tui/28819:
15643 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15644
15645 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15646
15647 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15648 field.
15649 * rs6000-tdep.c: Include reggroups.h.
15650 (IS_V_ALIAS_PSEUDOREG): Define.
15651 (rs6000_register_name): Return names for the "vX" aliases.
15652 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15653 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15654 aliases. Call default_register_reggroup_p for all other
15655 pseudo-registers.
15656 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15657 New functions.
15658 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15659 Handle "vX" aliases.
15660 (v_alias_pseudo_register_collect): New function.
15661 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15662 (rs6000_gdbarch_init): Initialize "vX" aliases as
15663 pseudo-registers. Restore registration of
15664 rs6000_pseudo_register_reggroup_p with
15665 set_tdesc_pseudo_register_reggroup_p.
15666
15667 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15668
15669 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15670 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15671 set_gdbarch_num_pseudo_regs.
15672
15673 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15674
15675 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15676 Remove arg prefixname, add do_set and do_show.
15677 Add member functions set_list and show_list.
15678 * cli/cli-style.c (class cli_style_option): Update accordingly.
15679 (style_set_list): Move to file scope.
15680 (style_show_list): Likewise.
15681 (set_style): Call help_list.
15682 (show_style): Call cmd_show_list.
15683 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15684 Update to use the new macro.
15685
15686 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15687
15688 * ada-lang.c (_initialize_ada_language): Expand the help text
15689 for the "catch exception" command.
15690
15691 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15692
15693 * symtab.c (matching_obj_sections): Initialize obj,
15694 declare it closer to its usage.
15695
15696 2019-01-10 Tom Tromey <tom@tromey.com>
15697
15698 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15699 (basic_inf_threads_range): Remove.
15700 (inf_threads_range, inf_non_exited_threads_range)
15701 (safe_inf_threads_range): Use next_adapter.
15702
15703 2019-01-10 Keith Seitz <keiths@redhat.com>
15704
15705 PR gdb/23712
15706 PR symtab/23010
15707 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15708 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15709
15710 2019-01-10 Keith Seitz <keiths@redhat.com>
15711
15712 PR gdb/23712
15713 PR symtab/23010
15714 * dictionary.c (pending_to_vector): Remove.
15715 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15716 Remove _1 suffix, replacing functions of the same name. Update
15717 all callers.
15718 (dict_create_hashed, dict_create_hashed_expandable)
15719 (dict_create_linear, dict_create_linear_expandable, dict_free)
15720 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15721 Make functions static.
15722
15723 2019-01-10 Keith Seitz <keiths@redhat.com>
15724
15725 PR gdb/23712
15726 PR symtab/23010
15727 * dictionary.h (struct dictionary): Replace declaration with
15728 multidictionary.
15729 (dict_create_hashed, dict_create_hashed_expandable)
15730 (dict_create_linear, dict_create_linear_expandable)
15731 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15732 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15733 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15734 taking multidictionary argument.
15735 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15736 * block.h (struct block) <dict>: Change to multidictionary
15737 and rename `multidict'.
15738 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15739 symmisc.c: Update all dictionary references to multidictionary.
15740
15741 2019-01-10 Keith Seitz <keiths@redhat.com>
15742
15743 PR gdb/23712
15744 PR symtab/23010
15745 * dictionary.c: Include unordered_map.
15746 (pending_to_vector): New function.
15747 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15748 Rewrite the non-"_1" functions to take vector instead
15749 of linked list.
15750 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15751 "new" _1 versions of the same name.
15752 (multidictionary): Define.
15753 (std::hash<enum language): New definition.
15754 (collate_pending_symbols_by_language, mdict_create_hashed)
15755 (mdict_create_hashed_expandable, mdict_create_linear)
15756 (mdict_create_linear_expandable, mdict_free)
15757 (find_language_dictionary, create_new_language_dictionary)
15758 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15759 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15760 (mdict_size, mdict_empty): New functions.
15761 * dictionary.h (mdict_iterator): Define.
15762
15763 2019-01-10 Pedro Alves <palves@redhat.com>
15764
15765 * breakpoint.c (read_uploaded_action)
15766 (create_tracepoint_from_upload): Adjust to use
15767 gdb::unique_xmalloc_ptr.
15768 * ctf.c (ctf_write_uploaded_tp):
15769 (SET_ARRAY_FIELD): Use emplace_back.
15770 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15771 * tracefile-tfile.c (tfile_write_uploaded_tp):
15772 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15773 gdb::unique_xmalloc_ptr.
15774 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15775 at_string, cond_string, cmd_strings>: Replace char pointers
15776 with gdb::unique_xmalloc_ptr.
15777
15778 2019-01-10 Pedro Alves <palves@redhat.com>
15779
15780 * solib-target.c (library_list_start_library): Don't xstrdup name.
15781
15782 2019-01-10 Pedro Alves <palves@redhat.com>
15783
15784 * mdebugread.c (parse_partial_symbols): Use
15785 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15786
15787 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15788
15789 * linux-fork.c (scoped_switch_fork_info)
15790 <~scoped_switch_fork_info>: Fix incorrect variable name.
15791
15792 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15793
15794 * linux-fork.c (scoped_switch_fork_info)
15795 <scoped_switch_fork_info>: Make explicit.
15796 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15797
15798 2019-01-10 Tom Tromey <tom@tromey.com>
15799
15800 * objfiles.h (objfile::reset_psymtabs): Update.
15801 * objfiles.c (objfile::objfile): Update.
15802 * psymtab.h (psymtab_storage::obstack): Update.
15803 (psymtab_storage::m_obstack): Use gdb::optional.
15804 (class psymtab_storage): Update comment. Remove objfile
15805 parameter.
15806 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15807
15808 2019-01-10 Tom Tromey <tom@tromey.com>
15809
15810 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15811 <free_psymtabs>: Now private.
15812 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15813 (allocate_psymtab): Use new method.
15814
15815 2019-01-10 Tom Tromey <tom@tromey.com>
15816
15817 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15818 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15819 * mdebugread.c (parse_partial_symbols): Use
15820 allocate_dependencies.
15821 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15822 allocate_dependencies.
15823 (process_psymtab_comp_unit_reader)
15824 (build_type_psymtab_dependencies): Likewise.
15825 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15826
15827 2019-01-10 Tom Tromey <tom@tromey.com>
15828
15829 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15830 PSYMBOL_SET_LANGUAGE.
15831 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15832
15833 2019-01-10 Tom Tromey <tom@tromey.com>
15834
15835 * psymtab.h (psymtab_storage::obstack): New method.
15836 <m_obstack>: Rename from obstack; now private.
15837 * psymtab.c (psymtab_storage): Update.
15838 * dwarf2read.c (create_addrmap_from_index)
15839 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15840 Update.
15841
15842 2019-01-10 Tom Tromey <tom@tromey.com>
15843
15844 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15845 * objfiles.h (objfile::reset_psymtabs): New method.
15846
15847 2019-01-10 Tom Tromey <tom@tromey.com>
15848
15849 * symmisc.c (print_symbol_bcache_statistics): Update.
15850 (print_objfile_statistics): Update.
15851 * symfile.c (reread_symbols): Update.
15852 * psymtab.h (class psymtab_storage): New.
15853 * psymtab.c (psymtab_storage): New constructor.
15854 (~psymtab_storage): New destructor.
15855 (require_partial_symbols): Update.
15856 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15857 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15858 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15859 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15860 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15861 (start_psymtab_common, end_psymtab_common)
15862 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15863 (allocate_psymtab): Update.
15864 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15865 Update.
15866 (dump_psymtab_addrmap, maintenance_print_psymbols)
15867 (maintenance_check_psymtabs): Update.
15868 (class objfile_psymtabs): Move to objfiles.h.
15869 * psympriv.h (discard_psymtab): Now inline.
15870 (psymtab_discarder::psymtab_discarder): Update.
15871 (psymtab_discarder::~psymtab_discarder): Update.
15872 (ALL_OBJFILE_PSYMTABS): Rewrite.
15873 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15874 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15875 Remove fields.
15876 <partial_symtabs>: New field.
15877 (class objfile_psymtabs): Move from psymtab.h. Update.
15878 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15879 psymbol_cache.
15880 (objfile::~objfile): Don't destroy psymbol_cache.
15881 * mdebugread.c (parse_partial_symbols): Update.
15882 * dwarf2read.c (create_addrmap_from_index)
15883 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15884 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15885 (add_partial_subprogram, dwarf2_ranges_read): Update.
15886 * dwarf-index-write.c (write_address_map)
15887 (write_one_signatured_type, recursively_write_psymbols)
15888 (class debug_names, class debug_names, write_psymtabs_to_index):
15889 Update.
15890
15891 2019-01-10 Tom Tromey <tom@tromey.com>
15892
15893 * symtab.h (SYMBOL_SET_NAMES): Update.
15894 (symbol_set_names): Update.
15895 (MSYMBOL_SET_NAMES): Update.
15896 * symtab.c (symbol_set_names): Change argument to be an
15897 objfile_per_bfd_storage.
15898 * psymtab.c (add_psymbol_to_bcache): Update.
15899 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15900
15901 2019-01-10 Tom Tromey <tom@tromey.com>
15902
15903 * symtab.c (create_demangled_names_hash): Change argument to be an
15904 objfile_per_bfd_storage.
15905 (symbol_set_names): Update.
15906
15907 2019-01-10 Tom Tromey <tom@tromey.com>
15908
15909 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15910 init_psymbol_list.
15911 * psymtab.c (init_psymbol_list): Do nothing if already called.
15912 * psympriv.h (init_psymbol_list): Add comment.
15913 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15914 init_psymbol_list.
15915 * dbxread.c (dbx_symfile_read): Unconditionally call
15916 init_psymbol_list.
15917
15918 2019-01-10 Tom Tromey <tom@tromey.com>
15919
15920 * xcoffread.c (scan_xcoff_symtab): Update.
15921 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15922 "where".
15923 * mdebugread.c (parse_partial_symbols)
15924 (handle_psymbol_enumerators): Update.
15925 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15926 * dbxread.c (read_dbx_symtab): Update.
15927 * psympriv.h (psymbol_placement): New enum.
15928 (add_psymbol_to_list): Update.
15929
15930 2019-01-10 Tom Tromey <tom@tromey.com>
15931
15932 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15933 static_psymbols parameters.
15934 (scan_xcoff_symtab): Update.
15935 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15936 static_psymbols parameters.
15937 * psympriv.h (start_psymtab_common): Update.
15938 * mdebugread.c (parse_partial_symbols): Update.
15939 * dwarf2read.c (create_partial_symtab): Update.
15940 * dbxread.c (read_dbx_symtab): Update.
15941 (start_psymtab): Remove global_psymbols and static_psymbols
15942 parameters.
15943
15944 2019-01-10 Tom Tromey <tom@tromey.com>
15945
15946 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15947 * psymtab.c (allocate_psymtab): Add comment.
15948 * psympriv.h (allocate_psymtab): Add comment.
15949 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15950 initializations.
15951 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15952
15953 2019-01-10 Tom Tromey <tom@tromey.com>
15954
15955 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15956 Don't declare.
15957 * mipsread.c: Include mdebugread.h.
15958 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15959 Declare.
15960 * elfread.c: Include mdebugread.h.
15961
15962 2019-01-09 Tom Tromey <tom@tromey.com>
15963
15964 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15965 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15966 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15967 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15968 (psym_lookup_symbol, psym_find_last_source_symtab)
15969 (psym_forget_cached_source_info, psym_print_stats)
15970 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15971 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15972 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15973 (psym_find_compunit_symtab_by_address)
15974 (maintenance_print_psymbols, maintenance_info_psymtabs)
15975 (maintenance_check_psymtabs): Use ranged for.
15976 * psymtab.h (class objfile_psymtabs): New.
15977 (require_partial_symbols): Return objfile_psymtabs.
15978 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15979
15980 2019-01-09 Tom Tromey <tom@tromey.com>
15981
15982 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15983 (find_pc_mapped_section, list_overlays_command)
15984 (map_overlay_command, unmap_overlay_command)
15985 (simple_overlay_update): Use all_objfiles.
15986 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15987 * printcmd.c (info_symbol_command): Use all_objfiles.
15988 * objfiles.h (ALL_OBJSECTIONS): Remove.
15989 * maint.c (maintenance_translate_address): Use all_objfiles.
15990 * gcore.c (gcore_create_callback): Use all_objfiles.
15991 (objfile_find_memory_regions): Likewise.
15992
15993 2019-01-09 Tom Tromey <tom@tromey.com>
15994
15995 * symtab.c (find_line_symtab, info_sources_command)
15996 (make_source_files_completion_list): Use objfile_compunits.
15997 * source.c (select_source_symtab): Use objfile_compunits.
15998 * objfiles.h (struct objfile): Update comment.
15999 (ALL_OBJFILES): Remove.
16000 (ALL_FILETABS): Remove.
16001 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16002 objfile_compunits.
16003
16004 2019-01-09 Tom Tromey <tom@tromey.com>
16005
16006 * symmisc.c (print_objfile_statistics, dump_objfile)
16007 (maintenance_print_symbols): Use compunit_filetabs.
16008 * source.c (forget_cached_source_info_for_objfile): Use
16009 compunit_filetabs.
16010 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16011 (ALL_FILETABS): Use compunit_filetabs.
16012 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16013 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16014
16015 2019-01-09 Tom Tromey <tom@tromey.com>
16016
16017 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16018 (compunit_filetabs): New.
16019 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16020 compunit_filetabs.
16021 (info_sources_command, make_source_files_completion_list): Remove
16022 declaration.
16023 * symmisc.c (print_objfile_statistics, dump_objfile)
16024 (maintenance_print_symbols): Remove declaration.
16025 (maintenance_info_symtabs): Use compunit_filetabs.
16026 (maintenance_info_line_tables): Likewise.
16027 * source.c (select_source_symtab): Change local variable name.
16028 (forget_cached_source_info_for_objfile): Remove declaration.
16029 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16030 * objfiles.c (objfile_relocate1): Remove declaration.
16031 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16032 declaration.
16033 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16034 * coffread.c (coff_symtab_read): Remove declaration.
16035 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16036 compunit_filetabs.
16037
16038 2019-01-09 Tom Tromey <tom@tromey.com>
16039
16040 * symtab.c (lookup_objfile_from_block)
16041 (find_pc_sect_compunit_symtab, search_symbols)
16042 (default_collect_symbol_completion_matches_break_on): Use
16043 objfile_compunits.
16044 * objfiles.h (ALL_COMPUNITS): Remove.
16045 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16046 * cp-support.c (add_symbol_overload_list_qualified): Use
16047 objfile_compunits.
16048 * ada-lang.c (ada_collect_symbol_completion_matches)
16049 (ada_add_global_exceptions): Use objfile_compunits.
16050
16051 2019-01-09 Tom Tromey <tom@tromey.com>
16052
16053 * source.c (select_source_symtab)
16054 (forget_cached_source_info_for_objfile): Remove declaration.
16055 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16056 declaration.
16057 * maint.c (count_symtabs_and_blocks): Remove declaration.
16058 * cp-support.c (add_symbol_overload_list_qualified): Remove
16059 declaration.
16060 * coffread.c (coff_symtab_read): Remove declaration.
16061 * symtab.c (lookup_symbol_in_objfile_symtabs)
16062 (basic_lookup_transparent_type_1): Use objfile_compunits.
16063 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16064 (info_sources_command, search_symbols)
16065 (default_collect_symbol_completion_matches_break_on)
16066 (make_source_files_completion_list): Remove declaration.
16067 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16068 (ada_collect_symbol_completion_matches)
16069 (ada_add_global_exceptions): Remove declaration.
16070 * linespec.c (iterate_over_all_matching_symtabs): Use
16071 objfile_compunits.
16072 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16073 (class objfile_compunits): New.
16074 (ALL_COMPUNITS): Use objfile_compunits.
16075 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16076 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16077 objfile_compunits.
16078 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16079
16080 2019-01-09 Tom Tromey <tom@tromey.com>
16081
16082 * symtab.c (search_symbols)
16083 (default_collect_symbol_completion_matches_break_on): Use
16084 objfile_msymbols.
16085 * ada-lang.c (ada_lookup_simple_minsym)
16086 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16087 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16088 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16089 objfile_msymbols.
16090 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16091 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16092 * objc-lang.c (find_methods): Use objfile_msymbols.
16093 (info_selectors_command, info_classes_command): Likewise.
16094 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16095 * objfiles.h (class objfile_msymbols): New.
16096 (ALL_OBJFILE_MSYMBOLS): Remove.
16097 (ALL_MSYMBOLS): Remove.
16098
16099 2019-01-09 Tom Tromey <tom@tromey.com>
16100
16101 * common/next-iterator.h (next_adapter): Add Iterator template
16102 parameter.
16103 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16104 (class all_objfiles_safe): New.
16105 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16106 * objfiles.c (put_objfile_before): Update comment.
16107 (add_separate_debug_objfile): Likewise.
16108 (free_all_objfiles): Use all_objfiles_safe.
16109 (objfile_purge_solibs): Likewise.
16110
16111 2019-01-09 Tom Tromey <tom@tromey.com>
16112
16113 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16114 (expand_symtab_containing_pc, lookup_static_symbol)
16115 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16116 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16117 all_objfiles.
16118 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16119 * breakpoint.c (create_overlay_event_breakpoint)
16120 (create_longjmp_master_breakpoint)
16121 (create_std_terminate_master_breakpoint)
16122 (create_exception_master_breakpoint): Use all_objfiles.
16123 * linux-thread-db.c (try_thread_db_load_from_pdir)
16124 (has_libpthread): Use all_objfiles.
16125 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16126 * linespec.c (iterate_over_all_matching_symtabs)
16127 (search_minsyms_for_name): Use all_objfiles.
16128 * maint.c (maintenance_info_sections): Use all_objfiles.
16129 * main.c (captured_main_1): Use all_objfiles.
16130 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16131 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16132 * guile/scm-pretty-print.c
16133 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16134 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16135 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16136 (maintenance_print_msymbols): Use all_objfiles.
16137 * source.c (select_source_symtab): Use all_objfiles.
16138 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16139 * symfile.c (remove_symbol_file_command)
16140 (expand_symtabs_matching, map_symbol_filenames): Use
16141 all_objfiles.
16142 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16143 all_objfiles.
16144 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16145 * objc-lang.c (find_methods): Use all_objfiles.
16146 * objfiles.c (have_partial_symbols, have_full_symbols)
16147 (have_minimal_symbols, qsort_cmp)
16148 (default_iterate_over_objfiles_in_search_order): Use
16149 all_objfiles.
16150 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16151 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16152 (maintenance_check_psymtabs): Use all_objfiles.
16153 (ALL_PSYMTABS): Remove.
16154 * compile/compile-object-run.c (do_module_cleanup): Use
16155 all_objfiles.
16156 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16157 * cp-support.c (add_symbol_overload_list_qualified): Use
16158 all_objfiles.
16159 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16160 Use all_objfiles.
16161 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16162 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16163 all_objfiles.
16164 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16165 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16166 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16167 Uses all_objfiles.
16168 * solib.c (solib_read_symbols): Use all_objfiles
16169
16170 2019-01-09 Tom Tromey <tom@tromey.com>
16171
16172 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16173 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16174 all_objfiles.
16175 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16176 * symmisc.c (print_symbol_bcache_statistics)
16177 (print_objfile_statistics, maintenance_print_objfiles)
16178 (maintenance_info_symtabs, maintenance_check_symtabs)
16179 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16180 all_objfiles.
16181 * source.c (forget_cached_source_info): Use all_objfiles.
16182 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16183 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16184 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16185 * objfiles.c (update_section_map): Use all_objfiles.
16186 (shared_objfile_contains_address_p): Likewise.
16187 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16188 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16189
16190 2019-01-09 Tom Tromey <tom@tromey.com>
16191
16192 * common/next-iterator.h: New file.
16193 * objfiles.h (class all_objfiles): New.
16194 (struct objfile_iterator): New.
16195
16196 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16197
16198 * NEWS: Move the description of the changed "frame", "select-frame",
16199 and "info frame" commands to the Changed commands section.
16200
16201 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16202
16203 * gdbtypes.c (check_stub_method_group): Remove handling of old
16204 mangling schemes.
16205 * linespec.c (find_methods): Likewise.
16206 * stabsread.c (read_member_functions): Likewise.
16207 * valops.c (search_struct_method): Likewise.
16208 (value_struct_elt_for_reference): Likewise.
16209 * NEWS: Mention this change.
16210
16211 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16212
16213 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16214 print_source_lines.
16215 * source.c (print_source_lines_base): Update line number check.
16216 (print_source_lines): New function.
16217 (source_lines_range::source_lines_range): New function.
16218 * source.h (class source_lines_range): New class.
16219 (print_source_lines): New declaration.
16220
16221 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16222
16223 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16224
16225 2019-01-08 Tom Tromey <tom@tromey.com>
16226 Simon Marchi <simon.marchi@ericsson.com>
16227
16228 PR gdb/24060
16229 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16230 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16231 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16232 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16233 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16234 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16235
16236 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16237
16238 * source.c (select_source_symtab): Move header comment to
16239 declaration in source.h.
16240 (forget_cached_source_info_for_objfile): Likewise.
16241 (forget_cached_source_info): Likewise.
16242 (identify_source_line): Likewise.
16243 * source.h (identify_source_line): Move declaration from symtab.h
16244 and add comment from source.c
16245 (print_source_lines): Likewise.
16246 (forget_cached_source_info_for_objfile): Likewise.
16247 (forget_cached_source_info): Likewise.
16248 (select_source_symtab): Likewise.
16249 (enum print_source_lines_flag): Move definition from symtab.h.
16250 * symtab.h (identify_source_line): Move declaration to source.h.
16251 (print_source_lines): Likewise.
16252 (forget_cached_source_info_for_objfile): Likewise.
16253 (forget_cached_source_info): Likewise.
16254 (select_source_symtab): Likewise.
16255 (enum print_source_lines_flag): Move definition to source.h.
16256 * tui/tui-hooks.c: Add 'source.h' include.
16257
16258 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16259
16260 * source.c (print_source_lines_base): Handle requests to print
16261 reverse line number sequences, and guard against empty lines
16262 string.
16263
16264 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16265
16266 * source.c (print_source_lines_base): Fix skip of '\r' if next
16267 character is '\n'.
16268
16269 2019-01-06 Tom Tromey <tom@tromey.com>
16270
16271 * c-exp.y (struct c_parse_state) <macro_original_text,
16272 expansion_obstack>: New member.
16273 (macro_original_text, expansion_obstack): Remove globals.
16274 (scan_macro_expansion, scanning_macro_expansion)
16275 (finished_macro_expansion): Update.
16276 (scan_macro_cleanup): Remove.
16277 (yylex, c_parse): Update.
16278
16279 2019-01-06 Tom Tromey <tom@tromey.com>
16280
16281 * c-exp.y (struct c_parse_state) <strings>: New member.
16282 (operator_stoken): Update.
16283
16284 2019-01-06 Tom Tromey <tom@tromey.com>
16285
16286 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16287 (union type_stack_elt) <typelist_val>: Now a pointer to
16288 std::vector.
16289 (type_stack_cleanup): Don't declare.
16290 (push_typelist): Update.
16291 * parse.c (pop_typelist): Return a std::vector.
16292 (push_typelist): Take a std::vector.
16293 (follow_types): Update. Do not free args.
16294 (type_stack_cleanup): Remove.
16295 * c-exp.y (struct c_parse_state): New.
16296 (cpstate): New global.
16297 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16298 (nonempty_typelist): Update.
16299 (func_mod): Create a new vector.
16300 (c_parse): Create a c_parse_state.
16301 (check_parameter_typelist): Do not delete params.
16302 (function_method): Update. Do not delete type_list.
16303
16304 2019-01-06 Tom Tromey <tom@tromey.com>
16305
16306 PR gdb/28155:
16307 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16308 check_typedef.
16309 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16310 (print_return_value): Likewise.
16311
16312 2019-01-05 Tom Tromey <tom@tromey.com>
16313
16314 * contrib/cleanup_check.py: Remove.
16315 * contrib/gcc-with-excheck: Remove.
16316 * contrib/exsummary.py: Remove.
16317 * contrib/excheck.py: Remove.
16318
16319 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16320
16321 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16322 NULL. Initialize tpprev to NULL instead of assigning it
16323 to NULL on the next statement.
16324 * windows-nat.c (windows_delete_thread): Remove check for
16325 main_thread_id before printing thread exit notifications.
16326 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16327 Remove thread ID check against main_thread_id.
16328 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16329 windows_delete_thread.
16330 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16331
16332 2019-01-04 Tom Tromey <tom@tromey.com>
16333
16334 * compile/compile.c (_initialize_compile): Use upper case for
16335 metasyntactic variables.
16336 * symmisc.c (_initialize_symmisc): Use upper case for
16337 metasyntactic variables.
16338 * psymtab.c (_initialize_psymtab): Use upper case for
16339 metasyntactic variables.
16340 * demangle.c (demangle_command): Use upper case for metasyntactic
16341 variables.
16342 (_initialize_demangler): Likewise.
16343 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16344 variables.
16345
16346 2019-01-03 Tom Tromey <tom@tromey.com>
16347
16348 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16349
16350 2019-01-03 Tom Tromey <tom@tromey.com>
16351
16352 * python/py-symtab.c (salpy_str): Update.
16353 (struct salpy_sal_object) <symtab>: Now a PyObject.
16354 (salpy_dealloc): Update.
16355 (del_objfile_sal): Use gdbpy_ref.
16356
16357 2019-01-03 Tom Tromey <tom@tromey.com>
16358
16359 * python/py-type.c (convert_field): Use new_reference. Return
16360 gdbpy_ref.
16361 (make_fielditem): Return gdbpy_ref.
16362 (typy_fields): Update.
16363 (typy_getitem): Update.
16364 (field_name): Return gdbpy_ref. Use new_reference.
16365 (typy_iterator_iternext): Update.
16366
16367 2019-01-03 Tom Tromey <tom@tromey.com>
16368
16369 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16370
16371 2019-01-03 Tom Tromey <tom@tromey.com>
16372
16373 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16374 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16375 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16376 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16377 (pspy_set_type_printers): Likewise.
16378 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16379 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16380 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16381 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16382 (objfpy_set_type_printers): Likewise.
16383
16384 2019-01-03 Tom Tromey <tom@tromey.com>
16385
16386 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16387 (gdbpy_print_stack): Use gdbpy_err_fetch.
16388 * python/python-internal.h (class gdbpy_err_fetch): New class.
16389 (class gdbpy_enter) <m_error_type, m_error_value,
16390 m_error_traceback>: Remove.
16391 <m_error>: New member.
16392 (gdbpy_exception_to_string): Don't declare.
16393 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16394 * python/py-value.c (convert_value_from_python): Use
16395 gdbpy_err_fetch.
16396 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16397 gdbpy_exception_to_string.
16398 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16399 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16400 gdbpy_err_fetch.
16401
16402 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16403
16404 * linux-nat.c (delete_lwp_cleanup): Delete.
16405 (struct lwp_deleter): New struct.
16406 (lwp_info_up): New typedef.
16407 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16408 lwp_info_up.
16409
16410 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16411
16412 * linux-fork.c (class scoped_switch_fork_info): New class.
16413 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16414
16415 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16416
16417 * valops.c (find_overload_match): Remove use of null_cleanup, and
16418 calls to do_cleanups.
16419
16420 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16421
16422 * compile/compile-cplus-types.c
16423 (compile_cplus_instance::decl_name): Handle changes to
16424 cp_func_name.
16425 * cp-support.c (cp_func_name): Update header comment, update
16426 return type.
16427 * cp-support.h (cp_func_name): Update return type in declaration.
16428 * valops.c (find_overload_match): Move temp_func local to top
16429 level of function and change its type. Use temp_func to hold and
16430 delete temporary string obtained from cp_func_name.
16431
16432 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16433
16434 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16435 gdb::char_vector, remove cleanup, and update uses of `msg`.
16436
16437 2019-01-03 Jim Wilson <jimw@sifive.com>
16438
16439 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16440
16441 2019-01-02 Tom Tromey <tom@tromey.com>
16442
16443 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16444 (tdesc_parse_xml): Remove cleanups.
16445 * target-descriptions.h (make_cleanup_free_target_description):
16446 Don't declare.
16447 (target_desc_deleter): New struct.
16448 (target_desc_up): New typedef.
16449 * target-descriptions.c (target_desc_deleter::operator()): Rename
16450 from free_target_description.
16451 (make_cleanup_free_target_description): Remove.
16452
16453 2019-01-02 Tom Tromey <tom@tromey.com>
16454
16455 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16456 constructor, destructor.
16457 (linespec_parser): Remove typedef.
16458 (~linespec_parser): Rename from linespec_parser_delete.
16459 (linespec_lex_to_end, linespec_complete_label)
16460 (linespec_complete): Update.
16461 (decode_line_full): Remove cleanups.
16462 (decode_line_1): Update.
16463
16464 2019-01-02 Tom Tromey <tom@tromey.com>
16465
16466 * python/python-internal.h (inferior_to_inferior_object): Change
16467 return type.
16468 * python/py-exitedevent.c (create_exited_event_object): Update.
16469 * python/py-inferior.c (inferior_to_inferior_object): Return
16470 gdbpy_ref.
16471 (python_new_inferior, python_inferior_deleted)
16472 (thread_to_thread_object, delete_thread_object)
16473 (build_inferior_list, gdbpy_selected_inferior): Update.
16474 * python/py-infthread.c (create_thread_object): Update. Also fail
16475 if inferior_to_inferior_object fails.
16476
16477 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16478
16479 * inferior.h (class inferior) <displaced_step_state>: New field.
16480 * infrun.h (struct displaced_step_state): Move here from
16481 infrun.c. Initialize fields, add constructor.
16482 <inf>: Remove field.
16483 <reset>: New method.
16484 * infrun.c (struct displaced_step_inferior_state): Move to
16485 infrun.h.
16486 (displaced_step_inferior_states): Remove.
16487 (get_displaced_stepping_state): Adust.
16488 (displaced_step_in_progress_any_inferior): Adjust.
16489 (displaced_step_in_progress_thread): Adjust.
16490 (displaced_step_in_progress): Adjust.
16491 (add_displaced_stepping_state): Remove.
16492 (get_displaced_step_closure_by_addr): Adjust.
16493 (remove_displaced_stepping_state): Remove.
16494 (infrun_inferior_exit): Call displaced_step_state.reset.
16495 (use_displaced_stepping): Don't check for NULL.
16496 (displaced_step_prepare_throw): Call
16497 get_displaced_stepping_state.
16498 (displaced_step_fixup): Don't check for NULL.
16499 (prepare_for_detach): Don't check for NULL.
16500
16501 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16502
16503 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16504 in case of call that did not complete.
16505
16506 2019-01-02 Andrey Utkin <autkin@undo.io>
16507
16508 * symfile.c (find_separate_debug_file): Fix search of debug files for
16509 remote debuggee.
16510
16511 2019-01-02 Tom Tromey <tom@tromey.com>
16512
16513 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16514 indentation.
16515 * python/py-frame.c (frapy_older): Remove cast.
16516 (frapy_newer): Likewise.
16517 * python/py-breakpoint.c (local_setattro): Remove cast.
16518 * python/py-arch.c (archpy_name): Remove local variable.
16519 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16520
16521 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16522
16523 * unittests/basic_string_view/element_access/char/empty.cc:
16524 Fix year range in copyright header.
16525
16526 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16527
16528 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16529 Delete.
16530 <operator==>: Update with for removed field.
16531 <hash>: Likewise.
16532 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16533 <isa_features>: ...this.
16534 <abi_features>: New field.
16535 (riscv_isa_flen): Update comment.
16536 (riscv_abi_xlen): New declaration.
16537 (riscv_abi_flen): New declaration.
16538 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16539 isa_features.
16540 (riscv_abi_xlen): New function.
16541 (riscv_isa_flen): Update to get answer from isa_features.
16542 (riscv_abi_flen): New function.
16543 (riscv_has_fp_abi): Update to get answer from abi_features.
16544 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16545 xlen and flen.
16546 (riscv_call_info) <xlen, flen>: Update comment.
16547 (riscv_call_arg_struct): Remove invalid assertions
16548 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16549 is removed.
16550 (riscv_gdbarch_init): Gather isa features and abi features
16551 separately, ensure both match on the gdbarch when reusing an old
16552 gdbarch. Relax an error check to allow 32-bit abi float to run on
16553 a target with 64-bit float hardware.
16554
16555 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16556
16557 * source.c (search_command_helper): Stop reverse search
16558 when line 1 has been searched.
16559
16560 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16561
16562 * record-full.c (record_full_base_target::close): Rewrite
16563 record_full_core_buf_list free logic.
16564
16565 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16566
16567 * break-catch-syscall.c (print_one_catch_syscall): xfree
16568 the last text.
16569
16570 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16571
16572 * top.c (print_gdb_version): Update Copyright year in version
16573 message.
16574
16575 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16576
16577 Update copyright year range in all GDB files.
16578
16579 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16580
16581 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16582
16583 For older changes see ChangeLog-2018.
16584 \f
16585 Local Variables:
16586 mode: change-log
16587 left-margin: 8
16588 fill-column: 74
16589 version-control: never
16590 coding: utf-8
16591 End:
16592
This page took 0.382289 seconds and 4 git commands to generate.