Ravenscar port for RISC-V
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-12-12 Tom Tromey <tromey@adacore.com>
2
3 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
4 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
5 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
6 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
7 * riscv-ravenscar-thread.c: New file.
8 * riscv-ravenscar-thread.h: New file.
9 * riscv-tdep.c (riscv_gdbarch_init): Call
10 register_riscv_ravenscar_ops.
11
12 2019-12-12 Tom Tromey <tromey@adacore.com>
13
14 * gdbsupport/thread-pool.c (set_thread_name): Use
15 ATTRIBUTE_UNUSED.
16
17 2019-12-12 Luis Machado <luis.machado@linaro.org>
18
19 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
20 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
21 macros.
22
23 2019-12-11 Tom Tromey <tom@tromey.com>
24
25 * tui/tui-win.c (tui_set_win_height_command): Call
26 tui_adjust_window_height.
27 (tui_adjust_win_heights, new_height_ok): Remove.
28 * tui/tui-layout.h (tui_adjust_window_height): Declare.
29 * tui/tui-layout.c (tui_adjust_window_height): New function.
30
31 2019-12-11 Tom Tromey <tom@tromey.com>
32
33 * tui/tui-win.c (tui_resize_all): Remove code, call
34 tui_apply_current_layout.
35
36 2019-12-11 Tom Tromey <tom@tromey.com>
37
38 * tui/tui-layout.h (tui_apply_current_layout): Declare.
39 * tui/tui-layout.c (standard_layouts, applied_layout): New
40 globals.
41 (tui_apply_current_layout): New function.
42 (show_layout): Set applied_layout. Call
43 tui_apply_current_layout.
44 (show_source_command, show_disasm_command)
45 (show_source_disasm_command, show_data)
46 (show_source_or_disasm_and_command): Remove.
47 (initialize_layouts): New function.
48 (_initialize_tui_layout): Call initialize_layouts.
49
50 2019-12-11 Tom Tromey <tom@tromey.com>
51
52 * tui/tui-layout.h (class tui_layout_base)
53 (class tui_layout_window, class tui_layout_split): New.
54 * tui/tui-layout.c (tui_get_window_by_name)
55 (tui_layout_window::clone, tui_layout_window::apply)
56 (tui_layout_window::get_sizes, tui_layout_window::add_split)
57 (tui_layout_split::add_window, tui_layout_split::clone)
58 (tui_layout_split::get_sizes)
59 (tui_layout_split::set_weights_from_heights)
60 (tui_layout_split::adjust_size, tui_layout_split::apply): New
61 functions.
62 (tui_layout_split::add_split, tui_layout_split::add_split)
63 (tui_layout_split::set_weights_from_heights)
64 (tui_layout_split::set_weights_from_heights): New functions.
65
66 2019-12-11 Tom Tromey <tom@tromey.com>
67
68 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
69 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
70 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
71 * tui/tui-data.h (struct tui_point): Remove.
72 (struct tui_gen_win_info) <origin>: Remove.
73 <x, y>: New fields.
74 * tui/tui-command.c (tui_cmd_window::resize): Update.
75
76 2019-12-11 Tom Tromey <tom@tromey.com>
77
78 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
79 Implement.
80 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
81 Implement.
82 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
83 method.
84 (struct tui_win_info) <min_height>: Implement.
85
86 2019-12-11 Tom Tromey <tom@tromey.com>
87
88 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
89 (struct tui_win_info) <can_box>: Update.
90
91 2019-12-11 Tom Tromey <tom@tromey.com>
92
93 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
94 method.
95 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
96 method.
97 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
98 method.
99 (struct tui_win_info) <max_height>: Now override.
100
101 2019-12-11 Joel Brobecker <brobecker@adacore.com>
102
103 * NEWS: Create a new section for the next release branch.
104 Rename the section of the current branch, now that it has
105 been cut.
106
107 2019-12-11 Joel Brobecker <brobecker@adacore.com>
108
109 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
110 * version.in: Bump version to 10.0.50.DATE-git.
111
112 2019-12-11 Tom Tromey <tromey@adacore.com>
113
114 PR build/25268:
115 * gdbsupport/thread-pool.c (set_thread_name): New function.
116 (thread_pool::set_thread_count): Don't call pthread_setname_np.
117 (thread_pool::thread_function): Call set_thread_name.
118
119 2019-12-11 Tom Tromey <tromey@adacore.com>
120
121 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
122 bfd_get_signed_8.
123
124 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
125
126 * NEWS: Document -raw-values option and the related setting commands.
127 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
128 only set it on when /r is given.
129 * valprint.c (value_print_option_defs): New element raw-values.
130 * Makefile.in: Add the new file.
131
132 2019-12-10 Christian Biesinger <cbiesinger@google.com>
133
134 * gdbsupport/safe-strerror.c: Supress the unused function warning
135 for select_strerror_r.
136
137 2019-12-10 Christian Biesinger <cbiesinger@google.com>
138
139 * config.in: Regenerate.
140 * configure: Regenerate.
141 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
142 safe_strerror instead of strerror.
143 * gdbsupport/common.m4: Don't check for strerror.
144 * gdbsupport/safe-strerror.c: Support both the glibc version
145 of strerror_r and the XSI version.
146
147 2019-12-10 Tom Tromey <tromey@adacore.com>
148
149 * ada-typeprint.c (print_choices): Use a single "?".
150 (print_variant_part): Print "?" if the discriminant name
151 is not known.
152
153 2019-12-10 George Barrett <bob@bob131.so>
154
155 Fix scripted probe breakpoints.
156 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
157 declaration forward.
158 (breakpoint_ops_for_event_location_type)
159 (breakpoint_ops_for_event_location): Add function definitions.
160 (break_command_1, trace_command): Use
161 breakpoint_ops_for_event_location.
162 * breakpoint.h (breakpoint_ops_for_event_location): Add function
163 declarations.
164 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
165 breakpoint_ops_for_event_location.
166 * python/py-breakpoint.c (bppy_init): Use
167 breakpoint_ops_for_event_location.
168
169 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
170
171 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
172 when ranking an lvalue argument for an rvalue parameter.
173
174 2019-12-08 Wataru Ashihara <wataash@wataash.com>
175
176 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
177 template argument for scoped_restore_tmpl from bool to int.
178
179 2019-12-07 Keith Seitz <keiths@redhat.com>
180
181 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
182 (build_id_to_debug_bfd): Make static, rewriting to use
183 build_id_to_bfd_suffix.
184 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
185 adding `suffix' parameter. Append SUFFIX to file names
186 when searching for matching files.
187 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
188 (build_id_to_exec_bfd): Likewise.
189 * build-id.h (build_id_to_debug_bfd): Clarify that function
190 searches for BFD of debug info file.
191 (build_id_to_exec_bfd): Declare.
192 * corelow.c: Include build-id.h.
193 (locate_exec_from_corefile_build_id): New function.
194 (core_target_open): If no executable BFD is found,
195 search for a core file BFD using build-id.
196
197 2019-12-06 Christian Biesinger <cbiesinger@google.com>
198
199 * bcache.c: Put in namespace gdb.
200 * bcache.h: Likewise.
201 * gdbtypes.c (check_types_worklist): Update.
202 (types_deeply_equal): Update.
203 * macrotab.c (struct macro_table) <bcache>: Update.
204 (new_macro_table): Update.
205 * macrotab.h (struct bcache): Put this forward declaration
206 inside namespace gdb.
207 (new_macro_table): Update.
208 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
209 Update.
210 <macro_cache>: Update.
211 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
212
213 2019-12-06 Tom de Vries <tdevries@suse.de>
214
215 PR symtab/24971
216 * block.c (best_symbol, better_symbol): New function.
217 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
218 decl.
219
220 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
221
222 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
223 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
224 for ranking see-through reference cases.
225
226 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
227 * stack.c (faas_command): Check a command is provided.
228 * thread.c (taas_command, tfaas_command): Likewise.
229
230 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
231 * inferior.c (prune_inferiors): Only call delete_inferior,
232 Do not modify the inferior list.
233
234 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
235
236 * c-exp.y: Update calls to lookup_typename,
237 lookup_signed_typename and lookup_unsigned_typename.
238 * c-lang.c (evaluate_subexp_c): Likewise.
239 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
240 Likewise.
241 * eval.c (binop_promote): Likewise.
242 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
243 (lookup_unsigned_typename): Likewise.
244 (lookup_signed_typename): Likewise.
245 * gdbtypes.h (lookup_unsigned_typename): Likewise.
246 (lookup_signed_typename): Likewise.
247 (lookup_typename): Likewise.
248 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
249 lookup_typename, lookup_signed_typename,
250 lookup_unsigned_typename.
251 * m2-exp.y: Likewise.
252 * printcmd.c (printf_wide_c_string): Likewise.
253 (ui_printf): Likewise.
254 * python/py-type.c (typy_lookup_typename): Likewise.
255 * python/py-xmethods.c (python_xmethod_worker::invoke):
256 Likewise.
257 * rust-exp.y: Likewise.
258
259 2019-12-04 Christian Biesinger <cbiesinger@google.com>
260
261 * configure.nat (obsd64): Add missing files x86-nat.o and
262 nat/x86-dregs.o.
263
264 2019-12-04 Tom Tromey <tom@tromey.com>
265
266 * valprint.c (val_print_string): Use metadata_style.
267 * go-valprint.c (print_go_string): Use metadata style.
268 * p-valprint.c (pascal_object_print_static_field): Use metadata
269 style.
270 * cp-valprint.c (cp_print_static_field): Use metadata style.
271
272 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
273 Chris January <chris.january@arm.com>
274
275 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
276 tokens.
277 (typebase): New patterns for complex, single/double precision, and
278 single/double complex.
279 (f77_keywords): Change token for complex keyword, and add single,
280 double, and precision keywords.
281
282 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
283
284 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
285 "info io_registers".
286
287 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
288
289 * regcache.c (cooked_read_test): Initialize thread list of
290 mock_inferior.
291
292 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
293
294 * aarch64-linux-tdep.c: Remove includes.
295
296 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
297
298 * aarch64-tdep.c: Remove includes.
299
300 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
301
302 * filtered-iterator.h (filtered_iterator) <operator==,
303 operator!=>: Compare wrapped iterators, not wrapped pointers.
304 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
305 unittests/filtered_iterator-selftests.c.
306 * unittests/filtered_iterator-selftests.c: New file.
307
308 2019-12-04 Tom Tromey <tromey@adacore.com>
309
310 * gdbtypes.c (create_range_type): Inherit endianity
311 from base type.
312
313 2019-12-04 Tom Tromey <tromey@adacore.com>
314
315 * ada-lang.c (decode_constrained_packed_array)
316 (ada_value_assign, value_assign_to_component): Update.
317 * dwarf2loc.c (rw_pieced_value, access_memory)
318 (dwarf2_compile_expr_to_ax): Update.
319 * dwarf2read.c (dwarf2_add_field): Update.
320 * eval.c (evaluate_subexp_standard): Update.
321 * gdbarch.c, gdbarch.h: Rebuild.
322 * gdbarch.sh (bits_big_endian): Remove.
323 * gdbtypes.h (union field_location): Update comment.
324 * target-descriptions.c (make_gdb_type): Update.
325 * valarith.c (value_bit_index): Update.
326 * value.c (struct value) <bitpos>: Update comment.
327 (unpack_bits_as_long, modify_field): Update.
328 * value.h (value_bitpos): Update comment.
329
330 2019-12-04 Tom Tromey <tromey@adacore.com>
331
332 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
333 endian-ness.
334
335 2019-12-04 Tom Tromey <tromey@adacore.com>
336
337 * dwarf2read.c (dwarf2_init_float_type)
338 (dwarf2_init_complex_target_type): Add byte_order parameter.
339 (read_base_type): Compute byte order earlier.
340 * gdbtypes.c (init_float_type): Add byte_order parameter.
341 * gdbtypes.h (init_float_type): Add byte_order parameter.
342
343 2019-12-04 Tom Tromey <tromey@adacore.com>
344
345 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
346
347 2019-12-04 Tom Tromey <tromey@adacore.com>
348
349 * dwarf2read.c (process_structure_scope): Initialize
350 "discr_offset".
351
352 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
353
354 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
355 add it into the search spec.
356 (parse_max_results_option): New function.
357 (mi_info_functions_or_variables): Parse -max-results flag and pass
358 it to mi_symbol_info.
359 (mi_cmd_symbol_info_modules): Likewise.
360 (mi_cmd_symbol_info_types): Likewise.
361 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
362 return type to bool, change result container into a set, and don't
363 add new results if we have enough already.
364 (global_symbol_searcher::add_matching_msymbols): Change return
365 type to bool, and don't add new results if we have enough already.
366 (sort_search_symbols_remove_dups): Delete.
367 (global_symbol_searcher::search): Early exit from search loop when
368 we have enough results. Use a std::set to collect the results
369 from calling add_matching_symbols.
370 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
371 member function.
372 (global_symbol_searcher) <m_max_search_results>: New member
373 variable.
374 (global_symbol_searcher) <add_matching_symbols>: Update header
375 comment and change return type to bool.
376 (global_symbol_searcher) <add_matching_msymbols>: Update header
377 comment and change return type to bool.
378
379 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
380
381 * symtab.c (symbol_search::compare_search_syms): Update header
382 comment.
383 (global_symbol_searcher::is_suitable_msymbol): New function.
384 (global_symbol_searcher::expand_symtabs): New function.
385 (global_symbol_searcher::add_matching_symbols): New function.
386 (global_symbol_searcher::add_matching_msymbols): New function.
387 (global_symbol_searcher::search): Move most of the content
388 into the new functions above, and call them as needed.
389 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
390 function.
391 (global_symbol_searcher) <add_matching_symbols>: New member
392 function.
393 (global_symbol_searcher) <add_matching_msymbols>: New member
394 function.
395 (global_symbol_searcher) <is_suitable_msymbol>: New member
396 function.
397
398 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
399
400 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
401 -symbol-info-module-variables entries.
402 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
403 (mi_cmd_symbol_info_module_variables): Declare.
404 * mi/mi-symbol-cmds.c
405 (module_symbol_search_iterator): New typedef.
406 (output_module_symbols_in_single_module_and_file): New function.
407 (output_module_symbols_in_single_module): New function.
408 (mi_info_module_functions_or_variables): New function.
409 (mi_cmd_symbol_info_module_functions): New function.
410 (mi_cmd_symbol_info_module_variables): New function.
411 * NEWS: Mention new MI command.
412
413 2019-12-03 Christian Biesinger <cbiesinger@google.com>
414
415 * bcache.c (hash): Remove.
416 (hash_continue): Remove.
417 * bcache.h (hash): Remove.
418 (hash_continue): Remove.
419 (struct bcache) <ctor>: Update.
420 * psymtab.c (psymbol_hash): Update.
421 * stabsread.c (hashname): Update.
422 * utils.h (fast_hash): Add an argument for a start value,
423 defaulting to zero.
424
425 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
426 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
427 (destroy_block_symbol_cache): New function.
428 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
429 (resize_symbol_cache): Likewise.
430
431 2019-12-02 Tom Tromey <tom@tromey.com>
432
433 * unittests/tui-selftests.c (run_tests): Make conditional.
434 (_initialize_tui_selftest): Make conditional.
435
436 2019-12-02 Christian Biesinger <cbiesinger@google.com>
437
438 * aix-thread.c (debug_aix_thread): Change type to bool.
439
440 2019-12-02 Luis Machado <luis.machado@linaro.org>
441
442 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
443
444 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
445
446 * dwarf2read.c (read_tag_string_type): Read the fields required to
447 make a dynamic string, and possibly create a dynamic range for the
448 string.
449 (attr_to_dynamic_prop): Setup is_reference based on the type of
450 attribute being processed.
451 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
452 (resolve_dynamic_array): Rename to...
453 (resolve_dynamic_array_or_string): ...this, update header comment,
454 and accept TYPE_CODE_STRING.
455 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
456
457 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
458
459 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
460 of its implementation from...
461 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
462 the new function.
463
464 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
465
466 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
467 create a range with stride where appropriate.
468 * f-valprint.c: Include 'gdbarch.h'.
469 (f77_print_array_1): Take the stride into account when walking the
470 array. Also convert the stride into addressable units.
471 * gdbtypes.c (create_range_type): Initialise the stride to
472 constant zero.
473 (create_range_type_with_stride): New function, initialise the
474 range as normal, and then setup the stride.
475 (has_static_range): Include the stride here. Also change the
476 return type to bool.
477 (create_array_type_with_stride): Consider the range stride if the
478 array isn't given its own stride.
479 (resolve_dynamic_range): Resolve the stride if needed.
480 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
481 (struct range_bounds) <flag_is_byte_stride>: New member variable.
482 (TYPE_BIT_STRIDE): Define.
483 (TYPE_ARRAY_BIT_STRIDE): Define.
484 (create_range_type_with_stride): Declare.
485 * valarith.c (value_subscripted_rvalue): Take range stride into
486 account when walking the array.
487
488 2019-12-01 Tom Tromey <tom@tromey.com>
489
490 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
491 specially.
492
493 2019-12-01 Tom Tromey <tom@tromey.com>
494
495 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
496 \0.
497 * unittests/tui-selftests.c: New file.
498 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
499
500 2019-12-01 Tom Tromey <tom@tromey.com>
501
502 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
503
504 2019-12-01 Tom Tromey <tom@tromey.com>
505
506 * NEWS: Document new settings.
507 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
508 * tui/tui-win.c (_initialize_tui_win): Add border style
509 observers.
510 * tui/tui-io.h (tui_apply_style): Declare.
511 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
512 longer static.
513 (apply_ansi_escape, tui_set_reverse_mode): Update.
514 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
515 Add "skip_intensity" parameter.
516 <changed>: New member.
517 <do_set_value>: Declare.
518 (tui_border_style, tui_active_border_style): Declare.
519 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
520 globals.
521 (cli_style_option): Initialize "changed".
522 (cli_style_option::do_set_value): New function.
523 (cli_style_option::add_setshow_commands): Add "skip_intensity"
524 parameter. Update.
525 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
526 (_initialize_cli_style): Update. Create TUI border style
527 commands.
528
529 2019-12-01 Tom Tromey <tom@tromey.com>
530
531 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
532 parameter.
533 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
534 parameter.
535 * tui/tui-win.h (compact_source): Declare.
536 * tui/tui-win.c (compact_source): New global.
537 (tui_set_compact_source, tui_show_compact_source): New functions.
538 (_initialize_tui_win): Add "compact-source" setting.
539 * tui/tui-source.c (tui_source_window::set_contents): Handle
540 compact_source setting.
541 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
542 * NEWS: Document new setting.
543
544 2019-11-30 Tom Tromey <tom@tromey.com>
545
546 * dwarf2read.c (dwarf2_add_field): Include field offset when
547 computing variant part length.
548
549 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
550 * NEWS: Mention define-prefix. Tell that command names can now
551 contain a . character.
552
553 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
554
555 * command.h (valid_cmd_char_p): Declare.
556 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
557 the check of valid command char.
558 (find_command_name_length, valid_user_defined_cmd_name_p): Use
559 valid_cmd_char_p.
560 * cli/cli-script.c (validate_comname): Likewise.
561 * completer.c (gdb_completer_command_word_break_characters):
562 Do not remove . from the word break char, update comments.
563 (complete_line_internal_1): Use valid_cmd_char_p.
564 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
565 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
566
567 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
568
569 * cli/cli-script.c (do_define_command): Ensure a redefined
570 prefix command is kept as a prefix command.
571 (define_prefix_command): New function.
572 (show_user_1): Report user defined prefixes.
573 (_initialize_cli_script): Create the new 'define-prefix' command.
574 Add completers for 'define' and 'document'.
575 * top.c (execute_command): If command is a user-defined prefix only
576 command, report the list of commands for this prefix command.
577
578 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
579
580 * valops.c (find_oload_champ): Improve debug output.
581
582 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
583
584 * valops.c (find_oload_champ): Print part of debug messages
585 before the badness vector is std::move'd.
586
587 2019-11-28 Tom Tromey <tom@tromey.com>
588
589 * value.c (creal_internal_fn): Fix comment.
590
591 2019-11-28 Tom Tromey <tom@tromey.com>
592
593 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
594 flag_bound_evaluated>: Now unsigned.
595
596 2019-11-28 Tom Tromey <tom@tromey.com>
597
598 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
599 declare.
600
601 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
602
603 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
604 debug output.
605 * jit.c (jit_unregister_code): Add debug print to match
606 `jit_register_code`.
607
608 2019-11-27 Christian Biesinger <cbiesinger@google.com>
609
610 * NEWS: Mention the new multithreaded symbol loading.
611
612 2019-11-27 Christian Biesinger <cbiesinger@google.com>
613
614 * maint.c (n_worker_threads): Default to 0.
615 (worker_threads_disabled): New function.
616 * maint.h (worker_threads_disabled): New function.
617 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
618 here if worker_threads_disabled () is true.
619 (minimal_symbol_reader::install): Skip all threading if
620 worker_threads_disabled () is true.
621
622 2019-11-27 Christian Biesinger <cbiesinger@google.com>
623
624 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
625 hash code if possible.
626 (add_minsym_to_demangled_hash_table): Likewise.
627 (minimal_symbol_reader::install): Compute the hash codes for msymbol
628 on the background thread.
629 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
630 Add these fields.
631
632 2019-11-27 Christian Biesinger <cbiesinger@google.com>
633
634 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
635 of the mangled name on the background thread.
636 * symtab.c (symbol_set_names): Allow passing in the hash of the
637 linkage_name.
638 * symtab.h (symbol_set_names): Likewise.
639
640 2019-11-27 Kevin Buettner <kevinb@redhat.com>
641
642 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
643 physnames are computed for inherited DIEs.
644
645 2019-11-27 Tom Tromey <tromey@adacore.com>
646
647 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
648 backslashes.
649 * cp-support.c: Remove unnecessary backslashes.
650
651 2019-11-27 Christian Biesinger <cbiesinger@google.com>
652
653 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
654 with sym->set_linkage_name.
655 * coffread.c (coff_read_enum_type): Likewise.
656 * mdebugread.c (parse_symbol): Likewise.
657 * stabsread.c (patch_block_stabs): Likewise.
658 (define_symbol): Likewise.
659 (read_enum_type): Likewise.
660 (common_block_end): Likewise.
661 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
662 function.
663 (SYMBOL_SET_LINKAGE_NAME): Remove.
664 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
665 with sym->set_linkage_name.
666
667 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
668
669 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
670 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
671 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
672 * NEWS: Mention new MI command.
673
674 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
675
676 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
677 '-symbol-info-types', and '-symbol-info-variables'.
678 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
679 (mi_cmd_symbol_info_types): Declare.
680 (mi_cmd_symbol_info_variables): Declare.
681 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
682 (output_debug_symbol): New function.
683 (output_nondebug_symbol): New function.
684 (mi_symbol_info): New function.
685 (mi_info_functions_or_variables): New function.
686 (mi_cmd_symbol_info_functions): New function.
687 (mi_cmd_symbol_info_types): New function.
688 (mi_cmd_symbol_info_variables): New function.
689 * NEWS: Mention new commands.
690
691 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
692
693 * symtab.c (symbol_to_info_string): New function, most content
694 moved from print_symbol_info, but updated to return a std::string.
695 (print_symbol_info): Update to use symbol_to_info_string and print
696 returned string.
697 * symtab.h (symbol_to_info_string): Declare new function.
698
699 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
700
701 * python/python.c (gdbpy_rbreak): Convert to using
702 global_symbol_searcher.
703 * symtab.c (file_matches): Convert return type to bool, change
704 file list to std::vector, update header comment.
705 (search_symbols): Rename to...
706 (global_symbol_searcher::search): ...this and update now its
707 a member function of global_symbol_searcher. Take account of the
708 changes to file_matches.
709 (symtab_symbol_info): Convert to using global_symbol_searcher.
710 (rbreak_command): Likewise.
711 (search_module_symbols): Likewise.
712 * symtab.h (enum symbol_search): Update comment.
713 (search_symbols): Remove declaration.
714 (class global_symbol_searcher): New class.
715
716 2019-11-26 Tom Tromey <tromey@adacore.com>
717
718 * cp-support.c (_initialize_cp_support): Conditionally initialize
719 gdb_demangle_attempt_core_dump.
720
721 2019-11-26 Tom Tromey <tom@tromey.com>
722
723 * python/py-function.c (fnpy_init): Update.
724 * value.h (add_internal_function): Adjust declaration.
725 * value.c (function_destroyer): Remove.
726 (do_add_internal_function): Don't set destroyer or copy name.
727 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
728 Set name_allocated.
729 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
730 (cmdpy_init): Set name_allocated.
731 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
732 member.
733 (~cmd_list_element): Free "name" if needed.
734
735 2019-11-26 Tom Tromey <tom@tromey.com>
736
737 * value.h (add_internal_function): Add new overload. Move
738 documentation from value.h.
739 * value.c (do_add_internal_function): New function.
740 (add_internal_function): Use it. Add new overload.
741 (function_destroyer): Don't free doc.
742 * python/py-function.c (fnpy_init): Update.
743
744 2019-11-26 Tom Tromey <tom@tromey.com>
745
746 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
747 (cmdpy_init): Set "doc_allocated".
748
749 2019-11-26 Tom Tromey <tom@tromey.com>
750
751 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
752 name of worker thread.
753 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
754 pthread_setname_np.
755 * configure, config.in: Rebuild.
756
757 2019-11-26 Tom Tromey <tom@tromey.com>
758
759 * python/python.c (class gdbpy_gil): New.
760 (struct gdbpy_event): Add constructor, destructor, operator().
761 (gdbpy_post_event): Use run_on_main_thread.
762 (gdbpy_initialize_events): Remove.
763 (do_start_initialization): Update.
764
765 2019-11-26 Tom Tromey <tom@tromey.com>
766
767 * NEWS: Add entry.
768 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
769 commands. Call update_thread_pool_size.
770 (update_thread_pool_size, maintenance_set_worker_threads): New
771 functions.
772 (n_worker_threads): New global.
773
774 2019-11-26 Christian Biesinger <cbiesinger@google.com>
775 Tom Tromey <tom@tromey.com>
776
777 * minsyms.c (minimal_symbol_reader::install): Use
778 parallel_for_each.
779 * gdbsupport/parallel-for.h: New file.
780 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
781
782 2019-11-26 Christian Biesinger <cbiesinger@google.com>
783 Tom Tromey <tom@tromey.com>
784
785 * gdbsupport/thread-pool.h: New file.
786 * gdbsupport/thread-pool.c: New file.
787 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
788 (HFILES_NO_SRCDIR): Add thread-pool.h.
789
790 2019-11-26 Tom Tromey <tom@tromey.com>
791
792 * event-top.h (thread_local_segv_handler): Declare.
793 * event-top.c (thread_local_segv_handler): New global.
794 (install_handle_sigsegv, handle_sigsegv): New functions.
795 (async_init_signals): Install SIGSEGV handler.
796 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
797 thread-local.
798 (report_failed_demangle): New function.
799 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
800 handler-setting code, instead use segv_handler. Run warning code
801 on main thread.
802
803 2019-11-26 Tom Tromey <tom@tromey.com>
804
805 * run-on-main-thread.c: New file.
806 * run-on-main-thread.h: New file.
807 * unittests/main-thread-selftests.c: New file.
808 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
809 main-thread-selftests.c.
810 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
811 (COMMON_SFILES): Add run-on-main-thread.c.
812
813 2019-11-26 Tom Tromey <tom@tromey.com>
814
815 * main.c (setup_alternate_signal_stack): Remove.
816 (captured_main_1): Use gdb::alternate_signal_stack.
817 * gdbsupport/alt-stack.h: New file.
818
819 2019-11-26 Tom Tromey <tom@tromey.com>
820
821 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
822 Remove comment.
823 (save_original_signals_state, restore_original_signals_state): Use
824 gdb_sigmask.
825 * linux-nat.c (block_child_signals, restore_child_signals_mask)
826 (_initialize_linux_nat): Use gdb_sigmask.
827 * guile/guile.c (_initialize_guile): Use block_signals.
828 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
829 * gdbsupport/gdb-sigmask.h: New file.
830 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
831 * cp-support.c (gdb_demangle): Use gdb_sigmask.
832 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
833 pthread_sigmask.
834 * configure, config.in: Rebuild.
835 * gdbsupport/block-signals.h: New file.
836
837 2019-11-26 Tom Tromey <tom@tromey.com>
838
839 * acinclude.m4: Include ax_pthread.m4.
840 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
841 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
842 (CLIBS): Use PTHREAD_LIBS.
843 (aclocal_m4_deps): Add ax_pthread.m4.
844 * config.in, configure: Rebuild.
845 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
846
847 2019-11-26 Tom Tromey <tom@tromey.com>
848
849 * symtab.h (struct minimal_symbol) <name_set>: New member.
850 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
851 Don't call symbol_set_names.
852 (minimal_symbol_reader::install): Call symbol_set_names.
853
854 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
855
856 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
857 restore_active_ext_lang, as GIL is needed for (indirectly)
858 called PyOS_InterruptOccurred.
859
860 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
861
862 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
863 definition.
864
865 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
866
867 * remote-sim.c (simulator_command): Make static, remove
868 declaration.
869
870 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
871
872 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
873 static.
874 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
875 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
876 (main): Likewise.
877 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
878 (main): Likewise.
879 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
880 (main): Likewise.
881 * unittests/basic_string_view/element_access/char/1.cc (test01):
882 Likewise.
883 (main): Likewise.
884 * unittests/basic_string_view/element_access/char/empty.cc (main):
885 Likewise.
886 * unittests/basic_string_view/element_access/char/front_back.cc
887 (test01): Likewise.
888 (main): Likewise.
889 * unittests/basic_string_view/inserters/char/2.cc (test05):
890 Likewise.
891 (main): Likewise.
892 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
893 (test01): Likewise.
894 (main): Likewise.
895 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
896 (test01): Likewise.
897 (main): Likewise.
898 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
899 Likewise.
900 * unittests/basic_string_view/operations/compare/char/1.cc
901 (test01): Likewise.
902 (main): Likewise.
903 * unittests/basic_string_view/operations/compare/char/13650.cc
904 (test01): Likewise.
905 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
906 Likewise.
907 (main): Likewise.
908 * unittests/basic_string_view/operations/data/char/1.cc (test01):
909 Likewise.
910 (main): Likewise.
911 * unittests/basic_string_view/operations/find/char/1.cc (test01):
912 Likewise.
913 (main): Likewise.
914 * unittests/basic_string_view/operations/find/char/2.cc (test02):
915 Likewise.
916 (main): Likewise.
917 * unittests/basic_string_view/operations/find/char/3.cc (test03):
918 Likewise.
919 (main): Likewise.
920 * unittests/basic_string_view/operations/find/char/4.cc (main):
921 Likewise.
922 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
923 Likewise.
924 (main): Likewise.
925 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
926 Likewise.
927 (main): Likewise.
928 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
929 Likewise.
930 (main): Likewise.
931 * unittests/basic_string_view/operations/substr/char/1.cc
932 (test01): Likewise.
933 (main): Likewise.
934 * unittests/basic_string_view/operators/char/2.cc (main):
935 Likewise.
936 * unittests/optional/assignment/1.cc (test): Likewise.
937 * unittests/optional/assignment/2.cc (test): Likewise.
938 * unittests/optional/assignment/3.cc (test): Likewise.
939 * unittests/optional/assignment/4.cc (test): Likewise.
940 * unittests/optional/assignment/5.cc (test): Likewise.
941 * unittests/optional/assignment/6.cc (test): Likewise.
942 * unittests/optional/assignment/7.cc (test): Likewise.
943 * unittests/optional/cons/copy.cc (test): Likewise.
944 * unittests/optional/cons/default.cc (test): Likewise.
945 * unittests/optional/cons/move.cc (test): Likewise.
946 * unittests/optional/cons/value.cc (test): Likewise.
947 * unittests/optional/in_place.cc (test): Likewise.
948 * unittests/optional/observers/1.cc (test): Likewise.
949 * unittests/optional/observers/2.cc (test): Likewise.
950
951 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
952
953 * tui-win.h (tui_set_var_cmd): Remove.
954 * tui-win.c (tui_set_var_cmd): Make static.
955
956 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
957
958 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
959 rbreak_command_wrapper): Remove.
960 * symtab.c (rbreak_command_wrapper): Remove.
961
962 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
963
964 * inferior.h (info_terminal_command): Remove declaration.
965 * inflow.c (info_terminal_command): Make static.
966
967 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
968
969 * inferior.c (exit_inferior_silent): Remove.
970
971 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
972
973 * dictionary.c (dict_empty, mdict_empty): Remove.
974 * dictionary.c (mdict_empty): Remove.
975
976 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
977
978 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
979 (arc_insn_get_memory_offset): Likewise.
980 (arc_insn_dump): Likewise.
981 * cp-support.c (test_cp_symbol_name_matches): Likewise.
982 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
983 * dictionary.c (dict_iterator_next): Likewise.
984 (dict_iter_match_first): Likewise.
985 (dict_iter_match_next): Likewise.
986 * f-lang.c (evaluate_subexp_f): Likewise.
987 * hppa-tdep.c (hppa_read_pc): Likewise.
988 * i386-tdep.c (i386_floatformat_for_type): Likewise.
989 * parse.c (write_exp_elt_msym): Likewise.
990 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
991 * remote.c (remote_packet_size): Likewise.
992 (remote_notif_stop_parse): Likewise.
993 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
994 * s12z-tdep.c (s12z_disassemble_info): Likewise.
995 * source.c (prepare_path_for_appending): Likewise.
996 * sparc64-linux-tdep.c
997 (sparc64_linux_handle_segmentation_fault); Likewise.
998 * stack.c (frame_selection_by_function_completer): Likewise.
999
1000 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1001
1002 * completer.c (set_gdb_completion_word_break_characters):
1003 Remove.
1004
1005 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1006
1007 * dwarf-index-write.c: Include dwarf-index-write.h.
1008 * mi/mi-interp.c: Include mi/mi-interp.h.
1009
1010 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1011
1012 * aarch32-tdep.c: Include aarch32-tdep.h.
1013 * aarch32-tdep.h: Forward-declare struct target_desc.
1014
1015 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1016
1017 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1018 strerror.
1019 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1020 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1021
1022 2019-11-25 Tom de Vries <tdevries@suse.de>
1023
1024 * contrib/words.sh: Add -c option.
1025
1026 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1027
1028 * solib.c (solib_find_1): Change int to bool.
1029 (exec_file_find): Change int to bool.
1030 (solib_find): Change int to bool.
1031 (solib_read_symbols): Change int to bool.
1032 (solib_used): Change int to bool.
1033 (solib_add): Change int to bool.
1034 (info_sharedlibrary_command): Change int to bool.
1035 (solib_contains_address_p): Change int to bool.
1036 (solib_keep_data_in_core): Change int to bool.
1037 (in_solib_dynsym_resolve_code): Change int to bool.
1038 (reload_shared_libraries_1): Change int to bool.
1039 (gdb_sysroot_changed): Change int to bool.
1040 * solib.h (solib_read_symbols): Change int to bool.
1041 (solib_contains_address_p): Change int to bool.
1042 (solib_keep_data_in_core): Change int to bool.
1043 (in_solib_dynsym_resolve_code): Change int to bool.
1044 (libpthread_name_p): Change int to bool.
1045
1046 2019-11-25 Luis Machado <luis.machado@linaro.org>
1047
1048 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1049 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1050 (remote_packet_max_chars): New static global.
1051 (show_remote_packet_max_chars): New function.
1052 (remote_target::putpkt_binary): Adjust to use new
1053 remote_packet_max_chars option.
1054 (remote_target::getpkt_or_notif_sane_1): Likewise.
1055 (_initialize_remote): Register new remote-packet-max-chars option.
1056
1057 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1058
1059 * m68k-linux-nat.c: Include gdbarch.h.
1060
1061 2019-11-24 Tom Tromey <tom@tromey.com>
1062
1063 * symfile.c (read_symbols): Update.
1064 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1065 bool.
1066 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1067 (psym_lookup_symbol, psym_find_last_source_symtab)
1068 (psym_forget_cached_source_info, psym_print_stats)
1069 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1070 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1071 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1072 (psym_find_compunit_symtab_by_address)
1073 (maintenance_print_psymbols, maintenance_info_psymtabs)
1074 (maintenance_check_psymtabs): Update.
1075 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1076 bool.
1077
1078 2019-11-22 Tom Tromey <tom@tromey.com>
1079
1080 * observable.h: Update comments.
1081
1082 2019-11-22 Tom Tromey <tromey@adacore.com>
1083
1084 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1085 (print_ada_task_info): Don't try to fetch thread id if task is not
1086 alive.
1087
1088 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1089
1090 * ada-exp.y: Update.
1091 * ada-lang.c (sort_choices): Update.
1092 (ada_print_symbol_signature): Update.
1093 (resolve_subexp): Update.
1094 (ada_parse_renaming): Update.
1095 (ada_read_renaming_var_value): Update.
1096 (lesseq_defined_than): Update.
1097 (remove_extra_symbols): Update.
1098 (remove_irrelevant_renamings): Update.
1099 (ada_add_block_symbols): Update.
1100 (ada_collect_symbol_completion_matches): Update.
1101 (ada_is_renaming_symbol): Update.
1102 (aggregate_assign_from_choices): Update.
1103 (ada_evaluate_subexp): Update.
1104 (ada_has_this_exception_support): Update.
1105 (ada_is_non_standard_exception_sym): Update.
1106 (ada_add_exceptions_from_frame): Update.
1107 (ada_add_global_exceptions): Update.
1108 (ada_print_subexp): Update.
1109 * ax-gdb.c (gen_var_ref): Update.
1110 (gen_maybe_namespace_elt): Update.
1111 (gen_expr_for_cast): Update.
1112 (gen_expr): Update.
1113 * block.h: Update.
1114 * blockframe.c (find_pc_partial_function): Update.
1115 * breakpoint.c (print_breakpoint_location): Update.
1116 (update_static_tracepoint): Update.
1117 * btrace.c (ftrace_print_function_name): Update.
1118 (ftrace_function_switched): Update.
1119 * buildsym.c (find_symbol_in_list): Update.
1120 * c-exp.y: Update.
1121 * c-typeprint.c (c_print_typedef): Update.
1122 (c_type_print_template_args): Update.
1123 * cli/cli-cmds.c (edit_command): Update.
1124 (list_command): Update.
1125 (print_sal_location): Update.
1126 * coffread.c (patch_opaque_types): Update.
1127 (process_coff_symbol): Update.
1128 (coff_read_enum_type): Update.
1129 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1130 (convert_one_symbol): Update.
1131 (hash_symname): Update.
1132 (eq_symname): Update.
1133 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1134 * compile/compile-cplus-types.c (debug_print_scope): Update.
1135 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1136 * compile/compile-object-load.c (get_out_value_type): Update.
1137 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1138 (search_symbol_list): Update.
1139 (cp_lookup_symbol_imports_or_template): Update.
1140 * cp-support.c (overload_list_add_symbol): Update.
1141 * ctfread.c (psymtab_to_symtab): Update.
1142 * dbxread.c (cp_set_block_scope): Update.
1143 * dictionary.c (iter_match_first_hashed): Update.
1144 (iter_match_next_hashed): Update.
1145 (insert_symbol_hashed): Update.
1146 (iter_match_next_linear): Update.
1147 * dictionary.h: Update.
1148 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1149 (locexpr_describe_location_piece): Update.
1150 (locexpr_describe_location_1): Update.
1151 (locexpr_generate_c_location): Update.
1152 (loclist_describe_location): Update.
1153 (loclist_generate_c_location): Update.
1154 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1155 (read_func_scope): Update.
1156 (process_enumeration_scope): Update.
1157 (new_symbol): Update.
1158 (dwarf2_const_value): Update.
1159 (dwarf2_symbol_mark_computed): Update.
1160 * eval.c (evaluate_funcall): Update.
1161 (evaluate_subexp_standard): Update.
1162 * expprint.c (print_subexp_standard): Update.
1163 (dump_subexp_body_standard): Update.
1164 * f-valprint.c (info_common_command_for_block): Update.
1165 * findvar.c (get_hosting_frame): Update.
1166 (default_read_var_value): Update.
1167 * go-lang.c (go_symbol_package_name): Update.
1168 * guile/scm-block.c (bkscm_print_block_smob): Update.
1169 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1170 (gdbscm_symbol_name): Update.
1171 (gdbscm_symbol_linkage_name): Update.
1172 (gdbscm_symbol_print_name): Update.
1173 * infcall.c (get_function_name): Update.
1174 * infcmd.c (jump_command): Update.
1175 (finish_command): Update.
1176 * infrun.c (insert_exception_resume_breakpoint): Update.
1177 * linespec.c (canonicalize_linespec): Update.
1178 (create_sals_line_offset): Update.
1179 (convert_linespec_to_sals): Update.
1180 (complete_label): Update.
1181 (find_label_symbols_in_block): Update.
1182 * m2-typeprint.c (m2_print_typedef): Update.
1183 * mdebugread.c (mdebug_reg_to_regnum): Update.
1184 (parse_symbol): Update.
1185 (mylookup_symbol): Update.
1186 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1187 (list_args_or_locals): Update.
1188 * objc-lang.c (compare_selectors): Update.
1189 (info_selectors_command): Update.
1190 (compare_classes): Update.
1191 (info_classes_command): Update.
1192 (find_imps): Update.
1193 * p-typeprint.c (pascal_print_typedef): Update.
1194 * printcmd.c (build_address_symbolic): Update.
1195 (info_address_command): Update.
1196 (print_variable_and_value): Update.
1197 * python/py-framefilter.c (extract_sym): Update.
1198 (py_print_single_arg): Update.
1199 * python/py-symbol.c (sympy_str): Update.
1200 (sympy_get_name): Update.
1201 (sympy_get_linkage_name): Update.
1202 * python/python.c (gdbpy_rbreak): Update.
1203 * record-btrace.c (btrace_get_bfun_name): Update.
1204 (btrace_call_history): Update.
1205 * rust-lang.c (rust_print_typedef): Update.
1206 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1207 * stabsread.c (stab_reg_to_regnum): Update.
1208 (define_symbol): Update.
1209 (read_enum_type): Update.
1210 (common_block_end): Update.
1211 (cleanup_undefined_types_1): Update.
1212 (scan_file_globals): Update.
1213 * stack.c (print_frame_arg): Update.
1214 (print_frame_args): Update.
1215 (find_frame_funname): Update.
1216 (info_frame_command_core): Update.
1217 (iterate_over_block_locals): Update.
1218 (print_block_frame_labels): Update.
1219 (do_print_variable_and_value): Update.
1220 (iterate_over_block_arg_vars): Update.
1221 (return_command): Update.
1222 * symmisc.c (dump_symtab_1): Update.
1223 (print_symbol): Update.
1224 * symtab.c (eq_symbol_entry): Update.
1225 (symbol_cache_dump): Update.
1226 (lookup_language_this): Update.
1227 (find_pc_sect_line): Update.
1228 (skip_prologue_sal): Update.
1229 (symbol_search::compare_search_syms): Update.
1230 (treg_matches_sym_type_name): Update.
1231 (search_symbols): Update.
1232 (print_symbol_info): Update.
1233 (rbreak_command): Update.
1234 (completion_list_add_symbol): Update.
1235 (find_gnu_ifunc): Update.
1236 (get_symbol_address): Update.
1237 (search_module_symbols): Update.
1238 (info_module_subcommand): Update.
1239 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1240 (SYMBOL_LINKAGE_NAME): Remove.
1241 (SYMBOL_DEMANGLED_NAME): Remove.
1242 (SYMBOL_PRINT_NAME): Remove.
1243 (SYMBOL_SEARCH_NAME): Remove.
1244 * tracepoint.c (set_traceframe_context): Update.
1245 (validate_actionline): Update.
1246 (collection_list::collect_symbol): Update.
1247 (encode_actions_1): Update.
1248 (info_scope_command): Update.
1249 (print_one_static_tracepoint_marker): Update.
1250 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1251 * valops.c (address_of_variable): Update.
1252 (find_overload_match): Update.
1253 (find_oload_champ): Update.
1254
1255 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1256
1257 * ada-lang.c (ada_lookup_simple_minsym): Update.
1258 (ada_collect_symbol_completion_matches): Update.
1259 * ada-tasks.c (read_atcb): Update.
1260 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1261 (amd64_windows_skip_trampoline_code): Update.
1262 * arm-tdep.c (skip_prologue_function): Update.
1263 (arm_skip_stack_protector): Update.
1264 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1265 (arm_wince_skip_main_prologue): Update.
1266 * ax-gdb.c (gen_expr): Update.
1267 * block.c (call_site_for_pc): Update.
1268 * blockframe.c (find_pc_partial_function): Update.
1269 * breakpoint.c (set_breakpoint_location_function): Update.
1270 * btrace.c (ftrace_print_function_name): Update.
1271 (ftrace_function_switched): Update.
1272 * c-valprint.c (print_unpacked_pointer): Update.
1273 * coffread.c (coff_symfile_read): Update.
1274 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1275 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1276 * dwarf-index-write.c (write_psymbols): Update.
1277 * dwarf2loc.c (call_site_to_target_addr): Update.
1278 (func_verify_no_selftailcall): Update.
1279 (tailcall_dump): Update.
1280 (call_site_find_chain_1): Update.
1281 (dwarf_expr_reg_to_entry_parameter): Update.
1282 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1283 * eval.c (evaluate_funcall): Update.
1284 (evaluate_subexp_standard): Update.
1285 (evaluate_subexp_for_sizeof): Update.
1286 * expprint.c (print_subexp_standard): Update.
1287 (dump_subexp_body_standard): Update.
1288 * frame.c (get_prev_frame_always_1): Update.
1289 * frv-tdep.c (frv_skip_main_prologue): Update.
1290 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1291 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1292 (gnuv3_get_typename_from_type_info): Update.
1293 (gnuv3_skip_trampoline): Update.
1294 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1295 * i386-tdep.c (i386_skip_main_prologue): Update.
1296 (i386_pe_skip_trampoline_code): Update.
1297 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1298 * infcall.c (get_function_name): Update.
1299 * linespec.c (minsym_found): Update.
1300 * linux-fork.c (info_checkpoints_command): Update.
1301 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1302 (m32c_m16c_pointer_to_address): Update.
1303 * maint.c (maintenance_translate_address): Update.
1304 * minsyms.c (add_minsym_to_hash_table): Update.
1305 (add_minsym_to_demangled_hash_table): Update.
1306 (lookup_minimal_symbol_mangled): Update.
1307 (lookup_minimal_symbol_demangled): Update.
1308 (lookup_minimal_symbol_linkage): Update.
1309 (lookup_minimal_symbol_text): Update.
1310 (lookup_minimal_symbol_by_pc_name): Update.
1311 (minimal_symbol_is_less_than): Update.
1312 (compact_minimal_symbols): Update.
1313 (build_minimal_symbol_hash_tables): Update.
1314 (find_solib_trampoline_target): Update.
1315 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1316 (mips_skip_pic_trampoline_code): Update.
1317 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1318 * objc-lang.c (info_selectors_command): Update.
1319 (info_classes_command): Update.
1320 (find_methods): Update.
1321 (find_imps): Update.
1322 * p-valprint.c (pascal_val_print): Update.
1323 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1324 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1325 * printcmd.c (build_address_symbolic): Update.
1326 (info_symbol_command): Update.
1327 * psymtab.c (psymbol_name_matches): Update.
1328 (match_partial_symbol): Update.
1329 (lookup_partial_symbol): Update.
1330 (print_partial_symbols): Update.
1331 (sort_pst_symbols): Update.
1332 (maintenance_check_psymtabs): Update.
1333 * python/py-framefilter.c (py_print_frame): Update.
1334 * python/python.c (gdbpy_rbreak): Update.
1335 * record-btrace.c (btrace_get_bfun_name): Update.
1336 (btrace_call_history): Update.
1337 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1338 (rs6000_skip_trampoline_code): Update.
1339 * sol-thread.c (info_cb): Update.
1340 * stabsread.c (scan_file_globals): Update.
1341 * stack.c (find_frame_funname): Update.
1342 (info_frame_command_core): Update.
1343 * symmisc.c (dump_msymbols): Update.
1344 * symtab.c (symbol_natural_name): Rename to..,
1345 (general_symbol_info::natural_name): ...this.
1346 (symbol_demangled_name): Rename to...
1347 (general_symbol_info::demangled_name): ...this.
1348 (symbol_search_name): Rename to...
1349 (general_symbol_info::search_name): ...this.
1350 (symbol_matches_search_name): Update.
1351 (find_pc_sect_line): Update.
1352 (skip_prologue_sal): Update.
1353 (search_symbols): Update.
1354 (print_msymbol_info): Update.
1355 (rbreak_command): Update.
1356 (completion_list_add_msymbol): Update.
1357 (completion_list_objc_symbol): Update.
1358 (get_msymbol_address): Update.
1359 * symtab.h (struct general_symbol_info): Add member functions
1360 natural_name (), linkage_name (), print_name (), demangled_name (),
1361 and search_name ().
1362 (SYMBOL_NATURAL_NAME): Update.
1363 (symbol_natural_name): Move to a member function on general_symbol_info.
1364 (SYMBOL_DEMANGLED_NAME): Update.
1365 (symbol_demangled_name): Move to a member function on
1366 general_symbol_info.
1367 (SYMBOL_SEARCH_NAME): Update.
1368 (symbol_search_name): Move to a member function on general_symbol_info.
1369 (MSYMBOL_NATURAL_NAME): Remove.
1370 (MSYMBOL_LINKAGE_NAME): Remove.
1371 (MSYMBOL_PRINT_NAME): Remove.
1372 (MSYMBOL_DEMANGLED_NAME): Remove.
1373 (MSYMBOL_SEARCH_NAME): Remove.
1374 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1375
1376 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1377
1378 * symtab.c (create_demangled_names_hash): Use per_bfd->
1379 minimal_symbol_count for computing the initial size, if greater
1380 than our default size.
1381
1382 2019-11-22 Tom de Vries <tdevries@suse.de>
1383
1384 * contrib/words.sh: Improve words extraction.
1385
1386 2019-11-22 Tom de Vries <tdevries@suse.de>
1387
1388 * contrib/words.sh: Combine sed invocations.
1389
1390 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1391
1392 * Makefile.in: Update.
1393 * demangle.c: Rename to...
1394 * gdb-demangle.c: ..this.
1395 (is_cplus_marker): Change return type to bool.
1396 (_initialize_demangler): Rename to...
1397 (_initialize_gdb_demangle): ...this.
1398 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1399 * symtab.h (demangle): Remove declaration; instead include
1400 gdb-demangle.h.
1401
1402 2019-11-21 Tom Tromey <tromey@adacore.com>
1403
1404 * gdbsupport/format.c (format_pieces): Parse %I64d.
1405 * unittests/format_pieces-selftests.c (test_windows_formats): New
1406 function.
1407 (run_tests): Call it.
1408
1409 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1410
1411 Byte reverse display of variables with DW_END_big, DW_END_little
1412 (DW_AT_endianity) dwarf attributes if different than the native
1413 byte order.
1414 * ada-lang.c (ada_value_binop):
1415 Use type_byte_order instead of gdbarch_byte_order.
1416 * ada-valprint.c (printstr):
1417 (ada_val_print_string):
1418 * ada-lang.c (value_pointer):
1419 (ada_value_binop):
1420 Use type_byte_order instead of gdbarch_byte_order.
1421 * c-lang.c (c_get_string):
1422 Use type_byte_order instead of gdbarch_byte_order.
1423 * c-valprint.c (c_val_print_array):
1424 Use type_byte_order instead of gdbarch_byte_order.
1425 * cp-valprint.c (cp_print_class_member):
1426 Use type_byte_order instead of gdbarch_byte_order.
1427 * dwarf2loc.c (rw_pieced_value):
1428 Use type_byte_order instead of gdbarch_byte_order.
1429 * dwarf2read.c (read_base_type): Handle DW_END_big,
1430 DW_END_little
1431 * f-lang.c (f_get_encoding):
1432 Use type_byte_order instead of gdbarch_byte_order.
1433 * findvar.c (default_read_var_value):
1434 Use type_byte_order instead of gdbarch_byte_order.
1435 * gdbtypes.c (check_types_equal):
1436 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1437 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1438 and TYPE_ENDIANITY_LITTLE if set.
1439 (type_byte_order): new function.
1440 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1441 (struct main_type) <flag_endianity_not_default>:
1442 New field.
1443 (type_byte_order): New function.
1444 * infcmd.c (default_print_one_register_info):
1445 Use type_byte_order instead of gdbarch_byte_order.
1446 * p-lang.c (pascal_printstr):
1447 Use type_byte_order instead of gdbarch_byte_order.
1448 * p-valprint.c (pascal_val_print):
1449 Use type_byte_order instead of gdbarch_byte_order.
1450 * printcmd.c (print_scalar_formatted):
1451 Use type_byte_order instead of gdbarch_byte_order.
1452 * solib-darwin.c (darwin_current_sos):
1453 Use type_byte_order instead of gdbarch_byte_order.
1454 * solib-svr4.c (solib_svr4_r_ldsomap):
1455 Use type_byte_order instead of gdbarch_byte_order.
1456 * stap-probe.c (stap_modify_semaphore):
1457 Use type_byte_order instead of gdbarch_byte_order.
1458 * target-float.c (target_float_same_format_p):
1459 Use type_byte_order instead of gdbarch_byte_order.
1460 * valarith.c (scalar_binop):
1461 (value_bit_index):
1462 Use type_byte_order instead of gdbarch_byte_order.
1463 * valops.c (value_cast):
1464 Use type_byte_order instead of gdbarch_byte_order.
1465 * valprint.c (generic_emit_char):
1466 (generic_printstr):
1467 (val_print_string):
1468 Use type_byte_order instead of gdbarch_byte_order.
1469 * value.c (unpack_long):
1470 (unpack_bits_as_long):
1471 (unpack_value_bitfield):
1472 (modify_field):
1473 (pack_long):
1474 (pack_unsigned_long):
1475 Use type_byte_order instead of gdbarch_byte_order.
1476 * findvar.c (unsigned_pointer_to_address):
1477 (signed_pointer_to_address):
1478 (unsigned_address_to_pointer):
1479 (address_to_signed_pointer):
1480 (default_read_var_value):
1481 (default_value_from_register):
1482 Use type_byte_order instead of gdbarch_byte_order.
1483 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1484 Use type_byte_order instead of gdbarch_byte_order.
1485 * riscv-tdep.c (riscv_print_one_register_info):
1486 Use type_byte_order instead of gdbarch_byte_order.
1487
1488 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1489
1490 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1491 (current_ui_gdb_stdin_ptr): Likewise.
1492 (current_ui_gdb_stderr_ptr): Likewise.
1493 (current_ui_gdb_stdlog_ptr): Likewise.
1494 (current_ui_current_uiout_ptr): Likewise.
1495 (gen_ret_current_ui_field_ptr): Remove.
1496
1497 2019-11-21 Tom de Vries <tdevries@suse.de>
1498
1499 PR gdb/24956
1500 * cli/cli-script.c (execute_control_command): Only switch to
1501 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1502
1503 2019-11-19 Tom Tromey <tom@tromey.com>
1504
1505 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1506 Now static. Change type of "name".
1507 (tui_set_win_height_command): Don't copy "arg".
1508 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1509 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1510
1511 2019-11-19 Ali Tamur <tamur@google.com>
1512
1513 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1514 "if (attr != nullptr)".
1515 (dwarf2_find_base_address): Likewise.
1516 (dwarf2_build_include_psymtabs): Likewise.
1517 (read_cutu_die_from_dwo): Likewise.
1518 (read_func_scope): Likewise.
1519 (read_call_site_scope): Likewise.
1520 (dwarf2_get_pc_bounds): Likewise.
1521 (dwarf2_record_block_ranges): Likewise.
1522 (dwarf2_add_field): Likewise.
1523 (dwarf2_add_member_fn): Likewise.
1524 (read_structure_type): Likewise.
1525 (read_enumeration_type): Likewise.
1526 (read_array_type): Likewise.
1527 (read_array_order): Likewise.
1528 (read_set_type): Likewise.
1529 (read_common_block): Likewise.
1530 (read_tag_reference_type): Likewise.
1531 (read_tag_string_type): Likewise.
1532 (read_subroutine_type): Likewise.
1533 (read_base_type): Likewise.
1534 (read_subrange_type): Likewise.
1535 (new_symbol): Likewise.
1536 (prepare_one_comp_unit): Likewise.
1537
1538 2019-11-19 Tom Tromey <tromey@adacore.com>
1539
1540 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1541 result in error when DebugActiveProcess fails.
1542
1543 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1544 Pedro Alves <palves@redhat.com>
1545
1546 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1547 * target.c (target_stack::push): Call 'unpush' if there's a
1548 target on top of the stack.
1549
1550 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1551
1552 * python/py-block.c (blpy_dealloc): Call tp_free.
1553 (blpy_block_syms_dealloc): Likewise.
1554 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1555 * python/py-inferior.c (infpy_dealloc): Likewise.
1556 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1557 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1558 * python/py-symbol.c (sympy_dealloc): Likewise.
1559 * python/py-symtab.c (stpy_dealloc): Likewise.
1560 * python/py-type.c (typy_iterator_dealloc): Likewise.
1561
1562 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1563
1564 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1565 constructor instead of using a class initializer.
1566
1567 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1568
1569 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1570 * configure: Regenerate.
1571 * configure.ac: Don't source common.host.
1572 * gdbsupport/common.host: Remove.
1573 * gdbsupport/mingw-strerror.c: Remove.
1574 * gdbsupport/posix-strerror.c: Rename to...
1575 * gdbsupport/safe-strerror.c: ...this.
1576
1577 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1578
1579 * maint.c (scoped_command_stats::print_time): Use localtime_r
1580 instead of localtime (provided through gnulib if necessary).
1581 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1582 of ctime.
1583
1584 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1585
1586 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1587 avoid compile errors.
1588
1589 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1590
1591 * config.in: Regenerate.
1592 * configure: Regenerate.
1593 * gdbsupport/common.m4: No longer check for strerror_r.
1594 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1595 POSIX version of strerror_r, now that gnulib provides it if
1596 necessary.
1597
1598 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1599
1600 * README (`configure' options): Update.
1601
1602 2019-11-14 Tom Tromey <tromey@adacore.com>
1603
1604 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1605 expected type for the RHS if the LHS is a convenience variable.
1606
1607 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1608
1609 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1610 Provide explicit default and copy constructor.
1611
1612 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1613
1614 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1615 only call Py_INCREF (newbp) in the bppy_pending_object case.
1616
1617 2019-11-13 Tom Tromey <tromey@adacore.com>
1618
1619 PR build/25182:
1620 * psympriv.h (partial_symbol): Remove static assert.
1621 * symtab.h (general_symbol_info, symbol): Remove static assert.
1622
1623 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1624
1625 * gdbsupport/format.c (format_pieces::format_pieces): Support
1626 printf 'z' size modifier.
1627 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1628 * printcmd.c (ui_printf): Handle size_t_arg.
1629 * ui-out.c (ui_out::vmessage): Likewise.
1630 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1631 function.
1632 (run_tests): Call test_format_int_sizes.
1633
1634 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1635
1636 * ada-exp.y (write_ambiguous_var): Update.
1637 * buildsym.c (add_symbol_to_list): Update.
1638 * dwarf2read.c (read_variable): Update.
1639 (new_symbol): Update.
1640 * jit.c (finalize_symtab): Update.
1641 * language.c (language_alloc_type_symbol): Update.
1642 * symtab.c (fixup_symbol_section): Update.
1643 (initialize_objfile_symbol_1): Move code to...
1644 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1645 (allocate_symbol): Update.
1646 (allocate_template_symbol): Update.
1647 (get_symbol_address): Update.
1648 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1649 of having as a field, and add a constructor.
1650 (SYMBOL_VALUE): Update.
1651 (SYMBOL_VALUE_ADDRESS): Update.
1652 (SET_SYMBOL_VALUE_ADDRESS): Update.
1653 (SYMBOL_VALUE_BYTES): Update.
1654 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1655 (SYMBOL_BLOCK_VALUE): Update.
1656 (SYMBOL_VALUE_CHAIN): Update.
1657 (SYMBOL_LANGUAGE): Update.
1658 (SYMBOL_SECTION): Update.
1659 (SYMBOL_OBJ_SECTION): Update.
1660 (SYMBOL_SET_LANGUAGE): Update.
1661 (SYMBOL_SET_LINKAGE_NAME): Update.
1662 (SYMBOL_SET_NAMES): Update.
1663 (SYMBOL_NATURAL_NAME): Update.
1664 (SYMBOL_LINKAGE_NAME): Update.
1665 (SYMBOL_DEMANGLED_NAME): Update.
1666 (SYMBOL_SEARCH_NAME): Update.
1667 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1668 (struct symbol): Update.
1669 (struct template_symbol): Update.
1670 (struct rust_vtable_symbol): Update.
1671 * xcoffread.c (SYMBOL_DUP): Update.
1672
1673 2019-11-12 Tom Tromey <tom@tromey.com>
1674
1675 * tui/tui-layout.c (show_layout): Set current_layout.
1676 (show_source_disasm_command, show_data)
1677 (show_source_or_disasm_and_command): Don't set current_layout.
1678
1679 2019-11-12 Tom Tromey <tom@tromey.com>
1680
1681 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1682
1683 2019-11-12 Tom Tromey <tom@tromey.com>
1684
1685 * tui/tui-win.c (resize_message): New global.
1686 (show_tui_resize_message): New function.
1687 (tui_async_resize_screen): Print message if requested.
1688 (_initialize_tui_win): Add tui-resize-message setting.
1689 * NEWS: Add entry for new commands.
1690
1691 2019-11-11 Tom Tromey <tom@tromey.com>
1692
1693 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1694 functions.
1695
1696 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1697
1698 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1699
1700 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1701
1702 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1703 function.
1704 * python/python-internal.h (gdbpy_lookup_static_symbols):
1705 Declare new function.
1706 * python/python.c (python_GdbMethods): Add
1707 gdb.lookup_static_symbols method.
1708 * NEWS: Mention gdb.lookup_static_symbols.
1709
1710 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1711
1712 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1713 static block of current object file first. Also fix typo in
1714 header comment.
1715
1716 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1717
1718 * stack.c (set_last_displayed_sal): Delete.
1719 (last_displayed_sal_valid): Delete.
1720 (last_displayed_pspace): Delete.
1721 (last_displayed_addr): Delete.
1722 (last_displayed_symtab): Delete.
1723 (last_displayed_line): Delete.
1724 (class last_displayed_symtab_info_type): New.
1725 (last_displayed_symtab_info): New static global variable.
1726 (print_frame_info): Call methods on last_displayed_symtab_info.
1727 (clear_last_displayed_sal): Update header comment, and make use of
1728 last_displayed_symtab_info.
1729 (last_displayed_sal_is_valid): Likewise.
1730 (get_last_displayed_pspace): Likewise.
1731 (get_last_displayed_addr): Likewise.
1732 (get_last_displayed_symtab): Likewise.
1733 (get_last_displayed_line): Likewise.
1734 (get_last_displayed_sal): Likewise.
1735 * stack.h (clear_last_displayed_sal): Update header comment.
1736 (last_displayed_sal_is_valid): Likewise.
1737 (get_last_displayed_pspace): Likewise.
1738 (get_last_displayed_addr): Likewise.
1739 (get_last_displayed_symtab): Likewise.
1740 (get_last_displayed_line): Likewise.
1741 (get_last_displayed_sal): Likewise.
1742
1743 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1744
1745 * stack.c (frame_show_address): Convert return type to bool.
1746 * stack.h (frame_show_address): Likewise, and update header
1747 comment.
1748
1749 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1750
1751 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1752 * unittests/vec-utils-selftests.c: New file.
1753 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1754
1755 2019-11-10 Tom Tromey <tom@tromey.com>
1756
1757 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1758 (tui_highlight_win): Likewise.
1759 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1760 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1761 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1762 Don't set can_highlight.
1763
1764 2019-11-10 Tom Tromey <tom@tromey.com>
1765
1766 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1767 Remove unused declaration.
1768
1769 2019-11-08 Tom Tromey <tromey@adacore.com>
1770
1771 * top.c (read_command_file): Update.
1772 (command_line_input): Make return type const.
1773 * python/py-gdb-readline.c: Update.
1774 * linespec.c (decode_line_2): Update.
1775 * defs.h (command_line_input): Make return type const.
1776 * cli/cli-script.c (read_next_line): Make return type const.
1777 * ada-lang.c (get_selections): Update.
1778
1779 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1780
1781 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1782 * mi/mi-main.c (output_cores): Likewise.
1783 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1784 (linux_xfer_osdata_modules): Likewise.
1785 * remote.c (register_remote_support_xml): Likewise.
1786 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1787 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1788
1789 2019-11-06 Tom Tromey <tom@tromey.com>
1790
1791 * tui/tui-interp.c: Don't include readline.h.
1792 * tui/tui-hooks.c: Don't include readline.h.
1793 * symmisc.c: Include tilde.h, not readline.h.
1794 * symfile.c: Include tilde.h, not readline.h.
1795 * source.c: Include tilde.h, not readline.h.
1796 * solib.c: Include tilde.h, not readline.h.
1797 * psymtab.c: Include tilde.h, not readline.h.
1798 * exec.c: Include tilde.h, not readline.h.
1799 * corelow.c: Include tilde.h, not readline.h.
1800 * cli/cli-dump.c: Include tilde.h, not readline.h.
1801 * cli/cli-cmds.c: Don't include readline.h.
1802
1803 2019-11-05 Tom Tromey <tom@tromey.com>
1804
1805 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1806 (tui_disassemble): Set addr_size.
1807 (tui_disasm_window::set_contents): Use addr_size.
1808
1809 2019-11-05 Tom Tromey <tom@tromey.com>
1810
1811 * rust-lang.c (rust_language_defn): Update.
1812 * python/py-value.c (valpy_string): Call c_get_string.
1813 * p-lang.c (pascal_language_defn): Update.
1814 * opencl-lang.c (opencl_language_defn): Update.
1815 * objc-lang.c (objc_language_defn): Update.
1816 * m2-lang.c (m2_language_defn): Update.
1817 * language.c (unknown_language_defn, auto_language_defn): Update.
1818 (default_get_string): Remove.
1819 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1820 * go-lang.c (go_language_defn): Update.
1821 * f-lang.c (f_language_defn): Update.
1822 * d-lang.c (d_language_defn): Update.
1823 * c-lang.c (c_language_defn, cplus_language_defn)
1824 (asm_language_defn, minimal_language_defn): Update.
1825 * ada-lang.c (ada_language_defn): Update.
1826 * language.h (struct language_defn) <la_get_string>: Remove.
1827 (LA_GET_STRING): Remove.
1828 (default_get_string): Don't declare.
1829
1830 2019-11-05 Tom Tromey <tom@tromey.com>
1831
1832 * tui/tui-source.h (struct tui_source_window): Inline
1833 constructor. Remove destructor.
1834 <style_changed, m_observable>: Move to superclass.
1835 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1836 (struct tui_source_window_base): Move private members to end.
1837 <style_changed, m_observable>: Move from tui_source_window.
1838 * tui/tui-winsource.c (tui_copy_source_line): Move from
1839 tui-source.c. Rename from copy_source_line. Add special handling
1840 for negative line number.
1841 (tui_source_window_base::style_changed): Move from
1842 tui_source_window.
1843 (tui_source_window_base): Register observer.
1844 (~tui_source_window_base): New.
1845 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1846 rename.
1847 (tui_source_window::set_contents): Use tui_copy_source_line.
1848 (tui_source_window::tui_source_window): Move to tui-source.h.
1849 (tui_source_window::~tui_source_window): Remove.
1850 (tui_source_window::style_changed): Move to superclass.
1851 * tui/tui-disasm.c (tui_disassemble): Create string file with
1852 styling, when possible. Add "addr_size" parameter.
1853 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1854 Don't compute maximum size.
1855 (len_without_escapes): New function
1856
1857 2019-11-05 Tom Tromey <tom@tromey.com>
1858
1859 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1860 std::string.
1861 * tui/tui-winsource.c (tui_show_source_line): Update.
1862 * tui/tui-source.c (tui_source_window::set_contents): Update.
1863 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1864
1865 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1866
1867 * symtab.h (gdb_static_assert): Put && operator at the beginning
1868 of the line instead of the end.
1869
1870 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1871
1872 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1873 and sizeof (symbol).
1874 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1875
1876 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1877
1878 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1879 * configure.host: Mark *-*-solaris2.10* obsolete.
1880 * configure.tgt: Mark Solaris < 11 obsolete.
1881 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1882 Update target triplet.
1883
1884 2019-11-01 Tom Tromey <tromey@adacore.com>
1885
1886 * utils.c (print_sys_errmsg): Simplify.
1887
1888 2019-11-01 Tom Tromey <tromey@adacore.com>
1889
1890 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1891
1892 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1893
1894 * configure: Regenerate.
1895 * configure.ac: Remove check for strerror_r.
1896 * gdbsupport/common.m4: Check for strerror_r.
1897
1898 2019-11-01 Luis Machado <luis.machado@linaro.org>
1899
1900 PR gdb/25124
1901
1902 * arm-tdep.c (arm_per_objfile): Rename to ...
1903 (arm_per_bfd): ... this.
1904 (arm_objfile_data_key): Rename to ...
1905 (arm_bfd_data_key): ... this.
1906 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1907 data.
1908 (arm_record_special_symbol): Likewise.
1909
1910 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1911
1912 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1913 end.
1914 * c-typeprint.c (c_print_typedef): Likewise.
1915 * f-typeprint.c (f_print_typedef): Likewise.
1916 * m2-typeprint.c (m2_print_typedef): Likewise.
1917 * p-typeprint.c (pascal_print_typedef): Likewise.
1918 * rust-lang.c (rust_print_typedef): Likewise.
1919 * symtab.c (print_symbol_info): Print a newline after calling
1920 typedef_print.
1921
1922 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1923
1924 * symtab.c (info_module_cmdlist): New variable.
1925 (info_module_command): New function.
1926 (search_module_symbols): New function.
1927 (info_module_subcommand): New function.
1928 (struct info_modules_var_func_options): New struct.
1929 (info_modules_var_func_options_defs): New variable.
1930 (make_info_modules_var_func_options_def_group): New function.
1931 (info_module_functions_command): New function.
1932 (info_module_variables_command): New function.
1933 (info_module_var_func_command_completer): New function.
1934 (_initialize_symtab): Register new 'info module functions' and
1935 'info module variables' commands.
1936 * symtab.h (typedef symbol_search_in_module): New typedef.
1937 (search_module_symbols): Declare new function.
1938 * NEWS: Mention new commands.
1939
1940 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1941
1942 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1943 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1944 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1945 MODULES_DOMAIN.
1946 (scan_partial_symbols): Only create partial module symbols for non
1947 declarations.
1948 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1949 and MODULES_DOMAIN.
1950 * symtab.c (search_domain_name): Likewise.
1951 (search_symbols): Likewise.
1952 (print_symbol_info): Likewise.
1953 (symtab_symbol_info): Likewise.
1954 (info_modules_command): New function.
1955 (_initialize_symtab): Register 'info modules' command.
1956 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1957 * NEWS: Mention new 'info modules' command.
1958
1959 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1960
1961 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1962 and $_gdb_maint_setting_str.
1963
1964 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1965
1966 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1967 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1968 (str_value_from_setting, gdb_setting_str_internal_fn)
1969 (gdb_maint_setting_str_internal_fn): New functions.
1970 (_initialize_cli_cmds): Define the new convenience functions.
1971 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1972 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1973
1974 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1975
1976 * agent.c (set_can_use_agent): When the setting is turned on,
1977 look up agent symbols if we don't have them yet.
1978 (agent_new_objfile): Don't look up agent symbols when the agent
1979 setting is off.
1980
1981 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1982
1983 * config.in: Regenerate.
1984
1985 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1986
1987 * configure: Regenerate.
1988 * configure.ac: Check for strerror_r.
1989 * gdbsupport/common-utils.h (safe_strerror): Change return value
1990 to const char * and document that this function is now threadsafe.
1991 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1992 thread_local and call strerror_r, if available.
1993 * utils.c (perror_string): Update.
1994 (print_sys_errmsg): Update.
1995
1996 2019-10-31 Luis Machado <luis.machado@linaro.org>
1997
1998 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1999 objfile_key.
2000 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2001 objfile to fetch per-bfd data.
2002 (arm_find_exidx_entry): Likewise.
2003
2004 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2005
2006 * gdbsupport/agent.c (debug_agent): Change type to bool.
2007 (use_agent): Likewise.
2008 (all_agent_symbols_look_up): Likewise.
2009 (agent_loaded_p): Change return value to bool.
2010 (agent_look_up_symbols): Update.
2011 (agent_capability_check): Change return value to bool.
2012 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2013 (debug_agent): Change type to bool.
2014 (use_agent): Likewise.
2015 (agent_capability_check): Change return value to bool.
2016
2017 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2018
2019 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2020 (build_minimal_symbol_hash_tables): Code to clear the table moved
2021 to clear_minimal_symbol_hash_tables.
2022 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2023 when needed.
2024
2025 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2026
2027 * infcmd.c: Remove includes.
2028 * infrun.c: Remove includes.
2029
2030 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2031
2032 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2033 (grow_vect): Remove declaration.
2034 (ada_type_of_array): Remove declaration.
2035 (ada_update_initial_language): Remove declaration.
2036 (ada_fold_name): Remove declaration.
2037 (ada_fill_in_ada_prototype): Remove declaration.
2038 (user_select_syms): Remove declaration.
2039 (get_selections): Remove declaration.
2040 (ada_tag_type): Remove declaration.
2041 (ada_value_tag): Remove declaration.
2042 (ada_is_others_clause): Remove declaration.
2043 (ada_in_variant): Remove declaration.
2044 (ada_value_struct_elt): Remove declaration.
2045 (ada_attribute_name): Remove declaration.
2046 (ada_system_address_type): Remove declaration.
2047 * ada-lang.c (ada_watch_location_expression): Make static.
2048 (GROW_VECT): Move here from ada-lang.h.
2049 (grow_vect): Make static.
2050 (ada_update_initial_language): Make static.
2051 (ada_fold_name): Make static.
2052 (ada_type_of_array): Make static.
2053 (encoded_ordered_before): Move up.
2054 (sort_choices): Move up.
2055 (print_signatures): Move up.
2056 (ada_print_symbol_signature): Move up.
2057 (get_selections): Move up and make static.
2058 (user_select_syms): Move up and make static.
2059 (ada_value_struct_elt): Move up and make static.
2060 (ada_tag_type): Make static.
2061 (ada_value_tag): Make static.
2062 (ada_is_others_clause): Make static.
2063 (ada_in_variant): Make static.
2064 (ada_attribute_name): Make static.
2065
2066 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2067
2068 * ada-lang.c: Remove includes.
2069 * ada-typeprint.c: Remove includes.
2070 * ada-valprint.c: Remove includes.
2071
2072 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2073
2074 * addrmap.c: Add static assertions of type size, moved from
2075 _initialize_addrmap.
2076 (_initialize_addrmap): Remove.
2077
2078 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2079
2080 * coffread.c (record_minimal_symbol): Update.
2081 (process_coff_symbol): Update.
2082 * dbxread.c (read_dbx_symtab): Update.
2083 * dwarf2read.c (add_partial_symbol): Update.
2084 (fixup_go_packaging): Update.
2085 (load_partial_dies): Update.
2086 (new_symbol): Update.
2087 * elfread.c (record_minimal_symbol): Change signature to use
2088 gdb::string_view instead of name+len.
2089 (elf_symtab_read): Update.
2090 (elf_rel_plt_read): Update.
2091 * mdebugread.c (parse_partial_symbols): Update.
2092 (handle_psymbol_enumerators): Update.
2093 (new_symbol): Update.
2094 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2095 to use gdb::string_view instead of name+len.
2096 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2097 * psympriv.h (add_psymbol_to_list): Likewise.
2098 * psymtab.c (add_psymbol_to_bcache): Likewise.
2099 (add_psymbol_to_list): Likewise.
2100 * stabsread.c (define_symbol): Update.
2101 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2102 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2103 (symbol_set_names): Likewise.
2104 * xcoffread.c (scan_xcoff_symtab): Update.
2105
2106 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2107
2108 * symtab.h (symbol_set_names): Document that copy_name must be
2109 set to true for non-nullterminated strings.
2110 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2111 linkage_name if the entry was not found and we need to demangle.
2112
2113 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2114
2115 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2116 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2117 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2118 * gdbsupport/gdb_binary_search.h: New file.
2119
2120 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2121
2122 * NEWS: Mention new --with-system-gdbinit-dir option.
2123 * config.in: Regenerate.
2124 * configure: Regenerate.
2125 * configure.ac: Add new option --with-system-gdbinit-dir.
2126 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2127 for a ".gdb" suffix.
2128 * main.c (get_init_files): Change system_gdbinit argument to
2129 a vector and return the files in SYSTEM_GDBINIT_DIR in
2130 addition to SYSTEM_GDBINIT.
2131 (captured_main_1): Update.
2132 (print_gdb_help): Update.
2133 * top.c (print_gdb_configuration): Also print the value of
2134 SYSTEM_GDBINIT_DIR.
2135
2136 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2137
2138 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2139 that takes gdb::string_view arguments.
2140
2141 2019-10-26 Tom de Vries <tdevries@suse.de>
2142
2143 * aarch64-linux-tdep.c: Fix typos in comments.
2144 * aarch64-tdep.c: Same.
2145 * ada-lang.c: Same.
2146 * amd64-nat.c: Same.
2147 * arc-tdep.c: Same.
2148 * arch/aarch64-insn.c: Same.
2149 * block.c: Same.
2150 * breakpoint.h: Same.
2151 * btrace.h: Same.
2152 * c-varobj.c: Same.
2153 * cli/cli-decode.c: Same.
2154 * cli/cli-script.c: Same.
2155 * cli/cli-utils.h: Same.
2156 * coff-pe-read.c: Same.
2157 * coffread.c: Same.
2158 * compile/compile-cplus-symbols.c: Same.
2159 * compile/compile-object-run.c: Same.
2160 * completer.c: Same.
2161 * corelow.c: Same.
2162 * cp-support.c: Same.
2163 * demangle.c: Same.
2164 * dwarf-index-write.c: Same.
2165 * dwarf2-frame.c: Same.
2166 * dwarf2-frame.h: Same.
2167 * eval.c: Same.
2168 * frame-base.h: Same.
2169 * frame.h: Same.
2170 * gdbcmd.h: Same.
2171 * gdbtypes.h: Same.
2172 * gnu-nat.c: Same.
2173 * guile/scm-objfile.c: Same.
2174 * i386-tdep.c: Same.
2175 * i386-tdep.h: Same.
2176 * infcall.c: Same.
2177 * infcall.h: Same.
2178 * linux-nat.c: Same.
2179 * m68k-tdep.c: Same.
2180 * macroexp.c: Same.
2181 * memattr.c: Same.
2182 * mi/mi-cmd-disas.c: Same.
2183 * mi/mi-getopt.h: Same.
2184 * mi/mi-main.c: Same.
2185 * minsyms.c: Same.
2186 * nat/aarch64-sve-linux-sigcontext.h: Same.
2187 * objfiles.h: Same.
2188 * ppc-linux-nat.c: Same.
2189 * ppc-linux-tdep.c: Same.
2190 * ppc-tdep.h: Same.
2191 * progspace.h: Same.
2192 * prologue-value.h: Same.
2193 * python/py-evtregistry.c: Same.
2194 * python/py-instruction.h: Same.
2195 * record-btrace.c: Same.
2196 * record-full.c: Same.
2197 * remote.c: Same.
2198 * rs6000-tdep.c: Same.
2199 * ser-tcp.c: Same.
2200 * sol-thread.c: Same.
2201 * sparc-sol2-tdep.c: Same.
2202 * sparc64-tdep.c: Same.
2203 * stabsread.c: Same.
2204 * symfile.c: Same.
2205 * symtab.h: Same.
2206 * target.c: Same.
2207 * tracepoint.c: Same.
2208 * tui/tui-data.h: Same.
2209 * tui/tui-io.c: Same.
2210 * tui/tui-win.c: Same.
2211 * tui/tui.c: Same.
2212 * unittests/rsp-low-selftests.c: Same.
2213 * user-regs.h: Same.
2214 * utils.c: Same.
2215 * utils.h: Same.
2216 * valarith.c: Same.
2217 * valops.c: Same.
2218 * valprint.c: Same.
2219 * valprint.h: Same.
2220 * value.c: Same.
2221 * value.h: Same.
2222 * varobj.c: Same.
2223 * x86-nat.h: Same.
2224 * xtensa-tdep.c: Same.
2225
2226 2019-10-25 Ali Tamur <tamur@google.com>
2227
2228 * charset.c (find_charset_names): Reflect API change.
2229
2230 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2231
2232 * symtab.c (struct demangled_name_entry): Change demangled name
2233 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2234 part of the struct anymore.
2235 (symbol_set_names): No longer obstack allocate + copy the demangled
2236 name, just store the allocated name from bfd.
2237
2238 2019-10-25 Tom Tromey <tromey@adacore.com>
2239
2240 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2241 (bsearch_cie_cmp, add_cie): Remove.
2242 (find_cie): Reimplement.
2243 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2244 (dwarf2_build_frame_info): Update.
2245
2246 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2247
2248 PR gdb/25126
2249 * symfile.c (reread_symbols): Call forget_cached_source_info to
2250 clear the stale source cache.
2251
2252 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2253
2254 * configure: Regenerate.
2255 * configure.ac: Remove code that sets python_has_threads.
2256
2257 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2258
2259 * config.in: Regenerate.
2260 * configure: Regenerate.
2261 * configure.ac: Remove the code that uses sed to get the python
2262 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2263
2264 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2265
2266 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2267 error paths.
2268
2269 2019-10-23 Tom Tromey <tom@tromey.com>
2270
2271 * arc-tdep.c: Remove ".." from include.
2272 * frv-tdep.c: Remove ".." from include.
2273 * lm32-tdep.c: Remove ".." from include.
2274 * microblaze-tdep.c: Remove ".." from include.
2275 * or1k-tdep.h: Remove ".." from include.
2276 * s12z-tdep.c: Remove ".." from include.
2277 * Makefile.in (OPCODES_CFLAGS): Add comment.
2278 (TOP_CFLAGS): New variable.
2279 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2280
2281 2019-10-23 Tom Tromey <tom@tromey.com>
2282
2283 * Makefile.in (READLINE_DIR): Update.
2284
2285 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2286
2287 * infcall.c (call_function_by_hand_dummy): Fix the function
2288 comment. And extract out a code section into...
2289 (reserve_stack_space): ...this new function.
2290
2291 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2292
2293 * infcall.c (value_arg_coerce): Remove an unused parameter.
2294 (call_function_by_hand_dummy): Update the call to
2295 'value_arg_coerce'.
2296
2297 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2298
2299 * infcall.c (call_function_by_hand_dummy): Refactor.
2300
2301 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2302
2303 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2304
2305 2019-10-23 Tom Tromey <tom@tromey.com>
2306
2307 * configure: Rebuild.
2308 * configure.ac: Don't check for sigprocmask.
2309 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2310
2311 2019-10-23 Tom Tromey <tom@tromey.com>
2312
2313 * configure: Rebuild.
2314 * acinclude.m4: Use m4_include, not sinclude.
2315
2316 2019-10-23 Tom de Vries <tdevries@suse.de>
2317
2318 PR breakpoints/24687
2319 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2320
2321 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2322
2323 * symtab.c (struct demangled_name_entry) <language>: Change from
2324 bitfield to regular variable.
2325
2326 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2327
2328 * symtab.c (struct demangled_name_entry): Add a constructor.
2329 (free_demangled_name_entry): New function to call the destructor
2330 for demangled_name_entry.
2331 (create_demangled_names_hash): Pass free_demangled_name_entry to
2332 htab_create_alloc.
2333 (symbol_set_names): Call placement new for demangled_name_entry.
2334 * utils.c: No longer include xxhash.h here, now that fast_hash
2335 is inlined in the header.
2336 * utils.h: Instead, include it here.
2337
2338 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2339
2340 * Makefile.in: Link with libxxhash.
2341 * config.in: Regenerate.
2342 * configure: Regenerate.
2343 * configure.ac: Search for libxxhash.
2344 * utils.c (fast_hash): Use xxhash if present.
2345
2346 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2347
2348 * utils.h (fast_hash): New function.
2349 * symtab.c (hash_demangled_name_entry): Call new function
2350 fast_hash.
2351
2352 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2353
2354 * symtab.c (struct demangled_name_entry): Change type of mangled
2355 to gdb::string_view. Also adds a constructor that takes the
2356 mangled name.
2357 (hash_demangled_name_entry): Update.
2358 (eq_demangled_name_entry): Update.
2359 (free_demangled_name_entry): New function to call the destructor
2360 now that this is not a POD anymore.
2361 (create_demangled_names_hash): Pass free_demangled_name_entry to
2362 htab_create_alloc.
2363 (symbol_set_names): Update.
2364
2365 2019-10-21 Ali Tamur <tamu@google.com>
2366
2367 * dwarf2read.c (dir_index): Change type.
2368 (file_name_index): Likewise.
2369 (line_header::include_dir_at): Change comment and implementation on
2370 whether it is DWARF 5.
2371 (line_header::is_valid_file_index): New function.
2372 (line_header::file_name_at): Change comment and implementation on
2373 whether it is DWARF 5.
2374 (line_header::file_names): Change to private field renamed as
2375 m_file_names and introduce a new accessor method.
2376 (line_header::file_names_size): New method.
2377 (line_header::include_dirs): Change to private field and rename as
2378 m_include_dirs.
2379 (dw2_get_file_names_reader): Define local var at a smaller scope and
2380 reflect API change.
2381 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2382 (process_structure_scope): Likewise.
2383 (line_header::add_include_dir): Change message and reflect renaming.
2384 (line_header::add_file_name): Likewise.
2385 (read_formatted_entries): Handle DW_FORM_data16.
2386 (dwarf_decode_line_header): Fix line header length calculation.
2387 (psymtab_include_file_name): Change comment and API.
2388 (lnp_state_machine::m_file): Update comment and reflect type change.
2389 (lnp_state_machine::record_line): Reflect type change.
2390 (dwarf_decode_lines): Reflect API change.
2391 (file_file_name): Likewise.
2392 (file_full_name): Likewise.
2393
2394 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2395
2396 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2397
2398 2019-10-21 Tom Tromey <tom@tromey.com>
2399
2400 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2401
2402 2019-10-21 Tom Tromey <tom@tromey.com>
2403
2404 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2405 NM_H. Use AC_CONFIG_LINKS.
2406 * configure: Rebuild.
2407 * Makefile.in (NM_H): New variable.
2408 (generated_files): Add NM_H. Remove gcore.
2409 (nm.h, stamp-nmh): New targets.
2410
2411 2019-10-20 Tom Tromey <tom@tromey.com>
2412
2413 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2414 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2415 obsolete comment.
2416 (put_objfile_before): Now static.
2417
2418 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2419
2420 * gdbsupport/common-utils.h (startswith): Change return type to
2421 bool.
2422
2423 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2424
2425 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2426 * breakpoint.c (bp_locations_compare): Rename to...
2427 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2428 (update_global_location_list): Use std::sort instead of qsort.
2429 * buildsym.c (compare_line_numbers): Rename to...
2430 (lte_is_less_than): ...this, and change to std::sort semantics.
2431 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2432 instead of qsort.
2433 * disasm.c (compare_lines): Rename to...
2434 (line_is_less_than): ...this, and change to std::sort semantics.
2435 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2436 of qsort.
2437 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2438 (fde_is_less_than): ...this, and change to std::sort semantics.
2439 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2440 * mdebugread.c (compare_blocks):
2441 (block_is_less_than): ...this, and change to std::sort semantics.
2442 (sort_blocks): Call std::sort instead of qsort.
2443 * objfiles.c (qsort_cmp): Rename to...
2444 (sort_cmp): ...this, and change to std::sort semantics.
2445 (update_section_map): Call std::sort instead of qsort.
2446 * remote.c (compare_pnums): Remove.
2447 (map_regcache_remote_table): Call std::sort instead of qsort.
2448 * utils.c (compare_positive_ints): Remove.
2449 * utils.h (compare_positive_ints): Remove.
2450 * xcoffread.c (compare_lte): Remove.
2451 (arrange_linetable): Call std::sort instead of qsort.
2452
2453 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2454
2455 * symfile.c (init_entry_point_info): Fix typo.
2456 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2457
2458 2019-10-18 Tom de Vries <tdevries@suse.de>
2459
2460 * aarch64-tdep.c: Fix typos in comments.
2461 * ada-lang.c: Same.
2462 * ada-tasks.c: Same.
2463 * alpha-tdep.c: Same.
2464 * alpha-tdep.h: Same.
2465 * amd64-nat.c: Same.
2466 * amd64-windows-tdep.c: Same.
2467 * arc-tdep.c: Same.
2468 * arc-tdep.h: Same.
2469 * arch-utils.c: Same.
2470 * arm-nbsd-tdep.c: Same.
2471 * arm-tdep.c: Same.
2472 * ax-gdb.c: Same.
2473 * blockframe.c: Same.
2474 * btrace.c: Same.
2475 * c-varobj.c: Same.
2476 * coff-pe-read.c: Same.
2477 * coffread.c: Same.
2478 * cris-tdep.c: Same.
2479 * darwin-nat.c: Same.
2480 * dbxread.c: Same.
2481 * dcache.c: Same.
2482 * disasm.c: Same.
2483 * dtrace-probe.c: Same.
2484 * dwarf-index-write.c: Same.
2485 * dwarf2-frame-tailcall.c: Same.
2486 * dwarf2-frame.c: Same.
2487 * dwarf2read.c: Same.
2488 * eval.c: Same.
2489 * exceptions.c: Same.
2490 * fbsd-tdep.c: Same.
2491 * findvar.c: Same.
2492 * frame.c: Same.
2493 * frv-tdep.c: Same.
2494 * gnu-v3-abi.c: Same.
2495 * go32-nat.c: Same.
2496 * h8300-tdep.c: Same.
2497 * hppa-tdep.c: Same.
2498 * i386-linux-tdep.c: Same.
2499 * i386-tdep.c: Same.
2500 * ia64-libunwind-tdep.c: Same.
2501 * ia64-tdep.c: Same.
2502 * infcmd.c: Same.
2503 * infrun.c: Same.
2504 * linespec.c: Same.
2505 * linux-nat.c: Same.
2506 * linux-thread-db.c: Same.
2507 * machoread.c: Same.
2508 * mdebugread.c: Same.
2509 * mep-tdep.c: Same.
2510 * mn10300-tdep.c: Same.
2511 * namespace.c: Same.
2512 * objfiles.c: Same.
2513 * opencl-lang.c: Same.
2514 * or1k-tdep.c: Same.
2515 * osabi.c: Same.
2516 * ppc-linux-nat.c: Same.
2517 * ppc-linux-tdep.c: Same.
2518 * ppc-sysv-tdep.c: Same.
2519 * printcmd.c: Same.
2520 * procfs.c: Same.
2521 * record-btrace.c: Same.
2522 * record-full.c: Same.
2523 * remote-fileio.c: Same.
2524 * remote.c: Same.
2525 * rs6000-tdep.c: Same.
2526 * s12z-tdep.c: Same.
2527 * score-tdep.c: Same.
2528 * ser-base.c: Same.
2529 * ser-go32.c: Same.
2530 * skip.c: Same.
2531 * sol-thread.c: Same.
2532 * solib-svr4.c: Same.
2533 * solib.c: Same.
2534 * source.c: Same.
2535 * sparc-nat.c: Same.
2536 * sparc-sol2-tdep.c: Same.
2537 * sparc-tdep.c: Same.
2538 * sparc64-tdep.c: Same.
2539 * stabsread.c: Same.
2540 * stack.c: Same.
2541 * symfile.c: Same.
2542 * symtab.c: Same.
2543 * target-descriptions.c: Same.
2544 * target-float.c: Same.
2545 * thread.c: Same.
2546 * utils.c: Same.
2547 * valops.c: Same.
2548 * valprint.c: Same.
2549 * value.c: Same.
2550 * varobj.c: Same.
2551 * windows-nat.c: Same.
2552 * xcoffread.c: Same.
2553 * xstormy16-tdep.c: Same.
2554 * xtensa-tdep.c: Same.
2555
2556 2019-10-17 Tom Tromey <tromey@adacore.com>
2557
2558 * configure: Rebuild.
2559 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2560 in AC_CONFIG_FILES invocation.
2561 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2562 new-style config.status invocation.
2563
2564 2019-10-17 Tom de Vries <tdevries@suse.de>
2565
2566 * arm-nbsd-nat.c: Fix typos in comments.
2567 * arm-tdep.c: Same.
2568 * darwin-nat-info.c: Same.
2569 * dwarf2read.c: Same.
2570 * elfread.c: Same.
2571 * event-top.c: Same.
2572 * findvar.c: Same.
2573 * gdbtypes.c: Same.
2574 * hppa-tdep.c: Same.
2575 * i386-tdep.c: Same.
2576 * jit.c: Same.
2577 * main.c: Same.
2578 * mdebugread.c: Same.
2579 * moxie-tdep.c: Same.
2580 * nto-procfs.c: Same.
2581 * osabi.c: Same.
2582 * ppc-linux-tdep.c: Same.
2583 * remote.c: Same.
2584 * riscv-tdep.c: Same.
2585 * s390-tdep.c: Same.
2586 * sh-tdep.c: Same.
2587 * sparc-linux-tdep.c: Same.
2588 * sparc-nat.c: Same.
2589 * stack.c: Same.
2590 * target-descriptions.c: Same.
2591 * top.c: Same.
2592 * varobj.c: Same.
2593
2594 2019-10-16 Tom Tromey <tom@tromey.com>
2595
2596 * objfiles.h (struct objfile) <original_name>: Now const.
2597
2598 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2599
2600 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2601 pass on to sigsetjmp's second argument.
2602 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2603
2604 2019-10-16 Keith Seitz <keiths@redhat.com>
2605
2606 PR gdb/23567
2607 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2608 sections whose size is greater than the file size.
2609
2610 2019-10-16 Jim Wilson <jimw@sifive.com>
2611
2612 * riscv-tdep.c (riscv_gcc_target_options): New.
2613 (riscv_gnu_triplet_regexp): New.
2614 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2615 set_gdbarch_gnu_triplet_regexp.
2616
2617 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2618
2619 * Makefile.in: Add xml-builtin.h.
2620 * features/feature_to_c.sh: Add an include for xml-builtin.h
2621 to ensure that the compiler checks that the types match.
2622 * xml-builtin.h: New file.
2623 * xml-support.c (fetch_xml_builtin): Add missing const.
2624 * xml-support.h: Remove declaration of xml_builtins.
2625
2626 2019-10-16 Tom de Vries <tdevries@suse.de>
2627
2628 PR tdep/25096
2629 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2630 (amd64_classify_aggregate): ... here.
2631 (amd64_classify_aggregate_field): Handled fiels of nested structs
2632 recursively.
2633
2634 2019-10-16 Tom de Vries <tdevries@suse.de>
2635
2636 PR tdep/24104
2637 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2638 that handles 'theclass'.
2639
2640 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2641
2642 * linespec.c (decode_digits_ordinary): Update comment.
2643 * make-target-delegates: No longer need to handle VEC case.
2644 * memrange.c (normalize_mem_ranges): Update comment.
2645 * namespace.c (add_using_directive): Update comment.
2646 * objc-lang.c (uniquify_strings): Update comment.
2647 * ppc-linux-nat.c (struct thread_points): Update comment.
2648 * probe.h (find_probes_in_objfile): Update comment.
2649 * target.h (enum flash_preserve_mode): Update comment.
2650 * varobj.c (varobj_restrict_range): Update comment.
2651 * varobj.h (varobj_list_children): Update comment.
2652
2653 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2654
2655 * Makefile.in: Remove references to vec.h and vec.c.
2656 * aarch64-tdep.c: No longer include vec.h.
2657 * ada-lang.c: Likewise.
2658 * ada-lang.h: Likewise.
2659 * arm-tdep.c: Likewise.
2660 * ax.h: Likewise.
2661 * breakpoint.h: Likewise.
2662 * charset.c: Likewise.
2663 * cp-support.h: Likewise.
2664 * dtrace-probe.c: Likewise.
2665 * dwarf2read.c: Likewise.
2666 * extension.h: Likewise.
2667 * gdb_bfd.c: Likewise.
2668 * gdbsupport/gdb_vecs.h: Likewise.
2669 * gdbsupport/vec.c: Remove.
2670 * gdbsupport/vec.h: Remove.
2671 * gdbthread.h: Likewise.
2672 * guile/scm-type.c: Likewise.
2673 * inline-frame.c: Likewise.
2674 * machoread.c: Likewise.
2675 * memattr.c: Likewise.
2676 * memrange.h: Likewise.
2677 * namespace.h: Likewise.
2678 * nat/linux-btrace.h: Likewise.
2679 * osdata.c: Likewise.
2680 * parser-defs.h: Likewise.
2681 * progspace.h: Likewise.
2682 * python/py-type.c: Likewise.
2683 * record-btrace.c: Likewise.
2684 * rust-exp.y: Likewise.
2685 * solib-target.c: Likewise.
2686 * stap-probe.c: Likewise.
2687 * target-descriptions.c: Likewise.
2688 * target-memory.c: Likewise.
2689 * target.h: Likewise.
2690 * varobj.c: Likewise.
2691 * varobj.h: Likewise.
2692 * xml-support.h: Likewise.
2693
2694 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2695
2696 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2697 Update for new std::vector based implementation.
2698 (process_psymtab_comp_unit_reader): Likewise.
2699 (scan_partial_symbols): Likewise.
2700 (recursively_compute_inclusions): Likewise.
2701 (compute_compunit_symtab_includes): Likewise.
2702 (process_imported_unit_die): Likewise.
2703 (queue_and_load_dwo_tu): Likewise.
2704 (follow_die_sig_1): Likewise.
2705 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2706 (typedef dwarf2_per_cu_ptr): Remove.
2707 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2708 function.
2709 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2710 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2711 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2712 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2713 std::vector.
2714
2715 2019-10-15 Tom Tromey <tromey@adacore.com>
2716
2717 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2718 TID.
2719
2720 2019-10-15 Tom Tromey <tromey@adacore.com>
2721
2722 * windows-nat.c (windows_nat_target::fetch_registers)
2723 (windows_nat_target::store_registers): Rename "pid" to "tid".
2724
2725 2019-10-15 Tom Tromey <tromey@adacore.com>
2726
2727 * gdbarch.h, gdbarch.c: Rebuild.
2728 * gdbarch.sh (gcc_target_options): Change return type to
2729 std::string.
2730 * compile/compile.c (get_args): Update.
2731 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2732 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2733 std::string.
2734 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2735 std::string.
2736 * arch-utils.c (default_gcc_target_options): Return std::string.
2737 * arch-utils.h (default_gcc_target_options): Return std::string.
2738 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2739
2740 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2741
2742 * breakpoint.c (breakpoint_chain): Make static.
2743 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2744 of accessing breakpoint_chain.
2745
2746 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2747
2748 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2749 to a gdb::function_view and return value to bool.
2750 * breakpoint.h (iterate_over_breakpoints): Likewise.
2751 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2752 (pop_dummy_frame): Update.
2753 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2754 (gdbscm_breakpoints): Update.
2755 * python/py-breakpoint.c (build_bp_list): Update.
2756 (gdbpy_breakpoints): Update.
2757 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2758 Update.
2759 (bpfinishpy_handle_stop): Update.
2760 (bpfinishpy_handle_exit): Update.
2761 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2762 (svr4_update_solib_event_breakpoints): Update.
2763
2764 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2765
2766 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2767 when unwrapping single-field structs.
2768
2769 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2770
2771 * dwarf2read.c: Remove includes.
2772
2773 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2774
2775 * ui-out.c (ui_out::call_do_message): Silence
2776 -Wformat-nonliteral warning.
2777
2778 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2779
2780 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2781 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2782 include: readline/tilde.h.
2783
2784 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2785
2786 * remote.c (remote_target::get_trace_status): Remove declaration of
2787 trace_regblock_size.
2788
2789 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2790
2791 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2792 (show_user): Remove declaration of cmdlist.
2793 * cli/cli-cmds.h (max_user_call_depth): Declare.
2794 * cli/cli-script.c (execute_user_command): Remove declaration
2795 of max_user_call_depth.
2796
2797 2019-10-11 Jim Wilson <jimw@sifive.com>
2798
2799 * gdbsupport/print-utils.h (pulongest): Fix comment.
2800 (plongest): Likewise.
2801 (phex): Add missing comment, mention leading zeros.
2802 (phex_nz): Add mention of no leading zeros to comment.
2803
2804 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2805 plongest instead of unsigned long long cast.
2806
2807 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2808
2809 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2810 for external_editor_command and gdbtk_test.
2811
2812 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2813
2814 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2815 * varobj.c (varobjdebug): Move comment to...
2816 * varobj.h (varobjdebug): ...here, and declare.
2817
2818 2019-10-09 Tom Tromey <tom@tromey.com>
2819
2820 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2821 erase_data_content.
2822
2823 2019-10-09 Tom Tromey <tom@tromey.com>
2824
2825 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2826 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2827 * tui/tui-command.c (tui_cmd_window::resize)
2828 (tui_refresh_cmd_win): Update.
2829 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2830 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2831 * tui/tui-data.c (~tui_gen_win_info): Remove.
2832 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2833 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2834 (tui_redisplay_readline, tui_mld_flush)
2835 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2836 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2837 (tui_data_window::erase_data_content)
2838 (tui_data_item_window::rerender)
2839 (tui_data_item_window::refresh_window): Update.
2840 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2841 (box_win, tui_gen_win_info::make_window)
2842 (tui_gen_win_info::make_visible): Update.
2843 (tui_delete_win): Remove.
2844 * tui/tui-winsource.c
2845 (tui_source_window_base::do_erase_source_content): Update.
2846 (tui_show_source_line, tui_source_window_base::update_tab_width)
2847 (tui_source_window_base::update_exec_info): Update.
2848 * tui/tui-data.h (struct curses_deleter): New.
2849 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2850 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2851
2852 2019-10-09 Tom Tromey <tom@tromey.com>
2853
2854 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2855
2856 2019-10-09 Tom Tromey <tom@tromey.com>
2857
2858 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2859 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2860
2861 2019-10-09 Tom Tromey <tom@tromey.com>
2862
2863 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2864 window height directly.
2865 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2866 declare.
2867 * tui/tui-layout.c (tui_default_win_height): Remove.
2868 (tui_default_win_viewport_height): Remove.
2869
2870 2019-10-09 Tom Tromey <tom@tromey.com>
2871
2872 * tui/tui.h: Remove comments.
2873
2874 2019-10-09 Tom de Vries <tdevries@suse.de>
2875
2876 * python/lib/gdb/printer/bound_registers.py: Use
2877 '^builtin_type_bound128' as regexp argument for
2878 add_builtin_pretty_printer.
2879
2880 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2881
2882 * guile/guile.c (guile_extension_script_ops): Remove forward
2883 declaration and mark as static.
2884 (guile_script_ops): Likewise.
2885 (extension_language_guile): Move further down in the file so
2886 it can reference the definitions for guile_{extension_,}script_ops.
2887
2888 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2889
2890 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2891 except SORTL, DFLTCC, and KDSA.
2892
2893 2019-10-08 Tom Tromey <tromey@adacore.com>
2894
2895 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2896 (struct safe_symbol_file_add_args): Remove.
2897
2898 2019-10-08 Tom Tromey <tromey@adacore.com>
2899
2900 * windows-nat.c: Don't include buildsym-legacy.h.
2901
2902 2019-10-08 Tom Tromey <tromey@adacore.com>
2903
2904 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2905
2906 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2907
2908 * gdbtypes.c (overload_debug): Move comment to header.
2909 * gdbtypes.h (overload_debug): Declare.
2910 * valops.c: Remove declaration of overload_debug, instead
2911 include gdbtypes.h.
2912
2913 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2914
2915 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2916 through _().
2917 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2918 move comment...
2919 * language.h (lang_frame_mismatch_warn): ... here. Also add
2920 declaration.
2921 * top.c (lang_frame_mismatch_warn): Remove declaration.
2922 (check_frame_language_change): Pass lang_frame_mismatch_warn
2923 through _().
2924
2925 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2926
2927 * c-lang.h (vtbl_ptr_name): Declare.
2928 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2929 it from the header.
2930 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2931
2932 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2933
2934 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2935 gdb_static_assert.
2936
2937 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2938
2939 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2940 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2941 * ctfread.c: New file.
2942 * ctfread.h: New file.
2943 * elfread.c: Include ctfread.h.
2944 (struct elfinfo text_p): New member ctfsect.
2945 (elf_locate_sections): Mark CTF section.
2946 (elf_symfile_read): Call elfctf_build_psymtabs.
2947 * Makefile.in (LIBCTF): Add.
2948 (CLIBS): Use it.
2949 (CDEPS): Likewise.
2950 (DIST): Add ctfread.c.
2951
2952 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2953
2954 * ctfread.c (struct nextfield): Renamed to ...
2955 (struct ctf_nextfield): ... this.
2956 (struct field_info): Renamed to ...
2957 (strut ctf_field_info): ... this.
2958 (attach_fields_to_type): Update for renamed structures.
2959 (ctf_add_member_cb): Likewise.
2960 (ctf_add_enum_member_cb): Likewise.
2961 (process_struct_members): Likewise.
2962 (process_enum_type): Likewise.
2963
2964 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2965
2966 * tracectf.h: Rename, was ctf.h.
2967 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2968 * tracefile.c: Likewise.
2969 * tracepoint.c: Remove unused include ctf.h.
2970 * mi/mi-main.c: Likewise.
2971 * Makefile.in Replace ctf.c with tracectf.c.
2972
2973 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2974
2975 * version.in: Change version number to "9.0.50.DATE-git".
2976
2977 2019-10-03 Tom Tromey <tom@tromey.com>
2978
2979 PR rust/24976:
2980 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2981
2982 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2983
2984 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2985 cp_search_name_hash.
2986 * NEWS: Add entry about nested function support.
2987
2988 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2989 Andrew Burgess <andrew.burgess@embecosm.com>
2990
2991 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2992 for nested static variables when searchin VAR_DOMAIN.
2993 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2994 global scope, update comment.
2995 (add_partial_subprogram): Call add_partial_subprogram recursively
2996 for nested subroutines when processinng Fortran.
2997 (load_partial_dies): Process the child entities of a subprogram
2998 when processing Fortran.
2999 (partial_die_parent_scope): Handle building scope
3000 for Fortran nested functions.
3001 (process_die): Record that nested functions have a scope.
3002 (new_symbol): Always record Fortran subprograms on the global
3003 symbol list.
3004 (determine_prefix): How to build the prefix for Fortran
3005 subprograms.
3006
3007 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3008
3009 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3010 have just sent the thread a SIGSTOP and are waiting for it to
3011 arrive.
3012
3013 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3014
3015 * btrace.c (btrace_add_pc): Remove whitespace before the template
3016 parameter in 'std::vector <...>'.
3017 (parse_xml_btrace_block): Likewise.
3018 (btrace_maint_decode_pt): Likewise.
3019 (btrace_maint_update_packets): Likewise.
3020 (btrace_maint_print_packets): Likewise.
3021 * btrace.h (struct btrace_maint_info): Likewise.
3022 * dwarf2read.c (struct type_unit_group): Likewise.
3023 (build_type_psymtabs_reader): Likewise.
3024 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3025 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3026 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3027
3028 2019-10-03 Tom de Vries <tdevries@suse.de>
3029
3030 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3031 the first line of the help text for set/show style metadata.
3032
3033 2019-10-02 Tom Tromey <tromey@adacore.com>
3034
3035 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3036 * gdbsupport/common-inferior.c: New file.
3037 * infcmd.c (startup_with_shell): Don't define.
3038 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3039 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3040 * inferior.h (startup_with_shell): Don't declare.
3041
3042 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3043
3044 * gdbsupport/gdb_assert.h: Include errors.h.
3045 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3046
3047 2019-10-02 Tom Tromey <tromey@adacore.com>
3048
3049 * NEWS: Add $_ada_exception entry.
3050 * ada-lang.c (struct ada_catchpoint): Add constructor.
3051 <m_kind>: New member.
3052 (allocate_location_exception, re_set_exception): Remove
3053 "ex" parameter.
3054 (should_stop_exception): Compute $_ada_exception.
3055 (check_status_exception, print_it_exception)
3056 (print_one_exception, print_mention_exception): Remove
3057 "ex" parameter.
3058 (allocate_location_catch_exception, re_set_catch_exception)
3059 (check_status_exception, print_it_catch_exception)
3060 (print_one_catch_exception, print_mention_catch_exception)
3061 (print_recreate_catch_exception)
3062 (allocate_location_catch_exception_unhandled)
3063 (re_set_catch_exception_unhandled)
3064 (check_status_exception, print_it_catch_exception_unhandled)
3065 (print_one_catch_exception_unhandled)
3066 (print_mention_catch_exception_unhandled)
3067 (print_recreate_catch_exception_unhandled)
3068 (allocate_location_catch_assert, re_set_catch_assert)
3069 (check_status_assert, print_it_catch_assert)
3070 (print_one_catch_assert, print_mention_catch_assert)
3071 (print_recreate_catch_assert)
3072 (allocate_location_catch_handlers, re_set_catch_handlers)
3073 (check_status_handlers, print_it_catch_handlers)
3074 (print_one_catch_handlers, print_mention_catch_handlers)
3075 (print_recreate_catch_handlers): Remove.
3076 (create_ada_exception_catchpoint): Update.
3077 (initialize_ada_catchpoint_ops): Update.
3078
3079 2019-10-02 Tom Tromey <tromey@adacore.com>
3080
3081 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3082 (create_excep_cond_exprs): Simplify exception string computation.
3083 (ada_exception_catchpoint_cond_string): Likewise.
3084
3085 2019-10-02 Tom Tromey <tromey@adacore.com>
3086
3087 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3088 * ada-lang.c (lesseq_defined_than): Handle
3089 LOC_STATIC.
3090 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3091 parameter.
3092 (dwarf2_has_info): Likewise.
3093 (new_symbol): Set maybe_copied on symbol when
3094 appropriate.
3095 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3096 parameter.
3097 <can_copy>: New member.
3098 * elfread.c (record_minimal_symbol): Set maybe_copied
3099 on symbol when appropriate.
3100 (elf_symfile_read): Update call to dwarf2_has_info.
3101 * minsyms.c (lookup_minimal_symbol_linkage): New
3102 function.
3103 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3104 * symtab.c (get_symbol_address, get_msymbol_address):
3105 New functions.
3106 * symtab.h (get_symbol_address, get_msymbol_address):
3107 Declare.
3108 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3109 maybe_copied.
3110 (struct symbol, struct minimal_symbol) <maybe_copied>:
3111 New member.
3112
3113 2019-10-02 Tom Tromey <tromey@adacore.com>
3114
3115 * source.c (struct current_source_location): New.
3116 (current_source_key): New global.
3117 (current_source_symtab, current_source_line)
3118 (current_source_pspace): Remove.
3119 (get_source_location): New function.
3120 (get_current_source_symtab_and_line)
3121 (set_default_source_symtab_and_line)
3122 (set_current_source_symtab_and_line)
3123 (clear_current_source_symtab_and_line, select_source_symtab)
3124 (info_source_command, print_source_lines_base)
3125 (info_line_command, search_command_helper, _initialize_source):
3126 Update.
3127
3128 2019-10-02 Tom Tromey <tromey@adacore.com>
3129
3130 * source.c (select_source_symtab): Don't call
3131 decode_line_with_current_source.
3132
3133 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3134
3135 * symtab.c (lookup_global_symbol): Search global block.
3136
3137 2019-10-02 Tom Tromey <tromey@adacore.com>
3138
3139 * coffread.c (process_coff_symbol): Update.
3140 * dwarf2read.c (var_decode_location, new_symbol): Update.
3141 * mdebugread.c (parse_symbol): Update.
3142 * objfiles.c (relocate_one_symbol): Update.
3143 * stabsread.c (define_symbol, fix_common_block)
3144 (scan_file_globals): Update.
3145 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3146 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3147 * xcoffread.c (process_xcoff_symbol): Update.
3148
3149 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3150
3151 * MAINTAINERS: Update my email address.
3152
3153 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3154
3155 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3156 std::vector.
3157 (build_type_psymtabs_reader): Update for std::vector.
3158 (build_type_psymtab_dependencies): Likewise.
3159 * dwarf2read.h: Remove use of DEF_VEC_P.
3160 (typedef sig_type_ptr): Delete.
3161
3162 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3163
3164 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3165 to std::vector.
3166 (btrace_maint_decode_pt): Likewise, and move allocation of the
3167 vector outside of the loop.
3168 (btrace_maint_update_packets): Update to handle change from VEC to
3169 std::vector.
3170 (btrace_maint_print_packets): Likewise.
3171 (maint_info_btrace_cmd): Likewise.
3172 * btrace.h: Remove use of DEF_VEC_O.
3173 (typedef btrace_pt_packet_s): Delete.
3174 (struct btrace_maint_info) <packets>: Change fromm VEC to
3175 std::vector.
3176 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3177
3178 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3179
3180 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3181 make accesses into the vector constant references.
3182 (btrace_add_pc): Update for std::vector.
3183 (btrace_stitch_bts): Likewise.
3184 (parse_xml_btrace_block): Likewise.
3185 (btrace_maint_update_packets): Likewise.
3186 (btrace_maint_print_packets): Likewise.
3187 (maint_info_btrace_cmd): Likewise.
3188 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3189 std::vector.
3190 (btrace_data::empty): Likewise.
3191 (btrace_data_append): Likewise.
3192 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3193 (typedef btrace_block_s): Delete.
3194 (struct btrace_block): Add constructor.
3195 (struct btrace_data_bts) <blocks>: Change to std::vector.
3196 * nat/linux-btrace.c (perf_event_read_bts): Update for
3197 std::vector.
3198 (linux_read_bts): Likewise.
3199
3200 2019-10-01 Tom Tromey <tom@tromey.com>
3201
3202 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3203
3204 2019-10-01 Tom Tromey <tom@tromey.com>
3205
3206 * stack.c (print_frame, info_frame_command_core): Use
3207 styled_string.
3208 * linux-thread-db.c (try_thread_db_load_1)
3209 (try_thread_db_load_from_pdir_1): Use styled_string.
3210 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3211 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3212 (maybe_print_unsupported_script_warning)
3213 (maybe_print_script_not_found_warning): Use styled_string.
3214 * ada-lang.c (user_select_syms): Use styled_string.
3215
3216 2019-10-01 Tom Tromey <tom@tromey.com>
3217
3218 * p-lang.c (pascal_printstr): Use metadata style.
3219 * value.c (show_convenience): Use metadata style.
3220 * valprint.c (valprint_check_validity, val_print_optimized_out)
3221 (val_print_not_saved, val_print_unavailable)
3222 (val_print_invalid_address, generic_val_print, val_print)
3223 (value_check_printable, val_print_array_elements): Use metadata
3224 style.
3225 * ui-out.h (class ui_out) <field_fmt>: New overload.
3226 <do_field_fmt>: Add style parameter.
3227 * ui-out.c (ui_out::field_fmt): New overload.
3228 * typeprint.c (type_print_unknown_return_type)
3229 (val_print_not_allocated, val_print_not_associated): Use metadata
3230 style.
3231 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3232 parameter.
3233 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3234 * tracepoint.c (tvariables_info_1): Use metadata style.
3235 * stack.c (print_frame_arg, print_frame_info, print_frame)
3236 (info_frame_command_core): Use metadata style.
3237 * skip.c (info_skip_command): Use metadata style.
3238 * rust-lang.c (rust_print_enum): Use metadata style.
3239 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3240 metadata style.
3241 * python/py-framefilter.c (py_print_single_arg): Use metadata
3242 style.
3243 * printcmd.c (do_one_display, print_variable_and_value): Use
3244 metadata style.
3245 * p-valprint.c (pascal_val_print)
3246 (pascal_object_print_value_fields): Use metadata style.
3247 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3248 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3249 parameter.
3250 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3251 * m2-valprint.c (m2_print_long_set): Use metadata style.
3252 * m2-typeprint.c (m2_print_type): Use metadata style.
3253 * infcmd.c (print_return_value_1): Use metadata style.
3254 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3255 * f-valprint.c (info_common_command_for_block): Use metadata
3256 style.
3257 * f-typeprint.c (f_type_print_base): Use metadata style.
3258 * expprint.c (print_subexp_standard): Use metadata style.
3259 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3260 * cli/cli-style.h (class cli_style_option): Add constructor.
3261 (metadata_style): Declare.
3262 * cli/cli-style.c (metadata_style): New global.
3263 (_initialize_cli_style): Register metadata style.
3264 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3265 parameter.
3266 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3267 * c-typeprint.c (c_type_print_base_struct_union)
3268 (c_type_print_base_1): Use metadata style.
3269 * breakpoint.c (watchpoint_value_print)
3270 (print_one_breakpoint_location): Use metadata style.
3271 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3272 style.
3273 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3274 style.
3275 * ada-valprint.c (val_print_packed_array_elements, printstr)
3276 (print_field_values, ada_val_print_ref, ada_val_print): Use
3277 metadata style.
3278 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3279 style.
3280 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3281 style.
3282 * ada-lang.c (user_select_syms): Use metadata style.
3283
3284 2019-10-01 Tom Tromey <tom@tromey.com>
3285
3286 * cli/cli-cmds.c (pwd_command): Style output.
3287
3288 2019-10-01 Pedro Alves <palves@redhat.com>
3289 Tom Tromey <tom@tromey.com>
3290
3291 * symtab.c (print_symbol_info): Use %ps.
3292 (print_msymbol_info): Use %ps.
3293 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3294 * printcmd.c (print_variable_and_value): Use %ps.
3295 * macrocmd.c (show_pp_source_pos): Use %ps.
3296 * infrun.c (print_exited_reason): Use ui_out::message.
3297 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3298 (describe_other_breakpoints): Use ui_out::message and new
3299 formats.
3300 (say_where): Use new formats.
3301 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3302 and new formats.
3303
3304 2019-10-01 Pedro Alves <palves@redhat.com>
3305 Tom Tromey <tom@tromey.com>
3306
3307 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3308 (test_gdb_formats): New function.
3309 (run_tests): Call it.
3310 (test_format_specifier): Update.
3311 * utils.h (fputs_filtered): Update comment.
3312 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3313 (fputs_styled_unfiltered): Declare.
3314 * utils.c (fputs_styled_unfiltered): New function.
3315 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3316 (vfprintf_filtered): Update.
3317 (vfprintf_unfiltered, vprintf_filtered): Update.
3318 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3319 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3320 disallow_ui_out_field>: New constants.
3321 (enum class field_kind): New.
3322 (struct base_field_s, struct signed_field_s): New.
3323 (signed_field): New function.
3324 (struct string_field_s): New.
3325 (string_field): New function.
3326 (struct styled_string_s): New.
3327 (styled_string): New function.
3328 (class ui_out) <message>: Add comment.
3329 <vmessage, call_do_message>: New methods.
3330 <do_message>: Add style parameter.
3331 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3332 methods.
3333 (ui_out::message): Rewrite.
3334 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3335 parameter.
3336 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3337 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3338 gdb_extensions parameter.
3339 (class format_piece): Add parameter to constructor.
3340 (n_int_args): New field.
3341 * gdbsupport/format.c (format_pieces::format_pieces): Add
3342 gdb_extensions parameter. Handle '*'.
3343 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3344 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3345 vfprintf_styled_no_gdbfmt.
3346 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3347 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3348 unfiltered output.
3349 * ui-style.h (struct ui_file_style) <ptr>: New method.
3350
3351 2019-10-01 Tom Tromey <tom@tromey.com>
3352
3353 * unittests/format_pieces-selftests.c: Update. Add final format.
3354 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3355 empty literal pieces.
3356
3357 2019-10-01 Tom Tromey <tom@tromey.com>
3358
3359 * ui-out.h (enum class ui_out_style_kind): Remove.
3360 (class ui_out) <field_string, field_stsream, do_field_string>:
3361 Change type of "style".
3362 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3363 (ui_out::field_string): Update.
3364 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3365 of "style".
3366 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3367 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3368 * stack.c (print_frame_arg, print_frame_info, print_frame):
3369 Update.
3370 * source.c (print_source_lines_base): Update.
3371 * solib.c (info_sharedlibrary_command): Update.
3372 * skip.c (info_skip_command): Update.
3373 * record-btrace.c (btrace_call_history_src_line)
3374 (btrace_call_history): Update.
3375 * python/py-framefilter.c (py_print_frame): Update.
3376 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3377 "style".
3378 * mi/mi-out.c (mi_ui_out::do_table_header)
3379 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3380 (mi_ui_out::do_field_string): Update.
3381 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3382 Update.
3383 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3384 "style".
3385 * cli-out.c (cli_ui_out::do_table_header)
3386 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3387 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3388 (cli_ui_out::do_field_fmt): Update.
3389 * breakpoint.c (print_breakpoint_location): Update.
3390 (update_static_tracepoint): Update.
3391
3392 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3393
3394 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3395 conversion of gdb_datadir.
3396 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3397 remove not needed c_str ().
3398
3399 2019-09-30 Ali Tamur <tamur@google.com>
3400
3401 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3402 (dwarf2_string_attr): Likewise.
3403
3404 2019-09-30 Ali Tamur <tamur@google.com>
3405
3406 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3407 (process_full_type_unit): Likewise.
3408 (dump_die_shallow): Likewise.
3409 (cu_debug_loc_section): Likewise.
3410
3411 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3412
3413 * minsyms.c (compare_minimal_symbols): Rename to...
3414 (minimal_symbol_is_less_than): ...this, and adjust to STL
3415 conventions (return bool, take arguments as references)
3416 (minimal_symbol_reader::install): Call std::sort instead
3417 of qsort.
3418
3419 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3420
3421 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3422 hash and why.
3423 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3424 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3425
3426 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3427
3428 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3429 * psympriv.h (add_psymbol_to_list): Move comment here and update
3430 it.
3431
3432 2019-09-29 Tom de Vries <tdevries@suse.de>
3433
3434 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3435 Use $tmpdir/$(basename "$output_file").dwz instead of
3436 "${output_file}.dwz".
3437
3438 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3439
3440 PR gdb/25045
3441 * hppa-linux-nat.c: Include gdbarch.h.
3442
3443 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3444
3445 * blockframe.c (find_pc_partial_function): Change return type to bool.
3446 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3447 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3448 (stub_gnu_ifunc_resolve_name): Likewise.
3449 * symtab.c (compare_filenames_for_search): Likewise.
3450 (compare_glob_filenames_for_search): Likewise.
3451 (matching_obj_sections): Likewise.
3452 (symbol_matches_domain): Likewise.
3453 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3454 (find_line_pc): Change return type to bool.
3455 (find_line_pc_range): Likewise.
3456 (producer_is_realview): Likewise.
3457 * symtab.h (symbol_matches_domain): Likewise.
3458 (find_pc_partial_function): Likewise.
3459 (find_pc_line_pc_range): Likewise.
3460 (in_gnu_ifunc_stub): Likewise.
3461 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3462 (find_line_pc): Likewise.
3463 (find_line_pc_range): Likewise.
3464 (matching_obj_sections): Likewise.
3465 (find_line_symtab): Change out parameter to bool.
3466 (producer_is_realview): Change return type to bool.
3467 (compare_filenames_for_search): Likewise.
3468 (compare_glob_filenames_for_search): Likewise.
3469
3470 2019-09-26 Tom Tromey <tom@tromey.com>
3471
3472 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3473 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3474 * gdb_usleep.h: Remove.
3475 * gdb_usleep.c: Remove.
3476 * utils.c: Don't include gdb_usleep.h.
3477
3478 2019-09-26 Tom Tromey <tromey@adacore.com>
3479
3480 * python/py-type.c (type_to_type_object): Call check_typedef
3481 for stub types.
3482
3483 2019-09-26 Tom Tromey <tom@tromey.com>
3484
3485 * utils.h (initialize_utils): Don't declare.
3486 * top.c (gdb_init): Don't call initialize_utils.
3487 * utils.c (initialize_utils): Remove. Move contents...
3488 (_initialize_utils): ... here.
3489
3490 2019-09-25 Tom Tromey <tom@tromey.com>
3491
3492 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3493 * utils.h (make_hex_string): Don't declare.
3494 * utils.c (make_hex_string): Remove.
3495
3496 2019-09-24 Tom de Vries <tdevries@suse.de>
3497
3498 PR gdb/23815
3499 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3500 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3501
3502 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3503
3504 * NEWS: Mention new simulator port for PRU.
3505
3506 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3507
3508 * ada-exp.y (write_object_remaining): Update.
3509 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3510 and eliminate the static buffer.
3511 (ada_decode_symbol): Update.
3512 (ada_la_decode): Update.
3513 (ada_sniff_from_mangled_name): Update.
3514 (is_valid_name_for_wild_match): Update.
3515 (ada_lookup_name_info::matches): Update and simplify.
3516 (name_matches_regex): Update.
3517 (ada_add_global_exceptions): Update.
3518 * ada-lang.h (ada_decode): Update signature.
3519 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3520 * dwarf-index-write.c (debug_names::insert): Update.
3521
3522 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3523
3524 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3525 formatting.
3526
3527 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3528
3529 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3530 Change "nonzero" to "true" in documentation.
3531
3532 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3533
3534 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3535 (_initialize_darwin_solib): Don't set
3536 darwin_so_ops.lookup_lib_global_symbol.
3537 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3538 set_gdbarch_iterate_over_objfiles_in_search_order.
3539 (elf_lookup_lib_symbol): Rename to...
3540 (svr4_iterate_over_objfiles_in_search_order): this, and update
3541 to iterate semantics.
3542 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3543 * solib.c (solib_global_lookup): Remove.
3544 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3545 (solib_global_lookup): Remove.
3546 * symtab.c (lookup_global_or_static_symbol): Remove call to
3547 solib_global_lookup.
3548
3549 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3550
3551 * NEWS: Move entries about default MI version now being
3552 version 3, and about the GDB/MI fix for multi-location
3553 breakpoints to the "since GDB 8.3" section.
3554
3555 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3556
3557 GDB 8.3.1 released.
3558
3559 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3560
3561 * NEWS: Mention that Cell/B.E. debugging support was removed.
3562 * MAINTAINERS: Remove spu target.
3563
3564 * config/djgpp/fnchange.lst: Remove entries for removed files.
3565
3566 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3567 spu-multiarch.o, and spu-tdep.o.
3568 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3569 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3570 spu-multiarch.c, and spu-tdep.c.
3571 * spu-linux-nat.c: Remove file.
3572 * spu-multiarch.c: Remove file.
3573 * spu-tdep.c: Remove file.
3574 * spu-tdep.h: Remove file.
3575 * solib-spu.c: Remove file.
3576 * solib-spu.h: Remove file.
3577
3578 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3579 * configure.nat (spu-linux): Remove.
3580 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3581 solib-multiarch.o from gdb_target_obs.
3582 (spu*-*-*): Remove.
3583
3584 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3585 feature flag.
3586 (ppc_linux_no_features): Update.
3587 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3588 Cell/B.E. support.
3589 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3590 (tdesc_powerpc_cell64l): Likewise.
3591 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3592 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3593 Cell/B.E. support.
3594 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3595 Do not include "features/rs6000/powerpc-cell32l.c" or
3596 "features/rs6000/powerpc-cell64l.c".
3597 (ppc_linux_spu_section): Remove.
3598 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3599 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3600 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3601 (ppc_linux_spe_context_lookup): Remove.
3602 (ppc_linux_spe_context_inferior_created): Remove.
3603 (ppc_linux_spe_context_solib_loaded): Remove.
3604 (ppc_linux_spe_context_solib_unloaded): Remove.
3605 (ppc_linux_spe_context): Remove.
3606 (struct ppu2spu_cache): Remove.
3607 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3608 (struct ppu2spu_data): Remove.
3609 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3610 ppu2spu_unwind): Remove.
3611 (ppc_linux_init_abi): Remove Cell/B.E. support.
3612 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3613
3614 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3615 (rs6000/powerpc-cell64l-expedite): Likewise
3616 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3617 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3618 rs6000/powerpc-cell64l.xml.
3619 * features/rs6000/powerpc-cell32l.xml: Remove.
3620 * features/rs6000/powerpc-cell64l.xml: Likewise.
3621 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3622 * features/rs6000/powerpc-cell64l.c: Likewise.
3623 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3624 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3625 * regformats/reg-spu.dat: Remove.
3626
3627 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3628 * corelow.c (struct spuid_list): Remove.
3629 (add_to_spuid_list): Remove.
3630 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3631 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3632 (remote_protocol_features): Remove associated entries.
3633 (_initialize_remote): No longer initialize them.
3634 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3635 * linux-nat.c (SPUFS_MAGIC): Remove.
3636 (linux_proc_xfer_spu): Remove.
3637 (spu_enumerate_spu_ids): Remove.
3638 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3639 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3640 (linux_make_corefile_notes): No longer call it.
3641
3642 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3643 (cooked_write_test): Likewise.
3644
3645 2019-09-20 Tom Tromey <tom@tromey.com>
3646
3647 * NEWS: Mention case-sensitivity of TUI commands.
3648 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3649 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3650 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3651
3652 2019-09-20 Tom Tromey <tom@tromey.com>
3653
3654 * tui/tui-source.c (tui_source_window::set_contents): Use
3655 make_unique_xstrdup.
3656 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3657 make_unique_xstrdup.
3658
3659 2019-09-20 Tom Tromey <tom@tromey.com>
3660
3661 * tui/tui-data.c: Remove separator comments.
3662 * tui/tui-layout.c: Remove separator comments.
3663 * tui/tui-win.c: Remove separator comments.
3664 * tui/tui-wingeneral.c: Remove separator comments.
3665
3666 2019-09-20 Tom Tromey <tom@tromey.com>
3667
3668 * tui/tui.h (strcat_to_buf): Don't declare.
3669 * tui/tui.c (strcat_to_buf): Remove.
3670
3671 2019-09-20 Tom Tromey <tom@tromey.com>
3672
3673 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3674 from "fullname".
3675 * tui/tui-source.c (tui_source_window::set_contents)
3676 (tui_source_window::location_matches_p)
3677 (tui_source_window::maybe_update): Update.
3678
3679 2019-09-20 Tom Tromey <tom@tromey.com>
3680
3681 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3682 Update.
3683 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3684 prefix.
3685 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3686 (tui_data_window::line_from_reg_element_no)
3687 (tui_data_window::first_reg_element_no_inline)
3688 (tui_data_window::show_registers)
3689 (tui_data_window::show_register_group)
3690 (tui_data_window::display_registers_from)
3691 (tui_data_window::display_registers_from_line)
3692 (tui_data_window::first_data_item_displayed)
3693 (tui_data_window::delete_data_content_windows)
3694 (tui_data_window::erase_data_content)
3695 (tui_data_window::do_scroll_vertical)
3696 (tui_data_window::refresh_window)
3697 (tui_data_window::check_register_values): Update.
3698
3699 2019-09-20 Tom Tromey <tom@tromey.com>
3700
3701 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3702 (struct tui_locator_window) <full_name, proc_name>: Now
3703 std::string.
3704 * tui/tui-stack.c (tui_locator_window::make_status_line)
3705 (tui_locator_window::set_locator_fullname)
3706 (tui_locator_window::set_locator_info): Update.
3707 * tui/tui-source.c (tui_source_window::set_contents)
3708 (tui_source_window::showing_source_p): Update.
3709
3710 2019-09-20 Tom Tromey <tom@tromey.com>
3711
3712 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3713 Don't call tui_locator_win_info_ptr.
3714
3715 2019-09-20 Tom Tromey <tom@tromey.com>
3716
3717 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3718
3719 2019-09-20 Tom Tromey <tom@tromey.com>
3720
3721 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3722 height for locator.
3723 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3724 * tui/tui-layout.c (show_source_disasm_command, show_data)
3725 (show_source_or_disasm_and_command): Use 1 as height for locator.
3726
3727 2019-09-20 Tom Tromey <tom@tromey.com>
3728
3729 * tui/tui.c (tui_enable): Update.
3730 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3731 Update.
3732 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3733 Update.
3734 * tui/tui-data.c (win_resized): Now bool.
3735 (tui_win_resized): Return bool.
3736 (tui_set_win_resized_to): Accept a bool.
3737
3738 2019-09-20 Tom Tromey <tom@tromey.com>
3739
3740 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3741 Change type of "refresh_values_only".
3742 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3743 type of "refresh_values_only".
3744
3745 2019-09-20 Tom Tromey <tom@tromey.com>
3746
3747 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3748 std::string.
3749 (tui_disassemble): Add "pos" parameter.
3750 (tui_disasm_window::set_contents): Simplify.
3751
3752 2019-09-20 Tom Tromey <tom@tromey.com>
3753
3754 * tui/tui-winsource.h (struct tui_source_window_base)
3755 <show_source_content>: Now private.
3756 * tui/tui-winsource.c
3757 (tui_source_window_base::show_source_content): Don't handle empty
3758 content case.
3759
3760 2019-09-20 Tom Tromey <tom@tromey.com>
3761
3762 * tui/tui-layout.c (show_source_disasm_command)
3763 (show_source_or_disasm_and_command): Don't call
3764 show_source_content.
3765
3766 2019-09-20 Tom Tromey <tom@tromey.com>
3767
3768 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3769 Declare.
3770 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3771 from tui_make_status_line.
3772 (tui_locator_window::rerender): Update.
3773
3774 2019-09-20 Tom Tromey <tom@tromey.com>
3775
3776 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3777 (tui_locator_window::rerender): Update.
3778
3779 2019-09-20 Tom Tromey <tom@tromey.com>
3780
3781 * tui/tui-winsource.h (struct tui_source_window_base)
3782 <~tui_source_window_base>: Don't declare.
3783 <fullname>: Remove.
3784 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3785 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3786 member.
3787 * tui/tui-source.c (tui_source_window::set_contents): Update.
3788 (tui_source_window::location_matches_p)
3789 (tui_source_window::maybe_update): Update.
3790
3791 2019-09-20 Tom Tromey <tom@tromey.com>
3792
3793 * tui/tui-winsource.h (~tui_source_element): Remove.
3794 (tui_source_element): Update.
3795 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3796 * tui/tui-winsource.c (tui_show_source_line): Update.
3797 * tui/tui-source.c (tui_source_window::set_contents): Update.
3798 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3799
3800 2019-09-20 Tom Tromey <tom@tromey.com>
3801
3802 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3803 declare.
3804 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3805 tui_clear_source_windows_detail.
3806 * tui/tui-winsource.h (struct tui_source_window_base)
3807 <clear_detail>: Don't declare.
3808 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3809 Remove.
3810 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3811
3812 2019-09-20 Tom Tromey <tromey@adacore.com>
3813
3814 PR ada/24919:
3815 * block.c (contained_in): Fix final return value.
3816
3817 2019-09-20 Alan Modra <amodra@gmail.com>
3818
3819 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3820 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3821 (read_indirect_string_from_dwz): Use bfd accessor.
3822 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3823 * machoread.c (macho_symfile_read_all_oso): Likewise.
3824 * solib.c (solib_bfd_open): Likewise.
3825
3826 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3827
3828 * eval.c: Move declaration of overload_resolution to...
3829 * value.h: ...here.
3830
3831 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3832
3833 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3834 * arm-linux-tdep.c: Likewise.
3835 * arm-nbsd-nat.c: Likewise.
3836 * arm-tdep.h: Declare arm_apcs_32.
3837 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3838
3839 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3840
3841 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3842 * dwarf2read.h: Declare dwarf_always_disassemble.
3843
3844 2019-09-19 Tom de Vries <tdevries@suse.de>
3845
3846 PR gdb/25009
3847 * source-cache.c (source_cache::ensure): Catch exception thrown during
3848 construction of the highlighter.
3849
3850 2019-09-18 Alan Modra <amodra@gmail.com>
3851
3852 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3853 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3854 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3855 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3856 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3857 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3858 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3859 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3860 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3861 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3862 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3863 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3864 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3865 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3866 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3867 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3868 * mi/mi-interp.c: Update throughout for bfd section macro and
3869 function changes.
3870 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3871 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3872
3873 2019-09-18 Tom Tromey <tom@tromey.com>
3874
3875 * NEWS: Add entry.
3876 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3877 call rl_initialize.
3878 (tui_enable): Do not call rl_initialize.
3879
3880 2019-09-18 Christian Groessler <chris@groessler.org>
3881
3882 * alpha-linux-nat.c: Include gdbarch.h.
3883
3884 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3885
3886 * ui-file.c: Include cli/cli-style.h.
3887 (term_cli_styling): Remove cli_styling declaration.
3888
3889 2019-09-18 Alan Modra <amodra@gmail.com>
3890
3891 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3892 to bfd_asymbol_section.
3893
3894 2019-09-18 Alan Modra <amodra@gmail.com>
3895
3896 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3897 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3898 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3899
3900 2019-09-18 Alan Modra <amodra@gmail.com>
3901
3902 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3903 * spu-linux-nat.c (spu_bfd_open): Likewise.
3904
3905 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3906
3907 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3908 to bool to match definition in dwarf2read.c.
3909
3910 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3911
3912 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3913 (print_signatures): Likewise.
3914 (trust_pad_over_xvs): Likewise.
3915 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3916 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3917 * arm-linux-nat.c (arm_apcs_32): Likewise.
3918 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3919 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3920 * arm-tdep.c (arm_debug): Likewise.
3921 (arm_apcs_32): Likewise.
3922 * auto-load.c (debug_auto_load): Likewise.
3923 (auto_load_gdb_scripts): Likewise.
3924 (global_auto_load): Likewise.
3925 (auto_load_local_gdbinit): Likewise.
3926 (auto_load_local_gdbinit_loaded): Likewise.
3927 * auto-load.h (global_auto_load): Likewise.
3928 (auto_load_local_gdbinit): Likewise.
3929 (auto_load_local_gdbinit_loaded): Likewise.
3930 * breakpoint.c (disconnected_dprintf): Likewise.
3931 (breakpoint_proceeded): Likewise.
3932 (automatic_hardware_breakpoints): Likewise.
3933 (always_inserted_mode): Likewise.
3934 (target_exact_watchpoints): Likewise.
3935 (_initialize_breakpoint): Update.
3936 * breakpoint.h (target_exact_watchpoints): Change to bool.
3937 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3938 * cli/cli-cmds.c (trace_commands): Likewise.
3939 * cli/cli-cmds.h (trace_commands): Likewise.
3940 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3941 to bool*.
3942 * cli/cli-logging.c (logging_overwrite): Change to bool.
3943 (logging_redirect): Likewise.
3944 (debug_redirect): Likewise.
3945 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3946 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3947 to bool.
3948 <boolean_option_def>: Update.
3949 (struct flag_option_def): Change default type of Context to bool
3950 from int.
3951 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3952 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3953 (get_setshow_command_value_string): Likewise.
3954 * cli/cli-style.c (cli_styling): Change to bool.
3955 (source_styling): Likewise.
3956 * cli/cli-style.h (source_styling): Likewise.
3957 (cli_styling): Likewise.
3958 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3959 to bool.
3960 * command.h (var_types): Update comment.
3961 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3962 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3963 bool.
3964 (debug_compile_cplus_scopes): Likewise.
3965 * compile/compile-internal.h (compile_debug): Likewise.
3966 * compile/compile.c (compile_debug): Likewise.
3967 (struct compile_options) <raw>: Likewise.
3968 * cp-support.c (catch_demangler_crashes): Likewise.
3969 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3970 (usr_cmd_cris_dwarf2_cfi): Likewise.
3971 * csky-tdep.c (csky_debug): Likewise.
3972 * darwin-nat.c (enable_mach_exceptions): Likewise.
3973 * dcache.c (dcache_enabled_p): Likewise.
3974 * defs.h (info_verbose): Likewise.
3975 * demangle.c (demangle): Likewise.
3976 (asm_demangle): Likewise.
3977 * dwarf-index-cache.c (debug_index_cache): Likewise.
3978 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3979 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3980 * dwarf2read.c (check_physname): Likewise.
3981 (use_deprecated_index_sections): Likewise.
3982 (dwarf_always_disassemble): Likewise.
3983 * eval.c (overload_resolution): Likewise.
3984 * event-top.c (set_editing_cmd_var): Likewise.
3985 (exec_done_display_p): Likewise.
3986 * event-top.h (set_editing_cmd_var): Likewise.
3987 (exec_done_display_p): Likewise.
3988 * exec.c (write_files): Likewise.
3989 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3990 (debug_fbsd_nat): Likewise.
3991 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3992 Likewise.
3993 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3994 <backtrace_past_entry> Likewise.
3995 * gdb-demangle.h (demangle): Likewise.
3996 (asm_demangle): Likewise.
3997 * gdb_bfd.c (bfd_sharing): Likewise.
3998 * gdbcore.h (write_files): Likewise.
3999 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4000 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4001 * gdbthread.h (print_thread_events): Likewise.
4002 * gdbtypes.c (opaque_type_resolution): Likewise.
4003 (strict_type_checking): Likewise.
4004 * gnu-nat.c (gnu_debug_flag): Likewise.
4005 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4006 * guile/scm-param.c (pascm_variable): Add boolval.
4007 (add_setshow_generic): Update.
4008 (pascm_param_value): Update.
4009 (pascm_set_param_value_x): Update.
4010 * hppa-tdep.c (hppa_debug): Change to bool..
4011 * infcall.c (may_call_functions_p): Likewise.
4012 (coerce_float_to_double_p): Likewise.
4013 (unwind_on_signal_p): Likewise.
4014 (unwind_on_terminating_exception_p): Likewise.
4015 * infcmd.c (startup_with_shell): Likewise.
4016 * inferior.c (print_inferior_events): Likewise.
4017 * inferior.h (startup_with_shell): Likewise.
4018 (print_inferior_events): Likewise.
4019 * infrun.c (step_stop_if_no_debug): Likewise.
4020 (detach_fork): Likewise.
4021 (debug_displaced): Likewise.
4022 (disable_randomization): Likewise.
4023 (non_stop): Likewise.
4024 (non_stop_1): Likewise.
4025 (observer_mode): Likewise.
4026 (observer_mode_1): Likewise.
4027 (set_observer_mode): Update.
4028 (sched_multi): Change to bool.
4029 * infrun.h (debug_displaced): Likewise.
4030 (sched_multi): Likewise.
4031 (step_stop_if_no_debug): Likewise.
4032 (non_stop): Likewise.
4033 (disable_randomization): Likewise.
4034 * linux-tdep.c (use_coredump_filter): Likewise.
4035 (dump_excluded_mappings): Likewise.
4036 * linux-thread-db.c (auto_load_thread_db): Likewise.
4037 (check_thread_db_on_load): Likewise.
4038 * main.c (captured_main_1): Update.
4039 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4040 xx2_opt, boolean_opt>: Change to bool.
4041 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4042 * maint.c (maintenance_profile_p): Likewise.
4043 (per_command_time): Likewise.
4044 (per_command_space): Likewise.
4045 (per_command_symtab): Likewise.
4046 * memattr.c (inaccessible_by_default): Likewise.
4047 * mi/mi-main.c (mi_async): Likewise.
4048 (mi_async_1): Likewise.
4049 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4050 * nat/fork-inferior.h (startup_with_shell): Likewise.
4051 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4052 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4053 * nios2-tdep.c (nios2_debug): Likewise.
4054 * or1k-tdep.c (or1k_debug): Likewise.
4055 * parse.c (parser_debug): Likewise.
4056 * parser-defs.h (parser_debug): Likewise.
4057 * printcmd.c (print_symbol_filename): Likewise.
4058 * proc-api.c (procfs_trace): Likewise.
4059 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4060 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4061 (set_parameter_value): Update.
4062 (add_setshow_generic): Update.
4063 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4064 to bool*.
4065 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4066 int*.
4067 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4068 * record-btrace.c (record_btrace_target::store_registers): Update.
4069 * record-full.c (record_full_memory_query): Change to bool.
4070 (record_full_stop_at_limit): Likewise.
4071 * record-full.h (record_full_memory_query): Likewise.
4072 * remote-notif.c (notif_debug): Likewise.
4073 * remote-notif.h (notif_debug): Likewise.
4074 * remote.c (use_range_stepping): Likewise.
4075 (interrupt_on_connect): Likewise.
4076 (remote_break): Likewise.
4077 * ser-tcp.c (tcp_auto_retry): Likewise.
4078 * ser-unix.c (serial_hwflow): Likewise.
4079 * skip.c (debug_skip): Likewise.
4080 * solib-aix.c (solib_aix_debug): Likewise.
4081 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4082 (spu_auto_flush_cache_p): Likewise.
4083 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4084 Likewise.
4085 (struct info_print_options) <quiet>: Likewise.
4086 * symfile-debug.c (debug_symfile): Likewise.
4087 * symfile.c (auto_solib_add): Likewise.
4088 (separate_debug_file_debug): Likewise.
4089 * symfile.h (auto_solib_add): Likewise.
4090 (separate_debug_file_debug): Likewise.
4091 * symtab.c (basenames_may_differ): Likewise.
4092 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4093 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4094 (struct info_types_options) <quiet>: Likewise.
4095 * symtab.h (demangle): Likewise.
4096 (basenames_may_differ): Likewise.
4097 * target-dcache.c (stack_cache_enabled_1): Likewise.
4098 (code_cache_enabled_1): Likewise.
4099 * target.c (trust_readonly): Likewise.
4100 (may_write_registers): Likewise.
4101 (may_write_memory): Likewise.
4102 (may_insert_breakpoints): Likewise.
4103 (may_insert_tracepoints): Likewise.
4104 (may_insert_fast_tracepoints): Likewise.
4105 (may_stop): Likewise.
4106 (auto_connect_native_target): Likewise.
4107 (target_stop_and_wait): Update.
4108 (target_async_permitted): Change to bool.
4109 (target_async_permitted_1): Likewise.
4110 (may_write_registers_1): Likewise.
4111 (may_write_memory_1): Likewise.
4112 (may_insert_breakpoints_1): Likewise.
4113 (may_insert_tracepoints_1): Likewise.
4114 (may_insert_fast_tracepoints_1): Likewise.
4115 (may_stop_1): Likewise.
4116 * target.h (target_async_permitted): Likewise.
4117 (may_write_registers): Likewise.
4118 (may_write_memory): Likewise.
4119 (may_insert_breakpoints): Likewise.
4120 (may_insert_tracepoints): Likewise.
4121 (may_insert_fast_tracepoints): Likewise.
4122 (may_stop): Likewise.
4123 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4124 (make_thread_apply_all_options_def_group): Change argument from int*
4125 to bool*.
4126 (thread_apply_all_command): Update.
4127 (print_thread_events): Change to bool.
4128 * top.c (confirm): Likewise.
4129 (command_editing_p): Likewise.
4130 (history_expansion_p): Likewise.
4131 (write_history_p): Likewise.
4132 (info_verbose): Likewise.
4133 * top.h (confirm): Likewise.
4134 (history_expansion_p): Likewise.
4135 * tracepoint.c (disconnected_tracing): Likewise.
4136 (circular_trace_buffer): Likewise.
4137 * typeprint.c (print_methods): Likewise.
4138 (print_typedefs): Likewise.
4139 * utils.c (debug_timestamp): Likewise.
4140 (sevenbit_strings): Likewise.
4141 (pagination_enabled): Likewise.
4142 * utils.h (sevenbit_strings): Likewise.
4143 (pagination_enabled): Likewise.
4144 * valops.c (overload_resolution): Likewise.
4145 * valprint.h (struct value_print_options) <prettyformat_arrays,
4146 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4147 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4148 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4149 Likewise.
4150 * windows-nat.c (new_console): Likewise.
4151 (cygwin_exceptions): Likewise.
4152 (new_group): Likewise.
4153 (debug_exec): Likewise.
4154 (debug_events): Likewise.
4155 (debug_memory): Likewise.
4156 (debug_exceptions): Likewise.
4157 (useshell): Likewise.
4158 * windows-tdep.c (maint_display_all_tib): Likewise.
4159 * xml-support.c (debug_xml): Likewise.
4160
4161 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4162
4163 * source.c (prepare_path_for_appending): New function.
4164 (openp): Make use of new function.
4165 (find_and_open_source): Search for the compilation directory and
4166 source file as a relative path beneath the directory search path.
4167
4168 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4169
4170 * source-cache.c (source_cache::get_line_charpos): Catch
4171 exceptions and return false, this matches the behaviour documented
4172 in the header file.
4173
4174 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4175
4176 * ada-tasks.c (info_task): Remove quoting of the task's name.
4177
4178 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4179
4180 * symfile.c (auto_solib_add): Replace comment with a reference
4181 to the header file.
4182
4183 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4184
4185 * NEWS: Mention that gdb can now be compiled with Python 3
4186 on Windows.
4187
4188 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4189
4190 * maint.c (maint_print_section_data::maint_print_section_data):
4191 Force use of 'float log10 (float)' by casting the argument to
4192 float.
4193
4194 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4195
4196 * maint.c: Add 'cmath' include.
4197 (struct maint_print_section_data): New structure.
4198 (print_section_index): New function.
4199 (print_bfd_section_info): Add header comment, small whitespace
4200 cleanup, and update to call new print_section_index function.
4201 (print_objfile_section_info): Likewise.
4202 (maint_obj_section_from_bfd_section): New function.
4203 (print_bfd_section_info_maybe_relocated): New function.
4204 (maintenance_info_sections): Add header comment, always use
4205 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4206
4207 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4208
4209 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4210 inner scope, add check that the objfile has psymtabs before
4211 checking psymtabs_addrmap.
4212 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4213
4214 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4215
4216 * NEWS: Announce that Ada task names are now shown at more places,
4217 and between quotes (except in info task output).
4218 * gdb/ada-tasks.c (task_to_str): New function.
4219 (display_current_task_id): Call task_to_str.
4220 (task_command_1): Likewise.
4221 (print_ada_task_info): In non-mi mode, Properly align headers and data
4222 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4223
4224 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4225
4226 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4227 prstatus.pr_lwp.pr_info instead of making it up.
4228
4229 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4230
4231 * auto-load.c (auto_load_expand_dir_vars): Update.
4232 * defs.h (gdb_datadir): Change to std::string.
4233 (python_libdir): Likewise.
4234 (relocate_gdb_directory): Change return type to std::string.
4235 * guile/guile.c (gdbscm_data_directory): Update.
4236 (initialize_scheme_side): Update.
4237 * jit.c (jit_reader_dir): Change to std::string.
4238 (jit_reader_load_command): Update.
4239 * main.c (gdb_datadir): Change to std::string.
4240 (python_libdir): Likewise.
4241 (set_gdb_data_directory): Update.
4242 (relocate_path): Change to return std::string.
4243 (relocate_gdb_directory): Change to return std::string.
4244 (relocate_gdbinit_path_maybe_in_datadir): Update.
4245 (captured_main_1): Update.
4246 * python/python.c (do_start_initialization): Update.
4247 * top.c (show_gdb_datadir): Update.
4248 * xml-syscall.c (xml_init_syscalls_info): Update.
4249 (init_syscalls_info): Update.
4250
4251 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4252
4253 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4254 out of get_init_files.
4255 (get_init_files): Update.
4256
4257 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4258
4259 * main.c (get_init_files): Change to use std::string.
4260 (captured_main_1): Update.
4261 (print_gdb_help): Update.
4262
4263 2019-09-11 Ali Tamur <tamur@google.com>
4264
4265 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4266 implementation.
4267
4268 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4269
4270 * dbxread.c (read_dbx_symtab): Update.
4271 * dwarf2read.c (load_partial_dies): Update.
4272 * mdebugread.c (parse_partial_symbols): Update.
4273 (handle_psymbol_enumerators): Update.
4274 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4275 * psymtab.c (add_psymbol_to_bcache): Likewise.
4276 (add_psymbol_to_list): Likewise.
4277 * symtab.c (symbol_set_names): Likewise.
4278 * symtab.h (symbol_set_names): Likewise.
4279 * xcoffread.c (scan_xcoff_symtab): Update.
4280
4281 2019-09-11 Tom Tromey <tom@tromey.com>
4282
4283 * symfile-mem.c (symbol_file_add_from_memory): Use
4284 bfd_set_filename.
4285 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4286 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4287
4288 2019-09-10 Tom Tromey <tromey@adacore.com>
4289
4290 * dwarf-index-write.c (write_psymbols): Extend error message.
4291 (debug_names::insert): Add Ada code.
4292 (debug_names::write_psymbols): Remove Ada check.
4293 (debug_names) <m_string_obstack>: New member.
4294 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4295 (gdb_index_symbol_name_matcher::matches): Remove.
4296 (mapped_index_base::find_name_components_bounds): Add "lang"
4297 parameter.
4298 (mapped_index_base::build_name_components): Also split names
4299 according to Ada syntax.
4300 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4301 type of "match_callback".
4302 (check_match, check_find_bounds_finds)
4303 (dw2_expand_symtabs_matching): Update.
4304 (dw2_debug_names_iterator): Add new constructor.
4305 (dw2_debug_names_map_matching_symbols): New function.
4306 (dw2_debug_names_expand_symtabs_matching): Update.
4307 (dwarf2_debug_names_functions): Use
4308 dw2_debug_names_map_matching_symbols.
4309
4310 2019-09-10 Tom Tromey <tromey@adacore.com>
4311
4312 * dwarf2read.c (dw2_get_file_names_reader): Add the
4313 CU's file name to the results.
4314
4315 2019-09-10 Tom Tromey <tromey@adacore.com>
4316
4317 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4318 map_matching_symbols. Update.
4319 * dwarf2read.c (dw2_map_matching_symbols): Update.
4320 * psymtab.c (match_partial_symbol): Change type; update.
4321 (psym_map_matching_symbols): Likewise.
4322 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4323 type; update.
4324 * symfile.h (struct quick_symbol_functions)
4325 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4326 Remove "match".
4327
4328 2019-09-10 Tom Tromey <tromey@adacore.com>
4329
4330 * psymtab.c (map_block): Remove.
4331 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4332 * symtab.c (iterate_over_symbols_terminated): New function.
4333 * symtab.c (iterate_over_symbols_terminated): Declare.
4334
4335 2019-09-10 Tom Tromey <tromey@adacore.com>
4336
4337 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4338 * language.h (struct language_defn) <la_iterate_over_symbols>:
4339 Return bool.
4340 * symtab.c (iterate_over_symbols): Return bool.
4341 * symtab.h (iterate_over_symbols): Return bool.
4342
4343 2019-09-10 Tom Tromey <tromey@adacore.com>
4344
4345 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4346 (add_nonlocal_symbols): Update.
4347 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4348 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4349 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4350 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4351 Change type of "callback". Remove "data".
4352
4353
4354 2019-09-09 Ali Tamur <tamur@google.com>
4355
4356 * dwarf2read.c (comp_unit_head): Update comment.
4357 (dwarf2_dwo_name): New function declaration.
4358 (dwarf_unit_type_name): New function declaration.
4359 (read_comp_unit_head): Add support for new compilation units,
4360 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4361 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4362 (currently named as "signature") in their header. Also clarify error
4363 messages.
4364 (lookup_dwo_id): New function. Returns the dwo id of the given
4365 compile unit.
4366 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4367 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4368 functions.
4369 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4370 (dwarf2_dwo_name): Get the dwo name if present.
4371 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4372 purposes.
4373
4374 2019-09-09 Tom Tromey <tom@tromey.com>
4375
4376 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4377
4378 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4379
4380 * python/python.c (do_start_initialization): Make progname_copy static,
4381 to avoid a leak report.
4382
4383 2019-09-08 Tom Tromey <tom@tromey.com>
4384
4385 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4386
4387 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4388
4389 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4390 Change type to gdb::optional<block_enum>.
4391 (dw2_symtab_iter_init): Change block_index parameter type
4392 to gdb::optional<block_enum>.
4393 (dw2_lookup_symbol): Change block_index parameter
4394 type to block_enum.c
4395 (dw2_debug_names_lookup_symbol): Likewise.
4396 * psymtab.c (psym_lookup_symbol): Likewise.
4397 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4398 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4399 Likewise.
4400
4401 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4402
4403 * defs.h (relocate_gdb_directory): Change int to bool in
4404 signature and rename flag to relocatable.
4405 * main.c (relocate_path): Likewise.
4406 (relocate_gdb_directory): Likewise.
4407
4408 2019-09-06 Alan Modra <amodra@gmail.com>
4409
4410 * coffread.c (coff_symfile_read): Constify filename variable.
4411 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4412 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4413 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4414 * solib.c (reload_shared_libraries_1): Likewise.
4415 * symfile.c (reread_symbols): Likewise.
4416 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4417 * solib-darwin.c (darwin_bfd_open): Likewise.
4418 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4419
4420 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4421
4422 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4423 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4424
4425 2019-09-03 Tom Tromey <tromey@adacore.com>
4426
4427 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4428 types.
4429 (has_negatives): Unbias a range type bound.
4430 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4431 * gdbtypes.c (operator==): Handle new field.
4432 (create_range_type): Add "bias" parameter.
4433 (create_static_range_type, resolve_dynamic_range): Update.
4434 * gdbtypes.h (struct range_bounds) <bias>: New member.
4435 (create_range_type): Add bias parameter.
4436 * printcmd.c (print_scalar_formatted): Unbias range types.
4437 * value.c (unpack_long): Unbias range types.
4438 (pack_long): Bias range types.
4439
4440 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4441
4442 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4443 probe arguments.
4444
4445 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4446
4447 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4448 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4449 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4450 (compile_probe_arg): Likewise.
4451 * probe.h (get_argument_count): Likewise.
4452 * solib-svr4.c (solib_event_probe_action): Likewise.
4453 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4454
4455 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4456
4457 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4458 code to here...
4459 (svr4_create_solib_event_breakpoints): ...from here.
4460
4461 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4462
4463 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4464 suffix from warning message.
4465
4466 2019-08-30 Tom Tromey <tom@tromey.com>
4467
4468 * tui/tui-winsource.h (struct tui_source_window_base)
4469 <refresh_all>: Don't declare.
4470 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4471 Remove.
4472 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4473 tui_show_locator_content.
4474 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4475 declare.
4476 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4477 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4478 declare.
4479
4480 2019-08-30 Tom Tromey <tom@tromey.com>
4481
4482 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4483
4484 2019-08-30 Tom Tromey <tom@tromey.com>
4485
4486 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4487 Remove unnecessary forward declarations.
4488
4489 2019-08-30 Tom Tromey <tom@tromey.com>
4490
4491 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4492 rerender.
4493 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4494 tui_show_locator_content.
4495
4496 2019-08-30 Tom Tromey <tom@tromey.com>
4497
4498 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4499 (tui_locator_window::rerender): Rewrite using body of previous
4500 tui_show_locator_content.
4501
4502 2019-08-30 Tom Tromey <tom@tromey.com>
4503
4504 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4505 set_locator_fullname>: New methods.
4506 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4507 Rename from tui_set_locator_fullname.
4508 (tui_locator_window::set_locator_info): Rename from
4509 tui_set_locator_info. Return bool.
4510 (tui_update_locator_fullname, tui_show_frame_info): Update.
4511
4512 2019-08-30 Tom Tromey <tom@tromey.com>
4513
4514 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4515
4516 2019-08-30 Tom Tromey <tom@tromey.com>
4517
4518 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4519 call touchwin.
4520
4521 2019-08-30 Tom Tromey <tom@tromey.com>
4522
4523 * tui/tui-wingeneral.c (box_win): Assume win_info and
4524 win_info->handle cannot be NULL.
4525
4526 2019-08-30 Tom Tromey <tom@tromey.com>
4527
4528 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4529 refresh_window>: Declare.
4530 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4531 resize.
4532 (tui_data_item_window::rerender): Rename from
4533 tui_display_register.
4534 (tui_data_item_window::refresh_window): New method.
4535 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4536 no-op.
4537
4538 2019-08-30 Tom Tromey <tom@tromey.com>
4539
4540 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4541 regs_column_count, current_group>: Move later. Now private.
4542 <get_current_group>: New method.
4543 * tui/tui-regs.c (tui_reg_command): Update.
4544 * tui/tui-layout.c (tui_set_layout): Update.
4545
4546 2019-08-30 Tom Tromey <tom@tromey.com>
4547
4548 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4549 (tui_data_window::rerender): Don't call
4550 check_and_display_highlight_if_needed.
4551 (tui_data_window::refresh_all): Remove call to
4552 erase_data_content.
4553
4554 2019-08-30 Tom Tromey <tom@tromey.com>
4555
4556 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4557 (tui_data_window::display_registers_from)
4558 (tui_data_window::display_reg_element_at_line)
4559 (tui_data_window::display_registers_from_line): Remove checks of
4560 "empty".
4561
4562 2019-08-30 Tom Tromey <tom@tromey.com>
4563
4564 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4565 Don't declare.
4566 * tui/tui-regs.c (tui_data_window::show_registers): Call
4567 rerender.
4568 (tui_data_window::rerender): Rename from display_all_data.
4569 (tui_data_window::rerender): Remove old implementation.
4570
4571 2019-08-30 Tom Tromey <tom@tromey.com>
4572
4573 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4574 text.
4575 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4576
4577 2019-08-29 Bernhard Wodok <barto@gmx.net>
4578 Sergio Durigan Junior <sergiodj@redhat.com>
4579
4580 PR win32/24284
4581 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4582
4583 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4584
4585 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4586 when searching for types.
4587
4588 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4589
4590 * f-lang.c (f_language_defn): Use f_print_typedef.
4591 * f-lang.h (f_print_typedef): Declare.
4592 * f-typeprint.c (f_print_typedef): Define.
4593
4594 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4595
4596 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4597
4598 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4599
4600 * cli/cli-utils.c (info_print_options_defs): Delete.
4601 (make_info_print_options_def_group): Delete.
4602 (extract_info_print_options): Delete.
4603 (info_print_command_completer): Delete.
4604 (info_print_args_help): Add extra parameter, and optionally
4605 include text about -n flag.
4606 * cli/cli-utils.h (struct info_print_options): Delete.
4607 (extract_info_print_options): Delete declaration.
4608 (info_print_command_completer): Delete declaration.
4609 (info_print_args_help): Add extra parameter, extend header
4610 comment.
4611 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4612 search_symbols.
4613 * stack.c (struct info_print_options): New type.
4614 (info_print_options_defs): New file scoped variable.
4615 (make_info_print_options_def_group): New static function.
4616 (info_print_command_completer): New static function.
4617 (info_locals_command): Update to use new local functions.
4618 (info_args_command): Likewise.
4619 (_initialize_stack): Add extra parameter to calls to
4620 info_print_args_help.
4621 * symtab.c (search_symbols): Add extra parameter, use this to
4622 possibly excluse non-debug symbols.
4623 (symtab_symbol_info): Add extra parameter, which is passed on to
4624 search_symbols.
4625 (struct info_print_options): New type.
4626 (info_print_options_defs): New file scoped variable.
4627 (make_info_print_options_def_group): New static function.
4628 (info_print_command_completer): New static function.
4629 (info_variables_command): Update to use local functions, and pass
4630 extra parameter through to symtab_symbol_info.
4631 (info_functions_command): Likewise.
4632 (info_types_command): Pass additional argument through to
4633 symtab_symbol_info.
4634 (rbreak_command): Pass extra argument to search_symbols.
4635 (_initialize_symtab): Add extra arguments for calls to
4636 info_print_args_help, and update help text for 'info variables',
4637 'whereis', and 'info functions' commands.
4638 * symtab.h (search_symbols): Add extra argument to declaration.
4639 * NEWS: Mention new flags.
4640
4641 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4642
4643 * symtab.c (lookup_static_symbol): Call the new function (and move
4644 it down to be next to lookup_global_symbol).
4645 (struct global_sym_lookup_data): Add block_enum member and rename to...
4646 (struct global_or_static_sym_lookup_data): ...this.
4647 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4648 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4649 (lookup_symbol_global_or_static_iterator_cb): ...this.
4650 (lookup_global_or_static_symbol): New function.
4651 (lookup_global_symbol): Call new function.
4652
4653 2019-08-26 Tom de Vries <tdevries@suse.de>
4654
4655 PR c++/24852
4656 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4657 when pc_probe.prob == NULL.
4658
4659 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4660
4661 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4662 variable symbol_linkage to symbol_linkage_.
4663
4664 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4665
4666 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4667 represent whether the symbol is static, dynamic, or we don't
4668 know.
4669
4670 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4671
4672 * gdb/rx-tdep.c (rx_register_names): New.
4673 (rx_register_name): Delete.
4674 (rx_psw_type): Delete.
4675 (rx_fpsw_type): Delete.
4676 (rx_register_type): Delete.
4677 (rx_gdbarch_init): Convert target-descriptions.
4678 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4679 * gdb/features/Makefile: Add rx.xml.
4680 * gdb/features/rx.xml: New.
4681 * gdb/features/rx.c: Generated.
4682 * gdb/NEWS: Mention target description support.
4683
4684 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4685
4686 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4687 *slot_ptr.
4688
4689 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4690
4691 * configure.ac: Don't check for 'dlfcn.h' (moved to
4692 gdbsupport/common.m4).
4693 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4694 'gdbsupport/'.
4695 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4696 * compile/compile-c-support.c: Include
4697 'gdbsupport/gdb-dlfcn.h'.
4698 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4699 * gdb-dlfcn.c: Move to...
4700 * gdbsupport/gdb-dlfcn.c: ... here.
4701 * gdb-dlfcn.h: Move to...
4702 * gdbsupport/gdb-dlfcn.h: ... here.
4703
4704 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4705
4706 * nios2-tdep.c (struct reg_value): Improve comments. Make
4707 the offset field signed.
4708
4709 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4710
4711 * python/lib/gdb/__init__.py (_execute_file): New function.
4712 * python/python.c (python_run_simple_file): Call gdb._execute_file
4713 on Windows.
4714
4715 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4716
4717 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4718 all uses as this was never set to anything but a zero value.
4719
4720 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4721
4722 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4723
4724 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4725
4726 * tui/tui-data.h (tui_gen_win_info): Add an =default
4727 move constructor, required by some GCC versions.
4728
4729 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4730
4731 * go32-nat.c (go32_sysinfo): Add hygon_p.
4732
4733 2019-08-20 Tom Tromey <tom@tromey.com>
4734
4735 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4736 line_from_reg_element_no, first_reg_element_no_inline,
4737 display_all_data, delete_data_content_windows,
4738 erase_data_content>: Now private.
4739
4740 2019-08-20 Tom Tromey <tom@tromey.com>
4741
4742 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4743 (tui_unhighlight_win, tui_highlight_win)
4744 (tui_win_info::make_window): Update.
4745 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4746
4747 2019-08-20 Tom Tromey <tom@tromey.com>
4748
4749 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4750 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4751 (MAX_PID_WIDTH): Move to tui-stack.c.
4752 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4753 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4754 (MAX_PID_WIDTH): Move from tui-data.h.
4755
4756 2019-08-20 Tom Tromey <tom@tromey.com>
4757
4758 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4759 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4760 (box_win): Update.
4761 (tui_gen_win_info::make_window): Rename from tui_make_window.
4762 (tui_win_info::make_window): New method.
4763 (tui_gen_win_info::make_visible): Update.
4764 * tui/tui-source.c (tui_source_window::set_contents): Update.
4765 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4766 (tui_data_window::display_registers_from): Update.
4767 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4768 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4769 Declare.
4770 <can_box>: Remove.
4771 <title>: Remove.
4772 (struct tui_win_info) <make_window>: Declare.
4773 <can_box>: Now virtual.
4774 <title>: New member.
4775 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4776 * tui/tui-command.c (tui_cmd_window::resize): Update.
4777
4778 2019-08-20 Tom Tromey <tom@tromey.com>
4779
4780 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4781 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4782 (tui_data_window::check_register_values): Update.
4783
4784 2019-08-20 Tom Tromey <tom@tromey.com>
4785
4786 * tui/tui-regs.h (struct tui_data_window): Use
4787 DISABLE_COPY_AND_ASSIGN.
4788 <regs_content>: Change type, removing unique_ptr.
4789 <tui_data_window>: Add move constructor.
4790 * tui/tui-regs.c (tui_data_window::show_registers)
4791 (tui_data_window::show_register_group)
4792 (tui_data_window::display_registers_from)
4793 (tui_data_window::display_registers_from)
4794 (tui_data_window::first_data_item_displayed)
4795 (tui_data_window::delete_data_content_windows)
4796 (tui_data_window::rerender, tui_data_window::refresh_window)
4797 (tui_data_window::check_register_values): Update.
4798
4799 2019-08-20 Tom Tromey <tom@tromey.com>
4800
4801 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4802 show_register_group>: Declare.
4803 (tui_show_register_group): Don't declare.
4804 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4805 tui_show_registers.
4806 (tui_data_window::show_register_group): Rename from
4807 tui_show_register_group.
4808 (tui_data_window::check_register_values, tui_reg_command):
4809 Update.
4810 * tui/tui-layout.c (tui_set_layout): Update.
4811
4812 2019-08-20 Tom Tromey <tom@tromey.com>
4813
4814 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4815 Declare.
4816 (tui_check_register_values): Don't declare.
4817 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4818 from tui_check_register_values.
4819 * tui/tui-hooks.c (tui_register_changed): Update.
4820
4821 2019-08-20 Tom Tromey <tom@tromey.com>
4822
4823 * tui/tui-regs.c (tui_reg_layout): Move later.
4824 (tui_show_registers): Don't enable TUI mode or change layout.
4825
4826 2019-08-20 Tom Tromey <tom@tromey.com>
4827
4828 * tui/tui-regs.h (struct tui_data_item_window)
4829 <~tui_data_item_window>: Remove.
4830 <content>: Now a unique_xmalloc_ptr.
4831 * tui/tui-regs.c (tui_register_format): Return a
4832 unique_xmalloc_ptr.
4833 (tui_get_register): Update.
4834 (~tui_data_item_window): Remove.
4835 (tui_data_window::display_registers_from, tui_display_register):
4836 Update.
4837 * tui/tui-io.h (tui_expand_tabs): Update.
4838 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4839 Remove "col" parameter.
4840
4841 2019-08-20 Tom Tromey <tom@tromey.com>
4842
4843 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4844 field.
4845 * tui/tui-regs.c (~tui_data_item_window): Update.
4846
4847 2019-08-20 Tom Tromey <tom@tromey.com>
4848
4849 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4850 earlier.
4851
4852 2019-08-20 Tom Tromey <tom@tromey.com>
4853
4854 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4855
4856 2019-08-20 Tom Tromey <tom@tromey.com>
4857
4858 * tui/tui-source.h (struct tui_source_window): Update.
4859 * tui/tui-regs.c (tui_show_registers): Update.
4860 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4861 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4862 (NO_REGS_STRING): Remove defines.
4863
4864 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4865
4866 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4867 unnecessary thread walk if remote doesn't support the packet.
4868
4869 2019-08-19 Tom Tromey <tromey@adacore.com>
4870
4871 * python/py-value.c (value_has_field): Fix indentation.
4872
4873 2019-08-19 Tom Tromey <tromey@adacore.com>
4874
4875 * printcmd.c (do_one_display, info_display_command): Update.
4876 * block.h (contained_in): Return bool. Add allow_nested
4877 parameter.
4878 * block.c (contained_in): Return bool. Add allow_nested
4879 parameter.
4880
4881 2019-08-19 Tom Tromey <tom@tromey.com>
4882
4883 * configure: Rebuild.
4884 * configure.ac: Disallow the combination of -static-libstdc++ and
4885 source highlight.
4886 * source-cache.c (get_language_name): Handle rust.
4887 (source_cache::get_source_lines): Ignore highlighting exceptions.
4888
4889 2019-08-16 Tom Tromey <tom@tromey.com>
4890
4891 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4892 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4893 (struct tui_source_window_base) <make_visible, refresh_window,
4894 resize>: Remove methods.
4895 <execution_info>: Remove field.
4896 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4897 (tui_show_source_line, tui_source_window_base)
4898 (~tui_source_window_base): Update.
4899 (tui_source_window_base::resize)
4900 (tui_source_window_base::make_visible)
4901 (tui_source_window_base::refresh_window): Remove.
4902 (tui_source_window_base::update_exec_info): Update.
4903 * tui/tui-source.c (tui_source_window::set_contents): Update.
4904 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4905
4906 2019-08-16 Tom Tromey <tom@tromey.com>
4907
4908 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4909 deprecated_query_hook.
4910
4911 2019-08-16 Tom Tromey <tom@tromey.com>
4912
4913 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4914 (tui_update_source_windows_with_line): Update.
4915 * tui/tui-source.h (struct tui_source_window)
4916 <show_symtab_source>: Declare.
4917 (tui_show_symtab_source): Don't declare.
4918 * tui/tui-source.c (tui_show_symtab_source): Rename from
4919 tui_show_symtab_source.
4920
4921 2019-08-16 Tom Tromey <tom@tromey.com>
4922
4923 * tui/tui-winsource.h (struct tui_source_window_base)
4924 <set_contents>: Declare.
4925 * tui/tui-winsource.c
4926 (tui_source_window_base::update_source_window_as_is): Update.
4927 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4928 Declare.
4929 (tui_set_source_content): Don't declare.
4930 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4931 tui_set_source_content.
4932 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4933 Declare.
4934 (tui_set_disassem_content): Don't declare.
4935 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4936 tui_set_disassem_content.
4937
4938 2019-08-16 Tom Tromey <tom@tromey.com>
4939
4940 * tui/tui-winsource.h (struct tui_source_window_base)
4941 <update_breakpoint_info>: Declare.
4942 (tui_update_breakpoint_info): Don't declare.
4943 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4944 (tui_update_all_breakpoint_info): Update.
4945 (tui_source_window_base::update_breakpoint_info): Rename from
4946 tui_update_breakpoint_info.
4947 (tui_source_window_base::update_exec_info): Update.
4948
4949 2019-08-16 Tom Tromey <tom@tromey.com>
4950
4951 * tui/tui-winsource.h (struct tui_source_window_base)
4952 <update_source_window>: Declare.
4953 (tui_update_source_window): Don't declare.
4954 * tui/tui-winsource.c
4955 (tui_source_window_base::update_source_window): Rename from
4956 tui_update_source_window.
4957 (tui_source_window_base::rerender): Update.
4958 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4959 * tui/tui-disasm.c (tui_show_disassem)
4960 (tui_show_disassem_and_update_source)
4961 (tui_disasm_window::maybe_update): Update.
4962
4963 2019-08-16 Tom Tromey <tom@tromey.com>
4964
4965 * tui/tui-winsource.h (struct tui_source_window_base)
4966 <update_source_window_as_is>: Declare.
4967 (tui_update_source_window_as_is): Don't declare.
4968 * tui/tui-winsource.c (tui_update_source_window): Update
4969 (tui_source_window_base::update_source_window_as_is): Rename from
4970 tui_update_source_window_as_is.
4971 (tui_source_window_base::refill): Update.
4972 * tui/tui-source.c (tui_show_symtab_source): Update.
4973 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4974 Update.
4975
4976 2019-08-16 Tom Tromey <tom@tromey.com>
4977
4978 * tui/tui-winsource.h (tui_update_source_window)
4979 (tui_update_source_window_as_is): Remove "noerror" parameter.
4980 * tui/tui-winsource.c (tui_update_source_window)
4981 (tui_update_source_window_as_is): Remove "noerror" parameter.
4982 (tui_update_source_windows_with_addr)
4983 (tui_update_source_windows_with_line)
4984 (tui_source_window_base::rerender)
4985 (tui_source_window_base::refill): Update.
4986 * tui/tui-source.h (tui_set_source_content)
4987 (tui_show_symtab_source): Remove "noerror" parameter.
4988 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4989 parameter.
4990 (tui_show_symtab_source): Likewise.
4991 (tui_source_window::maybe_update): Update.
4992 * tui/tui-disasm.c (tui_show_disassem)
4993 (tui_show_disassem_and_update_source)
4994 (tui_disasm_window::do_scroll_vertical)
4995 (tui_disasm_window::maybe_update): Update.
4996
4997 2019-08-16 Tom Tromey <tom@tromey.com>
4998
4999 * tui/tui.c (tui_is_window_visible): Update.
5000 * tui/tui-wingeneral.c (tui_make_window)
5001 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5002 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5003 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5004 (tui_set_win_height_command, parse_scrolling_args): Update.
5005 * tui/tui-source.c (tui_source_window::style_changed): Update.
5006 * tui/tui-regs.c (tui_show_registers)
5007 (tui_data_window::first_data_item_displayed)
5008 (tui_data_window::delete_data_content_windows)
5009 (tui_check_register_values, tui_reg_command): Update.
5010 * tui/tui-disasm.c (tui_show_disassem): Update.
5011 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5012 method.
5013 <is_visible>: Remove field.
5014 * tui/tui-data.c (tui_next_win, tui_prev_win)
5015 (tui_delete_invisible_windows): Update.
5016
5017 2019-08-16 Tom Tromey <tom@tromey.com>
5018
5019 * tui/tui-winsource.h (struct tui_source_window_base)
5020 <m_has_locator>: Remove.
5021 * tui/tui-layout.c (show_source_disasm_command, show_data)
5022 (show_source_or_disasm_and_command): Update.
5023
5024 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5025
5026 * NEWS (Other MI changes): New subsection.
5027 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5028 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5029 * arch-utils.c (default_get_pc_address_flags): New function.
5030 * arch-utils.h (default_get_pc_address_flags): New declaration.
5031 * gdbarch.sh: Add get_pc_address_flags.
5032 * gdbarch.c: Regenerate.
5033 * gdbarch.h: Likewise.
5034 * stack.c (print_pc): New function.
5035 (print_frame_info) (print_frame): Call print_pc.
5036
5037 2019-08-16 Tom de Vries <tdevries@suse.de>
5038
5039 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5040 print_objfile_section_info.
5041
5042 2019-08-15 Tom Tromey <tom@tromey.com>
5043
5044 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5045 calling update_cmdwin_start_line.
5046 * tui/tui-winsource.h (struct tui_source_window_base)
5047 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5048 <rerender>: Declare.
5049 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5050 Call rerender.
5051 (tui_source_window_base::set_new_height): Remove.
5052 (tui_source_window_base::rerender): Rename from
5053 do_make_visible_with_new_height.
5054 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5055 resize method.
5056 (tui_win_info::make_invisible_and_set_new_height)
5057 (tui_win_info::make_visible_with_new_height): Remove.
5058 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5059 Declare.
5060 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5061 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5062 do_make_visible_with_new_height>: Don't declare.
5063 <rerender>: Declare.
5064 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5065 set_new_height.
5066 (tui_data_window::do_make_visible_with_new_height): Remove.
5067 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5068 call tui_show_locator_content.
5069 (tui_gen_win_info::resize): Call rerender.
5070 (show_source_or_disasm_and_command): Don't call
5071 tui_show_locator_content.
5072 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5073 method.
5074 (struct tui_win_info) <rerender>: Declare.
5075 <set_new_height, make_invisible_and_set_new_height,
5076 make_visible_with_new_height>: Don't declare.
5077 * tui/tui-data.c (tui_win_list::rerender): New method.
5078 * tui/tui-command.h (struct tui_cmd_window)
5079 <do_make_visible_with_new_height>: Don't declare.
5080 * tui/tui-command.c
5081 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5082
5083 2019-08-15 Tom Tromey <tromey@adacore.com>
5084
5085 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5086 * ada-lang.c (ada_enum_name): Likewise.
5087
5088 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5089
5090 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5091 leading underscore.
5092 (GdbOutputErrorFile): Likewise.
5093 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5094 accordingly.
5095 (execute_unwinders): Rename to have a leading underscore.
5096 (auto_load_packages): Likewise.
5097 (global scope): Adjust call to auto_load_packages accordingly.
5098 (GdbSetPythonDirectory): Likewise.
5099 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5100 instead of execute_unwinders.
5101
5102 2019-08-15 Tom Tromey <tom@tromey.com>
5103
5104 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5105 (show_data): Don't change window visibility.
5106 (tui_gen_win_info::resize): Remove special case for command
5107 window. Use wresize, when available.
5108 (show_source_or_disasm_and_command): Don't change window
5109 visibility.
5110 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5111 <make_visible>: New method.
5112 * tui/tui-command.c (tui_cmd_window::resize): New method.
5113
5114 2019-08-15 Tom Tromey <tom@tromey.com>
5115
5116 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5117 (struct tui_source_windows): New.
5118 * tui/tui-winsource.c (tui_display_main): Update.
5119 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5120 (new_height_ok, parse_scrolling_args): Update.
5121 * tui/tui-layout.c (show_layout, show_data): Update.
5122 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5123 (tui_add_to_source_windows): Don't declare.
5124 * tui/tui-data.c (source_windows, tui_source_windows)
5125 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5126
5127 2019-08-15 Tom Tromey <tom@tromey.com>
5128
5129 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5130 Rename from reset.
5131 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5132 * tui/tui-layout.c (show_source_disasm_command, show_data):
5133 Update.
5134 (tui_gen_win_info::resize): Rename.
5135 (show_source_or_disasm_and_command): Update.
5136 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5137 reset.
5138
5139 2019-08-15 Tom Tromey <tom@tromey.com>
5140
5141 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5142 * tui/tui-interp.c (tui_interp::init): Don't call
5143 tui_initialize_static_data.
5144 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5145
5146 2019-08-15 Tom Tromey <tom@tromey.com>
5147
5148 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5149 examine tui_win_list.
5150
5151 2019-08-15 Tom Tromey <tom@tromey.com>
5152
5153 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5154 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5155 tui_clear_source_content.
5156 (tui_clear_source_content): Remove.
5157 (tui_source_window_base::do_erase_source_content): Hoist call to
5158 content.clear().
5159 * tui/tui-stack.c (tui_show_frame_info): Don't call
5160 tui_clear_source_content.
5161
5162 2019-08-15 Tom Tromey <tom@tromey.com>
5163
5164 * tui/tui-winsource.h (struct tui_source_window_base)
5165 <do_erase_source_content>: New method.
5166 <erase_source_content>: New method.
5167 (tui_erase_source_content): Don't declare.
5168 * tui/tui-winsource.c (tui_clear_source_content): Update.
5169 (tui_source_window_base::do_erase_source_content): Rename from
5170 tui_erase_source_content.
5171 (tui_source_window_base::show_source_content): Update.
5172 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5173 * tui/tui-source.h (struct tui_source_window)
5174 <erase_source_content>: New method.
5175 * tui/tui-disasm.h (struct tui_disasm_window)
5176 <erase_source_content>: New method.
5177
5178 2019-08-15 Tom Tromey <tom@tromey.com>
5179
5180 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5181 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5182 constructor.
5183 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5184 * tui/tui-source.c (tui_set_source_content): Update.
5185 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5186
5187 2019-08-15 Tom Tromey <tom@tromey.com>
5188
5189 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5190 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5191 tui-source.c.
5192 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5193 Declare.
5194 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5195 method.
5196 (tui_source_window::maybe_update): Update.
5197
5198 2019-08-15 Tom Tromey <tom@tromey.com>
5199
5200 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5201 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5202 tui-disasm.c.
5203 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5204 Declare.
5205 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5206 method.
5207 (tui_disasm_window::maybe_update): Update.
5208
5209 2019-08-15 Tom Tromey <tom@tromey.com>
5210
5211 * tui/tui-winsource.h (struct tui_source_window_base)
5212 <maybe_update>: Declare.
5213 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5214 method.
5215 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5216 Declare.
5217 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5218 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5219 Declare.
5220 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5221
5222 2019-08-15 Tom Tromey <tom@tromey.com>
5223
5224 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5225
5226 2019-08-15 Tom Tromey <tom@tromey.com>
5227
5228 * tui/tui-wingeneral.c: Include tui-stack.h.
5229 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5230 (struct tui_locator_window): Move from tui-data.h.
5231 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5232 (tui_initialize_static_data): Move from tui-data.c.
5233 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5234 (struct tui_locator_window): Move to tui-stack.c.
5235 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5236 (tui_initialize_static_data): Move to tui-stack.c.
5237
5238 2019-08-15 Tom Tromey <tom@tromey.com>
5239
5240 * tui/tui-layout.c (show_source_disasm_command)
5241 (show_source_or_disasm_and_command): Use make_visible method, not
5242 tui_make_window.
5243 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5244 Remove.
5245
5246 2019-08-15 Tom Tromey <tom@tromey.com>
5247
5248 * tui/tui-wingeneral.h (tui_make_window): Update.
5249 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5250 parameter.
5251 (tui_gen_win_info::make_visible): Update.
5252 * tui/tui-regs.c (tui_data_window::display_registers_from):
5253 Update.
5254 * tui/tui-layout.c (show_source_disasm_command)
5255 (show_source_or_disasm_and_command): Update.
5256 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5257 (enum tui_box): Remove.
5258 (struct tui_win_info) <can_box>: New method.
5259 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5260 method.
5261
5262 2019-08-15 Tom de Vries <tdevries@suse.de>
5263
5264 * linux-nat-trad.c: Include gdbarch.h.
5265
5266 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5267
5268 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5269 register sizes.
5270
5271 2019-08-14 Tom Tromey <tromey@adacore.com>
5272
5273 * darwin-nat.c: Include gdbarch.h.
5274 * darwin-nat-info.c: Include gdbarch.h.
5275
5276 2019-08-13 Tom Tromey <tom@tromey.com>
5277
5278 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5279 Remove.
5280 * tui/tui-data.c (tui_initialize_static_data): Update.
5281
5282 2019-08-13 Tom Tromey <tom@tromey.com>
5283
5284 * tui/tui-winsource.h (struct tui_exec_info_window)
5285 <~tui_exec_info_window, maybe_allocate_content, get_content,
5286 m_content>: Remove.
5287 (struct tui_source_window_base) <set_exec_info_content,
5288 show_exec_info_content>: Don't declare.
5289 * tui/tui-winsource.c
5290 (tui_exec_info_window::maybe_allocate_content): Remove.
5291 (tui_source_window_base::update_exec_info): Rename from
5292 set_exec_info_content.
5293 (tui_source_window_base::show_exec_info_content)
5294 (tui_source_window_base::update_exec_info): Remove.
5295
5296 2019-08-13 Tom Tromey <tom@tromey.com>
5297
5298 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5299 declare.
5300 * tui/tui-winsource.c (tui_update_source_window_as_is)
5301 (tui_update_source_windows_with_addr, tui_erase_source_content):
5302 Update.
5303 (tui_clear_exec_info_content): Remove.
5304
5305 2019-08-13 Tom Tromey <tom@tromey.com>
5306
5307 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5308 declare.
5309 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5310 call tui_erase_exec_info_content.
5311 (tui_clear_exec_info_content): Rename from
5312 tui_erase_exec_info_content.
5313 (tui_clear_exec_info_content): Delete.
5314
5315 2019-08-13 Tom Tromey <tom@tromey.com>
5316
5317 * tui/tui-winsource.h (struct tui_source_window_base)
5318 <show_exec_info_content>: Declare.
5319 (tui_show_exec_info_content): Don't declare.
5320 * tui/tui-winsource.c
5321 (tui_source_window_base::show_exec_info_content): Rename from
5322 tui_show_exec_info_content.
5323 (tui_source_window_base::update_exec_info): Update.
5324
5325 2019-08-13 Tom Tromey <tom@tromey.com>
5326
5327 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5328 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5329 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5330 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5331 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5332 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5333 ... here.
5334
5335 2019-08-13 Tom Tromey <tom@tromey.com>
5336
5337 * tui/tui-winsource.h (struct tui_source_window_base)
5338 <update_exec_info>: Declare.
5339 (tui_update_exec_info): Don't declare.
5340 * tui/tui-winsource.c (tui_update_source_window_as_is)
5341 (tui_source_window_base::refresh_all)
5342 (tui_update_all_breakpoint_info): Update.
5343 (tui_source_window_base::update_exec_info): Rename from
5344 tui_update_exec_info.
5345 * tui/tui-stack.c (tui_show_frame_info): Update.
5346
5347 2019-08-13 Tom Tromey <tom@tromey.com>
5348
5349 * tui/tui-winsource.h (struct tui_source_window_base)
5350 <set_exec_info_content>: Declare.
5351 (tui_set_exec_info_content): Don't declare.
5352 * tui/tui-winsource.c
5353 (tui_source_window_base::set_exec_info_content): Rename from
5354 tui_set_exec_info_content.
5355 (tui_update_exec_info): Update.
5356
5357 2019-08-13 Tom Tromey <tom@tromey.com>
5358
5359 * tui/tui-winsource.h (struct tui_source_window_base)
5360 <show_source_content>: Declare.
5361 (tui_show_source_content): Don't declare.
5362 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5363 (tui_source_window_base::show_source_content): Rename from
5364 tui_show_source_content.
5365 (tui_source_window_base::refresh_all): Update.
5366 * tui/tui-layout.c (show_source_disasm_command)
5367 (show_source_or_disasm_and_command): Update.
5368
5369 2019-08-13 Tom Tromey <tom@tromey.com>
5370
5371 * tui/tui-winsource.c (tui_erase_source_content)
5372 (tui_show_source_content, tui_source_window_base::refresh_all):
5373 Update.
5374 * tui/tui-wingeneral.h
5375 (tui_check_and_display_highlight_if_needed): Don't declare.
5376 * tui/tui-wingeneral.c
5377 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5378 check_and_display_highlight_if_needed.
5379 * tui/tui-win.c (tui_rehighlight_all)
5380 (tui_win_info::make_visible_with_new_height): Update.
5381 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5382 (tui_data_window::erase_data_content)
5383 (tui_data_window::display_all_data): Update.
5384 * tui/tui-data.h (struct tui_win_info)
5385 <check_and_display_highlight_if_needed>: Declare.
5386
5387 2019-08-13 Tom Tromey <tom@tromey.com>
5388
5389 * tui/tui-win.c (tui_resize_all): Call
5390 tui_delete_invisible_windows.
5391 * tui/tui-layout.c (show_layout): Call
5392 tui_delete_invisible_windows.
5393 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5394 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5395
5396 2019-08-13 Tom Tromey <tom@tromey.com>
5397
5398 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5399 tui_add_win_to_layout.
5400
5401 2019-08-13 Tom Tromey <tom@tromey.com>
5402
5403 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5404 * tui/tui-layout.c (tui_default_win_height): Now static.
5405
5406 2019-08-13 Tom Tromey <tom@tromey.com>
5407
5408 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5409 single switch.
5410 (show_source_disasm_command, show_source_or_disasm_and_command):
5411 Don't check current layout.
5412
5413 2019-08-13 Tom Tromey <tom@tromey.com>
5414
5415 * tui/tui-wingeneral.c (make_all_visible): Remove.
5416 (tui_make_all_invisible): Simplify.
5417 * tui/tui-layout.c (tui_make_all_invisible): Move from
5418 tui-wingeneral.c; simplify.
5419 (show_layout): Hoist call to tui_make_all_invisible.
5420 (show_data): Don't call tui_make_all_invisible.
5421
5422 2019-08-13 Tom Tromey <tom@tromey.com>
5423
5424 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5425 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5426
5427 2019-08-13 Tom Tromey <tom@tromey.com>
5428
5429 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5430 tui-data.c.
5431 (show_source_disasm_command, show_data)
5432 (show_source_or_disasm_and_command): Don't use
5433 tui_set_current_layout_to.
5434 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5435 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5436 tui-layout.c.
5437 (tui_set_current_layout_to): Remove.
5438
5439 2019-08-13 Tom Tromey <tom@tromey.com>
5440
5441 * tui/tui-layout.c (tui_set_layout): Update.
5442 * tui/tui-data.h (struct tui_layout_def): Remove.
5443 (tui_layout_def): Don't declare.
5444 * tui/tui-data.c (layout_def): Remove.
5445 (tui_layout_def): Remove.
5446
5447 2019-08-13 Tom Tromey <tom@tromey.com>
5448
5449 * tui/tui-winsource.h (struct tui_source_window_base)
5450 <clear_detail>: No longer "override".
5451 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5452 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5453 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5454 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5455 Remove.
5456 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5457
5458 2019-08-13 Tom Tromey <tromey@adacore.com>
5459
5460 * tracepoint.c: Don't include readline.h or history.h.
5461
5462 2019-08-12 Tom Tromey <tom@tromey.com>
5463
5464 * configure: Rebuild.
5465 * configure.ac: Check for readline 7.
5466 * NEWS: Mention readline 7 requirement.
5467 * README: Update.
5468
5469 2019-08-12 Tom Tromey <tom@tromey.com>
5470
5471 * mingw-hdep.c (gdb_select): Remove readline hack.
5472
5473 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5474
5475 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5476 when the function fails.
5477
5478 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5479
5480 * s390-tdep.c (s390_type_align): New function.
5481 (s390_gdbarch_init): Set it as type_align gdbarch method.
5482
5483 2019-08-09 Tom de Vries <tdevries@suse.de>
5484
5485 PR gdb/24591
5486 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5487 pc_low with relocation offset.
5488
5489 2019-08-07 Tom Tromey <tromey@adacore.com>
5490
5491 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5492 (print_frame_args): Update.
5493 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5494 Update.
5495 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5496 * frame.h (struct frame_arg): Add initializers.
5497 <error>: Now a unique_xmalloc_ptr.
5498
5499 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5500
5501 * NEWS: Expand the Pointer Authentication entry.
5502 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5503 (aarch64_frame_unmask_lr): ... to this.
5504 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5505 Call aarch64_frame_unmask_lr.
5506 * frame.c (struct frame_info): Add "masked" variable.
5507 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5508 (fprint_frame): Check for masked pc.
5509 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5510 declarations.
5511 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5512 * stack.c (print_frame): Check for masked pc.
5513
5514 2019-08-06 Tom Tromey <tom@tromey.com>
5515
5516 * stabsread.c (patch_block_stabs, read_one_struct_field)
5517 (read_enum_type): Use obstack_strndup.
5518 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5519 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5520 * dwarf2read.c (guess_full_die_structure_name)
5521 (anonymous_struct_prefix): Use obstack_strndup.
5522 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5523 * c-exp.y (yylex): Use obstack_strndup.
5524 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5525 (write_var_or_type): Use obstack_strndup.
5526
5527 2019-08-06 Tom Tromey <tom@tromey.com>
5528
5529 * symfile.c (reread_symbols): Use obstack_strdup.
5530 * stabsread.c (read_type): Use obstack_strdup.
5531 * gdb_obstack.h (obstack_strdup): New overload.
5532 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5533 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5534 (dwarf2_canonicalize_name): Use obstack_strdup.
5535 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5536 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5537 Use obstack_strdup.
5538
5539 2019-08-06 Tom Tromey <tom@tromey.com>
5540
5541 * gdb_obstack.h (obstack_strdup): Define.
5542 * gdb_obstack.c (obstack_strdup): Don't define.
5543
5544 2019-08-06 Tom Tromey <tom@tromey.com>
5545
5546 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5547 obstack_strdup.
5548 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5549 obstack_strdup.
5550 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5551 * stabsread.c (common_block_start): Use obstack_strdup.
5552 * objfiles.c (set_objfile_main_name, objfile): Use
5553 obstack_strdup.
5554 * namespace.c (add_using_directive): Use obstack_strdup.
5555 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5556 * jit.c (finalize_symtab): Use obstack_strdup.
5557 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5558 (guess_partial_die_structure_name, partial_die_info::fixup)
5559 (dwarf2_name): Use obstack_strdup.
5560 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5561 obstack_strdup.
5562 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5563 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5564 obstack_strdup.
5565 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5566
5567 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5568
5569 * unittests/help-doc-selftests.c: New file.
5570 * Makefile.in: Add the new file.
5571
5572 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5573
5574 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5575 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5576 the full first line, except when FOR_VALUE_PREFIX. In this case,
5577 the trailing '.' is not output, and the first character is uppercased.
5578 (print_help_for_command): Update call to print_doc_line.
5579 (print_doc_of_command): Likewise.
5580 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5581 * cli/cli-option.c (append_indented_doc): Do not append newline.
5582 (build_help_option): Append newline after first appended_indented_doc
5583 only if a second call is done.
5584 (build_help): Append 2 new lines before each option, except the first
5585 one.
5586 * compile/compile.c (_initialize_compile): Add new lines after
5587 %OPTIONS%, when not at the end of the help.
5588 Change help doc or code
5589 producing the help doc to respect the invariants.
5590 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5591 Also removed the new line after 'Options:', as all other commands
5592 do not put an empty line between 'Options:' and the first option.
5593 * printcmd.c (_initialize_printcmd): Likewise.
5594 * stack.c (_initialize_stack): Likewise.
5595 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5596 incorrectly telling COMMAND is optional.
5597 * ada-lang.c (_initialize_ada_language): Change help doc or code
5598 producing the help doc to respect the invariants.
5599 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5600 * breakpoint.c (_initialize_breakpoint): Likewise.
5601 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5602 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5603 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5604 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5605 _initialize_cli_style): Likewise.
5606 * corelow.c (core_target_info): Likewise.
5607 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5608 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5609 * filesystem.c (_initialize_filesystem): Likewise.
5610 * frame.c (_initialize_frame): Likewise.
5611 * gnu-nat.c (add_task_commands): Likewise.
5612 * infcall.c (_initialize_infcall): Likewise.
5613 * infcmd.c (_initialize_infcmd): Likewise.
5614 * interps.c (_initialize_interpreter): Likewise.
5615 * language.c (_initialize_language): Likewise.
5616 * linux-fork.c (_initialize_linux_fork): Likewise.
5617 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5618 * maint.c (_initialize_maint_cmds): Likewise.
5619 * memattr.c (_initialize_mem): Likewise.
5620 * printcmd.c (_initialize_printcmd): Likewise.
5621 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5622 _RegEx): Likewise.
5623 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5624 * record-btrace.c (_initialize_record_btrace): Likewise.
5625 * record-full.c (_initialize_record_full): Likewise.
5626 * record.c (_initialize_record): Likewise.
5627 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5628 * regcache.c (_initialize_regcache): Likewise.
5629 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5630 _initialize_remote): Likewise.
5631 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5632 * serial.c (_initialize_serial): Likewise.
5633 * skip.c (_initialize_step_skip): Likewise.
5634 * source.c (_initialize_source): Likewise.
5635 * stack.c (_initialize_stack): Likewise.
5636 * symfile.c (_initialize_symfile): Likewise.
5637 * symtab.c (_initialize_symtab): Likewise.
5638 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5639 * top.c (init_main): Likewise.
5640 * tracefile-tfile.c (tfile_target_info): Likewise.
5641 * tracepoint.c (_initialize_tracepoint): Likewise.
5642 * tui/tui-win.c (_initialize_tui_win): Likewise.
5643 * utils.c (add_internal_problem_command): Likewise.
5644 * valprint.c (value_print_option_defs): Likewise.
5645
5646 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5647
5648 PR build/24886
5649 * configure.ac: Drop enable-libmcheck support.
5650 * configure, config.in: Rebuild.
5651 * libmcheck.m4: Remove.
5652 * acinclude.m4: Don't include it.
5653 * Makefile.in: Don't distribute it.
5654 * top.c (print_gdb_configuration): Don't mention it.
5655
5656 2019-08-06 Tom Tromey <tom@tromey.com>
5657
5658 * utils.c (set_output_style): Sometimes pass stream to
5659 emit_style_escape.
5660 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5661 * record-btrace.c (btrace_insn_history): Update.
5662 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5663 method.
5664 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5665 Update initializers.
5666 <m_uiout>: New field.
5667 <m_di>: Move lower.
5668 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5669 Remove "uiout" parameter.
5670 (dump_insns): Update.
5671 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5672 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5673
5674 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5675
5676 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5677 (error_in_psymtab_expansion): Likewise.
5678 (lookup_symbol_via_quick_fns): Likewise.
5679 (basic_lookup_transparent_type_quick): Likewise.
5680 (basic_lookup_transparent_type_1): Likewise.
5681
5682 2019-08-06 Tom Tromey <tromey@adacore.com>
5683
5684 * source.c (last_source_error): Now bool.
5685 (print_source_lines_base): Make "noprint" bool. Only open
5686 source file when last_source_visited changes.
5687
5688 2019-08-06 Tom Tromey <tromey@adacore.com>
5689
5690 * annotate.c (annotate_source_line): Use g_source_cache.
5691 * source-cache.c (source_cache::get_plain_source_lines): Change
5692 parameters. Populate m_offset_cache.
5693 (source_cache::ensure): New method.
5694 (source_cache::get_line_charpos): New method.
5695 (extract_lines): Move lower. Change parameters.
5696 (source_cache::get_source_lines): Move lower.
5697 * source-cache.h (class source_cache): Update comment.
5698 <get_line_charpos>: New method.
5699 <get_source_lines>: Update comment.
5700 <clear>: Clear m_offset_cache.
5701 <get_plain_source_lines>: Change parameters.
5702 <ensure>: New method
5703 <m_offset_cache>: New member.
5704 * source.c (forget_cached_source_info_for_objfile): Update.
5705 (info_source_command): Use g_source_cache.
5706 (find_source_lines, open_source_file_with_line_charpos): Remove.
5707 (print_source_lines_base, search_command_helper): Use g_source_cache.
5708 * source.h (open_source_file_with_line_charpos): Don't declare.
5709 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5710 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5711 Use g_source_cache.
5712
5713 2019-08-06 Tom Tromey <tromey@adacore.com>
5714
5715 * source-cache.c (source_cache::get_plain_source_lines):
5716 Remove "first_line" and "last_line" parameters.
5717 (source_cache::get_source_lines): Cache plain text.
5718 * source-cache.h (class source_cache)
5719 <get_plain_source_lines>: Update.
5720
5721 2019-08-06 Tom Tromey <tromey@adacore.com>
5722
5723 * source-cache.c (extract_lines): No longer a method.
5724 Changed type of parameter. Include final newline.
5725 (selftests::extract_lines_test): New function.
5726 (_initialize_source_cache): Likewise.
5727 * source-cache.h (class source_cache)
5728 <extract_lines>: Don't declare.
5729
5730 2019-08-06 Tom Tromey <tromey@adacore.com>
5731
5732 * breakpoint.c (init_breakpoint_sal): Update.
5733 (breakpoint): Update.
5734 * breakpoint.h (struct breakpoint) <filter>: Now a
5735 unique_xmalloc_ptr.
5736
5737 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5738
5739 * NEWS: Mention dictionary access on blocks.
5740 * python/py-block.c (blpy_getitem): New function.
5741 (block_object_as_mapping): New struct.
5742 (block_object_type): Use new struct for tp_as_mapping field.
5743
5744 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5745
5746 * objfiles.h (objfile): Add a comment describing partial symbols.
5747
5748 2019-08-05 Tom Tromey <tromey@adacore.com>
5749
5750 * compile/compile.c (_initialize_compile): Use _(), not N_().
5751 * thread.c (_initialize_thread): Use _(), not N_().
5752 * stack.c (_initialize_stack): Use _(), not N_().
5753 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5754
5755 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5756
5757 * dwarf2read.c (struct dw2_symtab_iterator):
5758 <want_specific_block>: Remove.
5759 <block_index>: Change type to gdb::optional.
5760 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5761 change type of BLOCK_INDEX parameter to gdb::optional.
5762 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5763 (dw2_lookup_symbol): Don't pass argument for
5764 WANT_SPECIFIC_BLOCK.
5765 (dw2_expand_symtabs_for_function): Don't pass argument for
5766 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5767 (class dw2_debug_names_iterator)
5768 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5769 parameter, change BLOCK_INDEX type to gdb::optional.
5770 <m_want_specific_block>: Remove.
5771 <m_block_index>: Change type to gdb::optional.
5772 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5773 gdb::optional. Re-write in function of gdb::optional.
5774 (dw2_debug_names_lookup_symbol): Don't pass argument for
5775 WANT_SPECIFIC_BLOCK.
5776 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5777 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5778 BLOCK_INDEX.
5779
5780 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5781
5782 * NEWS: Mention changes to "info sources" command.
5783
5784 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5785
5786 * symtab.c (filename_partial_match_opts): New struct type.
5787 (struct output_source_filename_data): New members
5788 regexp, c_regexp, partial_match.
5789 (output_source_filename): Use new members to decide to print file.
5790 (info_sources_option_defs): New variable.
5791 (make_info_sources_options_def_group, print_info_sources_header,
5792 info_sources_command_completer):
5793 New functions.
5794 (info_sources_command): Read new optional arguments.
5795 (_initialize_symtab): Update info sources help.
5796
5797 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5798
5799 * ada-lang.c (exception_support_info_v0): Renamed from...
5800 (default_exception_support_info): ... this. Create new
5801 definition for v1.
5802 (ada_has_this_exception_support): Look up catch_handlers_sym.
5803 (ada_exception_support_info_sniffer): Try v0 after default.
5804
5805 2019-08-01 Tom Tromey <tromey@adacore.com>
5806
5807 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5808 gdbarch.h.
5809
5810 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5811
5812 * s12z-tdep.c: Fix include path for s12z-opc.h.
5813
5814 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5815
5816 * NEWS: Require GNU make 3.82.
5817
5818 2019-07-16 Tom Tromey <tom@tromey.com>
5819
5820 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5821 declare.
5822
5823 2019-07-30 Tom Tromey <tromey@adacore.com>
5824
5825 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5826
5827 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5828
5829 * printcmd.c (print_address_symbolic): Print negative offsets.
5830 (build_address_symbolic): Force signed arithmetic when computing
5831 offset.
5832
5833 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5834
5835 PR/24474: Add a function to lookup static variables.
5836 * NEWS: Mention this new function.
5837 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5838 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5839 * python/python.c (python_GdbMethods): Add new function.
5840
5841 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5842
5843 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5844 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5845 (objfpy_lookup_static_symbol): New function.
5846 (objfile_object_methods): Add new functions.
5847
5848 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5849
5850 * NEWS: Mention 'set|show print frame-info'. Mention new
5851 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5852 backtrace argument. Mention that python frame filtering code
5853 is now consistent with what 'backtrace' command prints.
5854
5855 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5856
5857 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5858 comments.
5859 (print_frame_info_auto, print_frame_info_source_line,
5860 print_frame_info_location, print_frame_info_source_and_location,
5861 print_frame_info_location_and_address, print_frame_info_short_location):
5862 New declarations.
5863 (struct frame_print_options): New member print_frame_info.
5864 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5865 * stack.h (get_user_print_what_frame_info): New declaration.
5866 (frame_show_address): New declaration.
5867 * stack.c (print_frame_arguments_choices): New value 'presence'.
5868 (print_frame_info_auto, print_frame_info_source_line,
5869 print_frame_info_location, print_frame_info_source_and_location,
5870 print_frame_info_location_and_address, print_frame_info_short_location,
5871 print_frame_info_choices, print_frame_info_print_what): New definitions.
5872 (print_frame_args): Only print dots for args if print frame-arguments
5873 is 'presence'.
5874 (frame_print_option_defs): New element for "frame-info".
5875 (get_user_print_what_frame_info): New function.
5876 (frame_show_address): Make non static. Move comment to stack.h.
5877 (print_frame_info_to_print_what): New function.
5878 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5879 to decide what to print.
5880 (backtrace_command_1): Handle the new print_frame_arguments_presence
5881 value.
5882 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5883 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5884 (py_print_frame): In non-mi mode, use LOCATION as default for
5885 print_what, similarly to frame information printed directly by
5886 backtrace command. Handle frame-info user option in non MI mode.
5887
5888 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5889
5890 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5891 Add case for debugging 32-bit target on 64-bit host. Revise
5892 comment.
5893
5894 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5895
5896 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5897 instead of find_function_entry_range_from_pc.
5898
5899 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5900
5901 * stack.c (find_frame_funname): Remove code which preferred
5902 minsym over symtab sym in "certain pathological cases".
5903
5904 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5905 parameter. Change type of "do_demangle" to bool.
5906 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5907 Pass suitable "prefer_sym_over_minsym" flag to
5908 build_address_symbolic(). Don't output "+" for negative offsets.
5909 * printcmd.c (print_address_symbolic): Update invocation of
5910 build_address_symbolic to include a "prefer_sym_over_minsym"
5911 flag.
5912 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5913 Restrict cases in which use of minimal symbol is preferred to that
5914 of a found symbol. Update comments.
5915
5916 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5917 for entry pc when entry pc is out of range for that FDE.
5918
5919 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5920
5921 PR gdb/24839:
5922 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5923 type.
5924
5925 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5926
5927 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5928 this function's Python signature.
5929
5930
5931 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5932
5933 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5934 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5935 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5936 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5937 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5938
5939
5940 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5941
5942 * h8300-tdep.c (h8300_register_name_common): New.
5943 h8300_register_name): Use h8300_register_name_common.
5944 (h8300s_register_name): Likewise.
5945 (h8300sx_register_name): Likewise.
5946 (h8300h_register_nam): New.
5947 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5948
5949
5950 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5951
5952 * arm-tdep.c (arm_skip_cmse_entry): New function.
5953 (arm_is_sgstubs_section): New function.
5954 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5955
5956 2019-07-22 Tom Tromey <tom@tromey.com>
5957
5958 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5959 Don't self-assign.
5960
5961 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5962
5963 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5964 type_print.
5965
5966 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5967
5968 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5969 so that GDB doesn't match any msymbols when searching in the
5970 TYPES_DOMAIN.
5971 (print_symbol_info): Print using typedef_print or type_print based
5972 on the type of the symbol. Add updated FIXME comment moved from...
5973 (_initialize_symtab): ... move and update FIXME comment to above.
5974
5975 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5976
5977 * NEWS: Mention adding -q option to "info types".
5978 * symtab.c (struct info_types_options): New struct.
5979 (info_types_options_defs): New variable.
5980 (make_info_types_options_def_group): New function.
5981 (info_types_command): Use gdb::option framework to parse options.
5982 (info_types_command_completer): New function.
5983 (_initialize_symtab): Extend the help text on "info types" and
5984 register command completer.
5985
5986 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5987
5988 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5989 (lookup_symbol_in_objfile): Change int to block_enum and add a
5990 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5991
5992 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5993
5994 * MAINTAINERS (Write After Approval): Add self.
5995
5996 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5997
5998 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5999 instruction to the dummy code region.
6000
6001 2019-07-19 Tom Tromey <tromey@adacore.com>
6002
6003 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6004 (ARGSUSED, PARAMS, __func__): Remove rules.
6005
6006 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6007
6008 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6009 * features/arm/arm-with-iwmmxt.c: Remove.
6010 * features/arm/arm-with-iwmmxt.xml: Remove.
6011 * features/arm/arm-with-m-fpa-layout.c: Remove.
6012 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6013 * features/arm/arm-with-m-vfp-d16.c: Remove.
6014 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6015 * features/arm/arm-with-m.c: Remove.
6016 * features/arm/arm-with-m.xml: Remove.
6017 * features/arm/arm-with-neon.c: Remove.
6018 * features/arm/arm-with-neon.xml: Remove.
6019 * features/arm/arm-with-vfpv2.c: Remove.
6020 * features/arm/arm-with-vfpv2.xml: Remove.
6021 * features/arm/arm-with-vfpv3.c: Remove.
6022 * features/arm/arm-with-vfpv3.xml: Remove.
6023
6024 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6025
6026 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6027
6028 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6029
6030 * arch/aarch32.c (aarch32_create_target_description): Create
6031 target descriptions using features.
6032 * arch/arm.c (arm_create_target_description)
6033 (arm_create_mprofile_target_description): Likewise.
6034 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6035
6036 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6037
6038 * Makefile.in: Add new files.
6039 * aarch32-tdep.c: New file.
6040 * aarch32-tdep.h: New file.
6041 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6042 Call aarch32_read_description.
6043 * arch/aarch32.c: New file.
6044 * arch/aarch32.h: New file.
6045 * arch/arm.c (arm_create_target_description)
6046 (arm_create_mprofile_target_description): New function.
6047 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6048 (arm_create_target_description)
6049 (arm_create_mprofile_target_description): New declaration.
6050 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6051 read_description functions.
6052 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6053 Likewise.
6054 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6055 * arm-tdep.c (tdesc_arm_list): New variable.
6056 (arm_register_g_packet_guesses): Call create description functions.
6057 (arm_read_description) (arm_read_mprofile_description): New
6058 function.
6059 * arm-tdep.h (arm_read_description)
6060 (arm_read_mprofile_description): Add declaration.
6061 * configure.tgt: Add new files.
6062
6063 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6064
6065 * top.c (new_ui_command): Open specified terminal just once.
6066
6067 2019-07-18 Tom Tromey <tromey@adacore.com>
6068
6069 * symtab.c (main_name): Constify return type.
6070 * symfile.c (set_initial_language): Update.
6071 * symtab.h (main_name): Constify return type.
6072
6073 2019-07-17 Tom Tromey <tom@tromey.com>
6074
6075 * tui/tui-winsource.c (tui_update_source_window)
6076 (tui_update_source_window_as_is)
6077 (tui_update_source_windows_with_line): Remove return.
6078 * tui/tui-disasm.c (tui_show_disassem)
6079 (tui_show_disassem_and_update_source): Remove return.
6080 * tui/tui.c (tui_reset): Remove return.
6081 * tui/tui-wingeneral.c
6082 (tui_check_and_display_highlight_if_needed): Remove return.
6083
6084 2019-07-17 Tom Tromey <tom@tromey.com>
6085
6086 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6087
6088 2019-07-17 Tom Tromey <tom@tromey.com>
6089
6090 * tui/tui-winsource.h (struct tui_exec_info_window)
6091 (struct tui_source_window_base): Move from tui-data.h.
6092 * tui/tui-winsource.c: Move many method definitions from
6093 elsewhere. Remove "structuring" comments.
6094 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6095 (tui_source_window_base::refresh_window): Move to
6096 tui-winsource.c.
6097 * tui/tui-win.c (tui_source_window_base::refresh_all)
6098 (tui_source_window_base::update_tab_width)
6099 (tui_source_window_base::set_new_height)
6100 (tui_source_window_base::do_make_visible_with_new_height): Move to
6101 tui-winsource.c.
6102 * tui/tui-source.h: Update.
6103 * tui/tui-source.c (tui_source_window_base::reset): Move to
6104 tui-winsource.c.
6105 * tui/tui-disasm.h: Update.
6106 * tui/tui-data.h (struct tui_exec_info_window): Move to
6107 tui-winsource.h.
6108 (struct tui_source_window_base): Likewise.
6109 * tui/tui-data.c (tui_source_window_base::clear_detail)
6110 (tui_source_window_base, ~tui_source_window_base): Move to
6111 tui-winsource.c.
6112
6113 2019-07-17 Tom Tromey <tom@tromey.com>
6114
6115 * tui/tui-win.c (tui_resize_all)
6116 (tui_source_window_base::update_tab_width)
6117 (tui_adjust_win_heights): Update.
6118 (tui_win_info::make_invisible_and_set_new_height): Rename from
6119 make_invisible_and_set_new_height.
6120 * tui/tui-data.h (struct tui_win_info)
6121 <make_invisible_and_set_new_height>: New method.
6122
6123 2019-07-17 Tom Tromey <tom@tromey.com>
6124
6125 * tui/tui.c: Update.
6126 * tui/tui-source.h (struct tui_source_window): Move from
6127 tui-data.h.
6128 * tui/tui-layout.c: Update.
6129 * tui/tui-disasm.c: Update.
6130 * tui/tui-data.h (struct tui_source_window): Move to
6131 tui-source.h.
6132
6133 2019-07-17 Tom Tromey <tom@tromey.com>
6134
6135 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6136 tui-data.h.
6137 * tui/tui-data.h (struct tui_disasm_window): Move to
6138 tui-disasm.h.
6139
6140 2019-07-17 Tom Tromey <tom@tromey.com>
6141
6142 * tui/tui-regs.h (struct tui_data_item_window): Move from
6143 tui-data.h.
6144 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6145 * tui/tui-data.h (struct tui_data_item_window): Move to
6146 tui-regs.h.
6147 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6148
6149 2019-07-17 Tom Tromey <tom@tromey.com>
6150
6151 * tui/tui.c: Update.
6152 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6153 (tui_cmd_window::max_height): Move to tui-command.c.
6154 * tui/tui-layout.c: Update.
6155 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6156 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6157 tui-command.c.
6158 * tui/tui-command.h (struct tui_cmd_window): Move from
6159 tui-data.h.
6160 * tui/tui-command.c: Remove "structuring" comments.
6161 (tui_cmd_window::clear_detail)
6162 (tui_cmd_window::do_make_visible_with_new_height)
6163 (tui_cmd_window::max_height): Move from elsewhere.
6164
6165 2019-07-17 Tom Tromey <tom@tromey.com>
6166
6167 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6168 Now static.
6169 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6170 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6171
6172 2019-07-17 Tom Tromey <tom@tromey.com>
6173
6174 * tui/tui.c: Update.
6175 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6176 tui-regs.c.
6177 * tui/tui-windata.h: Remove file.
6178 * tui/tui-windata.c: Remove file.
6179 * tui/tui-win.c (tui_data_window::set_new_height)
6180 (tui_data_window::do_make_visible_with_new_height): Move to
6181 tui-regs.c.
6182 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6183 * tui/tui-regs.c: Remove "structuring" comments.
6184 (tui_data_window::first_data_item_displayed)
6185 (tui_data_window::delete_data_content_windows)
6186 (tui_data_window::erase_data_content)
6187 (tui_data_window::display_all_data)
6188 (tui_data_window::refresh_all)
6189 (tui_data_window::do_scroll_vertical)
6190 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6191 (tui_data_window::do_make_visible_with_new_height)
6192 (tui_data_window::refresh_window): Move from elsewhere.
6193 (_initialize_tui_regs): Move to end of file.
6194 * tui/tui-layout.c: Update.
6195 * tui/tui-hooks.c: Update.
6196 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6197 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6198 tui-regs.c.
6199 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6200
6201 2019-07-17 Tom Tromey <tom@tromey.com>
6202
6203 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6204 seen.
6205
6206 2019-07-17 Tom Tromey <tom@tromey.com>
6207
6208 * tui/tui-win.c (tui_source_window_base::set_new_height)
6209 (tui_source_window_base::do_make_visible_with_new_height): Use
6210 m_has_locator field directly.
6211 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6212 method.
6213 (struct tui_source_window_base) <has_locator>: Likewise.
6214
6215 2019-07-17 Tom Tromey <tom@tromey.com>
6216
6217 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6218 Don't declare.
6219 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6220 Remove.
6221 * tui/tui-win.c (tui_source_window_base::set_new_height)
6222 (tui_source_window_base::set_new_height)
6223 (make_invisible_and_set_new_height)
6224 (tui_source_window_base::do_make_visible_with_new_height)
6225 (tui_source_window_base::do_make_visible_with_new_height):
6226 Update.
6227 * tui/tui-layout.c (show_source_disasm_command, show_data)
6228 (show_source_or_disasm_and_command): Update.
6229 * tui/tui-layout.c (show_layout): Update.
6230
6231 2019-07-17 Tom Tromey <tom@tromey.com>
6232
6233 * tui/tui-layout.c (make_data_window): Remove.
6234 (show_data): Unify creation and re-initialization cases.
6235
6236 2019-07-17 Tom Tromey <tom@tromey.com>
6237
6238 * tui/tui-layout.c (make_source_window, make_disasm_window):
6239 Remove.
6240 (show_data): Unify creation and re-initialization cases.
6241
6242 2019-07-17 Tom Tromey <tom@tromey.com>
6243
6244 * tui/tui-layout.c (make_command_window): Remove.
6245 (show_source_disasm_command, show_source_or_disasm_and_command):
6246 Unify creation and re-initialization cases.
6247
6248 2019-07-17 Tom Tromey <tom@tromey.com>
6249
6250 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6251 creation and re-initialization cases.
6252
6253 2019-07-17 Tom Tromey <tom@tromey.com>
6254
6255 * tui/tui-regs.c (tui_get_register): Return void.
6256
6257 2019-07-17 Tom Tromey <tom@tromey.com>
6258
6259 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6260 Simplify.
6261
6262 2019-07-17 Tom Tromey <tom@tromey.com>
6263
6264 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6265 resetting.
6266
6267 2019-07-17 Tom Tromey <tom@tromey.com>
6268
6269 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6270 * tui/tui-regs.c (tui_reg_layout): New function.
6271 (tui_show_registers, tui_reg_command): Use it.
6272 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6273 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6274 parameters.
6275 (tui_layout_command): Remove.
6276
6277 2019-07-17 Tom Tromey <tom@tromey.com>
6278
6279 * tui/tui-layout.h (tui/tui-layout): Return void.
6280 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6281
6282 2019-07-17 Tom Tromey <tom@tromey.com>
6283
6284 * tui/tui-layout.c (show_source_disasm_command, show_data):
6285 Update.
6286 (reset_locator): Remove.
6287 (show_source_or_disasm_and_command): Update.
6288
6289 2019-07-17 Tom Tromey <tom@tromey.com>
6290
6291 * tui/tui-source.c (tui_source_window_base::reset): Remove
6292 win_type parameter.
6293 * tui/tui-layout.c (make_command_window, make_source_window)
6294 (make_disasm_window, make_data_window)
6295 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6296 (reset_locator, show_source_or_disasm_and_command): Update.
6297 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6298 win_type parameter.
6299 (struct tui_source_window_base) <reset>: Likewise.
6300
6301 2019-07-17 Tom Tromey <tom@tromey.com>
6302
6303 * tui/tui-layout.c (show_source_disasm_command): Use
6304 reset_locator.
6305 (reset_locator): New function.
6306 (init_and_make_win): Remove.
6307 (show_source_or_disasm_and_command): Use reset_locator.
6308
6309 2019-07-17 Tom Tromey <tom@tromey.com>
6310
6311 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6312 condition.
6313 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6314 Remove condition.
6315 * tui/tui-source.c (tui_source_window_base::reset): New method.
6316 * tui/tui-layout.c (make_command_window): Don't call
6317 init_and_make_win.
6318 (make_source_window, make_disasm_window): Don't call
6319 make_source_or_disasm_window.
6320 (make_data_window): Don't call init_and_make_win. Change calling
6321 convention.
6322 (show_source_disasm_command, show_data): Simplify.
6323 (make_source_or_disasm_window): Remove.
6324 (show_source_or_disasm_and_command): Simplify.
6325 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6326 (struct tui_source_window_base) <reset>: Likewise.
6327 <execution_info>: Remove initializer.
6328 * tui/tui-data.c (tui_source_window_base): Initialize
6329 execution_info.
6330
6331 2019-07-17 Tom Tromey <tom@tromey.com>
6332
6333 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6334 variable.
6335
6336 2019-07-17 Tom Tromey <tom@tromey.com>
6337
6338 * tui/tui.c (tui_rl_other_window): Update.
6339 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6340 superclass method first. Always iterate over regs_content.
6341 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6342 method.
6343 * tui/tui-win.c (tui_set_focus_command): Update.
6344
6345 2019-07-17 Tom Tromey <tom@tromey.com>
6346
6347 * tui/tui-win.c (tui_set_focus_command): Rename from
6348 tui_set_focus. Call tui_enable.
6349 (tui_set_focus_command): Remove.
6350
6351 2019-07-17 Tom Tromey <tom@tromey.com>
6352
6353 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6354 refresh_window.
6355 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6356 touchwin.
6357 (tui_data_window::refresh_window): Call refresh_window on data
6358 items. Always call superclass refresh_window.
6359 (tui_win_info::refresh): Remove.
6360 (tui_source_window_base::refresh_window): Update.
6361 (tui_refresh_all): Update.
6362 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6363 refresh_window.
6364 (show_source_or_disasm_and_command): Likewise.
6365 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6366 (struct tui_source_window_base) <refresh>: Likewise.
6367
6368 2019-07-17 Tom Tromey <tom@tromey.com>
6369
6370 * tui/tui-winsource.c (tui_clear_source_content)
6371 (tui_show_source_content): Update.
6372 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6373 whether content is empty.
6374 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6375 Remove.
6376
6377 2019-07-17 Tom Tromey <tom@tromey.com>
6378
6379 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6380 window's contents.
6381 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6382 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6383
6384 2019-07-17 Tom Tromey <tom@tromey.com>
6385
6386 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6387 (struct tui_data_item_window): Update.
6388
6389 2019-07-17 Tom Tromey <tom@tromey.com>
6390
6391 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6392 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6393 defines.
6394
6395 2019-07-17 Tom Tromey <tom@tromey.com>
6396
6397 * tui/tui-winsource.h (tui_erase_source_content)
6398 (tui_clear_source_content): Remove "display_prompt" parameter.
6399 * tui/tui-winsource.c (tui_update_source_window_as_is)
6400 (tui_update_source_windows_with_addr): Update.
6401 (tui_clear_source_content): Remove "display_prompt" parameter.
6402 (tui_erase_source_content): Likewise. Simplify.
6403 (tui_show_source_content): Update.
6404 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6405 * tui/tui-stack.c (tui_show_frame_info): Update.
6406 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6407 Remove defines.
6408
6409 2019-07-17 Tom Tromey <tom@tromey.com>
6410
6411 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6412 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6413 parameter.
6414 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6415 parameter.
6416
6417 2019-07-17 Tom Tromey <tom@tromey.com>
6418
6419 * tui/tui-winsource.c (tui_clear_source_content)
6420 (tui_show_source_content, tui_show_exec_info_content)
6421 (tui_clear_exec_info_content): Update.
6422 * tui/tui-stack.c (tui_show_locator_content): Update.
6423 (tui_show_frame_info): Update.
6424 * tui/tui-source.h (tui_source_window): Don't declare.
6425 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6426 from tui_source_is_displayed.
6427 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6428 Remove field.
6429 (struct tui_source_window_base) <content_in_use>: New field. Now
6430 bool.
6431 (struct tui_source_window) <showing_source_p>: New method.
6432 (TUI_SRC_WIN): Change cast.
6433 * tui/tui-data.c (tui_initialize_static_data): Update.
6434
6435 2019-07-17 Tom Tromey <tom@tromey.com>
6436
6437 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6438 location_matches_p.
6439 * tui/tui-source.c (tui_source_window::location_matches_p): New
6440 method.
6441 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6442 method.
6443 * tui/tui-data.h (struct tui_source_window_base)
6444 <location_matches_p>: New method.
6445 (struct tui_source_window, struct tui_disasm_window)
6446 <location_matches_p>: Likewise.
6447
6448 2019-07-17 Tom Tromey <tom@tromey.com>
6449
6450 * tui/tui-win.c (tui_set_win_height_command): Rename from
6451 tui_set_win_height.
6452 (tui_set_win_height_command): Remove.
6453
6454 2019-07-17 Tom Tromey <tom@tromey.com>
6455
6456 * tui/tui-source.c (tui_source_window): New constructor. Add
6457 observer.
6458 (~tui_source_window): New destructor.
6459 (tui_source_window::style_changed): New method.
6460 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6461 (tui_attach_detach_observers): Update.
6462 * tui/tui-data.h (struct tui_source_window): Make constructor not
6463 inline. Add destructor.
6464 (struct tui_source_window) <style_changed>: New method.
6465 <m_observable>: New member.
6466
6467 2019-07-17 Tom Tromey <tom@tromey.com>
6468
6469 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6470 * tui/tui-win.c (tui_resize_all): Fix typo.
6471
6472 2019-07-17 Tom Tromey <tom@tromey.com>
6473
6474 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6475 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6476 (tui_refresh_all): Remove "list" parameter. Use foreach.
6477 * tui/tui-win.c (window_name_completer): Use foreach.
6478 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6479 (update_tab_width): Likewise.
6480 * tui/tui-layout.c (show_layout): Update.
6481 * tui/tui-data.h (class tui_window_iterator): New.
6482 (struct all_tui_windows): New.
6483 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6484
6485 2019-07-17 Tom Tromey <tom@tromey.com>
6486
6487 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6488 parameter. Don't reference globals.
6489 (tui_reg_command): Update.
6490
6491 2019-07-17 Tom Tromey <tom@tromey.com>
6492
6493 * tui/tui-regs.c (tui_show_registers): Simplify.
6494
6495 2019-07-17 Tom Tromey <tom@tromey.com>
6496
6497 * tui/tui-regs.c (tui_show_registers): Update.
6498 (tui_show_register_group): Add win_info parameter.
6499
6500 2019-07-17 Tom Tromey <tom@tromey.com>
6501
6502 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6503 Rename from tui_display_reg_element_at_line.
6504 (tui_data_window::display_registers_from_line): Update.
6505 * tui/tui-data.h (struct tui_data_window)
6506 <display_reg_element_at_line>: New method.
6507
6508 2019-07-17 Tom Tromey <tom@tromey.com>
6509
6510 * tui/tui-regs.h (tui_display_registers_from)
6511 (tui_display_registers_from_line): Don't declare.
6512 * tui/tui-windata.c (tui_data_window::display_all_data)
6513 (tui_data_window::refresh_all)
6514 (tui_data_window::do_scroll_vertical): Update.
6515 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6516 from tui_display_registers_from.
6517 (tui_display_reg_element_at_line): Update.
6518 (tui_data_window::display_registers_from_line): Rename from
6519 tui_display_registers_from_line.
6520 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6521 display_registers_from_line>: New methods.
6522
6523 2019-07-17 Tom Tromey <tom@tromey.com>
6524
6525 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6526 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6527 from tui_erase_data_content.
6528 (tui_data_window::display_all_data)
6529 (tui_data_window::refresh_all)
6530 (tui_data_window::do_scroll_vertical): Update.
6531 * tui/tui-regs.c (tui_show_registers): Update.
6532 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6533 New method.
6534
6535 2019-07-17 Tom Tromey <tom@tromey.com>
6536
6537 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6538 declare.
6539 * tui/tui-windata.c
6540 (tui_data_window::delete_data_content_windows): Rename from
6541 tui_delete_data_content_windows.
6542 (tui_data_window::display_all_data)
6543 (tui_data_window::do_scroll_vertical): Update.
6544 * tui/tui-data.h (struct tui_data_window)
6545 <delete_data_content_windows>: New method.
6546
6547 2019-07-17 Tom Tromey <tom@tromey.com>
6548
6549 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6550 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6551
6552 2019-07-17 Tom Tromey <tom@tromey.com>
6553
6554 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6555 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6556 from tui_display_all_data.
6557 * tui/tui-win.c
6558 (tui_data_window::do_make_visible_with_new_height): Update.
6559 * tui/tui-regs.c (tui_show_registers): Update.
6560 * tui/tui-layout.c (tui_set_layout): Update.
6561 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6562 method.
6563
6564 2019-07-17 Tom Tromey <tom@tromey.com>
6565
6566 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6567 * tui/tui-windata.c (tui_display_data_from): Remove.
6568 (tui_data_window::refresh_all): Update.
6569
6570 2019-07-17 Tom Tromey <tom@tromey.com>
6571
6572 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6573 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6574 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6575 tui_display_registers_from_line.
6576 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6577 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6578 "force_display" parameter.
6579
6580 2019-07-17 Tom Tromey <tom@tromey.com>
6581
6582 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6583 declare.
6584 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6585 Rename from tui_first_reg_element_no_inline.
6586 (tui_display_reg_element_at_line)
6587 (tui_display_registers_from_line): Update.
6588 * tui/tui-data.h (struct tui_data_window)
6589 <first_reg_element_no_inline>: New method.
6590
6591 2019-07-17 Tom Tromey <tom@tromey.com>
6592
6593 * tui/tui-windata.c (tui_display_data_from)
6594 (tui_data_window::do_scroll_vertical): Update.
6595 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6596 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6597 Rename from tui_line_from_reg_element_no.
6598 (tui_display_registers_from_line): Update.
6599 * tui/tui-data.h (struct tui_data_window)
6600 <line_from_reg_element_no>: New method.
6601
6602 2019-07-17 Tom Tromey <tom@tromey.com>
6603
6604 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6605 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6606 tui_last_regs_line_no.
6607 (tui_display_reg_element_at_line)
6608 (tui_display_registers_from_line): Update.
6609 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6610 method.
6611
6612 2019-07-17 Tom Tromey <tom@tromey.com>
6613
6614 PR tui/24722:
6615 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6616 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6617 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6618 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6619 (tui_update_breakpoint_info): Likewise.
6620 * tui/tui-hooks.c (tui_event_create_breakpoint)
6621 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6622 Update.
6623
6624 2019-07-17 Tom Tromey <tom@tromey.com>
6625
6626 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6627
6628 2019-07-17 Tom Tromey <tom@tromey.com>
6629
6630 * tui/tui-winsource.c (tui_update_source_window_as_is)
6631 (tui_update_source_windows_with_addr): Update.
6632 * tui/tui-source.h (tui_set_source_content)
6633 (tui_show_symtab_source): Add "win_info" parameter.
6634 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6635 parameter.
6636 (tui_show_symtab_source): Likewise.
6637
6638 2019-07-17 Tom Tromey <tom@tromey.com>
6639
6640 * tui/tui-wingeneral.c
6641 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6642
6643 2019-07-17 Tom Tromey <tom@tromey.com>
6644
6645 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6646 (struct tui_cmd_window) <can_scroll>: New method.
6647 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6648 method.
6649
6650 2019-07-17 Tom Tromey <tromey@adacore.com>
6651
6652 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6653 do_field_signed>: Rename. Change type of "value".
6654 * ui-out.c (ui_out::field_signed): Rename from field_int.
6655 Change type of "value".
6656 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6657 type of "value".
6658 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6659 do_field_int. Change type of "value".
6660 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6661 do_field_int. Change type of "value".
6662 * tracepoint.c (trace_status_mi, tfind_1)
6663 (print_one_static_tracepoint_marker): Update.
6664 * thread.c (print_thread_info_1, print_selected_thread_frame):
6665 Update.
6666 * stack.c (print_frame, print_frame_info): Update.
6667 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6668 Update.
6669 * source.c (print_source_lines_base): Update.
6670 * skip.c (info_skip_command): Update.
6671 * record-btrace.c (btrace_ui_out_decode_error)
6672 (btrace_call_history_src_line): Update.
6673 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6674 Update.
6675 * progspace.c (print_program_space): Update.
6676 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6677 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6678 do_field_int. Change type of "value".
6679 * mi/mi-out.c (mi_ui_out::do_table_begin)
6680 (mi_ui_out::do_table_header): Update.
6681 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6682 type of "value".
6683 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6684 (mi_cmd_data_list_changed_registers, output_register)
6685 (mi_cmd_data_read_memory, mi_load_progress)
6686 (mi_cmd_trace_frame_collected): Update.
6687 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6688 Update.
6689 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6690 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6691 (mi_cmd_var_list_children, varobj_update_one): Update.
6692 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6693 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6694 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6695 * inferior.c (print_inferior): Update.
6696 * gdb_bfd.c (print_one_bfd): Update.
6697 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6698 Update.
6699 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6700 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6701 do_field_int. Change type of "value".
6702 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6703 do_field_int. Change type of "value".
6704 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6705 (print_one_breakpoint_location, print_it_catch_fork)
6706 (print_one_catch_fork, print_it_catch_vfork)
6707 (print_one_catch_vfork, print_it_catch_solib)
6708 (print_it_catch_exec, print_it_ranged_breakpoint)
6709 (print_mention_watchpoint, print_mention_masked_watchpoint)
6710 (bkpt_print_it, update_static_tracepoint): Update.
6711 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6712 * break-catch-syscall.c (print_it_catch_syscall): Update.
6713 * ada-tasks.c (print_ada_task_info): Update.
6714 * ada-lang.c (print_it_exception, print_mention_exception):
6715 Update.
6716
6717 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6718
6719 PR breakpoints/24541
6720 * gdbarch.c: Regenerate.
6721 * gdbarch.h: Regenerate.
6722 * gdbarch.sh: Adjust return type and parameter types for
6723 'stap_adjust_register'.
6724 (i386_stap_adjust_register): Adjust signature and return new
6725 register name.
6726 * stap-probe.c (stap_parse_register_operand): Adjust use of
6727 'gdbarch_stap_adjust_register'.
6728
6729 2019-07-17 Tom Tromey <tromey@adacore.com>
6730
6731 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6732 declare VEC.
6733 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6734 std::vector.
6735 (struct s390_process_info): Add initializers.
6736 (s390_add_process): Use new.
6737 (s390_linux_nat_target::low_forget_process): Use delete.
6738 (s390_linux_nat_target::low_new_fork)
6739 (s390_linux_nat_target::stopped_by_watchpoint)
6740 (s390_linux_nat_target::low_prepare_to_resume)
6741 (s390_linux_nat_target::insert_watchpoint)
6742 (s390_linux_nat_target::insert_hw_breakpoint)
6743 (s390_linux_nat_target::remove_watchpoint)
6744 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6745
6746 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6747
6748 * aarch64-fbsd-nat.c: Include regcache.h.
6749 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6750 argument.
6751 (aarch64_fbsd_nat_target::fetch_registers)
6752 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6753 variable.
6754 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6755
6756 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6757
6758 * fbsd-nat.c: Include gdbarch.h.
6759
6760 2019-07-15 Tom Tromey <tromey@adacore.com>
6761
6762 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6763
6764 2019-07-15 Tom Tromey <tromey@adacore.com>
6765
6766 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6767 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6768 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6769 * cli-out.c (cli_ui_out::do_field_int): New method.
6770 * ui-out.c (ui_out::field_unsigned): New method.
6771 * symfile.c (generic_load): Use field_unsigned.
6772 (print_transfer_performance): Likewise.
6773 * record-btrace.c (ui_out_field_uint): Remove.
6774 (btrace_call_history_insn_range, btrace_call_history): Use
6775 field_unsigned.
6776 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6777 field_unsigned.
6778 * ui-out.h (class ui_out) <field_unsigned>: New method.
6779 <do_field_unsigned>: Likewise.
6780
6781 2019-07-15 Tom Tromey <tromey@adacore.com>
6782
6783 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6784 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6785 * target.c (flash_erase_command): Use field_string.
6786 * infrun.c (print_signal_received_reason): Use field_string.
6787 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6788 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6789 field_string.
6790 * ada-tasks.c (print_ada_task_info): Use field_string.
6791
6792 2019-07-15 Tom Tromey <tromey@adacore.com>
6793
6794 * target.c (flash_erase_command): Use field_core_addr.
6795 * symfile.c (generic_load): Use field_core_addr.
6796 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6797 Use field_core_addr.
6798 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6799 field_core_addr.
6800
6801 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6802
6803 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6804 value if its desired type is smaller than a CORE_ADDR and signed.
6805
6806 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6807
6808 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6809 of changes to field names, and use new is_reference field to
6810 decide if a property is a reference or not.
6811 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6812 field.
6813 (struct dwarf2_property_baton): Update header comment, rename
6814 'referenced_type' to 'property_type' and update comments.
6815 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6816 default property type, store in property baton, update to take
6817 accound of renamed field.
6818 (read_func_scope): Update call to attr_to_dynamic_prop.
6819 (read_array_type): Likewise.
6820 (dwarf2_per_cu_addr_sized_int_type): New function.
6821 (read_subrange_index_type): Move type finding code to
6822 dwarf2_per_cu_addr_sized_int_type.
6823 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6824 (dwarf2_per_cu_addr_type): New function.
6825 (set_die_type): Update calls to attr_to_dynamic_prop.
6826
6827 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6828
6829 * dwarf2read.c (read_subrange_index_type): New function.
6830 (read_subrange_type): Move code into new function and call it.
6831 * gdbtypes.c (create_range_type): Add some asserts.
6832
6833 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6834
6835 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6836 update return statements.
6837 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6838 declaration, and update comment to match.
6839 * gdbtypes.c (resolve_dynamic_array): Update call to
6840 dwarf2_evaluate_property to match new return type.
6841
6842 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6843
6844 * valarith.c (value_subscripted_rvalue): Change lowerbound
6845 parameter type from int to LONGEST.
6846 * value.h (value_subscripted_rvalue): Likewise in declaration.
6847
6848 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6849
6850 * cli/cli-utils.c (info_print_command_completer): New function.
6851 * cli/cli-utils.h: Add 'completer.h' include, and forward
6852 declaration for 'struct cmd_list_element'.
6853 (info_print_command_completer): Declare.
6854 * stack.c (_initialize_stack): Add completer for 'info locals' and
6855 'info args'.
6856 * symtab.c (_initialize_symtab): Add completer for 'info
6857 variables' and 'info functions'.
6858 * NEWS: Mention completion for additional info commands.
6859
6860 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6861
6862 * cli/cli-utils.c (extract_info_print_args): Delete.
6863 (extract_arg_maybe_quoted): Delete.
6864 (info_print_options_defs): New variable.
6865 (make_info_print_options_def_group): New function.
6866 (extract_info_print_options): Define new function.
6867 * cli/cli-utils.h (extract_info_print_args): Delete.
6868 (struct info_print_options): New structure.
6869 (extract_info_print_options): Declare new function.
6870 * stack.c (info_locals_command): Update to use new
6871 extract_info_print_options, also add a header comment.
6872 (info_args_command): Likewise.
6873 * symtab.c (info_variables_command): Likewise.
6874 (info_functions_command): Likewise.
6875
6876 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6877
6878 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6879 to extract string arguments.
6880 * common/common-utils.c (extract_string_maybe_quoted): New function.
6881 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6882
6883 2019-07-11 Tom Tromey <tromey@adacore.com>
6884
6885 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6886 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6887 * top.h (gdbinit): Don't declare.
6888 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6889 into...
6890 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6891 * top.c (gdb_init): Don't call init_cli_cmds.
6892 (gdbinit): Remove.
6893 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6894
6895 2019-07-11 Tom Tromey <tromey@adacore.com>
6896
6897 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6898 after it has been moved.
6899
6900 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6901
6902 * valops.c (value_must_coerce_to_target): Change return type to
6903 bool.
6904 * value.h (value_must_coerce_to_target): Likewise.
6905
6906 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6907
6908 * breakpoint.c (is_hardware_watchpoint): Remove
6909 forward-declaration.
6910 (is_masked_watchpoint): Change return type to bool.
6911 (is_tracepoint): Likewise.
6912 (is_breakpoint): Likewise.
6913 (is_hardware_watchpoint): Likewise.
6914 (is_watchpoint): Likewise.
6915 (is_no_memory_software_watchpoint): Likewise.
6916 (is_catchpoint): Likewise.
6917 (breakpoint_1): Make FILTER parameter's return type bool.
6918 is_masked_watchpoint): Change return type to bool.
6919 (save_breakpoints): Make FILTER parameter's return type bool.
6920 * breakpoint.h (is_breakpoint): Change return type to bool.
6921 (is_watchpoint): Likewise.
6922 (is_catchpoint): Likewise.
6923 (is_tracepoint): Likewise.
6924
6925 2019-07-10 Tom Tromey <tom@tromey.com>
6926
6927 * defs.h: Don't include gdbarch.h.
6928 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6929 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6930 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6931 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6932 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6933 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6934 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6935 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6936 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6937 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6938 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6939 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6940 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6941 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6942 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6943 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6944 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6945 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6946 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6947 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6948 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6949 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6950 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6951 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6952 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6953 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6954 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6955
6956 2019-07-10 Tom Tromey <tromey@adacore.com>
6957
6958 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6959 * breakpoint.c (init_ada_exception_breakpoint): Register as
6960 bp_catchpoint.
6961 (print_one_breakpoint_location, print_one_breakpoint): Use
6962 is_ada_exception_catchpoint.
6963 * ada-lang.c (class ada_catchpoint_location): Pass
6964 bp_loc_software_breakpoint to bp_location constructor.
6965 (is_ada_exception_catchpoint): New function.
6966
6967 2019-07-10 Tom Tromey <tromey@adacore.com>
6968
6969 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6970 VEC.
6971 (struct arm_exidx_entry): New method operator<.
6972 (struct arm_exidx_data) <section_maps>: Change type.
6973 (arm_exidx_data_free): Remove.
6974 (arm_exidx_data_key): Change type. Move lower.
6975 (arm_exidx_new_objfile): Update.
6976 (arm_compare_exidx_entries): Remove.
6977 (arm_find_exidx_entry, _initialize_arm_tdep)
6978
6979 2019-07-10 Tom Tromey <tromey@adacore.com>
6980
6981 * solib-spu.c (ocl_program_data_key): Change type.
6982 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6983 Update.
6984
6985 2019-07-10 Tom Tromey <tromey@adacore.com>
6986
6987 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6988 (struct solib_aix_inferior_data) <library_list>: Change type.
6989 (solib_aix_inferior_data_handle): Change type.
6990 (get_solib_aix_inferior_data): Update.
6991 (solib_aix_free_library_list): Remove.
6992 (library_list_start_library): Update.
6993 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6994 return type.
6995 (solib_aix_get_library_list)
6996 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6997 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6998
6999 2019-07-10 Tom Tromey <tromey@adacore.com>
7000
7001 * solib-dsbt.c (struct dsbt_info): Add initializers.
7002 (solib_dsbt_pspace_data): Change type.
7003 (dsbt_pspace_data_cleanup): Remove.
7004 (get_dsbt_info, _initialize_dsbt_solib): Update.
7005
7006 2019-07-10 Tom Tromey <tromey@adacore.com>
7007
7008 * spu-tdep.c (spu_overlay_data): Change type.
7009 (spu_get_overlay_table, spu_overlay_new_objfile)
7010 (_initialize_spu_tdep): Update.
7011
7012 2019-07-10 Tom Tromey <tromey@adacore.com>
7013
7014 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7015 destructor.
7016 (dbx_objfile_data_key): Change type and declare later.
7017 (DBX_SYMFILE_INFO): Rewrite.
7018 * dbxread.c (dbx_objfile_data_key): Change type.
7019 (dbx_symfile_init): Update.
7020 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7021 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7022 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7023
7024 2019-07-10 Tom Tromey <tromey@adacore.com>
7025
7026 * jit.c (jit_program_space_key): Change type. Move lower.
7027 (get_jit_program_space_data): Update.
7028 (jit_program_space_data_cleanup): Remove.
7029 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7030 Update.
7031 (struct jit_program_space_data): Add initializers.
7032
7033 2019-07-10 Tom Tromey <tromey@adacore.com>
7034
7035 * solib-darwin.c (struct darwin_info): Add initializers.
7036 (solib_darwin_pspace_data): Change type.
7037 (darwin_pspace_data_cleanup): Remove.
7038 (get_darwin_info, _initialize_darwin_solib): Update.
7039
7040 2019-07-10 Tom Tromey <tromey@adacore.com>
7041
7042 * remote-sim.c (struct sim_inferior_data): Add initializers,
7043 constructor, and destructor.
7044 (sim_inferior_data_key): Change type. Move lower.
7045 (check_for_duplicate_sim_descriptor): Update.
7046 (get_sim_inferior_data): Use new. Update.
7047 (~sim_inferior_data_cleanup): Rename from
7048 sim_inferior_data_cleanup. Simplify.
7049 (gdbsim_close_inferior, simulator_command)
7050 (sim_command_completer, _initialize_remote_sim): Update.
7051 (next_pid, INITIAL_PID): Move earlier.
7052
7053 2019-07-10 Tom Tromey <tromey@adacore.com>
7054
7055 * python/python-internal.h (create_thread_object): Return
7056 gdbpy_ref.
7057 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7058 * python/py-inferior.c (struct threadlist_entry): Add
7059 constructor.
7060 <thread_obj>: Now a gdbpy_ref.
7061 (thread_to_thread_object): Update.
7062 (add_thread_object): Use new.
7063 (delete_thread_object): Use delete.
7064 (infpy_threads): Update.
7065 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7066 GIL.
7067
7068 2019-07-10 Tom Tromey <tromey@adacore.com>
7069
7070 * valops.c (value_cast): Specialize error message for Ada.
7071
7072 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7073
7074 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7075
7076 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7077
7078 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7079 bpstat_should_step): Return bool, adjust comments.
7080 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7081 bpstat_should_step): Likewise.
7082
7083 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7084
7085 * features/Makefile: Use feature target descriptions for Arm.
7086 * features/arm/arm-core.c: Generate new file.
7087 * features/arm/arm-fpa.c: Likewise.
7088 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7089 * features/arm/arm-m-profile.c: Likewise.
7090 * features/arm/arm-vfpv2.c: Likewise.
7091 * features/arm/arm-vfpv3.c: Likewise.
7092 * features/arm/xscale-iwmmxt.c: Likewise.
7093 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7094
7095 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7096
7097 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7098 ptrace earlier.
7099
7100 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7101
7102 * features/aarch64-pauth.c: Regenerate.
7103
7104 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7105
7106 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7107 bool.
7108 (bpstat_what): Use false instead of 0.
7109
7110 2019-07-09 Pedro Alves <palves@redhat.com>
7111
7112 * break-catch-throw.c (is_exception_catchpoint): New.
7113 * breakpoint.c (print_one_breakpoint_location): New parameter
7114 'raw_loc'. Handle it. Use
7115 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7116 looking at the breakpoint's type.
7117 (print_one_breakpoint): If handling "maint info breakpoints", also
7118 print locations of exception catchpoints.
7119 * breakpoint.h (is_exception_catchpoint): Declare.
7120
7121 2019-07-09 Pedro Alves <palves@redhat.com>
7122
7123 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7124 "addr" field.
7125 (allocate_location_exception_catchpoint): New.
7126 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7127 (initialize_throw_catchpoint_ops): Install
7128 allocate_location_exception_catchpoint as allocate_location
7129 method.
7130 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7131 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7132 bp_loc_other.
7133 (breakpoint_address_is_meaningful): Delete.
7134 (bl_address_is_meaningful): New.
7135 (breakpoint_locations_match): Adjust comment.
7136 (bp_location_from_bp_type): New, factored out of...
7137 (bp_location::bp_location(breakpoint *)): ... this.
7138 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7139 factored out of...
7140 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7141 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7142 breakpoint_address_is_meaningful.
7143 (bp_locations_compare): Adjust comment.
7144 (update_global_location_list): Use bl_address_is_meaningful
7145 instead of breakpoint_address_is_meaningful.
7146 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7147 explicit.
7148 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7149 * python/py-breakpoint.c (bppy_get_location): No longer check
7150 whether location is null.
7151
7152 2019-07-09 Pedro Alves <palves@redhat.com>
7153
7154 PR c++/15468
7155 * breakpoint.c (print_one_breakpoint_location): Remove
7156 single-location assert.
7157
7158 2019-07-09 Tom Tromey <tom@tromey.com>
7159
7160 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7161 * configure: Rebuild.
7162 * configure.ac: Change common to gdbsupport.
7163 * gdbsupport: Rename from common.
7164 * acinclude.m4: Change common to gdbsupport.
7165 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7166 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7167 gdbsupport.
7168 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7169 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7170 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7171 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7172 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7173 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7174 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7175 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7176 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7177 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7178 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7179 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7180 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7181 coff-pe-read.c, command.h, compile/compile-c-support.c,
7182 compile/compile-c.h, compile/compile-cplus-symbols.c,
7183 compile/compile-cplus-types.c, compile/compile-cplus.h,
7184 compile/compile-loc2c.c, compile/compile.c, completer.c,
7185 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7186 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7187 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7188 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7189 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7190 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7191 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7192 features/aarch64-core.c, features/aarch64-fpu.c,
7193 features/aarch64-pauth.c, features/aarch64-sve.c,
7194 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7195 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7196 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7197 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7198 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7199 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7200 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7201 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7202 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7203 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7204 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7205 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7206 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7207 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7208 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7209 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7210 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7211 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7212 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7213 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7214 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7215 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7216 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7217 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7218 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7219 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7220 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7221 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7222 minsyms.c, mips-linux-tdep.c, namespace.h,
7223 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7224 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7225 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7226 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7227 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7228 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7229 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7230 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7231 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7232 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7233 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7234 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7235 procfs.c, producer.c, progspace.h, psymtab.h,
7236 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7237 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7238 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7239 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7240 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7241 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7242 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7243 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7244 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7245 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7246 target-memory.c, target.c, target.h, target/waitstatus.c,
7247 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7248 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7249 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7250 unittests/array-view-selftests.c,
7251 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7252 unittests/common-utils-selftests.c,
7253 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7254 unittests/format_pieces-selftests.c,
7255 unittests/function-view-selftests.c,
7256 unittests/lookup_name_info-selftests.c,
7257 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7258 unittests/mkdir-recursive-selftests.c,
7259 unittests/observable-selftests.c,
7260 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7261 unittests/parse-connection-spec-selftests.c,
7262 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7263 unittests/scoped_fd-selftests.c,
7264 unittests/scoped_mmap-selftests.c,
7265 unittests/scoped_restore-selftests.c,
7266 unittests/string_view-selftests.c, unittests/style-selftests.c,
7267 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7268 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7269 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7270 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7271 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7272 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7273
7274 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7275
7276 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7277 bool value.
7278 (decode_digits_ordinary): Set explicit_line field in sal.
7279 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7280 symtab_and_line that was set on an explicit line number in
7281 assembler code. Do always update the recorded symtab and line if
7282 we do skip the prologue.
7283
7284 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7285
7286 * breakpoint.c (set_breakpoint_location_function): Remove
7287 explicit_loc parameter.
7288 (momentary_breakpoint_from_master): Update call to
7289 set_breakpoint_location_function.
7290 (add_location_to_breakpoint): Likewise.
7291
7292 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7293
7294 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7295 required features based on default bfd type when no specific bfd
7296 is present.
7297
7298 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7299
7300 * NEWS: Mention that GDB printf and eval commands can now print
7301 C-style and Ada-style convenience var strings without
7302 calling the inferior.
7303 * printcmd.c (printf_c_string): Locally print GDB internal var
7304 instead of transiting via the inferior.
7305 (printf_wide_c_string): Likewise.
7306
7307 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7308
7309 PR breakpoints/25011
7310 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7311
7312 2019-07-04 Tom Tromey <tom@tromey.com>
7313
7314 PR tui/24724:
7315 * tui/tui-winsource.c (tui_clear_source_content): Update.
7316 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7317 (tui_update_breakpoint_info): Update.
7318 (tui_set_exec_info_content): Update.
7319 * tui/tui-source.c (tui_set_source_content_nil): Update.
7320 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7321 has_break.
7322 * tui/tui-data.h (enum tui_bp_flag): New.
7323 (tui_bp_flags): New enum flags type.
7324 (struct tui_source_element) <break_mode>: Change type. Rename
7325 from has_break.
7326 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7327 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7328 constants.
7329 * tui/tui-winsource.h: Fix comment.
7330
7331 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7332
7333 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7334 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7335 (store_fpregs_to_thread)
7336 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7337 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7338 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7339 (IWMMXT_REGS_SIZE): Add define.
7340 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7341 (fetch_vfp_regs, store_vfp_regs)
7342 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7343 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7344
7345 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7346
7347 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7348 defines.
7349 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7350 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7351 (ARM_INT_REGISTER_SIZE): ...to this.
7352 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7353 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7354 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7355 (arm_linux_collect_gregset, supply_nwfpe_register)
7356 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7357 defines.
7358 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7359 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7360 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7361 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7362 (arm_return_in_memory, arm_store_return_value)
7363 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7364 (arm_record_ld_st_multiple): Likewise.
7365 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7366 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7367
7368 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7369
7370 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7371 AARCH64_DISPLACED_MODIFIED_INSNS.
7372 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7373 (aarch64_displaced_step_copy_insn): Likewise.
7374 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7375 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7376 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7377 ARM_DISPLACED_MODIFIED_INSNS.
7378 * arm-tdep.c (arm_gdbarch_init): Likewise.
7379 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7380 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7381 (struct arm_displaced_step_closure): Use
7382 ARM_DISPLACED_MODIFIED_INSNS.
7383
7384 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7385
7386 * features/Makefile: Remove unused xml files.
7387 * features/aarch64.xml: Remove.
7388 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7389 * features/i386/amd64-avx-avx512.xml: Remove.
7390 * features/i386/amd64-avx-linux.xml: Remove.
7391 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7392 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7393 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7394 * features/i386/amd64-avx-mpx.xml: Remove.
7395 * features/i386/amd64-avx.xml: Remove.
7396 * features/i386/amd64-linux.xml: Remove.
7397 * features/i386/amd64-mpx-linux.xml: Remove.
7398 * features/i386/amd64-mpx.xml: Remove.
7399 * features/i386/amd64.xml: Remove.
7400 * features/i386/i386-avx-avx512-linux.xml: Remove.
7401 * features/i386/i386-avx-avx512.xml: Remove.
7402 * features/i386/i386-avx-linux.xml: Remove.
7403 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7404 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7405 * features/i386/i386-avx-mpx-linux.xml: Remove.
7406 * features/i386/i386-avx-mpx.xml: Remove.
7407 * features/i386/i386-avx.xml: Remove.
7408 * features/i386/i386-linux.xml: Remove.
7409 * features/i386/i386-mmx-linux.xml: Remove.
7410 * features/i386/i386-mmx.xml: Remove.
7411 * features/i386/i386-mpx-linux.xml: Remove.
7412 * features/i386/i386-mpx.xml: Remove.
7413 * features/i386/i386.xml: Remove.
7414 * features/i386/x32-avx-avx512-linux.xml: Remove.
7415 * features/i386/x32-avx-linux.xml: Remove.
7416 * features/i386/x32-linux.xml: Remove.
7417
7418 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7419
7420 * regformats/aarch64.dat: Remove.
7421 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7422 * regformats/i386/amd64-avx-linux.dat: Remove.
7423 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7424 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7425 * regformats/i386/amd64-linux.dat: Remove.
7426 * regformats/i386/amd64-mpx-linux.dat: Remove.
7427 * regformats/i386/amd64.dat: Remove.
7428 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7429 * regformats/i386/i386-avx-linux.dat: Remove.
7430 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7431 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7432 * regformats/i386/i386-linux.dat: Remove.
7433 * regformats/i386/i386-mmx-linux.dat: Remove.
7434 * regformats/i386/i386-mpx-linux.dat: Remove.
7435 * regformats/i386/i386.dat: Remove.
7436 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7437 * regformats/i386/x32-avx-linux.dat: Remove.
7438 * regformats/i386/x32-linux.dat: Remove.
7439
7440 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7441
7442 * aarch64-tdep.c: Remove xml self tests.
7443 * amd64-linux-tdep.c: Likewise.
7444 * amd64-tdep.c: Likewise.
7445 * i386-linux-tdep.c: Likewise.
7446 * i386-tdep.c: Likewise.
7447
7448 2019-07-03 Pedro Alves <palves@redhat.com>
7449
7450 PR cli/24732
7451 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7452 (pipe_cmd_option_defs): New.
7453 (make_pipe_cmd_options_def_group): New.
7454 (pipe_command): Use gdb::option::process_options.
7455 (pipe_command_completer): New function.
7456 (_initialize_cli_cmds): Install completer for "pipe" command.
7457
7458 2019-07-03 Pedro Alves <palves@redhat.com>
7459
7460 * cli/cli-option.c (union option_value) <string>: New field.
7461 (struct option_def_and_value): Add ctor, move ctor, dtor and
7462 use DISABLE_COPY_AND_ASSIGN.
7463 (option_def_and_value::clear_value): New.
7464 (parse_option, save_option_value_in_ctx, get_val_type_str)
7465 (add_setshow_cmds_for_options): Handle var_string.
7466 * cli-option.h (union option_def::var_address) <string>: New
7467 field.
7468 (struct string_option_def): New.
7469 * maint-test-options.c (struct test_options_opts): Add default
7470 ctor and use DISABLE_COPY_AND_ASSIGN.
7471 <string_opt>: New field.
7472 (test_options_opts::~test_options_opts): New.
7473 (test_options_opts::dump): Also dump "-string".
7474 (test_options_option_defs): Install "string.
7475
7476 2019-07-03 Pedro Alves <palves@redhat.com>
7477
7478 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7479 option_value with a null enumeration.
7480 (complete_options): Save the option values in the context.
7481 (save_option_value_in_ctx): New, factored out from ...
7482 (process_options): ... here.
7483 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7484 of the function.
7485 * maint-test-options.c (test_options_opts::dump): New, factored
7486 out from ...
7487 (maintenance_test_options_command_mode): ... here.
7488 (maintenance_test_options_command_completion_result): Delete.
7489 (maintenance_test_options_command_completion_text): Update
7490 comment.
7491 (maintenance_show_test_options_completion_result): Change
7492 prototype. Just print
7493 maintenance_test_options_command_completion_text.
7494 (save_completion_result): New.
7495 (maintenance_test_options_completer_mode): Pass options context to
7496 complete_options, and then save a dump.
7497 (_initialize_maint_test_options): Use add_cmd to install "maint
7498 show test-options-completion-result".
7499
7500 2019-07-03 Pedro Alves <palves@redhat.com>
7501
7502 * NEWS (New commands): Mention "with" and "maint with".
7503 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7504 (with_command, with_command_completer): New.
7505 (pipe_command): Adjust to new repeat_previous
7506 interface.
7507 (_initialize_cli_cmds): Install the "with" command and its "w"
7508 alias.
7509 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7510 declarations.
7511 * cli/cli-setshow.c (parse_cli_var_uinteger)
7512 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7513 argument strings for all var_types.
7514 (get_setshow_command_value_string): New, factored out from ...
7515 (do_show_command): ... this.
7516 * cli/cli-setshow.h: Include <string>.
7517 (get_setshow_command_value_string): Declare.
7518 * command.h (repeat_previous): Now returns const char *. Adjust
7519 comment.
7520 * maint.c: Include "cli/cli-cmds.h".
7521 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7522 (_initialize_maint_cmds): Register the "maintenance with" command.
7523 * top.c (repeat_previous): Move bits from pipe_command here:
7524 Return the saved command line, if any; error out if there's no
7525 command to relaunch.
7526
7527 2019-07-03 Pedro Alves <palves@redhat.com>
7528
7529 * NEWS (New commands): Mention "maint set/show test-settings"
7530 instead of "maint test-settings".
7531 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7532 (maintenance_test_settings_set_list): Rename to ...
7533 (maintenance_set_test_settings_list): ... this.
7534 (maintenance_test_settings_show_list): Rename to ...
7535 (maintenance_show_test_settings_list): ... this.
7536 (maintenance_test_settings_cmd): Delete.
7537 (maintenance_test_settings_set_cmd): ...
7538 (maintenance_set_test_settings_cmd): ... this.
7539 (maintenance_test_settings_show_cmd): ...
7540 (maintenance_show_test_settings_cmd): ... this.
7541 (maintenance_test_settings_show_value_cmd):
7542 (maintenance_show_test_settings_value_cmd): ... this.
7543 (_initialize_maint_test_settings): No longer install the "maint
7544 test-settings" prefix command. Rename "maint test-settings set"
7545 to "maint set test-settings", and "maint test-settings show" to
7546 "maint show test-settings". Adjust all subcommands.
7547
7548 2019-07-03 Pedro Alves <palves@redhat.com>
7549
7550 * maint-test-settings.c: Fix file's intro comment. Replace all
7551 references to "test-options" with references to "test-settings",
7552 in comments.
7553
7554 2019-07-03 Pedro Alves <palves@redhat.com>
7555
7556 * maint-test-settings.c (maintenance_test_settings_xxx)
7557 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7558 New.
7559 (maintenance_test_settings_enums): Use them.
7560 (maintenance_test_settings_enum): Default to
7561 maintenance_test_settings_xxx.
7562 (_initialize_maint_test_settings): Initialize
7563 MAINTENANCE_TEST_SETTINGS_FILENAME.
7564
7565 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7566
7567 * breakpoint.h (remove_breakpoints_inf): Change return type to
7568 void, move function documentation here.
7569 * breakpoint.c (remove_breakpoints_inf): Change return type to
7570 void, move function documentation to header.
7571
7572 2019-07-02 Pedro Alves <palves@redhat.com>
7573
7574 * NEWS (Completion improvements): Mention "info threads".
7575 * thread.c (struct info_threads_opts, info_threads_option_defs)
7576 (make_info_threads_options_def_group): New.
7577 (info_threads_command): Use gdb::option::process_options.
7578 (info_threads_command_completer): New.
7579 (_initialize_thread): Use gdb::option::build_help to build the
7580 help text for "info threads".
7581
7582 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7583
7584 * defs.h (generic_load): Move from here...
7585 * symfile.h (generic_load): ... to here. Rename name parameter
7586 to args.
7587 * symfile.c (generic_load): Add comment.
7588
7589 2019-07-01 Tom Tromey <tromey@adacore.com>
7590
7591 * dwarf2read.c
7592 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7593 declaration of without_params. Fix formatting.
7594
7595 2019-07-01 Tom Tromey <tromey@adacore.com>
7596
7597 * ada-exp.y (find_primitive_type): Update.
7598 * ada-lang.h (ada_lookup_symbol): Update.
7599 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7600 parameter.
7601 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7602
7603 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7604
7605 PR breakpoints/24541
7606 * gdbarch.c: Regenerate.
7607 * gdbarch.h: Regenerate.
7608 * gdbarch.sh: Add 'stap_adjust_register'.
7609 * i386-tdep.c: Include '<unordered_set>'.
7610 (i386_stap_adjust_register): New function.
7611 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7612 * stap-probe.c (stap_parse_register_operand): Call
7613 'gdbarch_stap_adjust_register'.
7614
7615 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7616
7617 PR python/24742
7618 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7619 * python/python.c (do_start_initialization): Use 'xmalloc'
7620 instead of 'PyMem_Malloc'.
7621
7622 2019-06-28 Tom Tromey <tromey@adacore.com>
7623
7624 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7625 for Ada.
7626
7627 2019-06-27 Tom Tromey <tromey@adacore.com>
7628
7629 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7630 objfile_key.
7631 (arm_find_mapping_symbol, arm_record_special_symbol)
7632 (_initialize_arm_tdep): Update.
7633 (arm_objfile_data_free): Remove.
7634
7635 2019-06-27 Tom Tromey <tromey@adacore.com>
7636
7637 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7638 to cp_print_static_field.
7639
7640 2019-06-26 Tom Tromey <tromey@adacore.com>
7641
7642 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7643 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7644 declare.
7645
7646 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7647
7648 * features/aarch64-core.c (create_feature_aarch64_core):
7649 Regenerate.
7650 * features/aarch64-core.xml: Add cpsr flags.
7651
7652 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7653
7654 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7655 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7656
7657 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7658
7659 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7660 field.
7661 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7662 use.
7663 (arm_record_special_symbol): Don't insert new symbol in sorted
7664 position, push it at the end.
7665
7666 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7667
7668 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7669 (arm_mapping_symbol_s): Remove.
7670 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7671 (arm_mapping_symbol_vec): New typedef.
7672 (struct arm_per_objfile): Add constructor.
7673 <section_maps>: Change type to
7674 std::unique_ptr<arm_mapping_symbol_vec[]>.
7675 (arm_compare_mapping_symbols): Remove.
7676 (arm_find_mapping_symbol): Adjust to section_maps type change.
7677 (arm_objfile_data_free): Call delete on arm_per_objfile.
7678 (arm_record_special_symbol): Adjust to section_maps type change.
7679 Allocate arm_per_objfile with new.
7680
7681 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7682
7683 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7684 with the command prefix.
7685
7686 2019-06-25 Tom Tromey <tom@tromey.com>
7687
7688 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7689 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7690
7691 2019-06-25 Tom Tromey <tom@tromey.com>
7692
7693 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7694 type.
7695 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7696 protected.
7697
7698 2019-06-25 Tom Tromey <tom@tromey.com>
7699
7700 * tui/tui-winsource.c
7701 (tui_source_window_base::set_is_exec_point_at): Add check against
7702 LOA_ADDRESS.
7703
7704 2019-06-25 Tom Tromey <tom@tromey.com>
7705
7706 * tui/tui-source.c (tui_set_source_content): Don't check before
7707 xfree.
7708 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7709
7710 2019-06-25 Tom Tromey <tom@tromey.com>
7711
7712 * tui/tui-winsource.h (tui_update_source_window_as_is)
7713 (tui_alloc_source_buffer, tui_line_is_displayed)
7714 (tui_addr_is_displayed): Change type of win_info.
7715 * tui/tui-winsource.c (tui_update_source_window_as_is)
7716 (tui_clear_source_content, tui_show_source_line)
7717 (tui_show_source_content, tui_source_window_base::refill)
7718 (tui_source_window_base::set_is_exec_point_at)
7719 (tui_source_window_base::set_is_exec_point_at)
7720 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7721 (tui_alloc_source_buffer, tui_line_is_displayed)
7722 (tui_addr_is_displayed): Change type of win_info. Update.
7723 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7724 (tui_source_window_base::do_make_visible_with_new_height):
7725 Update.
7726 * tui/tui-source.c (tui_set_source_content)
7727 (tui_set_source_content_nil)
7728 (tui_source_window::do_scroll_vertical): Update.
7729 * tui/tui-layout.c (show_layout): Update.
7730 * tui/tui-disasm.c (tui_set_disassem_content)
7731 (tui_disasm_window::do_scroll_vertical): Update.
7732 * tui/tui-data.h (tui_win_content): Remove.
7733 (struct tui_gen_win_info) <content, content_size>: Remove.
7734 (struct tui_source_element): Add initializers and destructor.
7735 (union tui_which_element, struct tui_win_element): Remove.
7736 (struct tui_source_window_base) <content>: New field.
7737 (struct tui_data_window): Remove destructor.
7738 (tui_alloc_content, tui_free_win_content)
7739 (tui_free_all_source_wins_content): Don't declare.
7740 * tui/tui-data.c (tui_initialize_static_data): Update.
7741 (init_content_element, tui_alloc_content): Remove.
7742 (~tui_gen_win_info): Update.
7743 (~tui_data_window, tui_free_all_source_wins_content)
7744 (tui_free_win_content, free_content, free_content_elements):
7745 Remove.
7746
7747 2019-06-25 Tom Tromey <tom@tromey.com>
7748
7749 * tui/tui-winsource.h (tui_clear_source_content)
7750 (tui_erase_source_content, tui_show_source_content): Change type
7751 of win_info.
7752 * tui/tui-winsource.c (tui_clear_source_content)
7753 (tui_erase_source_content, tui_show_source_content): Change type
7754 of win_info.
7755 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7756 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7757 win_info.
7758 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7759 win_info.
7760 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7761
7762 2019-06-25 Tom Tromey <tom@tromey.com>
7763
7764 * tui/tui-winsource.c (tui_clear_source_content)
7765 (tui_source_window_base::set_is_exec_point_at): Update.
7766 * tui/tui-source.c (tui_set_source_content_nil): Update.
7767 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7768 a bool.
7769 * tui/tui-data.c (init_content_element): Update.
7770
7771 2019-06-25 Tom Tromey <tom@tromey.com>
7772
7773 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7774 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7775 * tui/tui-layout.c (init_and_make_win): Update.
7776 * tui/tui.h (enum tui_win_type): Update.
7777 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7778 tui_win_is_auxillary.
7779 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7780 tui_win_is_auxillary.
7781
7782 2019-06-25 Tom Tromey <tom@tromey.com>
7783
7784 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7785 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7786 (tui_delete_data_content_windows, tui_display_all_data)
7787 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7788 Update.
7789 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7790 * tui/tui-regs.c (tui_last_regs_line_no)
7791 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7792 (tui_show_registers): Update.
7793 (tui_show_register_group): Return void. Update.
7794 (tui_display_registers_from, tui_display_reg_element_at_line)
7795 (tui_display_registers_from_line, tui_check_register_values):
7796 Update.
7797 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7798 member.
7799 (struct tui_data_window) <regs_content>: Now a std::vector.
7800 <regs_content_count>: Remove.
7801 (tui_add_content_elements, tui_free_data_content): Don't declare.
7802 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7803 (init_content_element): Remove DATA_WIN case. Add assert.
7804 (tui_add_content_elements): Remove.
7805 (tui_data_window): Update.
7806 (tui_free_data_content): Remove.
7807 (free_content_elements): Remove DATA_WIN case.
7808
7809 2019-06-25 Tom Tromey <tom@tromey.com>
7810
7811 * tui/tui-data.c (tui_data_item_window): Update.
7812 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7813 * tui/tui-windata.c (tui_display_all_data)
7814 (tui_display_data_from_line): Update.
7815 (tui_check_data_values): Remove.
7816 * tui/tui-regs.c (tui_show_register_group)
7817 (tui_display_reg_element_at_line): Update.
7818 * tui/tui-hooks.c (tui_register_changed)
7819 (tui_refresh_frame_and_register_information): Call
7820 tui_check_register_values.
7821 * tui/tui-data.h (struct tui_data_window) <data_content,
7822 data_content_count, data_type>: Remove.
7823 (enum tui_data_type): Remove.
7824
7825 * tui/tui-data.c (tui_data_window::clear_detail)
7826 (~tui_data_window): Update.
7827
7828 2019-06-25 Tom Tromey <tom@tromey.com>
7829
7830 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7831 declare.
7832 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7833 Rename from tui_first_data_item_displayed. Update.
7834 (tui_data_window::refresh_all)
7835 (tui_data_window::do_scroll_vertical): Update.
7836 * tui/tui-data.h (struct tui_data_window)
7837 <first_data_item_displayed>: Declare new method.
7838
7839 2019-06-25 Tom Tromey <tom@tromey.com>
7840
7841 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7842 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7843 contents...
7844 (tui_initialize_static_data): ...here.
7845
7846 2019-06-25 Tom Tromey <tom@tromey.com>
7847
7848 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7849 (tui_display_registers_from, tui_check_register_values): Update.
7850 (tui_display_register): Remove win_info parameter; update.
7851 (tui_get_register): Change type of parameters.
7852 * tui/tui-data.h (struct tui_data_element): Remove.
7853 (union tui_which_element) <data>: Remove.
7854 <data_window>: Change type.
7855 (struct tui_data_item_window): New.
7856 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7857 case. Add assert.
7858 (~tui_data_item_window): New destructor.
7859 (free_content_elements): Remove DATA_ITEM_WIN case.
7860
7861 2019-06-25 Tom Tromey <tom@tromey.com>
7862
7863 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7864 Remove.
7865
7866 2019-06-25 Tom Tromey <tom@tromey.com>
7867
7868 * tui/tui-data.h (struct tui_command_element): Remove.
7869 (union tui_which_element) <command>: Remove.
7870 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7871 assert.
7872 (free_content_elements): Remove CMD_WIN case.
7873
7874 2019-06-25 Tom Tromey <tom@tromey.com>
7875
7876 * tui/tui-layout.c (tui_set_layout): Update.
7877 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7878 * tui/tui-data.c (layout_def): Update.
7879
7880 2019-06-25 Tom Tromey <tom@tromey.com>
7881
7882 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7883 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7884 (tui_source_window_base::set_new_height): Update.
7885 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7886 Update.
7887 (tui_set_locator_fullname, tui_set_locator_info)
7888 (tui_show_frame_info): Update.
7889 * tui/tui-source.c (tui_set_source_content)
7890 (tui_source_is_displayed): Update.
7891 * tui/tui-layout.c (show_source_disasm_command, show_data)
7892 (show_source_or_disasm_and_command): Update.
7893 * tui/tui-disasm.c (tui_set_disassem_content)
7894 (tui_get_begin_asm_address): Update.
7895 * tui/tui-data.h (struct tui_locator_element): Remove.
7896 (union tui_which_element) <locator>: Remove.
7897 (struct tui_locator_window): New.
7898 (tui_locator_win_info_ptr): Change return type.
7899 * tui/tui-data.c (_locator): Change type.
7900 (tui_locator_win_info_ptr): Change return type.
7901 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7902 (tui_alloc_content): Add assert.
7903
7904 2019-06-25 Tom Tromey <tom@tromey.com>
7905
7906 * tui/tui-winsource.c
7907 (tui_exec_info_window::maybe_allocate_content): New method.
7908 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7909 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7910 (make_source_or_disasm_window): Add cast.
7911 * tui/tui-data.h (union tui_which_element) <simple_string>:
7912 Remove.
7913 (struct tui_source_info): New.
7914 (struct tui_source_window_base) <execution_info>: Change type.
7915 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7916 case, and add assert.
7917 (tui_alloc_content): Add assert.
7918
7919 2019-06-25 Tom Tromey <tom@tromey.com>
7920
7921 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7922 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7923 * tui/tui-data.c (tui_alloc_win_info): Remove.
7924
7925 2019-06-25 Tom Tromey <tom@tromey.com>
7926
7927 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7928 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7929 can_highlight.
7930
7931 2019-06-25 Tom Tromey <tom@tromey.com>
7932
7933 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7934 make_visible_with_new_height method.
7935 (tui_win_info::make_visible_with_new_height): New method.
7936 (tui_source_window_base::do_make_visible_with_new_height)
7937 (tui_data_window::do_make_visible_with_new_height)
7938 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7939 (make_visible_with_new_height): Remove.
7940 (tui_resize_all, tui_adjust_win_heights): Use
7941 make_visible_with_new_height method.
7942 * tui/tui-data.h (struct tui_win_info)
7943 <do_make_visible_with_new_height, make_visible_with_new_height>:
7944 New methods.
7945 (struct tui_source_window_base, struct tui_data_window)
7946 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7947 methods.
7948
7949 2019-06-25 Tom Tromey <tom@tromey.com>
7950
7951 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7952 method.
7953 (update_tab_width): Call update_tab_width method.
7954 * tui/tui-data.h (struct tui_win_info)
7955 (struct tui_source_window_base) <update_tab_width>: New methods.
7956
7957 2019-06-25 Tom Tromey <tom@tromey.com>
7958
7959 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7960 parameter.
7961 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7962 parameter.
7963 (tui_gen_win_info::make_visible): Update.
7964 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7965 parameter.
7966 * tui/tui-data.h (enum tui_box): New enum.
7967 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7968
7969 2019-06-25 Tom Tromey <tom@tromey.com>
7970
7971 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7972 init_and_make_win for EXEC_INFO_WIN.
7973 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7974 longer inline.
7975 (struct tui_win_info) <~tui_win_info>: Inline.
7976 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7977 Don't declare.
7978 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7979 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7980 Remove.
7981 (tui_initialize_static_data): Update.
7982 (~tui_gen_win_info): Handle more cleanup here.
7983 (~tui_source_window_base): Delete "execution_info".
7984 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7985
7986 2019-06-25 Tom Tromey <tom@tromey.com>
7987
7988 * tui/tui-layout.c (make_command_window): Don't set
7989 can_highlight.
7990 (show_source_disasm_command): Call the reset method.
7991 (show_data): Don't set can_highlight. Call the reset method.
7992 (tui_gen_win_info::reset): Rename from init_gen_win_info
7993 (init_and_make_win): Simplify. Return tui_gen_win_info.
7994 (show_source_or_disasm_and_command): Call the reset method.
7995 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7996 (struct tui_cmd_window): Set can_highlight.
7997
7998 2019-06-25 Tom Tromey <tom@tromey.com>
7999
8000 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8001 from make_visible.
8002 (tui_make_visible, tui_make_invisible): Rewrite.
8003 (tui_win_info::make_visible): Remove.
8004 (tui_source_window_base::make_visible): Update.
8005 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8006 method. Moved from...
8007 (struct tui_win_info) <make_visible>: ...here.
8008
8009 2019-06-25 Tom Tromey <tom@tromey.com>
8010
8011 * tui/tui-winsource.c
8012 (tui_source_window_base::do_scroll_horizontal): Remove direction
8013 parameter.
8014 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8015 direction parameter.
8016 * tui/tui-win.c (tui_win_info::forward_scroll)
8017 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8018 (tui_win_info::right_scroll): Update.
8019 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8020 direction parameter.
8021 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8022 direction parameter.
8023 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8024 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8025 Remove direction parameter.
8026 (struct tui_source_window_base, struct tui_source_window)
8027 (struct tui_disasm_window, struct tui_data_window)
8028 (struct tui_cmd_window): Update.
8029
8030 2019-06-25 Tom Tromey <tom@tromey.com>
8031
8032 * tui/tui-winsource.h (tui_set_exec_info_content)
8033 (tui_show_exec_info_content, tui_erase_exec_info_content)
8034 (tui_clear_exec_info_content, tui_update_exec_info): Change
8035 argument to tui_source_window_base.
8036 * tui/tui-winsource.c (tui_set_exec_info_content)
8037 (tui_show_exec_info_content, tui_erase_exec_info_content)
8038 (tui_clear_exec_info_content, tui_update_exec_info): Change
8039 argument to tui_source_window_base.
8040
8041 2019-06-25 Tom Tromey <tom@tromey.com>
8042
8043 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8044 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8045
8046 2019-06-25 Tom Tromey <tom@tromey.com>
8047
8048 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8049 check.
8050
8051 2019-06-25 Tom Tromey <tom@tromey.com>
8052
8053 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8054 type to void.
8055 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8056 type to void.
8057 * tui/tui-source.c (tui_set_source_content): Update.
8058 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8059
8060 2019-06-25 Tom Tromey <tom@tromey.com>
8061
8062 * tui/tui-win.c (window_name_completer, tui_set_focus)
8063 (tui_all_windows_info): Use name method.
8064 * tui/tui-data.h (struct tui_gen_win_info)
8065 (struct tui_source_window, struct tui_disasm_window)
8066 (struct tui_data_window, struct tui_cmd_window) <name>: New
8067 method.
8068 (tui_win_name): Don't declare.
8069 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8070 (tui_win_name): Remove.
8071
8072 2019-06-25 Tom Tromey <tom@tromey.com>
8073
8074 * tui/tui-winsource.h (tui_update_source_window)
8075 (tui_update_source_window_as_is): Change parameter type.
8076 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8077 to be a tui_source_window_base.
8078 (tui_update_source_window_as_is): Likewise.
8079 * tui/tui-win.c (make_visible_with_new_height): Update.
8080
8081 2019-06-25 Tom Tromey <tom@tromey.com>
8082
8083 * tui/tui-winsource.c (tui_erase_source_content)
8084 (tui_show_source_content, tui_show_exec_info_content)
8085 (tui_erase_exec_info_content): Use refresh_window method.
8086 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8087 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8088 from tui_refresh_win.
8089 (tui_data_window::refresh_window): New method.
8090 (tui_win_info::refresh, tui_source_window_base::refresh)
8091 (tui_refresh_all): Use refresh_window method.
8092 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8093 method.
8094 * tui/tui-regs.c (tui_display_register): Call refresh_window
8095 method.
8096 * tui/tui-layout.c (show_source_disasm_command)
8097 (show_source_or_disasm_and_command): Call refresh_window method.
8098 * tui/tui-data.h (struct tui_gen_win_info)
8099 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8100 New method.
8101
8102 2019-06-25 Tom Tromey <tom@tromey.com>
8103
8104 * tui/tui.c (tui_rl_other_window, tui_enable)
8105 (tui_is_window_visible, tui_get_command_dimension): Update.
8106 * tui/tui-winsource.c (tui_update_source_window_as_is)
8107 (tui_clear_source_content, tui_erase_source_content)
8108 (tui_show_source_line, tui_source_window_base::refill)
8109 (tui_source_window_base::do_scroll_horizontal)
8110 (tui_source_window_base::set_is_exec_point_at)
8111 (tui_update_breakpoint_info, tui_set_exec_info_content)
8112 (tui_alloc_source_buffer, tui_line_is_displayed)
8113 (tui_addr_is_displayed): Update.
8114 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8115 (tui_check_and_display_highlight_if_needed)
8116 (tui_win_info::make_visible, tui_win_info::refresh)
8117 (tui_refresh_all): Update.
8118 * tui/tui-windata.c (tui_first_data_item_displayed)
8119 (tui_delete_data_content_windows, tui_erase_data_content)
8120 (tui_display_all_data, tui_data_window::refresh_all)
8121 (tui_check_data_values): Update.
8122 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8123 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8124 (tui_win_info::backward_scroll, tui_refresh_all_win)
8125 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8126 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8127 (tui_source_window_base::set_new_height)
8128 (tui_data_window::set_new_height)
8129 (make_invisible_and_set_new_height)
8130 (make_visible_with_new_height, new_height_ok)
8131 (parse_scrolling_args): Update.
8132 * tui/tui-stack.c (tui_show_frame_info): Update.
8133 * tui/tui-source.c (tui_set_source_content)
8134 (tui_set_source_content_nil, tui_source_is_displayed)
8135 (tui_source_window::do_scroll_vertical): Update.
8136 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8137 (tui_display_registers_from, tui_display_reg_element_at_line)
8138 (tui_check_register_values, tui_reg_command): Update.
8139 * tui/tui-layout.c (tui_default_win_height)
8140 (show_source_disasm_command, show_data, init_and_make_win)
8141 (show_source_or_disasm_and_command): Update.
8142 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8143 (tui_redisplay_readline, tui_mld_flush)
8144 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8145 (tui_getc): Update.
8146 * tui/tui-disasm.c (tui_set_disassem_content)
8147 (tui_disasm_window::do_scroll_vertical): Update.
8148 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8149 Now virtual.
8150 (struct tui_win_info): Derive from tui_gen_win_info.
8151 <~tui_win_info>: Mark as override.
8152 <generic>: Remove member.
8153 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8154 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8155 (~tui_data_window, ~tui_win_info)
8156 (tui_free_all_source_wins_content): Update.
8157 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8158
8159 2019-06-25 Tom Tromey <tom@tromey.com>
8160
8161 * tui/tui-layout.c (init_and_make_win): Use new.
8162 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8163 destructor, initializers.
8164 (tui_alloc_generic_win_info): Don't declare.
8165 * tui/tui-data.c (_locator): Add argument to constructor.
8166 (source_win, disasm_win): New globals.
8167 (exec_info): Remove.
8168 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8169 Update.
8170 (tui_alloc_generic_win_info): Remove.
8171 (init_content_element): Use new.
8172 (tui_win_info::tui_win_info): Update.
8173 (free_content_elements) <case DATA_WIN>: Use delete.
8174
8175 2019-06-25 Tom Tromey <tom@tromey.com>
8176
8177 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8178 * tui/tui-windata.c (tui_first_data_item_displayed)
8179 (tui_delete_data_content_windows): Update.
8180 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8181 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8182 (tui_display_registers_from, tui_check_register_values): Update.
8183 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8184 pointer.
8185 * tui/tui-data.c (init_content_element): Update. Allocate the new
8186 window.
8187 (tui_free_data_content): Update.
8188 (free_content_elements) <case DATA_WIN>: Free the window.
8189
8190 2019-06-25 Tom Tromey <tom@tromey.com>
8191
8192 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8193 Update.
8194 * tui/tui-layout.c (make_command_window)
8195 (show_source_disasm_command, show_data, init_and_make_win)
8196 (show_source_or_disasm_and_command): Update.
8197 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8198 method.
8199 <can_highight, is_highlighted>: Now bool.
8200 (tui_set_win_highlight): Don't declare.
8201 * tui/tui-data.c (tui_set_win_highlight): Remove.
8202
8203 2019-06-25 Tom Tromey <tom@tromey.com>
8204
8205 * tui/tui-wingeneral.c (make_visible): Remove check of window
8206 type.
8207
8208 2019-06-25 Tom Tromey <tom@tromey.com>
8209
8210 * tui/tui-win.c (tui_win_info::max_height)
8211 (tui_cmd_window::max_height): New methods.
8212 (new_height_ok): Call max_height.
8213 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8214 <max_height>: New method.
8215
8216 2019-06-25 Tom Tromey <tom@tromey.com>
8217
8218 * tui/tui-win.c (tui_source_window_base::set_new_height)
8219 (tui_data_window::set_new_height): New methods.
8220 (make_invisible_and_set_new_height): Call set_new_height method.
8221 * tui/tui-data.h (struct tui_win_info)
8222 (struct tui_source_window_base, struct tui_data_window)
8223 <set_new_height>: New method.
8224
8225 2019-06-25 Tom Tromey <tom@tromey.com>
8226
8227 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8228 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8229 tui_refresh_data_win.
8230 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8231 method.
8232 (tui_refresh_all_win): Call the refresh_all method.
8233 (tui_set_focus): Likewise.
8234 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8235 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8236 Likewise.
8237
8238 2019-06-25 Tom Tromey <tom@tromey.com>
8239
8240 * tui/tui-winsource.h (tui_refill_source_window)
8241 (tui_set_is_exec_point_at): Don't declare.
8242 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8243 (tui_source_window_base::refill): Rename from
8244 tui_refill_source_window.
8245 (tui_source_window_base::do_scroll_horizontal): Update.
8246 (tui_source_window_base::set_is_exec_point_at): Rename from
8247 tui_set_is_exec_point_at.
8248 (tui_update_all_breakpoint_info): Update.
8249 * tui/tui-stack.c (tui_show_frame_info): Update.
8250 * tui/tui-layout.c (show_data): Add cast.
8251 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8252 * tui/tui-data.h (struct tui_source_window_base) <refill,
8253 set_is_exec_point_at>: New methods.
8254 (tui_source_windows, tui_add_to_source_windows): Update types.
8255 (tui_add_to_source_windows): Remove redundant declaration.
8256 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8257 (tui_source_windows): Change return type.
8258 (tui_clear_source_windows_detail): Update.
8259 (tui_add_to_source_windows): Change type of parameter.
8260 (tui_free_all_source_wins_content): Update.
8261
8262 2019-06-25 Tom Tromey <tom@tromey.com>
8263
8264 * tui/tui-wingeneral.c (tui_win_info::refresh)
8265 (tui_source_window_base::refresh): New methods.
8266 (tui_refresh_all): Call the refresh method.
8267 * tui/tui-data.h (struct tui_win_info)
8268 (struct tui_source_window_base) <refresh>: New method.
8269
8270 2019-06-25 Tom Tromey <tom@tromey.com>
8271
8272 * tui/tui.h (tui_is_window_visible): Return bool.
8273 * tui/tui.c (tui_is_window_visible): Return bool.
8274 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8275 (tui_make_visible, tui_make_invisible)
8276 (tui_win_info::make_visible)
8277 (tui_source_window_base::make_visible, make_all_visible)
8278 (tui_make_all_visible, tui_make_all_invisible): Update.
8279 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8280 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8281 bool.
8282 (struct tui_win_info, struct tui_source_window_base)
8283 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8284 * tui/tui-data.c (tui_init_generic_part): Update.
8285
8286 2019-06-25 Tom Tromey <tom@tromey.com>
8287
8288 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8289 (tui_source_window_base::make_visible): New methods.
8290 (make_all_visible): Make method call.
8291 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8292 (struct tui_source_window_base, struct tui_cmd_window): Override
8293 make_visible.
8294 (tui_win_is_source_type): Don't declare.
8295 * tui/tui-data.c (tui_win_is_source_type): Remove.
8296
8297 2019-06-25 Tom Tromey <tom@tromey.com>
8298
8299 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8300 NULL check.
8301
8302 2019-06-25 Tom Tromey <tom@tromey.com>
8303
8304 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8305 Inline constructor. Add initializers for members.
8306 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8307 constructors; now inline in class.
8308
8309 2019-06-25 Tom Tromey <tom@tromey.com>
8310
8311 * tui/tui-regs.c (tui_show_registers): Update.
8312 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8313 bool.
8314 * tui/tui-data.c (tui_data_window::clear_detail)
8315 (tui_data_window): Update.
8316
8317 2019-06-25 Tom Tromey <tom@tromey.com>
8318
8319 * tui/tui-windata.c (tui_display_all_data)
8320 (tui_display_data_from_line, tui_display_data_from)
8321 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8322 Update.
8323 * tui/tui-regs.c (tui_last_regs_line_no)
8324 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8325 (tui_show_registers, tui_show_register_group)
8326 (tui_display_registers_from, tui_display_reg_element_at_line)
8327 (tui_display_registers_from_line, tui_check_register_values)
8328 (tui_reg_next, tui_reg_prev): Update.
8329 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8330 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8331 tui_data_window.
8332 (struct tui_win_info) <detail>: Remove. Add new fields from
8333 tui_data_info.
8334 (TUI_DATA_WIN): Add cast.
8335 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8336 (~tui_data_window): Simplify.
8337
8338 2019-06-25 Tom Tromey <tom@tromey.com>
8339
8340 * tui/tui-layout.c (show_source_disasm_command)
8341 (show_source_or_disasm_and_command): Update.
8342 * tui/tui-io.c (update_cmdwin_start_line)
8343 (tui_redisplay_readline): Update.
8344 * tui/tui-data.h (struct tui_command_info): Remove.
8345 (struct tui_win_info) <detail>: Remove command_info member.
8346 (struct tui_data_window) <start_line>: New member, from
8347 tui_command_info.
8348 (TUI_CMD_WIN): Add casts.
8349
8350 2019-06-25 Tom Tromey <tom@tromey.com>
8351
8352 * tui/tui-winsource.c (tui_update_source_window)
8353 (tui_refill_source_window)
8354 (tui_source_window_base::do_scroll_horizontal)
8355 (tui_update_breakpoint_info, tui_set_exec_info_content)
8356 (tui_show_exec_info_content, tui_erase_exec_info_content)
8357 (tui_clear_exec_info_content): Update.
8358 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8359 Update.
8360 * tui/tui-win.c (make_invisible_and_set_new_height)
8361 (make_visible_with_new_height): Update.
8362 * tui/tui-source.c (tui_set_source_content)
8363 (tui_show_symtab_source): Update.
8364 * tui/tui-layout.c (extract_display_start_addr)
8365 (show_source_disasm_command, show_data)
8366 (make_source_or_disasm_window)
8367 (show_source_or_disasm_and_command): Update.
8368 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8369 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8370 "gdbarch".
8371 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8372 to tui_source_window_base.
8373 (struct tui_win_info) <detail>: Remove source_info member.
8374 (struct tui_source_window_base) <has_locator>: Inline.
8375 Move contents from tui_source_info; rename has_locator member to
8376 m_has_locator.
8377 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8378 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8379 header file.
8380 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8381 Simplify.
8382 (tui_free_all_source_wins_content): Cast to
8383 tui_source_window_base.
8384
8385 2019-06-25 Tom Tromey <tom@tromey.com>
8386
8387 * tui/tui-win.c (make_invisible_and_set_new_height)
8388 (make_visible_with_new_height): Call has_locator method.
8389 * tui/tui-layout.c (show_source_disasm_command, show_data)
8390 (show_source_or_disasm_and_command): Update for bool change.
8391 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8392 (tui_win_info) <has_locator>: New method.
8393 (struct tui_source_window_base) <has_locator>: New method.
8394 (tui_win_has_locator): Don't declare.
8395 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8396 from tui_win_has_locator.
8397 (tui_source_window_base): Use false, not FALSE.
8398
8399 2019-06-25 Tom Tromey <tom@tromey.com>
8400
8401 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8402 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8403 clear_detail method directly.
8404 (tui_clear_win_detail): Remove.
8405
8406 2019-06-25 Tom Tromey <tom@tromey.com>
8407
8408 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8409 "this", not TUI_DISASM_WIN.
8410
8411 2019-06-25 Tom Tromey <tom@tromey.com>
8412
8413 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8414 declare.
8415 * tui/tui-winsource.c
8416 (tui_source_window_base::do_scroll_horizontal): Rename from
8417 tui_horizontal_source_scroll.
8418 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8419 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8420 from tui_vertical_data_scroll.
8421 * tui/tui-win.h (tui_scroll): Don't declare.
8422 * tui/tui-win.c (tui_win_info::forward_scroll)
8423 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8424 (tui_win_info::right_scroll): Rename and update.
8425 (tui_scroll_forward_command, tui_scroll_backward_command)
8426 (tui_scroll_left_command, tui_scroll_right_command): Update.
8427 (tui_scroll): Remove.
8428 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8429 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8430 from tui_vertical_source_scroll.
8431 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8432 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8433 from tui_vertical_disassem_scroll.
8434 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8435 do_scroll_horizontal>: New methods.
8436 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8437 Likewise.
8438 (struct tui_source_window_base): Add do_scroll_horizontal.
8439 (struct tui_source_window, struct tui_disasm_window): Add
8440 do_scroll_vertical.
8441 (struct tui_data_window, struct tui_cmd_window): Add
8442 do_scroll_horizontal and do_scroll_vertical.
8443 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8444
8445 2019-06-25 Tom Tromey <tom@tromey.com>
8446
8447 * tui/tui-data.h (struct tui_source_window_base): New struct.
8448 (struct tui_source_window): Derive from tui_source_window_base.
8449 (struct tui_disasm_window): New struct.
8450 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8451 from tui_source_window::clear_detail.
8452 (tui_source_window_base): Rename from tui_source_window.
8453 (~tui_source_window_base): Rename from ~tui_source_window.
8454 (tui_alloc_win_info): Create a tui_disasm_window.
8455
8456 2019-06-25 Tom Tromey <tom@tromey.com>
8457
8458 * tui/tui-data.h (struct tui_source_window)
8459 (struct tui_data_window): Declare destructors.
8460 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8461 destructors.
8462 (tui_win_info): Simplify.
8463
8464 2019-06-25 Tom Tromey <tom@tromey.com>
8465
8466 * tui/tui-winsource.c (tui_display_main)
8467 (tui_update_source_windows_with_addr)
8468 (tui_update_all_breakpoint_info): Update.
8469 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8470 (new_height_ok, parse_scrolling_args): Update.
8471 * tui/tui-stack.c (tui_show_frame_info): Update.
8472 * tui/tui-data.h (struct tui_list): Remove.
8473 (tui_source_windows): Return a reference to a std::vector.
8474 * tui/tui-data.c (source_windows): Now a std::vector.
8475 (tui_source_windows): Change return type.
8476 (tui_clear_source_windows): Rewrite.
8477 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8478 (tui_free_all_source_wins_content): Rewrite.
8479
8480 2019-06-25 Tom Tromey <tom@tromey.com>
8481
8482 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8483 (struct tui_data_window, struct tui_cmd_window): Declare
8484 clear_detail method.
8485 * tui/tui-data.c (tui_source_window::clear_detail)
8486 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8487 methods.
8488 (tui_clear_win_detail): Simplify.
8489
8490 2019-06-25 Tom Tromey <tom@tromey.com>
8491
8492 * tui/tui-layout.c (make_source_window, make_disasm_window)
8493 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8494 Return the new window.
8495 (show_source_disasm_command, show_data)
8496 (show_source_or_disasm_and_command): Update.
8497
8498 2019-06-25 Tom Tromey <tom@tromey.com>
8499
8500 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8501 parameter. Return the new window.
8502 (show_source_disasm_command): Update and remove NULL check.
8503 (show_source_or_disasm_and_command): Update.
8504
8505 2019-06-25 Tom Tromey <tom@tromey.com>
8506
8507 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8508
8509 2019-06-25 Tom Tromey <tom@tromey.com>
8510
8511 * tui/tui-data.h (struct tui_win_info): Make constructor
8512 protected. Make destructor virtual. Add initializers.
8513 (tui_source_window, tui_data_window, tui_cmd_window): New
8514 classes.
8515 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8516 constructor. Add "type" parameter.
8517 (tui_source_window, tui_data_window, tui_cmd_window): New
8518 constructors.
8519 (tui_alloc_win_info): Instantiate the appropriate subclass.
8520
8521 2019-06-25 Tom Tromey <tom@tromey.com>
8522
8523 * tui/tui-win.c (tui_resize_all): Use delete.
8524 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8525 destructor.
8526 (tui_free_window): Don't declare.
8527 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8528 Update.
8529
8530 2019-06-25 Tom Tromey <tom@tromey.com>
8531
8532 * tui/tui-data.h (struct tui_win_info): Add constructor.
8533 * tui/tui-data.c (tui_alloc_win_info): Use new.
8534 (tui_free_window): Use delete.
8535
8536 2019-06-22 Tom Tromey <tom@tromey.com>
8537
8538 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8539 declare.
8540 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8541
8542 2019-06-22 Tom Tromey <tom@tromey.com>
8543
8544 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8545 declare.
8546 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8547
8548 2019-06-22 Tom de Vries <tdevries@suse.de>
8549
8550 * dwarf2read.c (create_addrmap_from_aranges)
8551 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8552 instead of '%zu'.
8553
8554 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8555
8556 * dwarf2read.h (dwarf2_section_info_def): Remove.
8557 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8558 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8559 std::vector<dwarf2_section_info>.
8560 (struct dwo_file) <~dwo_file>: Remove.
8561 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8562 types field.
8563 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8564 (dwarf2_read_debug_names): Likewise.
8565 (create_debug_types_hash_table): Change parameter type to
8566 array_view, adjust code accordingly.
8567 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8568 (partial_die_info::fixup): Likewise.
8569 (determine_prefix): Likewise.
8570 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8571
8572 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8573
8574 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8575 gdb_bfd_ref_ptr.
8576 <~dwo_file>: Remove call to gdb_bfd_unref.
8577 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8578 gdb_bfd_ref_ptr::get.
8579
8580 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8581
8582 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8583 type to htab_up.
8584 * dwarf2read.c (struct dwo_file): Initialize fields.
8585 <~dwo_file>: New.
8586 (free_dwo_file): Remove, move content to ~dwo_file.
8587 (struct dwo_file_deleter): Remove.
8588 (dwo_file_up>: Remove custom deleter.
8589 (free_dwo_files): Remove.
8590 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8591 dwo_files.
8592 (process_skeletonless_type_units): Call unique_ptr::get.
8593 (allocate_dwo_file_hash_table): Add deleter to created hash
8594 table. Change return type to htab_up.
8595 (lookup_dwo_file_slot): Don't memset dwo_file, call
8596 unique_ptr::get.
8597 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8598 (create_dwo_unit_in_dwp_v2): Likewise.
8599 (open_and_init_dwo_file): Likewise.
8600 (free_dwo_file_from_slot): Remove.
8601
8602 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8603
8604 * dwarf2read.h (struct dwarf2_section_info) <readin,
8605 is_virtual>: Change type to bool.
8606 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8607 true instead of 1.
8608
8609 2019-06-19 Tom Tromey <tom@tromey.com>
8610
8611 * tui/tui-data.h (tui_init_content_element): Don't declare.
8612
8613 2019-06-19 Tom Tromey <tom@tromey.com>
8614
8615 * tui/tui-data.h (tui_init_win_info): Don't declare.
8616
8617 2019-06-19 Tom de Vries <tdevries@suse.de>
8618
8619 * dwarf2read.h (abstract_to_concrete): Change type to
8620 std::unordered_map<sect_offset, std::vector<sect_offset>,
8621 gdb::hash_enum<sect_offset>>.
8622
8623 2019-06-19 Tom Tromey <tromey@adacore.com>
8624
8625 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8626 EVAL_AVOID_SIDE_EFFECTS specially.
8627
8628 2019-06-19 Tom Tromey <tromey@adacore.com>
8629
8630 * source-cache.c (highlighter): New global.
8631 (source_cache::get_source_lines): Create a highlighter on demand.
8632
8633 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8634
8635 * defs.h (deprecated_interactive_hook): Delete declaration.
8636 * interps.c (clear_interpreter_hooks): Remove use of
8637 deprecated_interactive_hook.
8638 * top.c (deprecated_interactive_hook): Delete definition.
8639 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8640
8641 2019-06-18 Tom de Vries <tdevries@suse.de>
8642
8643 PR gdb/24515
8644 * dwarf2read.h (abstract_to_concrete): Change type from
8645 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8646 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8647 * dwarf2read.c (read_variable): Update.
8648 (dwarf2_fetch_die_loc_sect_off): Update.
8649
8650 2019-06-17 Tom de Vries <tdevries@suse.de>
8651
8652 PR gdb/24617
8653 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8654 accessing parent[parent_len - 1].
8655
8656 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8657
8658 PR gdb/24364
8659 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8660 call dtrace_process_dof with NULL dof.
8661
8662 2019-06-16 Tom de Vries <tdevries@suse.de>
8663
8664 PR gdb/24445
8665 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8666
8667 2019-06-16 Tom Tromey <tom@tromey.com>
8668
8669 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8670 (make_all_visible): Use address of member.
8671
8672 2019-06-16 Tom Tromey <tom@tromey.com>
8673
8674 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8675 (tui_free_window, free_content, free_content_elements): Remove
8676 unnecessary cast.
8677 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8678 cast.
8679 * tui/tui-regs.c (tui_show_register_group)
8680 (tui_display_registers_from, tui_display_reg_element_at_line):
8681 Remove unnecessary cast.
8682
8683 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8684
8685 * linux-nat.c (normal_mask): Delete.
8686 (_initialize_linux_nat): Don't initialise normal_mask.
8687
8688 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8689
8690 PR gdb/24445
8691 * dwarf-index-write.h (write_psymtabs_to_index): Add
8692 dwz_basename parameter.
8693 * dwarf-index-write.c (write_gdbindex): Move file writing to
8694 write_gdbindex_1. Change return type void.
8695 (assert_file_size): Move up, remove filename parameter.
8696 (write_gdbindex_1): New function.
8697 (write_debug_names): Change return type to void, call
8698 assert_file_size.
8699 (struct index_wip_file): New struct.
8700 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8701 file logic to index_wip_file. Write index for dwz file if
8702 needed.
8703 (save_gdb_index_command): Pass basename of dwz file, if present.
8704 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8705 build-id of dwz file, if present.
8706 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8707 (dwarf2_get_dwz_file): Likewise.
8708 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8709 (dwarf2_get_dwz_file): Likewise.
8710
8711 2019-06-16 Tom Tromey <tom@tromey.com>
8712
8713 * coffread.c (process_coff_symbol): Use xstrdup.
8714 * value.c (create_internalvar): Use xstrdup.
8715
8716 2019-06-16 Tom Tromey <tom@tromey.com>
8717
8718 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8719 * breakpoint.c (stopin_command, stopat_command)
8720 (until_break_command, decode_location_default): Remove unnecessary
8721 cast.
8722 * utils.c (subset_compare): Remove unnecessary cast.
8723 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8724 cast.
8725 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8726 cast.
8727 * infcmd.c (path_command): Remove unnecessary cast.
8728 * coffread.c (decode_type): Remove unnecessary cast.
8729 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8730 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8731 * tui/tui-stack.c (tui_show_locator_content)
8732 (tui_show_frame_info): Remove unnecessary cast.
8733 * tui/tui-win.c (tui_scroll_forward_command)
8734 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8735 (parse_scrolling_args): Remove unnecessary cast.
8736 * tui/tui-data.c (init_win_info, tui_del_window)
8737 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8738 (free_content_elements): Remove unnecessary cast.
8739 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8740 unnecessary cast.
8741 * tui/tui-source.c (tui_set_source_content)
8742 (tui_vertical_source_scroll): Remove unnecessary cast.
8743 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8744 cast.
8745 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8746 * tui/tui-regs.c (tui_display_registers_from)
8747 (tui_display_register): Remove unnecessary cast.
8748 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8749 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8750 (make_visible): Remove unnecessary cast.
8751 * tui/tui-winsource.c (tui_erase_source_content)
8752 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8753 unnecessary cast.
8754 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8755 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8756 * stabsread.c (read_type, read_array_type, read_range_type):
8757 Remove unnecessary cast.
8758 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8759 (parse_symbol, parse_type, upgrade_type, parse_external)
8760 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8761 unnecessary cast.
8762 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8763
8764 2019-06-16 Tom Tromey <tom@tromey.com>
8765
8766 * tui/tui-data.c (tui_alloc_generic_win_info)
8767 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8768 checks.
8769
8770 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8771 Andrew Burgess <andrew.burgess@embecosm.com>
8772
8773 * f-typeprint.c (f_print_type): Don't return early for not
8774 associated or not allocated types.
8775 (f_type_print_varspec_suffix): Add print_rank parameter and print
8776 ranks of array types in case they dangling.
8777 (f_type_print_base): Add print_rank parameter.
8778
8779 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8780
8781 * NEWS: Mention new MI commands.
8782 * break-catch-throw.c (enum exception_event_kind): Move to
8783 breakpoint.h.
8784 (print_mention_exception_catchpoint): Output text as a single
8785 message.
8786 (catch_exception_command_1): Rename to...
8787 (catch_exception_event): ...this, make non-static, update header
8788 command, and change some parameter types.
8789 (catch_catch_command): Update for changes to
8790 catch_exception_command_1.
8791 (catch_throw_command): Likewise.
8792 (catch_rethrow_command): Likewise.
8793 * breakpoint.c (enum exception_event_kind): Delete.
8794 * breakpoint.h (enum exception_event_kind): Moved here from
8795 break-catch-throw.c.
8796 (catch_exception_event): Declare.
8797 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8798 (mi_cmd_catch_throw): New function.
8799 (mi_cmd_catch_rethrow): New function.
8800 (mi_cmd_catch_catch): New function.
8801 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8802 'catch-catch' entries.
8803 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8804 (mi_cmd_catch_rethrow): Declare.
8805 (mi_cmd_catch_catch): Declare.
8806
8807 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8808
8809 * annotate.c (annotate_source_line): Change return type to void,
8810 update implementation to match.
8811 * annotate.h (annotate_source_line): Change return type to void,
8812 update header comment.
8813 * stack.c (print_frame_info): Don't change what frame information
8814 is printed based on whether annotations are on or not.
8815
8816 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8817
8818 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8819 (annotate_source): Make static.
8820 (annotate_source_line): Moved from source.c and renamed from
8821 identify_source_line. Update the return type.
8822 * annotate.h (annotate_source): Delete declaration.
8823 (annotate_source_line): Declaration moved from source.h, and
8824 renamed from identify_source_line. Return type updated.
8825 * source.c (identify_source_line): Moved to annotate.c and renamed
8826 to annotate_source_line.
8827 (info_line_command): Remove check of annotation_level.
8828 * source.h (identify_source_line): Move declaration to annotate.h
8829 and rename to annotate_source_line.
8830 * stack.c: Add 'annotate.h' include.
8831 (print_frame_info): Remove check of annotation_level before
8832 calling annotate_source_line.
8833
8834 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8835
8836 * source-cache.c (source_cache::get_plain_source_lines): Use
8837 open_source_file_with_line_charpos instead of just
8838 open_source_file, remove call to find_source_lines.
8839 (source_cache::get_source_lines): Likewise.
8840 * source.c (find_source_lines): Make static.
8841 (get_filename_and_charpos): Renamed into...
8842 (open_source_file_with_line_charpos): ..this along with changes to
8843 return a scoped_fd, and some other minor clean ups.
8844 (identify_source_line): Use open_source_file_with_line_charpos.
8845 (search_command_helper): Use open_source_file_with_line_charpos
8846 instead of just open_source_file, remove call to
8847 find_source_lines.
8848 * source.h (open_source_file_with_line_charpos): Declare new
8849 function.
8850 (find_source_lines): Delete declaration.
8851
8852 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8853
8854 * source.c (get_filename_and_charpos): Remove fullname
8855 parameter.
8856 (identify_source_line): Update call to get_filename_and_charpos.
8857
8858 2019-06-14 Tom Tromey <tromey@adacore.com>
8859
8860 PR gdb/24502:
8861 * ui-style.h (skip_ansi_escape): Update comment.
8862 * ui-file.h (class no_terminal_escape_file): New class.
8863 * ui-file.c (no_terminal_escape_file::write)
8864 (no_terminal_escape_file::puts): New methods.
8865 * cli/cli-logging.c (handle_redirections): Use
8866 no_terminal_escape_file.
8867
8868 2019-06-14 Tom Tromey <tromey@adacore.com>
8869
8870 * NEWS: Move convenience variable news above Python news.
8871
8872 2019-06-14 Tom Tromey <tom@tromey.com>
8873
8874 * gnulib: Move directory to top-level.
8875 * configure.ac: Don't configure gnulib.
8876 * configure: Rebuild.
8877 * common/common-defs.h: Use new path to gnulib.
8878 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8879 (GNULIB_H): Remove.
8880 (INCGNU): Look in new gnulib location.
8881 (HFILES_NO_SRCDIR): Remove gnulib files.
8882 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8883 (generated_files): Remove GNULIB_H.
8884 ($(LIBGNU), all-lib): Remove targets.
8885 (distclean): Don't mention GNULIB_BUILDDIR.
8886 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8887
8888 2019-06-14 Tom Tromey <tromey@adacore.com>
8889
8890 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8891 Warn if symbol file does not provide any symbols.
8892
8893 2019-06-14 Tom Tromey <tromey@adacore.com>
8894
8895 * source.c (find_and_open_source): Respect basenames_may_differ.
8896
8897 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8898
8899 * annotate.c (annotate_breakpoints_invalid): Make use of
8900 scoped_restore_terminal_state.
8901 (annotate_frames_invalid): Likewise.
8902
8903 2019-06-14 Tom Tromey <tromey@adacore.com>
8904
8905 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8906 allow assignment to an internalvar.
8907
8908 2019-06-14 Tom Tromey <tromey@adacore.com>
8909
8910 * ada-lex.l: Allow "_" in attribute names.
8911
8912 2019-06-14 Tom Tromey <tromey@adacore.com>
8913
8914 PR gdb/24653:
8915 * regcache.c (registers_changed): Don't call alloca.
8916 * top.c (execute_command): Don't call alloca.
8917
8918 2019-06-13 Pedro Alves <palves@redhat.com>
8919
8920 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8921 'expression'. When parsing an expression, error out if there's
8922 junk after "unlimited".
8923 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8924 (do_set_command): Adjust calls to is_unlimited_literal.
8925
8926 2019-06-13 Pedro Alves <palves@redhat.com>
8927
8928 * compile/compile.c (make_compile_options_def_group): Add braces
8929 around array_view initializer.
8930 * thread.c (make_thread_apply_all_options_def_group)
8931 (make_thread_apply_all_options_def_group): Likewise.
8932
8933 2019-06-13 Pedro Alves <palves@redhat.com>
8934
8935 * NEWS (New commands): Mention "maint test-options
8936 require-delimiter", "maint test-options unknown-is-error", "maint
8937 test-options unknown-is-operand" and "maint show
8938 test-options-completion-result".
8939 (New command options, command completion): New section.
8940 (Completion improvements): New section.
8941 Mention that you can abbreviate "unlimited".
8942
8943 2019-06-13 Pedro Alves <palves@redhat.com>
8944
8945 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8946 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8947 * unittests/cli-utils-selftests.c (test_parse_flags)
8948 (test_parse_flags_qcs): Delete.
8949 (test_cli_utils): Don't call deleted functions.
8950
8951 2019-06-13 Pedro Alves <palves@redhat.com>
8952
8953 * thread.c: Include "cli/cli-option.h".
8954 (tp_array_compar_ascending): Global.
8955 (tp_array_compar): Delete function.
8956 (tp_array_compar_ascending, tp_array_compar_descending): New
8957 functions.
8958 (ascending_option_def, qcs_flag_option_def)
8959 (thr_qcs_flags_option_defs)
8960 (make_thread_apply_all_options_def_group)
8961 (make_thread_apply_options_def_group): New.
8962 (thread_apply_all_command): Use gdb::option::process_options.
8963 (thread_apply_command_completer)
8964 (thread_apply_all_command_completer): New.
8965 (thread_apply_command): Use gdb::option::process_options.
8966 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8967 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8968 to generate help text of "thread apply". Adjust "taas"'s help.
8969 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8970 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8971
8972 2019-06-13 Pedro Alves <palves@redhat.com>
8973
8974 * thread.c (thread_apply_command): Check for invalid TID with
8975 isdigit instead of !isalpha.
8976
8977 2019-06-13 Pedro Alves <palves@redhat.com>
8978
8979 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8980 (validate_flags_qcs): New.
8981 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8982 (validate_flags_qcs): Declare.
8983 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8984 (make_frame_apply_options_def_group): New.
8985 (frame_apply_command_count): Process options with
8986 gdb::option::process_options.
8987 (frame_apply_completer): New.
8988 (frame_apply_level_completer, frame_apply_all_completer)
8989 (frame_apply_completer): New.
8990 (_initialize_stack): Update help of "frame apply", "frame apply
8991 level", "frame apply all" and "faas" to mention supported options
8992 and install command completers.
8993 * stack.h (frame_apply_all_completer): Declare.
8994 * thread.c: Include "stack.h".
8995 (tfaas_command): Add "--".
8996 (_initialize_thread): Update help "tfaas" to mention supported
8997 options and install command completer.
8998
8999 2019-06-13 Pedro Alves <palves@redhat.com>
9000
9001 * completer.c (complete_nested_command_line): New.
9002 (gdb_completion_word_break_characters_throw): Add assertion.
9003 * completer.h (complete_nested_command_line): Declare.
9004
9005 2019-06-13 Pedro Alves <palves@redhat.com>
9006
9007 * stack.c (parse_backtrace_qualifiers): New.
9008 (backtrace_command): Use it.
9009 (backtrace_command_completer): Complete on qualifiers.
9010
9011 2019-06-13 Pedro Alves <palves@redhat.com>
9012
9013 * frame.c: Include "cli/cli-option.h.
9014 (user_set_backtrace_options): New.
9015 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9016 Delete.
9017 (get_prev_frame): Adjust.
9018 (boolean_option_def, uinteger_option_def)
9019 (set_backtrace_option_defs): New.
9020 (_initialize_frame): Adjust and use
9021 gdb::option::add_setshow_cmds_for_options to install "set
9022 backtrace past-main" and "set backtrace past-entry".
9023 * frame.h: Include "cli/cli-option.h".
9024 (struct frame_print_options): Forward declare.
9025 (print_frame_arguments_all, print_frame_arguments_scalars)
9026 (print_frame_arguments_none): Declare.
9027 (print_entry_values): Delete declaration.
9028 (struct frame_print_options, user_frame_print_options): New.
9029 (struct set_backtrace_options): New.
9030 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9031 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9032 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9033 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9034 (list_args_or_locals): Add frame_print_options parameter.
9035 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9036 * python/py-framefilter.c (enumerate_args): Pass down
9037 USER_FRAME_PRINT_OPTIONS.
9038 * stack.c: Include "cli/cli-option.h".
9039 (print_frame_arguments_all, print_frame_arguments_scalars)
9040 (print_frame_arguments_none): Declare.
9041 (print_raw_frame_arguments, print_entry_values): Delete.
9042 (user_frame_print_options): New.
9043 (boolean_option_def, enum_option_def, frame_print_option_defs):
9044 New.
9045 (struct backtrace_cmd_options): New.
9046 (bt_flag_option_def): New.
9047 (backtrace_command_option_defs): New.
9048 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9049 (print_frame_arg, read_frame_arg, print_frame_args)
9050 (print_frame_info, print_frame): Add frame_print_options parameter
9051 and use it.
9052 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9053 (backtrace_command_1): Add frame_print_options and
9054 backtrace_cmd_options parameters and use them.
9055 (make_backtrace_options_def_group): New.
9056 (backtrace_command): Process command options with
9057 gdb::option::process_options.
9058 (backtrace_command_completer): New.
9059 (_initialize_stack): Extend "backtrace"'s help to mention
9060 supported options. Install completer for "backtrace".
9061 Install some settings commands with add_setshow_cmds_for_options.
9062
9063 2019-06-13 Pedro Alves <palves@redhat.com>
9064
9065 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9066 and that "set/show print raw frame-arguments" are now deprecated.
9067
9068 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9069 command.
9070 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9071 * stack.c (_initialize_stack): Install "set/show print
9072 raw-frame-arguments", and deprecate "set/show print raw
9073 frame-arguments".
9074 * valprint.c (_initialize_valprint): Deprecate "set/show print
9075 raw".
9076
9077 2019-06-13 Pedro Alves <palves@redhat.com>
9078
9079 * compile/compile.c (struct compile_options): New.
9080 (compile_flag_option_def, compile_command_option_defs)
9081 (make_compile_options_def_group): New.
9082 (compile_file_command): Handle options with
9083 gdb::option::process_options.
9084 (compile_file_command_completer): New function.
9085 (compile_code_command): Handle options with
9086 gdb::option::process_options.
9087 (compile_code_command_completer): New function.
9088 (_initialize_compiler): Install completers for "compile code" and
9089 "compile file". Mention available options in "compile code" and
9090 "compile code"'s help.
9091 * completer.c (advance_to_completion_word): New, factored out from
9092 ...
9093 (advance_to_expression_complete_word_point): ... this.
9094 (advance_to_filename_complete_word_point): New.
9095 * completer.h (advance_to_filename_complete_word_point): New
9096 declaration.
9097
9098 2019-06-13 Pedro Alves <palves@redhat.com>
9099
9100 * compile/compile.c: Include "cli/cli-option.h".
9101 (compile_print_value): Scope data pointer is now a
9102 value_print_options pointer; adjust.
9103 (compile_print_command): Process options. Scope data pointer is
9104 now a value_print_options pointer; adjust.
9105 (_initialize_compile): Update "compile print"'s help to include
9106 supported options. Install a completer for "compile print".
9107 * cp-valprint.c (show_vtblprint, show_objectprint)
9108 (show_static_field_print): Delete.
9109 (_initialize_cp_valprint): Don't install "set print
9110 static-members", "set print vtbl", "set print object" here.
9111 * printcmd.c: Include "cli/cli-option.h" and
9112 "common/gdb_optional.h".
9113 (print_command_parse_format): Rework to fill in a
9114 value_print_options instead of a format_data.
9115 (print_value): Change parameter type from format_data pointer to
9116 value_print_options reference. Adjust.
9117 (print_command_1): Process options. Adjust to pass down a
9118 value_print_options.
9119 (print_command_completer): New.
9120 (_initialize_printcmd): Install print_command_completer as
9121 handle_brkchars completer for the "print" command. Update
9122 "print"'s help to include supported options.
9123 * valprint.c: Include "cli/cli-option.h".
9124 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9125 here from cp-valprint.c.
9126 (boolean_option_def, uinteger_option_def)
9127 (value_print_option_defs, make_value_print_options_def_group):
9128 New. Use gdb::option::add_setshow_cmds_for_options to install
9129 "set print elements", "set print null-stop", "set print repeats",
9130 "set print pretty", "set print union", "set print array", "set
9131 print address", "set print symbol", "set print array-indexes".
9132 * valprint.h: Include <string> and "cli/cli-option.h".
9133 (make_value_print_options_def_group): Declare.
9134 (print_value): Change parameter type from format_data pointer to
9135 value_print_options reference.
9136 (print_command_completer): Declare.
9137
9138 2019-06-13 Pedro Alves <palves@redhat.com>
9139
9140 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9141 (COMMON_SFILES): Add maint-test-settings.c.
9142 * cli/cli-decode.c (boolean_enums): New global, factored out from
9143 ...
9144 (add_setshow_boolean_cmd): ... here.
9145 * cli/cli-decode.h (boolean_enums): Declare.
9146 * cli/cli-option.c: New file.
9147 * cli/cli-option.h: New file.
9148 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9149 factored out from ...
9150 (parse_cli_boolean_value(const char *)): ... this.
9151 (is_unlimited_literal): Change parameter type to pointer to
9152 pointer. Adjust and advance ARG pointer.
9153 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9154 (parse_cli_var_enum): New, factored out from ...
9155 (do_set_command): ... this. Adjust.
9156 * cli/cli-setshow.h (parse_cli_boolean_value)
9157 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9158 (parse_cli_var_enum): Declare.
9159 * cli/cli-utils.c: Include "cli/cli-option.h".
9160 (get_ulongest): New.
9161 * cli/cli-utils.h (get_ulongest): Declare.
9162 (check_for_argument): New overloads.
9163 * maint-test-options.c: New file.
9164
9165 2019-06-13 Pedro Alves <palves@redhat.com>
9166
9167 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9168 parse a range if "-" is at the end of the string.
9169
9170 2019-06-13 Pedro Alves <palves@redhat.com>
9171
9172 * cli/cli-setshow.c (parse_auto_binary_operation)
9173 (parse_cli_boolean_value): Don't allow "o".
9174
9175 2019-06-13 Pedro Alves <palves@redhat.com>
9176
9177 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9178 * NEWS: Mention maint test-settings KIND.
9179 * maint-test-settings.c: New file.
9180
9181 2019-06-13 Pedro Alves <palves@redhat.com>
9182
9183 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9184 completer.
9185 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9186 "set" completers.
9187
9188 2019-06-13 Pedro Alves <palves@redhat.com>
9189
9190 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9191 after item.
9192
9193 2019-06-13 Pedro Alves <palves@redhat.com>
9194
9195 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9196
9197 2019-06-13 Pedro Alves <palves@redhat.com>
9198
9199 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9200 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9201 call.
9202 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9203 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9204 calls.
9205 (check_for_argument): Skip spaces after argument.
9206
9207 2019-06-13 Pedro Alves <palves@redhat.com>
9208
9209 * thread.c (thread_apply_command): Adjust TID parsing.
9210 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9211 detected before end of string.
9212 (tid_is_in_list): Error out if LIST is invalid.
9213
9214 2019-06-13 Pedro Alves <palves@redhat.com>
9215
9216 * completer.c (complete_line_internal_1): Rewind completion word
9217 point.
9218 (completion_tracker::advance_custom_word_point_by): Change
9219 parameter type to int.
9220 * completer.h (completion_tracker::advance_custom_word_point_by):
9221 Likewise.
9222
9223 2019-06-13 Pedro Alves <palves@redhat.com>
9224
9225 * completer.c (advance_to_completion_word): Handle delimiters.
9226
9227 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9228
9229 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9230
9231 2019-06-11 Tom Tromey <tom@tromey.com>
9232
9233 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9234 (xmalloc_failed): Move to alloc.c.
9235 * alloc.c: New file.
9236 * Makefile.in (COMMON_SFILES): Add alloc.c.
9237
9238 2019-06-11 Tom Tromey <tom@tromey.com>
9239
9240 * nat/linux-waitpid.c: Don't include server.h.
9241 (linux_debug): Remove.
9242 (my_waitpid): Update.
9243
9244 2019-06-11 Tom Tromey <tromey@adacore.com>
9245
9246 * infcall.c (_initialize_infcall): Remove trailing newline from
9247 help.
9248 * user-regs.c (_initialize_user_regs): Remove trailing newline
9249 from help.
9250 * typeprint.c (_initialize_typeprint): Remove trailing newline
9251 from help.
9252 * reverse.c (_initialize_reverse): Remove trailing newlines from
9253 help.
9254 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9255 from help.
9256 * language.c (add_set_language_command): Remove trailing newline
9257 from help.
9258 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9259 help.
9260 * disasm.c (_initialize_disasm): Remove trailing newline from
9261 help.
9262 * top.c (init_main): Remove trailing newline from help.
9263 * interps.c (_initialize_interpreter): Remove trailing newline
9264 from help.
9265 * btrace.c (_initialize_btrace): Remove trailing newlines from
9266 help.
9267 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9268 from help.
9269 * python/python.c (_initialize_python): Remove trailing newline
9270 from help.
9271 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9272 help.
9273 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9274 from help. Reformat some text.
9275 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9276 from help.
9277 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9278 newline from help.
9279
9280 2019-06-11 Tom Tromey <tromey@adacore.com>
9281
9282 * darwin-nat.c (darwin_decode_exception_message)
9283 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9284
9285 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9286
9287 * valops.c (value_slice): Check for not allocated or not
9288 associated values.
9289
9290 2019-06-10 Tom de Vries <tdevries@suse.de>
9291
9292 PR gdb/24618
9293 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9294 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9295 invalid.
9296
9297 2019-06-10 Tom de Vries <tdevries@suse.de>
9298
9299 PR gdb/24611
9300 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9301 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9302
9303 2019-06-10 Tom de Vries <tdevries@suse.de>
9304
9305 PR symtab/24545
9306 * symtab.c (struct demangled_name_entry): Add language field.
9307 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9308 static minimal symbol". Set and use language field.
9309
9310 2019-06-10 Tom Tromey <tromey@adacore.com>
9311
9312 * ada-lang.c (_initialize_ada_language): Update help text.
9313
9314 2019-06-10 Tom Tromey <tromey@adacore.com>
9315
9316 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9317 with a newline.
9318 * guile/guile.c (handle_boot_error): Don't end warning with a
9319 newline.
9320 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9321 warning with a newline.
9322 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9323 newline.
9324 (s12z_frame_cache): Likewise.
9325 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9326 a newline.
9327 * solib-svr4.c (disable_probes_interface): Don't end warning with
9328 a newline.
9329 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9330 newline.
9331 * python/python.c (do_finish_initialization): Don't end warning
9332 with a newline.
9333
9334 2019-06-10 Tom Tromey <tom@tromey.com>
9335
9336 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9337 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9338 gdbpy_enter.
9339
9340 2019-06-10 Tom Tromey <tromey@adacore.com>
9341
9342 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9343 data.
9344 (elf_new_init): Don't call stabsread_new_init.
9345 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9346 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9347 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9348
9349 2019-06-10 Tom de Vries <tdevries@suse.de>
9350
9351 PR symtab/16264
9352 PR symtab/24517
9353 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9354
9355 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9356
9357 * source.c (find_and_open_source): Also rewrite relative file
9358 names.
9359
9360 2019-04-26 Amos Bird <amosbird@gmail.com>
9361
9362 * annotate.c (annotate_thread_exited): Add "thread-exited"
9363 annotation.
9364
9365 2019-06-06 Tom Tromey <tromey@adacore.com>
9366
9367 * maint.h (class scoped_command_stats): Use
9368 DISABLE_COPY_AND_ASSIGN.
9369 <print_time>: New method.
9370 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9371 print_time.
9372 (scoped_command_stats::print_time): New method.
9373
9374 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9375
9376 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9377 instructions of lengths 6 or 8 bytes.
9378
9379 2019-06-04 Pedro Alves <palves@redhat.com>
9380
9381 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9382
9383 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9384 * breakpoint.c (condition_completer): Likewise.
9385 * cli/cli-dump.c (scan_expression): Likewise.
9386 * common/filestuff.c (mkdir_recursive): Likewise.
9387 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9388 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9389 (gdb_abspath): Likewise.
9390 * compile/compile-cplus-types.c
9391 (compile_cplus_instance::decl_name): Likewise.
9392 * completer.c (complete_explicit_location):
9393 (signal_completer, reg_or_group_completer_1): Likewise.
9394 * cp-support.c (cp_remove_params_if_any): Likewise.
9395 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9396 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9397 * infcmd.c (strip_bg_char): Likewise.
9398 * linespec.c (copy_token_string): Likewise.
9399 * mi/mi-main.c (output_cores): Likewise.
9400 * psymtab.c (psymtab_search_name):
9401 * symfile.c (test_set_ext_lang_command): Likewise.
9402 * target.c (target_fileio_read_stralloc): Likewise.
9403 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9404 * value.c (complete_internalvar): Likewise.
9405
9406 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9407
9408 Add objfile property to gdb.Type.
9409 * NEWS: Mention Python API addition.
9410 * python/py-type.c (typy_get_objfile): New method.
9411
9412 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9413
9414 * NEWS: Mention the new set|show style [title|highlight].
9415 Mention changes to "show style", "help" and "apropos".
9416
9417 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9418
9419 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9420 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9421 instead of print_help_for_command.
9422 (print_doc_of_command): New function.
9423 (help_list): Add 'apropos -v word' suggestion.
9424 (print_help_for_command): Style the command name using title style.
9425 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9426 (_initialize_cli_cmds): Describe -v in apropos_command help.
9427
9428 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9429
9430 * cli/cli-style.h (cli_style_option): Add name in constructor,
9431 add m_name class member, add constructor with intensity,
9432 add name class function.
9433 (cli_style_option::add_setshow_commands): Remove name argument.
9434 (highlight_style, title_style): New styles.
9435 * cli/cli-style.c (do_show): New function that shows a style
9436 characteristic styling the style name with itself.
9437 (set_style_name): New function.
9438 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9439 Update all callers according to the changes in cli/cli-style.h.
9440 * utils.h (fputs_highlighted): New function.
9441 * utils.c (fputs_highlighted): Likewise.
9442
9443 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9444
9445 * NEWS: Mention new pipe command and new convenience variables.
9446
9447 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9448
9449 * cli/cli-cmds.c (pipe_command): New function.
9450 (_initialize_cli_cmds): Call add_com for pipe_command.
9451 Define | as an alias for pipe.
9452 (exit_status_set_internal_vars): New function.
9453 (shell_escape): Call exit_status_set_internal_vars.
9454 cli/cli-decode.c (find_command_name_length): Recognize | as
9455 a single character command.
9456
9457 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9458
9459 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9460 top.c (execute_command_to_ui_file): New function, mostly a copy
9461 of execute_command_to_string.
9462 (execute_command_to_string): Implement by calling
9463 execute_command_to_ui_file.
9464
9465 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9466
9467 * top.h (saved_command_line): Remove declaration.
9468 * top.c (previous_saved_command_line, previous_repeat_arguments):
9469 New variables.
9470 (saved_command_line): Make static, define together with other
9471 'repeat variables'.
9472 (dont_repeat): Clear repeat_arguments.
9473 (repeat_previous, get_saved_command_line, save_command_line):
9474 New functions.
9475 (gdb_init): Initialize saved_command_line
9476 and previous_saved_command_line.
9477 * main.c (captured_main_1): Remove saved_command_line initialization.
9478 * event-top.c (handle_line_of_input): Update to use
9479 the new 'repeat' related functions instead of direct access to
9480 saved_command_line.
9481 * command.h (repeat_previous, get_saved_command_line,
9482 save_command_line): New declarations.
9483 (dont_repeat): Add comment.
9484
9485 2019-05-30 Tom Tromey <tromey@adacore.com>
9486
9487 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9488 Fix comment.
9489 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9490
9491 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9492
9493 PR cli/24587
9494 * completer.c (complete): Initialize variable word.
9495
9496 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9497
9498 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9499 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9500 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9501 'body' is NULL to the outter 'if', protecting the '!is_define'
9502 situation as well.
9503
9504 2019-05-29 Tom Tromey <tromey@adacore.com>
9505
9506 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9507 (dwarf_unknown): New function.
9508 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9509 (dwarf_type_encoding_name): Use dwarf_unknown.
9510
9511 2019-05-29 Tom Tromey <tromey@adacore.com>
9512
9513 PR c++/20020:
9514 * cp-valprint.c (cp_print_value_fields): Call
9515 cp_print_static_field inside "try".
9516
9517 2019-05-29 Tom Tromey <tromey@adacore.com>
9518
9519 * inflow.c (struct terminal_info): Add default operator=.
9520 * configure: Rebuild.
9521 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9522 -Wdeprecated-copy-dtor, -Wredundant-move.
9523
9524 2019-05-29 Tom Tromey <tromey@adacore.com>
9525
9526 * NEWS: Add entry.
9527 * infcmd.c (print_return_value_1): Handle finish_print
9528 option.
9529 (show_print_finish): New function.
9530 (_initialize_infcmd): Add "set/show print finish" commands.
9531 * valprint.c (user_print_options): Initialize new member.
9532 * valprint.h (struct value_print_options) <finish_print>: New
9533 member.
9534
9535 2019-05-28 Tom Tromey <tromey@adacore.com>
9536
9537 * ada-lang.c (ada_remove_Xbn_suffix)
9538 (find_old_style_renaming_symbol)
9539 (parse_old_style_renaming): Remove.
9540 (ada_find_renaming_symbol): Don't call
9541 find_old_style_renaming_symbol.
9542 (ada_is_renaming_symbol): Rename from
9543 ada_find_renaming_symbol. Remove "block" parameter. Return
9544 bool. Now static.
9545 (ada_read_var_value): Update and simplify.
9546 * ada-exp.y (write_var_or_type): Remove old code.
9547
9548 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9549
9550 PR gdb/25010
9551 * event-top.c: Remove include comment.
9552 * inflow.c (class scoped_ignore_sigttou): Move from here...
9553 * inflow.h (class scoped_ignore_sigttou): ...to here.
9554 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9555 * top.c: Remove include comment.
9556
9557 2019-05-27 Tom Tromey <tom@tromey.com>
9558
9559 * NEWS: Fix typo.
9560
9561 2019-05-22 Tom Tromey <tromey@adacore.com>
9562
9563 * target.c (target_follow_exec): Constify parameter.
9564 * target-delegates.c: Rebuild.
9565 * remote.c (remote_target::follow_exec): Constify parameter.
9566 * infrun.c (follow_exec): Constify parameter.
9567 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9568 (target_follow_exec): Likewise.
9569
9570 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9571
9572 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9573 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9574
9575 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9576
9577 * NEWS: Add debugredirect and testsuite sections.
9578
9579 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9580
9581 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9582 target descriptions using exclusively floating point register name
9583 aliases.
9584
9585 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9586
9587 PR gdb/18644:
9588 * f-lang.c (build_fortran_types): Handle the case where
9589 gdbarch_floatformat_for_type returns a nullptr.
9590
9591 2019-05-21 Tom de Vries <tdevries@suse.de>
9592
9593 PR cli/24587
9594 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9595
9596 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9597
9598 PR gdb/18644:
9599 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9600 16-byte floats.
9601 * i386-tdep.c (i386_floatformat_for_type): Use
9602 floatformats_ia64_quad for the 16-byte floating point component
9603 within a fortran 32-byte complex number.
9604
9605 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9606
9607 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9608 delete default constructor.
9609 (find_partial_die): Update to return const struct.
9610 (partial_die_parent_scope): Move variable declaration into scope
9611 of its use and change its type to auto.
9612 (guess_partial_die_structure_name): Likewise.
9613 (partial_die_info::fixup): Likewise.
9614
9615 2019-05-17 Tom Tromey <tromey@adacore.com>
9616
9617 * source.c (find_and_open_source): Remove cast.
9618
9619 2019-05-17 Tom Tromey <tromey@adacore.com>
9620
9621 * annotate.c (annotate_source): Make "filename" const.
9622 * annotate.h (annotate_source): Use const.
9623
9624 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9625
9626 * disasm.c (set_disassembler_options): Send errors to stderr.
9627
9628 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9629
9630 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9631 (cli_interp_base::set_logging): Check debug_redirect.
9632 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9633 * cli/cli-logging.c (debug_redirect): Add static variable.
9634 (pop_output_files): Add default param.
9635 (handle_redirections): Print debug setting.
9636 (show_logging_command): Likewise.
9637 (_initialize_cli_logging): Add debugredirect command.
9638 * interps.c (current_interp_set_logging): Add debug_redirect
9639 parameter.
9640 * interps.h (set_logging): Add debug_redirect parameter.
9641 (current_interp_set_logging): Likewise.
9642 * mi/mi-common.h: Likewise.
9643 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9644
9645 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9646 Tom Tromey <tromey@adacore.com>
9647
9648 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9649 directly.
9650 * cli/cli-interp.h (make_logging_output): Remove declaration.
9651 * cli/cli-logging.c (make_logging_output): Remove function.
9652 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9653 directly.
9654 * ui-file.c (tee_file::tee_file): Remove bools.
9655 (tee_file::~tee_file): Remove deletes.
9656 * ui-file.h (tee_file): Remove bools.
9657
9658 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9659
9660 * mi/mi-cmds.h (mi_cmd_complete): New function.
9661 * mi/mi-main.c (mi_cmd_complete): Likewise.
9662 * mi/mi-cmds.c: Define new MI command -complete.
9663 * NEWS: Mention new -complete command.
9664
9665 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9666
9667 * completer.h (complete): New function.
9668 * completer.c (complete): Likewise.
9669 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9670 function defined in completer.h.
9671
9672 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9673
9674 * MAINTAINERS (Write After Approval): Add myself.
9675
9676 2019-05-17 Tom de Vries <tdevries@suse.de>
9677
9678 PR gdb/24094
9679 * dwarf2read.c (struct cu_partial_die_info): New struct.
9680 (find_partial_die): Return cu_partial_die_info.
9681 (partial_die_parent_scope, guess_partial_die_structure_name)
9682 (partial_die_info::fixup): Handle new return type of find_partial_die.
9683
9684 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9685
9686 PR breakpoints/24541
9687 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9688 "std::string", simplifying the algorithm.
9689
9690 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9691
9692 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9693 (stap_static_probe_ops::get_probes): Likewise.
9694
9695 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9696
9697 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9698 '-')" and "else if".
9699 (stap_parse_single_operand): Join checks for
9700 "gdbarch_stap_parse_special_token_p" and
9701 "gdbarch_stap_parse_special_token" in the same "if" statement.
9702 Invert check when verifying for operation on register
9703 displacement.
9704
9705 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9706
9707 * stap-probe.c (stap_get_opcode): Update comment.
9708 (stap_get_expected_argument_type): Likewise.
9709 (handle_stap_probe): Likewise.
9710
9711 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9712
9713 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9714 return type to 'bool'. Adjust comment. Use 'bool' when
9715 appropriate.
9716 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9717 * stap-probe.c (stap_parse_argument_1): Likewise.
9718 (stap_is_operator): Likewise.
9719 (stap_is_generic_prefix): Likewise.
9720 (stap_is_register_prefix): Likewise.
9721 (stap_is_register_indirection_prefix): Likewise.
9722 (stap_is_integer_prefix): Likewise.
9723 (stap_generic_check_suffix): Likewise.
9724 (stap_check_integer_suffix): Likewise.
9725 (stap_check_register_suffix): Likewise.
9726 (stap_check_register_indirection_suffix): Likewise.
9727 (stap_parse_register_operand): Likewise.
9728 (stap_parse_single_operand): Likewise.
9729 (stap_parse_argument_1): Likewise.
9730 (stap_probe::get_argument_count): Likewise.
9731 (stap_is_operator): Likewise.
9732
9733 2019-05-16 Tom Tromey <tromey@adacore.com>
9734
9735 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9736 keyword to foreach.
9737
9738 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9739
9740 * linux-thread-db.c (try_thread_db_load_1): Change return type
9741 to bool.
9742 (try_thread_db_load): Likewise.
9743 (try_thread_db_load_from_pdir_1): Likewise.
9744 (try_thread_db_load_from_pdir): Likewise.
9745 (try_thread_db_load_from_sdir): Likewise.
9746 (try_thread_db_load_from_dir): Likewise.
9747 (thread_db_load_search): Likewise.
9748 (has_libpthread): Likewise.
9749 (thread_db_load): Likewise.
9750
9751 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9752
9753 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9754 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9755 NULL, and complain/return if that's the case.
9756
9757 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9758
9759 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9760 (advance, posn, abstract_read_memory): New functions.
9761 [struct mem_read_abstraction]: New struct.
9762 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9763
9764 2019-05-14 Tom Tromey <tromey@adacore.com>
9765
9766 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9767 value is not lval_memory.
9768
9769 2019-05-14 Tom Tromey <tromey@adacore.com>
9770
9771 * solib.c (info_sharedlibrary_command): Style the file name.
9772
9773 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9774
9775 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9776 (aarch64_vnv_type): Likewise.
9777 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9778 * common/tdesc.c: Likewise.
9779 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9780 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9781 * features/aarch64-fpu.xml: Add ieee half view.
9782 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9783 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9784 * gdbtypes.h (struct builtin_type): Likewise.
9785 (struct objfile_type): Likewise.
9786
9787 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9788
9789 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9790 typo.
9791 * location.h (string_to_event_location): Likewise.
9792
9793 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9794
9795 GDB 8.3 released.
9796
9797 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9798
9799 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9800 New variable declaration.
9801 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9802 New variable.
9803 (print_one_breakpoint): Use ui_out::test_flags and new global
9804 variable to compute use_fixed_output.
9805 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9806 Remove.
9807 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9808 (mi_multi_location_breakpoint_output_fixed): Remove.
9809 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9810 new variable.
9811 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9812 fix_multi_location_breakpoint_output flag if version >= 3.
9813 * ui-out.h (enum ui_out_flag)
9814 <fix_multi_location_breakpoint_output>: New enumerator.
9815
9816 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9817
9818 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9819
9820 2019-05-10 Tom Tromey <tromey@adacore.com>
9821
9822 * ada-lang.c (catch_ada_completer): New function.
9823 (_initialize_ada_language): Use it.
9824
9825 2019-05-10 Tom Tromey <tromey@adacore.com>
9826
9827 * thread.c (print_thread_info): Make "requested_threads" const.
9828 * gdbthread.h (print_thread_info): Make "requested_threads"
9829 const.
9830 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9831 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9832
9833 2019-05-08 Tom Tromey <tom@tromey.com>
9834
9835 * gdbtypes.c (objfile_type_data): Change type.
9836 (objfile_type, _initialize_gdbtypes): Update.
9837
9838 2019-05-08 Tom Tromey <tom@tromey.com>
9839
9840 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9841 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9842 (_initialize_dwarf2_frame): Update.
9843
9844 2019-05-08 Tom Tromey <tom@tromey.com>
9845
9846 * objc-lang.c (objc_objfile_data): Change type.
9847 (find_methods): Update.
9848 (_initialize_objc_lang): Remove.
9849
9850 2019-05-08 Tom Tromey <tom@tromey.com>
9851
9852 * stabsread.c (rs6000_builtin_type_data): Change type.
9853 (rs6000_builtin_type, _initialize_stabsread): Update.
9854
9855 2019-05-08 Tom Tromey <tom@tromey.com>
9856
9857 * mips-tdep.c (mips_pdr_data): Remove.
9858 (_initialize_mips_tdep): Update.
9859
9860 2019-05-08 Tom Tromey <tom@tromey.com>
9861
9862 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9863 (hppa_init_objfile_priv_data, read_unwind_info)
9864 (find_unwind_entry, _initialize_hppa_tdep): Update.
9865
9866 2019-05-08 Tom Tromey <tom@tromey.com>
9867
9868 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9869 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9870 on obstack.
9871 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9872
9873 2019-05-08 Tom Tromey <tom@tromey.com>
9874
9875 * mdebugread.c (basic_type_data): Change type.
9876 (basic_type, _initialize_mdebugread): Update.
9877
9878 2019-05-08 Tom Tromey <tom@tromey.com>
9879
9880 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9881
9882 2019-05-08 Tom Tromey <tom@tromey.com>
9883
9884 * nto-tdep.c (nto_inferior_data_reg): Change type.
9885 (nto_inferior_data): Update.
9886 (nto_inferior_data_cleanup, nto_new_inferior_data)
9887 (_initialize_nto_tdep): Remove.
9888 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9889
9890 2019-05-08 Tom Tromey <tom@tromey.com>
9891
9892 * ada-lang.c (struct ada_inferior_data): Add initializers.
9893 (ada_inferior_data): Change type.
9894 (ada_inferior_data_cleanup): Remove.
9895 (get_ada_inferior_data, ada_inferior_exit)
9896 (struct ada_pspace_data): Add initializers, destructor.
9897 (ada_pspace_data_handle): Change type.
9898 (get_ada_pspace_data): Update.
9899 (ada_pspace_data_cleanup): Remove.
9900
9901 2019-05-08 Tom Tromey <tom@tromey.com>
9902
9903 * coffread.c (struct coff_symfile_info): Add initializers.
9904 (coff_objfile_data_key): Move lower. Change type.
9905 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9906 Update.
9907 (coff_free_info): Remove.
9908
9909 2019-05-08 Tom Tromey <tom@tromey.com>
9910
9911 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9912 (fbsd_pspace_data_handle): Move lower. Change type.
9913 (get_fbsd_pspace_data): Update.
9914 (fbsd_pspace_data_cleanup): Remove.
9915 (_initialize_fbsd_tdep): Update.
9916
9917 2019-05-08 Tom Tromey <tom@tromey.com>
9918
9919 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9920 (get_ada_tasks_pspace_data): Update.
9921 (ada_tasks_pspace_data_cleanup): Remove.
9922 (_initialize_tasks): Update.
9923 (ada_tasks_inferior_data_handle): Change type.
9924 (get_ada_tasks_inferior_data): Update.
9925 (ada_tasks_inferior_data_cleanup): Remove.
9926 (struct ada_tasks_pspace_data): Add initializers.
9927
9928 2019-05-08 Tom Tromey <tom@tromey.com>
9929
9930 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9931 * symfile-debug.c (debug_sym_get_probes): Change type.
9932 * stap-probe.c (handle_stap_probe):
9933 (stap_static_probe_ops::get_probes): Change type.
9934 * probe.h (class static_probe_ops) <get_probes>: Change type.
9935 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9936 (parse_probes_in_pspace): Update.
9937 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9938 Update.
9939 (any_static_probe_ops::get_probes): Change type.
9940 * elfread.c (elfread_data): New typedef.
9941 (probe_key): Change type.
9942 (elf_get_probes): Likewise. Update.
9943 (probe_key_free): Remove.
9944 (_initialize_elfread): Update.
9945 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9946 Change type.
9947 (dtrace_process_dof_probe, dtrace_process_dof)
9948 (dtrace_static_probe_ops::get_probe): Change type.
9949
9950 2019-05-08 Tom Tromey <tom@tromey.com>
9951
9952 * xcoffread.c (struct xcoff_symfile_info): Rename from
9953 coff_symfile_info. Add initializers.
9954 (xcoff_objfile_data_key): Move lower. Change type.
9955 (XCOFF_DATA): Rewrite.
9956 (xcoff_free_info): Remove.
9957 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9958 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9959 (xcoff_initial_scan): Update.
9960
9961 2019-05-08 Tom Tromey <tom@tromey.com>
9962
9963 * solib-svr4.c (struct svr4_info): Add initializers and
9964 destructor.
9965 <probes_table>: Now an htab_up.
9966 (solib_svr4_pspace_data): Change type.
9967 (free_probes_table): Simplify.
9968 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9969 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9970 (probes_table_remove_objfile_probes, register_solib_event_probe)
9971 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9972 (_initialize_svr4_solib): Update.
9973
9974 2019-05-08 Tom Tromey <tom@tromey.com>
9975
9976 * remote.c (remote_pspace_data): Change type.
9977 (remote_pspace_data_cleanup): Remove.
9978 (get_remote_exec_file, set_pspace_remote_exec_file)
9979 (_initialize_remote): Update.
9980
9981 2019-05-08 Tom Tromey <tom@tromey.com>
9982
9983 * breakpoint.c (breakpoint_objfile_key): Change type.
9984 (get_breakpoint_objfile_data): Update.
9985 (free_breakpoint_objfile_data): Remove.
9986 (_initialize_breakpoint): Update.
9987
9988 2019-05-08 Tom Tromey <tom@tromey.com>
9989
9990 * linux-tdep.c (struct linux_info): Add initializers.
9991 (linux_inferior_data): Move. Change type.
9992 (invalidate_linux_cache_inf): Update.
9993 (linux_inferior_data_cleanup): Remove.
9994 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9995
9996 2019-05-08 Tom Tromey <tom@tromey.com>
9997
9998 * auxv.c (auxv_inferior_data): Move. Change type.
9999 (auxv_inferior_data_cleanup): Remove.
10000 (invalidate_auxv_cache_inf): Rewrite.
10001 (get_auxv_inferior_data, _initialize_auxv): Update.
10002
10003 2019-05-08 Tom Tromey <tom@tromey.com>
10004
10005 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10006 (symfile_debug_objfile_data_key): Change type.
10007 (symfile_debug_installed, debug_qf_has_symbols)
10008 (debug_qf_find_last_source_symtab)
10009 (debug_qf_forget_cached_source_info)
10010 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10011 (debug_qf_print_stats, debug_qf_dump)
10012 (debug_qf_expand_symtabs_for_function)
10013 (debug_qf_expand_all_symtabs)
10014 (debug_qf_expand_symtabs_with_fullname)
10015 (debug_qf_map_matching_symbols)
10016 (debug_qf_expand_symtabs_matching)
10017 (debug_qf_find_pc_sect_compunit_symtab)
10018 (debug_qf_map_symbol_filenames)
10019 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10020 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10021 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10022 (debug_sym_read_linetable, debug_sym_relocate): Update.
10023 (symfile_debug_free_objfile): Remove.
10024 (install_symfile_debug_logging, _initialize_symfile_debug):
10025 Update.
10026
10027 2019-05-08 Tom Tromey <tom@tromey.com>
10028
10029 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10030 allocate_on_obstack.
10031 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10032 (get_dwarf2_per_objfile): Update.
10033 (set_dwarf2_per_objfile): Remove.
10034 (dwarf2_has_info, dwarf2_get_section_info): Update.
10035 (dwarf2_free_objfile): Remove.
10036 (_initialize_dwarf2_read): Update.
10037
10038 2019-05-08 Tom Tromey <tom@tromey.com>
10039
10040 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10041 initializers.
10042 <unsupported_script_warning_printed,
10043 script_not_found_warning_printed>: Now bool.
10044 (auto_load_pspace_data): Change type.
10045 (~auto_load_pspace_info): Rename from
10046 auto_load_pspace_data_cleanup.
10047 (get_auto_load_pspace_data, init_loaded_scripts_info)
10048 (clear_section_scripts, maybe_print_unsupported_script_warning)
10049 (maybe_print_script_not_found_warning, _initialize_auto_load):
10050 Update.
10051
10052 2019-05-08 Tom Tromey <tom@tromey.com>
10053
10054 * objfiles.c (objfile_pspace_info): Add destructor and
10055 initializers.
10056 (objfiles_pspace_data): Change type.
10057 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10058 (get_objfile_pspace_data): Update.
10059 (objfiles_bfd_data): Change type.
10060 (get_objfile_bfd_data): Update.
10061 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10062
10063 2019-05-08 Tom Tromey <tom@tromey.com>
10064
10065 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10066 Change type.
10067 (get_catch_syscall_inferior_data): Update.
10068 (catch_syscall_inferior_data_cleanup): Remove.
10069 (_initialize_break_catch_syscall): Update.
10070
10071 2019-05-08 Tom Tromey <tom@tromey.com>
10072
10073 * inflow.c (struct terminal_info): Add destructor and
10074 initializers.
10075 (inflow_inferior_data): Change type.
10076 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10077 (get_inflow_inferior_data, inflow_inferior_exit)
10078 (swap_terminal_info, _initialize_inflow): Update.
10079
10080 2019-05-08 Tom Tromey <tom@tromey.com>
10081
10082 * target-dcache.c (target_dcache_cleanup): Remove.
10083 (target_dcache_aspace_key): Change type.
10084 (target_dcache_init_p, target_dcache_invalidate)
10085 (target_dcache_get, target_dcache_get_or_init)
10086 (_initialize_target_dcache): Update.
10087 * dcache.h (struct dcache_deleter): New.
10088
10089 2019-05-08 Tom Tromey <tom@tromey.com>
10090
10091 * symtab.c (struct symbol_cache): Add destructor and
10092 initializers.
10093 (symbol_cache_key): Move. Change type.
10094 (make_symbol_cache, free_symbol_cache): Remove.
10095 (get_symbol_cache): Update.
10096 (symbol_cache_cleanup): Remove.
10097 (ALL_PSPACES, symbol_cache_flush)
10098 (maintenance_print_symbol_cache)
10099 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10100 Update.
10101
10102 2019-05-08 Tom Tromey <tom@tromey.com>
10103
10104 * symtab.c (struct main_info): Add destructor and initializers.
10105 (main_progspace_key): Move. Change type.
10106 (get_main_info): Update.
10107 (main_info_cleanup): Remove.
10108 (_initialize_symtab): Update.
10109
10110 2019-05-08 Tom Tromey <tom@tromey.com>
10111
10112 * registry.h (DECLARE_REGISTRY): Define the _key class.
10113
10114 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10115
10116 * NEWS: Merge two 'New commands' sections.
10117
10118 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10119
10120 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10121 parameter and use Ada language definition instead.
10122 (ada_val_print_ptr): Remove unused language parameter.
10123 (ada_val_print_num): Remove language parameter and use Ada language
10124 definition instead.
10125 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10126 parameter.
10127 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10128 parameter and use Ada language definition instead.
10129 (ada_val_print_1): Update all ada_val_print_xxx calls.
10130 Remove language parameter.
10131 (ada_val_print): Update ada_val_print_1 call.
10132
10133 2019-05-08 Tom Tromey <tromey@adacore.com>
10134
10135 * remote.c (remote_hw_watchpoint_limit)
10136 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10137 Now static.
10138
10139 2019-05-08 Tom Tromey <tromey@adacore.com>
10140
10141 * maint.c (_initialize_maint_cmds): Move initialization code to
10142 remote.c.
10143 (watchdog, show_watchdog): Move to remote.c.
10144 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10145 "watchdog" static.
10146 (_initialize_remote): Move initialization code from maint.c.
10147 * defs.h (watchdog): Don't declare.
10148
10149 2019-05-08 Tom Tromey <tromey@adacore.com>
10150
10151 * tui/tui-interp.c: Include main.h.
10152 * interps.c: Include main.h.
10153 * main.h (interpreter_p): Declare.
10154 * defs.h (interpreter_p): Don't declare.
10155
10156 2019-05-08 Tom Tromey <tromey@adacore.com>
10157
10158 * dwarf2loc.c: Include dwarf2read.h.
10159 * defs.h (read_unsigned_leb128): Don't declare.
10160 * dwarf2read.h (read_unsigned_leb128): Declare.
10161
10162 2019-05-08 Tom Tromey <tromey@adacore.com>
10163
10164 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10165 method.
10166
10167 2019-05-08 Tom Tromey <tromey@adacore.com>
10168
10169 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10170 when no wrap column is set.
10171
10172 2019-05-08 Tom Tromey <tromey@adacore.com>
10173
10174 * c-lang.c (c_get_string): Handle non-C-style arrays.
10175
10176 2019-05-08 Tom Tromey <tromey@adacore.com>
10177
10178 * typeprint.c (print_offset_data::update): Print the bit offset,
10179 not the number of bits remaining.
10180
10181 2019-05-08 Tom Tromey <tromey@adacore.com>
10182
10183 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10184 padding at end of comment.
10185
10186 2019-05-08 Tom Tromey <tromey@adacore.com>
10187
10188 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10189 Compare main types.
10190
10191 2019-05-06 Tom Tromey <tom@tromey.com>
10192
10193 * common/scoped_mmap.c: Include common-defs.h.
10194 * common/scoped_mmap.h: Don't include config.h.
10195
10196 2019-05-04 Tom Tromey <tom@tromey.com>
10197
10198 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10199 (struct aarch64_call_info): Add initializers.
10200 <si>: Now a std::vector.
10201 (pass_on_stack, aarch64_push_dummy_call): Update.
10202
10203 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10204 Tom Tromey <tom@tromey.com>
10205
10206 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10207 (ppc_threads): Now a std::vector. Now static.
10208 (hwdebug_find_thread_points_by_tid)
10209 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10210 Update.
10211
10212 2019-05-04 Tom Tromey <tom@tromey.com>
10213
10214 * arc-tdep.c (arc_tdesc_init): Return bool.
10215
10216 2019-05-04 Tom Tromey <tom@tromey.com>
10217
10218 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10219 Use gdb_assert_not_reached.
10220
10221 2019-05-04 Tom Tromey <tom@tromey.com>
10222
10223 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10224 "false".
10225
10226 2019-05-04 Tom Tromey <tom@tromey.com>
10227
10228 * arc-tdep.c (arc_tdesc_init): Use bool.
10229
10230 2019-05-04 Tom Tromey <tom@tromey.com>
10231
10232 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10233
10234 2019-05-04 Tom Tromey <tom@tromey.com>
10235
10236 * cli/cli-cmds.c (valid_command_p): Return bool.
10237
10238 2019-05-04 Tom Tromey <tom@tromey.com>
10239
10240 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10241 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10242
10243 2019-05-04 Raul Tambre <raul@tambre.ee>
10244
10245 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10246 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10247 operator for comparison.
10248
10249 2019-05-04 Tom Tromey <tom@tromey.com>
10250
10251 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10252 (lookup_partial_symbol, print_partial_symbols)
10253 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10254 (psymbol_compare): Update.
10255 (add_psymbol_to_bcache): Clear the entire psymbol.
10256 (maintenance_check_psymtabs): Update.
10257 * psympriv.h (struct partial_symbol): Don't derive from
10258 general_symbol_info.
10259 <obj_section, unrelocated_address, address,
10260 set_unrelocated_address>: Update.
10261 <ginfo>: New member.
10262 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10263 (debug_names::write_psymbols): Update.
10264
10265 2019-05-04 Tom de Vries <tdevries@suse.de>
10266
10267 * contrib/cc-with-tweaks.sh: Support -n arg.
10268
10269 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10270
10271 * corelow.c (core_target::detach): Ensure frame cache and
10272 register caches are cleared.
10273 inferior.c (exit_inferior_1): Likewise.
10274
10275 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10276 Tom Tromey <tom@tromey.com>
10277
10278 * dictionary.c (collate_pending_symbols_by_language): Remove
10279 "struct" from foreach.
10280 * symtab.c (lookup_global_symbol_from_objfile)
10281 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10282 foreach.
10283 * ser-tcp.c (net_open): Remove "struct" from foreach.
10284 * objfiles.c (objfile_relocate, objfile_rebase)
10285 (objfile_has_symbols): Remove "struct" from foreach.
10286 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10287 from foreach.
10288 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10289 foreach.
10290 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10291 "struct" from foreach.
10292 * ada-lang.c (create_excep_cond_exprs)
10293 (ada_exception_catchpoint_cond_string): Remove "struct" from
10294 foreach.
10295
10296 2019-05-03 Tom Tromey <tromey@adacore.com>
10297
10298 * ada-exp.y (convert_char_literal): Check suffix of each
10299 enumerator.
10300
10301 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10302
10303 PR ada/21406:
10304 * ada-exp.y (yywrap): Don't define.
10305 * ada-lex.l (%option): Add noyywrap
10306 (yywrap): Remove.
10307
10308 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10309
10310 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10311 _WIN32_WINNT to the XP level, unless already defined to a higher
10312 level.
10313
10314 * unittests/parse-connection-spec-selftests.c:
10315 * ser-tcp.c:
10316 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10317 override.
10318
10319 * symfile.c (find_separate_debug_file): Remove colon from the
10320 drive spec of DOS/Windows file names of the target, so that the
10321 file name produced from DEBUGDIR and the target's directory will
10322 be valid on DOS/Windows systems.
10323
10324 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10325
10326 * rust-lang.c (val_print_struct): Handle printing structures
10327 containing strings.
10328
10329 2019-05-02 Tom Tromey <tromey@adacore.com>
10330
10331 * valarith.c (_initialize_valarith): Remove.
10332
10333 2019-05-01 Tom Tromey <tromey@adacore.com>
10334
10335 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10336 bitfields.
10337
10338 2019-05-01 Tom Tromey <tromey@adacore.com>
10339
10340 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10341 for big-endian copies.
10342
10343 2019-04-30 Ali Tamur <tamur@google.com>
10344 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10345 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10346 (read_3_bytes): New function.
10347
10348 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10349
10350 * windows-nat.c (main_thread_id): Delete.
10351 (handle_output_debug_string): Replace main_thread_id by
10352 current_event.dwThreadId.
10353 (fake_create_process): Likewise.
10354 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10355 Do not set main_thread_id.
10356 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10357 current_event.dwThreadId.
10358 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10359
10360 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10361
10362 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10363 Use current_event.dwThreadId instead of main_thread_id.
10364
10365 2019-04-30 Tom Tromey <tromey@adacore.com>
10366
10367 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10368 (create_excep_cond_exprs): Iterate over program spaces.
10369 (ada_exception_catchpoint_cond_string): Examine all minimal
10370 symbols for exception types.
10371
10372 2019-04-30 Tom Tromey <tromey@adacore.com>
10373
10374 PR c++/24470:
10375 * dwarf2read.c (process_structure_scope): Handle case where type
10376 has template parameters but no symbol was created.
10377
10378 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10379 Chris January <chris.january@arm.com>
10380
10381 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10382 qualifier.
10383 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10384
10385 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10386
10387 * f-typeprint.c (f_print_type): Update rules for printing
10388 whitespace.
10389 (f_type_print_varspec_suffix): Likewise.
10390
10391 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10392 Chris January <chris.january@arm.com>
10393
10394 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10395 function arguments.
10396
10397 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10398
10399 * f-lang.c (build_fortran_types): Change name of void type to
10400 lower case.
10401 * f-typeprint.c (f_type_print_base): Print the name of the void
10402 type, rather than a fixed string.
10403 * f-valprint.c (f_decorations): Use lower case void string.
10404
10405 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10406 Chris January <chris.january@arm.com>
10407
10408 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10409 types for Fortran.
10410
10411 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10412 Chris January <chris.january@arm.com>
10413 David Lecomber <david.lecomber@arm.com>
10414
10415 * f-exp.y (BINOP_INTRINSIC): New token.
10416 (exp): New parser rule handling BINOP_INTRINSIC.
10417 (f77_keywords): Add new builtin procedures.
10418 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10419 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10420 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10421 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10422 (print_unop_subexp_f): New function.
10423 (print_binop_subexp_f): New function.
10424 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10425 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10426 (dump_subexp_body_f): Likewise.
10427 (operator_check_f): Likewise.
10428 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10429 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10430
10431 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10432
10433 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10434 UNOP_KIND.
10435 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10436 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10437 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10438 (operator_length_f): New fuction.
10439 (print_subexp_f): New function.
10440 (op_name_f): New function.
10441 (dump_subexp_body_f): New function.
10442 (operator_check_f): New function.
10443 (exp_descriptor_f): Replace standard expression handling functions
10444 with new functions.
10445 * gdb/fortran-operator.def: New file.
10446 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10447 * gdb/std-operator.def: Remove UNOP_KIND.
10448
10449 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10450
10451 * std-operator.def: Remove unbalanced, stray double quote
10452 character.
10453
10454 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10455 Chris January <chris.january@arm.com>
10456 Daniel Everett <daniel.everett@arm.com>
10457 Nick Forrington <nick.forrington@arm.com>
10458 Richard Bunt <richard.bunt@arm.com>
10459
10460 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10461 of depth when printing anonymous structs or unions.
10462 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10463 Don't print either the top-level value, or the children if the
10464 max-depth is exceeded.
10465 (ppscm_print_children): When printing the key of a map, allow one
10466 extra level of depth.
10467 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10468 print either the top-level value, or the children if the max-depth
10469 is exceeded.
10470 (print_children): When printing the key of a map, allow one extra
10471 level of depth.
10472 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10473 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10474 (user_print_options): Initialise max_depth field.
10475 (val_print_scalar_or_string_type_p): New function.
10476 (val_print): Check to see if the max depth has been reached.
10477 (val_print_check_max_depth): Define new function.
10478 (show_print_max_depth): New function.
10479 (_initialize_valprint): Add 'print max-depth' option.
10480 * valprint.h (struct value_print_options) <max_depth>: New field.
10481 (val_print_check_max_depth): Declare new function.
10482 * NEWS: Document new feature.
10483
10484 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10485
10486 * ada-lang.c (ada_language_defn): Initialise new field.
10487 * c-lang.c (c_is_string_type_p): New function.
10488 (c_language_defn): Initialise new field.
10489 (cplus_language_defn): Initialise new field.
10490 (asm_language_defn): Initialise new field.
10491 (minimal_language_defn): Initialise new field.
10492 * c-lang.h (c_is_string_type_p): Declare new function.
10493 * d-lang.c (d_language_defn): Initialise new field.
10494 * f-lang.c (f_is_string_type_p): New function.
10495 (f_language_defn): Initialise new field.
10496 * go-lang.c (go_is_string_type_p): New function.
10497 (go_language_defn): Initialise new field.
10498 * language.c (default_is_string_type_p): New function.
10499 (unknown_language_defn): Initialise new field.
10500 (auto_language_defn): Initialise new field.
10501 * language.h (struct language_defn) <la_is_string_type_p>: New
10502 member variable.
10503 (default_is_string_type_p): Declare new function.
10504 * m2-lang.c (m2_language_defn): Initialise new field.
10505 * objc-lang.c (objc_language_defn): Initialise new field.
10506 * opencl-lang.c (opencl_language_defn): Initialise new field.
10507 * p-lang.c (pascal_is_string_type_p): New function.
10508 (pascal_language_defn): Initialise new field.
10509 * rust-lang.c (rust_is_string_type_p): New function.
10510 (rust_language_defn): Initialise new field.
10511
10512 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10513
10514 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10515 New field.
10516 * ada-lang.c (ada_language_defn): Initialise new field.
10517 * c-lang.c (c_language_defn): Likewise.
10518 (cplus_language_defn): Likewise.
10519 (asm_language_defn): Likewise.
10520 (minimal_language_defn): Likewise.
10521 * d-lang.c (d_language_defn): Likewise.
10522 * f-lang.c (f_language_defn): Likewise.
10523 * go-lang.c (go_language_defn): Likewise.
10524 * language.c (unknown_language_defn): Likewise.
10525 (auto_language_defn): Likewise.
10526 * m2-lang.c (m2_language_defn): Likewise.
10527 * objc-lang.c (objc_language_defn): Likewise.
10528 * opencl-lang.c (opencl_language_defn): Likewise.
10529 * p-lang.c (pascal_language_defn): Likewise.
10530 * rust-lang.c (rust_language_defn): Likewise.
10531
10532 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10533
10534 * ada-lang.c (ada_is_character_type): Change return type to bool.
10535 (ada_is_string_type): Likewise.
10536 * ada-lang.h (ada_is_character_type): Update declaration
10537 (ada_is_string_type): Likewise.
10538
10539 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10540
10541 Support style in 'frame|thread apply'
10542
10543 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10544 * record.c (record_start, record_stop): Update callers of
10545 execute_command_to_string with false.
10546 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10547 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10548 methods.
10549 (class string_file): New constructor with term_out parameter.
10550 Override methods term_out and can_emit_style_escape. New member
10551 term_out.
10552 (class stdio_file): Override can_emit_style_escape.
10553 (class tee_file): Override term_out and can_emit_style_escape.
10554 * utils.h (can_emit_style_escape): Remove.
10555 * utils.c (can_emit_style_escape): Likewise.
10556 Update all callers of can_emit_style_escape (SOMESTREAM) to
10557 SOMESTREAM->can_emit_style_escape.
10558 * source-cache.c (source_cache::get_source_lines): Likewise.
10559 * stack.c (frame_apply_command_count): Call execute_command_to_string
10560 passing the term_out characteristic of the current gdb_stdout.
10561 * thread.c (thr_try_catch_cmd): Likewise.
10562 * top.c (execute_command_to_string): pass term_out parameter
10563 to construct the string_file for the command output.
10564 * ui-file.c (term_cli_styling): New function (most code moved
10565 from utils.c can_emit_style_escape).
10566 (string_file::string_file, string_file::can_emit_style_escape,
10567 stdio_file::can_emit_style_escape, tee_file::term_out,
10568 tee_file::can_emit_style_escape): New functions.
10569
10570 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10571
10572 * NEWS: Mention the new set|show may-call-functions.
10573 * infcall.c (may_call_functions_p): New variable.
10574 (show_may_call_functions_p): New function.
10575 (call_function_by_hand_dummy): Throws an error if not
10576 may-call-functions.
10577 (_initialize_infcall): Call add_setshow_boolean_cmd for
10578 may-call-functions.
10579
10580 2019-04-25 Keith Seitz <keiths@redhat.com>
10581
10582 PR c++/24367
10583 * cp-support.c (inspect_type): Don't attempt substitutions
10584 of symbol with the same name.
10585
10586 2019-04-25 Tom Tromey <tromey@adacore.com>
10587
10588 PR gdb/24475:
10589 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10590 static.
10591
10592 2019-04-25 Tom Tromey <tromey@adacore.com>
10593
10594 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10595 rvalue reference.
10596 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10597 (gdb_xml_parser::parse): Use std::move.
10598 * python/python-internal.h (gdbpy_convert_exception): Take a const
10599 reference.
10600 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10601 std::move.
10602 * python/py-utils.c (gdbpy_convert_exception): Take a const
10603 reference.
10604 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10605 Use std::move.
10606 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10607 Use std::move.
10608 * mi/mi-main.c (mi_print_exception): Take a const reference.
10609 * main.c (handle_command_errors): Take a const reference.
10610 * linespec.c (parse_linespec): Use std::move.
10611 * infcall.c (run_inferior_call): Use std::move.
10612 (call_function_by_hand_dummy): Use std::move.
10613 * exec.c (try_open_exec_file): Use std::move.
10614 * exceptions.h (exception_print, exception_fprintf)
10615 (exception_print_same): Update.
10616 * exceptions.c (print_exception, exception_print)
10617 (exception_fprintf, exception_print_same): Change parameters to
10618 const reference.
10619 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10620 * common/new-op.c: Use std::move.
10621 * common/common-exceptions.h (struct gdb_exception): Add move
10622 constructor.
10623 (struct gdb_exception_error, struct gdb_exception_quit, struct
10624 gdb_quit_bad_alloc): Change constructor to move constructor.
10625 (throw_exception): Change parameter to rvalue reference.
10626 * common/common-exceptions.c (throw_exception): Take rvalue
10627 reference.
10628 * cli/cli-interp.c (safe_execute_command): Use std::move.
10629 * breakpoint.c (insert_bp_location, location_to_sals): Use
10630 std::move.
10631
10632 2019-04-25 Tom Tromey <tromey@adacore.com>
10633
10634 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10635 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10636 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10637 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10638 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10639 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10640 guile/scm-value.c: Use unpack.
10641 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10642 gdbscm_gdb_exception.
10643 (gdbscm_throw_gdb_exception): Likewise.
10644 (struct gdbscm_gdb_exception): New.
10645 (unpack): New function.
10646 (gdbscm_wrap): Use unpack.
10647
10648 2019-04-25 Tom Tromey <tromey@adacore.com>
10649
10650 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10651 (gdb_rl_callback_handler): Use std::move.
10652 * common/common-exceptions.h (struct gdb_exception): Add move
10653 assignment operator.
10654 (throw_exception_sjlj): Change "exception" to const reference.
10655 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10656 (throw_exception_sjlj): Change "exception" to const reference.
10657
10658 2019-04-25 Tom Tromey <tromey@adacore.com>
10659
10660 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10661 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10662 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10663 Update.
10664 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10665 Update.
10666 * mi/mi-interp.c (mi_interp::exec): Update.
10667 * linespec.c (parse_linespec): Update.
10668 * infcall.c (run_inferior_call): Update.
10669 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10670 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10671 (gdbscm_lookup_global_symbol): Update.
10672 * guile/scm-param.c (gdbscm_parameter_value): Update.
10673 * guile/scm-frame.c (gdbscm_frame_read_register)
10674 (gdbscm_frame_read_var): Update.
10675 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10676 * exec.c (try_open_exec_file): Update.
10677 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10678 (gdb_rl_callback_handler): Update.
10679 * common/common-exceptions.h (exception_none): Don't declare.
10680 * common/common-exceptions.c (exception_none): Don't define.
10681 (struct catcher) <exception>: Update.
10682 * cli/cli-interp.c (safe_execute_command): Update.
10683 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10684
10685 2019-04-25 Ali Tamur <tamur@google.com>
10686
10687 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10688 (read_attribute_value): Likewise.
10689 (dwarf2_read_addr_index): Update comment.
10690 (read_str_index): Add DW_FORM_strx.
10691 (dwarf2_string_attr): Likewise.
10692 (dwarf2_const_value_attr): Likewise.
10693 (dump_die_shallow): Likewise.
10694 (dwarf2_fetch_constant_bytes): Likewise.
10695 (skip_form_bytes): Likewise.
10696 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10697
10698 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10699
10700 PR corefiles/11608
10701 PR corefiles/18187
10702 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10703 OFFSET. Verify if current mapping contains an ELF header.
10704 (linux_find_memory_regions_full): Adjust call to
10705 dump_mapping_p.
10706
10707 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10708 Kang Li <kanglictf@gmail.com>
10709
10710 PR gdb/21600
10711
10712 * dwarf2-frame.c (read_initial_length): Be consistent about using
10713 unsigned representation of length.
10714 (decode_frame_entry_1): Likewise. Check for wraparound of
10715 end pointer as well as buffer overflow.
10716
10717 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10718
10719 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10720 "vq".
10721
10722 2019-04-24 Tom Tromey <tromey@adacore.com>
10723
10724 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10725
10726 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10727
10728 * s12z-tdep.c (s12z_unwind_pc): Delete.
10729 (s12z_unwind_sp): Delete.
10730 (s12z_gdbarch_init): Don't register deleted functions with
10731 gdbarch.
10732
10733 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10734
10735 * rl78-tdep.c (rl78_unwind_sp): Delete.
10736 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10737
10738 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10739
10740 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10741 (xstormy16_unwind_pc): Delete.
10742 (xstormy16_dummy_id): Delete.
10743 (xstormy16_gdbarch_init): Don't register deleted functions with
10744 gdbarch.
10745
10746 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10747
10748 * vax-tdep.c (vax_unwind_pc): Delete.
10749 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10750
10751 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10752
10753 * v850-tdep.c (v850_unwind_sp): Delete.
10754 (v850_unwind_pc): Delete.
10755 (v850_dummy_id): Delete.
10756 (v850_gdbarch_init): Don't register deleted functions with
10757 gdbarch.
10758
10759 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10760
10761 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10762 (tilegx_unwind_pc): Delete.
10763 (tilegx_unwind_dummy_id): Delete.
10764 (tilegx_gdbarch_init): Don't register deleted functions with
10765 gdbarch.
10766
10767 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10768
10769 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10770 (tic6x_dummy_id): Delete.
10771 (tic6x_gdbarch_init): Don't register deleted functions with
10772 gdbarch.
10773
10774 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10775
10776 * sparc-tdep.c (sparc_unwind_pc): Delete.
10777 (sparc32_gdbarch_init): Don't register deleted function with
10778 gdbarch.
10779
10780 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10781
10782 * sh-tdep.c (sh_unwind_sp): Delete.
10783 (sh_unwind_pc): Delete.
10784 (sh_dummy_id): Delete.
10785 (sh_gdbarch_init): Don't register deleted functions with
10786 gdbarch.
10787
10788 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10789
10790 * score-tdep.c (score_unwind_sp): Delete.
10791 (score_unwind_pc): Delete.
10792 (score_dummy_id): Delete.
10793 (score_gdbarch_init): Don't register deleted functions with
10794 gdbarch.
10795
10796 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10797
10798 * rx-tdep.c (rx_unwind_pc): Delete.
10799 (rx_unwind_sp): Delete.
10800 (rx_dummy_id): Delete.
10801 (rx_gdbarch_init): Don't register deleted functions with
10802 gdbarch. Update comment.
10803
10804 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10805
10806 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10807 (rs6000_dummy_id): Delete.
10808 (rs6000_gdbarch_init): Don't register deleted functions with
10809 gdbarch.
10810
10811 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10812
10813 * or1k-tdep.c (or1k_dummy_id): Delete.
10814 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10815
10816 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10817
10818 * nios2-tdep.c (nios2_dummy_id): Delete.
10819 (nios2_unwind_sp): Delete.
10820 (nios2_gdbarch_init): Don't register deleted functions with
10821 gdbarch.
10822
10823 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10824
10825 * nds32-tdep.c (nds32_dummy_id): Delete.
10826 (nds32_unwind_pc): Delete.
10827 (nds32_unwind_sp): Delete.
10828 (nds32_gdbarch_init): Don't register deleted functions with
10829 gdbarch.
10830
10831 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10832
10833 * msp430-tdep.c (msp430_unwind_pc): Delete.
10834 (msp430_unwind_sp): Delete.
10835 (msp430_dummy_id): Delete.
10836 (msp430_gdbarch_init): Don't register deleted functions with
10837 gdbarch.
10838
10839 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10840
10841 * moxie-tdep.c (moxie_unwind_sp): Delete.
10842 (moxie_unwind_pc): Delete.
10843 (moxie_dummy_id): Delete.
10844 (moxie_gdbarch_init): Don't register deleted functions with
10845 gdbarch.
10846
10847 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10848
10849 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10850 (mn10300_unwind_pc): Delete.
10851 (mn10300_unwind_sp): Delete.
10852 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10853 mn10300_unwind_sp.
10854 (mn10300_frame_unwind_init): Don't register deleted functions with
10855 gdbarch.
10856
10857 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10858
10859 * mep-tdep.c (mep_unwind_pc): Delete.
10860 (mep_unwind_sp): Delete.
10861 (mep_dummy_id): Delete.
10862 (mep_gdbarch_init): Don't register deleted functions with
10863 gdbarch.
10864
10865 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10866
10867 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10868 (m68hc11_unwind_sp): Delete.
10869 (m68hc11_gdbarch_init): Don't register deleted functions with
10870 gdbarch.
10871
10872 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10873
10874 * m32r-tdep.c (m32r_unwind_sp): Delete.
10875 (m32r_unwind_pc): Delete.
10876 (m32r_dummy_id): Delete.
10877 (m32r_gdbarch_init): Don't register deleted functions with
10878 gdbarch.
10879
10880 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10881
10882 * m32c-tdep.c (m32c_unwind_pc): Delete.
10883 (m32c_unwind_sp): Delete.
10884 (m32c_dummy_id): Delete.
10885 (m32c_gdbarch_init): Don't register deleted functions with
10886 gdbarch.
10887
10888 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10889
10890 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10891 (lm32_unwind_pc): Delete.
10892 (lm32_dummy_id): Delete.
10893 (lm32_gdbarch_init): Don't register deleted functions with
10894 gdbarch.
10895
10896 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10897
10898 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10899 (iq2000_unwind_pc): Delete.
10900 (iq2000_dummy_id): Delete.
10901 (iq2000_gdbarch_init): Don't register deleted functions with
10902 gdbarch.
10903
10904 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10905
10906 * nds32-tdep.c (nds32_type_align): Delete.
10907 (nds32_push_dummy_call): Use type_align instead.
10908
10909 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10910
10911 * arm-tdep.c (arm_type_align): Only handle vector override case.
10912 (arm_push_dummy_call): Use type_align.
10913 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10914
10915 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10916
10917 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10918 case.
10919 (pass_on_stack): Use type_align.
10920 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10921 function.
10922
10923 2019-04-23 Tom Tromey <tromey@adacore.com>
10924
10925 * dwarf2read.c (line_header::file_name_at): Remove unused
10926 overload.
10927
10928 2019-04-23 Tom de Vries <tdevries@suse.de>
10929
10930 PR gdb/24438
10931 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10932 invocation.
10933
10934
10935 2019-03-27 Ali Tamur <tamur@google.com>
10936
10937 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10938 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10939 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10940 (dwarf_expr_context::get_addr_index): Likewise
10941 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10942 (symbol_needs_eval_context::get_addr_index): Likewise
10943 (disassemble_dwarf_expression): Add DW_OP_addrx
10944 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10945 (read_cutu_die_from_dwo): Update comment
10946 (skip_one_die): Add DW_FORM_addrx
10947 (read_attribute_value): Likewise
10948 (var_decode_location): Add DW_OP_addrx
10949 (dwarf2_const_value_attr): Add DW_FORM_addrx
10950 (dump_die_shallow): Likewise
10951 (dwarf2_fetch_constant_bytes): Likewise
10952 (decode_locdesc): Add DW_OP_addrx
10953 (skip_form_bytes): Add DW_FORM_addrx
10954
10955 2019-04-22 Ali Tamur <tamur@google.com>
10956
10957 * MAINTAINERS (Write After Approval): Add self.
10958
10959 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10960
10961 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10962 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10963 (open_symbol_file_object): Likewise.
10964 (svr4_default_sos): Add info parameter.
10965 (svr4_read_so_list): Likewise.
10966 (svr4_current_sos_direct): Adjust functions calls to pass down
10967 info.
10968 (svr4_current_sos_1): Add info parameter.
10969 (svr4_current_sos): Call get_svr4_info, pass info down to
10970 svr4_current_sos_1.
10971 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10972 get_svr4_info.
10973 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10974 get_svr4_info.
10975 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10976 to get_svr4_info.
10977 (probes_table_remove_objfile_probes): Likewise.
10978 (register_solib_event_probe): Add info parameter.
10979 (solist_update_incremental): Pass info parameter down to
10980 svr4_read_so_list.
10981 (disable_probes_interface): Add info parameter.
10982 (svr4_handle_solib_event): Pass current_program_space to
10983 get_svr4_info. Adjust disable_probes_interface cleanup.
10984 (svr4_create_probe_breakpoints): Add info parameter, pass it
10985 down to register_solib_event_probe.
10986 (svr4_create_solib_event_breakpoints): Add info parameter,
10987 pass it down to svr4_create_probe_breakpoints.
10988 (enable_break): Pass info down to
10989 svr4_create_solib_event_breakpoints.
10990 (svr4_solib_create_inferior_hook): Pass current_program_space to
10991 get_svr4_info.
10992 (svr4_clear_solib): Likewise.
10993
10994 2019-04-22 Pedro Alves <palves@redhat.com>
10995
10996 * solib-svr4.c (svr4_free_objfile_observer): New.
10997 (probe_and_action::objfile): New field.
10998 (probes_table_htab_remove_objfile_probes)
10999 (probes_table_remove_objfile_probes): New functions.
11000 (register_solib_event_probe): Add 'objfile' parameter. Store it
11001 in the new probe_and_action. Don't store the probe in 'lookup'.
11002 (svr4_create_probe_breakpoints): Pass objfile to
11003 register_solib_event_probe.
11004 (_initialize_svr4_solib): Register a free_objfile observer.
11005
11006 2019-04-19 Tom Tromey <tom@tromey.com>
11007
11008 * common/queue.h: Remove.
11009
11010 2019-04-19 Tom Tromey <tom@tromey.com>
11011
11012 * event-loop.c: Don't include "common/queue.h".
11013
11014 2019-04-19 Tom Tromey <tom@tromey.com>
11015
11016 * remote.c (remote_target): Use delete.
11017 * remote-notif.h: Include <list>, not "common/queue.h".
11018 (notif_client_p): Remove typedef.
11019 (remote_notif_state): Add constructor, destructor, initializer.
11020 <notif_queue>: Now a std::list.
11021 (remote_notif_state_xfree): Don't declare.
11022 * remote-notif.c (remote_notif_process, handle_notification)
11023 (remote_notif_state_allocate): Update.
11024 (~remote_notif_state): Rename from remote_notif_state_xfree.
11025
11026 2019-04-19 Tom Tromey <tom@tromey.com>
11027
11028 * symfile.c (reread_symbols): Update.
11029 * objfiles.c (objfile_register_static_link)
11030 (objfile_lookup_static_link): Update
11031 (~objfile) Don't delete static_links.
11032 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11033
11034 2019-04-19 Tom Tromey <tom@tromey.com>
11035
11036 * type-stack.h (struct type_stack) <insert>: Constify string.
11037 * type-stack.c (type_stack::insert): Constify string.
11038 * gdbtypes.h (lookup_template_type): Update.
11039 (address_space_name_to_int): Update.
11040 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11041 const.
11042 (lookup_template_type): Make name const.
11043 * c-exp.y: Update rules.
11044 (lex_one_token, classify_name, classify_inner_name)
11045 (c_print_token): Update.
11046 * p-exp.y: Update rules.
11047 (yylex): Update.
11048 * f-exp.y: Update rules.
11049 (yylex): Update.
11050 * d-exp.y: Update rules.
11051 (lex_one_token, classify_name, classify_inner_name): Update.
11052 * parse.c (write_dollar_variable, copy_name): Return std::string.
11053 * parser-defs.h (copy_name): Change return type.
11054 * m2-exp.y: Update rules.
11055 (yylex): Update.
11056 * go-exp.y (lex_one_token): Update.
11057 Update rules.
11058 (classify_unsafe_function, classify_packaged_name)
11059 (classify_name, yylex): Update.
11060
11061 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11062
11063 * configure.ac: add --enable-source-highlight switch.
11064 * configure: Regenerate.
11065 * top.c (print_gdb_version): plumb --enable-source-highlight
11066 status to "show configuration".
11067
11068 2019-04-19 Tom Tromey <tromey@adacore.com>
11069
11070 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11071 Check ADA_TYPE_P.
11072 (empty_record, ada_template_to_fixed_record_type_1)
11073 (template_to_static_fixed_type)
11074 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11075 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11076 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11077 macros.
11078
11079 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11080
11081 PR symtab/24423:
11082 * source.c (print_source_lines_base): Advance "iter" when a
11083 control character is seen.
11084
11085 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11086
11087 * inferior.h (struct infcall_suspend_state_deleter):
11088 Catch exception in destructor to avoid crash.
11089
11090 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11091
11092 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11093 close to the add_com "shell".
11094
11095 2019-04-18 Tom Tromey <tromey@adacore.com>
11096
11097 * process-stratum-target.h (class process_stratum_target)
11098 <stratum>: Add "final".
11099
11100 2019-04-17 Tom Tromey <tromey@adacore.com>
11101
11102 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11103 against nullptr before use.
11104
11105 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11106
11107 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11108
11109 2019-04-17 Jim Wilson <jimw@sifive.com>
11110 Andrew Burgess <andrew.burgess@embecosm.com>
11111
11112 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11113 code read might fail, assume 4-byte breakpoint in that case.
11114
11115 2019-04-15 Leszek Swirski <leszeks@google.com>
11116
11117 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11118 rather than a hand-rolled POD check when checking for forced MEMORY
11119 classification.
11120
11121 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11122
11123 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11124 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11125 function.
11126 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11127 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11128 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11129 declaration.
11130
11131 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11132
11133 * aarch64-linux-nat.c
11134 (aarch64_linux_nat_target::thread_architecture): Add override.
11135 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11136 each VQ.
11137
11138 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11139
11140 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11141
11142 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11143
11144 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11145 target types of size 96-bits, add some additional comments, and
11146 check that the builtin type we found was the correct size.
11147
11148 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11149
11150 * utils.c (prompt_for_continue): Don't restore the styling at the
11151 end, as applied_style has the wrong value. This fixes styling in
11152 long lists of file names that are interrupted by the "Continue?"
11153 prompt.
11154
11155 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11156
11157 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11158 * c-lang.c (c_language_defn): Likewise.
11159 (cplus_language_defn): Likewise.
11160 (asm_language_defn): Likewise.
11161 (minimal_language_defn): Likewise.
11162 * d-lang.c (d_language_defn): Likewise.
11163 * f-lang.c (f_language_defn): Likewise.
11164 * go-lang.c (go_language_defn): Likewise.
11165 * language.c (unknown_language_defn): Likewise.
11166 (auto_language_defn): Likewise.
11167 * language.h (struct language_defn): Remove la_magic field.
11168 (LANG_MAGIC): Delete.
11169 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11170 * objc-lang.c (objc_language_defn): Likewise.
11171 * opencl-lang.c (opencl_language_defn): Likewise.
11172 * p-lang.c (pascal_language_defn): Likewise.
11173 * rust-lang.c (rust_language_defn): Likewise.
11174
11175 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11176
11177 * riscv-tdep.c (riscv_type_align): New function.
11178 (riscv_type_alignment): Delete.
11179 (riscv_arg_location): Use 'type_align'.
11180 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11181
11182 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11183
11184 * gdbtypes.c (type_align): A struct with no non-static fields also
11185 has alignment of 1.
11186
11187 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11188
11189 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11190 component to 0.
11191 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11192 member.
11193 (riscv_struct_info::analyse): New implementation using new
11194 analyse_inner member function.
11195 (riscv_struct_info::field_offset): New member function.
11196 (riscv_struct_info::m_offsets): New member variable.
11197 (riscv_struct_info::analyse_inner): New private member function,
11198 takes the old implementation of riscv_struct_info::analyse but
11199 extended to track field offsets.
11200 (riscv_call_arg_struct): Update the struct folding special cases
11201 to handle cases where empty C++ structs, which are non-zero
11202 length, are found.
11203 (riscv_arg_location): Initialise the length of each location, a
11204 non-zero length now indicates the location is in use.
11205 (riscv_push_dummy_call): Allow for the first location having a
11206 non-zero offset when setting up arguments.
11207 (riscv_return_value): Likewise, but for return values.
11208
11209 2019-04-11 Tom Tromey <tromey@adacore.com>
11210
11211 * utils.c (internal_vproblem): Make "msg" const.
11212
11213 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11214
11215 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11216 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11217 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11218 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11219
11220 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11221
11222 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11223 function.
11224 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11225 of amd64_collect_native_gregset.
11226 (amd64_linux_nat_target::store_registers): Likewise.
11227
11228 2019-04-10 Tom Tromey <tom@tromey.com>
11229
11230 * symtab.c (lookup_global_symbol_from_objfile)
11231 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11232 * objfiles.h (class separate_debug_iterator): New.
11233 (class separate_debug_range): New.
11234 (struct objfile) <separate_debug_objfiles>: New method.
11235 (objfile_separate_debug_iterate): Don't declare.
11236 * objfiles.c (separate_debug_iterator::operator++): Rename from
11237 objfile_separate_debug_iterate.
11238 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11239 iterator.
11240 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11241 iterator.
11242
11243 2019-04-10 Tom Tromey <tom@tromey.com>
11244
11245 * symfile.c (reread_symbols): Remove old comment.
11246 * objfiles.c (free_all_objfiles): Fix a typo.
11247
11248 2019-04-10 Tom Tromey <tom@tromey.com>
11249
11250 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11251 * minsyms.c (lookup_minimal_symbol): Use foreach.
11252 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11253 (lookup_minimal_symbol_solib_trampoline): Likewise.
11254 * symfile.c (reread_symbols): Use foreach.
11255
11256 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11257 Tom Tromey <tromey@adacore.com>
11258
11259 PR rust/24414:
11260 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11261 (rust_lex_int_test): Change "value" to be LONGEST.
11262 (rust_lex_tests): Add test for long integer literal.
11263
11264 2019-04-09 Tom Tromey <tromey@adacore.com>
11265
11266 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11267 to bool.
11268 (extended_remote_target::attach): Update.
11269 (remote_target::remote_notice_new_inferior): Update.
11270 (remote_target::add_current_inferior_and_thread): Update.
11271 * inferior.c (exit_inferior_1): Use "false".
11272 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11273
11274 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11275
11276 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11277 the "start" command.
11278
11279 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11280
11281 * python/py-inferior.c (infpy_thread_from_thread_handle):
11282 Adjust comments to reflect renaming of thread_from_thread_handle
11283 to thread_from_handle. Adjust keywords. Fix type error message.
11284 (inferior_object_methods): Add thread_from_handle. Retain
11285 thread_from_thread_handle, but mark it as deprecated.
11286
11287 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11288
11289 * gdbthread.h (find_thread_by_handle): Revise declaration.
11290 * thread.c (find_thread_by_handle): Likewise. Adjust
11291 implementation too.
11292 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11293 support for buffer objects as handles.
11294
11295 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11296
11297 * python/py-infthread.c (thpy_thread_handle): New function.
11298 (thread_object_methods): Register thpy_thread_handle.
11299
11300 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11301
11302 * gdbthread.h (thread_to_thread_handle): Declare.
11303 * thread.c (gdbtypes.h): Include.
11304 (thread_to_thread_handle): New function.
11305
11306 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11307 (target_thread_info_to_thread_handle): Declare.
11308 * target.c (target_thread_info_to_thread_handle): New function.
11309 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11310 * target-delegates.c: Regenerate.
11311
11312 * linux-thread-db.c (class thread_db_target): Add method
11313 thread_info_to_thread_handle.
11314 (thread_db_target::thread_info_to_thread_handle): Define.
11315 * remote.c (class remote_target): Add new method
11316 thread_info_to_thread_handle.
11317 (remote_target::thread_info_to_thread_handle): Define.
11318
11319 2019-04-08 Pedro Alves <palves@redhat.com>
11320
11321 * common/common-exceptions.c (throw_exception): Don't create
11322 named object to throw; throw directly.
11323 (throw_it): Likewise. Don't initialize gdb_exception::message
11324 here, with new; pass FMT and AP to the ctor instead.
11325 * common/common-exceptions.h: Include <string>.
11326 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11327 const char *, va_list)): New ctor. Use std::make_shared.
11328 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11329 errors)): Delete.
11330 (gdb_exception_error::gdb_exception_error(enum errors, const char
11331 *, va_list)): New.
11332 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11333 Add assertion.
11334 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11335 errors)): Delete.
11336 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11337 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11338 Add assertion.
11339
11340 2019-04-08 Tom Tromey <tom@tromey.com>
11341
11342 * valops.c (value_rtti_indirect_type): Replace throw_exception
11343 with throw.
11344 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11345 with throw.
11346 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11347 throw.
11348 * target.c (target_translate_tls_address): Replace throw_exception
11349 with throw.
11350 * stack.c (frame_apply_command_count): Replace throw_exception
11351 with throw.
11352 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11353 throw.
11354 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11355 with throw.
11356 * rs6000-tdep.c (rs6000_frame_cache)
11357 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11358 * remote.c: Replace throw_exception with throw.
11359 * record-full.c (record_full_message, record_full_wait_1)
11360 (record_full_restore): Replace throw_exception with throw.
11361 * record-btrace.c:
11362 (get_thread_current_frame_id, record_btrace_start_replaying)
11363 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11364 (cmd_record_btrace_start): Replace throw_exception with throw.
11365 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11366 throw.
11367 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11368 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11369 * linespec.c:
11370 (find_linespec_symbols): Replace throw_exception with throw.
11371 * infrun.c (displaced_step_prepare, resume): Replace
11372 throw_exception with throw.
11373 * infcmd.c (post_create_inferior): Replace throw_exception with
11374 throw.
11375 * inf-loop.c (inferior_event_handler): Replace throw_exception
11376 with throw.
11377 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11378 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11379 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11380 (get_prev_frame_always, get_frame_pc_if_available)
11381 (get_frame_address_in_block_if_available, get_frame_language):
11382 Replace throw_exception with throw.
11383 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11384 throw_exception with throw.
11385 * eval.c (fetch_subexp_value, evaluate_var_value)
11386 (evaluate_funcall, evaluate_subexp_standard): Replace
11387 throw_exception with throw.
11388 * dwarf2loc.c (call_site_find_chain)
11389 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11390 Replace throw_exception with throw.
11391 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11392 with throw.
11393 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11394 throw.
11395 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11396 * completer.c (complete_line_internal): Replace throw_exception
11397 with throw.
11398 * compile/compile-object-run.c (compile_object_run): Replace
11399 throw_exception with throw.
11400 * cli/cli-script.c (process_next_line): Replace throw_exception
11401 with throw.
11402 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11403 (btrace_enable, btrace_maint_update_pt_packets): Replace
11404 throw_exception with throw.
11405 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11406 throw_exception with throw.
11407 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11408 throw_exception with throw.
11409 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11410 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11411 * aarch64-tdep.c (aarch64_make_prologue_cache)
11412 (aarch64_make_stub_cache): Replace throw_exception with throw.
11413
11414 2019-04-08 Tom Tromey <tom@tromey.com>
11415
11416 * common/common-exceptions.c (throw_exception): Rename from
11417 throw_exception_cxx. Remove old copy. Make argument const.
11418 (throw_it): Create and throw exception objects directly.
11419 * common/common-exceptions.h (throw_exception): Make argument
11420 const.
11421 (struct gdb_exception_error): Add constructor.
11422 (struct gdb_exception_quit): Add constructor.
11423
11424 2019-04-08 Tom Tromey <tom@tromey.com>
11425
11426 * common/common-exceptions.h (exception_rethrow): Don't declare.
11427 (TRY_SJLJ): Update comment.
11428 (TRY, CATCH, END_CATCH): Remove.
11429 * common/common-exceptions.c (exception_rethrow): Remove.
11430
11431 2019-04-08 Tom Tromey <tom@tromey.com>
11432
11433 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11434 Remove.
11435 (gdb_exception_error): Rename from
11436 gdb_exception_RETURN_MASK_ERROR.
11437 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11438 (gdb_quit_bad_alloc): Update.
11439 * aarch64-tdep.c: Update.
11440 * ada-lang.c: Update.
11441 * ada-typeprint.c: Update.
11442 * ada-valprint.c: Update.
11443 * amd64-tdep.c: Update.
11444 * arch-utils.c: Update.
11445 * break-catch-throw.c: Update.
11446 * breakpoint.c: Update.
11447 * btrace.c: Update.
11448 * c-varobj.c: Update.
11449 * cli/cli-cmds.c: Update.
11450 * cli/cli-interp.c: Update.
11451 * cli/cli-script.c: Update.
11452 * common/common-exceptions.c: Update.
11453 * common/new-op.c: Update.
11454 * common/selftest.c: Update.
11455 * compile/compile-c-symbols.c: Update.
11456 * compile/compile-cplus-symbols.c: Update.
11457 * compile/compile-object-load.c: Update.
11458 * compile/compile-object-run.c: Update.
11459 * completer.c: Update.
11460 * corelow.c: Update.
11461 * cp-abi.c: Update.
11462 * cp-support.c: Update.
11463 * cp-valprint.c: Update.
11464 * darwin-nat.c: Update.
11465 * disasm-selftests.c: Update.
11466 * dtrace-probe.c: Update.
11467 * dwarf-index-cache.c: Update.
11468 * dwarf-index-write.c: Update.
11469 * dwarf2-frame-tailcall.c: Update.
11470 * dwarf2-frame.c: Update.
11471 * dwarf2loc.c: Update.
11472 * dwarf2read.c: Update.
11473 * eval.c: Update.
11474 * event-loop.c: Update.
11475 * event-top.c: Update.
11476 * exec.c: Update.
11477 * f-valprint.c: Update.
11478 * fbsd-tdep.c: Update.
11479 * frame-unwind.c: Update.
11480 * frame.c: Update.
11481 * gdbtypes.c: Update.
11482 * gnu-v3-abi.c: Update.
11483 * guile/guile-internal.h: Update.
11484 * guile/scm-block.c: Update.
11485 * guile/scm-breakpoint.c: Update.
11486 * guile/scm-cmd.c: Update.
11487 * guile/scm-disasm.c: Update.
11488 * guile/scm-frame.c: Update.
11489 * guile/scm-lazy-string.c: Update.
11490 * guile/scm-math.c: Update.
11491 * guile/scm-param.c: Update.
11492 * guile/scm-ports.c: Update.
11493 * guile/scm-pretty-print.c: Update.
11494 * guile/scm-symbol.c: Update.
11495 * guile/scm-symtab.c: Update.
11496 * guile/scm-type.c: Update.
11497 * guile/scm-value.c: Update.
11498 * i386-linux-tdep.c: Update.
11499 * i386-tdep.c: Update.
11500 * inf-loop.c: Update.
11501 * infcall.c: Update.
11502 * infcmd.c: Update.
11503 * infrun.c: Update.
11504 * jit.c: Update.
11505 * language.c: Update.
11506 * linespec.c: Update.
11507 * linux-fork.c: Update.
11508 * linux-nat.c: Update.
11509 * linux-tdep.c: Update.
11510 * linux-thread-db.c: Update.
11511 * main.c: Update.
11512 * mi/mi-cmd-break.c: Update.
11513 * mi/mi-cmd-stack.c: Update.
11514 * mi/mi-interp.c: Update.
11515 * mi/mi-main.c: Update.
11516 * objc-lang.c: Update.
11517 * p-valprint.c: Update.
11518 * parse.c: Update.
11519 * ppc-linux-tdep.c: Update.
11520 * printcmd.c: Update.
11521 * python/py-arch.c: Update.
11522 * python/py-breakpoint.c: Update.
11523 * python/py-cmd.c: Update.
11524 * python/py-finishbreakpoint.c: Update.
11525 * python/py-frame.c: Update.
11526 * python/py-framefilter.c: Update.
11527 * python/py-gdb-readline.c: Update.
11528 * python/py-inferior.c: Update.
11529 * python/py-infthread.c: Update.
11530 * python/py-lazy-string.c: Update.
11531 * python/py-linetable.c: Update.
11532 * python/py-objfile.c: Update.
11533 * python/py-param.c: Update.
11534 * python/py-prettyprint.c: Update.
11535 * python/py-progspace.c: Update.
11536 * python/py-record-btrace.c: Update.
11537 * python/py-record.c: Update.
11538 * python/py-symbol.c: Update.
11539 * python/py-type.c: Update.
11540 * python/py-unwind.c: Update.
11541 * python/py-utils.c: Update.
11542 * python/py-value.c: Update.
11543 * python/python.c: Update.
11544 * record-btrace.c: Update.
11545 * record-full.c: Update.
11546 * remote-fileio.c: Update.
11547 * remote.c: Update.
11548 * riscv-tdep.c: Update.
11549 * rs6000-aix-tdep.c: Update.
11550 * rs6000-tdep.c: Update.
11551 * rust-exp.y: Update.
11552 * rust-lang.c: Update.
11553 * s390-tdep.c: Update.
11554 * selftest-arch.c: Update.
11555 * solib-dsbt.c: Update.
11556 * solib-frv.c: Update.
11557 * solib-spu.c: Update.
11558 * solib-svr4.c: Update.
11559 * solib.c: Update.
11560 * sparc64-linux-tdep.c: Update.
11561 * stack.c: Update.
11562 * symfile-mem.c: Update.
11563 * symmisc.c: Update.
11564 * target.c: Update.
11565 * thread.c: Update.
11566 * top.c: Update.
11567 * tracefile-tfile.c: Update.
11568 * tui/tui.c: Update.
11569 * typeprint.c: Update.
11570 * unittests/cli-utils-selftests.c: Update.
11571 * unittests/parse-connection-spec-selftests.c: Update.
11572 * valops.c: Update.
11573 * valprint.c: Update.
11574 * value.c: Update.
11575 * varobj.c: Update.
11576 * windows-nat.c: Update.
11577 * x86-linux-nat.c: Update.
11578 * xml-support.c: Update.
11579
11580 2019-04-08 Tom Tromey <tom@tromey.com>
11581
11582 * xml-support.c: Use C++ exception handling.
11583 * x86-linux-nat.c: Use C++ exception handling.
11584 * windows-nat.c: Use C++ exception handling.
11585 * varobj.c: Use C++ exception handling.
11586 * value.c: Use C++ exception handling.
11587 * valprint.c: Use C++ exception handling.
11588 * valops.c: Use C++ exception handling.
11589 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11590 handling.
11591 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11592 * typeprint.c: Use C++ exception handling.
11593 * tui/tui.c: Use C++ exception handling.
11594 * tracefile-tfile.c: Use C++ exception handling.
11595 * top.c: Use C++ exception handling.
11596 * thread.c: Use C++ exception handling.
11597 * target.c: Use C++ exception handling.
11598 * symmisc.c: Use C++ exception handling.
11599 * symfile-mem.c: Use C++ exception handling.
11600 * stack.c: Use C++ exception handling.
11601 * sparc64-linux-tdep.c: Use C++ exception handling.
11602 * solib.c: Use C++ exception handling.
11603 * solib-svr4.c: Use C++ exception handling.
11604 * solib-spu.c: Use C++ exception handling.
11605 * solib-frv.c: Use C++ exception handling.
11606 * solib-dsbt.c: Use C++ exception handling.
11607 * selftest-arch.c: Use C++ exception handling.
11608 * s390-tdep.c: Use C++ exception handling.
11609 * rust-lang.c: Use C++ exception handling.
11610 * rust-exp.y: Use C++ exception handling.
11611 * rs6000-tdep.c: Use C++ exception handling.
11612 * rs6000-aix-tdep.c: Use C++ exception handling.
11613 * riscv-tdep.c: Use C++ exception handling.
11614 * remote.c: Use C++ exception handling.
11615 * remote-fileio.c: Use C++ exception handling.
11616 * record-full.c: Use C++ exception handling.
11617 * record-btrace.c: Use C++ exception handling.
11618 * python/python.c: Use C++ exception handling.
11619 * python/py-value.c: Use C++ exception handling.
11620 * python/py-utils.c: Use C++ exception handling.
11621 * python/py-unwind.c: Use C++ exception handling.
11622 * python/py-type.c: Use C++ exception handling.
11623 * python/py-symbol.c: Use C++ exception handling.
11624 * python/py-record.c: Use C++ exception handling.
11625 * python/py-record-btrace.c: Use C++ exception handling.
11626 * python/py-progspace.c: Use C++ exception handling.
11627 * python/py-prettyprint.c: Use C++ exception handling.
11628 * python/py-param.c: Use C++ exception handling.
11629 * python/py-objfile.c: Use C++ exception handling.
11630 * python/py-linetable.c: Use C++ exception handling.
11631 * python/py-lazy-string.c: Use C++ exception handling.
11632 * python/py-infthread.c: Use C++ exception handling.
11633 * python/py-inferior.c: Use C++ exception handling.
11634 * python/py-gdb-readline.c: Use C++ exception handling.
11635 * python/py-framefilter.c: Use C++ exception handling.
11636 * python/py-frame.c: Use C++ exception handling.
11637 * python/py-finishbreakpoint.c: Use C++ exception handling.
11638 * python/py-cmd.c: Use C++ exception handling.
11639 * python/py-breakpoint.c: Use C++ exception handling.
11640 * python/py-arch.c: Use C++ exception handling.
11641 * printcmd.c: Use C++ exception handling.
11642 * ppc-linux-tdep.c: Use C++ exception handling.
11643 * parse.c: Use C++ exception handling.
11644 * p-valprint.c: Use C++ exception handling.
11645 * objc-lang.c: Use C++ exception handling.
11646 * mi/mi-main.c: Use C++ exception handling.
11647 * mi/mi-interp.c: Use C++ exception handling.
11648 * mi/mi-cmd-stack.c: Use C++ exception handling.
11649 * mi/mi-cmd-break.c: Use C++ exception handling.
11650 * main.c: Use C++ exception handling.
11651 * linux-thread-db.c: Use C++ exception handling.
11652 * linux-tdep.c: Use C++ exception handling.
11653 * linux-nat.c: Use C++ exception handling.
11654 * linux-fork.c: Use C++ exception handling.
11655 * linespec.c: Use C++ exception handling.
11656 * language.c: Use C++ exception handling.
11657 * jit.c: Use C++ exception handling.
11658 * infrun.c: Use C++ exception handling.
11659 * infcmd.c: Use C++ exception handling.
11660 * infcall.c: Use C++ exception handling.
11661 * inf-loop.c: Use C++ exception handling.
11662 * i386-tdep.c: Use C++ exception handling.
11663 * i386-linux-tdep.c: Use C++ exception handling.
11664 * guile/scm-value.c: Use C++ exception handling.
11665 * guile/scm-type.c: Use C++ exception handling.
11666 * guile/scm-symtab.c: Use C++ exception handling.
11667 * guile/scm-symbol.c: Use C++ exception handling.
11668 * guile/scm-pretty-print.c: Use C++ exception handling.
11669 * guile/scm-ports.c: Use C++ exception handling.
11670 * guile/scm-param.c: Use C++ exception handling.
11671 * guile/scm-math.c: Use C++ exception handling.
11672 * guile/scm-lazy-string.c: Use C++ exception handling.
11673 * guile/scm-frame.c: Use C++ exception handling.
11674 * guile/scm-disasm.c: Use C++ exception handling.
11675 * guile/scm-cmd.c: Use C++ exception handling.
11676 * guile/scm-breakpoint.c: Use C++ exception handling.
11677 * guile/scm-block.c: Use C++ exception handling.
11678 * guile/guile-internal.h: Use C++ exception handling.
11679 * gnu-v3-abi.c: Use C++ exception handling.
11680 * gdbtypes.c: Use C++ exception handling.
11681 * frame.c: Use C++ exception handling.
11682 * frame-unwind.c: Use C++ exception handling.
11683 * fbsd-tdep.c: Use C++ exception handling.
11684 * f-valprint.c: Use C++ exception handling.
11685 * exec.c: Use C++ exception handling.
11686 * event-top.c: Use C++ exception handling.
11687 * event-loop.c: Use C++ exception handling.
11688 * eval.c: Use C++ exception handling.
11689 * dwarf2read.c: Use C++ exception handling.
11690 * dwarf2loc.c: Use C++ exception handling.
11691 * dwarf2-frame.c: Use C++ exception handling.
11692 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11693 * dwarf-index-write.c: Use C++ exception handling.
11694 * dwarf-index-cache.c: Use C++ exception handling.
11695 * dtrace-probe.c: Use C++ exception handling.
11696 * disasm-selftests.c: Use C++ exception handling.
11697 * darwin-nat.c: Use C++ exception handling.
11698 * cp-valprint.c: Use C++ exception handling.
11699 * cp-support.c: Use C++ exception handling.
11700 * cp-abi.c: Use C++ exception handling.
11701 * corelow.c: Use C++ exception handling.
11702 * completer.c: Use C++ exception handling.
11703 * compile/compile-object-run.c: Use C++ exception handling.
11704 * compile/compile-object-load.c: Use C++ exception handling.
11705 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11706 * compile/compile-c-symbols.c: Use C++ exception handling.
11707 * common/selftest.c: Use C++ exception handling.
11708 * common/new-op.c: Use C++ exception handling.
11709 * cli/cli-script.c: Use C++ exception handling.
11710 * cli/cli-interp.c: Use C++ exception handling.
11711 * cli/cli-cmds.c: Use C++ exception handling.
11712 * c-varobj.c: Use C++ exception handling.
11713 * btrace.c: Use C++ exception handling.
11714 * breakpoint.c: Use C++ exception handling.
11715 * break-catch-throw.c: Use C++ exception handling.
11716 * arch-utils.c: Use C++ exception handling.
11717 * amd64-tdep.c: Use C++ exception handling.
11718 * ada-valprint.c: Use C++ exception handling.
11719 * ada-typeprint.c: Use C++ exception handling.
11720 * ada-lang.c: Use C++ exception handling.
11721 * aarch64-tdep.c: Use C++ exception handling.
11722
11723 2019-04-08 Tom Tromey <tom@tromey.com>
11724
11725 * xml-support.c (gdb_xml_parser::parse): Update.
11726 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11727 * value.c (show_convenience): Update.
11728 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11729 (test_parse_flags_qcs): Update.
11730 * thread.c (thr_try_catch_cmd): Update.
11731 * target.c (target_translate_tls_address): Update.
11732 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11733 (info_frame_command_core, frame_apply_command_count): Update.
11734 * rust-exp.y (rust_lex_exception_test): Update.
11735 * riscv-tdep.c (riscv_print_one_register_info): Update.
11736 * remote.c (remote_target::enable_btrace): Update.
11737 * record-btrace.c (record_btrace_enable_warn): Update.
11738 * python/py-utils.c (gdbpy_convert_exception): Update.
11739 * printcmd.c (do_one_display, print_variable_and_value): Update.
11740 * mi/mi-main.c (mi_print_exception): Update.
11741 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11742 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11743 * linux-nat.c (linux_nat_target::attach): Update.
11744 * linux-fork.c (class scoped_switch_fork_info): Update.
11745 * infrun.c (displaced_step_prepare): Update.
11746 * infcall.c (call_function_by_hand_dummy): Update.
11747 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11748 * gnu-v3-abi.c (print_one_vtable): Update.
11749 * frame.c (get_prev_frame_always): Update.
11750 * f-valprint.c (info_common_command_for_block): Update.
11751 * exec.c (try_open_exec_file): Update.
11752 * exceptions.c (print_exception, exception_print)
11753 (exception_fprintf, exception_print_same): Update.
11754 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11755 * dwarf-index-cache.c (index_cache::store)
11756 (index_cache::lookup_gdb_index): Update.
11757 * darwin-nat.c (maybe_cache_shell): Update.
11758 * cp-valprint.c (cp_print_value_fields): Update.
11759 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11760 (gcc_cplus_symbol_address): Update.
11761 * compile/compile-c-symbols.c (gcc_convert_symbol)
11762 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11763 * common/selftest.c: Update.
11764 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11765 a std::string.
11766 (exception_try_scope_entry, exception_try_scope_exit): Don't
11767 declare.
11768 (struct exception_try_scope): Remove.
11769 (TRY): Don't use exception_try_scope.
11770 (struct gdb_exception): Add constructor, operator=.
11771 <what>: New method.
11772 (struct gdb_exception_RETURN_MASK_ALL)
11773 (struct gdb_exception_RETURN_MASK_ERROR)
11774 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11775 (struct gdb_quit_bad_alloc): Update.
11776 * common/common-exceptions.c (exception_none): Change
11777 initializer.
11778 (struct catcher) <state, exception>: Initialize inline.
11779 <prev>: Remove member.
11780 (current_catcher): Remove.
11781 (catchers): New global.
11782 (exceptions_state_mc_init): Simplify.
11783 (catcher_pop): Remove.
11784 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11785 (try_scope_depth, exception_try_scope_entry)
11786 (exception_try_scope_exit): Remove.
11787 (throw_exception_sjlj): Update.
11788 (exception_messages, exception_messages_size): Remove.
11789 (throw_it): Simplify.
11790 (gdb_exception_sliced_copy): Remove.
11791 (throw_exception_cxx): Update.
11792 * cli/cli-script.c (script_from_file): Update.
11793 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11794 Update.
11795 * ada-valprint.c (ada_val_print): Update.
11796 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11797 (create_excep_cond_exprs): Update.
11798
11799 2019-04-08 Tom Tromey <tom@tromey.com>
11800
11801 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11802 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11803 (TRY, CATCH, END_CATCH): Remove some definitions.
11804 * common/common-exceptions.c: Don't use GDB_XCPT.
11805 (catcher_list_size): Remove.
11806 (throw_exception, throw_it): Simplify.
11807
11808 2019-04-05 Tom Tromey <tom@tromey.com>
11809
11810 Revert the header-sorting patch.
11811 * ft32-tdep.c: Revert.
11812 * frv-tdep.c: Revert.
11813 * frv-linux-tdep.c: Revert.
11814 * frame.c: Revert.
11815 * frame-unwind.c: Revert.
11816 * frame-base.c: Revert.
11817 * fork-child.c: Revert.
11818 * findvar.c: Revert.
11819 * findcmd.c: Revert.
11820 * filesystem.c: Revert.
11821 * filename-seen-cache.h: Revert.
11822 * filename-seen-cache.c: Revert.
11823 * fbsd-tdep.c: Revert.
11824 * fbsd-nat.h: Revert.
11825 * fbsd-nat.c: Revert.
11826 * f-valprint.c: Revert.
11827 * f-typeprint.c: Revert.
11828 * f-lang.c: Revert.
11829 * extension.h: Revert.
11830 * extension.c: Revert.
11831 * extension-priv.h: Revert.
11832 * expprint.c: Revert.
11833 * exec.h: Revert.
11834 * exec.c: Revert.
11835 * exceptions.c: Revert.
11836 * event-top.c: Revert.
11837 * event-loop.c: Revert.
11838 * eval.c: Revert.
11839 * elfread.c: Revert.
11840 * dwarf2read.h: Revert.
11841 * dwarf2read.c: Revert.
11842 * dwarf2loc.c: Revert.
11843 * dwarf2expr.h: Revert.
11844 * dwarf2expr.c: Revert.
11845 * dwarf2-frame.c: Revert.
11846 * dwarf2-frame-tailcall.c: Revert.
11847 * dwarf-index-write.h: Revert.
11848 * dwarf-index-write.c: Revert.
11849 * dwarf-index-common.c: Revert.
11850 * dwarf-index-cache.h: Revert.
11851 * dwarf-index-cache.c: Revert.
11852 * dummy-frame.c: Revert.
11853 * dtrace-probe.c: Revert.
11854 * disasm.h: Revert.
11855 * disasm.c: Revert.
11856 * disasm-selftests.c: Revert.
11857 * dictionary.c: Revert.
11858 * dicos-tdep.c: Revert.
11859 * demangle.c: Revert.
11860 * dcache.h: Revert.
11861 * dcache.c: Revert.
11862 * darwin-nat.h: Revert.
11863 * darwin-nat.c: Revert.
11864 * darwin-nat-info.c: Revert.
11865 * d-valprint.c: Revert.
11866 * d-namespace.c: Revert.
11867 * d-lang.c: Revert.
11868 * ctf.c: Revert.
11869 * csky-tdep.c: Revert.
11870 * csky-linux-tdep.c: Revert.
11871 * cris-tdep.c: Revert.
11872 * cris-linux-tdep.c: Revert.
11873 * cp-valprint.c: Revert.
11874 * cp-support.c: Revert.
11875 * cp-namespace.c: Revert.
11876 * cp-abi.c: Revert.
11877 * corelow.c: Revert.
11878 * corefile.c: Revert.
11879 * continuations.c: Revert.
11880 * completer.h: Revert.
11881 * completer.c: Revert.
11882 * complaints.c: Revert.
11883 * coffread.c: Revert.
11884 * coff-pe-read.c: Revert.
11885 * cli-out.h: Revert.
11886 * cli-out.c: Revert.
11887 * charset.c: Revert.
11888 * c-varobj.c: Revert.
11889 * c-valprint.c: Revert.
11890 * c-typeprint.c: Revert.
11891 * c-lang.c: Revert.
11892 * buildsym.c: Revert.
11893 * buildsym-legacy.c: Revert.
11894 * build-id.h: Revert.
11895 * build-id.c: Revert.
11896 * btrace.c: Revert.
11897 * bsd-uthread.c: Revert.
11898 * breakpoint.h: Revert.
11899 * breakpoint.c: Revert.
11900 * break-catch-throw.c: Revert.
11901 * break-catch-syscall.c: Revert.
11902 * break-catch-sig.c: Revert.
11903 * blockframe.c: Revert.
11904 * block.c: Revert.
11905 * bfin-tdep.c: Revert.
11906 * bfin-linux-tdep.c: Revert.
11907 * bfd-target.c: Revert.
11908 * bcache.c: Revert.
11909 * ax-general.c: Revert.
11910 * ax-gdb.h: Revert.
11911 * ax-gdb.c: Revert.
11912 * avr-tdep.c: Revert.
11913 * auxv.c: Revert.
11914 * auto-load.c: Revert.
11915 * arm-wince-tdep.c: Revert.
11916 * arm-tdep.c: Revert.
11917 * arm-symbian-tdep.c: Revert.
11918 * arm-pikeos-tdep.c: Revert.
11919 * arm-obsd-tdep.c: Revert.
11920 * arm-nbsd-tdep.c: Revert.
11921 * arm-nbsd-nat.c: Revert.
11922 * arm-linux-tdep.c: Revert.
11923 * arm-linux-nat.c: Revert.
11924 * arm-fbsd-tdep.c: Revert.
11925 * arm-fbsd-nat.c: Revert.
11926 * arm-bsd-tdep.c: Revert.
11927 * arch-utils.c: Revert.
11928 * arc-tdep.c: Revert.
11929 * arc-newlib-tdep.c: Revert.
11930 * annotate.h: Revert.
11931 * annotate.c: Revert.
11932 * amd64-windows-tdep.c: Revert.
11933 * amd64-windows-nat.c: Revert.
11934 * amd64-tdep.c: Revert.
11935 * amd64-sol2-tdep.c: Revert.
11936 * amd64-obsd-tdep.c: Revert.
11937 * amd64-obsd-nat.c: Revert.
11938 * amd64-nbsd-tdep.c: Revert.
11939 * amd64-nbsd-nat.c: Revert.
11940 * amd64-nat.c: Revert.
11941 * amd64-linux-tdep.c: Revert.
11942 * amd64-linux-nat.c: Revert.
11943 * amd64-fbsd-tdep.c: Revert.
11944 * amd64-fbsd-nat.c: Revert.
11945 * amd64-dicos-tdep.c: Revert.
11946 * amd64-darwin-tdep.c: Revert.
11947 * amd64-bsd-nat.c: Revert.
11948 * alpha-tdep.c: Revert.
11949 * alpha-obsd-tdep.c: Revert.
11950 * alpha-nbsd-tdep.c: Revert.
11951 * alpha-mdebug-tdep.c: Revert.
11952 * alpha-linux-tdep.c: Revert.
11953 * alpha-linux-nat.c: Revert.
11954 * alpha-bsd-tdep.c: Revert.
11955 * alpha-bsd-nat.c: Revert.
11956 * aix-thread.c: Revert.
11957 * agent.c: Revert.
11958 * addrmap.c: Revert.
11959 * ada-varobj.c: Revert.
11960 * ada-valprint.c: Revert.
11961 * ada-typeprint.c: Revert.
11962 * ada-tasks.c: Revert.
11963 * ada-lang.c: Revert.
11964 * aarch64-tdep.c: Revert.
11965 * aarch64-ravenscar-thread.c: Revert.
11966 * aarch64-newlib-tdep.c: Revert.
11967 * aarch64-linux-tdep.c: Revert.
11968 * aarch64-linux-nat.c: Revert.
11969 * aarch64-fbsd-tdep.c: Revert.
11970 * aarch64-fbsd-nat.c: Revert.
11971 * aarch32-linux-nat.c: Revert.
11972
11973 2019-04-05 Tom Tromey <tom@tromey.com>
11974
11975 * ft32-tdep.c: Sort headers.
11976 * frv-tdep.c: Sort headers.
11977 * frv-linux-tdep.c: Sort headers.
11978 * frame.c: Sort headers.
11979 * frame-unwind.c: Sort headers.
11980 * frame-base.c: Sort headers.
11981 * fork-child.c: Sort headers.
11982 * findvar.c: Sort headers.
11983 * findcmd.c: Sort headers.
11984 * filesystem.c: Sort headers.
11985 * filename-seen-cache.h: Sort headers.
11986 * filename-seen-cache.c: Sort headers.
11987 * fbsd-tdep.c: Sort headers.
11988 * fbsd-nat.h: Sort headers.
11989 * fbsd-nat.c: Sort headers.
11990 * f-valprint.c: Sort headers.
11991 * f-typeprint.c: Sort headers.
11992 * f-lang.c: Sort headers.
11993 * extension.h: Sort headers.
11994 * extension.c: Sort headers.
11995 * extension-priv.h: Sort headers.
11996 * expprint.c: Sort headers.
11997 * exec.h: Sort headers.
11998 * exec.c: Sort headers.
11999 * exceptions.c: Sort headers.
12000 * event-top.c: Sort headers.
12001 * event-loop.c: Sort headers.
12002 * eval.c: Sort headers.
12003 * elfread.c: Sort headers.
12004 * dwarf2read.h: Sort headers.
12005 * dwarf2read.c: Sort headers.
12006 * dwarf2loc.c: Sort headers.
12007 * dwarf2expr.h: Sort headers.
12008 * dwarf2expr.c: Sort headers.
12009 * dwarf2-frame.c: Sort headers.
12010 * dwarf2-frame-tailcall.c: Sort headers.
12011 * dwarf-index-write.h: Sort headers.
12012 * dwarf-index-write.c: Sort headers.
12013 * dwarf-index-common.c: Sort headers.
12014 * dwarf-index-cache.h: Sort headers.
12015 * dwarf-index-cache.c: Sort headers.
12016 * dummy-frame.c: Sort headers.
12017 * dtrace-probe.c: Sort headers.
12018 * disasm.h: Sort headers.
12019 * disasm.c: Sort headers.
12020 * disasm-selftests.c: Sort headers.
12021 * dictionary.c: Sort headers.
12022 * dicos-tdep.c: Sort headers.
12023 * demangle.c: Sort headers.
12024 * dcache.h: Sort headers.
12025 * dcache.c: Sort headers.
12026 * darwin-nat.h: Sort headers.
12027 * darwin-nat.c: Sort headers.
12028 * darwin-nat-info.c: Sort headers.
12029 * d-valprint.c: Sort headers.
12030 * d-namespace.c: Sort headers.
12031 * d-lang.c: Sort headers.
12032 * ctf.c: Sort headers.
12033 * csky-tdep.c: Sort headers.
12034 * csky-linux-tdep.c: Sort headers.
12035 * cris-tdep.c: Sort headers.
12036 * cris-linux-tdep.c: Sort headers.
12037 * cp-valprint.c: Sort headers.
12038 * cp-support.c: Sort headers.
12039 * cp-namespace.c: Sort headers.
12040 * cp-abi.c: Sort headers.
12041 * corelow.c: Sort headers.
12042 * corefile.c: Sort headers.
12043 * continuations.c: Sort headers.
12044 * completer.h: Sort headers.
12045 * completer.c: Sort headers.
12046 * complaints.c: Sort headers.
12047 * coffread.c: Sort headers.
12048 * coff-pe-read.c: Sort headers.
12049 * cli-out.h: Sort headers.
12050 * cli-out.c: Sort headers.
12051 * charset.c: Sort headers.
12052 * c-varobj.c: Sort headers.
12053 * c-valprint.c: Sort headers.
12054 * c-typeprint.c: Sort headers.
12055 * c-lang.c: Sort headers.
12056 * buildsym.c: Sort headers.
12057 * buildsym-legacy.c: Sort headers.
12058 * build-id.h: Sort headers.
12059 * build-id.c: Sort headers.
12060 * btrace.c: Sort headers.
12061 * bsd-uthread.c: Sort headers.
12062 * breakpoint.h: Sort headers.
12063 * breakpoint.c: Sort headers.
12064 * break-catch-throw.c: Sort headers.
12065 * break-catch-syscall.c: Sort headers.
12066 * break-catch-sig.c: Sort headers.
12067 * blockframe.c: Sort headers.
12068 * block.c: Sort headers.
12069 * bfin-tdep.c: Sort headers.
12070 * bfin-linux-tdep.c: Sort headers.
12071 * bfd-target.c: Sort headers.
12072 * bcache.c: Sort headers.
12073 * ax-general.c: Sort headers.
12074 * ax-gdb.h: Sort headers.
12075 * ax-gdb.c: Sort headers.
12076 * avr-tdep.c: Sort headers.
12077 * auxv.c: Sort headers.
12078 * auto-load.c: Sort headers.
12079 * arm-wince-tdep.c: Sort headers.
12080 * arm-tdep.c: Sort headers.
12081 * arm-symbian-tdep.c: Sort headers.
12082 * arm-pikeos-tdep.c: Sort headers.
12083 * arm-obsd-tdep.c: Sort headers.
12084 * arm-nbsd-tdep.c: Sort headers.
12085 * arm-nbsd-nat.c: Sort headers.
12086 * arm-linux-tdep.c: Sort headers.
12087 * arm-linux-nat.c: Sort headers.
12088 * arm-fbsd-tdep.c: Sort headers.
12089 * arm-fbsd-nat.c: Sort headers.
12090 * arm-bsd-tdep.c: Sort headers.
12091 * arch-utils.c: Sort headers.
12092 * arc-tdep.c: Sort headers.
12093 * arc-newlib-tdep.c: Sort headers.
12094 * annotate.h: Sort headers.
12095 * annotate.c: Sort headers.
12096 * amd64-windows-tdep.c: Sort headers.
12097 * amd64-windows-nat.c: Sort headers.
12098 * amd64-tdep.c: Sort headers.
12099 * amd64-sol2-tdep.c: Sort headers.
12100 * amd64-obsd-tdep.c: Sort headers.
12101 * amd64-obsd-nat.c: Sort headers.
12102 * amd64-nbsd-tdep.c: Sort headers.
12103 * amd64-nbsd-nat.c: Sort headers.
12104 * amd64-nat.c: Sort headers.
12105 * amd64-linux-tdep.c: Sort headers.
12106 * amd64-linux-nat.c: Sort headers.
12107 * amd64-fbsd-tdep.c: Sort headers.
12108 * amd64-fbsd-nat.c: Sort headers.
12109 * amd64-dicos-tdep.c: Sort headers.
12110 * amd64-darwin-tdep.c: Sort headers.
12111 * amd64-bsd-nat.c: Sort headers.
12112 * alpha-tdep.c: Sort headers.
12113 * alpha-obsd-tdep.c: Sort headers.
12114 * alpha-nbsd-tdep.c: Sort headers.
12115 * alpha-mdebug-tdep.c: Sort headers.
12116 * alpha-linux-tdep.c: Sort headers.
12117 * alpha-linux-nat.c: Sort headers.
12118 * alpha-bsd-tdep.c: Sort headers.
12119 * alpha-bsd-nat.c: Sort headers.
12120 * aix-thread.c: Sort headers.
12121 * agent.c: Sort headers.
12122 * addrmap.c: Sort headers.
12123 * ada-varobj.c: Sort headers.
12124 * ada-valprint.c: Sort headers.
12125 * ada-typeprint.c: Sort headers.
12126 * ada-tasks.c: Sort headers.
12127 * ada-lang.c: Sort headers.
12128 * aarch64-tdep.c: Sort headers.
12129 * aarch64-ravenscar-thread.c: Sort headers.
12130 * aarch64-newlib-tdep.c: Sort headers.
12131 * aarch64-linux-tdep.c: Sort headers.
12132 * aarch64-linux-nat.c: Sort headers.
12133 * aarch64-fbsd-tdep.c: Sort headers.
12134 * aarch64-fbsd-nat.c: Sort headers.
12135 * aarch32-linux-nat.c: Sort headers.
12136
12137 2019-04-04 Tom Tromey <tom@tromey.com>
12138
12139 * varobj.c (varobj_create): Update.
12140 * rust-exp.y (struct rust_parser) <update_innermost_block,
12141 lookup_symbol>: New methods.
12142 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12143 Rename.
12144 (rust_parser::rust_lookup_type)
12145 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12146 * printcmd.c (display_command, do_one_display): Update.
12147 * parser-defs.h (struct parser_state) <parser_state>: Add
12148 "tracker" parameter.
12149 (block_tracker): New member.
12150 (class innermost_block_tracker) <innermost_block_tracker>: Add
12151 "types" parameter.
12152 <reset>: Remove method.
12153 (innermost_block): Don't declare.
12154 (null_post_parser): Update.
12155 * parse.c (innermost_block): Remove global.
12156 (write_dollar_variable): Update.
12157 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12158 Remove "tracker_types" parameter.
12159 (parse_expression): Add "tracker" parameter.
12160 (parse_expression_for_completion): Update.
12161 (null_post_parser): Add "tracker" parameter.
12162 * p-exp.y: Update rules.
12163 * m2-exp.y: Update rules.
12164 * language.h (struct language_defn) <la_post_parser>: Add
12165 "tracker" parameter.
12166 * go-exp.y: Update rules.
12167 * f-exp.y: Update rules.
12168 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12169 parameter.
12170 * d-exp.y: Update rules.
12171 * c-exp.y: Update rules.
12172 * breakpoint.c (set_breakpoint_condition): Create an
12173 innermost_block_tracker.
12174 (watch_command_1): Likewise.
12175 * ada-lang.c (resolve): Add "tracker" parameter.
12176 (resolve_subexp): Likewise.
12177 * ada-exp.y (write_var_from_sym): Update.
12178
12179 2019-04-04 Tom Tromey <tom@tromey.com>
12180
12181 * type-stack.h: New file.
12182 * type-stack.c: New file.
12183 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12184 type-stack.h.
12185 (insert_into_type_stack, insert_type, push_type, push_type_int)
12186 (insert_type_address_space, pop_type, pop_type_int)
12187 (pop_typelist, pop_type_stack, append_type_stack)
12188 (push_type_stack, get_type_stack, push_typelist)
12189 (follow_type_instance_flags, follow_types): Don't declare.
12190 * parse.c (type_stack): Remove global.
12191 (parse_exp_in_context): Update.
12192 (insert_into_type_stack, insert_type, push_type, push_type_int)
12193 (insert_type_address_space, pop_type, pop_type_int)
12194 (pop_typelist, pop_type_stack, append_type_stack)
12195 (push_type_stack, get_type_stack, push_typelist)
12196 (follow_type_instance_flags, follow_types): Remove (moved to
12197 type-stack.c).
12198 * f-exp.y (type_stack): New global.
12199 Update rules.
12200 (push_kind_type, f_parse): Update.
12201 * d-exp.y (type_stack): New global.
12202 Update rules.
12203 (d_parse): Update.
12204 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12205 Update rules.
12206 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12207 (HFILES_NO_SRCDIR): Add type-stack.h.
12208
12209 2019-04-04 Tom Tromey <tom@tromey.com>
12210
12211 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12212 (rust_parser::convert_ast_to_expression, rust_parse)
12213 (rust_lex_test_completion, rust_lex_tests): Update.
12214 * parser-defs.h (struct expr_completion_state): New.
12215 (struct parser_state) <parser_state>: Add completion parameter.
12216 <mark_struct_expression, mark_completion_tag>: New methods.
12217 <parse_completion, m_completion_state>: New members.
12218 (prefixify_expression, null_post_parser): Update.
12219 (mark_struct_expression, mark_completion_tag): Don't declare.
12220 * parse.c (parse_completion, expout_last_struct)
12221 (expout_tag_completion_type, expout_completion_name): Remove
12222 globals.
12223 (parser_state::mark_struct_expression)
12224 (parser_state::mark_completion_tag): Now methods.
12225 (prefixify_expression): Add last_struct parameter.
12226 (prefixify_subexp): Likewise.
12227 (parse_exp_1): Update.
12228 (parse_exp_in_context): Add cstate parameter. Update.
12229 (parse_expression_for_completion): Create an
12230 expr_completion_state.
12231 (null_post_parser): Add "completion" parameter.
12232 * p-exp.y: Update rules.
12233 (yylex): Update.
12234 * language.h (struct language_defn) <la_post_parser>: Add
12235 "completing" parameter.
12236 * go-exp.y: Update rules.
12237 (lex_one_token): Update.
12238 * expression.h (parse_completion): Don't declare.
12239 * d-exp.y: Update rules.
12240 (lex_one_token): Update rules.
12241 * c-exp.y: Update rules.
12242 (lex_one_token): Update.
12243 * ada-lang.c (resolve): Add "parse_completion" parameter.
12244 (resolve_subexp): Likewise.
12245 (ada_resolve_function): Likewise.
12246
12247 2019-04-04 Tom Tromey <tom@tromey.com>
12248
12249 * parser-defs.h (struct parser_state) <start_arglist,
12250 end_arglist>: New methods.
12251 <arglist_len, m_funcall_chain>: New members.
12252 (arglist_len, start_arglist, end_arglist): Don't declare.
12253 * parse.c (arglist_len, funcall_chain): Remove global.
12254 (start_arglist, end_arglist): Remove functions.
12255 (parse_exp_in_context): Update.
12256 * p-exp.y: Update rules.
12257 * m2-exp.y: Update rules.
12258 * go-exp.y: Update rules.
12259 * f-exp.y: Update rules.
12260 * d-exp.y: Update rules.
12261 * c-exp.y: Update rules.
12262
12263 2019-04-04 Tom Tromey <tom@tromey.com>
12264
12265 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12266 lex_operator, push_back>: New methods.
12267 Update all rules.
12268 (rust_parser::lex_hex, lex_escape): Rename and update.
12269 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12270 (rust_parser::lex_operator): Rename and update.
12271 (rust_parser::lex_number, rustyylex, rustyyerror)
12272 (rust_lex_test_init, rust_lex_test_sequence)
12273 (rust_lex_test_push_back, rust_lex_tests): Update.
12274 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12275 parameter.
12276 <lexptr, prev_lexptr>: New members.
12277 (lexptr, prev_lexptr): Don't declare.
12278 * parse.c (lexptr, prev_lexptr): Remove globals.
12279 (parse_exp_in_context): Update.
12280 * p-exp.y (yylex, yyerror): Update.
12281 * m2-exp.y (parse_number, yylex, yyerror): Update.
12282 * go-exp.y (lex_one_token, yyerror): Update.
12283 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12284 * d-exp.y (lex_one_token, yyerror): Update.
12285 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12286 (lex_one_token, yyerror): Update.
12287 * ada-lex.l (YY_INPUT): Update.
12288 (rewind_to_char): Update.
12289 * ada-exp.y (yyerror): Update.
12290
12291 2019-04-04 Tom Tromey <tom@tromey.com>
12292
12293 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12294 * parser-defs.h (struct parser_state) <parser_state>: Add new
12295 parameter.
12296 <comma_terminates>: New member.
12297 (comma_terminates): Don't declare global.
12298 * parse.c (comma_terminates): Remove global.
12299 (parse_exp_in_context): Update.
12300 * p-exp.y (yylex): Update.
12301 * m2-exp.y (yylex): Update.
12302 * go-exp.y (lex_one_token): Update.
12303 * f-exp.y (yylex): Update.
12304 * d-exp.y (lex_one_token): Update.
12305 * c-exp.y (lex_one_token): Update.
12306 * ada-lex.l: Update.
12307
12308 2019-04-04 Tom Tromey <tom@tromey.com>
12309
12310 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12311 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12312 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12313 * parser-defs.h (paren_depth): Don't declare.
12314 * parse.c (paren_depth): Remove global.
12315 (parse_exp_in_context): Update.
12316 * p-exp.y (paren_depth): New global.
12317 (pascal_parse): Initialize it.
12318 * m2-exp.y (paren_depth): New global.
12319 (m2_parse): Initialize it.
12320 * go-exp.y (paren_depth): New global.
12321 (go_parse): Initialize it.
12322 * f-exp.y (paren_depth): New global.
12323 (f_parse): Initialize it.
12324 * d-exp.y (paren_depth): New global.
12325 (d_parse): Initialize it.
12326 * c-exp.y (paren_depth): New global.
12327 (c_parse): Initialize it.
12328 * ada-lex.l (paren_depth): New global.
12329 (lexer_init): Initialize it.
12330
12331 2019-04-04 Tom Tromey <tom@tromey.com>
12332
12333 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12334 (rust_parser::convert_ast_to_type)
12335 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12336 * parser-defs.h (struct parser_state) <parser_state>: Add
12337 parameters. Initialize new members.
12338 <expression_context_block, expression_context_pc>: New members.
12339 * parse.c (expression_context_block, expression_context_pc):
12340 Remove globals.
12341 (parse_exp_in_context): Update.
12342 * p-exp.y: Update all rules.
12343 (yylex): Update.
12344 * m2-exp.y: Update all rules.
12345 (yylex): Update.
12346 * go-exp.y (yylex): Update.
12347 * f-exp.y (yylex): Update.
12348 * d-exp.y: Update all rules.
12349 (yylex): Update.
12350 * c-exp.y: Update all rules.
12351 (lex_one_token, classify_name, yylex, c_parse): Update.
12352 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12353
12354 2019-04-04 Tom Tromey <tom@tromey.com>
12355
12356 * gdbarch.h, gdbarch.c: Rebuild.
12357 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12358 * stap-probe.h:
12359 (struct stap_parse_info): Replace "parser_state" with
12360 "expr_builder".
12361 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12362 (parser_state): New class.
12363 * parse.c (expr_builder): Rename.
12364 (expr_builder::release): Rename.
12365 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12366 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12367 (write_exp_elt_longcst, write_exp_elt_floatcst)
12368 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12369 (write_exp_string_vector, write_exp_bitstring)
12370 (write_exp_msymbol, mark_struct_expression)
12371 (write_dollar_variable)
12372 (insert_type_address_space, increase_expout_size): Replace
12373 "parser_state" with "expr_builder".
12374 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12375 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12376 "parser_state" with "expr_builder".
12377
12378 2019-04-04 Tom Tromey <tom@tromey.com>
12379
12380 * rust-exp.y: Replace "parse_language" with method call.
12381 * p-exp.y:
12382 (yylex): Replace "parse_language" with method call.
12383 * m2-exp.y:
12384 (yylex): Replace "parse_language" with method call.
12385 * go-exp.y (classify_name): Replace "parse_language" with method
12386 call.
12387 * f-exp.y (yylex): Replace "parse_language" with method call.
12388 * d-exp.y (lex_one_token): Replace "parse_language" with method
12389 call.
12390 * c-exp.y:
12391 (lex_one_token, classify_name, yylex): Replace "parse_language"
12392 with method call.
12393 * ada-exp.y (find_primitive_type, type_char)
12394 (type_system_address): Replace "parse_language" with method call.
12395
12396 2019-04-04 Tom Tromey <tom@tromey.com>
12397
12398 * rust-exp.y: Replace "parse_gdbarch" with method call.
12399 * parse.c (write_dollar_variable, insert_type_address_space):
12400 Replace "parse_gdbarch" with method call.
12401 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12402 call.
12403 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12404 call.
12405 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12406 "parse_gdbarch" with method call.
12407 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12408 with method call.
12409 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12410 "parse_gdbarch" with method call.
12411 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12412 "parse_gdbarch" with method call.
12413 * c-exp.y (parse_type, parse_number, classify_name): Replace
12414 "parse_gdbarch" with method call.
12415 * ada-lex.l: Replace "parse_gdbarch" with method call.
12416 * ada-exp.y (parse_type, find_primitive_type, type_char)
12417 (type_system_address): Replace "parse_gdbarch" with method call.
12418
12419 2019-04-04 Tom Tromey <tom@tromey.com>
12420
12421 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12422 * stap-probe.c (stap_parse_argument): Update.
12423 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12424 initial_size parameter.
12425 * rust-exp.y (rust_lex_tests): Update.
12426 * parse.c (parser_state): Update.
12427 (parse_exp_in_context): Update.
12428 * parser-defs.h (struct parser_state) <parser_state>: Remove
12429 "initial_size" parameter.
12430
12431 2019-04-04 Tom Tromey <tom@tromey.com>
12432
12433 * parser-defs.h (increase_expout_size): Don't declare.
12434 * parse.c (increase_expout_size): Now static.
12435
12436 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12437
12438 * gnu-nat.c (gnu_nat_target::wait): Fix
12439 target_waitstatus_to_string call.
12440
12441 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12442
12443 * eval.c (evaluate_subexp_standard): Handle internal functions
12444 during Fortran function call handling.
12445
12446 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12447
12448 * NEWS: Mention new internal functions.
12449 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12450 (read_base_type): Use dwarf2_init_complex_target_type.
12451 * value.c (creal_internal_fn): New function.
12452 (cimag_internal_fn): New function.
12453 (_initialize_values): Register new internal functions.
12454
12455 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12456
12457 * infrun.c (stop_all_threads): If debug_infrun, always
12458 trace the wait status after wait_one, using
12459 target_waitstatus_to_string and target_pid_to_str.
12460 (handle_inferior_event): Replace various trace of
12461 wait status kind by a single trace.
12462 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12463 wait status kind image by target_waitstatus_to_string.
12464 * target/waitstatus.c (target_waitstatus_to_string): Fix
12465 obsolete comment.
12466
12467 2019-04-01 Tom Tromey <tromey@adacore.com>
12468
12469 PR symtab/23331:
12470 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12471
12472 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12473 Pedro Alves <palves@redhat.com>
12474
12475 * top.c (quit_force): Call 'finalize_values'.
12476 * value.c (finalize_values): New function.
12477 * value.h (finalize_values): Declare.
12478
12479 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12480
12481 * NEWS: Announce $_gdb_major and $_gdb_minor.
12482
12483 * top.c (init_gdb_version_vars): New function.
12484 (gdb_init): Call init_gdb_version_vars.
12485
12486 2019-03-29 Tom Tromey <tromey@adacore.com>
12487
12488 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12489 help text. Remove dead code.
12490
12491 2019-03-29 Keith Seitz <keiths@redhat.com>
12492
12493 From Siddhesh Poyarekar:
12494 * f-lang.h (f77_get_upperbound): Return LONGEST.
12495 (f77_get_lowerbound): Likewise.
12496 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12497 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12498 print them.
12499 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12500 plongest to format print it.
12501 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12502 (f77_get_upperbound): Likewise.
12503 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12504 LOWER_BOUND to LONGEST.
12505 (f77_create_arrayprint_offset_tbl): Likewise.
12506
12507 2019-03-29 Keith Seitz <keiths@redhat.com>
12508
12509 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12510 %s/pulongest for TYPE_LENGTH instead of %d in format
12511 strings.
12512 * ada-typerint.c (ada_print_type): Likewise.
12513 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12514 * compile/compile-c-support.c (generate_register_struct): Likewise.
12515 * gdbtypes.c (recursive_dump_type): Likewise.
12516 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12517 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12518 instead of %d in format strings.
12519 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12520 to std::min to ULONGEST.
12521 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12522 instead of %d in format strings.
12523 * tracepoint.c (info_scope_command): Likewise.
12524 * typeprint.c (print_offset_data::update)
12525 (print_offset_data::finish): Likewise.
12526 * xtensa-tdep.c (xtensa_store_return_value)
12527 (xtensa_push_dummy_call): Likewise.
12528
12529 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12530
12531 * windows-nat.c (display_selector): Fixed format specifications
12532 for 64-bit Cygwin.
12533
12534 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12535
12536 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12537
12538 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12539
12540 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12541 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12542 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12543 (nios2_linux_init_abi): Install it.
12544
12545 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12546
12547 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12548
12549 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12550
12551 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12552
12553 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12554 Tom Tromey <tromey@adacore.com>
12555
12556 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12557
12558 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12559
12560 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12561 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12562 method to compute the bounds of range types. Also print "[evaluated]"
12563 if the bounds' values come from a dynamic evaluation.
12564
12565 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12566
12567 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12568 whitespace when pretty printing is on.
12569
12570 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12571
12572 * ppc-linux-nat.c: Add include.
12573
12574 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12575
12576 * NEWS: Mention AArch64 Pointer Authentication.
12577
12578 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12579
12580 * arm-linux-nat.c: Add include.
12581
12582 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12583
12584 * source-cache.c (source_cache::get_source_lines): Re-read
12585 fullname after calling open_source_file.
12586
12587 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12588
12589 * NEWS: Mention TLS support for FreeBSD.
12590
12591 2019-03-25 Tom Tromey <tromey@adacore.com>
12592
12593 * minsyms.c (BUNCH_SIZE): Update comment.
12594 (~minimal_symbol_reader): Remove old comment.
12595 (compact_minimal_symbols): Update comment.
12596 (minimal_symbol_reader::install): Remove old comment. Update
12597 other comments.
12598
12599 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12600
12601 * s390-linux-nat.c: Add include.
12602
12603 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12604
12605 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12606 Call linux_get_hwcap.
12607 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12608 Likewise.
12609 (aarch64_linux_get_hwcap): Remove function.
12610 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12611 declaration.
12612 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12613 linux_get_hwcap.
12614 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12615 * linux-tdep.c (linux_get_hwcap): Add function.
12616 (linux_get_hwcap2): Likewise.
12617 * linux-tdep.h (linux_get_hwcap): Add declaration.
12618 (linux_get_hwcap2): Likewise.
12619 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12620 (ppc_linux_get_hwcap2): Likewise.
12621 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12622 linux_get_hwcap.
12623 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12624 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12625 (ppc_linux_nat_target::read_description): Likewise.
12626 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12627 * s390-linux-nat.c: Likewise.
12628 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12629
12630 2019-03-24 Tom Tromey <tom@tromey.com>
12631
12632 * ada-lang.c (standard_lookup): Simplify initialization.
12633 (ada_lookup_symbol_nonlocal): Simplify return.
12634 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12635 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12636 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12637 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12638 initialization.
12639 * solib.c (solib_global_lookup): Simplify.
12640 * symtab.c (null_block_symbol): Remove.
12641 (symbol_cache_lookup): Simplify returns.
12642 (lookup_language_this): Simplify returns.
12643 (lookup_symbol_aux): Simplify return.
12644 (lookup_local_symbol): Simplify returns.
12645 (lookup_global_symbol_from_objfile): Simplify return.
12646 (lookup_symbol_in_objfile_symtabs)
12647 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12648 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12649 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12650 * cp-namespace.c (cp_lookup_bare_symbol)
12651 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12652 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12653 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12654 (cp_lookup_symbol_via_imports): Simplify initialization.
12655 (find_symbol_in_baseclass): Likewise.
12656 * symtab.h (null_block_symbol): Remove.
12657 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12658 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12659 (d_lookup_symbol_module): Likewise.
12660 (find_symbol_in_baseclass): Simplify initialization.
12661
12662 2019-03-24 Tom Tromey <tom@tromey.com>
12663
12664 * expression.h: Don't include symtab.h.
12665 (struct block): Forward declare.
12666
12667 2019-03-24 Tom Tromey <tom@tromey.com>
12668
12669 * c-exp.y (typebase): Remove casts.
12670 * gdbtypes.c (lookup_unsigned_typename, )
12671 (lookup_signed_typename): Remove cast.
12672 * eval.c (parse_to_comma_and_eval): Remove cast.
12673 * parse.c (write_dollar_variable): Remove cast.
12674 * block.h (struct block) <superblock>: Now const.
12675 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12676 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12677 (map_block): Make "block" const.
12678 * symfile.h (struct quick_symbol_functions)
12679 <map_matching_symbols>: Constify block argument to "callback".
12680 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12681 const.
12682 (find_pc_sect_compunit_symtab): Make "b" const.
12683 (find_symbol_at_address): Likewise.
12684 (search_symbols): Likewise.
12685 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12686 (dw2_debug_names_lookup_symbol): Likewise.
12687 (dw2_map_matching_symbols): Update.
12688 * p-valprint.c (pascal_val_print): Remove "block".
12689 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12690 (aux_add_nonlocal_symbols): Make "block" const.
12691 (resolve_subexp): Remove cast.
12692 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12693 const.
12694 (iterate_over_file_blocks): Likewise.
12695 * f-exp.y (%union) <bval>: Remove.
12696 * coffread.c (patch_opaque_types): Make "b" const.
12697 * spu-tdep.c (spu_catch_start): Make "block" const.
12698 * c-valprint.c (print_unpacked_pointer): Remove "block".
12699 * symmisc.c (dump_symtab_1): Make "b" const.
12700 (block_depth): Make "block" const.
12701 * d-exp.y (%union) <bval>: Remove.
12702 * cp-support.h (cp_lookup_rtti_type): Update.
12703 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12704 * psymtab.c (psym_lookup_symbol): Make "block" const.
12705 (maintenance_check_psymtabs): Make "b" const.
12706 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12707 (enumerate_locals, enumerate_args): Update.
12708 * python/py-symtab.c (stpy_global_block): Make "block" const.
12709 (stpy_static_block): Likewise.
12710 * inline-frame.c (block_starting_point_at): Make "new_block"
12711 const.
12712 * block.c (find_block_in_blockvector): Make return type const.
12713 (blockvector_for_pc_sect): Make "b" const.
12714 (find_block_in_blockvector): Make "b" const.
12715
12716 2019-03-23 Tom Tromey <tom@tromey.com>
12717
12718 * varobj.c (varobj_create): Update.
12719 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12720 * printcmd.c (display_command, do_one_display): Don't reset
12721 innermost_block.
12722 * parser-defs.h (enum innermost_block_tracker_type): Move to
12723 expression.h.
12724 (innermost_block): Update comment.
12725 * parse.c (parse_exp_1): Add tracker_types parameter.
12726 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12727 tracker_types parameter. Reset innermost_block.
12728 (parse_exp_in_context): Remove.
12729 (parse_expression_for_completion): Update.
12730 * objfiles.c (~objfile): Don't reset expression_context_block or
12731 innermost_block.
12732 * expression.h (enum innermost_block_tracker_type): Move from
12733 parser-defs.h.
12734 (parse_exp_1): Add tracker_types parameter.
12735 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12736 reset innermost_block.
12737
12738 2019-03-23 Tom Tromey <tom@tromey.com>
12739
12740 * objfiles.h: Include bcache.h.
12741
12742 2019-03-23 Tom Tromey <tom@tromey.com>
12743
12744 * linespec.c (get_current_search_block): Use
12745 scoped_restore_current_language.
12746 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12747
12748 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12749 Jiong Wang <jiong.wang@arm.com>
12750
12751 * aarch64-linux-tdep.c
12752 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12753 section.
12754 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12755
12756 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12757 Jiong Wang <jiong.wang@arm.com>
12758
12759 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12760 instructions.
12761 (aarch64_analyze_prologue_test): Add PACIASP test.
12762 (aarch64_prologue_prev_register): Unmask PC value.
12763
12764 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12765 Jiong Wang <jiong.wang@arm.com>
12766
12767 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12768 (aarch64_dwarf2_prev_register): Unmask PC value.
12769 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12770 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12771 DW_CFA_AARCH64_negate_ra_state.
12772 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12773
12774 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12775 Jiong Wang <jiong.wang@arm.com>
12776
12777 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12778 registers.
12779 (aarch64_pseudo_register_name): Likewise.
12780 (aarch64_pseudo_register_type): Likewise.
12781 (aarch64_pseudo_register_reggroup_p): Likewise.
12782 (aarch64_gdbarch_init): Add pauth registers.
12783 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12784 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12785 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12786 (struct gdbarch_tdep): Add regnum for ra_state.
12787
12788 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12789 Jiong Wang <jiong.wang@arm.com>
12790
12791 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12792
12793 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12794 Jiong Wang <jiong.wang@arm.com>
12795
12796 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12797 function.
12798 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12799 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12800 (aarch64_gdbarch_init): Add puth registers.
12801 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12802 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12803 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12804
12805 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12806 Jiong Wang <jiong.wang@arm.com>
12807
12808 * aarch64-linux-nat.c
12809 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12810 * aarch64-linux-tdep.c
12811 (aarch64_linux_core_read_description): Likewise.
12812 (aarch64_linux_get_hwcap): New function.
12813 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12814 (aarch64_linux_get_hwcap): New declaration.
12815
12816 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12817 Jiong Wang <jiong.wang@arm.com>
12818
12819 * aarch64-linux-nat.c
12820 (aarch64_linux_nat_target::read_description): Add pauth param.
12821 * aarch64-linux-tdep.c
12822 (aarch64_linux_core_read_description): Likewise.
12823 * aarch64-tdep.c (struct target_desc): Add in pauth.
12824 (aarch64_read_description): Add pauth param.
12825 (aarch64_gdbarch_init): Likewise.
12826 * aarch64-tdep.h (aarch64_read_description): Likewise.
12827 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12828 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12829 * features/Makefile: Add new files.
12830 * features/aarch64-pauth.c: New file.
12831 * features/aarch64-pauth.xml: New file.
12832
12833 2019-03-20 Tom Tromey <tromey@adacore.com>
12834
12835 * infrun.c (handle_inferior_event): Rename from
12836 handle_inferior_event_1. Create a scoped_value_mark.
12837 (handle_inferior_event): Remove.
12838
12839 2019-03-19 Tom Tromey <tromey@adacore.com>
12840
12841 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12842 * infrun.h (print_stop_event): Add "displays" parameter.
12843 * infrun.c (print_stop_event): Add "displays" parameter.
12844
12845 2019-03-19 Pedro Alves <palves@redhat.com>
12846
12847 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12848 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12849 to -1. Fix TABs vs spaces.
12850 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12851 * tui/tui-out.h (tui_ui_out) Add intro comments.
12852 <m_line, m_start_of_line>: In-class initialize, and add describing
12853 comment.
12854
12855 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12856
12857 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12858 variable names.
12859 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12860
12861 2019-03-18 Pedro Alves <palves@redhat.com>
12862 Eli Zaretskii <eliz@gnu.org>
12863
12864 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12865 m_line and m_start_of_line.
12866
12867 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12868
12869 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12870 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12871 it returns a newline. This fixes a regression in TU mode, whereby
12872 the next line is output on the same screen line as the user input.
12873
12874 2019-03-18 Tom Tromey <tromey@adacore.com>
12875
12876 * minsyms.c (minimal_symbol_reader::install): Remove call to
12877 obstack_blank.
12878
12879 2019-03-18 Pedro Alves <palves@redhat.com>
12880
12881 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12882 New globals.
12883 (apply_style): New, factored out from ...
12884 (apply_ansi_escape): ... this. Handle reverse video mode.
12885 (tui_set_reverse_mode): New function.
12886 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12887 * tui/tui-winsource.c (tui_show_source_line): Use
12888 tui_set_reverse_mode instead of setting A_STANDOUT.
12889 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12890 New setter methods.
12891
12892 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12893
12894 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12895 Handle tabs.
12896
12897 2019-03-18 Tom Tromey <tromey@adacore.com>
12898
12899 * ada-lang.c (empty_array): Add "high" parameter.
12900 (ada_evaluate_subexp): Update.
12901
12902 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12903
12904 * unittests/string_view-selftests.c: Define
12905 _initialize_string_view_selftests unconditionally.
12906
12907 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12908
12909 PR gdb/24350
12910 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12911
12912 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12913
12914 PR gdb/24351
12915 * windows-nat.c (display_selector): Fix format specifiers.
12916
12917 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12918
12919 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12920 tui_refill_source_window instead of tui_refresh_win, to update the
12921 current execution line. This fixes redisplay of the current line
12922 when stepping through the code with "next" or "step".
12923
12924 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12925
12926 * source-cache.c (source_cache::get_source_lines): Call
12927 find_source_lines to initialize s->nlines. This fixes vertical
12928 scrolling of TUI source window when the DOWN arrow is pressed.
12929
12930 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12931
12932 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12933 linux-thread-db.c (_initialize_thread_db): Likewise.
12934
12935 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12936
12937 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12938 wclrtoeol in tui_show_source_line". This reverts changes made in
12939 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12940
12941 2019-03-15 Tom Tromey <tom@tromey.com>
12942
12943 * symtab.h (struct minimal_symbol): Derive from
12944 general_symbol_info.
12945 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12946 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12947 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12948 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12949 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12950 (MSYMBOL_SEARCH_NAME): Update.
12951 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12952 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12953 * minsyms.c (minimal_symbol_reader::record_full): Update.
12954
12955 2019-03-15 Tom Tromey <tom@tromey.com>
12956
12957 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12958
12959 2019-03-15 Tom Tromey <tom@tromey.com>
12960
12961 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12962 unique_xmalloc_ptr.
12963 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12964 Update.
12965 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12966 (build_minimal_symbol_hash_tables)
12967 (minimal_symbol_reader::install): Update.
12968
12969 2019-03-15 Tom Tromey <tom@tromey.com>
12970
12971 * symtab.c (create_demangled_names_hash): Update.
12972 (symbol_set_names): Update.
12973 * objfiles.h (struct objfile_per_bfd_storage)
12974 <demangled_names_hash>: Now an htab_up.
12975 * objfiles.c (objfile_per_bfd_storage): Simplify.
12976
12977 2019-03-15 Tom Tromey <tom@tromey.com>
12978
12979 * objfiles.h (struct objfile_per_bfd_storage): Declare
12980 destructor.
12981 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12982 New.
12983 (get_objfile_bfd_data): Use new. Don't initialize
12984 language_of_main.
12985 (free_objfile_per_bfd_storage): Remove.
12986 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12987
12988 2019-03-15 Tom Tromey <tom@tromey.com>
12989
12990 * symfile.c (reread_symbols): Update.
12991 * objfiles.c (objfile::objfile): Update.
12992 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12993 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12994 comment.
12995 (minimal_symbol_reader::install): Update.
12996 (terminate_minimal_symbol_table): Remove.
12997 * jit.c (jit_object_close_impl): Update.
12998
12999 2019-03-15 Tom Tromey <tom@tromey.com>
13000
13001 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13002 initializations.
13003
13004 2019-03-15 Tom Tromey <tom@tromey.com>
13005
13006 * objfiles.h (struct objfile_per_bfd_storage)
13007 <demangled_hash_languages>: Now a bitset.
13008 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13009 (lookup_minimal_symbol): Update.
13010
13011 2019-03-15 Tom Tromey <tom@tromey.com>
13012
13013 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13014 Don't return the symbol.
13015 * coffread.c (record_minimal_symbol): Use record_full.
13016
13017 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13018
13019 The MS-Windows port of ncurses fails to switch to a color pair if
13020 one or both of the colors are the implicit default colors. This
13021 change records the default colors when TUI is initialized, and
13022 then specifies them explicitly when a color pair uses the default
13023 colors. This allows color styling in TUI mode on MS-Windows.
13024
13025 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13026 ncurses_norm_attr.
13027 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13028 colors in ncurses_norm_attr.
13029 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13030 "none", replace it with the default color recorded in
13031 ncurses_norm_attr.
13032
13033 2019-03-14 Tom Tromey <tromey@adacore.com>
13034
13035 * source-cache.h (class source_cache) <get_source_lines>: Return
13036 std::string.
13037 * source-cache.c (source_cache::extract_lines): Handle case where
13038 first_pos==npos. Return std::string.
13039 (source_cache::get_source_lines): Update.
13040
13041 2019-03-14 Tom Tromey <tromey@adacore.com>
13042
13043 * NEWS: Add item for "style sources" commands.
13044 * source-cache.c (source_cache::get_source_lines): Check
13045 source_styling.
13046 * cli/cli-style.c (source_styling): New global.
13047 (_initialize_cli_style): Add "style sources" commands.
13048 (show_style_sources): New function.
13049 * cli/cli-style.h (source_styling): Declare.
13050
13051 2019-03-14 Pedro Alves <palves@redhat.com>
13052 Tom Tromey <tromey@adacore.com>
13053
13054 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13055 * tui/tui-winsource.c (tui_refill_source_window): New function,
13056 from...
13057 (tui_horizontal_source_scroll): ... here. Move some logic.
13058 * cli/cli-style.c (set_style_enabled): Notify new observable.
13059 * tui/tui-hooks.c (tui_redisplay_source): New function.
13060 (tui_attach_detach_observers): Attach or detach
13061 tui_redisplay_source.
13062 * observable.h (source_styling_changed): New observable.
13063 * observable.c: Define source_styling_changed observable.
13064
13065 2019-03-13 Tom Tromey <tromey@adacore.com>
13066
13067 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13068 (i386_gnu_nat_target::store_registers): Update.
13069 * target-debug.h (target_debug_print_std_string): New macro.
13070 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13071 * windows-tdep.c (display_one_tib): Update.
13072 * tui/tui-stack.c (tui_make_status_line): Update.
13073 * top.c (print_inferior_quit_action): Update.
13074 * thread.c (thr_try_catch_cmd): Update.
13075 (add_thread_with_info): Update.
13076 (thread_target_id_str): Update.
13077 (thr_try_catch_cmd): Update.
13078 (thread_command): Update.
13079 (thread_find_command): Update.
13080 * record-btrace.c (record_btrace_target::info_record)
13081 (record_btrace_resume_thread, record_btrace_target::resume)
13082 (record_btrace_cancel_resume, record_btrace_step_thread)
13083 (record_btrace_target::wait, record_btrace_target::wait)
13084 (record_btrace_target::wait, record_btrace_target::stop): Update.
13085 * progspace.c (print_program_space): Update.
13086 * process-stratum-target.c
13087 (process_stratum_target::thread_address_space): Update.
13088 * linux-fork.c (linux_fork_mourn_inferior)
13089 (detach_checkpoint_command, info_checkpoints_command)
13090 (linux_fork_context): Update.
13091 (linux_fork_detach): Update.
13092 (class scoped_switch_fork_info): Update.
13093 (delete_checkpoint_command): Update.
13094 * infrun.c (follow_fork_inferior): Update.
13095 (follow_fork_inferior): Update.
13096 (proceed_after_vfork_done): Update.
13097 (handle_vfork_child_exec_or_exit): Update.
13098 (follow_exec): Update.
13099 (displaced_step_prepare_throw): Update.
13100 (displaced_step_restore): Update.
13101 (start_step_over): Update.
13102 (resume_1): Update.
13103 (clear_proceed_status_thread): Update.
13104 (proceed): Update.
13105 (print_target_wait_results): Update.
13106 (do_target_wait): Update.
13107 (context_switch): Update.
13108 (stop_all_threads): Update.
13109 (restart_threads): Update.
13110 (finish_step_over): Update.
13111 (handle_signal_stop): Update.
13112 (switch_back_to_stepped_thread): Update.
13113 (keep_going_pass_signal): Update.
13114 (print_exited_reason): Update.
13115 (normal_stop): Update.
13116 * inferior.c (inferior_pid_to_str): Change return type.
13117 (print_selected_inferior): Update.
13118 (add_inferior): Update.
13119 (detach_inferior): Update.
13120 * dummy-frame.c (fprint_dummy_frames): Update.
13121 * dcache.c (dcache_info_1): Update.
13122 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13123 (btrace_fetch, btrace_clear): Update.
13124 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13125 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13126 type.
13127 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13128 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13129 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13130 * gdbarch.c, gdbarch.h: Rebuild.
13131 * gdbarch.sh (core_pid_to_str): Change return type.
13132 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13133 return type.
13134 (windows_nat_target::pid_to_str): Change return type.
13135 (windows_delete_thread): Update.
13136 (windows_nat_target::attach): Update.
13137 (windows_nat_target::files_info): Update.
13138 * target-delegates.c: Rebuild.
13139 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13140 return type.
13141 (sol_thread_target::pid_to_str): Change return type.
13142 * remote.c (class remote_target) <pid_to_str>: Change return
13143 type.
13144 (remote_target::pid_to_str): Change return type.
13145 (extended_remote_target::attach, remote_target::remote_stop_ns)
13146 (remote_target::remote_notif_remove_queued_reply)
13147 (remote_target::push_stop_reply, remote_target::disable_btrace):
13148 Update.
13149 (extended_remote_target::attach): Update.
13150 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13151 type.
13152 (gdbsim_target::pid_to_str): Change return type.
13153 * ravenscar-thread.c (struct ravenscar_thread_target)
13154 <pid_to_str>: Change return type.
13155 (ravenscar_thread_target::pid_to_str): Change return type.
13156 * procfs.c (class procfs_target) <pid_to_str>: Change return
13157 type.
13158 (procfs_target::pid_to_str): Change return type.
13159 (procfs_target::attach): Update.
13160 (procfs_target::detach): Update.
13161 (procfs_target::fetch_registers): Update.
13162 (procfs_target::store_registers): Update.
13163 (procfs_target::wait): Update.
13164 (procfs_target::files_info): Update.
13165 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13166 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13167 return type.
13168 (nto_procfs_target::pid_to_str): Change return type.
13169 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13170 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13171 return type.
13172 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13173 (exit_lwp): Update.
13174 (attach_proc_task_lwp_callback, get_detach_signal)
13175 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13176 (linux_nat_target::resume, wait_lwp, stop_callback)
13177 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13178 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13179 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13180 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13181 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13182 type.
13183 (inf_ptrace_target::attach): Update.
13184 (inf_ptrace_target::files_info): Update.
13185 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13186 type.
13187 (go32_nat_target::pid_to_str): Change return type.
13188 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13189 (gnu_nat_target::wait): Update.
13190 (gnu_nat_target::wait): Update.
13191 (gnu_nat_target::resume): Update.
13192 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13193 (fbsd_nat_target::wait): Update.
13194 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13195 type.
13196 (darwin_nat_target::attach): Update.
13197 * corelow.c (class core_target) <pid_to_str>: Change return type.
13198 (core_target::pid_to_str): Change return type.
13199 * target.c (normal_pid_to_str): Change return type.
13200 (default_pid_to_str): Likewise.
13201 (target_pid_to_str): Change return type.
13202 (target_translate_tls_address): Update.
13203 (target_announce_detach): Update.
13204 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13205 return type.
13206 (bsd_uthread_target::pid_to_str): Change return type.
13207 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13208 type.
13209 (bsd_kvm_target::pid_to_str): Change return type.
13210 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13211 return type.
13212 (aix_thread_target::pid_to_str): Change return type.
13213 * target.h (struct target_ops) <pid_to_str>: Change return type.
13214 (target_pid_to_str, normal_pid_to_str): Likewise.
13215 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13216 type.
13217 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13218 type.
13219 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13220 return type.
13221 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13222 type.
13223 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13224 type.
13225 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13226 return type.
13227
13228 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13229
13230 * NEWS: Mention that the new default MI version is 3. Mention
13231 changes to the output of commands and events that deal with
13232 multi-location breakpoints.
13233 * breakpoint.c: Include "mi/mi-out.h".
13234 (print_one_breakpoint): Change output syntax if using MI version
13235 >= 3.
13236 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13237 New.
13238 (mi_multi_location_breakpoint_output_fixed): New.
13239 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13240 (mi_cmd_fix_multi_location_breakpoint_output): New.
13241 (mi_multi_location_breakpoint_output_fixed): New.
13242 * mi/mi-cmds.c (mi_cmds): Register command
13243 -fix-multi-location-breakpoint-output.
13244 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13245 interpreter "mi".
13246
13247 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13248
13249 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13250 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13251 instantiate mi_ui_out based on interpreter name.
13252 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13253 * mi/mi-main.c (mi_load_progress): Likewise.
13254
13255 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13256
13257 * NEWS: Combine separate "New targets" sections for 8.3.
13258
13259 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13260
13261 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13262 (ppcfbsd_init_abi): Install gdbarch
13263 "fetch_tls_load_module_address" and "get_thread_local_address"
13264 methods.
13265
13266 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13267
13268 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13269 (riscv_fbsd_init_abi): Install gdbarch
13270 "fetch_tls_load_module_address" and "get_thread_local_address"
13271 methods.
13272
13273 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13274
13275 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13276 (i386fbsd_init_abi): Install gdbarch
13277 "fetch_tls_load_module_address" and "get_thread_local_address"
13278 methods.
13279
13280 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13281
13282 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13283 (amd64fbsd_init_abi): Install gdbarch
13284 "fetch_tls_load_module_address" and "get_thread_local_address"
13285 methods.
13286
13287 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13288
13289 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13290 (struct fbsd_pspace_data): New type.
13291 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13292 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13293 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13294 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13295 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13296
13297 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13298
13299 * gdbtypes.c (lookup_struct_elt): New function.
13300 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13301 * gdbtypes.h (struct struct_elt): New type.
13302 (lookup_struct_elt): New prototype.
13303
13304 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13305
13306 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13307 remove disabled code block.
13308
13309 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13310
13311 * gdbarch.sh (get_thread_local_address): New method.
13312 * gdbarch.h, gdbarch.c: Regenerate.
13313 * target.c (target_translate_tls_address): Use
13314 gdbarch_get_thread_local_address if present instead of
13315 target::get_thread_local_address.
13316
13317 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13318
13319 * target.h (target::get_thread_local_address): Update comment.
13320
13321 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13322
13323 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13324 objfile->separate_debug_objfile_backlink if not NULL.
13325
13326 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13327
13328 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13329 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13330 (amd64bsd_store_inferior_registers): Likewise.
13331 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13332 Enable segment base registers.
13333 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13334 PT_GETFSBASE and PT_GETGSBASE.
13335 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13336 PT_SETGSBASE.
13337 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13338 segment base registers.
13339 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13340
13341 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13342
13343 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13344 Update calls to i386_target_description to add 'segments'
13345 parameter.
13346 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13347 add segment base registers.
13348 * arch/i386.c (i386_create_target_description): Add 'segments'
13349 parameter to enable segment base registers.
13350 * arch/i386.h (i386_create_target_description): Likewise.
13351 * features/i386/32bit-segments.xml: New file.
13352 * features/i386/32bit-segments.c: Generate.
13353 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13354 call to i386_target_description to add 'segments' parameter.
13355 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13356 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13357 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13358 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13359 if feature is present.
13360 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13361 Add 'segments' parameter to call to i386_target_description.
13362 (i386_target_description): Add 'segments' parameter to enable
13363 segment base registers.
13364 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13365 to call to i386_target_description.
13366 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13367 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13368 Define I386_NUM_REGS.
13369 (i386_target_description): Add 'segments' parameter to enable
13370 segment base registers.
13371
13372 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13373
13374 PR/24325
13375 * source-cache.c: #undef open and close, to avoid unresolved
13376 externals during linking.
13377
13378 2019-03-12 Tom Tromey <tromey@adacore.com>
13379
13380 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13381 const. Add initializers.
13382 (_initialize_remote): Don't initialize ptid globals.
13383
13384 2019-03-12 Pedro Alves <palves@redhat.com>
13385
13386 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13387
13388 2019-03-12 Pedro Alves <palves@redhat.com>
13389
13390 * cp-name-parser.y (main): Remove unused 'len' variable.
13391
13392 2019-03-12 Tom Tromey <tromey@adacore.com>
13393
13394 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13395 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13396
13397 2019-03-12 Tom Tromey <tromey@adacore.com>
13398
13399 * linux-nat.c (iterate_over_lwps): Update.
13400 (stop_callback): Remove parameter.
13401 (stop_wait_callback, detach_callback, resume_set_callback)
13402 (select_singlestep_lwp_callback, set_ignore_sigint)
13403 (status_callback, resumed_callback, resume_clear_callback)
13404 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13405 data parameter.
13406 (linux_nat_target::detach, linux_nat_target::resume)
13407 (linux_stop_and_wait_all_lwps, select_event_lwp)
13408 (linux_nat_filter_event, linux_nat_wait_1)
13409 (linux_nat_target::kill, linux_nat_target::stop)
13410 (linux_nat_target::stop): Update.
13411 (linux_nat_resume_callback): Change type.
13412 (resume_stopped_resumed_lwps, count_events_callback)
13413 (select_event_lwp_callback): Likewise.
13414 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13415 * arm-linux-nat.c (struct update_registers_data): Remove.
13416 (update_registers_callback): Change type.
13417 (arm_linux_insert_hw_breakpoint1): Update.
13418 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13419 parameter.
13420 (x86_linux_dr_set_addr): Update.
13421 (x86_linux_dr_set_control): Update.
13422 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13423 (iterate_over_lwps): Use gdb::function_view.
13424 * nat/aarch64-linux-hw-point.c (struct
13425 aarch64_dr_update_callback_param): Remove.
13426 (debug_reg_change_callback): Change type.
13427 (aarch64_notify_debug_reg_change): Update.
13428 * s390-linux-nat.c (s390_refresh_per_info): Update.
13429
13430 2019-03-11 Tom Tromey <tromey@adacore.com>
13431
13432 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13433 redundant assignment to "this_cu".
13434
13435 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13436
13437 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13438
13439 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13440
13441 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13442 from...
13443 (rank_one_type): ... this.
13444
13445 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13446
13447 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13448 from...
13449 (rank_one_type): ... this.
13450
13451 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13452
13453 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13454 from...
13455 (rank_one_type): ... this.
13456
13457 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13458
13459 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13460 from...
13461 (rank_one_type): ... this.
13462
13463 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13464
13465 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13466 from...
13467 (rank_one_type): ... this.
13468
13469 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13470
13471 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13472 from...
13473 (rank_one_type): ... this.
13474
13475 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13476
13477 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13478 from...
13479 (rank_one_type): ... this.
13480
13481 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13482
13483 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13484 from...
13485 (rank_one_type): ... this.
13486
13487 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13488
13489 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13490 from...
13491 (rank_one_type): ... this.
13492
13493 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13494
13495 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13496 from...
13497 (rank_one_type): ... this.
13498
13499 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13500
13501 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13502 from...
13503 (rank_one_type): ... this.
13504
13505 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13506
13507 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13508 from...
13509 (rank_one_type): ... this.
13510
13511 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13512
13513 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13514 inferior-events' shows the example events.
13515
13516 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13517
13518 Support styling on native MS-Windows console
13519
13520 PR/24315
13521 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13522 on MS-Windows if $TERM is not defined.
13523
13524 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13525
13526 * posix-hdep.c (gdb_console_fputs):
13527 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13528 functions.
13529 * ui-file.h (gdb_console_fputs): Add prototype.
13530
13531 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13532 back to fputs only if the former returns zero.
13533
13534 2019-03-07 Tom Tromey <tom@tromey.com>
13535
13536 * symmisc.c (print_symbol_bcache_statistics): Update.
13537 (print_objfile_statistics): Update.
13538 * symfile.c (allocate_symtab): Update.
13539 * stabsread.c: Don't include bcache.h.
13540 * psymtab.h (struct psymbol_bcache): Don't declare.
13541 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13542 (psymbol_bcache_init, psymbol_bcache_free)
13543 (psymbol_bcache_get_bcache): Don't declare.
13544 * psymtab.c (struct psymbol_bcache): Remove.
13545 (psymtab_storage::psymtab_storage): Update.
13546 (psymtab_storage::~psymtab_storage): Update.
13547 (psymbol_bcache_init, psymbol_bcache_free)
13548 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13549 (add_psymbol_to_bcache): Update.
13550 (allocate_psymtab): Update.
13551 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13552 macro_cache>: No longer pointers.
13553 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13554 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13555 * macrotab.c (macro_bcache): Update.
13556 * macroexp.c: Don't include bcache.h.
13557 * gdbtypes.c (check_types_worklist): Update.
13558 (types_deeply_equal): Remove TRY/CATCH. Update.
13559 * elfread.c (elf_symtab_read): Update.
13560 * dwarf2read.c: Don't include bcache.h.
13561 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13562 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13563 (print_bcache_statistics, bcache_memory_used): Don't declare.
13564 (struct bcache): Move from bcache.c. Add constructor, destructor,
13565 methods. Rename all data members.
13566 * bcache.c (struct bcache): Move to bcache.h.
13567 (bcache::expand_hash_table): Rename from expand_hash_table.
13568 (bcache): Remove.
13569 (bcache::insert): Rename from bcache_full.
13570 (bcache::compare): Rename from bcache_compare.
13571 (bcache_xmalloc): Remove.
13572 (bcache::~bcache): Rename from bcache_xfree.
13573 (bcache::print_statistics): Rename from print_bcache_statistics.
13574 (bcache::memory_used): Rename from bcache_memory_used.
13575
13576 2019-03-07 Pedro Alves <palves@redhat.com>
13577
13578 * infrun.c (normal_stop): Also check for
13579 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13580
13581 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13582
13583 * f-lang.c (value_from_host_double): Moved to...
13584 * value.c (value_from_host_double): ...here.
13585 * value.h (value_from_host_double): Declare.
13586 * guile/scm-math.c (vlscm_convert_typed_number): Use
13587 value_from_host_double.
13588 (vlscm_convert_number): Likewise.
13589 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13590 * python/py-value.c (convert_value_from_python): Likewise.
13591
13592 2019-03-06 Tom Tromey <tom@tromey.com>
13593
13594 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13595
13596 2019-03-06 Tom Tromey <tom@tromey.com>
13597
13598 * utils.h (free_current_contents): Don't declare.
13599 * utils.c (free_current_contents): Remove.
13600
13601 2019-03-06 Tom Tromey <tom@tromey.com>
13602
13603 * top.c (quit_force): Update.
13604 * main.c (captured_command_loop): Update.
13605 * common/new-op.c (operator new): Update.
13606 * common/common-exceptions.c (struct catcher)
13607 <save_cleanup_chain>: Remove member.
13608 (exceptions_state_mc_init): Update.
13609 (exception_try_scope_entry): Return nullptr.
13610 (exception_try_scope_exit, exception_rethrow)
13611 (throw_exception_sjlj, throw_exception_cxx): Update.
13612 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13613 (all_cleanups, do_cleanups, discard_cleanups)
13614 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13615 (restore_cleanups, restore_final_cleanups): Don't declare.
13616 (do_final_cleanups): Remove parameter.
13617 * common/cleanups.c (cleanup_chain, make_cleanup)
13618 (make_cleanup_dtor, all_cleanups, do_cleanups)
13619 (discard_my_cleanups, discard_cleanups)
13620 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13621 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13622 (null_cleanup): Remove.
13623 (do_final_cleanups): Remove parameter.
13624
13625 2019-03-06 Tom Tromey <tom@tromey.com>
13626
13627 * remote.c (remote_target::remote_parse_stop_reply): Use
13628 unique_xmalloc_ptr.
13629
13630 2019-03-06 Tom Tromey <tom@tromey.com>
13631
13632 * stabsread.c (struct stabs_field_info): Rename from field_info.
13633 <list, fnlist>: Add initializers.
13634 <obstack>: New member.
13635 (read_member_functions, read_struct_fields, read_baseclasses):
13636 Allocate on obstack. Don't use cleanups.
13637 (read_one_struct_field, read_member_functions, read_struct_fields)
13638 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13639 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13640 (read_struct_type): Update.
13641
13642 2019-03-06 Tom Tromey <tom@tromey.com>
13643
13644 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13645 * common/filestuff.h (make_cleanup_close): Don't declare.
13646 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13647 Remove.
13648
13649 2019-03-06 Tom Tromey <tom@tromey.com>
13650
13651 * solib-aix.c: Use make_scope_exit.
13652
13653 2019-03-06 Tom Tromey <tom@tromey.com>
13654
13655 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13656 Use make_scope_exit.
13657
13658 2019-03-06 Tom Tromey <tom@tromey.com>
13659
13660 * solib-svr4.c (disable_probes_interface): Remove parameter.
13661 (svr4_handle_solib_event): Use make_scope_exit.
13662
13663 2019-03-06 Tom Tromey <tom@tromey.com>
13664
13665 * remote.c (struct stop_reply_deleter): Remove.
13666 (stop_reply_up): Update.
13667 (struct stop_reply): Derive from notif_event. Don't typedef.
13668 <regcache>: Now a std::vector.
13669 (stop_reply_xfree): Remove.
13670 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13671 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13672 (remote_target::discard_pending_stop_replies): Use delete.
13673 (remote_target::remote_parse_stop_reply): Update.
13674 (remote_target::process_stop_reply): Update.
13675 * remote-notif.h (struct notif_event): Add virtual destructor.
13676 Remove "dtr" member.
13677 (struct notif_client) <alloc_event>: Return a unique_ptr.
13678 (notif_event_xfree): Don't declare.
13679 (notif_event_up): New typedef.
13680 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13681 (notif_event_xfree, do_notif_event_xfree): Remove.
13682 (remote_notif_state_xfree): Update.
13683
13684 2019-03-06 Tom Tromey <tom@tromey.com>
13685
13686 * infrun.c (displaced_step_clear_cleanup): Now a
13687 forward_scope_exit type.
13688 (displaced_step_prepare_throw): Update.
13689 (displaced_step_fixup): Update.
13690
13691 2019-03-06 Tom Tromey <tom@tromey.com>
13692
13693 * inferior.h (class inferior): Update comment.
13694 * gdbthread.h (class thread_info): Update comment.
13695
13696 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13697 Tom Tromey <tom@tromey.com>
13698
13699 * stabsread.h (struct stab_section_list): Remove.
13700 (coffstab_build_psymtabs): Update.
13701 * dbxread.c (symbuf_sections): Now a std::vector.
13702 (sect_idx): New global.
13703 (fill_symbuf): Update.
13704 (coffstab_build_psymtabs): Change type of stabsects parameter.
13705 Update.
13706 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13707 std::vector.
13708 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13709 (coff_locate_sections): Update.
13710 (coff_symfile_read): Remove cleanups. Update.
13711 (init_stringtab): Add storage parameter.
13712 (free_stringtab, free_stringtab_cleanup): Remove.
13713 (init_lineno): Add storage parameter.
13714 (free_linetab, free_linetab_cleanup): Remove.
13715
13716 2019-03-06 Pedro Alves <palves@redhat.com>
13717
13718 * linux-fork.c (fork_info::clobber_regs): Delete.
13719 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13720 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13721 comment. Adjust.
13722 (scoped_switch_fork_info::scoped_switch_fork_info)
13723 (checkpoint_command, linux_fork_context): Adjust
13724 fork_save_infrun_state calls.
13725
13726 2019-03-06 Pedro Alves <palves@redhat.com>
13727
13728 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13729 (inf_has_multiple_threads): Return 'bool' and rewrite using
13730 inferior_info::threads().
13731
13732 2019-03-06 Pedro Alves <palves@redhat.com>
13733
13734 * linux-fork.c: Include <list>.
13735 (fork_list): Now a std::list instance.
13736 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13737 (forks_exist_p, find_last_fork): Adjust.
13738 (new_fork): Delete.
13739 (one_fork_p): New.
13740 (add_fork): Adjust.
13741 (free_fork): Delete, folded into fork_info::~fork_info().
13742 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13743 Adjust.
13744 (init_fork_list): Delete.
13745 (linux_fork_killall, linux_fork_mourn_inferior)
13746 (linux_fork_detach, info_checkpoints_command): Adjust.
13747 (_initialize_linux_fork): No longer call init_fork_list.
13748
13749 2019-03-06 Pedro Alves <palves@redhat.com>
13750
13751 * linux-fork.c (new_fork): New, split out of ...
13752 (add_fork): ... this. Return void. Move "first fork" special
13753 case from here, to ...
13754 (checkpoint_command): ... here.
13755 * linux-linux.h (add_fork): Return void.
13756
13757 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13758
13759 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13760
13761 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13762 Chris January <chris.january@arm.com>
13763 David Lecomber <david.lecomber@arm.com>
13764
13765 * f-exp.y: New token, UNOP_INTRINSIC.
13766 (exp): New pattern using UNOP_INTRINSIC token.
13767 (f77_keywords): Add 'abs' keyword.
13768 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13769 (value_from_host_double): New function.
13770 (evaluate_subexp_f): Support UNOP_ABS.
13771
13772 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13773
13774 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13775 types.
13776
13777 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13778
13779 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13780 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13781 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13782
13783 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13784
13785 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13786
13787 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13788 Chris January <chris.january@arm.com>
13789
13790 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13791 * f-exp.y: Define 'KIND' token.
13792 (exp): New pattern for KIND expressions.
13793 (ptype): Handle types with a kind extension.
13794 (direct_abs_decl): Extend to spot kind extensions.
13795 (f77_keywords): Add 'kind' to the list.
13796 (push_kind_type): New function.
13797 (convert_to_kind_type): New function.
13798 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13799 * parse.c (operator_length_standard): Likewise.
13800 * parser-defs.h (enum type_pieces): Add tp_kind.
13801 * std-operator.def: Add UNOP_KIND.
13802
13803 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13804
13805 * f-exp.y (f_parse): Set yydebug.
13806
13807 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13808
13809 * f-lang.c (evaluate_subexp_f): New function.
13810 (exp_descriptor_f): New global.
13811 (f_language_defn): Use exp_descriptor_f instead of
13812 exp_descriptor_standard.
13813
13814 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13815
13816 * f-exp.y (struct token): Add comments.
13817 (dot_ops): Remove uppercase versions and the end marker.
13818 (f77_keywords): Likewise.
13819 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13820 entries in the dot_ops array are case insensitive, and use
13821 strncasecmp to compare strings. Also some whitespace cleanup in
13822 this area. Similar for the f77_keywords array, except entries in
13823 this list might be case sensitive.
13824
13825 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13826
13827 * f-exp.y (struct f77_boolean_val): Add comments.
13828 (boolean_values): Remove uppercase versions, and end marker.
13829 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13830 and use strncasecmp to achieve case insensitivity. Additionally,
13831 perform whitespace cleanup around this code.
13832
13833 2019-03-06 Tom Tromey <tromey@adacore.com>
13834
13835 * remote-sim.c (gdbsim_target_open): Use result of
13836 gdb_argv::release.
13837
13838 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13839 Dirk Schubert <dirk.schubert@arm.com>
13840 Chris January <chris.january@arm.com>
13841
13842 * eval.c (evaluate_subexp_standard): Call Fortran argument
13843 wrapping logic.
13844 * f-lang.c (struct value): A value which can be passed into a
13845 Fortran function call.
13846 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13847 where appropriate.
13848 (struct type): Value ready for a Fortran function call.
13849 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13850 is needed.
13851 * f-lang.h (fortran_argument_convert): Declaration.
13852 (fortran_preserve_arg_pointer): Declaration.
13853 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13854
13855 2019-03-05 Tom Tromey <tromey@adacore.com>
13856
13857 * python/py-prettyprint.c (print_string_repr): Remove #if.
13858 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13859
13860 2019-03-05 Tom Tromey <tromey@adacore.com>
13861
13862 * target.c (the_dummy_target): Move later. Change type to
13863 "dummy_target".
13864 (initialize_targets): Don't initialize the_dummy_target.
13865
13866 2019-03-05 Tom Tromey <tromey@adacore.com>
13867
13868 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13869 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13870
13871 2019-03-05 Tom Tromey <tromey@adacore.com>
13872
13873 * windows-nat.c (windows_nat_target::attach)
13874 (windows_nat_target::detach): Don't call gdb_flush.
13875 * valprint.c (generic_val_print, val_print, val_print_string):
13876 Don't call gdb_flush.
13877 * utils.c (defaulted_query): Don't call gdb_flush.
13878 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13879 * target.c (target_announce_detach): Don't call gdb_flush.
13880 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13881 * remote.c (extended_remote_target::attach): Don't call
13882 gdb_flush.
13883 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13884 * printcmd.c (do_examine): Don't call gdb_flush.
13885 (info_display_command): Don't call gdb_flush.
13886 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13887 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13888 * memattr.c (info_mem_command): Don't call gdb_flush.
13889 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13890 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13891 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13892 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13893 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13894 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13895 (gnu_nat_target::detach): Don't call gdb_flush.
13896 * f-valprint.c (f_val_print): Don't call gdb_flush.
13897 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13898 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13899 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13900 gdb_flush.
13901 * c-valprint.c (c_val_print): Don't call gdb_flush.
13902 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13903
13904 2019-03-05 Tom Tromey <tromey@adacore.com>
13905
13906 * varobj.c (update_dynamic_varobj_children): Update.
13907 (install_default_visualizer): Use reset, not release.
13908 * value.c (set_internalvar): Update.
13909 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13910 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13911 ATTRIBUTE_UNUSED_RESULT.
13912
13913 2019-03-05 Tom Tromey <tromey@adacore.com>
13914
13915 * remote.c (class scoped_remote_fd) <release>: Add
13916 ATTRIBUTE_UNUSED_RESULT.
13917
13918 2019-03-05 Tom Tromey <tromey@adacore.com>
13919
13920 * macroexp.c (struct macro_buffer) <release>: Add
13921 ATTRIBUTE_UNUSED_RESULT.
13922
13923 2019-03-05 Tom Tromey <tromey@adacore.com>
13924
13925 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13926 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13927 ATTRIBUTE_UNUSED_RESULT.
13928
13929 2019-03-05 Tom Tromey <tromey@adacore.com>
13930
13931 * common/scoped_fd.h (class scoped_fd) <release>: Add
13932 ATTRIBUTE_UNUSED_RESULT.
13933
13934 2019-03-05 Tom Tromey <tromey@adacore.com>
13935
13936 * parser-defs.h (struct parser_state) <release>: Add
13937 ATTRIBUTE_UNUSED_RESULT.
13938
13939 2019-03-05 Tom Tromey <tromey@adacore.com>
13940
13941 * utils.h (class gdb_argv) <release>: Add
13942 ATTRIBUTE_UNUSED_RESULT.
13943 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13944
13945 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13946
13947 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13948 for-loop range, to avoid compiler warnings.
13949
13950 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13951 avoid compiler warnings about unused variables.
13952
13953 * NEWS: Mention end of support for native debugging on MS-Windows
13954 before XP.
13955
13956 PR gdb/24292
13957 * common/netstuff.c:
13958 * gdbserver/gdbreplay.c
13959 * gdbserver/remote-utils.c:
13960 * ser-tcp.c:
13961 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13962 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13963 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13964 'getaddrinfo' and 'freeaddrinfo' were not available before
13965 Windows XP, and mingw.org's MinGW headers by default define
13966 _WIN32_WINNT to 0x500.
13967
13968 2019-03-01 Gary Benson <gbenson@redhat.com>
13969
13970 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13971
13972 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13973 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13974
13975 PR gdb/8527
13976 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13977 set_sigint_trap, clear_sigint_trap.
13978
13979 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13980
13981 * target.c (target_detach): Clear the regcache and the
13982 frame cache.
13983
13984 2019-02-27 Pedro Alves <palves@redhat.com>
13985
13986 * utils.c (set_screen_size): When we cap the height/width sizes,
13987 tweak the corresponding command variable to show "unlimited":
13988
13989 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13990 Pedro Alves <palves@redhat.com>
13991
13992 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13993 before calling rl_set_screen_size.
13994
13995 2019-02-27 Tom Tromey <tromey@adacore.com>
13996
13997 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13998 define.
13999 * python/py-value.c: Remove Python 2.4 workaround.
14000 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14001 workaround.
14002 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14003 Python 2.4 workaround.
14004 * python/python-internal.h: Remove Python 2.4 comment.
14005 (Py_ssize_t): Don't define.
14006 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14007 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14008 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14009 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14010 * python/python.c (do_start_initialization): Remove Python 2.4
14011 workaround.
14012 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14013 (print_children): Remove Python 2.4 workaround.
14014 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14015 workaround.
14016 (CHARBUFFERPROC_NAME): Remove.
14017 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14018 Python 2.4 workaround.
14019
14020 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14021
14022 * NEWS: Note minimum Python version.
14023
14024 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14025
14026 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14027 code from these functions. Remove corresponding ifdefs. Use
14028 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14029 Remove gotos and target of gotos.
14030 (infpy_search_memory): Likewise.
14031
14032 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14033
14034 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14035 (hppa_gdbarch_init): Don't register deleted functions with
14036 gdbarch.
14037
14038 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14039
14040 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14041 (h8300_unwind_sp): Delete.
14042 (h8300_dummy_id): Delete.
14043 (h8300_gdbarch_init): Don't register deleted functions with
14044 gdbarch.
14045
14046 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14047
14048 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14049 (ft32_unwind_pc): Delete.
14050 (ft32_unwind_sp): Delete.
14051 (ft32_gdbarch_init): Don't register deleted functions with
14052 gdbarch.
14053
14054 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14055
14056 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14057 (frv_unwind_pc): Delete.
14058 (frv_unwind_sp): Delete.
14059 (frv_gdbarch_init): Don't register deleted functions with
14060 gdbarch.
14061
14062 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14063
14064 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14065 (riscv_unwind_pc): Delete.
14066 (riscv_unwind_sp): Delete.
14067 (riscv_gdbarch_init): Don't register deleted functions with
14068 gdbarch.
14069
14070 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14071
14072 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14073 (csky_unwind_pc): Delete.
14074 (csky_unwind_sp): Delete.
14075 (csky_gdbarch_init): Don't register deleted functions with
14076 gdbarch.
14077
14078 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14079
14080 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14081 (cris_unwind_pc): Delete.
14082 (cris_unwind_sp): Delete.
14083 (cris_gdbarch_init): Don't register deleted functions with
14084 gdbarch.
14085
14086 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14087
14088 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14089 (bfin_unwind_pc): Delete.
14090 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14091
14092 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14093
14094 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14095 (arm_unwind_pc): Delete.
14096 (arm_unwind_sp): Delete.
14097 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14098
14099 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14100
14101 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14102 (arc_unwind_pc): Delete.
14103 (arc_unwind_sp): Delete.
14104 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14105
14106 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14107
14108 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14109 (alpha_unwind_pc): Delete.
14110 (alpha_gdbarch_init): Don't register deleted functions with
14111 gdbarch.
14112
14113 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14114
14115 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14116 (aarch64_unwind_pc): Delete.
14117 (aarch64_unwind_sp): Delete.
14118 (aarch64_gdbarch_init): Don't register deleted functions with
14119 gdbarch.
14120
14121 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14122
14123 * gdbtypes.c (type_align): Don't consider static members when
14124 computing structure alignment.
14125
14126 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14127
14128 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14129 return 0 for other types.
14130 * arch-utils.c (default_type_align): Always return 0.
14131 * gdbarch.h: Regenerate.
14132 * gdbarch.sh (type_align): Extend comment.
14133 * gdbtypes.c (type_align): Add additional comments, always call
14134 gdbarch_type_align before applying the default rules.
14135 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14136 generic code will then apply a suitable default.
14137 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14138 types, return 0 for other types.
14139
14140 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14141
14142 * NEWS: Create a new section for the next release branch.
14143 Rename the section of the current branch, now that it has
14144 been cut.
14145
14146 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14147
14148 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14149 * version.in: Bump version to 8.3.50.DATE-git.
14150
14151 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14152
14153 * aix-thread.c (ptid_cmp): Remove unused variable.
14154 (get_signaled_thread): Likewise.
14155 (store_regs_user_thread): Likewise.
14156 (store_regs_kernel_thread): Likewise.
14157 (fetch_regs_kernel_thread): Remove shadowed variable.
14158
14159 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14160
14161 * features/riscv/32bit-cpu.xml: Add register numbers.
14162 * features/riscv/32bit-fpu.c: Regenerate.
14163 * features/riscv/32bit-fpu.xml: Add register numbers.
14164 * features/riscv/64bit-cpu.xml: Add register numbers.
14165 * features/riscv/64bit-fpu.c: Regenerate.
14166 * features/riscv/64bit-fpu.xml: Add register numbers.
14167
14168 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14169
14170 * NEWS: Mention two argument form of gdb.Value constructor.
14171 * python/py-value.c (convert_buffer_and_type_to_value): New
14172 function.
14173 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14174 Add support for handling an optional second argument. Call
14175 convert_buffer_and_type_to_value as appropriate.
14176 * python/python-internal.h (Py_buffer_deleter): New struct.
14177 (Py_buffer_up): New typedef.
14178
14179 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14180
14181 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14182 instead of releasing ownership.
14183
14184 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14185
14186 * dwarf2read.c (open_and_init_dwp_file): Call
14187 elf_numsections instead of bfd_count_sections to initialize
14188 dwp_file->num_sections.
14189
14190 2019-02-25 Tom Tromey <tromey@adacore.com>
14191
14192 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14193
14194 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14195
14196 * gcore.in: Add '--readnever' option when invoking GDB.
14197
14198 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14199
14200 * MAINTAINERS: Update my email address.
14201
14202 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14203
14204 * build-id.c (build_id_to_debug_bfd_1): New function.
14205 (build_id_to_debug_bfd): Look for separate debug file in
14206 sysroot.
14207
14208 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14209
14210 * gdbarch.sh: Update the copyright year range that is placed into
14211 generated files.
14212
14213 2019-02-22 Keith Seitz <keiths@redhat.com>
14214
14215 PR symtab/23853
14216 * linespec.c (create_sals_line_offset): Search for the default
14217 symtab's filename instead of its fullname.
14218
14219 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14220
14221 * NEWS: Update style defaults.
14222
14223 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14224
14225 * main.c (captured_main_1): Disable styling in batch mode.
14226
14227 2019-02-20 Tom Tromey <tom@tromey.com>
14228
14229 * symtab.c (symtab_symbol_info): Fix typos.
14230
14231 2019-02-20 Tom Tromey <tromey@adacore.com>
14232
14233 * findcmd.c (_initialize_mem_search): Use upper case for
14234 metasyntactic variables.
14235
14236 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14237
14238 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14239 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14240
14241 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14242
14243 * top.h (source_file_name): Change to std::string.
14244 * top.c (source_file_name): Likewise.
14245 (command_line_input): Adjust.
14246 * cli/cli-script.c (script_from_file): Adjust.
14247
14248 2019-02-19 Tom Tromey <tromey@adacore.com>
14249
14250 * ravenscar-thread.c
14251 (ravenscar_thread_target::update_thread_list): Don't call
14252 ada_build_task_list.
14253 * ada-lang.h (ada_build_task_list): Don't declare.
14254 * ada-tasks.c (struct ada_tasks_inferior_data)
14255 <task_list_valid_p>: Now bool.
14256 (read_known_tasks, ada_task_list_changed)
14257 (ada_tasks_invalidate_inferior_data): Update.
14258 (read_known_tasks_array): Return bool.
14259 (read_known_tasks_list): Likewise.
14260 (read_known_tasks): Return void.
14261 (ada_build_task_list): Now static.
14262
14263 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14264
14265 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14266 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14267
14268 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14269
14270 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14271 variant for ada_tasks_pspace_data_handle and
14272 ada_tasks_inferior_data_handle.
14273 (ada_tasks_pspace_data_cleanup): New function.
14274 (ada_tasks_inferior_data_cleanup): New function.
14275
14276 2019-02-17 Tom Tromey <tom@tromey.com>
14277
14278 * macrotab.h (macro_source_fullname): Return a std::string.
14279 * macrotab.c (macro_include, check_for_redefinition)
14280 (macro_undef, macro_lookup_definition, foreach_macro)
14281 (foreach_macro_in_scope): Update.
14282 (macro_source_fullname): Return a std::string.
14283 * macrocmd.c (show_pp_source_pos): Update.
14284
14285 2019-02-17 Tom Tromey <tom@tromey.com>
14286
14287 * macrocmd.c (show_pp_source_pos): Style the file names.
14288
14289 2019-02-17 Tom Tromey <tom@tromey.com>
14290
14291 PR tui/24197:
14292 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14293
14294 2019-02-17 Tom Tromey <tom@tromey.com>
14295
14296 * ada-lang.c (user_select_syms): Use filtered printing.
14297 * utils.c (wrap_style): New global.
14298 (desired_style): Remove.
14299 (emit_style_escape): Add stream parameter.
14300 (set_output_style, reset_terminal_style, prompt_for_continue):
14301 Update.
14302 (flush_wrap_buffer): Only flush gdb_stdout.
14303 (wrap_here): Set wrap_style.
14304 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14305 treat escape sequences as a character. Change when wrap buffer is
14306 flushed.
14307 (fputs_styled): Do not set the output style when the default is
14308 requested.
14309 * ui-style.h (struct ui_file_style) <is_default>: New method.
14310 * source.c (print_source_lines_base): Emit escape sequences in one
14311 piece.
14312
14313 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14314
14315 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14316 integers and enumeration types.
14317
14318 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14319
14320 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14321 instead of lookup_symbol_in_language
14322 (do_exact_match): New function.
14323 (ada_get_symbol_name_matcher): Return do_exact_match when
14324 doing a verbatim match.
14325
14326 2019-02-15 Tom Tromey <tromey@adacore.com>
14327
14328 * ravenscar-thread.c (ravenscar_thread_target::resume)
14329 (ravenscar_thread_target::wait): Special case wildcard requests.
14330
14331 2019-02-15 Tom Tromey <tromey@adacore.com>
14332
14333 * ravenscar-thread.c (base_ptid): Remove.
14334 (struct ravenscar_thread_target) <close>: New method.
14335 <m_base_ptid>: New member.
14336 <update_inferior_ptid, active_task, task_is_currently_active,
14337 runtime_initialized>: Declare methods.
14338 <ravenscar_thread_target>: Add constructor.
14339 (ravenscar_thread_target::task_is_currently_active)
14340 (ravenscar_thread_target::update_inferior_ptid)
14341 (ravenscar_runtime_initialized): Rename. Now methods.
14342 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14343 (ravenscar_thread_target::update_thread_list): Update.
14344 (ravenscar_thread_target::active_task): Now method.
14345 (ravenscar_thread_target::store_registers)
14346 (ravenscar_thread_target::prepare_to_store)
14347 (ravenscar_thread_target::prepare_to_store)
14348 (ravenscar_thread_target::mourn_inferior): Update.
14349 (ravenscar_inferior_created): Use "new" to create target.
14350 (ravenscar_thread_target::get_ada_task_ptid): Update.
14351 (_initialize_ravenscar): Don't initialize base_ptid.
14352 (ravenscar_ops): Remove global.
14353
14354 2019-02-15 Tom Tromey <tromey@adacore.com>
14355
14356 * target.h (push_target): Declare new overload.
14357 * target.c (push_target): New overload, taking an rvalue reference.
14358 * remote.c (remote_target::open_1): Use push_target overload.
14359 * corelow.c (core_target_open): Use push_target overload.
14360
14361 2019-02-15 Tom Tromey <tromey@adacore.com>
14362
14363 * ravenscar-thread.c (is_ravenscar_task)
14364 (ravenscar_task_is_currently_active): Return bool.
14365 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14366 (_initialize_ravenscar): Remove "(void)".
14367 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14368 Return bool.
14369
14370 2019-02-15 Tom Tromey <tromey@adacore.com>
14371
14372 * ravenscar-thread.c (ravenscar_runtime_initializer)
14373 (has_ravenscar_runtime, get_running_thread_id)
14374 (ravenscar_thread_target::resume): Fix indentation.
14375
14376 2019-02-15 Tom Tromey <tromey@adacore.com>
14377
14378 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14379 from ravenscar_arch_ops.
14380 (sparc_ravenscar_ops::fetch_registers)
14381 (sparc_ravenscar_ops::store_registers): Now methods.
14382 (sparc_ravenscar_prepare_to_store): Remove.
14383 (sparc_ravenscar_ops): Redefine.
14384 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14385 methods and destructor. Remove members.
14386 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14387 (ravenscar_thread_target::store_registers)
14388 (ravenscar_thread_target::prepare_to_store): Update.
14389 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14390 Remove.
14391 (struct ppc_ravenscar_powerpc_ops): Derive from
14392 ravenscar_arch_ops.
14393 (ppc_ravenscar_powerpc_ops::fetch_registers)
14394 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14395 (ppc_ravenscar_powerpc_ops): Redefine.
14396 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14397 (ppc_ravenscar_e500_ops::fetch_registers)
14398 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14399 (ppc_ravenscar_e500_ops): Redefine.
14400 * aarch64-ravenscar-thread.c
14401 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14402 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14403 (aarch64_ravenscar_fetch_registers)
14404 (aarch64_ravenscar_store_registers): Now methods.
14405 (aarch64_ravenscar_ops): Redefine.
14406
14407 2019-02-15 Tom Tromey <tromey@adacore.com>
14408
14409 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14410 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14411 (ravenscar_thread_target::stopped_by_watchpoint)
14412 (ravenscar_thread_target::stopped_data_address)
14413 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14414
14415 2019-02-15 Tom Tromey <tromey@adacore.com>
14416
14417 * ravenscar-thread.c: Fix some typos.
14418
14419 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14420 Tom Tromey <tromey@adacore.com>
14421
14422 * ada-lang.c (ada_exception_sal): Change addr_string to a
14423 std::string.
14424 (create_ada_exception_catchpoint): Update.
14425
14426 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14427 Tom Tromey <tromey@adacore.com>
14428
14429 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14430 (bp_location_ops): Remove.
14431 (base_breakpoint_allocate_location): Update.
14432 (free_bp_location): Update.
14433 * ada-lang.c (class ada_catchpoint_location)
14434 <ada_catchpoint_location>: Remove ops parameter.
14435 (ada_catchpoint_location_dtor): Remove.
14436 (ada_catchpoint_location_ops): Remove.
14437 (allocate_location_exception): Update.
14438 * breakpoint.h (struct bp_location_ops): Remove.
14439 (class bp_location) <bp_location>: Remove bp_location_ops
14440 parameter.
14441 <~bp_location>: Add destructor.
14442 <ops>: Remove.
14443
14444 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14445 Pedro Alves <palves@redhat.com>
14446
14447 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14448 'PATH_MAX'.
14449
14450 2019-02-14 David Michael <fedora.dm0@gmail.com>
14451 Samuel Thibault <samuel.thibault@gnu.org>
14452 Thomas Schwinge <thomas@codesourcery.com>
14453
14454 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14455 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14456
14457 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14458
14459 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14460 (check_empty): Use "const char *".
14461
14462 * gnu-nat.c (gnu_nat_target::detach): Instead of
14463 'detach_inferior (pid)' call
14464 'detach_inferior (find_inferior_pid (pid))'.
14465
14466 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14467 'nat/fork-inferior.o'.
14468 * gnu-nat.c: #include "nat/fork-inferior.h".
14469
14470 * gnu-nat.c (gnu_nat_target::detach): Instead of
14471 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14472 * gnu-nat.h: #include "inf-child.h".
14473 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14474 'i386_gnu_nat_target::fetch_registers'.
14475 (gnu_store_registers): Rename/move to
14476 'i386_gnu_nat_target::store_registers'.
14477
14478 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14479 * gnu-nat.h (mach_thread_info): New function.
14480 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14481
14482 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14483
14484 2019-02-14 Frederic Konrad <konrad@adacore.com>
14485
14486 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14487
14488 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14489
14490 * windows-nat.c (windows_add_thread): Add new parameter
14491 "main_thread_p" with default value set to false. Update
14492 function documentation as well as all callers.
14493 (windows_delete_thread): Likewise.
14494 (fake_create_process): Update call to windows_add_thread.
14495 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14496 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14497 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14498 call to windows_delete_thread.
14499
14500 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14501
14502 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14503
14504 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14505
14506 * symfile.c (find_separate_debug_file): Use canonical path of
14507 sysroot with child_path instead of gdb_sysroot if it is valid.
14508
14509 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14510
14511 * symfile.c (find_separate_debug_file): Use child_path to
14512 determine if an object file is under a sysroot.
14513
14514 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14515
14516 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14517 unittests/child-path-selftests.c.
14518 * common/pathstuff.c (child_path): New function.
14519 * common/pathstuff.h (child_path): New prototype.
14520 * unittests/child-path-selftests.c: New file.
14521
14522 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14523
14524 * symfile.c (find_separate_debug_file): Look for separate debug
14525 files in debug directories under the sysroot.
14526
14527 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14528
14529 * symtab.h (struct minimal_symbol data_p): New const method.
14530 (struct minimal_symbol text_p): Likewise.
14531 * symtab.c (output_source_filename): Use file name style
14532 to print file name.
14533 (print_symbol_info): Likewise.
14534 (print_msymbol_info): Use address style to print addresses.
14535 Use function name style to print executable text symbols.
14536 (expand_symtab_containing_pc): Use data_p.
14537 (find_pc_sect_compunit_symtab): Likewise.
14538
14539 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14540
14541 * breakpoint.c (describe_other_breakpoints): Use address style
14542 to print addresses.
14543 (say_where): Likewise.
14544
14545 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14546
14547 * ada-typeprint.c (print_func_type): Print function name
14548 style to print function name.
14549 * c-typeprint.c (c_print_type_1): Likewise.
14550
14551 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14552
14553 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14554 for execve.
14555
14556 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14557
14558 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14559 type_stack.
14560
14561 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14562
14563 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14564 TYPE_CODE_REF types.
14565
14566 2019-02-08 Jim Wilson <jimw@sifive.com>
14567
14568 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14569 (riscv_linux_fregset): New.
14570 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14571
14572 2019-02-07 Tom Tromey <tom@tromey.com>
14573
14574 * thread.c (thread_cancel_execution_command): Update.
14575 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14576 methods.
14577 (struct thread_fsm_ops): Remove.
14578 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14579 (thread_fsm_should_stop, thread_fsm_return_value)
14580 (thread_fsm_set_finished, thread_fsm_finished_p)
14581 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14582 Don't declare.
14583 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14584 * infrun.c (clear_proceed_status_thread)
14585 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14586 (print_stop_event): Update.
14587 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14588 Add constructor.
14589 (step_command_fsm_ops): Remove.
14590 (new_step_command_fsm): Remove.
14591 (step_1): Update.
14592 (step_command_fsm::should_stop): Rename from
14593 step_command_fsm_should_stop.
14594 (step_command_fsm::clean_up): Rename from
14595 step_command_fsm_clean_up.
14596 (step_command_fsm::do_async_reply_reason): Rename from
14597 step_command_fsm_async_reply_reason.
14598 (struct until_next_fsm): Inherit from thread_fsm. Add
14599 constructor.
14600 (until_next_fsm_ops): Remove.
14601 (new_until_next_fsm): Remove.
14602 (until_next_fsm::should_stop): Rename from
14603 until_next_fsm_should_stop.
14604 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14605 (until_next_fsm::do_async_reply_reason): Rename from
14606 until_next_fsm_async_reply_reason.
14607 (struct finish_command_fsm): Inherit from thread_fsm. Add
14608 constructor. Change type of breakpoint.
14609 (finish_command_fsm_ops): Remove.
14610 (new_finish_command_fsm): Remove.
14611 (finish_command_fsm::should_stop): Rename from
14612 finish_command_fsm_should_stop.
14613 (finish_command_fsm::clean_up): Rename from
14614 finish_command_fsm_clean_up.
14615 (finish_command_fsm::return_value): Rename from
14616 finish_command_fsm_return_value.
14617 (finish_command_fsm::do_async_reply_reason): Rename from
14618 finish_command_fsm_async_reply_reason.
14619 (finish_command): Update.
14620 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14621 Add constructor.
14622 (call_thread_fsm_ops): Remove.
14623 (call_thread_fsm::call_thread_fsm): Rename from
14624 new_call_thread_fsm.
14625 (call_thread_fsm::should_stop): Rename from
14626 call_thread_fsm_should_stop.
14627 (call_thread_fsm::should_notify_stop): Rename from
14628 call_thread_fsm_should_notify_stop.
14629 (run_inferior_call, call_function_by_hand_dummy): Update.
14630 * cli/cli-interp.c (should_print_stop_to_console): Update.
14631 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14632 Add constructor. Change type of location_breakpoint,
14633 caller_breakpoint.
14634 (until_break_fsm_ops): Remove.
14635 (new_until_break_fsm): Remove.
14636 (until_break_fsm::should_stop): Rename from
14637 until_break_fsm_should_stop.
14638 (until_break_fsm::clean_up): Rename from
14639 until_break_fsm_clean_up.
14640 (until_break_fsm::do_async_reply_reason): Rename from
14641 until_break_fsm_async_reply_reason.
14642 (until_break_command): Update.
14643 * thread-fsm.c: Remove.
14644 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14645
14646 2019-02-07 Tom Tromey <tom@tromey.com>
14647
14648 * yy-remap.h: Add include guard.
14649 * xtensa-tdep.h: Add include guard.
14650 * xcoffread.h: Rename include guard.
14651 * varobj-iter.h: Add include guard.
14652 * tui/tui.h: Rename include guard.
14653 * tui/tui-winsource.h: Rename include guard.
14654 * tui/tui-wingeneral.h: Rename include guard.
14655 * tui/tui-windata.h: Rename include guard.
14656 * tui/tui-win.h: Rename include guard.
14657 * tui/tui-stack.h: Rename include guard.
14658 * tui/tui-source.h: Rename include guard.
14659 * tui/tui-regs.h: Rename include guard.
14660 * tui/tui-out.h: Rename include guard.
14661 * tui/tui-layout.h: Rename include guard.
14662 * tui/tui-io.h: Rename include guard.
14663 * tui/tui-hooks.h: Rename include guard.
14664 * tui/tui-file.h: Rename include guard.
14665 * tui/tui-disasm.h: Rename include guard.
14666 * tui/tui-data.h: Rename include guard.
14667 * tui/tui-command.h: Rename include guard.
14668 * tic6x-tdep.h: Add include guard.
14669 * target/waitstatus.h: Rename include guard.
14670 * target/wait.h: Rename include guard.
14671 * target/target.h: Rename include guard.
14672 * target/resume.h: Rename include guard.
14673 * target-float.h: Rename include guard.
14674 * stabsread.h: Add include guard.
14675 * rs6000-tdep.h: Add include guard.
14676 * riscv-fbsd-tdep.h: Add include guard.
14677 * regformats/regdef.h: Rename include guard.
14678 * record.h: Rename include guard.
14679 * python/python.h: Rename include guard.
14680 * python/python-internal.h: Rename include guard.
14681 * python/py-stopevent.h: Rename include guard.
14682 * python/py-ref.h: Rename include guard.
14683 * python/py-record.h: Rename include guard.
14684 * python/py-record-full.h: Rename include guard.
14685 * python/py-record-btrace.h: Rename include guard.
14686 * python/py-instruction.h: Rename include guard.
14687 * python/py-events.h: Rename include guard.
14688 * python/py-event.h: Rename include guard.
14689 * procfs.h: Add include guard.
14690 * proc-utils.h: Add include guard.
14691 * p-lang.h: Add include guard.
14692 * or1k-tdep.h: Rename include guard.
14693 * observable.h: Rename include guard.
14694 * nto-tdep.h: Rename include guard.
14695 * nat/x86-linux.h: Rename include guard.
14696 * nat/x86-linux-dregs.h: Rename include guard.
14697 * nat/x86-gcc-cpuid.h: Add include guard.
14698 * nat/x86-dregs.h: Rename include guard.
14699 * nat/x86-cpuid.h: Rename include guard.
14700 * nat/ppc-linux.h: Rename include guard.
14701 * nat/mips-linux-watch.h: Rename include guard.
14702 * nat/linux-waitpid.h: Rename include guard.
14703 * nat/linux-ptrace.h: Rename include guard.
14704 * nat/linux-procfs.h: Rename include guard.
14705 * nat/linux-osdata.h: Rename include guard.
14706 * nat/linux-nat.h: Rename include guard.
14707 * nat/linux-namespaces.h: Rename include guard.
14708 * nat/linux-btrace.h: Rename include guard.
14709 * nat/glibc_thread_db.h: Rename include guard.
14710 * nat/gdb_thread_db.h: Rename include guard.
14711 * nat/gdb_ptrace.h: Rename include guard.
14712 * nat/fork-inferior.h: Rename include guard.
14713 * nat/amd64-linux-siginfo.h: Rename include guard.
14714 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14715 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14716 * nat/aarch64-linux.h: Rename include guard.
14717 * nat/aarch64-linux-hw-point.h: Rename include guard.
14718 * mn10300-tdep.h: Add include guard.
14719 * mips-linux-tdep.h: Add include guard.
14720 * mi/mi-parse.h: Rename include guard.
14721 * mi/mi-out.h: Rename include guard.
14722 * mi/mi-main.h: Rename include guard.
14723 * mi/mi-interp.h: Rename include guard.
14724 * mi/mi-getopt.h: Rename include guard.
14725 * mi/mi-console.h: Rename include guard.
14726 * mi/mi-common.h: Rename include guard.
14727 * mi/mi-cmds.h: Rename include guard.
14728 * mi/mi-cmd-break.h: Rename include guard.
14729 * m2-lang.h: Add include guard.
14730 * location.h: Rename include guard.
14731 * linux-record.h: Rename include guard.
14732 * linux-nat.h: Add include guard.
14733 * linux-fork.h: Add include guard.
14734 * i386-darwin-tdep.h: Rename include guard.
14735 * hppa-linux-offsets.h: Add include guard.
14736 * guile/guile.h: Rename include guard.
14737 * guile/guile-internal.h: Rename include guard.
14738 * gnu-nat.h: Rename include guard.
14739 * gdb-stabs.h: Rename include guard.
14740 * frv-tdep.h: Add include guard.
14741 * f-lang.h: Add include guard.
14742 * event-loop.h: Add include guard.
14743 * darwin-nat.h: Rename include guard.
14744 * cp-abi.h: Rename include guard.
14745 * config/sparc/nm-sol2.h: Rename include guard.
14746 * config/nm-nto.h: Rename include guard.
14747 * config/nm-linux.h: Add include guard.
14748 * config/i386/nm-i386gnu.h: Rename include guard.
14749 * config/djgpp/nl_types.h: Rename include guard.
14750 * config/djgpp/langinfo.h: Rename include guard.
14751 * compile/gcc-cp-plugin.h: Add include guard.
14752 * compile/gcc-c-plugin.h: Add include guard.
14753 * compile/compile.h: Rename include guard.
14754 * compile/compile-object-run.h: Rename include guard.
14755 * compile/compile-object-load.h: Rename include guard.
14756 * compile/compile-internal.h: Rename include guard.
14757 * compile/compile-cplus.h: Rename include guard.
14758 * compile/compile-c.h: Rename include guard.
14759 * common/xml-utils.h: Rename include guard.
14760 * common/x86-xstate.h: Rename include guard.
14761 * common/version.h: Rename include guard.
14762 * common/vec.h: Rename include guard.
14763 * common/tdesc.h: Rename include guard.
14764 * common/selftest.h: Rename include guard.
14765 * common/scoped_restore.h: Rename include guard.
14766 * common/scoped_mmap.h: Rename include guard.
14767 * common/scoped_fd.h: Rename include guard.
14768 * common/safe-iterator.h: Rename include guard.
14769 * common/run-time-clock.h: Rename include guard.
14770 * common/refcounted-object.h: Rename include guard.
14771 * common/queue.h: Rename include guard.
14772 * common/ptid.h: Rename include guard.
14773 * common/print-utils.h: Rename include guard.
14774 * common/preprocessor.h: Rename include guard.
14775 * common/pathstuff.h: Rename include guard.
14776 * common/observable.h: Rename include guard.
14777 * common/netstuff.h: Rename include guard.
14778 * common/job-control.h: Rename include guard.
14779 * common/host-defs.h: Rename include guard.
14780 * common/gdb_wait.h: Rename include guard.
14781 * common/gdb_vecs.h: Rename include guard.
14782 * common/gdb_unlinker.h: Rename include guard.
14783 * common/gdb_unique_ptr.h: Rename include guard.
14784 * common/gdb_tilde_expand.h: Rename include guard.
14785 * common/gdb_sys_time.h: Rename include guard.
14786 * common/gdb_string_view.h: Rename include guard.
14787 * common/gdb_splay_tree.h: Rename include guard.
14788 * common/gdb_setjmp.h: Rename include guard.
14789 * common/gdb_ref_ptr.h: Rename include guard.
14790 * common/gdb_optional.h: Rename include guard.
14791 * common/gdb_locale.h: Rename include guard.
14792 * common/gdb_assert.h: Rename include guard.
14793 * common/filtered-iterator.h: Rename include guard.
14794 * common/filestuff.h: Rename include guard.
14795 * common/fileio.h: Rename include guard.
14796 * common/environ.h: Rename include guard.
14797 * common/common-utils.h: Rename include guard.
14798 * common/common-types.h: Rename include guard.
14799 * common/common-regcache.h: Rename include guard.
14800 * common/common-inferior.h: Rename include guard.
14801 * common/common-gdbthread.h: Rename include guard.
14802 * common/common-exceptions.h: Rename include guard.
14803 * common/common-defs.h: Rename include guard.
14804 * common/common-debug.h: Rename include guard.
14805 * common/cleanups.h: Rename include guard.
14806 * common/buffer.h: Rename include guard.
14807 * common/btrace-common.h: Rename include guard.
14808 * common/break-common.h: Rename include guard.
14809 * cli/cli-utils.h: Rename include guard.
14810 * cli/cli-style.h: Rename include guard.
14811 * cli/cli-setshow.h: Rename include guard.
14812 * cli/cli-script.h: Rename include guard.
14813 * cli/cli-interp.h: Rename include guard.
14814 * cli/cli-decode.h: Rename include guard.
14815 * cli/cli-cmds.h: Rename include guard.
14816 * charset-list.h: Add include guard.
14817 * buildsym-legacy.h: Rename include guard.
14818 * bfin-tdep.h: Add include guard.
14819 * ax.h: Rename include guard.
14820 * arm-linux-tdep.h: Add include guard.
14821 * arm-fbsd-tdep.h: Add include guard.
14822 * arch/xtensa.h: Rename include guard.
14823 * arch/tic6x.h: Add include guard.
14824 * arch/i386.h: Add include guard.
14825 * arch/arm.h: Rename include guard.
14826 * arch/arm-linux.h: Rename include guard.
14827 * arch/arm-get-next-pcs.h: Rename include guard.
14828 * arch/amd64.h: Add include guard.
14829 * arch/aarch64-insn.h: Rename include guard.
14830 * arch-utils.h: Rename include guard.
14831 * annotate.h: Add include guard.
14832 * amd64-darwin-tdep.h: Rename include guard.
14833 * aarch64-linux-tdep.h: Add include guard.
14834 * aarch64-fbsd-tdep.h: Add include guard.
14835 * aarch32-linux-nat.h: Add include guard.
14836
14837 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14838
14839 * macrotab.c (macro_define_internal): New function that
14840 factorizes macro_define_object_internal and macro_define_function
14841 code.
14842 (macro_define_object_internal): Use macro_define_internal.
14843 (macro_define_function): Likewise.
14844
14845 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14846
14847 * macrocmd.c (extract_identifier): Return
14848 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14849 callers.
14850
14851 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14852
14853 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14854
14855 2019-02-05 Tom Tromey <tom@tromey.com>
14856
14857 * target.c (target_stack::unpush): Move assertion earlier.
14858
14859 2019-01-30 Tom Tromey <tom@tromey.com>
14860
14861 PR python/23615:
14862 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14863 (gdbpy_parse_and_eval): Likewise.
14864 * python/python-internal.h (gdbpy_allow_threads): New class.
14865
14866 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14867
14868 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14869 (aarch64_fbsd_fpregmap): Move earlier.
14870 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14871 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14872 instead of individual calls to trad_frame_set_reg_addr.
14873 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14874 earlier.
14875 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14876 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14877 instead of individual calls to trad_frame_set_reg_addr.
14878
14879 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14880
14881 * CONTRIBUTE: Replace contribution list with wiki link.
14882
14883 2019-01-25 Tom Tromey <tom@tromey.com>
14884
14885 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14886
14887 2019-01-25 Tom Tromey <tom@tromey.com>
14888
14889 * xtensa-linux-nat.c: Fix common/ includes.
14890 * xml-support.h: Fix common/ includes.
14891 * xml-support.c: Fix common/ includes.
14892 * x86-linux-nat.c: Fix common/ includes.
14893 * windows-nat.c: Fix common/ includes.
14894 * varobj.h: Fix common/ includes.
14895 * varobj.c: Fix common/ includes.
14896 * value.c: Fix common/ includes.
14897 * valops.c: Fix common/ includes.
14898 * utils.c: Fix common/ includes.
14899 * unittests/xml-utils-selftests.c: Fix common/ includes.
14900 * unittests/utils-selftests.c: Fix common/ includes.
14901 * unittests/unpack-selftests.c: Fix common/ includes.
14902 * unittests/tracepoint-selftests.c: Fix common/ includes.
14903 * unittests/style-selftests.c: Fix common/ includes.
14904 * unittests/string_view-selftests.c: Fix common/ includes.
14905 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14906 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14907 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14908 * unittests/rsp-low-selftests.c: Fix common/ includes.
14909 * unittests/parse-connection-spec-selftests.c: Fix common/
14910 includes.
14911 * unittests/optional-selftests.c: Fix common/ includes.
14912 * unittests/offset-type-selftests.c: Fix common/ includes.
14913 * unittests/observable-selftests.c: Fix common/ includes.
14914 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14915 * unittests/memrange-selftests.c: Fix common/ includes.
14916 * unittests/memory-map-selftests.c: Fix common/ includes.
14917 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14918 * unittests/function-view-selftests.c: Fix common/ includes.
14919 * unittests/environ-selftests.c: Fix common/ includes.
14920 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14921 * unittests/common-utils-selftests.c: Fix common/ includes.
14922 * unittests/cli-utils-selftests.c: Fix common/ includes.
14923 * unittests/array-view-selftests.c: Fix common/ includes.
14924 * ui-file.c: Fix common/ includes.
14925 * tui/tui-io.c: Fix common/ includes.
14926 * tracepoint.h: Fix common/ includes.
14927 * tracepoint.c: Fix common/ includes.
14928 * tracefile-tfile.c: Fix common/ includes.
14929 * top.h: Fix common/ includes.
14930 * top.c: Fix common/ includes.
14931 * thread.c: Fix common/ includes.
14932 * target/waitstatus.h: Fix common/ includes.
14933 * target/waitstatus.c: Fix common/ includes.
14934 * target.h: Fix common/ includes.
14935 * target.c: Fix common/ includes.
14936 * target-memory.c: Fix common/ includes.
14937 * target-descriptions.c: Fix common/ includes.
14938 * symtab.h: Fix common/ includes.
14939 * symfile.c: Fix common/ includes.
14940 * stap-probe.c: Fix common/ includes.
14941 * spu-linux-nat.c: Fix common/ includes.
14942 * sparc-nat.c: Fix common/ includes.
14943 * source.c: Fix common/ includes.
14944 * solib.c: Fix common/ includes.
14945 * solib-target.c: Fix common/ includes.
14946 * ser-unix.c: Fix common/ includes.
14947 * ser-tcp.c: Fix common/ includes.
14948 * ser-pipe.c: Fix common/ includes.
14949 * ser-base.c: Fix common/ includes.
14950 * selftest-arch.c: Fix common/ includes.
14951 * s12z-tdep.c: Fix common/ includes.
14952 * rust-exp.y: Fix common/ includes.
14953 * rs6000-aix-tdep.c: Fix common/ includes.
14954 * riscv-tdep.c: Fix common/ includes.
14955 * remote.c: Fix common/ includes.
14956 * remote-notif.h: Fix common/ includes.
14957 * remote-fileio.h: Fix common/ includes.
14958 * remote-fileio.c: Fix common/ includes.
14959 * regcache.h: Fix common/ includes.
14960 * regcache.c: Fix common/ includes.
14961 * record-btrace.c: Fix common/ includes.
14962 * python/python.c: Fix common/ includes.
14963 * python/py-type.c: Fix common/ includes.
14964 * python/py-inferior.c: Fix common/ includes.
14965 * progspace.h: Fix common/ includes.
14966 * producer.c: Fix common/ includes.
14967 * procfs.c: Fix common/ includes.
14968 * proc-api.c: Fix common/ includes.
14969 * printcmd.c: Fix common/ includes.
14970 * ppc-linux-nat.c: Fix common/ includes.
14971 * parser-defs.h: Fix common/ includes.
14972 * osdata.c: Fix common/ includes.
14973 * obsd-nat.c: Fix common/ includes.
14974 * nat/x86-linux.c: Fix common/ includes.
14975 * nat/x86-linux-dregs.c: Fix common/ includes.
14976 * nat/x86-dregs.h: Fix common/ includes.
14977 * nat/x86-dregs.c: Fix common/ includes.
14978 * nat/ppc-linux.c: Fix common/ includes.
14979 * nat/mips-linux-watch.h: Fix common/ includes.
14980 * nat/mips-linux-watch.c: Fix common/ includes.
14981 * nat/linux-waitpid.c: Fix common/ includes.
14982 * nat/linux-ptrace.h: Fix common/ includes.
14983 * nat/linux-ptrace.c: Fix common/ includes.
14984 * nat/linux-procfs.c: Fix common/ includes.
14985 * nat/linux-personality.c: Fix common/ includes.
14986 * nat/linux-osdata.c: Fix common/ includes.
14987 * nat/linux-namespaces.c: Fix common/ includes.
14988 * nat/linux-btrace.h: Fix common/ includes.
14989 * nat/linux-btrace.c: Fix common/ includes.
14990 * nat/fork-inferior.c: Fix common/ includes.
14991 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14992 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14993 * nat/aarch64-linux.c: Fix common/ includes.
14994 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14995 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14996 * namespace.h: Fix common/ includes.
14997 * mips-linux-tdep.c: Fix common/ includes.
14998 * minsyms.c: Fix common/ includes.
14999 * mi/mi-parse.h: Fix common/ includes.
15000 * mi/mi-main.c: Fix common/ includes.
15001 * mi/mi-cmd-env.c: Fix common/ includes.
15002 * memrange.h: Fix common/ includes.
15003 * memattr.c: Fix common/ includes.
15004 * maint.h: Fix common/ includes.
15005 * maint.c: Fix common/ includes.
15006 * main.c: Fix common/ includes.
15007 * machoread.c: Fix common/ includes.
15008 * location.c: Fix common/ includes.
15009 * linux-thread-db.c: Fix common/ includes.
15010 * linux-nat.c: Fix common/ includes.
15011 * linux-fork.c: Fix common/ includes.
15012 * inline-frame.c: Fix common/ includes.
15013 * infrun.c: Fix common/ includes.
15014 * inflow.c: Fix common/ includes.
15015 * inferior.h: Fix common/ includes.
15016 * inferior.c: Fix common/ includes.
15017 * infcmd.c: Fix common/ includes.
15018 * inf-ptrace.c: Fix common/ includes.
15019 * inf-child.c: Fix common/ includes.
15020 * ia64-linux-nat.c: Fix common/ includes.
15021 * i387-tdep.c: Fix common/ includes.
15022 * i386-tdep.c: Fix common/ includes.
15023 * i386-linux-tdep.c: Fix common/ includes.
15024 * i386-linux-nat.c: Fix common/ includes.
15025 * i386-go32-tdep.c: Fix common/ includes.
15026 * i386-fbsd-tdep.c: Fix common/ includes.
15027 * i386-fbsd-nat.c: Fix common/ includes.
15028 * guile/scm-type.c: Fix common/ includes.
15029 * guile/guile.c: Fix common/ includes.
15030 * go32-nat.c: Fix common/ includes.
15031 * gnu-nat.c: Fix common/ includes.
15032 * gdbthread.h: Fix common/ includes.
15033 * gdbarch-selftests.c: Fix common/ includes.
15034 * gdb_usleep.c: Fix common/ includes.
15035 * gdb_select.h: Fix common/ includes.
15036 * gdb_bfd.c: Fix common/ includes.
15037 * gcore.c: Fix common/ includes.
15038 * fork-child.c: Fix common/ includes.
15039 * findvar.c: Fix common/ includes.
15040 * fbsd-nat.c: Fix common/ includes.
15041 * event-top.c: Fix common/ includes.
15042 * event-loop.c: Fix common/ includes.
15043 * dwarf2read.c: Fix common/ includes.
15044 * dwarf2loc.c: Fix common/ includes.
15045 * dwarf2-frame.c: Fix common/ includes.
15046 * dwarf-index-cache.c: Fix common/ includes.
15047 * dtrace-probe.c: Fix common/ includes.
15048 * disasm-selftests.c: Fix common/ includes.
15049 * defs.h: Fix common/ includes.
15050 * csky-tdep.c: Fix common/ includes.
15051 * cp-valprint.c: Fix common/ includes.
15052 * cp-support.h: Fix common/ includes.
15053 * cp-support.c: Fix common/ includes.
15054 * corelow.c: Fix common/ includes.
15055 * completer.h: Fix common/ includes.
15056 * completer.c: Fix common/ includes.
15057 * compile/compile.c: Fix common/ includes.
15058 * compile/compile-loc2c.c: Fix common/ includes.
15059 * compile/compile-cplus-types.c: Fix common/ includes.
15060 * compile/compile-cplus-symbols.c: Fix common/ includes.
15061 * command.h: Fix common/ includes.
15062 * cli/cli-dump.c: Fix common/ includes.
15063 * cli/cli-cmds.c: Fix common/ includes.
15064 * charset.c: Fix common/ includes.
15065 * build-id.c: Fix common/ includes.
15066 * btrace.h: Fix common/ includes.
15067 * btrace.c: Fix common/ includes.
15068 * breakpoint.h: Fix common/ includes.
15069 * breakpoint.c: Fix common/ includes.
15070 * ax.h:
15071 (enum agent_op): Fix common/ includes.
15072 * ax-general.c (struct aop_map): Fix common/ includes.
15073 * ax-gdb.c: Fix common/ includes.
15074 * auxv.c: Fix common/ includes.
15075 * auto-load.c: Fix common/ includes.
15076 * arm-tdep.c: Fix common/ includes.
15077 * arch/riscv.c: Fix common/ includes.
15078 * arch/ppc-linux-common.c: Fix common/ includes.
15079 * arch/i386.c: Fix common/ includes.
15080 * arch/arm.c: Fix common/ includes.
15081 * arch/arm-linux.c: Fix common/ includes.
15082 * arch/arm-get-next-pcs.c: Fix common/ includes.
15083 * arch/amd64.c: Fix common/ includes.
15084 * arch/aarch64.c: Fix common/ includes.
15085 * arch/aarch64-insn.c: Fix common/ includes.
15086 * arch-utils.c: Fix common/ includes.
15087 * amd64-windows-tdep.c: Fix common/ includes.
15088 * amd64-tdep.c: Fix common/ includes.
15089 * amd64-sol2-tdep.c: Fix common/ includes.
15090 * amd64-obsd-tdep.c: Fix common/ includes.
15091 * amd64-nbsd-tdep.c: Fix common/ includes.
15092 * amd64-linux-tdep.c: Fix common/ includes.
15093 * amd64-linux-nat.c: Fix common/ includes.
15094 * amd64-fbsd-tdep.c: Fix common/ includes.
15095 * amd64-fbsd-nat.c: Fix common/ includes.
15096 * amd64-dicos-tdep.c: Fix common/ includes.
15097 * amd64-darwin-tdep.c: Fix common/ includes.
15098 * agent.c: Fix common/ includes.
15099 * ada-lang.h: Fix common/ includes.
15100 * ada-lang.c: Fix common/ includes.
15101 * aarch64-tdep.c: Fix common/ includes.
15102
15103 2019-01-25 Tom Tromey <tom@tromey.com>
15104
15105 * common/create-version.sh: Use common/version.h.
15106
15107 2019-01-24 Pedro Alves <palves@redhat.com>
15108
15109 * infrun.c (signal_stop, signal_print, signal_program)
15110 (signal_catch, signal_pass): Now arrays instead of pointers.
15111 (update_signals_program_target, do_target_resume)
15112 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15113 * linux-nat.c (linux_nat_target::pass_signals)
15114 (linux_nat_target::create_inferior, linux_nat_target::attach):
15115 Adjust.
15116 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15117 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15118 * procfs.c (procfs_target::pass_signals): Adjust.
15119 * record-full.c (record_full_target::resume): Adjust.
15120 * remote.c (remote_target::pass_signals)
15121 (remote_target::program_signals): Adjust.
15122 * target-debug.h (target_debug_print_signals): Now takes a
15123 gdb::array_view as parameter. Adjust.
15124 * target.h (target_ops) <pass_signals, program_signals>: Replace
15125 pointer and length parameters with gdb::array_view.
15126 (target_pass_signals, target_program_signals): Likewise.
15127 * target-delegates.c: Regenerate.
15128
15129 2019-01-24 Pedro Alves <palves@redhat.com>
15130
15131 * common/forward-scope-exit.h
15132 (forward_scope_exit::forward_scope_exit): Pass arguments to
15133 m_bind_function directly, instead of creating a std::bind and
15134 copying that.
15135
15136 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15137
15138 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15139 for static members.
15140 (pass_in_v_vfp_candidate): Likewise.
15141
15142 2019-01-23 Tom Tromey <tom@tromey.com>
15143 Pedro Alves <palves@redhat.com>
15144
15145 * regcache.c (class regcache_invalidator): Remove.
15146 (regcache::raw_write): Use make_scope_exit.
15147
15148 2019-01-23 Tom Tromey <tom@tromey.com>
15149
15150 * ui-out.h (class ui_out_emit_type): Update comment.
15151
15152 2019-01-23 Tom Tromey <tom@tromey.com>
15153
15154 * infrun.c (fetch_inferior_event): Update comment.
15155
15156 2019-01-23 Tom Tromey <tom@tromey.com>
15157 Pedro Alves <palves@redhat.com>
15158
15159 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15160 parameter.
15161 (fetch_inferior_event): Use SCOPE_EXIT.
15162
15163
15164 2019-01-23 Tom Tromey <tom@tromey.com>
15165 Pedro Alves <palves@redhat.com>
15166
15167 * infrun.c (disable_thread_events): Delete.
15168 (stop_all_threads): Use SCOPE_EXIT.
15169
15170 2019-01-23 Tom Tromey <tom@tromey.com>
15171 Pedro Alves <palves@redhat.com>
15172
15173 * symfile.c: Include forward-scope-exit.h.
15174 (clear_symtab_users_cleanup): Replace forward declaration with
15175 a FORWARD_SCOPE_EXIT.
15176 (syms_from_objfile_1): Use the forward_scope_exit and
15177 gdb::optional instead of cleanup_function.
15178 (reread_symbols): Use the forward_scope_exit instead of
15179 cleanup_function.
15180 (clear_symtab_users_cleanup): Remove function.
15181
15182 2019-01-23 Tom Tromey <tom@tromey.com>
15183 Pedro Alves <palves@redhat.com>
15184
15185 * linux-nat.c: Include scope-exit.h.
15186 (cleanup_target_stop): Remove.
15187 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15188 SCOPE_EXIT.
15189
15190 2019-01-23 Tom Tromey <tom@tromey.com>
15191 Pedro Alves <palves@redhat.com>
15192
15193 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15194 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15195
15196 2019-01-23 Tom Tromey <tom@tromey.com>
15197 Andrew Burgess <andrew.burgess@embecosm.com>
15198 Pedro Alves <palves@redhat.com>
15199
15200 * infrun.c (fetch_inferior_event): Use scope_exit.
15201 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15202 * top.c (execute_command): Use scope_exit.
15203 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15204 * utils.c (do_bpstat_clear_actions_cleanup)
15205 (make_bpstat_clear_actions_cleanup): Remove.
15206
15207 2019-01-23 Tom Tromey <tom@tromey.com>
15208 Pedro Alves <palves@redhat.com>
15209
15210 * infrun.c: Include "common/scope-exit.h"
15211 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15212 (wait_for_inferior): Use SCOPE_EXIT.
15213 (fetch_inferior_event): Use scope_exit.
15214
15215 2019-01-23 Tom Tromey <tom@tromey.com>
15216 Pedro Alves <palves@redhat.com>
15217
15218 * breakpoint.c (create_breakpoint): Remove cleanup.
15219
15220 2019-01-23 Tom Tromey <tom@tromey.com>
15221 Andrew Burgess <andrew.burgess@embecosm.com>
15222 Pedro Alves <palves@redhat.com>
15223
15224 2019-01-23 Pedro Alves <palves@redhat.com>
15225
15226 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15227
15228 2019-01-23 Pedro Alves <palves@redhat.com>
15229 Andrew Burgess <andrew.burgess@embecosm.com>
15230
15231 * gdbthread.h: Include "common/forward-scope-exit.h".
15232 (scoped_finish_thread_state): Redefine custom class in terms of
15233 forward_scope_exit.
15234
15235 2019-01-23 Pedro Alves <palves@redhat.com>
15236 Andrew Burgess <andrew.burgess@embecosm.com>
15237
15238 * common/forward-scope-exit.h: New file.
15239
15240 2019-01-23 Pedro Alves <palves@redhat.com>
15241 Andrew Burgess <andrew.burgess@embecosm.com>
15242 Tom Tromey <tom@tromey.com>
15243
15244 * common/scope-exit.h: New file.
15245
15246 2019-01-23 Pedro Alves <palves@redhat.com>
15247
15248 * common/preprocessor.h (ESC): Rename to ...
15249 (ESC_PARENS): ... this.
15250 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15251 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15252
15253 2019-01-23 Tom Tromey <tom@tromey.com>
15254
15255 * language.h (class scoped_switch_to_sym_language_if_auto):
15256 Initialize m_lang in both cases.
15257
15258 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15259
15260 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15261 with XCNEW.
15262
15263 2019-01-22 Tom Tromey <tom@tromey.com>
15264
15265 * corelow.c: Do not include sys/file.h.
15266
15267 2019-01-22 Tom Tromey <tom@tromey.com>
15268
15269 * tui/tui-wingeneral.h: Include gdb_curses.h.
15270
15271 2019-01-22 Tom Tromey <tom@tromey.com>
15272
15273 * source-cache.h (class source_cache) <get_source_lines,
15274 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15275
15276 2019-01-22 Tom Tromey <tom@tromey.com>
15277
15278 * remote-fileio.h (struct remote_target): Declare.
15279
15280 2019-01-22 Tom Tromey <tom@tromey.com>
15281
15282 * python/py-arch.c: Do not include py-ref.h.
15283 * python/py-bpevent.c: Do not include py-ref.h.
15284 * python/py-cmd.c: Do not include py-ref.h.
15285 * python/py-continueevent.c: Do not include py-ref.h.
15286 * python/py-event.h: Do not include py-ref.h.
15287 * python/py-evtregistry.c: Do not include py-ref.h.
15288 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15289 * python/py-frame.c: Do not include py-ref.h.
15290 * python/py-framefilter.c: Do not include py-ref.h.
15291 * python/py-function.c: Do not include py-ref.h.
15292 * python/py-infevents.c: Do not include py-ref.h.
15293 * python/py-linetable.c: Do not include py-ref.h.
15294 * python/py-objfile.c: Do not include py-ref.h.
15295 * python/py-param.c: Do not include py-ref.h.
15296 * python/py-prettyprint.c: Do not include py-ref.h.
15297 * python/py-progspace.c: Do not include py-ref.h.
15298 * python/py-symbol.c: Do not include py-ref.h.
15299 * python/py-symtab.c: Do not include py-ref.h.
15300 * python/py-type.c: Do not include py-ref.h.
15301 * python/py-unwind.c: Do not include py-ref.h.
15302 * python/py-utils.c: Do not include py-ref.h.
15303 * python/py-value.c: Do not include py-ref.h.
15304 * python/py-varobj.c: Do not include py-ref.h.
15305 * python/py-xmethods.c: Do not include py-ref.h.
15306 * python/python.c: Do not include py-ref.h.
15307 * varobj.c: Do not include py-ref.h.
15308
15309 2019-01-22 Tom Tromey <tom@tromey.com>
15310
15311 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15312 keyword for bcache.
15313
15314 2019-01-22 Tom Tromey <tom@tromey.com>
15315
15316 * compile/compile-cplus-types.c: Remove a comment by #include.
15317
15318 2019-01-22 Tom Tromey <tom@tromey.com>
15319
15320 * compile/gcc-c-plugin.h: Include compile-internal.h.
15321
15322 2019-01-22 Tom Tromey <tom@tromey.com>
15323
15324 * stabsread.c (EXTERN): Do not define.
15325 (symnum, next_symbol_text_func, processing_gcc_compilation)
15326 (within_function, global_sym_chain, global_stabs)
15327 (previous_stab_code, this_object_header_files)
15328 (n_this_object_header_files)
15329 (n_allocated_this_object_header_files): Define.
15330 * stabsread.h (EXTERN): Never define. Use "extern".
15331
15332 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15333
15334 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15335 history_value.
15336
15337 2019-01-21 Tom Tromey <tom@tromey.com>
15338
15339 * ui-out.c: Fix includes.
15340 * tui/tui-source.c: Fix includes.
15341 * target.c: Fix includes.
15342 * remote.c: Fix includes.
15343 * regcache.c: Fix includes.
15344 * python/py-block.c: Fix includes.
15345 * printcmd.c: Fix includes.
15346 * or1k-tdep.c: Fix includes.
15347 * mi/mi-main.c: Fix includes.
15348 * m32r-tdep.c: Fix includes.
15349 * csky-tdep.c: Fix includes.
15350 * compile/compile-cplus-types.c: Fix includes.
15351 * cli/cli-interp.c: Fix includes.
15352
15353 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15354
15355 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15356 for padding.
15357
15358 2019-01-16 Tom Tromey <tom@tromey.com>
15359
15360 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15361 earlier.
15362 (struct objfile) <msymbols_range>: Move from top level.
15363 <msymbols>: New method.
15364 (class objfile_msymbols): Remove.
15365 * symtab.c (default_collect_symbol_completion_matches_break_on):
15366 Update.
15367 * symmisc.c (dump_msymbols): Update.
15368 * stabsread.c (scan_file_globals): Update.
15369 * objc-lang.c (info_selectors_command, info_classes_command)
15370 (find_methods): Update.
15371 * minsyms.c (find_solib_trampoline_target): Update.
15372 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15373 * coffread.c (coff_symfile_read): Update.
15374 * ada-lang.c (ada_lookup_simple_minsym)
15375 (ada_collect_symbol_completion_matches): Update.
15376
15377 2019-01-16 Tom Tromey <tom@tromey.com>
15378
15379 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15380 type. Remove no-argument constructor.
15381 <iterator::operator++>: Simplify.
15382 <begin>: Update.
15383 <end>: Use minimal_symbol_count.
15384
15385 2019-01-16 Tom Tromey <tom@tromey.com>
15386
15387 * objfiles.h (struct objfile) <psymtabs>: New method.
15388 (class objfile_psymtabs): Remove.
15389 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15390 typedef.
15391 <range>: New method.
15392 (require_partial_symbols): Change return type.
15393 * psymtab.c (require_partial_symbols)
15394 (psym_expand_symtabs_matching): Update.
15395 * mdebugread.c (parse_partial_symbols): Update.
15396 * dbxread.c (dbx_end_psymtab): Update.
15397
15398 2019-01-15 Tom Tromey <tom@tromey.com>
15399
15400 * symtab.c (lookup_objfile_from_block)
15401 (lookup_symbol_in_objfile_symtabs)
15402 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15403 (find_line_symtab, info_sources_command)
15404 (default_collect_symbol_completion_matches_break_on)
15405 (make_source_files_completion_list): Update.
15406 * symmisc.c (print_objfile_statistics, dump_objfile)
15407 (maintenance_print_symbols, maintenance_info_symtabs)
15408 (maintenance_check_symtabs, maintenance_info_line_tables):
15409 Update.
15410 * source.c (select_source_symtab)
15411 (forget_cached_source_info_for_objfile): Update.
15412 * objfiles.h (class objfile_compunits): Remove.
15413 (struct objfile) <compunits_range>: New typedef.
15414 (compunits): New method.
15415 * objfiles.c (objfile_relocate1): Update.
15416 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15417 * maint.c (count_symtabs_and_blocks): Update.
15418 * linespec.c (iterate_over_all_matching_symtabs): Update.
15419 * cp-support.c (add_symbol_overload_list_qualified): Update.
15420 * coffread.c (coff_symtab_read): Update.
15421 * ada-lang.c (add_nonlocal_symbols)
15422 (ada_collect_symbol_completion_matches)
15423 (ada_add_global_exceptions): Update.
15424
15425 2019-01-15 Tom Tromey <tom@tromey.com>
15426
15427 * progspace.h (program_space) <objfiles_safe_range>: New
15428 typedef.
15429 <objfiles_safe>: New method.
15430 * objfiles.h (class all_objfiles_safe): Remove.
15431 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15432 * jit.c (jit_inferior_exit_hook): Update.
15433
15434 2019-01-17 Tom Tromey <tom@tromey.com>
15435
15436 * progspace.h (program_space) <objfiles_range>: New typedef.
15437 <objfiles>: New method.
15438 <objfiles_head>: Rename from objfiles.
15439 (object_files): Update.
15440 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15441 * guile/scm-pretty-print.c
15442 (ppscm_find_pretty_printer_from_objfiles): Update.
15443 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15444 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15445 Update.
15446 * python/py-progspace.c (pspy_get_objfiles): Update.
15447 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15448 Update.
15449 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15450 (objfpy_lookup_objfile_by_build_id): Update.
15451 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15452 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15453 Update.
15454 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15455 (expand_symtab_containing_pc, lookup_objfile_from_block)
15456 (lookup_static_symbol, basic_lookup_transparent_type)
15457 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15458 (find_line_symtab, info_sources_command)
15459 (default_collect_symbol_completion_matches_break_on)
15460 (make_source_files_completion_list, find_main_name): Update.
15461 * symmisc.c (print_symbol_bcache_statistics)
15462 (print_objfile_statistics, maintenance_print_symbols)
15463 (maintenance_print_msymbols, maintenance_print_objfiles)
15464 (maintenance_info_symtabs, maintenance_check_symtabs)
15465 (maintenance_expand_symtabs, maintenance_info_line_tables):
15466 Update.
15467 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15468 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15469 (map_overlay_command, unmap_overlay_command)
15470 (simple_overlay_update, expand_symtabs_matching)
15471 (map_symbol_filenames): Update.
15472 * symfile-debug.c (set_debug_symfile): Update.
15473 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15474 Update.
15475 * source.c (select_source_symtab, forget_cached_source_info):
15476 Update.
15477 * solib.c (solib_read_symbols): Update.
15478 * solib-spu.c (append_ocl_sos): Update.
15479 * psymtab.c (maintenance_print_psymbols)
15480 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15481 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15482 * printcmd.c (info_symbol_command): Update.
15483 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15484 Update.
15485 * objfiles.h (class all_objfiles): Remove.
15486 * objfiles.c (have_partial_symbols, have_full_symbols)
15487 (have_minimal_symbols, qsort_cmp, update_section_map)
15488 (shared_objfile_contains_address_p)
15489 (default_iterate_over_objfiles_in_search_order): Update.
15490 * objc-lang.c (info_selectors_command, info_classes_command)
15491 (find_methods): Update.
15492 * minsyms.c (find_solib_trampoline_target): Update.
15493 * maint.c (maintenance_info_sections)
15494 (maintenance_translate_address, count_symtabs_and_blocks):
15495 Update.
15496 * main.c (captured_main_1): Update.
15497 * linux-thread-db.c (try_thread_db_load_from_pdir)
15498 (has_libpthread): Update.
15499 * linespec.c (iterate_over_all_matching_symtabs)
15500 (search_minsyms_for_name): Update.
15501 * jit.c (jit_find_objf_with_entry_addr): Update.
15502 * hppa-tdep.c (find_unwind_entry)
15503 (hppa_lookup_stub_minimal_symbol): Update.
15504 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15505 Update.
15506 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15507 (elf_gnu_ifunc_resolve_by_got): Update.
15508 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15509 * dwarf-index-write.c (save_gdb_index_command): Update.
15510 * cp-support.c (add_symbol_overload_list_qualified): Update.
15511 * breakpoint.c (create_overlay_event_breakpoint)
15512 (create_longjmp_master_breakpoint)
15513 (create_std_terminate_master_breakpoint)
15514 (create_exception_master_breakpoint): Update.
15515 * blockframe.c (find_pc_partial_function): Update.
15516 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15517 (ada_collect_symbol_completion_matches)
15518 (ada_add_global_exceptions): Update.
15519
15520 2019-01-17 Tom Tromey <tom@tromey.com>
15521
15522 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15523 declare VEC.
15524 (solib_target_parse_libraries): Change return type.
15525 (library_list_start_segment, library_list_start_section)
15526 (library_list_end_library, library_list_start_library); Update.
15527 (solib_target_free_library_list): Remove.
15528 (solib_target_parse_libraries): Remove cleanup. Change return
15529 type.
15530 (solib_target_current_sos): Update.
15531
15532 2019-01-17 Tom Tromey <tromey@bapiya>
15533
15534 * valprint.c: Replace "the the" with "the".
15535 * symtab.c: Replace "the the" with "the".
15536 * solib.c: Replace "the the" with "the".
15537 * solib-dsbt.c: Replace "the the" with "the".
15538 * linespec.c: Replace "the the" with "the".
15539 * dwarf2loc.h: Replace "the the" with "the".
15540 * amd64-windows-tdep.c: Replace "the the" with "the".
15541 * aarch64-tdep.c: Replace "the the" with "the".
15542
15543 2019-01-16 Keith Seitz <keiths@redhat.com>
15544
15545 PR gdb/23773
15546 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15547 <builder>: Rename to ..
15548 <m_builder>: ... this and make private.
15549 (dwarf2_cu::get_builder): New method. Change all users of
15550 `builder' to use this method.
15551 (dwarf2_start_symtab): Move to ...
15552 (dwarf2_cu::start_symtab): ... here. Update all callers
15553 (setup_type_unit_groups): Move to ...
15554 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15555 callers.
15556 (dwarf2_cu::reset_builder): New method.
15557 (process_full_compunit, process_full_type_unit): Use
15558 dwarf2_cu::reset_builder.
15559 (follow_die_offset): Record the ancestor CU if it is different
15560 from the followed DIE's CU.
15561 (follow_die_sig_1): Likewise.
15562
15563 2019-01-15 Tom Tromey <tom@tromey.com>
15564
15565 * remote.c (class remote_state) <buf>: Now a char_vector.
15566 <buf_size>: Remove.
15567 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15568 parameter.
15569 (remote_target::getpkt_or_notif_sane_1)
15570 (remote_target::getpkt_sane)
15571 (remote_target::getpkt_or_notif_sane): Likewise.
15572 (class remote_target) <putpkt>: New overload.
15573 (remote_target::read_frame): Change type of "buf_p". Remove
15574 sizeof_p parameter.
15575 (packet_ok): New overload.
15576 (packet_check_result): New overload.
15577 Update all uses.
15578
15579 2019-01-14 Tom Tromey <tom@tromey.com>
15580
15581 * remote-notif.c (handle_notification, remote_notif_ack)
15582 (remote_notif_parse): Make "buf" const.
15583 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15584 const.
15585 (remote_notif_parse, remote_notif_ack, handle_notification):
15586 Likewise.
15587 * remote.c (remote_notif_stop_parse): Make "buf" const.
15588 (remote_target::remote_parse_stop_reply): Make "buf" const.
15589 (remote_notif_stop_ack): Make "buf" const.
15590
15591 2019-01-14 Tom Tromey <tom@tromey.com>
15592
15593 * remote.c (remote_console_output): Make parameter const.
15594
15595 2019-01-14 Tom Tromey <tom@tromey.com>
15596
15597 * target-debug.h (target_debug_print_signals): Constify.
15598 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15599 * procfs.c (procfs_target::pass_signals): Update.
15600 * linux-nat.c (linux_nat_target::pass_signals): Update.
15601 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15602 * target-delegates.c: Rebuild.
15603 * remote.c (remote_target::program_signals): Update.
15604 (remote_target::pass_signals): Update.
15605 * target.c (target_pass_signals): Constify argument.
15606 (target_program_signals): Likewise.
15607 * target.h (struct target_ops) <pass_signals, program_signals>:
15608 Constify argument.
15609 (target_pass_signals, target_program_signals): Constify argument.
15610
15611 2019-01-14 Tom Tromey <tom@tromey.com>
15612
15613 PR tui/28819:
15614 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15615
15616 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15617
15618 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15619 field.
15620 * rs6000-tdep.c: Include reggroups.h.
15621 (IS_V_ALIAS_PSEUDOREG): Define.
15622 (rs6000_register_name): Return names for the "vX" aliases.
15623 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15624 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15625 aliases. Call default_register_reggroup_p for all other
15626 pseudo-registers.
15627 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15628 New functions.
15629 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15630 Handle "vX" aliases.
15631 (v_alias_pseudo_register_collect): New function.
15632 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15633 (rs6000_gdbarch_init): Initialize "vX" aliases as
15634 pseudo-registers. Restore registration of
15635 rs6000_pseudo_register_reggroup_p with
15636 set_tdesc_pseudo_register_reggroup_p.
15637
15638 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15639
15640 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15641 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15642 set_gdbarch_num_pseudo_regs.
15643
15644 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15645
15646 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15647 Remove arg prefixname, add do_set and do_show.
15648 Add member functions set_list and show_list.
15649 * cli/cli-style.c (class cli_style_option): Update accordingly.
15650 (style_set_list): Move to file scope.
15651 (style_show_list): Likewise.
15652 (set_style): Call help_list.
15653 (show_style): Call cmd_show_list.
15654 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15655 Update to use the new macro.
15656
15657 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15658
15659 * ada-lang.c (_initialize_ada_language): Expand the help text
15660 for the "catch exception" command.
15661
15662 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15663
15664 * symtab.c (matching_obj_sections): Initialize obj,
15665 declare it closer to its usage.
15666
15667 2019-01-10 Tom Tromey <tom@tromey.com>
15668
15669 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15670 (basic_inf_threads_range): Remove.
15671 (inf_threads_range, inf_non_exited_threads_range)
15672 (safe_inf_threads_range): Use next_adapter.
15673
15674 2019-01-10 Keith Seitz <keiths@redhat.com>
15675
15676 PR gdb/23712
15677 PR symtab/23010
15678 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15679 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15680
15681 2019-01-10 Keith Seitz <keiths@redhat.com>
15682
15683 PR gdb/23712
15684 PR symtab/23010
15685 * dictionary.c (pending_to_vector): Remove.
15686 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15687 Remove _1 suffix, replacing functions of the same name. Update
15688 all callers.
15689 (dict_create_hashed, dict_create_hashed_expandable)
15690 (dict_create_linear, dict_create_linear_expandable, dict_free)
15691 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15692 Make functions static.
15693
15694 2019-01-10 Keith Seitz <keiths@redhat.com>
15695
15696 PR gdb/23712
15697 PR symtab/23010
15698 * dictionary.h (struct dictionary): Replace declaration with
15699 multidictionary.
15700 (dict_create_hashed, dict_create_hashed_expandable)
15701 (dict_create_linear, dict_create_linear_expandable)
15702 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15703 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15704 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15705 taking multidictionary argument.
15706 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15707 * block.h (struct block) <dict>: Change to multidictionary
15708 and rename `multidict'.
15709 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15710 symmisc.c: Update all dictionary references to multidictionary.
15711
15712 2019-01-10 Keith Seitz <keiths@redhat.com>
15713
15714 PR gdb/23712
15715 PR symtab/23010
15716 * dictionary.c: Include unordered_map.
15717 (pending_to_vector): New function.
15718 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15719 Rewrite the non-"_1" functions to take vector instead
15720 of linked list.
15721 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15722 "new" _1 versions of the same name.
15723 (multidictionary): Define.
15724 (std::hash<enum language): New definition.
15725 (collate_pending_symbols_by_language, mdict_create_hashed)
15726 (mdict_create_hashed_expandable, mdict_create_linear)
15727 (mdict_create_linear_expandable, mdict_free)
15728 (find_language_dictionary, create_new_language_dictionary)
15729 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15730 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15731 (mdict_size, mdict_empty): New functions.
15732 * dictionary.h (mdict_iterator): Define.
15733
15734 2019-01-10 Pedro Alves <palves@redhat.com>
15735
15736 * breakpoint.c (read_uploaded_action)
15737 (create_tracepoint_from_upload): Adjust to use
15738 gdb::unique_xmalloc_ptr.
15739 * ctf.c (ctf_write_uploaded_tp):
15740 (SET_ARRAY_FIELD): Use emplace_back.
15741 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15742 * tracefile-tfile.c (tfile_write_uploaded_tp):
15743 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15744 gdb::unique_xmalloc_ptr.
15745 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15746 at_string, cond_string, cmd_strings>: Replace char pointers
15747 with gdb::unique_xmalloc_ptr.
15748
15749 2019-01-10 Pedro Alves <palves@redhat.com>
15750
15751 * solib-target.c (library_list_start_library): Don't xstrdup name.
15752
15753 2019-01-10 Pedro Alves <palves@redhat.com>
15754
15755 * mdebugread.c (parse_partial_symbols): Use
15756 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15757
15758 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15759
15760 * linux-fork.c (scoped_switch_fork_info)
15761 <~scoped_switch_fork_info>: Fix incorrect variable name.
15762
15763 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15764
15765 * linux-fork.c (scoped_switch_fork_info)
15766 <scoped_switch_fork_info>: Make explicit.
15767 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15768
15769 2019-01-10 Tom Tromey <tom@tromey.com>
15770
15771 * objfiles.h (objfile::reset_psymtabs): Update.
15772 * objfiles.c (objfile::objfile): Update.
15773 * psymtab.h (psymtab_storage::obstack): Update.
15774 (psymtab_storage::m_obstack): Use gdb::optional.
15775 (class psymtab_storage): Update comment. Remove objfile
15776 parameter.
15777 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15778
15779 2019-01-10 Tom Tromey <tom@tromey.com>
15780
15781 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15782 <free_psymtabs>: Now private.
15783 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15784 (allocate_psymtab): Use new method.
15785
15786 2019-01-10 Tom Tromey <tom@tromey.com>
15787
15788 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15789 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15790 * mdebugread.c (parse_partial_symbols): Use
15791 allocate_dependencies.
15792 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15793 allocate_dependencies.
15794 (process_psymtab_comp_unit_reader)
15795 (build_type_psymtab_dependencies): Likewise.
15796 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15797
15798 2019-01-10 Tom Tromey <tom@tromey.com>
15799
15800 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15801 PSYMBOL_SET_LANGUAGE.
15802 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15803
15804 2019-01-10 Tom Tromey <tom@tromey.com>
15805
15806 * psymtab.h (psymtab_storage::obstack): New method.
15807 <m_obstack>: Rename from obstack; now private.
15808 * psymtab.c (psymtab_storage): Update.
15809 * dwarf2read.c (create_addrmap_from_index)
15810 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15811 Update.
15812
15813 2019-01-10 Tom Tromey <tom@tromey.com>
15814
15815 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15816 * objfiles.h (objfile::reset_psymtabs): New method.
15817
15818 2019-01-10 Tom Tromey <tom@tromey.com>
15819
15820 * symmisc.c (print_symbol_bcache_statistics): Update.
15821 (print_objfile_statistics): Update.
15822 * symfile.c (reread_symbols): Update.
15823 * psymtab.h (class psymtab_storage): New.
15824 * psymtab.c (psymtab_storage): New constructor.
15825 (~psymtab_storage): New destructor.
15826 (require_partial_symbols): Update.
15827 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15828 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15829 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15830 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15831 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15832 (start_psymtab_common, end_psymtab_common)
15833 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15834 (allocate_psymtab): Update.
15835 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15836 Update.
15837 (dump_psymtab_addrmap, maintenance_print_psymbols)
15838 (maintenance_check_psymtabs): Update.
15839 (class objfile_psymtabs): Move to objfiles.h.
15840 * psympriv.h (discard_psymtab): Now inline.
15841 (psymtab_discarder::psymtab_discarder): Update.
15842 (psymtab_discarder::~psymtab_discarder): Update.
15843 (ALL_OBJFILE_PSYMTABS): Rewrite.
15844 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15845 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15846 Remove fields.
15847 <partial_symtabs>: New field.
15848 (class objfile_psymtabs): Move from psymtab.h. Update.
15849 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15850 psymbol_cache.
15851 (objfile::~objfile): Don't destroy psymbol_cache.
15852 * mdebugread.c (parse_partial_symbols): Update.
15853 * dwarf2read.c (create_addrmap_from_index)
15854 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15855 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15856 (add_partial_subprogram, dwarf2_ranges_read): Update.
15857 * dwarf-index-write.c (write_address_map)
15858 (write_one_signatured_type, recursively_write_psymbols)
15859 (class debug_names, class debug_names, write_psymtabs_to_index):
15860 Update.
15861
15862 2019-01-10 Tom Tromey <tom@tromey.com>
15863
15864 * symtab.h (SYMBOL_SET_NAMES): Update.
15865 (symbol_set_names): Update.
15866 (MSYMBOL_SET_NAMES): Update.
15867 * symtab.c (symbol_set_names): Change argument to be an
15868 objfile_per_bfd_storage.
15869 * psymtab.c (add_psymbol_to_bcache): Update.
15870 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15871
15872 2019-01-10 Tom Tromey <tom@tromey.com>
15873
15874 * symtab.c (create_demangled_names_hash): Change argument to be an
15875 objfile_per_bfd_storage.
15876 (symbol_set_names): Update.
15877
15878 2019-01-10 Tom Tromey <tom@tromey.com>
15879
15880 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15881 init_psymbol_list.
15882 * psymtab.c (init_psymbol_list): Do nothing if already called.
15883 * psympriv.h (init_psymbol_list): Add comment.
15884 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15885 init_psymbol_list.
15886 * dbxread.c (dbx_symfile_read): Unconditionally call
15887 init_psymbol_list.
15888
15889 2019-01-10 Tom Tromey <tom@tromey.com>
15890
15891 * xcoffread.c (scan_xcoff_symtab): Update.
15892 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15893 "where".
15894 * mdebugread.c (parse_partial_symbols)
15895 (handle_psymbol_enumerators): Update.
15896 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15897 * dbxread.c (read_dbx_symtab): Update.
15898 * psympriv.h (psymbol_placement): New enum.
15899 (add_psymbol_to_list): Update.
15900
15901 2019-01-10 Tom Tromey <tom@tromey.com>
15902
15903 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15904 static_psymbols parameters.
15905 (scan_xcoff_symtab): Update.
15906 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15907 static_psymbols parameters.
15908 * psympriv.h (start_psymtab_common): Update.
15909 * mdebugread.c (parse_partial_symbols): Update.
15910 * dwarf2read.c (create_partial_symtab): Update.
15911 * dbxread.c (read_dbx_symtab): Update.
15912 (start_psymtab): Remove global_psymbols and static_psymbols
15913 parameters.
15914
15915 2019-01-10 Tom Tromey <tom@tromey.com>
15916
15917 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15918 * psymtab.c (allocate_psymtab): Add comment.
15919 * psympriv.h (allocate_psymtab): Add comment.
15920 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15921 initializations.
15922 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15923
15924 2019-01-10 Tom Tromey <tom@tromey.com>
15925
15926 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15927 Don't declare.
15928 * mipsread.c: Include mdebugread.h.
15929 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15930 Declare.
15931 * elfread.c: Include mdebugread.h.
15932
15933 2019-01-09 Tom Tromey <tom@tromey.com>
15934
15935 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15936 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15937 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15938 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15939 (psym_lookup_symbol, psym_find_last_source_symtab)
15940 (psym_forget_cached_source_info, psym_print_stats)
15941 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15942 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15943 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15944 (psym_find_compunit_symtab_by_address)
15945 (maintenance_print_psymbols, maintenance_info_psymtabs)
15946 (maintenance_check_psymtabs): Use ranged for.
15947 * psymtab.h (class objfile_psymtabs): New.
15948 (require_partial_symbols): Return objfile_psymtabs.
15949 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15950
15951 2019-01-09 Tom Tromey <tom@tromey.com>
15952
15953 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15954 (find_pc_mapped_section, list_overlays_command)
15955 (map_overlay_command, unmap_overlay_command)
15956 (simple_overlay_update): Use all_objfiles.
15957 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15958 * printcmd.c (info_symbol_command): Use all_objfiles.
15959 * objfiles.h (ALL_OBJSECTIONS): Remove.
15960 * maint.c (maintenance_translate_address): Use all_objfiles.
15961 * gcore.c (gcore_create_callback): Use all_objfiles.
15962 (objfile_find_memory_regions): Likewise.
15963
15964 2019-01-09 Tom Tromey <tom@tromey.com>
15965
15966 * symtab.c (find_line_symtab, info_sources_command)
15967 (make_source_files_completion_list): Use objfile_compunits.
15968 * source.c (select_source_symtab): Use objfile_compunits.
15969 * objfiles.h (struct objfile): Update comment.
15970 (ALL_OBJFILES): Remove.
15971 (ALL_FILETABS): Remove.
15972 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15973 objfile_compunits.
15974
15975 2019-01-09 Tom Tromey <tom@tromey.com>
15976
15977 * symmisc.c (print_objfile_statistics, dump_objfile)
15978 (maintenance_print_symbols): Use compunit_filetabs.
15979 * source.c (forget_cached_source_info_for_objfile): Use
15980 compunit_filetabs.
15981 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15982 (ALL_FILETABS): Use compunit_filetabs.
15983 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15984 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15985
15986 2019-01-09 Tom Tromey <tom@tromey.com>
15987
15988 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15989 (compunit_filetabs): New.
15990 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15991 compunit_filetabs.
15992 (info_sources_command, make_source_files_completion_list): Remove
15993 declaration.
15994 * symmisc.c (print_objfile_statistics, dump_objfile)
15995 (maintenance_print_symbols): Remove declaration.
15996 (maintenance_info_symtabs): Use compunit_filetabs.
15997 (maintenance_info_line_tables): Likewise.
15998 * source.c (select_source_symtab): Change local variable name.
15999 (forget_cached_source_info_for_objfile): Remove declaration.
16000 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16001 * objfiles.c (objfile_relocate1): Remove declaration.
16002 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16003 declaration.
16004 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16005 * coffread.c (coff_symtab_read): Remove declaration.
16006 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16007 compunit_filetabs.
16008
16009 2019-01-09 Tom Tromey <tom@tromey.com>
16010
16011 * symtab.c (lookup_objfile_from_block)
16012 (find_pc_sect_compunit_symtab, search_symbols)
16013 (default_collect_symbol_completion_matches_break_on): Use
16014 objfile_compunits.
16015 * objfiles.h (ALL_COMPUNITS): Remove.
16016 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16017 * cp-support.c (add_symbol_overload_list_qualified): Use
16018 objfile_compunits.
16019 * ada-lang.c (ada_collect_symbol_completion_matches)
16020 (ada_add_global_exceptions): Use objfile_compunits.
16021
16022 2019-01-09 Tom Tromey <tom@tromey.com>
16023
16024 * source.c (select_source_symtab)
16025 (forget_cached_source_info_for_objfile): Remove declaration.
16026 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16027 declaration.
16028 * maint.c (count_symtabs_and_blocks): Remove declaration.
16029 * cp-support.c (add_symbol_overload_list_qualified): Remove
16030 declaration.
16031 * coffread.c (coff_symtab_read): Remove declaration.
16032 * symtab.c (lookup_symbol_in_objfile_symtabs)
16033 (basic_lookup_transparent_type_1): Use objfile_compunits.
16034 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16035 (info_sources_command, search_symbols)
16036 (default_collect_symbol_completion_matches_break_on)
16037 (make_source_files_completion_list): Remove declaration.
16038 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16039 (ada_collect_symbol_completion_matches)
16040 (ada_add_global_exceptions): Remove declaration.
16041 * linespec.c (iterate_over_all_matching_symtabs): Use
16042 objfile_compunits.
16043 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16044 (class objfile_compunits): New.
16045 (ALL_COMPUNITS): Use objfile_compunits.
16046 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16047 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16048 objfile_compunits.
16049 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16050
16051 2019-01-09 Tom Tromey <tom@tromey.com>
16052
16053 * symtab.c (search_symbols)
16054 (default_collect_symbol_completion_matches_break_on): Use
16055 objfile_msymbols.
16056 * ada-lang.c (ada_lookup_simple_minsym)
16057 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16058 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16059 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16060 objfile_msymbols.
16061 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16062 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16063 * objc-lang.c (find_methods): Use objfile_msymbols.
16064 (info_selectors_command, info_classes_command): Likewise.
16065 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16066 * objfiles.h (class objfile_msymbols): New.
16067 (ALL_OBJFILE_MSYMBOLS): Remove.
16068 (ALL_MSYMBOLS): Remove.
16069
16070 2019-01-09 Tom Tromey <tom@tromey.com>
16071
16072 * common/next-iterator.h (next_adapter): Add Iterator template
16073 parameter.
16074 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16075 (class all_objfiles_safe): New.
16076 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16077 * objfiles.c (put_objfile_before): Update comment.
16078 (add_separate_debug_objfile): Likewise.
16079 (free_all_objfiles): Use all_objfiles_safe.
16080 (objfile_purge_solibs): Likewise.
16081
16082 2019-01-09 Tom Tromey <tom@tromey.com>
16083
16084 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16085 (expand_symtab_containing_pc, lookup_static_symbol)
16086 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16087 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16088 all_objfiles.
16089 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16090 * breakpoint.c (create_overlay_event_breakpoint)
16091 (create_longjmp_master_breakpoint)
16092 (create_std_terminate_master_breakpoint)
16093 (create_exception_master_breakpoint): Use all_objfiles.
16094 * linux-thread-db.c (try_thread_db_load_from_pdir)
16095 (has_libpthread): Use all_objfiles.
16096 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16097 * linespec.c (iterate_over_all_matching_symtabs)
16098 (search_minsyms_for_name): Use all_objfiles.
16099 * maint.c (maintenance_info_sections): Use all_objfiles.
16100 * main.c (captured_main_1): Use all_objfiles.
16101 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16102 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16103 * guile/scm-pretty-print.c
16104 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16105 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16106 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16107 (maintenance_print_msymbols): Use all_objfiles.
16108 * source.c (select_source_symtab): Use all_objfiles.
16109 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16110 * symfile.c (remove_symbol_file_command)
16111 (expand_symtabs_matching, map_symbol_filenames): Use
16112 all_objfiles.
16113 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16114 all_objfiles.
16115 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16116 * objc-lang.c (find_methods): Use all_objfiles.
16117 * objfiles.c (have_partial_symbols, have_full_symbols)
16118 (have_minimal_symbols, qsort_cmp)
16119 (default_iterate_over_objfiles_in_search_order): Use
16120 all_objfiles.
16121 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16122 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16123 (maintenance_check_psymtabs): Use all_objfiles.
16124 (ALL_PSYMTABS): Remove.
16125 * compile/compile-object-run.c (do_module_cleanup): Use
16126 all_objfiles.
16127 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16128 * cp-support.c (add_symbol_overload_list_qualified): Use
16129 all_objfiles.
16130 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16131 Use all_objfiles.
16132 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16133 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16134 all_objfiles.
16135 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16136 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16137 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16138 Uses all_objfiles.
16139 * solib.c (solib_read_symbols): Use all_objfiles
16140
16141 2019-01-09 Tom Tromey <tom@tromey.com>
16142
16143 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16144 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16145 all_objfiles.
16146 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16147 * symmisc.c (print_symbol_bcache_statistics)
16148 (print_objfile_statistics, maintenance_print_objfiles)
16149 (maintenance_info_symtabs, maintenance_check_symtabs)
16150 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16151 all_objfiles.
16152 * source.c (forget_cached_source_info): Use all_objfiles.
16153 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16154 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16155 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16156 * objfiles.c (update_section_map): Use all_objfiles.
16157 (shared_objfile_contains_address_p): Likewise.
16158 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16159 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16160
16161 2019-01-09 Tom Tromey <tom@tromey.com>
16162
16163 * common/next-iterator.h: New file.
16164 * objfiles.h (class all_objfiles): New.
16165 (struct objfile_iterator): New.
16166
16167 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16168
16169 * NEWS: Move the description of the changed "frame", "select-frame",
16170 and "info frame" commands to the Changed commands section.
16171
16172 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16173
16174 * gdbtypes.c (check_stub_method_group): Remove handling of old
16175 mangling schemes.
16176 * linespec.c (find_methods): Likewise.
16177 * stabsread.c (read_member_functions): Likewise.
16178 * valops.c (search_struct_method): Likewise.
16179 (value_struct_elt_for_reference): Likewise.
16180 * NEWS: Mention this change.
16181
16182 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16183
16184 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16185 print_source_lines.
16186 * source.c (print_source_lines_base): Update line number check.
16187 (print_source_lines): New function.
16188 (source_lines_range::source_lines_range): New function.
16189 * source.h (class source_lines_range): New class.
16190 (print_source_lines): New declaration.
16191
16192 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16193
16194 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16195
16196 2019-01-08 Tom Tromey <tom@tromey.com>
16197 Simon Marchi <simon.marchi@ericsson.com>
16198
16199 PR gdb/24060
16200 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16201 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16202 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16203 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16204 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16205 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16206
16207 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16208
16209 * source.c (select_source_symtab): Move header comment to
16210 declaration in source.h.
16211 (forget_cached_source_info_for_objfile): Likewise.
16212 (forget_cached_source_info): Likewise.
16213 (identify_source_line): Likewise.
16214 * source.h (identify_source_line): Move declaration from symtab.h
16215 and add comment from source.c
16216 (print_source_lines): Likewise.
16217 (forget_cached_source_info_for_objfile): Likewise.
16218 (forget_cached_source_info): Likewise.
16219 (select_source_symtab): Likewise.
16220 (enum print_source_lines_flag): Move definition from symtab.h.
16221 * symtab.h (identify_source_line): Move declaration to source.h.
16222 (print_source_lines): Likewise.
16223 (forget_cached_source_info_for_objfile): Likewise.
16224 (forget_cached_source_info): Likewise.
16225 (select_source_symtab): Likewise.
16226 (enum print_source_lines_flag): Move definition to source.h.
16227 * tui/tui-hooks.c: Add 'source.h' include.
16228
16229 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16230
16231 * source.c (print_source_lines_base): Handle requests to print
16232 reverse line number sequences, and guard against empty lines
16233 string.
16234
16235 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16236
16237 * source.c (print_source_lines_base): Fix skip of '\r' if next
16238 character is '\n'.
16239
16240 2019-01-06 Tom Tromey <tom@tromey.com>
16241
16242 * c-exp.y (struct c_parse_state) <macro_original_text,
16243 expansion_obstack>: New member.
16244 (macro_original_text, expansion_obstack): Remove globals.
16245 (scan_macro_expansion, scanning_macro_expansion)
16246 (finished_macro_expansion): Update.
16247 (scan_macro_cleanup): Remove.
16248 (yylex, c_parse): Update.
16249
16250 2019-01-06 Tom Tromey <tom@tromey.com>
16251
16252 * c-exp.y (struct c_parse_state) <strings>: New member.
16253 (operator_stoken): Update.
16254
16255 2019-01-06 Tom Tromey <tom@tromey.com>
16256
16257 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16258 (union type_stack_elt) <typelist_val>: Now a pointer to
16259 std::vector.
16260 (type_stack_cleanup): Don't declare.
16261 (push_typelist): Update.
16262 * parse.c (pop_typelist): Return a std::vector.
16263 (push_typelist): Take a std::vector.
16264 (follow_types): Update. Do not free args.
16265 (type_stack_cleanup): Remove.
16266 * c-exp.y (struct c_parse_state): New.
16267 (cpstate): New global.
16268 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16269 (nonempty_typelist): Update.
16270 (func_mod): Create a new vector.
16271 (c_parse): Create a c_parse_state.
16272 (check_parameter_typelist): Do not delete params.
16273 (function_method): Update. Do not delete type_list.
16274
16275 2019-01-06 Tom Tromey <tom@tromey.com>
16276
16277 PR gdb/28155:
16278 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16279 check_typedef.
16280 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16281 (print_return_value): Likewise.
16282
16283 2019-01-05 Tom Tromey <tom@tromey.com>
16284
16285 * contrib/cleanup_check.py: Remove.
16286 * contrib/gcc-with-excheck: Remove.
16287 * contrib/exsummary.py: Remove.
16288 * contrib/excheck.py: Remove.
16289
16290 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16291
16292 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16293 NULL. Initialize tpprev to NULL instead of assigning it
16294 to NULL on the next statement.
16295 * windows-nat.c (windows_delete_thread): Remove check for
16296 main_thread_id before printing thread exit notifications.
16297 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16298 Remove thread ID check against main_thread_id.
16299 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16300 windows_delete_thread.
16301 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16302
16303 2019-01-04 Tom Tromey <tom@tromey.com>
16304
16305 * compile/compile.c (_initialize_compile): Use upper case for
16306 metasyntactic variables.
16307 * symmisc.c (_initialize_symmisc): Use upper case for
16308 metasyntactic variables.
16309 * psymtab.c (_initialize_psymtab): Use upper case for
16310 metasyntactic variables.
16311 * demangle.c (demangle_command): Use upper case for metasyntactic
16312 variables.
16313 (_initialize_demangler): Likewise.
16314 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16315 variables.
16316
16317 2019-01-03 Tom Tromey <tom@tromey.com>
16318
16319 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16320
16321 2019-01-03 Tom Tromey <tom@tromey.com>
16322
16323 * python/py-symtab.c (salpy_str): Update.
16324 (struct salpy_sal_object) <symtab>: Now a PyObject.
16325 (salpy_dealloc): Update.
16326 (del_objfile_sal): Use gdbpy_ref.
16327
16328 2019-01-03 Tom Tromey <tom@tromey.com>
16329
16330 * python/py-type.c (convert_field): Use new_reference. Return
16331 gdbpy_ref.
16332 (make_fielditem): Return gdbpy_ref.
16333 (typy_fields): Update.
16334 (typy_getitem): Update.
16335 (field_name): Return gdbpy_ref. Use new_reference.
16336 (typy_iterator_iternext): Update.
16337
16338 2019-01-03 Tom Tromey <tom@tromey.com>
16339
16340 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16341
16342 2019-01-03 Tom Tromey <tom@tromey.com>
16343
16344 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16345 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16346 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16347 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16348 (pspy_set_type_printers): Likewise.
16349 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16350 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16351 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16352 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16353 (objfpy_set_type_printers): Likewise.
16354
16355 2019-01-03 Tom Tromey <tom@tromey.com>
16356
16357 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16358 (gdbpy_print_stack): Use gdbpy_err_fetch.
16359 * python/python-internal.h (class gdbpy_err_fetch): New class.
16360 (class gdbpy_enter) <m_error_type, m_error_value,
16361 m_error_traceback>: Remove.
16362 <m_error>: New member.
16363 (gdbpy_exception_to_string): Don't declare.
16364 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16365 * python/py-value.c (convert_value_from_python): Use
16366 gdbpy_err_fetch.
16367 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16368 gdbpy_exception_to_string.
16369 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16370 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16371 gdbpy_err_fetch.
16372
16373 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16374
16375 * linux-nat.c (delete_lwp_cleanup): Delete.
16376 (struct lwp_deleter): New struct.
16377 (lwp_info_up): New typedef.
16378 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16379 lwp_info_up.
16380
16381 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16382
16383 * linux-fork.c (class scoped_switch_fork_info): New class.
16384 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16385
16386 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16387
16388 * valops.c (find_overload_match): Remove use of null_cleanup, and
16389 calls to do_cleanups.
16390
16391 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16392
16393 * compile/compile-cplus-types.c
16394 (compile_cplus_instance::decl_name): Handle changes to
16395 cp_func_name.
16396 * cp-support.c (cp_func_name): Update header comment, update
16397 return type.
16398 * cp-support.h (cp_func_name): Update return type in declaration.
16399 * valops.c (find_overload_match): Move temp_func local to top
16400 level of function and change its type. Use temp_func to hold and
16401 delete temporary string obtained from cp_func_name.
16402
16403 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16404
16405 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16406 gdb::char_vector, remove cleanup, and update uses of `msg`.
16407
16408 2019-01-03 Jim Wilson <jimw@sifive.com>
16409
16410 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16411
16412 2019-01-02 Tom Tromey <tom@tromey.com>
16413
16414 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16415 (tdesc_parse_xml): Remove cleanups.
16416 * target-descriptions.h (make_cleanup_free_target_description):
16417 Don't declare.
16418 (target_desc_deleter): New struct.
16419 (target_desc_up): New typedef.
16420 * target-descriptions.c (target_desc_deleter::operator()): Rename
16421 from free_target_description.
16422 (make_cleanup_free_target_description): Remove.
16423
16424 2019-01-02 Tom Tromey <tom@tromey.com>
16425
16426 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16427 constructor, destructor.
16428 (linespec_parser): Remove typedef.
16429 (~linespec_parser): Rename from linespec_parser_delete.
16430 (linespec_lex_to_end, linespec_complete_label)
16431 (linespec_complete): Update.
16432 (decode_line_full): Remove cleanups.
16433 (decode_line_1): Update.
16434
16435 2019-01-02 Tom Tromey <tom@tromey.com>
16436
16437 * python/python-internal.h (inferior_to_inferior_object): Change
16438 return type.
16439 * python/py-exitedevent.c (create_exited_event_object): Update.
16440 * python/py-inferior.c (inferior_to_inferior_object): Return
16441 gdbpy_ref.
16442 (python_new_inferior, python_inferior_deleted)
16443 (thread_to_thread_object, delete_thread_object)
16444 (build_inferior_list, gdbpy_selected_inferior): Update.
16445 * python/py-infthread.c (create_thread_object): Update. Also fail
16446 if inferior_to_inferior_object fails.
16447
16448 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16449
16450 * inferior.h (class inferior) <displaced_step_state>: New field.
16451 * infrun.h (struct displaced_step_state): Move here from
16452 infrun.c. Initialize fields, add constructor.
16453 <inf>: Remove field.
16454 <reset>: New method.
16455 * infrun.c (struct displaced_step_inferior_state): Move to
16456 infrun.h.
16457 (displaced_step_inferior_states): Remove.
16458 (get_displaced_stepping_state): Adust.
16459 (displaced_step_in_progress_any_inferior): Adjust.
16460 (displaced_step_in_progress_thread): Adjust.
16461 (displaced_step_in_progress): Adjust.
16462 (add_displaced_stepping_state): Remove.
16463 (get_displaced_step_closure_by_addr): Adjust.
16464 (remove_displaced_stepping_state): Remove.
16465 (infrun_inferior_exit): Call displaced_step_state.reset.
16466 (use_displaced_stepping): Don't check for NULL.
16467 (displaced_step_prepare_throw): Call
16468 get_displaced_stepping_state.
16469 (displaced_step_fixup): Don't check for NULL.
16470 (prepare_for_detach): Don't check for NULL.
16471
16472 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16473
16474 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16475 in case of call that did not complete.
16476
16477 2019-01-02 Andrey Utkin <autkin@undo.io>
16478
16479 * symfile.c (find_separate_debug_file): Fix search of debug files for
16480 remote debuggee.
16481
16482 2019-01-02 Tom Tromey <tom@tromey.com>
16483
16484 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16485 indentation.
16486 * python/py-frame.c (frapy_older): Remove cast.
16487 (frapy_newer): Likewise.
16488 * python/py-breakpoint.c (local_setattro): Remove cast.
16489 * python/py-arch.c (archpy_name): Remove local variable.
16490 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16491
16492 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16493
16494 * unittests/basic_string_view/element_access/char/empty.cc:
16495 Fix year range in copyright header.
16496
16497 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16498
16499 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16500 Delete.
16501 <operator==>: Update with for removed field.
16502 <hash>: Likewise.
16503 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16504 <isa_features>: ...this.
16505 <abi_features>: New field.
16506 (riscv_isa_flen): Update comment.
16507 (riscv_abi_xlen): New declaration.
16508 (riscv_abi_flen): New declaration.
16509 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16510 isa_features.
16511 (riscv_abi_xlen): New function.
16512 (riscv_isa_flen): Update to get answer from isa_features.
16513 (riscv_abi_flen): New function.
16514 (riscv_has_fp_abi): Update to get answer from abi_features.
16515 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16516 xlen and flen.
16517 (riscv_call_info) <xlen, flen>: Update comment.
16518 (riscv_call_arg_struct): Remove invalid assertions
16519 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16520 is removed.
16521 (riscv_gdbarch_init): Gather isa features and abi features
16522 separately, ensure both match on the gdbarch when reusing an old
16523 gdbarch. Relax an error check to allow 32-bit abi float to run on
16524 a target with 64-bit float hardware.
16525
16526 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16527
16528 * source.c (search_command_helper): Stop reverse search
16529 when line 1 has been searched.
16530
16531 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16532
16533 * record-full.c (record_full_base_target::close): Rewrite
16534 record_full_core_buf_list free logic.
16535
16536 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16537
16538 * break-catch-syscall.c (print_one_catch_syscall): xfree
16539 the last text.
16540
16541 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16542
16543 * top.c (print_gdb_version): Update Copyright year in version
16544 message.
16545
16546 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16547
16548 Update copyright year range in all GDB files.
16549
16550 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16551
16552 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16553
16554 For older changes see ChangeLog-2018.
16555 \f
16556 Local Variables:
16557 mode: change-log
16558 left-margin: 8
16559 fill-column: 74
16560 version-control: never
16561 coding: utf-8
16562 End:
16563
This page took 0.454359 seconds and 4 git commands to generate.