]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Fix printf of a convenience variable holding an inferior address
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
2
3 PR gdb/25650
4 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
5 when verifying if dealing with a convenience variable.
6
7 2020-02-22 Eli Zaretskii <eliz@gnu.org>
8
9 PRE gdb/25586:
10 * tui/tui-win.c (new_height_ok, tui_adjust_win_heights): Rename
11 'locator' to 'status_line', to better match terminology in the
12 manual.
13 (tui_adjust_win_heights): Resize the status_line window to match
14 the new dimensions of the command and source/disassembly windows.
15 Reported by Aleksey Midenkov <midenok@gmail.com>.
16
17 2020-02-08 Joel Brobecker <brobecker@adacore.com>
18
19 * version.in: Set GDB version number to 9.1.90.DATE-git.
20
21 2020-02-08 Joel Brobecker <brobecker@adacore.com>
22
23 GDB 9.1 released.
24
25 2020-02-08 Joel Brobecker <brobecker@adacore.com>
26
27 * version.in: Set GDB version number to 9.1.
28
29 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
30
31 PR gdb/25190:
32 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
33 * gdb/remote.c (remote_console_output): Update.
34 * gdb/ui-file.c (fputs_unfiltered): Rename to...
35 (ui_file_puts): ...this.
36 * gdb/ui-file.h (ui_file_puts): Add declaration.
37 * gdb/utils.c (emit_style_escape): Update.
38 (flush_wrap_buffer): Update.
39 (fputs_maybe_filtered): Update.
40 (fputs_unfiltered): Add function.
41
42 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
43
44 * gdb/event-loop.c (gdb_wait_for_event): Update.
45 * gdb/printcmd.c (printf_command): Update.
46 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
47 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
48 (gdb_os_flush_stderr): Update.
49 * gdb/remote.c (remote_console_output): Update.
50 * gdb/ui-file.c (gdb_flush): Rename to...
51 (ui_file_flush): ...this.
52 (stderr_file::write): Update.
53 (stderr_file::puts): Update.
54 * gdb/ui-file.h (gdb_flush): Rename to...
55 (ui_file_flush): ...this.
56 * gdb/utils.c (gdb_flush): Add function.
57 * gdb/utils.h (gdb_flush): Add declaration.
58
59 2020-02-07 Tom Tromey <tromey@adacore.com>
60
61 PR breakpoints/24915:
62 * source.c (find_and_open_source): Do not check basenames_may_differ.
63
64 2020-01-10 Christian Biesinger <cbiesinger@google.com>
65
66 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
67
68 2020-01-07 Tom Tromey <tromey@adacore.com>
69
70 PR build/24937:
71 * stap-probe.c (class stap_static_probe_ops): Add constructor.
72
73 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
74
75 * stack.c (print_frame_info): Move disassemble_next_line code
76 inside source_print block.
77
78 2020-01-01 Joel Brobecker <brobecker@adacore.com>
79
80 * gdbarch.sh: Update copyright year range of generated files.
81
82 2020-01-01 Joel Brobecker <brobecker@adacore.com>
83
84 Update copyright year range in all the GDB files automatically
85 handled by our copyright.py script.
86
87 2020-01-01 Joel Brobecker <brobecker@adacore.com>
88
89 * copyright.py: Convert to Python 3.
90
91 2020-01-01 Joel Brobecker <brobecker@adacore.com>
92
93 * copyright.py: Adapt after move of gnulib directory from gdb
94 directory to toplevel directory.
95
96 2020-01-01 Joel Brobecker <brobecker@adacore.com>
97
98 * copyright.py (main): Exit if run from the wrong directory.
99
100 2020-01-01 Joel Brobecker <brobecker@adacore.com>
101
102 * top.c (print_gdb_version): Change copyright year to 2020.
103
104 2019-12-26 Christian Biesinger <cbiesinger@google.com>
105
106 * configure: Regenerate.
107 * configure.ac: Quote variable arguments of test.
108 * gdbsupport/common.m4: Likewise.
109
110 2019-12-21 Eli Zaretskii <eliz@gnu.org>
111
112 * top.c (print_gdb_configuration): Print "--with-xxhash" or
113 "--without-xxhash" according to HAVE_LIBXXHASH.
114
115 2019-12-18 Tom Tromey <tromey@adacore.com>
116
117 PR build/25268:
118 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
119 type on macOS. Add comment.
120
121 2019-12-18 Tom Tromey <tromey@adacore.com>
122
123 PR build/25250:
124 * ui-out.c (ui_out::vmessage): Update.
125 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
126 Rename.
127 (string_field): Update.
128 (signed_field): Update.
129
130 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
131
132 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
133
134 2019-12-11 Joel Brobecker <brobecker@adacore.com>
135
136 * version.in: Set GDB version number to 9.0.90.DATE-git.
137
138 2019-12-11 Joel Brobecker <brobecker@adacore.com>
139
140 GDB 9.0.90 released.
141
142 2019-12-11 Joel Brobecker <brobecker@adacore.com>
143
144 * version.in: Set GDB version number to 9.0.90.
145
146 2019-12-11 Joel Brobecker <brobecker@adacore.com>
147
148 * NEWS: Change "Changes since GDB 8.3" into "Changes in GDB 9".
149
150 2019-12-11 Joel Brobecker <brobecker@adacore.com>
151
152 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
153 * version.in: Bump version to 9.0.90.DATE-git.
154
155 2019-12-11 Tom Tromey <tromey@adacore.com>
156
157 PR build/25268:
158 * gdbsupport/thread-pool.c (set_thread_name): New function.
159 (thread_pool::set_thread_count): Don't call pthread_setname_np.
160 (thread_pool::thread_function): Call set_thread_name.
161
162 2019-12-11 Tom Tromey <tromey@adacore.com>
163
164 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
165 bfd_get_signed_8.
166
167 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
168
169 * NEWS: Document -raw-values option and the related setting commands.
170 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
171 only set it on when /r is given.
172 * valprint.c (value_print_option_defs): New element raw-values.
173 * Makefile.in: Add the new file.
174
175 2019-12-10 Christian Biesinger <cbiesinger@google.com>
176
177 * gdbsupport/safe-strerror.c: Supress the unused function warning
178 for select_strerror_r.
179
180 2019-12-10 Christian Biesinger <cbiesinger@google.com>
181
182 * config.in: Regenerate.
183 * configure: Regenerate.
184 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
185 safe_strerror instead of strerror.
186 * gdbsupport/common.m4: Don't check for strerror.
187 * gdbsupport/safe-strerror.c: Support both the glibc version
188 of strerror_r and the XSI version.
189
190 2019-12-10 Tom Tromey <tromey@adacore.com>
191
192 * ada-typeprint.c (print_choices): Use a single "?".
193 (print_variant_part): Print "?" if the discriminant name
194 is not known.
195
196 2019-12-10 George Barrett <bob@bob131.so>
197
198 Fix scripted probe breakpoints.
199 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
200 declaration forward.
201 (breakpoint_ops_for_event_location_type)
202 (breakpoint_ops_for_event_location): Add function definitions.
203 (break_command_1, trace_command): Use
204 breakpoint_ops_for_event_location.
205 * breakpoint.h (breakpoint_ops_for_event_location): Add function
206 declarations.
207 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
208 breakpoint_ops_for_event_location.
209 * python/py-breakpoint.c (bppy_init): Use
210 breakpoint_ops_for_event_location.
211
212 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
213
214 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
215 when ranking an lvalue argument for an rvalue parameter.
216
217 2019-12-08 Wataru Ashihara <wataash@wataash.com>
218
219 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
220 template argument for scoped_restore_tmpl from bool to int.
221
222 2019-12-07 Keith Seitz <keiths@redhat.com>
223
224 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
225 (build_id_to_debug_bfd): Make static, rewriting to use
226 build_id_to_bfd_suffix.
227 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
228 adding `suffix' parameter. Append SUFFIX to file names
229 when searching for matching files.
230 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
231 (build_id_to_exec_bfd): Likewise.
232 * build-id.h (build_id_to_debug_bfd): Clarify that function
233 searches for BFD of debug info file.
234 (build_id_to_exec_bfd): Declare.
235 * corelow.c: Include build-id.h.
236 (locate_exec_from_corefile_build_id): New function.
237 (core_target_open): If no executable BFD is found,
238 search for a core file BFD using build-id.
239
240 2019-12-06 Christian Biesinger <cbiesinger@google.com>
241
242 * bcache.c: Put in namespace gdb.
243 * bcache.h: Likewise.
244 * gdbtypes.c (check_types_worklist): Update.
245 (types_deeply_equal): Update.
246 * macrotab.c (struct macro_table) <bcache>: Update.
247 (new_macro_table): Update.
248 * macrotab.h (struct bcache): Put this forward declaration
249 inside namespace gdb.
250 (new_macro_table): Update.
251 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
252 Update.
253 <macro_cache>: Update.
254 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
255
256 2019-12-06 Tom de Vries <tdevries@suse.de>
257
258 PR symtab/24971
259 * block.c (best_symbol, better_symbol): New function.
260 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
261 decl.
262
263 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
264
265 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
266 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
267 for ranking see-through reference cases.
268
269 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
270 * stack.c (faas_command): Check a command is provided.
271 * thread.c (taas_command, tfaas_command): Likewise.
272
273 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
274 * inferior.c (prune_inferiors): Only call delete_inferior,
275 Do not modify the inferior list.
276
277 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
278
279 * c-exp.y: Update calls to lookup_typename,
280 lookup_signed_typename and lookup_unsigned_typename.
281 * c-lang.c (evaluate_subexp_c): Likewise.
282 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
283 Likewise.
284 * eval.c (binop_promote): Likewise.
285 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
286 (lookup_unsigned_typename): Likewise.
287 (lookup_signed_typename): Likewise.
288 * gdbtypes.h (lookup_unsigned_typename): Likewise.
289 (lookup_signed_typename): Likewise.
290 (lookup_typename): Likewise.
291 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
292 lookup_typename, lookup_signed_typename,
293 lookup_unsigned_typename.
294 * m2-exp.y: Likewise.
295 * printcmd.c (printf_wide_c_string): Likewise.
296 (ui_printf): Likewise.
297 * python/py-type.c (typy_lookup_typename): Likewise.
298 * python/py-xmethods.c (python_xmethod_worker::invoke):
299 Likewise.
300 * rust-exp.y: Likewise.
301
302 2019-12-04 Christian Biesinger <cbiesinger@google.com>
303
304 * configure.nat (obsd64): Add missing files x86-nat.o and
305 nat/x86-dregs.o.
306
307 2019-12-04 Tom Tromey <tom@tromey.com>
308
309 * valprint.c (val_print_string): Use metadata_style.
310 * go-valprint.c (print_go_string): Use metadata style.
311 * p-valprint.c (pascal_object_print_static_field): Use metadata
312 style.
313 * cp-valprint.c (cp_print_static_field): Use metadata style.
314
315 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
316 Chris January <chris.january@arm.com>
317
318 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
319 tokens.
320 (typebase): New patterns for complex, single/double precision, and
321 single/double complex.
322 (f77_keywords): Change token for complex keyword, and add single,
323 double, and precision keywords.
324
325 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
326
327 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
328 "info io_registers".
329
330 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
331
332 * regcache.c (cooked_read_test): Initialize thread list of
333 mock_inferior.
334
335 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
336
337 * aarch64-linux-tdep.c: Remove includes.
338
339 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
340
341 * aarch64-tdep.c: Remove includes.
342
343 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
344
345 * filtered-iterator.h (filtered_iterator) <operator==,
346 operator!=>: Compare wrapped iterators, not wrapped pointers.
347 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
348 unittests/filtered_iterator-selftests.c.
349 * unittests/filtered_iterator-selftests.c: New file.
350
351 2019-12-04 Tom Tromey <tromey@adacore.com>
352
353 * gdbtypes.c (create_range_type): Inherit endianity
354 from base type.
355
356 2019-12-04 Tom Tromey <tromey@adacore.com>
357
358 * ada-lang.c (decode_constrained_packed_array)
359 (ada_value_assign, value_assign_to_component): Update.
360 * dwarf2loc.c (rw_pieced_value, access_memory)
361 (dwarf2_compile_expr_to_ax): Update.
362 * dwarf2read.c (dwarf2_add_field): Update.
363 * eval.c (evaluate_subexp_standard): Update.
364 * gdbarch.c, gdbarch.h: Rebuild.
365 * gdbarch.sh (bits_big_endian): Remove.
366 * gdbtypes.h (union field_location): Update comment.
367 * target-descriptions.c (make_gdb_type): Update.
368 * valarith.c (value_bit_index): Update.
369 * value.c (struct value) <bitpos>: Update comment.
370 (unpack_bits_as_long, modify_field): Update.
371 * value.h (value_bitpos): Update comment.
372
373 2019-12-04 Tom Tromey <tromey@adacore.com>
374
375 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
376 endian-ness.
377
378 2019-12-04 Tom Tromey <tromey@adacore.com>
379
380 * dwarf2read.c (dwarf2_init_float_type)
381 (dwarf2_init_complex_target_type): Add byte_order parameter.
382 (read_base_type): Compute byte order earlier.
383 * gdbtypes.c (init_float_type): Add byte_order parameter.
384 * gdbtypes.h (init_float_type): Add byte_order parameter.
385
386 2019-12-04 Tom Tromey <tromey@adacore.com>
387
388 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
389
390 2019-12-04 Tom Tromey <tromey@adacore.com>
391
392 * dwarf2read.c (process_structure_scope): Initialize
393 "discr_offset".
394
395 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
396
397 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
398 add it into the search spec.
399 (parse_max_results_option): New function.
400 (mi_info_functions_or_variables): Parse -max-results flag and pass
401 it to mi_symbol_info.
402 (mi_cmd_symbol_info_modules): Likewise.
403 (mi_cmd_symbol_info_types): Likewise.
404 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
405 return type to bool, change result container into a set, and don't
406 add new results if we have enough already.
407 (global_symbol_searcher::add_matching_msymbols): Change return
408 type to bool, and don't add new results if we have enough already.
409 (sort_search_symbols_remove_dups): Delete.
410 (global_symbol_searcher::search): Early exit from search loop when
411 we have enough results. Use a std::set to collect the results
412 from calling add_matching_symbols.
413 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
414 member function.
415 (global_symbol_searcher) <m_max_search_results>: New member
416 variable.
417 (global_symbol_searcher) <add_matching_symbols>: Update header
418 comment and change return type to bool.
419 (global_symbol_searcher) <add_matching_msymbols>: Update header
420 comment and change return type to bool.
421
422 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
423
424 * symtab.c (symbol_search::compare_search_syms): Update header
425 comment.
426 (global_symbol_searcher::is_suitable_msymbol): New function.
427 (global_symbol_searcher::expand_symtabs): New function.
428 (global_symbol_searcher::add_matching_symbols): New function.
429 (global_symbol_searcher::add_matching_msymbols): New function.
430 (global_symbol_searcher::search): Move most of the content
431 into the new functions above, and call them as needed.
432 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
433 function.
434 (global_symbol_searcher) <add_matching_symbols>: New member
435 function.
436 (global_symbol_searcher) <add_matching_msymbols>: New member
437 function.
438 (global_symbol_searcher) <is_suitable_msymbol>: New member
439 function.
440
441 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
442
443 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
444 -symbol-info-module-variables entries.
445 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
446 (mi_cmd_symbol_info_module_variables): Declare.
447 * mi/mi-symbol-cmds.c
448 (module_symbol_search_iterator): New typedef.
449 (output_module_symbols_in_single_module_and_file): New function.
450 (output_module_symbols_in_single_module): New function.
451 (mi_info_module_functions_or_variables): New function.
452 (mi_cmd_symbol_info_module_functions): New function.
453 (mi_cmd_symbol_info_module_variables): New function.
454 * NEWS: Mention new MI command.
455
456 2019-12-03 Christian Biesinger <cbiesinger@google.com>
457
458 * bcache.c (hash): Remove.
459 (hash_continue): Remove.
460 * bcache.h (hash): Remove.
461 (hash_continue): Remove.
462 (struct bcache) <ctor>: Update.
463 * psymtab.c (psymbol_hash): Update.
464 * stabsread.c (hashname): Update.
465 * utils.h (fast_hash): Add an argument for a start value,
466 defaulting to zero.
467
468 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
469 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
470 (destroy_block_symbol_cache): New function.
471 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
472 (resize_symbol_cache): Likewise.
473
474 2019-12-02 Tom Tromey <tom@tromey.com>
475
476 * unittests/tui-selftests.c (run_tests): Make conditional.
477 (_initialize_tui_selftest): Make conditional.
478
479 2019-12-02 Christian Biesinger <cbiesinger@google.com>
480
481 * aix-thread.c (debug_aix_thread): Change type to bool.
482
483 2019-12-02 Luis Machado <luis.machado@linaro.org>
484
485 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
486
487 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
488
489 * dwarf2read.c (read_tag_string_type): Read the fields required to
490 make a dynamic string, and possibly create a dynamic range for the
491 string.
492 (attr_to_dynamic_prop): Setup is_reference based on the type of
493 attribute being processed.
494 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
495 (resolve_dynamic_array): Rename to...
496 (resolve_dynamic_array_or_string): ...this, update header comment,
497 and accept TYPE_CODE_STRING.
498 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
499
500 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
501
502 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
503 of its implementation from...
504 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
505 the new function.
506
507 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
508
509 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
510 create a range with stride where appropriate.
511 * f-valprint.c: Include 'gdbarch.h'.
512 (f77_print_array_1): Take the stride into account when walking the
513 array. Also convert the stride into addressable units.
514 * gdbtypes.c (create_range_type): Initialise the stride to
515 constant zero.
516 (create_range_type_with_stride): New function, initialise the
517 range as normal, and then setup the stride.
518 (has_static_range): Include the stride here. Also change the
519 return type to bool.
520 (create_array_type_with_stride): Consider the range stride if the
521 array isn't given its own stride.
522 (resolve_dynamic_range): Resolve the stride if needed.
523 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
524 (struct range_bounds) <flag_is_byte_stride>: New member variable.
525 (TYPE_BIT_STRIDE): Define.
526 (TYPE_ARRAY_BIT_STRIDE): Define.
527 (create_range_type_with_stride): Declare.
528 * valarith.c (value_subscripted_rvalue): Take range stride into
529 account when walking the array.
530
531 2019-12-01 Tom Tromey <tom@tromey.com>
532
533 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
534 specially.
535
536 2019-12-01 Tom Tromey <tom@tromey.com>
537
538 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
539 \0.
540 * unittests/tui-selftests.c: New file.
541 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
542
543 2019-12-01 Tom Tromey <tom@tromey.com>
544
545 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
546
547 2019-12-01 Tom Tromey <tom@tromey.com>
548
549 * NEWS: Document new settings.
550 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
551 * tui/tui-win.c (_initialize_tui_win): Add border style
552 observers.
553 * tui/tui-io.h (tui_apply_style): Declare.
554 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
555 longer static.
556 (apply_ansi_escape, tui_set_reverse_mode): Update.
557 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
558 Add "skip_intensity" parameter.
559 <changed>: New member.
560 <do_set_value>: Declare.
561 (tui_border_style, tui_active_border_style): Declare.
562 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
563 globals.
564 (cli_style_option): Initialize "changed".
565 (cli_style_option::do_set_value): New function.
566 (cli_style_option::add_setshow_commands): Add "skip_intensity"
567 parameter. Update.
568 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
569 (_initialize_cli_style): Update. Create TUI border style
570 commands.
571
572 2019-12-01 Tom Tromey <tom@tromey.com>
573
574 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
575 parameter.
576 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
577 parameter.
578 * tui/tui-win.h (compact_source): Declare.
579 * tui/tui-win.c (compact_source): New global.
580 (tui_set_compact_source, tui_show_compact_source): New functions.
581 (_initialize_tui_win): Add "compact-source" setting.
582 * tui/tui-source.c (tui_source_window::set_contents): Handle
583 compact_source setting.
584 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
585 * NEWS: Document new setting.
586
587 2019-11-30 Tom Tromey <tom@tromey.com>
588
589 * dwarf2read.c (dwarf2_add_field): Include field offset when
590 computing variant part length.
591
592 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
593 * NEWS: Mention define-prefix. Tell that command names can now
594 contain a . character.
595
596 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
597
598 * command.h (valid_cmd_char_p): Declare.
599 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
600 the check of valid command char.
601 (find_command_name_length, valid_user_defined_cmd_name_p): Use
602 valid_cmd_char_p.
603 * cli/cli-script.c (validate_comname): Likewise.
604 * completer.c (gdb_completer_command_word_break_characters):
605 Do not remove . from the word break char, update comments.
606 (complete_line_internal_1): Use valid_cmd_char_p.
607 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
608 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
609
610 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
611
612 * cli/cli-script.c (do_define_command): Ensure a redefined
613 prefix command is kept as a prefix command.
614 (define_prefix_command): New function.
615 (show_user_1): Report user defined prefixes.
616 (_initialize_cli_script): Create the new 'define-prefix' command.
617 Add completers for 'define' and 'document'.
618 * top.c (execute_command): If command is a user-defined prefix only
619 command, report the list of commands for this prefix command.
620
621 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
622
623 * valops.c (find_oload_champ): Improve debug output.
624
625 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
626
627 * valops.c (find_oload_champ): Print part of debug messages
628 before the badness vector is std::move'd.
629
630 2019-11-28 Tom Tromey <tom@tromey.com>
631
632 * value.c (creal_internal_fn): Fix comment.
633
634 2019-11-28 Tom Tromey <tom@tromey.com>
635
636 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
637 flag_bound_evaluated>: Now unsigned.
638
639 2019-11-28 Tom Tromey <tom@tromey.com>
640
641 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
642 declare.
643
644 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
645
646 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
647 debug output.
648 * jit.c (jit_unregister_code): Add debug print to match
649 `jit_register_code`.
650
651 2019-11-27 Christian Biesinger <cbiesinger@google.com>
652
653 * NEWS: Mention the new multithreaded symbol loading.
654
655 2019-11-27 Christian Biesinger <cbiesinger@google.com>
656
657 * maint.c (n_worker_threads): Default to 0.
658 (worker_threads_disabled): New function.
659 * maint.h (worker_threads_disabled): New function.
660 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
661 here if worker_threads_disabled () is true.
662 (minimal_symbol_reader::install): Skip all threading if
663 worker_threads_disabled () is true.
664
665 2019-11-27 Christian Biesinger <cbiesinger@google.com>
666
667 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
668 hash code if possible.
669 (add_minsym_to_demangled_hash_table): Likewise.
670 (minimal_symbol_reader::install): Compute the hash codes for msymbol
671 on the background thread.
672 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
673 Add these fields.
674
675 2019-11-27 Christian Biesinger <cbiesinger@google.com>
676
677 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
678 of the mangled name on the background thread.
679 * symtab.c (symbol_set_names): Allow passing in the hash of the
680 linkage_name.
681 * symtab.h (symbol_set_names): Likewise.
682
683 2019-11-27 Kevin Buettner <kevinb@redhat.com>
684
685 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
686 physnames are computed for inherited DIEs.
687
688 2019-11-27 Tom Tromey <tromey@adacore.com>
689
690 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
691 backslashes.
692 * cp-support.c: Remove unnecessary backslashes.
693
694 2019-11-27 Christian Biesinger <cbiesinger@google.com>
695
696 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
697 with sym->set_linkage_name.
698 * coffread.c (coff_read_enum_type): Likewise.
699 * mdebugread.c (parse_symbol): Likewise.
700 * stabsread.c (patch_block_stabs): Likewise.
701 (define_symbol): Likewise.
702 (read_enum_type): Likewise.
703 (common_block_end): Likewise.
704 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
705 function.
706 (SYMBOL_SET_LINKAGE_NAME): Remove.
707 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
708 with sym->set_linkage_name.
709
710 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
711
712 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
713 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
714 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
715 * NEWS: Mention new MI command.
716
717 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
718
719 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
720 '-symbol-info-types', and '-symbol-info-variables'.
721 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
722 (mi_cmd_symbol_info_types): Declare.
723 (mi_cmd_symbol_info_variables): Declare.
724 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
725 (output_debug_symbol): New function.
726 (output_nondebug_symbol): New function.
727 (mi_symbol_info): New function.
728 (mi_info_functions_or_variables): New function.
729 (mi_cmd_symbol_info_functions): New function.
730 (mi_cmd_symbol_info_types): New function.
731 (mi_cmd_symbol_info_variables): New function.
732 * NEWS: Mention new commands.
733
734 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
735
736 * symtab.c (symbol_to_info_string): New function, most content
737 moved from print_symbol_info, but updated to return a std::string.
738 (print_symbol_info): Update to use symbol_to_info_string and print
739 returned string.
740 * symtab.h (symbol_to_info_string): Declare new function.
741
742 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
743
744 * python/python.c (gdbpy_rbreak): Convert to using
745 global_symbol_searcher.
746 * symtab.c (file_matches): Convert return type to bool, change
747 file list to std::vector, update header comment.
748 (search_symbols): Rename to...
749 (global_symbol_searcher::search): ...this and update now its
750 a member function of global_symbol_searcher. Take account of the
751 changes to file_matches.
752 (symtab_symbol_info): Convert to using global_symbol_searcher.
753 (rbreak_command): Likewise.
754 (search_module_symbols): Likewise.
755 * symtab.h (enum symbol_search): Update comment.
756 (search_symbols): Remove declaration.
757 (class global_symbol_searcher): New class.
758
759 2019-11-26 Tom Tromey <tromey@adacore.com>
760
761 * cp-support.c (_initialize_cp_support): Conditionally initialize
762 gdb_demangle_attempt_core_dump.
763
764 2019-11-26 Tom Tromey <tom@tromey.com>
765
766 * python/py-function.c (fnpy_init): Update.
767 * value.h (add_internal_function): Adjust declaration.
768 * value.c (function_destroyer): Remove.
769 (do_add_internal_function): Don't set destroyer or copy name.
770 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
771 Set name_allocated.
772 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
773 (cmdpy_init): Set name_allocated.
774 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
775 member.
776 (~cmd_list_element): Free "name" if needed.
777
778 2019-11-26 Tom Tromey <tom@tromey.com>
779
780 * value.h (add_internal_function): Add new overload. Move
781 documentation from value.h.
782 * value.c (do_add_internal_function): New function.
783 (add_internal_function): Use it. Add new overload.
784 (function_destroyer): Don't free doc.
785 * python/py-function.c (fnpy_init): Update.
786
787 2019-11-26 Tom Tromey <tom@tromey.com>
788
789 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
790 (cmdpy_init): Set "doc_allocated".
791
792 2019-11-26 Tom Tromey <tom@tromey.com>
793
794 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
795 name of worker thread.
796 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
797 pthread_setname_np.
798 * configure, config.in: Rebuild.
799
800 2019-11-26 Tom Tromey <tom@tromey.com>
801
802 * python/python.c (class gdbpy_gil): New.
803 (struct gdbpy_event): Add constructor, destructor, operator().
804 (gdbpy_post_event): Use run_on_main_thread.
805 (gdbpy_initialize_events): Remove.
806 (do_start_initialization): Update.
807
808 2019-11-26 Tom Tromey <tom@tromey.com>
809
810 * NEWS: Add entry.
811 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
812 commands. Call update_thread_pool_size.
813 (update_thread_pool_size, maintenance_set_worker_threads): New
814 functions.
815 (n_worker_threads): New global.
816
817 2019-11-26 Christian Biesinger <cbiesinger@google.com>
818 Tom Tromey <tom@tromey.com>
819
820 * minsyms.c (minimal_symbol_reader::install): Use
821 parallel_for_each.
822 * gdbsupport/parallel-for.h: New file.
823 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
824
825 2019-11-26 Christian Biesinger <cbiesinger@google.com>
826 Tom Tromey <tom@tromey.com>
827
828 * gdbsupport/thread-pool.h: New file.
829 * gdbsupport/thread-pool.c: New file.
830 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
831 (HFILES_NO_SRCDIR): Add thread-pool.h.
832
833 2019-11-26 Tom Tromey <tom@tromey.com>
834
835 * event-top.h (thread_local_segv_handler): Declare.
836 * event-top.c (thread_local_segv_handler): New global.
837 (install_handle_sigsegv, handle_sigsegv): New functions.
838 (async_init_signals): Install SIGSEGV handler.
839 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
840 thread-local.
841 (report_failed_demangle): New function.
842 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
843 handler-setting code, instead use segv_handler. Run warning code
844 on main thread.
845
846 2019-11-26 Tom Tromey <tom@tromey.com>
847
848 * run-on-main-thread.c: New file.
849 * run-on-main-thread.h: New file.
850 * unittests/main-thread-selftests.c: New file.
851 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
852 main-thread-selftests.c.
853 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
854 (COMMON_SFILES): Add run-on-main-thread.c.
855
856 2019-11-26 Tom Tromey <tom@tromey.com>
857
858 * main.c (setup_alternate_signal_stack): Remove.
859 (captured_main_1): Use gdb::alternate_signal_stack.
860 * gdbsupport/alt-stack.h: New file.
861
862 2019-11-26 Tom Tromey <tom@tromey.com>
863
864 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
865 Remove comment.
866 (save_original_signals_state, restore_original_signals_state): Use
867 gdb_sigmask.
868 * linux-nat.c (block_child_signals, restore_child_signals_mask)
869 (_initialize_linux_nat): Use gdb_sigmask.
870 * guile/guile.c (_initialize_guile): Use block_signals.
871 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
872 * gdbsupport/gdb-sigmask.h: New file.
873 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
874 * cp-support.c (gdb_demangle): Use gdb_sigmask.
875 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
876 pthread_sigmask.
877 * configure, config.in: Rebuild.
878 * gdbsupport/block-signals.h: New file.
879
880 2019-11-26 Tom Tromey <tom@tromey.com>
881
882 * acinclude.m4: Include ax_pthread.m4.
883 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
884 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
885 (CLIBS): Use PTHREAD_LIBS.
886 (aclocal_m4_deps): Add ax_pthread.m4.
887 * config.in, configure: Rebuild.
888 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
889
890 2019-11-26 Tom Tromey <tom@tromey.com>
891
892 * symtab.h (struct minimal_symbol) <name_set>: New member.
893 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
894 Don't call symbol_set_names.
895 (minimal_symbol_reader::install): Call symbol_set_names.
896
897 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
898
899 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
900 restore_active_ext_lang, as GIL is needed for (indirectly)
901 called PyOS_InterruptOccurred.
902
903 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
904
905 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
906 definition.
907
908 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
909
910 * remote-sim.c (simulator_command): Make static, remove
911 declaration.
912
913 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
914
915 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
916 static.
917 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
918 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
919 (main): Likewise.
920 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
921 (main): Likewise.
922 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
923 (main): Likewise.
924 * unittests/basic_string_view/element_access/char/1.cc (test01):
925 Likewise.
926 (main): Likewise.
927 * unittests/basic_string_view/element_access/char/empty.cc (main):
928 Likewise.
929 * unittests/basic_string_view/element_access/char/front_back.cc
930 (test01): Likewise.
931 (main): Likewise.
932 * unittests/basic_string_view/inserters/char/2.cc (test05):
933 Likewise.
934 (main): Likewise.
935 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
936 (test01): Likewise.
937 (main): Likewise.
938 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
939 (test01): Likewise.
940 (main): Likewise.
941 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
942 Likewise.
943 * unittests/basic_string_view/operations/compare/char/1.cc
944 (test01): Likewise.
945 (main): Likewise.
946 * unittests/basic_string_view/operations/compare/char/13650.cc
947 (test01): Likewise.
948 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
949 Likewise.
950 (main): Likewise.
951 * unittests/basic_string_view/operations/data/char/1.cc (test01):
952 Likewise.
953 (main): Likewise.
954 * unittests/basic_string_view/operations/find/char/1.cc (test01):
955 Likewise.
956 (main): Likewise.
957 * unittests/basic_string_view/operations/find/char/2.cc (test02):
958 Likewise.
959 (main): Likewise.
960 * unittests/basic_string_view/operations/find/char/3.cc (test03):
961 Likewise.
962 (main): Likewise.
963 * unittests/basic_string_view/operations/find/char/4.cc (main):
964 Likewise.
965 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
966 Likewise.
967 (main): Likewise.
968 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
969 Likewise.
970 (main): Likewise.
971 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
972 Likewise.
973 (main): Likewise.
974 * unittests/basic_string_view/operations/substr/char/1.cc
975 (test01): Likewise.
976 (main): Likewise.
977 * unittests/basic_string_view/operators/char/2.cc (main):
978 Likewise.
979 * unittests/optional/assignment/1.cc (test): Likewise.
980 * unittests/optional/assignment/2.cc (test): Likewise.
981 * unittests/optional/assignment/3.cc (test): Likewise.
982 * unittests/optional/assignment/4.cc (test): Likewise.
983 * unittests/optional/assignment/5.cc (test): Likewise.
984 * unittests/optional/assignment/6.cc (test): Likewise.
985 * unittests/optional/assignment/7.cc (test): Likewise.
986 * unittests/optional/cons/copy.cc (test): Likewise.
987 * unittests/optional/cons/default.cc (test): Likewise.
988 * unittests/optional/cons/move.cc (test): Likewise.
989 * unittests/optional/cons/value.cc (test): Likewise.
990 * unittests/optional/in_place.cc (test): Likewise.
991 * unittests/optional/observers/1.cc (test): Likewise.
992 * unittests/optional/observers/2.cc (test): Likewise.
993
994 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
995
996 * tui-win.h (tui_set_var_cmd): Remove.
997 * tui-win.c (tui_set_var_cmd): Make static.
998
999 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1000
1001 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1002 rbreak_command_wrapper): Remove.
1003 * symtab.c (rbreak_command_wrapper): Remove.
1004
1005 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1006
1007 * inferior.h (info_terminal_command): Remove declaration.
1008 * inflow.c (info_terminal_command): Make static.
1009
1010 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1011
1012 * inferior.c (exit_inferior_silent): Remove.
1013
1014 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1015
1016 * dictionary.c (dict_empty, mdict_empty): Remove.
1017 * dictionary.c (mdict_empty): Remove.
1018
1019 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1020
1021 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1022 (arc_insn_get_memory_offset): Likewise.
1023 (arc_insn_dump): Likewise.
1024 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1025 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1026 * dictionary.c (dict_iterator_next): Likewise.
1027 (dict_iter_match_first): Likewise.
1028 (dict_iter_match_next): Likewise.
1029 * f-lang.c (evaluate_subexp_f): Likewise.
1030 * hppa-tdep.c (hppa_read_pc): Likewise.
1031 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1032 * parse.c (write_exp_elt_msym): Likewise.
1033 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1034 * remote.c (remote_packet_size): Likewise.
1035 (remote_notif_stop_parse): Likewise.
1036 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1037 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1038 * source.c (prepare_path_for_appending): Likewise.
1039 * sparc64-linux-tdep.c
1040 (sparc64_linux_handle_segmentation_fault); Likewise.
1041 * stack.c (frame_selection_by_function_completer): Likewise.
1042
1043 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1044
1045 * completer.c (set_gdb_completion_word_break_characters):
1046 Remove.
1047
1048 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1049
1050 * dwarf-index-write.c: Include dwarf-index-write.h.
1051 * mi/mi-interp.c: Include mi/mi-interp.h.
1052
1053 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1054
1055 * aarch32-tdep.c: Include aarch32-tdep.h.
1056 * aarch32-tdep.h: Forward-declare struct target_desc.
1057
1058 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1059
1060 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1061 strerror.
1062 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1063 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1064
1065 2019-11-25 Tom de Vries <tdevries@suse.de>
1066
1067 * contrib/words.sh: Add -c option.
1068
1069 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1070
1071 * solib.c (solib_find_1): Change int to bool.
1072 (exec_file_find): Change int to bool.
1073 (solib_find): Change int to bool.
1074 (solib_read_symbols): Change int to bool.
1075 (solib_used): Change int to bool.
1076 (solib_add): Change int to bool.
1077 (info_sharedlibrary_command): Change int to bool.
1078 (solib_contains_address_p): Change int to bool.
1079 (solib_keep_data_in_core): Change int to bool.
1080 (in_solib_dynsym_resolve_code): Change int to bool.
1081 (reload_shared_libraries_1): Change int to bool.
1082 (gdb_sysroot_changed): Change int to bool.
1083 * solib.h (solib_read_symbols): Change int to bool.
1084 (solib_contains_address_p): Change int to bool.
1085 (solib_keep_data_in_core): Change int to bool.
1086 (in_solib_dynsym_resolve_code): Change int to bool.
1087 (libpthread_name_p): Change int to bool.
1088
1089 2019-11-25 Luis Machado <luis.machado@linaro.org>
1090
1091 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1092 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1093 (remote_packet_max_chars): New static global.
1094 (show_remote_packet_max_chars): New function.
1095 (remote_target::putpkt_binary): Adjust to use new
1096 remote_packet_max_chars option.
1097 (remote_target::getpkt_or_notif_sane_1): Likewise.
1098 (_initialize_remote): Register new remote-packet-max-chars option.
1099
1100 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1101
1102 * m68k-linux-nat.c: Include gdbarch.h.
1103
1104 2019-11-24 Tom Tromey <tom@tromey.com>
1105
1106 * symfile.c (read_symbols): Update.
1107 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1108 bool.
1109 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1110 (psym_lookup_symbol, psym_find_last_source_symtab)
1111 (psym_forget_cached_source_info, psym_print_stats)
1112 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1113 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1114 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1115 (psym_find_compunit_symtab_by_address)
1116 (maintenance_print_psymbols, maintenance_info_psymtabs)
1117 (maintenance_check_psymtabs): Update.
1118 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1119 bool.
1120
1121 2019-11-22 Tom Tromey <tom@tromey.com>
1122
1123 * observable.h: Update comments.
1124
1125 2019-11-22 Tom Tromey <tromey@adacore.com>
1126
1127 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1128 (print_ada_task_info): Don't try to fetch thread id if task is not
1129 alive.
1130
1131 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1132
1133 * ada-exp.y: Update.
1134 * ada-lang.c (sort_choices): Update.
1135 (ada_print_symbol_signature): Update.
1136 (resolve_subexp): Update.
1137 (ada_parse_renaming): Update.
1138 (ada_read_renaming_var_value): Update.
1139 (lesseq_defined_than): Update.
1140 (remove_extra_symbols): Update.
1141 (remove_irrelevant_renamings): Update.
1142 (ada_add_block_symbols): Update.
1143 (ada_collect_symbol_completion_matches): Update.
1144 (ada_is_renaming_symbol): Update.
1145 (aggregate_assign_from_choices): Update.
1146 (ada_evaluate_subexp): Update.
1147 (ada_has_this_exception_support): Update.
1148 (ada_is_non_standard_exception_sym): Update.
1149 (ada_add_exceptions_from_frame): Update.
1150 (ada_add_global_exceptions): Update.
1151 (ada_print_subexp): Update.
1152 * ax-gdb.c (gen_var_ref): Update.
1153 (gen_maybe_namespace_elt): Update.
1154 (gen_expr_for_cast): Update.
1155 (gen_expr): Update.
1156 * block.h: Update.
1157 * blockframe.c (find_pc_partial_function): Update.
1158 * breakpoint.c (print_breakpoint_location): Update.
1159 (update_static_tracepoint): Update.
1160 * btrace.c (ftrace_print_function_name): Update.
1161 (ftrace_function_switched): Update.
1162 * buildsym.c (find_symbol_in_list): Update.
1163 * c-exp.y: Update.
1164 * c-typeprint.c (c_print_typedef): Update.
1165 (c_type_print_template_args): Update.
1166 * cli/cli-cmds.c (edit_command): Update.
1167 (list_command): Update.
1168 (print_sal_location): Update.
1169 * coffread.c (patch_opaque_types): Update.
1170 (process_coff_symbol): Update.
1171 (coff_read_enum_type): Update.
1172 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1173 (convert_one_symbol): Update.
1174 (hash_symname): Update.
1175 (eq_symname): Update.
1176 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1177 * compile/compile-cplus-types.c (debug_print_scope): Update.
1178 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1179 * compile/compile-object-load.c (get_out_value_type): Update.
1180 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1181 (search_symbol_list): Update.
1182 (cp_lookup_symbol_imports_or_template): Update.
1183 * cp-support.c (overload_list_add_symbol): Update.
1184 * ctfread.c (psymtab_to_symtab): Update.
1185 * dbxread.c (cp_set_block_scope): Update.
1186 * dictionary.c (iter_match_first_hashed): Update.
1187 (iter_match_next_hashed): Update.
1188 (insert_symbol_hashed): Update.
1189 (iter_match_next_linear): Update.
1190 * dictionary.h: Update.
1191 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1192 (locexpr_describe_location_piece): Update.
1193 (locexpr_describe_location_1): Update.
1194 (locexpr_generate_c_location): Update.
1195 (loclist_describe_location): Update.
1196 (loclist_generate_c_location): Update.
1197 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1198 (read_func_scope): Update.
1199 (process_enumeration_scope): Update.
1200 (new_symbol): Update.
1201 (dwarf2_const_value): Update.
1202 (dwarf2_symbol_mark_computed): Update.
1203 * eval.c (evaluate_funcall): Update.
1204 (evaluate_subexp_standard): Update.
1205 * expprint.c (print_subexp_standard): Update.
1206 (dump_subexp_body_standard): Update.
1207 * f-valprint.c (info_common_command_for_block): Update.
1208 * findvar.c (get_hosting_frame): Update.
1209 (default_read_var_value): Update.
1210 * go-lang.c (go_symbol_package_name): Update.
1211 * guile/scm-block.c (bkscm_print_block_smob): Update.
1212 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1213 (gdbscm_symbol_name): Update.
1214 (gdbscm_symbol_linkage_name): Update.
1215 (gdbscm_symbol_print_name): Update.
1216 * infcall.c (get_function_name): Update.
1217 * infcmd.c (jump_command): Update.
1218 (finish_command): Update.
1219 * infrun.c (insert_exception_resume_breakpoint): Update.
1220 * linespec.c (canonicalize_linespec): Update.
1221 (create_sals_line_offset): Update.
1222 (convert_linespec_to_sals): Update.
1223 (complete_label): Update.
1224 (find_label_symbols_in_block): Update.
1225 * m2-typeprint.c (m2_print_typedef): Update.
1226 * mdebugread.c (mdebug_reg_to_regnum): Update.
1227 (parse_symbol): Update.
1228 (mylookup_symbol): Update.
1229 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1230 (list_args_or_locals): Update.
1231 * objc-lang.c (compare_selectors): Update.
1232 (info_selectors_command): Update.
1233 (compare_classes): Update.
1234 (info_classes_command): Update.
1235 (find_imps): Update.
1236 * p-typeprint.c (pascal_print_typedef): Update.
1237 * printcmd.c (build_address_symbolic): Update.
1238 (info_address_command): Update.
1239 (print_variable_and_value): Update.
1240 * python/py-framefilter.c (extract_sym): Update.
1241 (py_print_single_arg): Update.
1242 * python/py-symbol.c (sympy_str): Update.
1243 (sympy_get_name): Update.
1244 (sympy_get_linkage_name): Update.
1245 * python/python.c (gdbpy_rbreak): Update.
1246 * record-btrace.c (btrace_get_bfun_name): Update.
1247 (btrace_call_history): Update.
1248 * rust-lang.c (rust_print_typedef): Update.
1249 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1250 * stabsread.c (stab_reg_to_regnum): Update.
1251 (define_symbol): Update.
1252 (read_enum_type): Update.
1253 (common_block_end): Update.
1254 (cleanup_undefined_types_1): Update.
1255 (scan_file_globals): Update.
1256 * stack.c (print_frame_arg): Update.
1257 (print_frame_args): Update.
1258 (find_frame_funname): Update.
1259 (info_frame_command_core): Update.
1260 (iterate_over_block_locals): Update.
1261 (print_block_frame_labels): Update.
1262 (do_print_variable_and_value): Update.
1263 (iterate_over_block_arg_vars): Update.
1264 (return_command): Update.
1265 * symmisc.c (dump_symtab_1): Update.
1266 (print_symbol): Update.
1267 * symtab.c (eq_symbol_entry): Update.
1268 (symbol_cache_dump): Update.
1269 (lookup_language_this): Update.
1270 (find_pc_sect_line): Update.
1271 (skip_prologue_sal): Update.
1272 (symbol_search::compare_search_syms): Update.
1273 (treg_matches_sym_type_name): Update.
1274 (search_symbols): Update.
1275 (print_symbol_info): Update.
1276 (rbreak_command): Update.
1277 (completion_list_add_symbol): Update.
1278 (find_gnu_ifunc): Update.
1279 (get_symbol_address): Update.
1280 (search_module_symbols): Update.
1281 (info_module_subcommand): Update.
1282 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1283 (SYMBOL_LINKAGE_NAME): Remove.
1284 (SYMBOL_DEMANGLED_NAME): Remove.
1285 (SYMBOL_PRINT_NAME): Remove.
1286 (SYMBOL_SEARCH_NAME): Remove.
1287 * tracepoint.c (set_traceframe_context): Update.
1288 (validate_actionline): Update.
1289 (collection_list::collect_symbol): Update.
1290 (encode_actions_1): Update.
1291 (info_scope_command): Update.
1292 (print_one_static_tracepoint_marker): Update.
1293 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1294 * valops.c (address_of_variable): Update.
1295 (find_overload_match): Update.
1296 (find_oload_champ): Update.
1297
1298 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1299
1300 * ada-lang.c (ada_lookup_simple_minsym): Update.
1301 (ada_collect_symbol_completion_matches): Update.
1302 * ada-tasks.c (read_atcb): Update.
1303 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1304 (amd64_windows_skip_trampoline_code): Update.
1305 * arm-tdep.c (skip_prologue_function): Update.
1306 (arm_skip_stack_protector): Update.
1307 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1308 (arm_wince_skip_main_prologue): Update.
1309 * ax-gdb.c (gen_expr): Update.
1310 * block.c (call_site_for_pc): Update.
1311 * blockframe.c (find_pc_partial_function): Update.
1312 * breakpoint.c (set_breakpoint_location_function): Update.
1313 * btrace.c (ftrace_print_function_name): Update.
1314 (ftrace_function_switched): Update.
1315 * c-valprint.c (print_unpacked_pointer): Update.
1316 * coffread.c (coff_symfile_read): Update.
1317 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1318 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1319 * dwarf-index-write.c (write_psymbols): Update.
1320 * dwarf2loc.c (call_site_to_target_addr): Update.
1321 (func_verify_no_selftailcall): Update.
1322 (tailcall_dump): Update.
1323 (call_site_find_chain_1): Update.
1324 (dwarf_expr_reg_to_entry_parameter): Update.
1325 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1326 * eval.c (evaluate_funcall): Update.
1327 (evaluate_subexp_standard): Update.
1328 (evaluate_subexp_for_sizeof): Update.
1329 * expprint.c (print_subexp_standard): Update.
1330 (dump_subexp_body_standard): Update.
1331 * frame.c (get_prev_frame_always_1): Update.
1332 * frv-tdep.c (frv_skip_main_prologue): Update.
1333 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1334 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1335 (gnuv3_get_typename_from_type_info): Update.
1336 (gnuv3_skip_trampoline): Update.
1337 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1338 * i386-tdep.c (i386_skip_main_prologue): Update.
1339 (i386_pe_skip_trampoline_code): Update.
1340 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1341 * infcall.c (get_function_name): Update.
1342 * linespec.c (minsym_found): Update.
1343 * linux-fork.c (info_checkpoints_command): Update.
1344 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1345 (m32c_m16c_pointer_to_address): Update.
1346 * maint.c (maintenance_translate_address): Update.
1347 * minsyms.c (add_minsym_to_hash_table): Update.
1348 (add_minsym_to_demangled_hash_table): Update.
1349 (lookup_minimal_symbol_mangled): Update.
1350 (lookup_minimal_symbol_demangled): Update.
1351 (lookup_minimal_symbol_linkage): Update.
1352 (lookup_minimal_symbol_text): Update.
1353 (lookup_minimal_symbol_by_pc_name): Update.
1354 (minimal_symbol_is_less_than): Update.
1355 (compact_minimal_symbols): Update.
1356 (build_minimal_symbol_hash_tables): Update.
1357 (find_solib_trampoline_target): Update.
1358 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1359 (mips_skip_pic_trampoline_code): Update.
1360 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1361 * objc-lang.c (info_selectors_command): Update.
1362 (info_classes_command): Update.
1363 (find_methods): Update.
1364 (find_imps): Update.
1365 * p-valprint.c (pascal_val_print): Update.
1366 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1367 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1368 * printcmd.c (build_address_symbolic): Update.
1369 (info_symbol_command): Update.
1370 * psymtab.c (psymbol_name_matches): Update.
1371 (match_partial_symbol): Update.
1372 (lookup_partial_symbol): Update.
1373 (print_partial_symbols): Update.
1374 (sort_pst_symbols): Update.
1375 (maintenance_check_psymtabs): Update.
1376 * python/py-framefilter.c (py_print_frame): Update.
1377 * python/python.c (gdbpy_rbreak): Update.
1378 * record-btrace.c (btrace_get_bfun_name): Update.
1379 (btrace_call_history): Update.
1380 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1381 (rs6000_skip_trampoline_code): Update.
1382 * sol-thread.c (info_cb): Update.
1383 * stabsread.c (scan_file_globals): Update.
1384 * stack.c (find_frame_funname): Update.
1385 (info_frame_command_core): Update.
1386 * symmisc.c (dump_msymbols): Update.
1387 * symtab.c (symbol_natural_name): Rename to..,
1388 (general_symbol_info::natural_name): ...this.
1389 (symbol_demangled_name): Rename to...
1390 (general_symbol_info::demangled_name): ...this.
1391 (symbol_search_name): Rename to...
1392 (general_symbol_info::search_name): ...this.
1393 (symbol_matches_search_name): Update.
1394 (find_pc_sect_line): Update.
1395 (skip_prologue_sal): Update.
1396 (search_symbols): Update.
1397 (print_msymbol_info): Update.
1398 (rbreak_command): Update.
1399 (completion_list_add_msymbol): Update.
1400 (completion_list_objc_symbol): Update.
1401 (get_msymbol_address): Update.
1402 * symtab.h (struct general_symbol_info): Add member functions
1403 natural_name (), linkage_name (), print_name (), demangled_name (),
1404 and search_name ().
1405 (SYMBOL_NATURAL_NAME): Update.
1406 (symbol_natural_name): Move to a member function on general_symbol_info.
1407 (SYMBOL_DEMANGLED_NAME): Update.
1408 (symbol_demangled_name): Move to a member function on
1409 general_symbol_info.
1410 (SYMBOL_SEARCH_NAME): Update.
1411 (symbol_search_name): Move to a member function on general_symbol_info.
1412 (MSYMBOL_NATURAL_NAME): Remove.
1413 (MSYMBOL_LINKAGE_NAME): Remove.
1414 (MSYMBOL_PRINT_NAME): Remove.
1415 (MSYMBOL_DEMANGLED_NAME): Remove.
1416 (MSYMBOL_SEARCH_NAME): Remove.
1417 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1418
1419 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1420
1421 * symtab.c (create_demangled_names_hash): Use per_bfd->
1422 minimal_symbol_count for computing the initial size, if greater
1423 than our default size.
1424
1425 2019-11-22 Tom de Vries <tdevries@suse.de>
1426
1427 * contrib/words.sh: Improve words extraction.
1428
1429 2019-11-22 Tom de Vries <tdevries@suse.de>
1430
1431 * contrib/words.sh: Combine sed invocations.
1432
1433 2019-11-21 Christian Biesinger <cbiesinger@google.com>
1434
1435 * Makefile.in: Update.
1436 * demangle.c: Rename to...
1437 * gdb-demangle.c: ..this.
1438 (is_cplus_marker): Change return type to bool.
1439 (_initialize_demangler): Rename to...
1440 (_initialize_gdb_demangle): ...this.
1441 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1442 * symtab.h (demangle): Remove declaration; instead include
1443 gdb-demangle.h.
1444
1445 2019-11-21 Tom Tromey <tromey@adacore.com>
1446
1447 * gdbsupport/format.c (format_pieces): Parse %I64d.
1448 * unittests/format_pieces-selftests.c (test_windows_formats): New
1449 function.
1450 (run_tests): Call it.
1451
1452 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1453
1454 Byte reverse display of variables with DW_END_big, DW_END_little
1455 (DW_AT_endianity) dwarf attributes if different than the native
1456 byte order.
1457 * ada-lang.c (ada_value_binop):
1458 Use type_byte_order instead of gdbarch_byte_order.
1459 * ada-valprint.c (printstr):
1460 (ada_val_print_string):
1461 * ada-lang.c (value_pointer):
1462 (ada_value_binop):
1463 Use type_byte_order instead of gdbarch_byte_order.
1464 * c-lang.c (c_get_string):
1465 Use type_byte_order instead of gdbarch_byte_order.
1466 * c-valprint.c (c_val_print_array):
1467 Use type_byte_order instead of gdbarch_byte_order.
1468 * cp-valprint.c (cp_print_class_member):
1469 Use type_byte_order instead of gdbarch_byte_order.
1470 * dwarf2loc.c (rw_pieced_value):
1471 Use type_byte_order instead of gdbarch_byte_order.
1472 * dwarf2read.c (read_base_type): Handle DW_END_big,
1473 DW_END_little
1474 * f-lang.c (f_get_encoding):
1475 Use type_byte_order instead of gdbarch_byte_order.
1476 * findvar.c (default_read_var_value):
1477 Use type_byte_order instead of gdbarch_byte_order.
1478 * gdbtypes.c (check_types_equal):
1479 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1480 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1481 and TYPE_ENDIANITY_LITTLE if set.
1482 (type_byte_order): new function.
1483 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1484 (struct main_type) <flag_endianity_not_default>:
1485 New field.
1486 (type_byte_order): New function.
1487 * infcmd.c (default_print_one_register_info):
1488 Use type_byte_order instead of gdbarch_byte_order.
1489 * p-lang.c (pascal_printstr):
1490 Use type_byte_order instead of gdbarch_byte_order.
1491 * p-valprint.c (pascal_val_print):
1492 Use type_byte_order instead of gdbarch_byte_order.
1493 * printcmd.c (print_scalar_formatted):
1494 Use type_byte_order instead of gdbarch_byte_order.
1495 * solib-darwin.c (darwin_current_sos):
1496 Use type_byte_order instead of gdbarch_byte_order.
1497 * solib-svr4.c (solib_svr4_r_ldsomap):
1498 Use type_byte_order instead of gdbarch_byte_order.
1499 * stap-probe.c (stap_modify_semaphore):
1500 Use type_byte_order instead of gdbarch_byte_order.
1501 * target-float.c (target_float_same_format_p):
1502 Use type_byte_order instead of gdbarch_byte_order.
1503 * valarith.c (scalar_binop):
1504 (value_bit_index):
1505 Use type_byte_order instead of gdbarch_byte_order.
1506 * valops.c (value_cast):
1507 Use type_byte_order instead of gdbarch_byte_order.
1508 * valprint.c (generic_emit_char):
1509 (generic_printstr):
1510 (val_print_string):
1511 Use type_byte_order instead of gdbarch_byte_order.
1512 * value.c (unpack_long):
1513 (unpack_bits_as_long):
1514 (unpack_value_bitfield):
1515 (modify_field):
1516 (pack_long):
1517 (pack_unsigned_long):
1518 Use type_byte_order instead of gdbarch_byte_order.
1519 * findvar.c (unsigned_pointer_to_address):
1520 (signed_pointer_to_address):
1521 (unsigned_address_to_pointer):
1522 (address_to_signed_pointer):
1523 (default_read_var_value):
1524 (default_value_from_register):
1525 Use type_byte_order instead of gdbarch_byte_order.
1526 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1527 Use type_byte_order instead of gdbarch_byte_order.
1528 * riscv-tdep.c (riscv_print_one_register_info):
1529 Use type_byte_order instead of gdbarch_byte_order.
1530
1531 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1532
1533 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1534 (current_ui_gdb_stdin_ptr): Likewise.
1535 (current_ui_gdb_stderr_ptr): Likewise.
1536 (current_ui_gdb_stdlog_ptr): Likewise.
1537 (current_ui_current_uiout_ptr): Likewise.
1538 (gen_ret_current_ui_field_ptr): Remove.
1539
1540 2019-11-21 Tom de Vries <tdevries@suse.de>
1541
1542 PR gdb/24956
1543 * cli/cli-script.c (execute_control_command): Only switch to
1544 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1545
1546 2019-11-19 Tom Tromey <tom@tromey.com>
1547
1548 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1549 Now static. Change type of "name".
1550 (tui_set_win_height_command): Don't copy "arg".
1551 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1552 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1553
1554 2019-11-19 Ali Tamur <tamur@google.com>
1555
1556 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1557 "if (attr != nullptr)".
1558 (dwarf2_find_base_address): Likewise.
1559 (dwarf2_build_include_psymtabs): Likewise.
1560 (read_cutu_die_from_dwo): Likewise.
1561 (read_func_scope): Likewise.
1562 (read_call_site_scope): Likewise.
1563 (dwarf2_get_pc_bounds): Likewise.
1564 (dwarf2_record_block_ranges): Likewise.
1565 (dwarf2_add_field): Likewise.
1566 (dwarf2_add_member_fn): Likewise.
1567 (read_structure_type): Likewise.
1568 (read_enumeration_type): Likewise.
1569 (read_array_type): Likewise.
1570 (read_array_order): Likewise.
1571 (read_set_type): Likewise.
1572 (read_common_block): Likewise.
1573 (read_tag_reference_type): Likewise.
1574 (read_tag_string_type): Likewise.
1575 (read_subroutine_type): Likewise.
1576 (read_base_type): Likewise.
1577 (read_subrange_type): Likewise.
1578 (new_symbol): Likewise.
1579 (prepare_one_comp_unit): Likewise.
1580
1581 2019-11-19 Tom Tromey <tromey@adacore.com>
1582
1583 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1584 result in error when DebugActiveProcess fails.
1585
1586 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1587 Pedro Alves <palves@redhat.com>
1588
1589 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1590 * target.c (target_stack::push): Call 'unpush' if there's a
1591 target on top of the stack.
1592
1593 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1594
1595 * python/py-block.c (blpy_dealloc): Call tp_free.
1596 (blpy_block_syms_dealloc): Likewise.
1597 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1598 * python/py-inferior.c (infpy_dealloc): Likewise.
1599 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1600 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1601 * python/py-symbol.c (sympy_dealloc): Likewise.
1602 * python/py-symtab.c (stpy_dealloc): Likewise.
1603 * python/py-type.c (typy_iterator_dealloc): Likewise.
1604
1605 2019-11-18 Christian Biesinger <cbiesinger@google.com>
1606
1607 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1608 constructor instead of using a class initializer.
1609
1610 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1611
1612 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1613 * configure: Regenerate.
1614 * configure.ac: Don't source common.host.
1615 * gdbsupport/common.host: Remove.
1616 * gdbsupport/mingw-strerror.c: Remove.
1617 * gdbsupport/posix-strerror.c: Rename to...
1618 * gdbsupport/safe-strerror.c: ...this.
1619
1620 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1621
1622 * maint.c (scoped_command_stats::print_time): Use localtime_r
1623 instead of localtime (provided through gnulib if necessary).
1624 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1625 of ctime.
1626
1627 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1628
1629 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1630 avoid compile errors.
1631
1632 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1633
1634 * config.in: Regenerate.
1635 * configure: Regenerate.
1636 * gdbsupport/common.m4: No longer check for strerror_r.
1637 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1638 POSIX version of strerror_r, now that gnulib provides it if
1639 necessary.
1640
1641 2019-11-14 Christian Biesinger <cbiesinger@google.com>
1642
1643 * README (`configure' options): Update.
1644
1645 2019-11-14 Tom Tromey <tromey@adacore.com>
1646
1647 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1648 expected type for the RHS if the LHS is a convenience variable.
1649
1650 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1651
1652 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1653 Provide explicit default and copy constructor.
1654
1655 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1656
1657 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1658 only call Py_INCREF (newbp) in the bppy_pending_object case.
1659
1660 2019-11-13 Tom Tromey <tromey@adacore.com>
1661
1662 PR build/25182:
1663 * psympriv.h (partial_symbol): Remove static assert.
1664 * symtab.h (general_symbol_info, symbol): Remove static assert.
1665
1666 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1667
1668 * gdbsupport/format.c (format_pieces::format_pieces): Support
1669 printf 'z' size modifier.
1670 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1671 * printcmd.c (ui_printf): Handle size_t_arg.
1672 * ui-out.c (ui_out::vmessage): Likewise.
1673 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1674 function.
1675 (run_tests): Call test_format_int_sizes.
1676
1677 2019-11-12 Christian Biesinger <cbiesinger@google.com>
1678
1679 * ada-exp.y (write_ambiguous_var): Update.
1680 * buildsym.c (add_symbol_to_list): Update.
1681 * dwarf2read.c (read_variable): Update.
1682 (new_symbol): Update.
1683 * jit.c (finalize_symtab): Update.
1684 * language.c (language_alloc_type_symbol): Update.
1685 * symtab.c (fixup_symbol_section): Update.
1686 (initialize_objfile_symbol_1): Move code to...
1687 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1688 (allocate_symbol): Update.
1689 (allocate_template_symbol): Update.
1690 (get_symbol_address): Update.
1691 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1692 of having as a field, and add a constructor.
1693 (SYMBOL_VALUE): Update.
1694 (SYMBOL_VALUE_ADDRESS): Update.
1695 (SET_SYMBOL_VALUE_ADDRESS): Update.
1696 (SYMBOL_VALUE_BYTES): Update.
1697 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1698 (SYMBOL_BLOCK_VALUE): Update.
1699 (SYMBOL_VALUE_CHAIN): Update.
1700 (SYMBOL_LANGUAGE): Update.
1701 (SYMBOL_SECTION): Update.
1702 (SYMBOL_OBJ_SECTION): Update.
1703 (SYMBOL_SET_LANGUAGE): Update.
1704 (SYMBOL_SET_LINKAGE_NAME): Update.
1705 (SYMBOL_SET_NAMES): Update.
1706 (SYMBOL_NATURAL_NAME): Update.
1707 (SYMBOL_LINKAGE_NAME): Update.
1708 (SYMBOL_DEMANGLED_NAME): Update.
1709 (SYMBOL_SEARCH_NAME): Update.
1710 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1711 (struct symbol): Update.
1712 (struct template_symbol): Update.
1713 (struct rust_vtable_symbol): Update.
1714 * xcoffread.c (SYMBOL_DUP): Update.
1715
1716 2019-11-12 Tom Tromey <tom@tromey.com>
1717
1718 * tui/tui-layout.c (show_layout): Set current_layout.
1719 (show_source_disasm_command, show_data)
1720 (show_source_or_disasm_and_command): Don't set current_layout.
1721
1722 2019-11-12 Tom Tromey <tom@tromey.com>
1723
1724 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1725
1726 2019-11-12 Tom Tromey <tom@tromey.com>
1727
1728 * tui/tui-win.c (resize_message): New global.
1729 (show_tui_resize_message): New function.
1730 (tui_async_resize_screen): Print message if requested.
1731 (_initialize_tui_win): Add tui-resize-message setting.
1732 * NEWS: Add entry for new commands.
1733
1734 2019-11-11 Tom Tromey <tom@tromey.com>
1735
1736 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1737 functions.
1738
1739 2019-11-11 Christian Biesinger <cbiesinger@google.com>
1740
1741 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1742
1743 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1744
1745 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1746 function.
1747 * python/python-internal.h (gdbpy_lookup_static_symbols):
1748 Declare new function.
1749 * python/python.c (python_GdbMethods): Add
1750 gdb.lookup_static_symbols method.
1751 * NEWS: Mention gdb.lookup_static_symbols.
1752
1753 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1754
1755 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1756 static block of current object file first. Also fix typo in
1757 header comment.
1758
1759 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1760
1761 * stack.c (set_last_displayed_sal): Delete.
1762 (last_displayed_sal_valid): Delete.
1763 (last_displayed_pspace): Delete.
1764 (last_displayed_addr): Delete.
1765 (last_displayed_symtab): Delete.
1766 (last_displayed_line): Delete.
1767 (class last_displayed_symtab_info_type): New.
1768 (last_displayed_symtab_info): New static global variable.
1769 (print_frame_info): Call methods on last_displayed_symtab_info.
1770 (clear_last_displayed_sal): Update header comment, and make use of
1771 last_displayed_symtab_info.
1772 (last_displayed_sal_is_valid): Likewise.
1773 (get_last_displayed_pspace): Likewise.
1774 (get_last_displayed_addr): Likewise.
1775 (get_last_displayed_symtab): Likewise.
1776 (get_last_displayed_line): Likewise.
1777 (get_last_displayed_sal): Likewise.
1778 * stack.h (clear_last_displayed_sal): Update header comment.
1779 (last_displayed_sal_is_valid): Likewise.
1780 (get_last_displayed_pspace): Likewise.
1781 (get_last_displayed_addr): Likewise.
1782 (get_last_displayed_symtab): Likewise.
1783 (get_last_displayed_line): Likewise.
1784 (get_last_displayed_sal): Likewise.
1785
1786 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1787
1788 * stack.c (frame_show_address): Convert return type to bool.
1789 * stack.h (frame_show_address): Likewise, and update header
1790 comment.
1791
1792 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1793
1794 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1795 * unittests/vec-utils-selftests.c: New file.
1796 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1797
1798 2019-11-10 Tom Tromey <tom@tromey.com>
1799
1800 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1801 (tui_highlight_win): Likewise.
1802 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1803 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1804 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1805 Don't set can_highlight.
1806
1807 2019-11-10 Tom Tromey <tom@tromey.com>
1808
1809 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1810 Remove unused declaration.
1811
1812 2019-11-08 Tom Tromey <tromey@adacore.com>
1813
1814 * top.c (read_command_file): Update.
1815 (command_line_input): Make return type const.
1816 * python/py-gdb-readline.c: Update.
1817 * linespec.c (decode_line_2): Update.
1818 * defs.h (command_line_input): Make return type const.
1819 * cli/cli-script.c (read_next_line): Make return type const.
1820 * ada-lang.c (get_selections): Update.
1821
1822 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1823
1824 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1825 * mi/mi-main.c (output_cores): Likewise.
1826 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1827 (linux_xfer_osdata_modules): Likewise.
1828 * remote.c (register_remote_support_xml): Likewise.
1829 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1830 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1831
1832 2019-11-06 Tom Tromey <tom@tromey.com>
1833
1834 * tui/tui-interp.c: Don't include readline.h.
1835 * tui/tui-hooks.c: Don't include readline.h.
1836 * symmisc.c: Include tilde.h, not readline.h.
1837 * symfile.c: Include tilde.h, not readline.h.
1838 * source.c: Include tilde.h, not readline.h.
1839 * solib.c: Include tilde.h, not readline.h.
1840 * psymtab.c: Include tilde.h, not readline.h.
1841 * exec.c: Include tilde.h, not readline.h.
1842 * corelow.c: Include tilde.h, not readline.h.
1843 * cli/cli-dump.c: Include tilde.h, not readline.h.
1844 * cli/cli-cmds.c: Don't include readline.h.
1845
1846 2019-11-05 Tom Tromey <tom@tromey.com>
1847
1848 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1849 (tui_disassemble): Set addr_size.
1850 (tui_disasm_window::set_contents): Use addr_size.
1851
1852 2019-11-05 Tom Tromey <tom@tromey.com>
1853
1854 * rust-lang.c (rust_language_defn): Update.
1855 * python/py-value.c (valpy_string): Call c_get_string.
1856 * p-lang.c (pascal_language_defn): Update.
1857 * opencl-lang.c (opencl_language_defn): Update.
1858 * objc-lang.c (objc_language_defn): Update.
1859 * m2-lang.c (m2_language_defn): Update.
1860 * language.c (unknown_language_defn, auto_language_defn): Update.
1861 (default_get_string): Remove.
1862 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1863 * go-lang.c (go_language_defn): Update.
1864 * f-lang.c (f_language_defn): Update.
1865 * d-lang.c (d_language_defn): Update.
1866 * c-lang.c (c_language_defn, cplus_language_defn)
1867 (asm_language_defn, minimal_language_defn): Update.
1868 * ada-lang.c (ada_language_defn): Update.
1869 * language.h (struct language_defn) <la_get_string>: Remove.
1870 (LA_GET_STRING): Remove.
1871 (default_get_string): Don't declare.
1872
1873 2019-11-05 Tom Tromey <tom@tromey.com>
1874
1875 * tui/tui-source.h (struct tui_source_window): Inline
1876 constructor. Remove destructor.
1877 <style_changed, m_observable>: Move to superclass.
1878 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1879 (struct tui_source_window_base): Move private members to end.
1880 <style_changed, m_observable>: Move from tui_source_window.
1881 * tui/tui-winsource.c (tui_copy_source_line): Move from
1882 tui-source.c. Rename from copy_source_line. Add special handling
1883 for negative line number.
1884 (tui_source_window_base::style_changed): Move from
1885 tui_source_window.
1886 (tui_source_window_base): Register observer.
1887 (~tui_source_window_base): New.
1888 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1889 rename.
1890 (tui_source_window::set_contents): Use tui_copy_source_line.
1891 (tui_source_window::tui_source_window): Move to tui-source.h.
1892 (tui_source_window::~tui_source_window): Remove.
1893 (tui_source_window::style_changed): Move to superclass.
1894 * tui/tui-disasm.c (tui_disassemble): Create string file with
1895 styling, when possible. Add "addr_size" parameter.
1896 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1897 Don't compute maximum size.
1898 (len_without_escapes): New function
1899
1900 2019-11-05 Tom Tromey <tom@tromey.com>
1901
1902 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1903 std::string.
1904 * tui/tui-winsource.c (tui_show_source_line): Update.
1905 * tui/tui-source.c (tui_source_window::set_contents): Update.
1906 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1907
1908 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1909
1910 * symtab.h (gdb_static_assert): Put && operator at the beginning
1911 of the line instead of the end.
1912
1913 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1914
1915 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1916 and sizeof (symbol).
1917 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1918
1919 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1920
1921 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1922 * configure.host: Mark *-*-solaris2.10* obsolete.
1923 * configure.tgt: Mark Solaris < 11 obsolete.
1924 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1925 Update target triplet.
1926
1927 2019-11-01 Tom Tromey <tromey@adacore.com>
1928
1929 * utils.c (print_sys_errmsg): Simplify.
1930
1931 2019-11-01 Tom Tromey <tromey@adacore.com>
1932
1933 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1934
1935 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1936
1937 * configure: Regenerate.
1938 * configure.ac: Remove check for strerror_r.
1939 * gdbsupport/common.m4: Check for strerror_r.
1940
1941 2019-11-01 Luis Machado <luis.machado@linaro.org>
1942
1943 PR gdb/25124
1944
1945 * arm-tdep.c (arm_per_objfile): Rename to ...
1946 (arm_per_bfd): ... this.
1947 (arm_objfile_data_key): Rename to ...
1948 (arm_bfd_data_key): ... this.
1949 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1950 data.
1951 (arm_record_special_symbol): Likewise.
1952
1953 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1954
1955 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1956 end.
1957 * c-typeprint.c (c_print_typedef): Likewise.
1958 * f-typeprint.c (f_print_typedef): Likewise.
1959 * m2-typeprint.c (m2_print_typedef): Likewise.
1960 * p-typeprint.c (pascal_print_typedef): Likewise.
1961 * rust-lang.c (rust_print_typedef): Likewise.
1962 * symtab.c (print_symbol_info): Print a newline after calling
1963 typedef_print.
1964
1965 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1966
1967 * symtab.c (info_module_cmdlist): New variable.
1968 (info_module_command): New function.
1969 (search_module_symbols): New function.
1970 (info_module_subcommand): New function.
1971 (struct info_modules_var_func_options): New struct.
1972 (info_modules_var_func_options_defs): New variable.
1973 (make_info_modules_var_func_options_def_group): New function.
1974 (info_module_functions_command): New function.
1975 (info_module_variables_command): New function.
1976 (info_module_var_func_command_completer): New function.
1977 (_initialize_symtab): Register new 'info module functions' and
1978 'info module variables' commands.
1979 * symtab.h (typedef symbol_search_in_module): New typedef.
1980 (search_module_symbols): Declare new function.
1981 * NEWS: Mention new commands.
1982
1983 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1984
1985 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1986 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1987 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1988 MODULES_DOMAIN.
1989 (scan_partial_symbols): Only create partial module symbols for non
1990 declarations.
1991 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1992 and MODULES_DOMAIN.
1993 * symtab.c (search_domain_name): Likewise.
1994 (search_symbols): Likewise.
1995 (print_symbol_info): Likewise.
1996 (symtab_symbol_info): Likewise.
1997 (info_modules_command): New function.
1998 (_initialize_symtab): Register 'info modules' command.
1999 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2000 * NEWS: Mention new 'info modules' command.
2001
2002 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2003
2004 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2005 and $_gdb_maint_setting_str.
2006
2007 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2008
2009 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2010 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2011 (str_value_from_setting, gdb_setting_str_internal_fn)
2012 (gdb_maint_setting_str_internal_fn): New functions.
2013 (_initialize_cli_cmds): Define the new convenience functions.
2014 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2015 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2016
2017 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2018
2019 * agent.c (set_can_use_agent): When the setting is turned on,
2020 look up agent symbols if we don't have them yet.
2021 (agent_new_objfile): Don't look up agent symbols when the agent
2022 setting is off.
2023
2024 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2025
2026 * config.in: Regenerate.
2027
2028 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2029
2030 * configure: Regenerate.
2031 * configure.ac: Check for strerror_r.
2032 * gdbsupport/common-utils.h (safe_strerror): Change return value
2033 to const char * and document that this function is now threadsafe.
2034 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2035 thread_local and call strerror_r, if available.
2036 * utils.c (perror_string): Update.
2037 (print_sys_errmsg): Update.
2038
2039 2019-10-31 Luis Machado <luis.machado@linaro.org>
2040
2041 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2042 objfile_key.
2043 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2044 objfile to fetch per-bfd data.
2045 (arm_find_exidx_entry): Likewise.
2046
2047 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2048
2049 * gdbsupport/agent.c (debug_agent): Change type to bool.
2050 (use_agent): Likewise.
2051 (all_agent_symbols_look_up): Likewise.
2052 (agent_loaded_p): Change return value to bool.
2053 (agent_look_up_symbols): Update.
2054 (agent_capability_check): Change return value to bool.
2055 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2056 (debug_agent): Change type to bool.
2057 (use_agent): Likewise.
2058 (agent_capability_check): Change return value to bool.
2059
2060 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2061
2062 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2063 (build_minimal_symbol_hash_tables): Code to clear the table moved
2064 to clear_minimal_symbol_hash_tables.
2065 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2066 when needed.
2067
2068 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2069
2070 * infcmd.c: Remove includes.
2071 * infrun.c: Remove includes.
2072
2073 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2074
2075 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2076 (grow_vect): Remove declaration.
2077 (ada_type_of_array): Remove declaration.
2078 (ada_update_initial_language): Remove declaration.
2079 (ada_fold_name): Remove declaration.
2080 (ada_fill_in_ada_prototype): Remove declaration.
2081 (user_select_syms): Remove declaration.
2082 (get_selections): Remove declaration.
2083 (ada_tag_type): Remove declaration.
2084 (ada_value_tag): Remove declaration.
2085 (ada_is_others_clause): Remove declaration.
2086 (ada_in_variant): Remove declaration.
2087 (ada_value_struct_elt): Remove declaration.
2088 (ada_attribute_name): Remove declaration.
2089 (ada_system_address_type): Remove declaration.
2090 * ada-lang.c (ada_watch_location_expression): Make static.
2091 (GROW_VECT): Move here from ada-lang.h.
2092 (grow_vect): Make static.
2093 (ada_update_initial_language): Make static.
2094 (ada_fold_name): Make static.
2095 (ada_type_of_array): Make static.
2096 (encoded_ordered_before): Move up.
2097 (sort_choices): Move up.
2098 (print_signatures): Move up.
2099 (ada_print_symbol_signature): Move up.
2100 (get_selections): Move up and make static.
2101 (user_select_syms): Move up and make static.
2102 (ada_value_struct_elt): Move up and make static.
2103 (ada_tag_type): Make static.
2104 (ada_value_tag): Make static.
2105 (ada_is_others_clause): Make static.
2106 (ada_in_variant): Make static.
2107 (ada_attribute_name): Make static.
2108
2109 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2110
2111 * ada-lang.c: Remove includes.
2112 * ada-typeprint.c: Remove includes.
2113 * ada-valprint.c: Remove includes.
2114
2115 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2116
2117 * addrmap.c: Add static assertions of type size, moved from
2118 _initialize_addrmap.
2119 (_initialize_addrmap): Remove.
2120
2121 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2122
2123 * coffread.c (record_minimal_symbol): Update.
2124 (process_coff_symbol): Update.
2125 * dbxread.c (read_dbx_symtab): Update.
2126 * dwarf2read.c (add_partial_symbol): Update.
2127 (fixup_go_packaging): Update.
2128 (load_partial_dies): Update.
2129 (new_symbol): Update.
2130 * elfread.c (record_minimal_symbol): Change signature to use
2131 gdb::string_view instead of name+len.
2132 (elf_symtab_read): Update.
2133 (elf_rel_plt_read): Update.
2134 * mdebugread.c (parse_partial_symbols): Update.
2135 (handle_psymbol_enumerators): Update.
2136 (new_symbol): Update.
2137 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2138 to use gdb::string_view instead of name+len.
2139 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2140 * psympriv.h (add_psymbol_to_list): Likewise.
2141 * psymtab.c (add_psymbol_to_bcache): Likewise.
2142 (add_psymbol_to_list): Likewise.
2143 * stabsread.c (define_symbol): Update.
2144 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2145 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2146 (symbol_set_names): Likewise.
2147 * xcoffread.c (scan_xcoff_symtab): Update.
2148
2149 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2150
2151 * symtab.h (symbol_set_names): Document that copy_name must be
2152 set to true for non-nullterminated strings.
2153 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2154 linkage_name if the entry was not found and we need to demangle.
2155
2156 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2157
2158 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2159 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2160 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2161 * gdbsupport/gdb_binary_search.h: New file.
2162
2163 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2164
2165 * NEWS: Mention new --with-system-gdbinit-dir option.
2166 * config.in: Regenerate.
2167 * configure: Regenerate.
2168 * configure.ac: Add new option --with-system-gdbinit-dir.
2169 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2170 for a ".gdb" suffix.
2171 * main.c (get_init_files): Change system_gdbinit argument to
2172 a vector and return the files in SYSTEM_GDBINIT_DIR in
2173 addition to SYSTEM_GDBINIT.
2174 (captured_main_1): Update.
2175 (print_gdb_help): Update.
2176 * top.c (print_gdb_configuration): Also print the value of
2177 SYSTEM_GDBINIT_DIR.
2178
2179 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2180
2181 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2182 that takes gdb::string_view arguments.
2183
2184 2019-10-26 Tom de Vries <tdevries@suse.de>
2185
2186 * aarch64-linux-tdep.c: Fix typos in comments.
2187 * aarch64-tdep.c: Same.
2188 * ada-lang.c: Same.
2189 * amd64-nat.c: Same.
2190 * arc-tdep.c: Same.
2191 * arch/aarch64-insn.c: Same.
2192 * block.c: Same.
2193 * breakpoint.h: Same.
2194 * btrace.h: Same.
2195 * c-varobj.c: Same.
2196 * cli/cli-decode.c: Same.
2197 * cli/cli-script.c: Same.
2198 * cli/cli-utils.h: Same.
2199 * coff-pe-read.c: Same.
2200 * coffread.c: Same.
2201 * compile/compile-cplus-symbols.c: Same.
2202 * compile/compile-object-run.c: Same.
2203 * completer.c: Same.
2204 * corelow.c: Same.
2205 * cp-support.c: Same.
2206 * demangle.c: Same.
2207 * dwarf-index-write.c: Same.
2208 * dwarf2-frame.c: Same.
2209 * dwarf2-frame.h: Same.
2210 * eval.c: Same.
2211 * frame-base.h: Same.
2212 * frame.h: Same.
2213 * gdbcmd.h: Same.
2214 * gdbtypes.h: Same.
2215 * gnu-nat.c: Same.
2216 * guile/scm-objfile.c: Same.
2217 * i386-tdep.c: Same.
2218 * i386-tdep.h: Same.
2219 * infcall.c: Same.
2220 * infcall.h: Same.
2221 * linux-nat.c: Same.
2222 * m68k-tdep.c: Same.
2223 * macroexp.c: Same.
2224 * memattr.c: Same.
2225 * mi/mi-cmd-disas.c: Same.
2226 * mi/mi-getopt.h: Same.
2227 * mi/mi-main.c: Same.
2228 * minsyms.c: Same.
2229 * nat/aarch64-sve-linux-sigcontext.h: Same.
2230 * objfiles.h: Same.
2231 * ppc-linux-nat.c: Same.
2232 * ppc-linux-tdep.c: Same.
2233 * ppc-tdep.h: Same.
2234 * progspace.h: Same.
2235 * prologue-value.h: Same.
2236 * python/py-evtregistry.c: Same.
2237 * python/py-instruction.h: Same.
2238 * record-btrace.c: Same.
2239 * record-full.c: Same.
2240 * remote.c: Same.
2241 * rs6000-tdep.c: Same.
2242 * ser-tcp.c: Same.
2243 * sol-thread.c: Same.
2244 * sparc-sol2-tdep.c: Same.
2245 * sparc64-tdep.c: Same.
2246 * stabsread.c: Same.
2247 * symfile.c: Same.
2248 * symtab.h: Same.
2249 * target.c: Same.
2250 * tracepoint.c: Same.
2251 * tui/tui-data.h: Same.
2252 * tui/tui-io.c: Same.
2253 * tui/tui-win.c: Same.
2254 * tui/tui.c: Same.
2255 * unittests/rsp-low-selftests.c: Same.
2256 * user-regs.h: Same.
2257 * utils.c: Same.
2258 * utils.h: Same.
2259 * valarith.c: Same.
2260 * valops.c: Same.
2261 * valprint.c: Same.
2262 * valprint.h: Same.
2263 * value.c: Same.
2264 * value.h: Same.
2265 * varobj.c: Same.
2266 * x86-nat.h: Same.
2267 * xtensa-tdep.c: Same.
2268
2269 2019-10-25 Ali Tamur <tamur@google.com>
2270
2271 * charset.c (find_charset_names): Reflect API change.
2272
2273 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2274
2275 * symtab.c (struct demangled_name_entry): Change demangled name
2276 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2277 part of the struct anymore.
2278 (symbol_set_names): No longer obstack allocate + copy the demangled
2279 name, just store the allocated name from bfd.
2280
2281 2019-10-25 Tom Tromey <tromey@adacore.com>
2282
2283 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2284 (bsearch_cie_cmp, add_cie): Remove.
2285 (find_cie): Reimplement.
2286 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2287 (dwarf2_build_frame_info): Update.
2288
2289 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2290
2291 PR gdb/25126
2292 * symfile.c (reread_symbols): Call forget_cached_source_info to
2293 clear the stale source cache.
2294
2295 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2296
2297 * configure: Regenerate.
2298 * configure.ac: Remove code that sets python_has_threads.
2299
2300 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2301
2302 * config.in: Regenerate.
2303 * configure: Regenerate.
2304 * configure.ac: Remove the code that uses sed to get the python
2305 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2306
2307 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2308
2309 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2310 error paths.
2311
2312 2019-10-23 Tom Tromey <tom@tromey.com>
2313
2314 * arc-tdep.c: Remove ".." from include.
2315 * frv-tdep.c: Remove ".." from include.
2316 * lm32-tdep.c: Remove ".." from include.
2317 * microblaze-tdep.c: Remove ".." from include.
2318 * or1k-tdep.h: Remove ".." from include.
2319 * s12z-tdep.c: Remove ".." from include.
2320 * Makefile.in (OPCODES_CFLAGS): Add comment.
2321 (TOP_CFLAGS): New variable.
2322 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2323
2324 2019-10-23 Tom Tromey <tom@tromey.com>
2325
2326 * Makefile.in (READLINE_DIR): Update.
2327
2328 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2329
2330 * infcall.c (call_function_by_hand_dummy): Fix the function
2331 comment. And extract out a code section into...
2332 (reserve_stack_space): ...this new function.
2333
2334 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2335
2336 * infcall.c (value_arg_coerce): Remove an unused parameter.
2337 (call_function_by_hand_dummy): Update the call to
2338 'value_arg_coerce'.
2339
2340 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2341
2342 * infcall.c (call_function_by_hand_dummy): Refactor.
2343
2344 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2345
2346 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2347
2348 2019-10-23 Tom Tromey <tom@tromey.com>
2349
2350 * configure: Rebuild.
2351 * configure.ac: Don't check for sigprocmask.
2352 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2353
2354 2019-10-23 Tom Tromey <tom@tromey.com>
2355
2356 * configure: Rebuild.
2357 * acinclude.m4: Use m4_include, not sinclude.
2358
2359 2019-10-23 Tom de Vries <tdevries@suse.de>
2360
2361 PR breakpoints/24687
2362 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2363
2364 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2365
2366 * symtab.c (struct demangled_name_entry) <language>: Change from
2367 bitfield to regular variable.
2368
2369 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2370
2371 * symtab.c (struct demangled_name_entry): Add a constructor.
2372 (free_demangled_name_entry): New function to call the destructor
2373 for demangled_name_entry.
2374 (create_demangled_names_hash): Pass free_demangled_name_entry to
2375 htab_create_alloc.
2376 (symbol_set_names): Call placement new for demangled_name_entry.
2377 * utils.c: No longer include xxhash.h here, now that fast_hash
2378 is inlined in the header.
2379 * utils.h: Instead, include it here.
2380
2381 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2382
2383 * Makefile.in: Link with libxxhash.
2384 * config.in: Regenerate.
2385 * configure: Regenerate.
2386 * configure.ac: Search for libxxhash.
2387 * utils.c (fast_hash): Use xxhash if present.
2388
2389 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2390
2391 * utils.h (fast_hash): New function.
2392 * symtab.c (hash_demangled_name_entry): Call new function
2393 fast_hash.
2394
2395 2019-10-22 Christian Biesinger <cbiesinger@google.com>
2396
2397 * symtab.c (struct demangled_name_entry): Change type of mangled
2398 to gdb::string_view. Also adds a constructor that takes the
2399 mangled name.
2400 (hash_demangled_name_entry): Update.
2401 (eq_demangled_name_entry): Update.
2402 (free_demangled_name_entry): New function to call the destructor
2403 now that this is not a POD anymore.
2404 (create_demangled_names_hash): Pass free_demangled_name_entry to
2405 htab_create_alloc.
2406 (symbol_set_names): Update.
2407
2408 2019-10-21 Ali Tamur <tamu@google.com>
2409
2410 * dwarf2read.c (dir_index): Change type.
2411 (file_name_index): Likewise.
2412 (line_header::include_dir_at): Change comment and implementation on
2413 whether it is DWARF 5.
2414 (line_header::is_valid_file_index): New function.
2415 (line_header::file_name_at): Change comment and implementation on
2416 whether it is DWARF 5.
2417 (line_header::file_names): Change to private field renamed as
2418 m_file_names and introduce a new accessor method.
2419 (line_header::file_names_size): New method.
2420 (line_header::include_dirs): Change to private field and rename as
2421 m_include_dirs.
2422 (dw2_get_file_names_reader): Define local var at a smaller scope and
2423 reflect API change.
2424 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2425 (process_structure_scope): Likewise.
2426 (line_header::add_include_dir): Change message and reflect renaming.
2427 (line_header::add_file_name): Likewise.
2428 (read_formatted_entries): Handle DW_FORM_data16.
2429 (dwarf_decode_line_header): Fix line header length calculation.
2430 (psymtab_include_file_name): Change comment and API.
2431 (lnp_state_machine::m_file): Update comment and reflect type change.
2432 (lnp_state_machine::record_line): Reflect type change.
2433 (dwarf_decode_lines): Reflect API change.
2434 (file_file_name): Likewise.
2435 (file_full_name): Likewise.
2436
2437 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2438
2439 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2440
2441 2019-10-21 Tom Tromey <tom@tromey.com>
2442
2443 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2444
2445 2019-10-21 Tom Tromey <tom@tromey.com>
2446
2447 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2448 NM_H. Use AC_CONFIG_LINKS.
2449 * configure: Rebuild.
2450 * Makefile.in (NM_H): New variable.
2451 (generated_files): Add NM_H. Remove gcore.
2452 (nm.h, stamp-nmh): New targets.
2453
2454 2019-10-20 Tom Tromey <tom@tromey.com>
2455
2456 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2457 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2458 obsolete comment.
2459 (put_objfile_before): Now static.
2460
2461 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2462
2463 * gdbsupport/common-utils.h (startswith): Change return type to
2464 bool.
2465
2466 2019-10-19 Christian Biesinger <cbiesinger@google.com>
2467
2468 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2469 * breakpoint.c (bp_locations_compare): Rename to...
2470 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2471 (update_global_location_list): Use std::sort instead of qsort.
2472 * buildsym.c (compare_line_numbers): Rename to...
2473 (lte_is_less_than): ...this, and change to std::sort semantics.
2474 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2475 instead of qsort.
2476 * disasm.c (compare_lines): Rename to...
2477 (line_is_less_than): ...this, and change to std::sort semantics.
2478 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2479 of qsort.
2480 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2481 (fde_is_less_than): ...this, and change to std::sort semantics.
2482 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2483 * mdebugread.c (compare_blocks):
2484 (block_is_less_than): ...this, and change to std::sort semantics.
2485 (sort_blocks): Call std::sort instead of qsort.
2486 * objfiles.c (qsort_cmp): Rename to...
2487 (sort_cmp): ...this, and change to std::sort semantics.
2488 (update_section_map): Call std::sort instead of qsort.
2489 * remote.c (compare_pnums): Remove.
2490 (map_regcache_remote_table): Call std::sort instead of qsort.
2491 * utils.c (compare_positive_ints): Remove.
2492 * utils.h (compare_positive_ints): Remove.
2493 * xcoffread.c (compare_lte): Remove.
2494 (arrange_linetable): Call std::sort instead of qsort.
2495
2496 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2497
2498 * symfile.c (init_entry_point_info): Fix typo.
2499 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2500
2501 2019-10-18 Tom de Vries <tdevries@suse.de>
2502
2503 * aarch64-tdep.c: Fix typos in comments.
2504 * ada-lang.c: Same.
2505 * ada-tasks.c: Same.
2506 * alpha-tdep.c: Same.
2507 * alpha-tdep.h: Same.
2508 * amd64-nat.c: Same.
2509 * amd64-windows-tdep.c: Same.
2510 * arc-tdep.c: Same.
2511 * arc-tdep.h: Same.
2512 * arch-utils.c: Same.
2513 * arm-nbsd-tdep.c: Same.
2514 * arm-tdep.c: Same.
2515 * ax-gdb.c: Same.
2516 * blockframe.c: Same.
2517 * btrace.c: Same.
2518 * c-varobj.c: Same.
2519 * coff-pe-read.c: Same.
2520 * coffread.c: Same.
2521 * cris-tdep.c: Same.
2522 * darwin-nat.c: Same.
2523 * dbxread.c: Same.
2524 * dcache.c: Same.
2525 * disasm.c: Same.
2526 * dtrace-probe.c: Same.
2527 * dwarf-index-write.c: Same.
2528 * dwarf2-frame-tailcall.c: Same.
2529 * dwarf2-frame.c: Same.
2530 * dwarf2read.c: Same.
2531 * eval.c: Same.
2532 * exceptions.c: Same.
2533 * fbsd-tdep.c: Same.
2534 * findvar.c: Same.
2535 * frame.c: Same.
2536 * frv-tdep.c: Same.
2537 * gnu-v3-abi.c: Same.
2538 * go32-nat.c: Same.
2539 * h8300-tdep.c: Same.
2540 * hppa-tdep.c: Same.
2541 * i386-linux-tdep.c: Same.
2542 * i386-tdep.c: Same.
2543 * ia64-libunwind-tdep.c: Same.
2544 * ia64-tdep.c: Same.
2545 * infcmd.c: Same.
2546 * infrun.c: Same.
2547 * linespec.c: Same.
2548 * linux-nat.c: Same.
2549 * linux-thread-db.c: Same.
2550 * machoread.c: Same.
2551 * mdebugread.c: Same.
2552 * mep-tdep.c: Same.
2553 * mn10300-tdep.c: Same.
2554 * namespace.c: Same.
2555 * objfiles.c: Same.
2556 * opencl-lang.c: Same.
2557 * or1k-tdep.c: Same.
2558 * osabi.c: Same.
2559 * ppc-linux-nat.c: Same.
2560 * ppc-linux-tdep.c: Same.
2561 * ppc-sysv-tdep.c: Same.
2562 * printcmd.c: Same.
2563 * procfs.c: Same.
2564 * record-btrace.c: Same.
2565 * record-full.c: Same.
2566 * remote-fileio.c: Same.
2567 * remote.c: Same.
2568 * rs6000-tdep.c: Same.
2569 * s12z-tdep.c: Same.
2570 * score-tdep.c: Same.
2571 * ser-base.c: Same.
2572 * ser-go32.c: Same.
2573 * skip.c: Same.
2574 * sol-thread.c: Same.
2575 * solib-svr4.c: Same.
2576 * solib.c: Same.
2577 * source.c: Same.
2578 * sparc-nat.c: Same.
2579 * sparc-sol2-tdep.c: Same.
2580 * sparc-tdep.c: Same.
2581 * sparc64-tdep.c: Same.
2582 * stabsread.c: Same.
2583 * stack.c: Same.
2584 * symfile.c: Same.
2585 * symtab.c: Same.
2586 * target-descriptions.c: Same.
2587 * target-float.c: Same.
2588 * thread.c: Same.
2589 * utils.c: Same.
2590 * valops.c: Same.
2591 * valprint.c: Same.
2592 * value.c: Same.
2593 * varobj.c: Same.
2594 * windows-nat.c: Same.
2595 * xcoffread.c: Same.
2596 * xstormy16-tdep.c: Same.
2597 * xtensa-tdep.c: Same.
2598
2599 2019-10-17 Tom Tromey <tromey@adacore.com>
2600
2601 * configure: Rebuild.
2602 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2603 in AC_CONFIG_FILES invocation.
2604 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2605 new-style config.status invocation.
2606
2607 2019-10-17 Tom de Vries <tdevries@suse.de>
2608
2609 * arm-nbsd-nat.c: Fix typos in comments.
2610 * arm-tdep.c: Same.
2611 * darwin-nat-info.c: Same.
2612 * dwarf2read.c: Same.
2613 * elfread.c: Same.
2614 * event-top.c: Same.
2615 * findvar.c: Same.
2616 * gdbtypes.c: Same.
2617 * hppa-tdep.c: Same.
2618 * i386-tdep.c: Same.
2619 * jit.c: Same.
2620 * main.c: Same.
2621 * mdebugread.c: Same.
2622 * moxie-tdep.c: Same.
2623 * nto-procfs.c: Same.
2624 * osabi.c: Same.
2625 * ppc-linux-tdep.c: Same.
2626 * remote.c: Same.
2627 * riscv-tdep.c: Same.
2628 * s390-tdep.c: Same.
2629 * sh-tdep.c: Same.
2630 * sparc-linux-tdep.c: Same.
2631 * sparc-nat.c: Same.
2632 * stack.c: Same.
2633 * target-descriptions.c: Same.
2634 * top.c: Same.
2635 * varobj.c: Same.
2636
2637 2019-10-16 Tom Tromey <tom@tromey.com>
2638
2639 * objfiles.h (struct objfile) <original_name>: Now const.
2640
2641 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2642
2643 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2644 pass on to sigsetjmp's second argument.
2645 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2646
2647 2019-10-16 Keith Seitz <keiths@redhat.com>
2648
2649 PR gdb/23567
2650 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2651 sections whose size is greater than the file size.
2652
2653 2019-10-16 Jim Wilson <jimw@sifive.com>
2654
2655 * riscv-tdep.c (riscv_gcc_target_options): New.
2656 (riscv_gnu_triplet_regexp): New.
2657 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2658 set_gdbarch_gnu_triplet_regexp.
2659
2660 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2661
2662 * Makefile.in: Add xml-builtin.h.
2663 * features/feature_to_c.sh: Add an include for xml-builtin.h
2664 to ensure that the compiler checks that the types match.
2665 * xml-builtin.h: New file.
2666 * xml-support.c (fetch_xml_builtin): Add missing const.
2667 * xml-support.h: Remove declaration of xml_builtins.
2668
2669 2019-10-16 Tom de Vries <tdevries@suse.de>
2670
2671 PR tdep/25096
2672 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2673 (amd64_classify_aggregate): ... here.
2674 (amd64_classify_aggregate_field): Handled fiels of nested structs
2675 recursively.
2676
2677 2019-10-16 Tom de Vries <tdevries@suse.de>
2678
2679 PR tdep/24104
2680 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2681 that handles 'theclass'.
2682
2683 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2684
2685 * linespec.c (decode_digits_ordinary): Update comment.
2686 * make-target-delegates: No longer need to handle VEC case.
2687 * memrange.c (normalize_mem_ranges): Update comment.
2688 * namespace.c (add_using_directive): Update comment.
2689 * objc-lang.c (uniquify_strings): Update comment.
2690 * ppc-linux-nat.c (struct thread_points): Update comment.
2691 * probe.h (find_probes_in_objfile): Update comment.
2692 * target.h (enum flash_preserve_mode): Update comment.
2693 * varobj.c (varobj_restrict_range): Update comment.
2694 * varobj.h (varobj_list_children): Update comment.
2695
2696 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2697
2698 * Makefile.in: Remove references to vec.h and vec.c.
2699 * aarch64-tdep.c: No longer include vec.h.
2700 * ada-lang.c: Likewise.
2701 * ada-lang.h: Likewise.
2702 * arm-tdep.c: Likewise.
2703 * ax.h: Likewise.
2704 * breakpoint.h: Likewise.
2705 * charset.c: Likewise.
2706 * cp-support.h: Likewise.
2707 * dtrace-probe.c: Likewise.
2708 * dwarf2read.c: Likewise.
2709 * extension.h: Likewise.
2710 * gdb_bfd.c: Likewise.
2711 * gdbsupport/gdb_vecs.h: Likewise.
2712 * gdbsupport/vec.c: Remove.
2713 * gdbsupport/vec.h: Remove.
2714 * gdbthread.h: Likewise.
2715 * guile/scm-type.c: Likewise.
2716 * inline-frame.c: Likewise.
2717 * machoread.c: Likewise.
2718 * memattr.c: Likewise.
2719 * memrange.h: Likewise.
2720 * namespace.h: Likewise.
2721 * nat/linux-btrace.h: Likewise.
2722 * osdata.c: Likewise.
2723 * parser-defs.h: Likewise.
2724 * progspace.h: Likewise.
2725 * python/py-type.c: Likewise.
2726 * record-btrace.c: Likewise.
2727 * rust-exp.y: Likewise.
2728 * solib-target.c: Likewise.
2729 * stap-probe.c: Likewise.
2730 * target-descriptions.c: Likewise.
2731 * target-memory.c: Likewise.
2732 * target.h: Likewise.
2733 * varobj.c: Likewise.
2734 * varobj.h: Likewise.
2735 * xml-support.h: Likewise.
2736
2737 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2738
2739 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2740 Update for new std::vector based implementation.
2741 (process_psymtab_comp_unit_reader): Likewise.
2742 (scan_partial_symbols): Likewise.
2743 (recursively_compute_inclusions): Likewise.
2744 (compute_compunit_symtab_includes): Likewise.
2745 (process_imported_unit_die): Likewise.
2746 (queue_and_load_dwo_tu): Likewise.
2747 (follow_die_sig_1): Likewise.
2748 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2749 (typedef dwarf2_per_cu_ptr): Remove.
2750 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2751 function.
2752 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2753 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2754 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2755 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2756 std::vector.
2757
2758 2019-10-15 Tom Tromey <tromey@adacore.com>
2759
2760 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2761 TID.
2762
2763 2019-10-15 Tom Tromey <tromey@adacore.com>
2764
2765 * windows-nat.c (windows_nat_target::fetch_registers)
2766 (windows_nat_target::store_registers): Rename "pid" to "tid".
2767
2768 2019-10-15 Tom Tromey <tromey@adacore.com>
2769
2770 * gdbarch.h, gdbarch.c: Rebuild.
2771 * gdbarch.sh (gcc_target_options): Change return type to
2772 std::string.
2773 * compile/compile.c (get_args): Update.
2774 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2775 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2776 std::string.
2777 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2778 std::string.
2779 * arch-utils.c (default_gcc_target_options): Return std::string.
2780 * arch-utils.h (default_gcc_target_options): Return std::string.
2781 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2782
2783 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2784
2785 * breakpoint.c (breakpoint_chain): Make static.
2786 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2787 of accessing breakpoint_chain.
2788
2789 2019-10-15 Christian Biesinger <cbiesinger@google.com>
2790
2791 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2792 to a gdb::function_view and return value to bool.
2793 * breakpoint.h (iterate_over_breakpoints): Likewise.
2794 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2795 (pop_dummy_frame): Update.
2796 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2797 (gdbscm_breakpoints): Update.
2798 * python/py-breakpoint.c (build_bp_list): Update.
2799 (gdbpy_breakpoints): Update.
2800 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2801 Update.
2802 (bpfinishpy_handle_stop): Update.
2803 (bpfinishpy_handle_exit): Update.
2804 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2805 (svr4_update_solib_event_breakpoints): Update.
2806
2807 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2808
2809 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2810 when unwrapping single-field structs.
2811
2812 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2813
2814 * dwarf2read.c: Remove includes.
2815
2816 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2817
2818 * ui-out.c (ui_out::call_do_message): Silence
2819 -Wformat-nonliteral warning.
2820
2821 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2822
2823 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2824 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2825 include: readline/tilde.h.
2826
2827 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2828
2829 * remote.c (remote_target::get_trace_status): Remove declaration of
2830 trace_regblock_size.
2831
2832 2019-10-12 Christian Biesinger <cbiesinger@google.com>
2833
2834 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2835 (show_user): Remove declaration of cmdlist.
2836 * cli/cli-cmds.h (max_user_call_depth): Declare.
2837 * cli/cli-script.c (execute_user_command): Remove declaration
2838 of max_user_call_depth.
2839
2840 2019-10-11 Jim Wilson <jimw@sifive.com>
2841
2842 * gdbsupport/print-utils.h (pulongest): Fix comment.
2843 (plongest): Likewise.
2844 (phex): Add missing comment, mention leading zeros.
2845 (phex_nz): Add mention of no leading zeros to comment.
2846
2847 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2848 plongest instead of unsigned long long cast.
2849
2850 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2851
2852 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2853 for external_editor_command and gdbtk_test.
2854
2855 2019-10-10 Christian Biesinger <cbiesinger@google.com>
2856
2857 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2858 * varobj.c (varobjdebug): Move comment to...
2859 * varobj.h (varobjdebug): ...here, and declare.
2860
2861 2019-10-09 Tom Tromey <tom@tromey.com>
2862
2863 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2864 erase_data_content.
2865
2866 2019-10-09 Tom Tromey <tom@tromey.com>
2867
2868 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2869 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2870 * tui/tui-command.c (tui_cmd_window::resize)
2871 (tui_refresh_cmd_win): Update.
2872 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2873 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2874 * tui/tui-data.c (~tui_gen_win_info): Remove.
2875 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2876 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2877 (tui_redisplay_readline, tui_mld_flush)
2878 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2879 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2880 (tui_data_window::erase_data_content)
2881 (tui_data_item_window::rerender)
2882 (tui_data_item_window::refresh_window): Update.
2883 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2884 (box_win, tui_gen_win_info::make_window)
2885 (tui_gen_win_info::make_visible): Update.
2886 (tui_delete_win): Remove.
2887 * tui/tui-winsource.c
2888 (tui_source_window_base::do_erase_source_content): Update.
2889 (tui_show_source_line, tui_source_window_base::update_tab_width)
2890 (tui_source_window_base::update_exec_info): Update.
2891 * tui/tui-data.h (struct curses_deleter): New.
2892 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2893 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2894
2895 2019-10-09 Tom Tromey <tom@tromey.com>
2896
2897 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2898
2899 2019-10-09 Tom Tromey <tom@tromey.com>
2900
2901 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2902 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2903
2904 2019-10-09 Tom Tromey <tom@tromey.com>
2905
2906 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2907 window height directly.
2908 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2909 declare.
2910 * tui/tui-layout.c (tui_default_win_height): Remove.
2911 (tui_default_win_viewport_height): Remove.
2912
2913 2019-10-09 Tom Tromey <tom@tromey.com>
2914
2915 * tui/tui.h: Remove comments.
2916
2917 2019-10-09 Tom de Vries <tdevries@suse.de>
2918
2919 * python/lib/gdb/printer/bound_registers.py: Use
2920 '^builtin_type_bound128' as regexp argument for
2921 add_builtin_pretty_printer.
2922
2923 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2924
2925 * guile/guile.c (guile_extension_script_ops): Remove forward
2926 declaration and mark as static.
2927 (guile_script_ops): Likewise.
2928 (extension_language_guile): Move further down in the file so
2929 it can reference the definitions for guile_{extension_,}script_ops.
2930
2931 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2932
2933 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2934 except SORTL, DFLTCC, and KDSA.
2935
2936 2019-10-08 Tom Tromey <tromey@adacore.com>
2937
2938 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2939 (struct safe_symbol_file_add_args): Remove.
2940
2941 2019-10-08 Tom Tromey <tromey@adacore.com>
2942
2943 * windows-nat.c: Don't include buildsym-legacy.h.
2944
2945 2019-10-08 Tom Tromey <tromey@adacore.com>
2946
2947 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2948
2949 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2950
2951 * gdbtypes.c (overload_debug): Move comment to header.
2952 * gdbtypes.h (overload_debug): Declare.
2953 * valops.c: Remove declaration of overload_debug, instead
2954 include gdbtypes.h.
2955
2956 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2957
2958 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2959 through _().
2960 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2961 move comment...
2962 * language.h (lang_frame_mismatch_warn): ... here. Also add
2963 declaration.
2964 * top.c (lang_frame_mismatch_warn): Remove declaration.
2965 (check_frame_language_change): Pass lang_frame_mismatch_warn
2966 through _().
2967
2968 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2969
2970 * c-lang.h (vtbl_ptr_name): Declare.
2971 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2972 it from the header.
2973 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2974
2975 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2976
2977 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2978 gdb_static_assert.
2979
2980 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2981
2982 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2983 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2984 * ctfread.c: New file.
2985 * ctfread.h: New file.
2986 * elfread.c: Include ctfread.h.
2987 (struct elfinfo text_p): New member ctfsect.
2988 (elf_locate_sections): Mark CTF section.
2989 (elf_symfile_read): Call elfctf_build_psymtabs.
2990 * Makefile.in (LIBCTF): Add.
2991 (CLIBS): Use it.
2992 (CDEPS): Likewise.
2993 (DIST): Add ctfread.c.
2994
2995 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2996
2997 * ctfread.c (struct nextfield): Renamed to ...
2998 (struct ctf_nextfield): ... this.
2999 (struct field_info): Renamed to ...
3000 (strut ctf_field_info): ... this.
3001 (attach_fields_to_type): Update for renamed structures.
3002 (ctf_add_member_cb): Likewise.
3003 (ctf_add_enum_member_cb): Likewise.
3004 (process_struct_members): Likewise.
3005 (process_enum_type): Likewise.
3006
3007 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3008
3009 * tracectf.h: Rename, was ctf.h.
3010 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3011 * tracefile.c: Likewise.
3012 * tracepoint.c: Remove unused include ctf.h.
3013 * mi/mi-main.c: Likewise.
3014 * Makefile.in Replace ctf.c with tracectf.c.
3015
3016 2019-10-06 Joel Brobecker <brobecker@adacore.com>
3017
3018 * version.in: Change version number to "9.0.50.DATE-git".
3019
3020 2019-10-03 Tom Tromey <tom@tromey.com>
3021
3022 PR rust/24976:
3023 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3024
3025 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3026
3027 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3028 cp_search_name_hash.
3029 * NEWS: Add entry about nested function support.
3030
3031 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3032 Andrew Burgess <andrew.burgess@embecosm.com>
3033
3034 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3035 for nested static variables when searchin VAR_DOMAIN.
3036 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3037 global scope, update comment.
3038 (add_partial_subprogram): Call add_partial_subprogram recursively
3039 for nested subroutines when processinng Fortran.
3040 (load_partial_dies): Process the child entities of a subprogram
3041 when processing Fortran.
3042 (partial_die_parent_scope): Handle building scope
3043 for Fortran nested functions.
3044 (process_die): Record that nested functions have a scope.
3045 (new_symbol): Always record Fortran subprograms on the global
3046 symbol list.
3047 (determine_prefix): How to build the prefix for Fortran
3048 subprograms.
3049
3050 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3051
3052 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3053 have just sent the thread a SIGSTOP and are waiting for it to
3054 arrive.
3055
3056 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3057
3058 * btrace.c (btrace_add_pc): Remove whitespace before the template
3059 parameter in 'std::vector <...>'.
3060 (parse_xml_btrace_block): Likewise.
3061 (btrace_maint_decode_pt): Likewise.
3062 (btrace_maint_update_packets): Likewise.
3063 (btrace_maint_print_packets): Likewise.
3064 * btrace.h (struct btrace_maint_info): Likewise.
3065 * dwarf2read.c (struct type_unit_group): Likewise.
3066 (build_type_psymtabs_reader): Likewise.
3067 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3068 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3069 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3070
3071 2019-10-03 Tom de Vries <tdevries@suse.de>
3072
3073 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3074 the first line of the help text for set/show style metadata.
3075
3076 2019-10-02 Tom Tromey <tromey@adacore.com>
3077
3078 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3079 * gdbsupport/common-inferior.c: New file.
3080 * infcmd.c (startup_with_shell): Don't define.
3081 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3082 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3083 * inferior.h (startup_with_shell): Don't declare.
3084
3085 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3086
3087 * gdbsupport/gdb_assert.h: Include errors.h.
3088 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3089
3090 2019-10-02 Tom Tromey <tromey@adacore.com>
3091
3092 * NEWS: Add $_ada_exception entry.
3093 * ada-lang.c (struct ada_catchpoint): Add constructor.
3094 <m_kind>: New member.
3095 (allocate_location_exception, re_set_exception): Remove
3096 "ex" parameter.
3097 (should_stop_exception): Compute $_ada_exception.
3098 (check_status_exception, print_it_exception)
3099 (print_one_exception, print_mention_exception): Remove
3100 "ex" parameter.
3101 (allocate_location_catch_exception, re_set_catch_exception)
3102 (check_status_exception, print_it_catch_exception)
3103 (print_one_catch_exception, print_mention_catch_exception)
3104 (print_recreate_catch_exception)
3105 (allocate_location_catch_exception_unhandled)
3106 (re_set_catch_exception_unhandled)
3107 (check_status_exception, print_it_catch_exception_unhandled)
3108 (print_one_catch_exception_unhandled)
3109 (print_mention_catch_exception_unhandled)
3110 (print_recreate_catch_exception_unhandled)
3111 (allocate_location_catch_assert, re_set_catch_assert)
3112 (check_status_assert, print_it_catch_assert)
3113 (print_one_catch_assert, print_mention_catch_assert)
3114 (print_recreate_catch_assert)
3115 (allocate_location_catch_handlers, re_set_catch_handlers)
3116 (check_status_handlers, print_it_catch_handlers)
3117 (print_one_catch_handlers, print_mention_catch_handlers)
3118 (print_recreate_catch_handlers): Remove.
3119 (create_ada_exception_catchpoint): Update.
3120 (initialize_ada_catchpoint_ops): Update.
3121
3122 2019-10-02 Tom Tromey <tromey@adacore.com>
3123
3124 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3125 (create_excep_cond_exprs): Simplify exception string computation.
3126 (ada_exception_catchpoint_cond_string): Likewise.
3127
3128 2019-10-02 Tom Tromey <tromey@adacore.com>
3129
3130 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3131 * ada-lang.c (lesseq_defined_than): Handle
3132 LOC_STATIC.
3133 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3134 parameter.
3135 (dwarf2_has_info): Likewise.
3136 (new_symbol): Set maybe_copied on symbol when
3137 appropriate.
3138 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3139 parameter.
3140 <can_copy>: New member.
3141 * elfread.c (record_minimal_symbol): Set maybe_copied
3142 on symbol when appropriate.
3143 (elf_symfile_read): Update call to dwarf2_has_info.
3144 * minsyms.c (lookup_minimal_symbol_linkage): New
3145 function.
3146 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3147 * symtab.c (get_symbol_address, get_msymbol_address):
3148 New functions.
3149 * symtab.h (get_symbol_address, get_msymbol_address):
3150 Declare.
3151 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3152 maybe_copied.
3153 (struct symbol, struct minimal_symbol) <maybe_copied>:
3154 New member.
3155
3156 2019-10-02 Tom Tromey <tromey@adacore.com>
3157
3158 * source.c (struct current_source_location): New.
3159 (current_source_key): New global.
3160 (current_source_symtab, current_source_line)
3161 (current_source_pspace): Remove.
3162 (get_source_location): New function.
3163 (get_current_source_symtab_and_line)
3164 (set_default_source_symtab_and_line)
3165 (set_current_source_symtab_and_line)
3166 (clear_current_source_symtab_and_line, select_source_symtab)
3167 (info_source_command, print_source_lines_base)
3168 (info_line_command, search_command_helper, _initialize_source):
3169 Update.
3170
3171 2019-10-02 Tom Tromey <tromey@adacore.com>
3172
3173 * source.c (select_source_symtab): Don't call
3174 decode_line_with_current_source.
3175
3176 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3177
3178 * symtab.c (lookup_global_symbol): Search global block.
3179
3180 2019-10-02 Tom Tromey <tromey@adacore.com>
3181
3182 * coffread.c (process_coff_symbol): Update.
3183 * dwarf2read.c (var_decode_location, new_symbol): Update.
3184 * mdebugread.c (parse_symbol): Update.
3185 * objfiles.c (relocate_one_symbol): Update.
3186 * stabsread.c (define_symbol, fix_common_block)
3187 (scan_file_globals): Update.
3188 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3189 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3190 * xcoffread.c (process_xcoff_symbol): Update.
3191
3192 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3193
3194 * MAINTAINERS: Update my email address.
3195
3196 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3197
3198 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3199 std::vector.
3200 (build_type_psymtabs_reader): Update for std::vector.
3201 (build_type_psymtab_dependencies): Likewise.
3202 * dwarf2read.h: Remove use of DEF_VEC_P.
3203 (typedef sig_type_ptr): Delete.
3204
3205 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3206
3207 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3208 to std::vector.
3209 (btrace_maint_decode_pt): Likewise, and move allocation of the
3210 vector outside of the loop.
3211 (btrace_maint_update_packets): Update to handle change from VEC to
3212 std::vector.
3213 (btrace_maint_print_packets): Likewise.
3214 (maint_info_btrace_cmd): Likewise.
3215 * btrace.h: Remove use of DEF_VEC_O.
3216 (typedef btrace_pt_packet_s): Delete.
3217 (struct btrace_maint_info) <packets>: Change fromm VEC to
3218 std::vector.
3219 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3220
3221 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3222
3223 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3224 make accesses into the vector constant references.
3225 (btrace_add_pc): Update for std::vector.
3226 (btrace_stitch_bts): Likewise.
3227 (parse_xml_btrace_block): Likewise.
3228 (btrace_maint_update_packets): Likewise.
3229 (btrace_maint_print_packets): Likewise.
3230 (maint_info_btrace_cmd): Likewise.
3231 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3232 std::vector.
3233 (btrace_data::empty): Likewise.
3234 (btrace_data_append): Likewise.
3235 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3236 (typedef btrace_block_s): Delete.
3237 (struct btrace_block): Add constructor.
3238 (struct btrace_data_bts) <blocks>: Change to std::vector.
3239 * nat/linux-btrace.c (perf_event_read_bts): Update for
3240 std::vector.
3241 (linux_read_bts): Likewise.
3242
3243 2019-10-01 Tom Tromey <tom@tromey.com>
3244
3245 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3246
3247 2019-10-01 Tom Tromey <tom@tromey.com>
3248
3249 * stack.c (print_frame, info_frame_command_core): Use
3250 styled_string.
3251 * linux-thread-db.c (try_thread_db_load_1)
3252 (try_thread_db_load_from_pdir_1): Use styled_string.
3253 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3254 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3255 (maybe_print_unsupported_script_warning)
3256 (maybe_print_script_not_found_warning): Use styled_string.
3257 * ada-lang.c (user_select_syms): Use styled_string.
3258
3259 2019-10-01 Tom Tromey <tom@tromey.com>
3260
3261 * p-lang.c (pascal_printstr): Use metadata style.
3262 * value.c (show_convenience): Use metadata style.
3263 * valprint.c (valprint_check_validity, val_print_optimized_out)
3264 (val_print_not_saved, val_print_unavailable)
3265 (val_print_invalid_address, generic_val_print, val_print)
3266 (value_check_printable, val_print_array_elements): Use metadata
3267 style.
3268 * ui-out.h (class ui_out) <field_fmt>: New overload.
3269 <do_field_fmt>: Add style parameter.
3270 * ui-out.c (ui_out::field_fmt): New overload.
3271 * typeprint.c (type_print_unknown_return_type)
3272 (val_print_not_allocated, val_print_not_associated): Use metadata
3273 style.
3274 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3275 parameter.
3276 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3277 * tracepoint.c (tvariables_info_1): Use metadata style.
3278 * stack.c (print_frame_arg, print_frame_info, print_frame)
3279 (info_frame_command_core): Use metadata style.
3280 * skip.c (info_skip_command): Use metadata style.
3281 * rust-lang.c (rust_print_enum): Use metadata style.
3282 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3283 metadata style.
3284 * python/py-framefilter.c (py_print_single_arg): Use metadata
3285 style.
3286 * printcmd.c (do_one_display, print_variable_and_value): Use
3287 metadata style.
3288 * p-valprint.c (pascal_val_print)
3289 (pascal_object_print_value_fields): Use metadata style.
3290 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3291 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3292 parameter.
3293 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3294 * m2-valprint.c (m2_print_long_set): Use metadata style.
3295 * m2-typeprint.c (m2_print_type): Use metadata style.
3296 * infcmd.c (print_return_value_1): Use metadata style.
3297 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3298 * f-valprint.c (info_common_command_for_block): Use metadata
3299 style.
3300 * f-typeprint.c (f_type_print_base): Use metadata style.
3301 * expprint.c (print_subexp_standard): Use metadata style.
3302 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3303 * cli/cli-style.h (class cli_style_option): Add constructor.
3304 (metadata_style): Declare.
3305 * cli/cli-style.c (metadata_style): New global.
3306 (_initialize_cli_style): Register metadata style.
3307 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3308 parameter.
3309 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3310 * c-typeprint.c (c_type_print_base_struct_union)
3311 (c_type_print_base_1): Use metadata style.
3312 * breakpoint.c (watchpoint_value_print)
3313 (print_one_breakpoint_location): Use metadata style.
3314 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3315 style.
3316 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3317 style.
3318 * ada-valprint.c (val_print_packed_array_elements, printstr)
3319 (print_field_values, ada_val_print_ref, ada_val_print): Use
3320 metadata style.
3321 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3322 style.
3323 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3324 style.
3325 * ada-lang.c (user_select_syms): Use metadata style.
3326
3327 2019-10-01 Tom Tromey <tom@tromey.com>
3328
3329 * cli/cli-cmds.c (pwd_command): Style output.
3330
3331 2019-10-01 Pedro Alves <palves@redhat.com>
3332 Tom Tromey <tom@tromey.com>
3333
3334 * symtab.c (print_symbol_info): Use %ps.
3335 (print_msymbol_info): Use %ps.
3336 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3337 * printcmd.c (print_variable_and_value): Use %ps.
3338 * macrocmd.c (show_pp_source_pos): Use %ps.
3339 * infrun.c (print_exited_reason): Use ui_out::message.
3340 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3341 (describe_other_breakpoints): Use ui_out::message and new
3342 formats.
3343 (say_where): Use new formats.
3344 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3345 and new formats.
3346
3347 2019-10-01 Pedro Alves <palves@redhat.com>
3348 Tom Tromey <tom@tromey.com>
3349
3350 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3351 (test_gdb_formats): New function.
3352 (run_tests): Call it.
3353 (test_format_specifier): Update.
3354 * utils.h (fputs_filtered): Update comment.
3355 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3356 (fputs_styled_unfiltered): Declare.
3357 * utils.c (fputs_styled_unfiltered): New function.
3358 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3359 (vfprintf_filtered): Update.
3360 (vfprintf_unfiltered, vprintf_filtered): Update.
3361 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3362 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3363 disallow_ui_out_field>: New constants.
3364 (enum class field_kind): New.
3365 (struct base_field_s, struct signed_field_s): New.
3366 (signed_field): New function.
3367 (struct string_field_s): New.
3368 (string_field): New function.
3369 (struct styled_string_s): New.
3370 (styled_string): New function.
3371 (class ui_out) <message>: Add comment.
3372 <vmessage, call_do_message>: New methods.
3373 <do_message>: Add style parameter.
3374 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3375 methods.
3376 (ui_out::message): Rewrite.
3377 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3378 parameter.
3379 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3380 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3381 gdb_extensions parameter.
3382 (class format_piece): Add parameter to constructor.
3383 (n_int_args): New field.
3384 * gdbsupport/format.c (format_pieces::format_pieces): Add
3385 gdb_extensions parameter. Handle '*'.
3386 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3387 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3388 vfprintf_styled_no_gdbfmt.
3389 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3390 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3391 unfiltered output.
3392 * ui-style.h (struct ui_file_style) <ptr>: New method.
3393
3394 2019-10-01 Tom Tromey <tom@tromey.com>
3395
3396 * unittests/format_pieces-selftests.c: Update. Add final format.
3397 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3398 empty literal pieces.
3399
3400 2019-10-01 Tom Tromey <tom@tromey.com>
3401
3402 * ui-out.h (enum class ui_out_style_kind): Remove.
3403 (class ui_out) <field_string, field_stsream, do_field_string>:
3404 Change type of "style".
3405 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3406 (ui_out::field_string): Update.
3407 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3408 of "style".
3409 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3410 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3411 * stack.c (print_frame_arg, print_frame_info, print_frame):
3412 Update.
3413 * source.c (print_source_lines_base): Update.
3414 * solib.c (info_sharedlibrary_command): Update.
3415 * skip.c (info_skip_command): Update.
3416 * record-btrace.c (btrace_call_history_src_line)
3417 (btrace_call_history): Update.
3418 * python/py-framefilter.c (py_print_frame): Update.
3419 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3420 "style".
3421 * mi/mi-out.c (mi_ui_out::do_table_header)
3422 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3423 (mi_ui_out::do_field_string): Update.
3424 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3425 Update.
3426 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3427 "style".
3428 * cli-out.c (cli_ui_out::do_table_header)
3429 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3430 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3431 (cli_ui_out::do_field_fmt): Update.
3432 * breakpoint.c (print_breakpoint_location): Update.
3433 (update_static_tracepoint): Update.
3434
3435 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3436
3437 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3438 conversion of gdb_datadir.
3439 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3440 remove not needed c_str ().
3441
3442 2019-09-30 Ali Tamur <tamur@google.com>
3443
3444 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3445 (dwarf2_string_attr): Likewise.
3446
3447 2019-09-30 Ali Tamur <tamur@google.com>
3448
3449 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3450 (process_full_type_unit): Likewise.
3451 (dump_die_shallow): Likewise.
3452 (cu_debug_loc_section): Likewise.
3453
3454 2019-09-28 Christian Biesinger <cbiesinger@google.com>
3455
3456 * minsyms.c (compare_minimal_symbols): Rename to...
3457 (minimal_symbol_is_less_than): ...this, and adjust to STL
3458 conventions (return bool, take arguments as references)
3459 (minimal_symbol_reader::install): Call std::sort instead
3460 of qsort.
3461
3462 2019-09-29 Christian Biesinger <cbiesinger@google.com>
3463
3464 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3465 hash and why.
3466 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3467 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3468
3469 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3470
3471 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3472 * psympriv.h (add_psymbol_to_list): Move comment here and update
3473 it.
3474
3475 2019-09-29 Tom de Vries <tdevries@suse.de>
3476
3477 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3478 Use $tmpdir/$(basename "$output_file").dwz instead of
3479 "${output_file}.dwz".
3480
3481 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3482
3483 PR gdb/25045
3484 * hppa-linux-nat.c: Include gdbarch.h.
3485
3486 2019-09-26 Christian Biesinger <cbiesinger@google.com>
3487
3488 * blockframe.c (find_pc_partial_function): Change return type to bool.
3489 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3490 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3491 (stub_gnu_ifunc_resolve_name): Likewise.
3492 * symtab.c (compare_filenames_for_search): Likewise.
3493 (compare_glob_filenames_for_search): Likewise.
3494 (matching_obj_sections): Likewise.
3495 (symbol_matches_domain): Likewise.
3496 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3497 (find_line_pc): Change return type to bool.
3498 (find_line_pc_range): Likewise.
3499 (producer_is_realview): Likewise.
3500 * symtab.h (symbol_matches_domain): Likewise.
3501 (find_pc_partial_function): Likewise.
3502 (find_pc_line_pc_range): Likewise.
3503 (in_gnu_ifunc_stub): Likewise.
3504 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3505 (find_line_pc): Likewise.
3506 (find_line_pc_range): Likewise.
3507 (matching_obj_sections): Likewise.
3508 (find_line_symtab): Change out parameter to bool.
3509 (producer_is_realview): Change return type to bool.
3510 (compare_filenames_for_search): Likewise.
3511 (compare_glob_filenames_for_search): Likewise.
3512
3513 2019-09-26 Tom Tromey <tom@tromey.com>
3514
3515 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3516 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3517 * gdb_usleep.h: Remove.
3518 * gdb_usleep.c: Remove.
3519 * utils.c: Don't include gdb_usleep.h.
3520
3521 2019-09-26 Tom Tromey <tromey@adacore.com>
3522
3523 * python/py-type.c (type_to_type_object): Call check_typedef
3524 for stub types.
3525
3526 2019-09-26 Tom Tromey <tom@tromey.com>
3527
3528 * utils.h (initialize_utils): Don't declare.
3529 * top.c (gdb_init): Don't call initialize_utils.
3530 * utils.c (initialize_utils): Remove. Move contents...
3531 (_initialize_utils): ... here.
3532
3533 2019-09-25 Tom Tromey <tom@tromey.com>
3534
3535 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3536 * utils.h (make_hex_string): Don't declare.
3537 * utils.c (make_hex_string): Remove.
3538
3539 2019-09-24 Tom de Vries <tdevries@suse.de>
3540
3541 PR gdb/23815
3542 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3543 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3544
3545 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3546
3547 * NEWS: Mention new simulator port for PRU.
3548
3549 2019-09-23 Christian Biesinger <cbiesinger@google.com>
3550
3551 * ada-exp.y (write_object_remaining): Update.
3552 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3553 and eliminate the static buffer.
3554 (ada_decode_symbol): Update.
3555 (ada_la_decode): Update.
3556 (ada_sniff_from_mangled_name): Update.
3557 (is_valid_name_for_wild_match): Update.
3558 (ada_lookup_name_info::matches): Update and simplify.
3559 (name_matches_regex): Update.
3560 (ada_add_global_exceptions): Update.
3561 * ada-lang.h (ada_decode): Update signature.
3562 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3563 * dwarf-index-write.c (debug_names::insert): Update.
3564
3565 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3566
3567 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3568 formatting.
3569
3570 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3571
3572 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3573 Change "nonzero" to "true" in documentation.
3574
3575 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3576
3577 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3578 (_initialize_darwin_solib): Don't set
3579 darwin_so_ops.lookup_lib_global_symbol.
3580 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3581 set_gdbarch_iterate_over_objfiles_in_search_order.
3582 (elf_lookup_lib_symbol): Rename to...
3583 (svr4_iterate_over_objfiles_in_search_order): this, and update
3584 to iterate semantics.
3585 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3586 * solib.c (solib_global_lookup): Remove.
3587 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3588 (solib_global_lookup): Remove.
3589 * symtab.c (lookup_global_or_static_symbol): Remove call to
3590 solib_global_lookup.
3591
3592 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3593
3594 * NEWS: Move entries about default MI version now being
3595 version 3, and about the GDB/MI fix for multi-location
3596 breakpoints to the "since GDB 8.3" section.
3597
3598 2019-09-20 Joel Brobecker <brobecker@adacore.com>
3599
3600 GDB 8.3.1 released.
3601
3602 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3603
3604 * NEWS: Mention that Cell/B.E. debugging support was removed.
3605 * MAINTAINERS: Remove spu target.
3606
3607 * config/djgpp/fnchange.lst: Remove entries for removed files.
3608
3609 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3610 spu-multiarch.o, and spu-tdep.o.
3611 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3612 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3613 spu-multiarch.c, and spu-tdep.c.
3614 * spu-linux-nat.c: Remove file.
3615 * spu-multiarch.c: Remove file.
3616 * spu-tdep.c: Remove file.
3617 * spu-tdep.h: Remove file.
3618 * solib-spu.c: Remove file.
3619 * solib-spu.h: Remove file.
3620
3621 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3622 * configure.nat (spu-linux): Remove.
3623 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3624 solib-multiarch.o from gdb_target_obs.
3625 (spu*-*-*): Remove.
3626
3627 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3628 feature flag.
3629 (ppc_linux_no_features): Update.
3630 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3631 Cell/B.E. support.
3632 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3633 (tdesc_powerpc_cell64l): Likewise.
3634 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3635 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3636 Cell/B.E. support.
3637 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3638 Do not include "features/rs6000/powerpc-cell32l.c" or
3639 "features/rs6000/powerpc-cell64l.c".
3640 (ppc_linux_spu_section): Remove.
3641 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3642 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3643 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3644 (ppc_linux_spe_context_lookup): Remove.
3645 (ppc_linux_spe_context_inferior_created): Remove.
3646 (ppc_linux_spe_context_solib_loaded): Remove.
3647 (ppc_linux_spe_context_solib_unloaded): Remove.
3648 (ppc_linux_spe_context): Remove.
3649 (struct ppu2spu_cache): Remove.
3650 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3651 (struct ppu2spu_data): Remove.
3652 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3653 ppu2spu_unwind): Remove.
3654 (ppc_linux_init_abi): Remove Cell/B.E. support.
3655 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3656
3657 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3658 (rs6000/powerpc-cell64l-expedite): Likewise
3659 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3660 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3661 rs6000/powerpc-cell64l.xml.
3662 * features/rs6000/powerpc-cell32l.xml: Remove.
3663 * features/rs6000/powerpc-cell64l.xml: Likewise.
3664 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3665 * features/rs6000/powerpc-cell64l.c: Likewise.
3666 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3667 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3668 * regformats/reg-spu.dat: Remove.
3669
3670 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3671 * corelow.c (struct spuid_list): Remove.
3672 (add_to_spuid_list): Remove.
3673 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3674 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3675 (remote_protocol_features): Remove associated entries.
3676 (_initialize_remote): No longer initialize them.
3677 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3678 * linux-nat.c (SPUFS_MAGIC): Remove.
3679 (linux_proc_xfer_spu): Remove.
3680 (spu_enumerate_spu_ids): Remove.
3681 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3682 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3683 (linux_make_corefile_notes): No longer call it.
3684
3685 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3686 (cooked_write_test): Likewise.
3687
3688 2019-09-20 Tom Tromey <tom@tromey.com>
3689
3690 * NEWS: Mention case-sensitivity of TUI commands.
3691 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3692 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3693 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3694
3695 2019-09-20 Tom Tromey <tom@tromey.com>
3696
3697 * tui/tui-source.c (tui_source_window::set_contents): Use
3698 make_unique_xstrdup.
3699 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3700 make_unique_xstrdup.
3701
3702 2019-09-20 Tom Tromey <tom@tromey.com>
3703
3704 * tui/tui-data.c: Remove separator comments.
3705 * tui/tui-layout.c: Remove separator comments.
3706 * tui/tui-win.c: Remove separator comments.
3707 * tui/tui-wingeneral.c: Remove separator comments.
3708
3709 2019-09-20 Tom Tromey <tom@tromey.com>
3710
3711 * tui/tui.h (strcat_to_buf): Don't declare.
3712 * tui/tui.c (strcat_to_buf): Remove.
3713
3714 2019-09-20 Tom Tromey <tom@tromey.com>
3715
3716 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3717 from "fullname".
3718 * tui/tui-source.c (tui_source_window::set_contents)
3719 (tui_source_window::location_matches_p)
3720 (tui_source_window::maybe_update): Update.
3721
3722 2019-09-20 Tom Tromey <tom@tromey.com>
3723
3724 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3725 Update.
3726 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3727 prefix.
3728 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3729 (tui_data_window::line_from_reg_element_no)
3730 (tui_data_window::first_reg_element_no_inline)
3731 (tui_data_window::show_registers)
3732 (tui_data_window::show_register_group)
3733 (tui_data_window::display_registers_from)
3734 (tui_data_window::display_registers_from_line)
3735 (tui_data_window::first_data_item_displayed)
3736 (tui_data_window::delete_data_content_windows)
3737 (tui_data_window::erase_data_content)
3738 (tui_data_window::do_scroll_vertical)
3739 (tui_data_window::refresh_window)
3740 (tui_data_window::check_register_values): Update.
3741
3742 2019-09-20 Tom Tromey <tom@tromey.com>
3743
3744 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3745 (struct tui_locator_window) <full_name, proc_name>: Now
3746 std::string.
3747 * tui/tui-stack.c (tui_locator_window::make_status_line)
3748 (tui_locator_window::set_locator_fullname)
3749 (tui_locator_window::set_locator_info): Update.
3750 * tui/tui-source.c (tui_source_window::set_contents)
3751 (tui_source_window::showing_source_p): Update.
3752
3753 2019-09-20 Tom Tromey <tom@tromey.com>
3754
3755 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3756 Don't call tui_locator_win_info_ptr.
3757
3758 2019-09-20 Tom Tromey <tom@tromey.com>
3759
3760 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3761
3762 2019-09-20 Tom Tromey <tom@tromey.com>
3763
3764 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3765 height for locator.
3766 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3767 * tui/tui-layout.c (show_source_disasm_command, show_data)
3768 (show_source_or_disasm_and_command): Use 1 as height for locator.
3769
3770 2019-09-20 Tom Tromey <tom@tromey.com>
3771
3772 * tui/tui.c (tui_enable): Update.
3773 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3774 Update.
3775 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3776 Update.
3777 * tui/tui-data.c (win_resized): Now bool.
3778 (tui_win_resized): Return bool.
3779 (tui_set_win_resized_to): Accept a bool.
3780
3781 2019-09-20 Tom Tromey <tom@tromey.com>
3782
3783 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3784 Change type of "refresh_values_only".
3785 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3786 type of "refresh_values_only".
3787
3788 2019-09-20 Tom Tromey <tom@tromey.com>
3789
3790 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3791 std::string.
3792 (tui_disassemble): Add "pos" parameter.
3793 (tui_disasm_window::set_contents): Simplify.
3794
3795 2019-09-20 Tom Tromey <tom@tromey.com>
3796
3797 * tui/tui-winsource.h (struct tui_source_window_base)
3798 <show_source_content>: Now private.
3799 * tui/tui-winsource.c
3800 (tui_source_window_base::show_source_content): Don't handle empty
3801 content case.
3802
3803 2019-09-20 Tom Tromey <tom@tromey.com>
3804
3805 * tui/tui-layout.c (show_source_disasm_command)
3806 (show_source_or_disasm_and_command): Don't call
3807 show_source_content.
3808
3809 2019-09-20 Tom Tromey <tom@tromey.com>
3810
3811 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3812 Declare.
3813 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3814 from tui_make_status_line.
3815 (tui_locator_window::rerender): Update.
3816
3817 2019-09-20 Tom Tromey <tom@tromey.com>
3818
3819 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3820 (tui_locator_window::rerender): Update.
3821
3822 2019-09-20 Tom Tromey <tom@tromey.com>
3823
3824 * tui/tui-winsource.h (struct tui_source_window_base)
3825 <~tui_source_window_base>: Don't declare.
3826 <fullname>: Remove.
3827 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3828 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3829 member.
3830 * tui/tui-source.c (tui_source_window::set_contents): Update.
3831 (tui_source_window::location_matches_p)
3832 (tui_source_window::maybe_update): Update.
3833
3834 2019-09-20 Tom Tromey <tom@tromey.com>
3835
3836 * tui/tui-winsource.h (~tui_source_element): Remove.
3837 (tui_source_element): Update.
3838 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3839 * tui/tui-winsource.c (tui_show_source_line): Update.
3840 * tui/tui-source.c (tui_source_window::set_contents): Update.
3841 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3842
3843 2019-09-20 Tom Tromey <tom@tromey.com>
3844
3845 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3846 declare.
3847 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3848 tui_clear_source_windows_detail.
3849 * tui/tui-winsource.h (struct tui_source_window_base)
3850 <clear_detail>: Don't declare.
3851 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3852 Remove.
3853 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3854
3855 2019-09-20 Tom Tromey <tromey@adacore.com>
3856
3857 PR ada/24919:
3858 * block.c (contained_in): Fix final return value.
3859
3860 2019-09-20 Alan Modra <amodra@gmail.com>
3861
3862 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3863 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3864 (read_indirect_string_from_dwz): Use bfd accessor.
3865 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3866 * machoread.c (macho_symfile_read_all_oso): Likewise.
3867 * solib.c (solib_bfd_open): Likewise.
3868
3869 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3870
3871 * eval.c: Move declaration of overload_resolution to...
3872 * value.h: ...here.
3873
3874 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3875
3876 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3877 * arm-linux-tdep.c: Likewise.
3878 * arm-nbsd-nat.c: Likewise.
3879 * arm-tdep.h: Declare arm_apcs_32.
3880 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3881
3882 2019-09-19 Christian Biesinger <cbiesinger@google.com>
3883
3884 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3885 * dwarf2read.h: Declare dwarf_always_disassemble.
3886
3887 2019-09-19 Tom de Vries <tdevries@suse.de>
3888
3889 PR gdb/25009
3890 * source-cache.c (source_cache::ensure): Catch exception thrown during
3891 construction of the highlighter.
3892
3893 2019-09-18 Alan Modra <amodra@gmail.com>
3894
3895 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3896 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3897 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3898 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3899 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3900 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3901 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3902 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3903 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3904 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3905 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3906 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3907 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3908 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3909 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3910 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3911 * mi/mi-interp.c: Update throughout for bfd section macro and
3912 function changes.
3913 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3914 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3915
3916 2019-09-18 Tom Tromey <tom@tromey.com>
3917
3918 * NEWS: Add entry.
3919 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3920 call rl_initialize.
3921 (tui_enable): Do not call rl_initialize.
3922
3923 2019-09-18 Christian Groessler <chris@groessler.org>
3924
3925 * alpha-linux-nat.c: Include gdbarch.h.
3926
3927 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3928
3929 * ui-file.c: Include cli/cli-style.h.
3930 (term_cli_styling): Remove cli_styling declaration.
3931
3932 2019-09-18 Alan Modra <amodra@gmail.com>
3933
3934 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3935 to bfd_asymbol_section.
3936
3937 2019-09-18 Alan Modra <amodra@gmail.com>
3938
3939 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3940 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3941 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3942
3943 2019-09-18 Alan Modra <amodra@gmail.com>
3944
3945 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3946 * spu-linux-nat.c (spu_bfd_open): Likewise.
3947
3948 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3949
3950 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3951 to bool to match definition in dwarf2read.c.
3952
3953 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3954
3955 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3956 (print_signatures): Likewise.
3957 (trust_pad_over_xvs): Likewise.
3958 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3959 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3960 * arm-linux-nat.c (arm_apcs_32): Likewise.
3961 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3962 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3963 * arm-tdep.c (arm_debug): Likewise.
3964 (arm_apcs_32): Likewise.
3965 * auto-load.c (debug_auto_load): Likewise.
3966 (auto_load_gdb_scripts): Likewise.
3967 (global_auto_load): Likewise.
3968 (auto_load_local_gdbinit): Likewise.
3969 (auto_load_local_gdbinit_loaded): Likewise.
3970 * auto-load.h (global_auto_load): Likewise.
3971 (auto_load_local_gdbinit): Likewise.
3972 (auto_load_local_gdbinit_loaded): Likewise.
3973 * breakpoint.c (disconnected_dprintf): Likewise.
3974 (breakpoint_proceeded): Likewise.
3975 (automatic_hardware_breakpoints): Likewise.
3976 (always_inserted_mode): Likewise.
3977 (target_exact_watchpoints): Likewise.
3978 (_initialize_breakpoint): Update.
3979 * breakpoint.h (target_exact_watchpoints): Change to bool.
3980 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3981 * cli/cli-cmds.c (trace_commands): Likewise.
3982 * cli/cli-cmds.h (trace_commands): Likewise.
3983 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3984 to bool*.
3985 * cli/cli-logging.c (logging_overwrite): Change to bool.
3986 (logging_redirect): Likewise.
3987 (debug_redirect): Likewise.
3988 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3989 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3990 to bool.
3991 <boolean_option_def>: Update.
3992 (struct flag_option_def): Change default type of Context to bool
3993 from int.
3994 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3995 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3996 (get_setshow_command_value_string): Likewise.
3997 * cli/cli-style.c (cli_styling): Change to bool.
3998 (source_styling): Likewise.
3999 * cli/cli-style.h (source_styling): Likewise.
4000 (cli_styling): Likewise.
4001 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4002 to bool.
4003 * command.h (var_types): Update comment.
4004 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4005 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4006 bool.
4007 (debug_compile_cplus_scopes): Likewise.
4008 * compile/compile-internal.h (compile_debug): Likewise.
4009 * compile/compile.c (compile_debug): Likewise.
4010 (struct compile_options) <raw>: Likewise.
4011 * cp-support.c (catch_demangler_crashes): Likewise.
4012 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4013 (usr_cmd_cris_dwarf2_cfi): Likewise.
4014 * csky-tdep.c (csky_debug): Likewise.
4015 * darwin-nat.c (enable_mach_exceptions): Likewise.
4016 * dcache.c (dcache_enabled_p): Likewise.
4017 * defs.h (info_verbose): Likewise.
4018 * demangle.c (demangle): Likewise.
4019 (asm_demangle): Likewise.
4020 * dwarf-index-cache.c (debug_index_cache): Likewise.
4021 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4022 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4023 * dwarf2read.c (check_physname): Likewise.
4024 (use_deprecated_index_sections): Likewise.
4025 (dwarf_always_disassemble): Likewise.
4026 * eval.c (overload_resolution): Likewise.
4027 * event-top.c (set_editing_cmd_var): Likewise.
4028 (exec_done_display_p): Likewise.
4029 * event-top.h (set_editing_cmd_var): Likewise.
4030 (exec_done_display_p): Likewise.
4031 * exec.c (write_files): Likewise.
4032 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4033 (debug_fbsd_nat): Likewise.
4034 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4035 Likewise.
4036 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4037 <backtrace_past_entry> Likewise.
4038 * gdb-demangle.h (demangle): Likewise.
4039 (asm_demangle): Likewise.
4040 * gdb_bfd.c (bfd_sharing): Likewise.
4041 * gdbcore.h (write_files): Likewise.
4042 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4043 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4044 * gdbthread.h (print_thread_events): Likewise.
4045 * gdbtypes.c (opaque_type_resolution): Likewise.
4046 (strict_type_checking): Likewise.
4047 * gnu-nat.c (gnu_debug_flag): Likewise.
4048 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4049 * guile/scm-param.c (pascm_variable): Add boolval.
4050 (add_setshow_generic): Update.
4051 (pascm_param_value): Update.
4052 (pascm_set_param_value_x): Update.
4053 * hppa-tdep.c (hppa_debug): Change to bool..
4054 * infcall.c (may_call_functions_p): Likewise.
4055 (coerce_float_to_double_p): Likewise.
4056 (unwind_on_signal_p): Likewise.
4057 (unwind_on_terminating_exception_p): Likewise.
4058 * infcmd.c (startup_with_shell): Likewise.
4059 * inferior.c (print_inferior_events): Likewise.
4060 * inferior.h (startup_with_shell): Likewise.
4061 (print_inferior_events): Likewise.
4062 * infrun.c (step_stop_if_no_debug): Likewise.
4063 (detach_fork): Likewise.
4064 (debug_displaced): Likewise.
4065 (disable_randomization): Likewise.
4066 (non_stop): Likewise.
4067 (non_stop_1): Likewise.
4068 (observer_mode): Likewise.
4069 (observer_mode_1): Likewise.
4070 (set_observer_mode): Update.
4071 (sched_multi): Change to bool.
4072 * infrun.h (debug_displaced): Likewise.
4073 (sched_multi): Likewise.
4074 (step_stop_if_no_debug): Likewise.
4075 (non_stop): Likewise.
4076 (disable_randomization): Likewise.
4077 * linux-tdep.c (use_coredump_filter): Likewise.
4078 (dump_excluded_mappings): Likewise.
4079 * linux-thread-db.c (auto_load_thread_db): Likewise.
4080 (check_thread_db_on_load): Likewise.
4081 * main.c (captured_main_1): Update.
4082 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4083 xx2_opt, boolean_opt>: Change to bool.
4084 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4085 * maint.c (maintenance_profile_p): Likewise.
4086 (per_command_time): Likewise.
4087 (per_command_space): Likewise.
4088 (per_command_symtab): Likewise.
4089 * memattr.c (inaccessible_by_default): Likewise.
4090 * mi/mi-main.c (mi_async): Likewise.
4091 (mi_async_1): Likewise.
4092 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4093 * nat/fork-inferior.h (startup_with_shell): Likewise.
4094 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4095 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4096 * nios2-tdep.c (nios2_debug): Likewise.
4097 * or1k-tdep.c (or1k_debug): Likewise.
4098 * parse.c (parser_debug): Likewise.
4099 * parser-defs.h (parser_debug): Likewise.
4100 * printcmd.c (print_symbol_filename): Likewise.
4101 * proc-api.c (procfs_trace): Likewise.
4102 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4103 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4104 (set_parameter_value): Update.
4105 (add_setshow_generic): Update.
4106 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4107 to bool*.
4108 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4109 int*.
4110 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4111 * record-btrace.c (record_btrace_target::store_registers): Update.
4112 * record-full.c (record_full_memory_query): Change to bool.
4113 (record_full_stop_at_limit): Likewise.
4114 * record-full.h (record_full_memory_query): Likewise.
4115 * remote-notif.c (notif_debug): Likewise.
4116 * remote-notif.h (notif_debug): Likewise.
4117 * remote.c (use_range_stepping): Likewise.
4118 (interrupt_on_connect): Likewise.
4119 (remote_break): Likewise.
4120 * ser-tcp.c (tcp_auto_retry): Likewise.
4121 * ser-unix.c (serial_hwflow): Likewise.
4122 * skip.c (debug_skip): Likewise.
4123 * solib-aix.c (solib_aix_debug): Likewise.
4124 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4125 (spu_auto_flush_cache_p): Likewise.
4126 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4127 Likewise.
4128 (struct info_print_options) <quiet>: Likewise.
4129 * symfile-debug.c (debug_symfile): Likewise.
4130 * symfile.c (auto_solib_add): Likewise.
4131 (separate_debug_file_debug): Likewise.
4132 * symfile.h (auto_solib_add): Likewise.
4133 (separate_debug_file_debug): Likewise.
4134 * symtab.c (basenames_may_differ): Likewise.
4135 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4136 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4137 (struct info_types_options) <quiet>: Likewise.
4138 * symtab.h (demangle): Likewise.
4139 (basenames_may_differ): Likewise.
4140 * target-dcache.c (stack_cache_enabled_1): Likewise.
4141 (code_cache_enabled_1): Likewise.
4142 * target.c (trust_readonly): Likewise.
4143 (may_write_registers): Likewise.
4144 (may_write_memory): Likewise.
4145 (may_insert_breakpoints): Likewise.
4146 (may_insert_tracepoints): Likewise.
4147 (may_insert_fast_tracepoints): Likewise.
4148 (may_stop): Likewise.
4149 (auto_connect_native_target): Likewise.
4150 (target_stop_and_wait): Update.
4151 (target_async_permitted): Change to bool.
4152 (target_async_permitted_1): Likewise.
4153 (may_write_registers_1): Likewise.
4154 (may_write_memory_1): Likewise.
4155 (may_insert_breakpoints_1): Likewise.
4156 (may_insert_tracepoints_1): Likewise.
4157 (may_insert_fast_tracepoints_1): Likewise.
4158 (may_stop_1): Likewise.
4159 * target.h (target_async_permitted): Likewise.
4160 (may_write_registers): Likewise.
4161 (may_write_memory): Likewise.
4162 (may_insert_breakpoints): Likewise.
4163 (may_insert_tracepoints): Likewise.
4164 (may_insert_fast_tracepoints): Likewise.
4165 (may_stop): Likewise.
4166 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4167 (make_thread_apply_all_options_def_group): Change argument from int*
4168 to bool*.
4169 (thread_apply_all_command): Update.
4170 (print_thread_events): Change to bool.
4171 * top.c (confirm): Likewise.
4172 (command_editing_p): Likewise.
4173 (history_expansion_p): Likewise.
4174 (write_history_p): Likewise.
4175 (info_verbose): Likewise.
4176 * top.h (confirm): Likewise.
4177 (history_expansion_p): Likewise.
4178 * tracepoint.c (disconnected_tracing): Likewise.
4179 (circular_trace_buffer): Likewise.
4180 * typeprint.c (print_methods): Likewise.
4181 (print_typedefs): Likewise.
4182 * utils.c (debug_timestamp): Likewise.
4183 (sevenbit_strings): Likewise.
4184 (pagination_enabled): Likewise.
4185 * utils.h (sevenbit_strings): Likewise.
4186 (pagination_enabled): Likewise.
4187 * valops.c (overload_resolution): Likewise.
4188 * valprint.h (struct value_print_options) <prettyformat_arrays,
4189 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4190 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4191 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4192 Likewise.
4193 * windows-nat.c (new_console): Likewise.
4194 (cygwin_exceptions): Likewise.
4195 (new_group): Likewise.
4196 (debug_exec): Likewise.
4197 (debug_events): Likewise.
4198 (debug_memory): Likewise.
4199 (debug_exceptions): Likewise.
4200 (useshell): Likewise.
4201 * windows-tdep.c (maint_display_all_tib): Likewise.
4202 * xml-support.c (debug_xml): Likewise.
4203
4204 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4205
4206 * source.c (prepare_path_for_appending): New function.
4207 (openp): Make use of new function.
4208 (find_and_open_source): Search for the compilation directory and
4209 source file as a relative path beneath the directory search path.
4210
4211 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4212
4213 * source-cache.c (source_cache::get_line_charpos): Catch
4214 exceptions and return false, this matches the behaviour documented
4215 in the header file.
4216
4217 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4218
4219 * ada-tasks.c (info_task): Remove quoting of the task's name.
4220
4221 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4222
4223 * symfile.c (auto_solib_add): Replace comment with a reference
4224 to the header file.
4225
4226 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4227
4228 * NEWS: Mention that gdb can now be compiled with Python 3
4229 on Windows.
4230
4231 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4232
4233 * maint.c (maint_print_section_data::maint_print_section_data):
4234 Force use of 'float log10 (float)' by casting the argument to
4235 float.
4236
4237 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4238
4239 * maint.c: Add 'cmath' include.
4240 (struct maint_print_section_data): New structure.
4241 (print_section_index): New function.
4242 (print_bfd_section_info): Add header comment, small whitespace
4243 cleanup, and update to call new print_section_index function.
4244 (print_objfile_section_info): Likewise.
4245 (maint_obj_section_from_bfd_section): New function.
4246 (print_bfd_section_info_maybe_relocated): New function.
4247 (maintenance_info_sections): Add header comment, always use
4248 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4249
4250 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4251
4252 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4253 inner scope, add check that the objfile has psymtabs before
4254 checking psymtabs_addrmap.
4255 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4256
4257 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4258
4259 * NEWS: Announce that Ada task names are now shown at more places,
4260 and between quotes (except in info task output).
4261 * gdb/ada-tasks.c (task_to_str): New function.
4262 (display_current_task_id): Call task_to_str.
4263 (task_command_1): Likewise.
4264 (print_ada_task_info): In non-mi mode, Properly align headers and data
4265 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4266
4267 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4268
4269 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4270 prstatus.pr_lwp.pr_info instead of making it up.
4271
4272 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4273
4274 * auto-load.c (auto_load_expand_dir_vars): Update.
4275 * defs.h (gdb_datadir): Change to std::string.
4276 (python_libdir): Likewise.
4277 (relocate_gdb_directory): Change return type to std::string.
4278 * guile/guile.c (gdbscm_data_directory): Update.
4279 (initialize_scheme_side): Update.
4280 * jit.c (jit_reader_dir): Change to std::string.
4281 (jit_reader_load_command): Update.
4282 * main.c (gdb_datadir): Change to std::string.
4283 (python_libdir): Likewise.
4284 (set_gdb_data_directory): Update.
4285 (relocate_path): Change to return std::string.
4286 (relocate_gdb_directory): Change to return std::string.
4287 (relocate_gdbinit_path_maybe_in_datadir): Update.
4288 (captured_main_1): Update.
4289 * python/python.c (do_start_initialization): Update.
4290 * top.c (show_gdb_datadir): Update.
4291 * xml-syscall.c (xml_init_syscalls_info): Update.
4292 (init_syscalls_info): Update.
4293
4294 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4295
4296 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4297 out of get_init_files.
4298 (get_init_files): Update.
4299
4300 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4301
4302 * main.c (get_init_files): Change to use std::string.
4303 (captured_main_1): Update.
4304 (print_gdb_help): Update.
4305
4306 2019-09-11 Ali Tamur <tamur@google.com>
4307
4308 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4309 implementation.
4310
4311 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4312
4313 * dbxread.c (read_dbx_symtab): Update.
4314 * dwarf2read.c (load_partial_dies): Update.
4315 * mdebugread.c (parse_partial_symbols): Update.
4316 (handle_psymbol_enumerators): Update.
4317 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4318 * psymtab.c (add_psymbol_to_bcache): Likewise.
4319 (add_psymbol_to_list): Likewise.
4320 * symtab.c (symbol_set_names): Likewise.
4321 * symtab.h (symbol_set_names): Likewise.
4322 * xcoffread.c (scan_xcoff_symtab): Update.
4323
4324 2019-09-11 Tom Tromey <tom@tromey.com>
4325
4326 * symfile-mem.c (symbol_file_add_from_memory): Use
4327 bfd_set_filename.
4328 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4329 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4330
4331 2019-09-10 Tom Tromey <tromey@adacore.com>
4332
4333 * dwarf-index-write.c (write_psymbols): Extend error message.
4334 (debug_names::insert): Add Ada code.
4335 (debug_names::write_psymbols): Remove Ada check.
4336 (debug_names) <m_string_obstack>: New member.
4337 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4338 (gdb_index_symbol_name_matcher::matches): Remove.
4339 (mapped_index_base::find_name_components_bounds): Add "lang"
4340 parameter.
4341 (mapped_index_base::build_name_components): Also split names
4342 according to Ada syntax.
4343 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4344 type of "match_callback".
4345 (check_match, check_find_bounds_finds)
4346 (dw2_expand_symtabs_matching): Update.
4347 (dw2_debug_names_iterator): Add new constructor.
4348 (dw2_debug_names_map_matching_symbols): New function.
4349 (dw2_debug_names_expand_symtabs_matching): Update.
4350 (dwarf2_debug_names_functions): Use
4351 dw2_debug_names_map_matching_symbols.
4352
4353 2019-09-10 Tom Tromey <tromey@adacore.com>
4354
4355 * dwarf2read.c (dw2_get_file_names_reader): Add the
4356 CU's file name to the results.
4357
4358 2019-09-10 Tom Tromey <tromey@adacore.com>
4359
4360 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4361 map_matching_symbols. Update.
4362 * dwarf2read.c (dw2_map_matching_symbols): Update.
4363 * psymtab.c (match_partial_symbol): Change type; update.
4364 (psym_map_matching_symbols): Likewise.
4365 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4366 type; update.
4367 * symfile.h (struct quick_symbol_functions)
4368 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4369 Remove "match".
4370
4371 2019-09-10 Tom Tromey <tromey@adacore.com>
4372
4373 * psymtab.c (map_block): Remove.
4374 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4375 * symtab.c (iterate_over_symbols_terminated): New function.
4376 * symtab.c (iterate_over_symbols_terminated): Declare.
4377
4378 2019-09-10 Tom Tromey <tromey@adacore.com>
4379
4380 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4381 * language.h (struct language_defn) <la_iterate_over_symbols>:
4382 Return bool.
4383 * symtab.c (iterate_over_symbols): Return bool.
4384 * symtab.h (iterate_over_symbols): Return bool.
4385
4386 2019-09-10 Tom Tromey <tromey@adacore.com>
4387
4388 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4389 (add_nonlocal_symbols): Update.
4390 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4391 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4392 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4393 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4394 Change type of "callback". Remove "data".
4395
4396
4397 2019-09-09 Ali Tamur <tamur@google.com>
4398
4399 * dwarf2read.c (comp_unit_head): Update comment.
4400 (dwarf2_dwo_name): New function declaration.
4401 (dwarf_unit_type_name): New function declaration.
4402 (read_comp_unit_head): Add support for new compilation units,
4403 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4404 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4405 (currently named as "signature") in their header. Also clarify error
4406 messages.
4407 (lookup_dwo_id): New function. Returns the dwo id of the given
4408 compile unit.
4409 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4410 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4411 functions.
4412 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4413 (dwarf2_dwo_name): Get the dwo name if present.
4414 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4415 purposes.
4416
4417 2019-09-09 Tom Tromey <tom@tromey.com>
4418
4419 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4420
4421 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4422
4423 * python/python.c (do_start_initialization): Make progname_copy static,
4424 to avoid a leak report.
4425
4426 2019-09-08 Tom Tromey <tom@tromey.com>
4427
4428 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4429
4430 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
4431
4432 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4433 Change type to gdb::optional<block_enum>.
4434 (dw2_symtab_iter_init): Change block_index parameter type
4435 to gdb::optional<block_enum>.
4436 (dw2_lookup_symbol): Change block_index parameter
4437 type to block_enum.c
4438 (dw2_debug_names_lookup_symbol): Likewise.
4439 * psymtab.c (psym_lookup_symbol): Likewise.
4440 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4441 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4442 Likewise.
4443
4444 2019-09-06 Christian Biesinger <cbiesinger@google.com>
4445
4446 * defs.h (relocate_gdb_directory): Change int to bool in
4447 signature and rename flag to relocatable.
4448 * main.c (relocate_path): Likewise.
4449 (relocate_gdb_directory): Likewise.
4450
4451 2019-09-06 Alan Modra <amodra@gmail.com>
4452
4453 * coffread.c (coff_symfile_read): Constify filename variable.
4454 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4455 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4456 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4457 * solib.c (reload_shared_libraries_1): Likewise.
4458 * symfile.c (reread_symbols): Likewise.
4459 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4460 * solib-darwin.c (darwin_bfd_open): Likewise.
4461 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4462
4463 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4464
4465 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4466 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4467
4468 2019-09-03 Tom Tromey <tromey@adacore.com>
4469
4470 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4471 types.
4472 (has_negatives): Unbias a range type bound.
4473 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4474 * gdbtypes.c (operator==): Handle new field.
4475 (create_range_type): Add "bias" parameter.
4476 (create_static_range_type, resolve_dynamic_range): Update.
4477 * gdbtypes.h (struct range_bounds) <bias>: New member.
4478 (create_range_type): Add bias parameter.
4479 * printcmd.c (print_scalar_formatted): Unbias range types.
4480 * value.c (unpack_long): Unbias range types.
4481 (pack_long): Bias range types.
4482
4483 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4484
4485 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4486 probe arguments.
4487
4488 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4489
4490 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4491 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4492 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4493 (compile_probe_arg): Likewise.
4494 * probe.h (get_argument_count): Likewise.
4495 * solib-svr4.c (solib_event_probe_action): Likewise.
4496 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4497
4498 2019-09-02 Alan Hayward <alan.hayward@arm.com>
4499
4500 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4501 code to here...
4502 (svr4_create_solib_event_breakpoints): ...from here.
4503
4504 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4505
4506 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4507 suffix from warning message.
4508
4509 2019-08-30 Tom Tromey <tom@tromey.com>
4510
4511 * tui/tui-winsource.h (struct tui_source_window_base)
4512 <refresh_all>: Don't declare.
4513 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4514 Remove.
4515 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4516 tui_show_locator_content.
4517 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4518 declare.
4519 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4520 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4521 declare.
4522
4523 2019-08-30 Tom Tromey <tom@tromey.com>
4524
4525 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4526
4527 2019-08-30 Tom Tromey <tom@tromey.com>
4528
4529 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4530 Remove unnecessary forward declarations.
4531
4532 2019-08-30 Tom Tromey <tom@tromey.com>
4533
4534 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4535 rerender.
4536 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4537 tui_show_locator_content.
4538
4539 2019-08-30 Tom Tromey <tom@tromey.com>
4540
4541 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4542 (tui_locator_window::rerender): Rewrite using body of previous
4543 tui_show_locator_content.
4544
4545 2019-08-30 Tom Tromey <tom@tromey.com>
4546
4547 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4548 set_locator_fullname>: New methods.
4549 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4550 Rename from tui_set_locator_fullname.
4551 (tui_locator_window::set_locator_info): Rename from
4552 tui_set_locator_info. Return bool.
4553 (tui_update_locator_fullname, tui_show_frame_info): Update.
4554
4555 2019-08-30 Tom Tromey <tom@tromey.com>
4556
4557 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4558
4559 2019-08-30 Tom Tromey <tom@tromey.com>
4560
4561 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4562 call touchwin.
4563
4564 2019-08-30 Tom Tromey <tom@tromey.com>
4565
4566 * tui/tui-wingeneral.c (box_win): Assume win_info and
4567 win_info->handle cannot be NULL.
4568
4569 2019-08-30 Tom Tromey <tom@tromey.com>
4570
4571 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4572 refresh_window>: Declare.
4573 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4574 resize.
4575 (tui_data_item_window::rerender): Rename from
4576 tui_display_register.
4577 (tui_data_item_window::refresh_window): New method.
4578 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4579 no-op.
4580
4581 2019-08-30 Tom Tromey <tom@tromey.com>
4582
4583 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4584 regs_column_count, current_group>: Move later. Now private.
4585 <get_current_group>: New method.
4586 * tui/tui-regs.c (tui_reg_command): Update.
4587 * tui/tui-layout.c (tui_set_layout): Update.
4588
4589 2019-08-30 Tom Tromey <tom@tromey.com>
4590
4591 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4592 (tui_data_window::rerender): Don't call
4593 check_and_display_highlight_if_needed.
4594 (tui_data_window::refresh_all): Remove call to
4595 erase_data_content.
4596
4597 2019-08-30 Tom Tromey <tom@tromey.com>
4598
4599 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4600 (tui_data_window::display_registers_from)
4601 (tui_data_window::display_reg_element_at_line)
4602 (tui_data_window::display_registers_from_line): Remove checks of
4603 "empty".
4604
4605 2019-08-30 Tom Tromey <tom@tromey.com>
4606
4607 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4608 Don't declare.
4609 * tui/tui-regs.c (tui_data_window::show_registers): Call
4610 rerender.
4611 (tui_data_window::rerender): Rename from display_all_data.
4612 (tui_data_window::rerender): Remove old implementation.
4613
4614 2019-08-30 Tom Tromey <tom@tromey.com>
4615
4616 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4617 text.
4618 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4619
4620 2019-08-29 Bernhard Wodok <barto@gmx.net>
4621 Sergio Durigan Junior <sergiodj@redhat.com>
4622
4623 PR win32/24284
4624 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4625
4626 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4627
4628 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4629 when searching for types.
4630
4631 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4632
4633 * f-lang.c (f_language_defn): Use f_print_typedef.
4634 * f-lang.h (f_print_typedef): Declare.
4635 * f-typeprint.c (f_print_typedef): Define.
4636
4637 2019-08-27 Christian Biesinger <cbiesinger@google.com>
4638
4639 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4640
4641 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4642
4643 * cli/cli-utils.c (info_print_options_defs): Delete.
4644 (make_info_print_options_def_group): Delete.
4645 (extract_info_print_options): Delete.
4646 (info_print_command_completer): Delete.
4647 (info_print_args_help): Add extra parameter, and optionally
4648 include text about -n flag.
4649 * cli/cli-utils.h (struct info_print_options): Delete.
4650 (extract_info_print_options): Delete declaration.
4651 (info_print_command_completer): Delete declaration.
4652 (info_print_args_help): Add extra parameter, extend header
4653 comment.
4654 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4655 search_symbols.
4656 * stack.c (struct info_print_options): New type.
4657 (info_print_options_defs): New file scoped variable.
4658 (make_info_print_options_def_group): New static function.
4659 (info_print_command_completer): New static function.
4660 (info_locals_command): Update to use new local functions.
4661 (info_args_command): Likewise.
4662 (_initialize_stack): Add extra parameter to calls to
4663 info_print_args_help.
4664 * symtab.c (search_symbols): Add extra parameter, use this to
4665 possibly excluse non-debug symbols.
4666 (symtab_symbol_info): Add extra parameter, which is passed on to
4667 search_symbols.
4668 (struct info_print_options): New type.
4669 (info_print_options_defs): New file scoped variable.
4670 (make_info_print_options_def_group): New static function.
4671 (info_print_command_completer): New static function.
4672 (info_variables_command): Update to use local functions, and pass
4673 extra parameter through to symtab_symbol_info.
4674 (info_functions_command): Likewise.
4675 (info_types_command): Pass additional argument through to
4676 symtab_symbol_info.
4677 (rbreak_command): Pass extra argument to search_symbols.
4678 (_initialize_symtab): Add extra arguments for calls to
4679 info_print_args_help, and update help text for 'info variables',
4680 'whereis', and 'info functions' commands.
4681 * symtab.h (search_symbols): Add extra argument to declaration.
4682 * NEWS: Mention new flags.
4683
4684 2019-08-26 Christian Biesinger <cbiesinger@google.com>
4685
4686 * symtab.c (lookup_static_symbol): Call the new function (and move
4687 it down to be next to lookup_global_symbol).
4688 (struct global_sym_lookup_data): Add block_enum member and rename to...
4689 (struct global_or_static_sym_lookup_data): ...this.
4690 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4691 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4692 (lookup_symbol_global_or_static_iterator_cb): ...this.
4693 (lookup_global_or_static_symbol): New function.
4694 (lookup_global_symbol): Call new function.
4695
4696 2019-08-26 Tom de Vries <tdevries@suse.de>
4697
4698 PR c++/24852
4699 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4700 when pc_probe.prob == NULL.
4701
4702 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4703
4704 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4705 variable symbol_linkage to symbol_linkage_.
4706
4707 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
4708
4709 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4710 represent whether the symbol is static, dynamic, or we don't
4711 know.
4712
4713 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4714
4715 * gdb/rx-tdep.c (rx_register_names): New.
4716 (rx_register_name): Delete.
4717 (rx_psw_type): Delete.
4718 (rx_fpsw_type): Delete.
4719 (rx_register_type): Delete.
4720 (rx_gdbarch_init): Convert target-descriptions.
4721 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4722 * gdb/features/Makefile: Add rx.xml.
4723 * gdb/features/rx.xml: New.
4724 * gdb/features/rx.c: Generated.
4725 * gdb/NEWS: Mention target description support.
4726
4727 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4728
4729 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4730 *slot_ptr.
4731
4732 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4733
4734 * configure.ac: Don't check for 'dlfcn.h' (moved to
4735 gdbsupport/common.m4).
4736 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4737 'gdbsupport/'.
4738 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4739 * compile/compile-c-support.c: Include
4740 'gdbsupport/gdb-dlfcn.h'.
4741 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4742 * gdb-dlfcn.c: Move to...
4743 * gdbsupport/gdb-dlfcn.c: ... here.
4744 * gdb-dlfcn.h: Move to...
4745 * gdbsupport/gdb-dlfcn.h: ... here.
4746
4747 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4748
4749 * nios2-tdep.c (struct reg_value): Improve comments. Make
4750 the offset field signed.
4751
4752 2019-08-22 Christian Biesinger <cbiesinger@google.com>
4753
4754 * python/lib/gdb/__init__.py (_execute_file): New function.
4755 * python/python.c (python_run_simple_file): Call gdb._execute_file
4756 on Windows.
4757
4758 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4759
4760 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4761 all uses as this was never set to anything but a zero value.
4762
4763 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4764
4765 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4766
4767 2019-08-21 Christian Biesinger <cbiesinger@google.com>
4768
4769 * tui/tui-data.h (tui_gen_win_info): Add an =default
4770 move constructor, required by some GCC versions.
4771
4772 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
4773
4774 * go32-nat.c (go32_sysinfo): Add hygon_p.
4775
4776 2019-08-20 Tom Tromey <tom@tromey.com>
4777
4778 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4779 line_from_reg_element_no, first_reg_element_no_inline,
4780 display_all_data, delete_data_content_windows,
4781 erase_data_content>: Now private.
4782
4783 2019-08-20 Tom Tromey <tom@tromey.com>
4784
4785 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4786 (tui_unhighlight_win, tui_highlight_win)
4787 (tui_win_info::make_window): Update.
4788 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4789
4790 2019-08-20 Tom Tromey <tom@tromey.com>
4791
4792 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4793 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4794 (MAX_PID_WIDTH): Move to tui-stack.c.
4795 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4796 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4797 (MAX_PID_WIDTH): Move from tui-data.h.
4798
4799 2019-08-20 Tom Tromey <tom@tromey.com>
4800
4801 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4802 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4803 (box_win): Update.
4804 (tui_gen_win_info::make_window): Rename from tui_make_window.
4805 (tui_win_info::make_window): New method.
4806 (tui_gen_win_info::make_visible): Update.
4807 * tui/tui-source.c (tui_source_window::set_contents): Update.
4808 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4809 (tui_data_window::display_registers_from): Update.
4810 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4811 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4812 Declare.
4813 <can_box>: Remove.
4814 <title>: Remove.
4815 (struct tui_win_info) <make_window>: Declare.
4816 <can_box>: Now virtual.
4817 <title>: New member.
4818 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4819 * tui/tui-command.c (tui_cmd_window::resize): Update.
4820
4821 2019-08-20 Tom Tromey <tom@tromey.com>
4822
4823 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4824 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4825 (tui_data_window::check_register_values): Update.
4826
4827 2019-08-20 Tom Tromey <tom@tromey.com>
4828
4829 * tui/tui-regs.h (struct tui_data_window): Use
4830 DISABLE_COPY_AND_ASSIGN.
4831 <regs_content>: Change type, removing unique_ptr.
4832 <tui_data_window>: Add move constructor.
4833 * tui/tui-regs.c (tui_data_window::show_registers)
4834 (tui_data_window::show_register_group)
4835 (tui_data_window::display_registers_from)
4836 (tui_data_window::display_registers_from)
4837 (tui_data_window::first_data_item_displayed)
4838 (tui_data_window::delete_data_content_windows)
4839 (tui_data_window::rerender, tui_data_window::refresh_window)
4840 (tui_data_window::check_register_values): Update.
4841
4842 2019-08-20 Tom Tromey <tom@tromey.com>
4843
4844 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4845 show_register_group>: Declare.
4846 (tui_show_register_group): Don't declare.
4847 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4848 tui_show_registers.
4849 (tui_data_window::show_register_group): Rename from
4850 tui_show_register_group.
4851 (tui_data_window::check_register_values, tui_reg_command):
4852 Update.
4853 * tui/tui-layout.c (tui_set_layout): Update.
4854
4855 2019-08-20 Tom Tromey <tom@tromey.com>
4856
4857 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4858 Declare.
4859 (tui_check_register_values): Don't declare.
4860 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4861 from tui_check_register_values.
4862 * tui/tui-hooks.c (tui_register_changed): Update.
4863
4864 2019-08-20 Tom Tromey <tom@tromey.com>
4865
4866 * tui/tui-regs.c (tui_reg_layout): Move later.
4867 (tui_show_registers): Don't enable TUI mode or change layout.
4868
4869 2019-08-20 Tom Tromey <tom@tromey.com>
4870
4871 * tui/tui-regs.h (struct tui_data_item_window)
4872 <~tui_data_item_window>: Remove.
4873 <content>: Now a unique_xmalloc_ptr.
4874 * tui/tui-regs.c (tui_register_format): Return a
4875 unique_xmalloc_ptr.
4876 (tui_get_register): Update.
4877 (~tui_data_item_window): Remove.
4878 (tui_data_window::display_registers_from, tui_display_register):
4879 Update.
4880 * tui/tui-io.h (tui_expand_tabs): Update.
4881 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4882 Remove "col" parameter.
4883
4884 2019-08-20 Tom Tromey <tom@tromey.com>
4885
4886 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4887 field.
4888 * tui/tui-regs.c (~tui_data_item_window): Update.
4889
4890 2019-08-20 Tom Tromey <tom@tromey.com>
4891
4892 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4893 earlier.
4894
4895 2019-08-20 Tom Tromey <tom@tromey.com>
4896
4897 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4898
4899 2019-08-20 Tom Tromey <tom@tromey.com>
4900
4901 * tui/tui-source.h (struct tui_source_window): Update.
4902 * tui/tui-regs.c (tui_show_registers): Update.
4903 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4904 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4905 (NO_REGS_STRING): Remove defines.
4906
4907 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4908
4909 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4910 unnecessary thread walk if remote doesn't support the packet.
4911
4912 2019-08-19 Tom Tromey <tromey@adacore.com>
4913
4914 * python/py-value.c (value_has_field): Fix indentation.
4915
4916 2019-08-19 Tom Tromey <tromey@adacore.com>
4917
4918 * printcmd.c (do_one_display, info_display_command): Update.
4919 * block.h (contained_in): Return bool. Add allow_nested
4920 parameter.
4921 * block.c (contained_in): Return bool. Add allow_nested
4922 parameter.
4923
4924 2019-08-19 Tom Tromey <tom@tromey.com>
4925
4926 * configure: Rebuild.
4927 * configure.ac: Disallow the combination of -static-libstdc++ and
4928 source highlight.
4929 * source-cache.c (get_language_name): Handle rust.
4930 (source_cache::get_source_lines): Ignore highlighting exceptions.
4931
4932 2019-08-16 Tom Tromey <tom@tromey.com>
4933
4934 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4935 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4936 (struct tui_source_window_base) <make_visible, refresh_window,
4937 resize>: Remove methods.
4938 <execution_info>: Remove field.
4939 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4940 (tui_show_source_line, tui_source_window_base)
4941 (~tui_source_window_base): Update.
4942 (tui_source_window_base::resize)
4943 (tui_source_window_base::make_visible)
4944 (tui_source_window_base::refresh_window): Remove.
4945 (tui_source_window_base::update_exec_info): Update.
4946 * tui/tui-source.c (tui_source_window::set_contents): Update.
4947 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4948
4949 2019-08-16 Tom Tromey <tom@tromey.com>
4950
4951 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4952 deprecated_query_hook.
4953
4954 2019-08-16 Tom Tromey <tom@tromey.com>
4955
4956 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4957 (tui_update_source_windows_with_line): Update.
4958 * tui/tui-source.h (struct tui_source_window)
4959 <show_symtab_source>: Declare.
4960 (tui_show_symtab_source): Don't declare.
4961 * tui/tui-source.c (tui_show_symtab_source): Rename from
4962 tui_show_symtab_source.
4963
4964 2019-08-16 Tom Tromey <tom@tromey.com>
4965
4966 * tui/tui-winsource.h (struct tui_source_window_base)
4967 <set_contents>: Declare.
4968 * tui/tui-winsource.c
4969 (tui_source_window_base::update_source_window_as_is): Update.
4970 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4971 Declare.
4972 (tui_set_source_content): Don't declare.
4973 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4974 tui_set_source_content.
4975 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4976 Declare.
4977 (tui_set_disassem_content): Don't declare.
4978 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4979 tui_set_disassem_content.
4980
4981 2019-08-16 Tom Tromey <tom@tromey.com>
4982
4983 * tui/tui-winsource.h (struct tui_source_window_base)
4984 <update_breakpoint_info>: Declare.
4985 (tui_update_breakpoint_info): Don't declare.
4986 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4987 (tui_update_all_breakpoint_info): Update.
4988 (tui_source_window_base::update_breakpoint_info): Rename from
4989 tui_update_breakpoint_info.
4990 (tui_source_window_base::update_exec_info): Update.
4991
4992 2019-08-16 Tom Tromey <tom@tromey.com>
4993
4994 * tui/tui-winsource.h (struct tui_source_window_base)
4995 <update_source_window>: Declare.
4996 (tui_update_source_window): Don't declare.
4997 * tui/tui-winsource.c
4998 (tui_source_window_base::update_source_window): Rename from
4999 tui_update_source_window.
5000 (tui_source_window_base::rerender): Update.
5001 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5002 * tui/tui-disasm.c (tui_show_disassem)
5003 (tui_show_disassem_and_update_source)
5004 (tui_disasm_window::maybe_update): Update.
5005
5006 2019-08-16 Tom Tromey <tom@tromey.com>
5007
5008 * tui/tui-winsource.h (struct tui_source_window_base)
5009 <update_source_window_as_is>: Declare.
5010 (tui_update_source_window_as_is): Don't declare.
5011 * tui/tui-winsource.c (tui_update_source_window): Update
5012 (tui_source_window_base::update_source_window_as_is): Rename from
5013 tui_update_source_window_as_is.
5014 (tui_source_window_base::refill): Update.
5015 * tui/tui-source.c (tui_show_symtab_source): Update.
5016 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5017 Update.
5018
5019 2019-08-16 Tom Tromey <tom@tromey.com>
5020
5021 * tui/tui-winsource.h (tui_update_source_window)
5022 (tui_update_source_window_as_is): Remove "noerror" parameter.
5023 * tui/tui-winsource.c (tui_update_source_window)
5024 (tui_update_source_window_as_is): Remove "noerror" parameter.
5025 (tui_update_source_windows_with_addr)
5026 (tui_update_source_windows_with_line)
5027 (tui_source_window_base::rerender)
5028 (tui_source_window_base::refill): Update.
5029 * tui/tui-source.h (tui_set_source_content)
5030 (tui_show_symtab_source): Remove "noerror" parameter.
5031 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5032 parameter.
5033 (tui_show_symtab_source): Likewise.
5034 (tui_source_window::maybe_update): Update.
5035 * tui/tui-disasm.c (tui_show_disassem)
5036 (tui_show_disassem_and_update_source)
5037 (tui_disasm_window::do_scroll_vertical)
5038 (tui_disasm_window::maybe_update): Update.
5039
5040 2019-08-16 Tom Tromey <tom@tromey.com>
5041
5042 * tui/tui.c (tui_is_window_visible): Update.
5043 * tui/tui-wingeneral.c (tui_make_window)
5044 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5045 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5046 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5047 (tui_set_win_height_command, parse_scrolling_args): Update.
5048 * tui/tui-source.c (tui_source_window::style_changed): Update.
5049 * tui/tui-regs.c (tui_show_registers)
5050 (tui_data_window::first_data_item_displayed)
5051 (tui_data_window::delete_data_content_windows)
5052 (tui_check_register_values, tui_reg_command): Update.
5053 * tui/tui-disasm.c (tui_show_disassem): Update.
5054 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5055 method.
5056 <is_visible>: Remove field.
5057 * tui/tui-data.c (tui_next_win, tui_prev_win)
5058 (tui_delete_invisible_windows): Update.
5059
5060 2019-08-16 Tom Tromey <tom@tromey.com>
5061
5062 * tui/tui-winsource.h (struct tui_source_window_base)
5063 <m_has_locator>: Remove.
5064 * tui/tui-layout.c (show_source_disasm_command, show_data)
5065 (show_source_or_disasm_and_command): Update.
5066
5067 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5068
5069 * NEWS (Other MI changes): New subsection.
5070 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5071 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5072 * arch-utils.c (default_get_pc_address_flags): New function.
5073 * arch-utils.h (default_get_pc_address_flags): New declaration.
5074 * gdbarch.sh: Add get_pc_address_flags.
5075 * gdbarch.c: Regenerate.
5076 * gdbarch.h: Likewise.
5077 * stack.c (print_pc): New function.
5078 (print_frame_info) (print_frame): Call print_pc.
5079
5080 2019-08-16 Tom de Vries <tdevries@suse.de>
5081
5082 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5083 print_objfile_section_info.
5084
5085 2019-08-15 Tom Tromey <tom@tromey.com>
5086
5087 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5088 calling update_cmdwin_start_line.
5089 * tui/tui-winsource.h (struct tui_source_window_base)
5090 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5091 <rerender>: Declare.
5092 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5093 Call rerender.
5094 (tui_source_window_base::set_new_height): Remove.
5095 (tui_source_window_base::rerender): Rename from
5096 do_make_visible_with_new_height.
5097 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5098 resize method.
5099 (tui_win_info::make_invisible_and_set_new_height)
5100 (tui_win_info::make_visible_with_new_height): Remove.
5101 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5102 Declare.
5103 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5104 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5105 do_make_visible_with_new_height>: Don't declare.
5106 <rerender>: Declare.
5107 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5108 set_new_height.
5109 (tui_data_window::do_make_visible_with_new_height): Remove.
5110 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5111 call tui_show_locator_content.
5112 (tui_gen_win_info::resize): Call rerender.
5113 (show_source_or_disasm_and_command): Don't call
5114 tui_show_locator_content.
5115 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5116 method.
5117 (struct tui_win_info) <rerender>: Declare.
5118 <set_new_height, make_invisible_and_set_new_height,
5119 make_visible_with_new_height>: Don't declare.
5120 * tui/tui-data.c (tui_win_list::rerender): New method.
5121 * tui/tui-command.h (struct tui_cmd_window)
5122 <do_make_visible_with_new_height>: Don't declare.
5123 * tui/tui-command.c
5124 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5125
5126 2019-08-15 Tom Tromey <tromey@adacore.com>
5127
5128 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5129 * ada-lang.c (ada_enum_name): Likewise.
5130
5131 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5132
5133 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5134 leading underscore.
5135 (GdbOutputErrorFile): Likewise.
5136 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5137 accordingly.
5138 (execute_unwinders): Rename to have a leading underscore.
5139 (auto_load_packages): Likewise.
5140 (global scope): Adjust call to auto_load_packages accordingly.
5141 (GdbSetPythonDirectory): Likewise.
5142 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5143 instead of execute_unwinders.
5144
5145 2019-08-15 Tom Tromey <tom@tromey.com>
5146
5147 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5148 (show_data): Don't change window visibility.
5149 (tui_gen_win_info::resize): Remove special case for command
5150 window. Use wresize, when available.
5151 (show_source_or_disasm_and_command): Don't change window
5152 visibility.
5153 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5154 <make_visible>: New method.
5155 * tui/tui-command.c (tui_cmd_window::resize): New method.
5156
5157 2019-08-15 Tom Tromey <tom@tromey.com>
5158
5159 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5160 (struct tui_source_windows): New.
5161 * tui/tui-winsource.c (tui_display_main): Update.
5162 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5163 (new_height_ok, parse_scrolling_args): Update.
5164 * tui/tui-layout.c (show_layout, show_data): Update.
5165 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5166 (tui_add_to_source_windows): Don't declare.
5167 * tui/tui-data.c (source_windows, tui_source_windows)
5168 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5169
5170 2019-08-15 Tom Tromey <tom@tromey.com>
5171
5172 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5173 Rename from reset.
5174 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5175 * tui/tui-layout.c (show_source_disasm_command, show_data):
5176 Update.
5177 (tui_gen_win_info::resize): Rename.
5178 (show_source_or_disasm_and_command): Update.
5179 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5180 reset.
5181
5182 2019-08-15 Tom Tromey <tom@tromey.com>
5183
5184 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5185 * tui/tui-interp.c (tui_interp::init): Don't call
5186 tui_initialize_static_data.
5187 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5188
5189 2019-08-15 Tom Tromey <tom@tromey.com>
5190
5191 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5192 examine tui_win_list.
5193
5194 2019-08-15 Tom Tromey <tom@tromey.com>
5195
5196 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5197 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5198 tui_clear_source_content.
5199 (tui_clear_source_content): Remove.
5200 (tui_source_window_base::do_erase_source_content): Hoist call to
5201 content.clear().
5202 * tui/tui-stack.c (tui_show_frame_info): Don't call
5203 tui_clear_source_content.
5204
5205 2019-08-15 Tom Tromey <tom@tromey.com>
5206
5207 * tui/tui-winsource.h (struct tui_source_window_base)
5208 <do_erase_source_content>: New method.
5209 <erase_source_content>: New method.
5210 (tui_erase_source_content): Don't declare.
5211 * tui/tui-winsource.c (tui_clear_source_content): Update.
5212 (tui_source_window_base::do_erase_source_content): Rename from
5213 tui_erase_source_content.
5214 (tui_source_window_base::show_source_content): Update.
5215 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5216 * tui/tui-source.h (struct tui_source_window)
5217 <erase_source_content>: New method.
5218 * tui/tui-disasm.h (struct tui_disasm_window)
5219 <erase_source_content>: New method.
5220
5221 2019-08-15 Tom Tromey <tom@tromey.com>
5222
5223 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5224 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5225 constructor.
5226 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5227 * tui/tui-source.c (tui_set_source_content): Update.
5228 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5229
5230 2019-08-15 Tom Tromey <tom@tromey.com>
5231
5232 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5233 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5234 tui-source.c.
5235 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5236 Declare.
5237 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5238 method.
5239 (tui_source_window::maybe_update): Update.
5240
5241 2019-08-15 Tom Tromey <tom@tromey.com>
5242
5243 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5244 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5245 tui-disasm.c.
5246 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5247 Declare.
5248 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5249 method.
5250 (tui_disasm_window::maybe_update): Update.
5251
5252 2019-08-15 Tom Tromey <tom@tromey.com>
5253
5254 * tui/tui-winsource.h (struct tui_source_window_base)
5255 <maybe_update>: Declare.
5256 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5257 method.
5258 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5259 Declare.
5260 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5261 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5262 Declare.
5263 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5264
5265 2019-08-15 Tom Tromey <tom@tromey.com>
5266
5267 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5268
5269 2019-08-15 Tom Tromey <tom@tromey.com>
5270
5271 * tui/tui-wingeneral.c: Include tui-stack.h.
5272 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5273 (struct tui_locator_window): Move from tui-data.h.
5274 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5275 (tui_initialize_static_data): Move from tui-data.c.
5276 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5277 (struct tui_locator_window): Move to tui-stack.c.
5278 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5279 (tui_initialize_static_data): Move to tui-stack.c.
5280
5281 2019-08-15 Tom Tromey <tom@tromey.com>
5282
5283 * tui/tui-layout.c (show_source_disasm_command)
5284 (show_source_or_disasm_and_command): Use make_visible method, not
5285 tui_make_window.
5286 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5287 Remove.
5288
5289 2019-08-15 Tom Tromey <tom@tromey.com>
5290
5291 * tui/tui-wingeneral.h (tui_make_window): Update.
5292 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5293 parameter.
5294 (tui_gen_win_info::make_visible): Update.
5295 * tui/tui-regs.c (tui_data_window::display_registers_from):
5296 Update.
5297 * tui/tui-layout.c (show_source_disasm_command)
5298 (show_source_or_disasm_and_command): Update.
5299 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5300 (enum tui_box): Remove.
5301 (struct tui_win_info) <can_box>: New method.
5302 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5303 method.
5304
5305 2019-08-15 Tom de Vries <tdevries@suse.de>
5306
5307 * linux-nat-trad.c: Include gdbarch.h.
5308
5309 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5310
5311 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5312 register sizes.
5313
5314 2019-08-14 Tom Tromey <tromey@adacore.com>
5315
5316 * darwin-nat.c: Include gdbarch.h.
5317 * darwin-nat-info.c: Include gdbarch.h.
5318
5319 2019-08-13 Tom Tromey <tom@tromey.com>
5320
5321 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5322 Remove.
5323 * tui/tui-data.c (tui_initialize_static_data): Update.
5324
5325 2019-08-13 Tom Tromey <tom@tromey.com>
5326
5327 * tui/tui-winsource.h (struct tui_exec_info_window)
5328 <~tui_exec_info_window, maybe_allocate_content, get_content,
5329 m_content>: Remove.
5330 (struct tui_source_window_base) <set_exec_info_content,
5331 show_exec_info_content>: Don't declare.
5332 * tui/tui-winsource.c
5333 (tui_exec_info_window::maybe_allocate_content): Remove.
5334 (tui_source_window_base::update_exec_info): Rename from
5335 set_exec_info_content.
5336 (tui_source_window_base::show_exec_info_content)
5337 (tui_source_window_base::update_exec_info): Remove.
5338
5339 2019-08-13 Tom Tromey <tom@tromey.com>
5340
5341 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5342 declare.
5343 * tui/tui-winsource.c (tui_update_source_window_as_is)
5344 (tui_update_source_windows_with_addr, tui_erase_source_content):
5345 Update.
5346 (tui_clear_exec_info_content): Remove.
5347
5348 2019-08-13 Tom Tromey <tom@tromey.com>
5349
5350 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5351 declare.
5352 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5353 call tui_erase_exec_info_content.
5354 (tui_clear_exec_info_content): Rename from
5355 tui_erase_exec_info_content.
5356 (tui_clear_exec_info_content): Delete.
5357
5358 2019-08-13 Tom Tromey <tom@tromey.com>
5359
5360 * tui/tui-winsource.h (struct tui_source_window_base)
5361 <show_exec_info_content>: Declare.
5362 (tui_show_exec_info_content): Don't declare.
5363 * tui/tui-winsource.c
5364 (tui_source_window_base::show_exec_info_content): Rename from
5365 tui_show_exec_info_content.
5366 (tui_source_window_base::update_exec_info): Update.
5367
5368 2019-08-13 Tom Tromey <tom@tromey.com>
5369
5370 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5371 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5372 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5373 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5374 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5375 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5376 ... here.
5377
5378 2019-08-13 Tom Tromey <tom@tromey.com>
5379
5380 * tui/tui-winsource.h (struct tui_source_window_base)
5381 <update_exec_info>: Declare.
5382 (tui_update_exec_info): Don't declare.
5383 * tui/tui-winsource.c (tui_update_source_window_as_is)
5384 (tui_source_window_base::refresh_all)
5385 (tui_update_all_breakpoint_info): Update.
5386 (tui_source_window_base::update_exec_info): Rename from
5387 tui_update_exec_info.
5388 * tui/tui-stack.c (tui_show_frame_info): Update.
5389
5390 2019-08-13 Tom Tromey <tom@tromey.com>
5391
5392 * tui/tui-winsource.h (struct tui_source_window_base)
5393 <set_exec_info_content>: Declare.
5394 (tui_set_exec_info_content): Don't declare.
5395 * tui/tui-winsource.c
5396 (tui_source_window_base::set_exec_info_content): Rename from
5397 tui_set_exec_info_content.
5398 (tui_update_exec_info): Update.
5399
5400 2019-08-13 Tom Tromey <tom@tromey.com>
5401
5402 * tui/tui-winsource.h (struct tui_source_window_base)
5403 <show_source_content>: Declare.
5404 (tui_show_source_content): Don't declare.
5405 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5406 (tui_source_window_base::show_source_content): Rename from
5407 tui_show_source_content.
5408 (tui_source_window_base::refresh_all): Update.
5409 * tui/tui-layout.c (show_source_disasm_command)
5410 (show_source_or_disasm_and_command): Update.
5411
5412 2019-08-13 Tom Tromey <tom@tromey.com>
5413
5414 * tui/tui-winsource.c (tui_erase_source_content)
5415 (tui_show_source_content, tui_source_window_base::refresh_all):
5416 Update.
5417 * tui/tui-wingeneral.h
5418 (tui_check_and_display_highlight_if_needed): Don't declare.
5419 * tui/tui-wingeneral.c
5420 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5421 check_and_display_highlight_if_needed.
5422 * tui/tui-win.c (tui_rehighlight_all)
5423 (tui_win_info::make_visible_with_new_height): Update.
5424 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5425 (tui_data_window::erase_data_content)
5426 (tui_data_window::display_all_data): Update.
5427 * tui/tui-data.h (struct tui_win_info)
5428 <check_and_display_highlight_if_needed>: Declare.
5429
5430 2019-08-13 Tom Tromey <tom@tromey.com>
5431
5432 * tui/tui-win.c (tui_resize_all): Call
5433 tui_delete_invisible_windows.
5434 * tui/tui-layout.c (show_layout): Call
5435 tui_delete_invisible_windows.
5436 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5437 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5438
5439 2019-08-13 Tom Tromey <tom@tromey.com>
5440
5441 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5442 tui_add_win_to_layout.
5443
5444 2019-08-13 Tom Tromey <tom@tromey.com>
5445
5446 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5447 * tui/tui-layout.c (tui_default_win_height): Now static.
5448
5449 2019-08-13 Tom Tromey <tom@tromey.com>
5450
5451 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5452 single switch.
5453 (show_source_disasm_command, show_source_or_disasm_and_command):
5454 Don't check current layout.
5455
5456 2019-08-13 Tom Tromey <tom@tromey.com>
5457
5458 * tui/tui-wingeneral.c (make_all_visible): Remove.
5459 (tui_make_all_invisible): Simplify.
5460 * tui/tui-layout.c (tui_make_all_invisible): Move from
5461 tui-wingeneral.c; simplify.
5462 (show_layout): Hoist call to tui_make_all_invisible.
5463 (show_data): Don't call tui_make_all_invisible.
5464
5465 2019-08-13 Tom Tromey <tom@tromey.com>
5466
5467 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5468 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5469
5470 2019-08-13 Tom Tromey <tom@tromey.com>
5471
5472 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5473 tui-data.c.
5474 (show_source_disasm_command, show_data)
5475 (show_source_or_disasm_and_command): Don't use
5476 tui_set_current_layout_to.
5477 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5478 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5479 tui-layout.c.
5480 (tui_set_current_layout_to): Remove.
5481
5482 2019-08-13 Tom Tromey <tom@tromey.com>
5483
5484 * tui/tui-layout.c (tui_set_layout): Update.
5485 * tui/tui-data.h (struct tui_layout_def): Remove.
5486 (tui_layout_def): Don't declare.
5487 * tui/tui-data.c (layout_def): Remove.
5488 (tui_layout_def): Remove.
5489
5490 2019-08-13 Tom Tromey <tom@tromey.com>
5491
5492 * tui/tui-winsource.h (struct tui_source_window_base)
5493 <clear_detail>: No longer "override".
5494 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5495 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5496 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5497 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5498 Remove.
5499 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5500
5501 2019-08-13 Tom Tromey <tromey@adacore.com>
5502
5503 * tracepoint.c: Don't include readline.h or history.h.
5504
5505 2019-08-12 Tom Tromey <tom@tromey.com>
5506
5507 * configure: Rebuild.
5508 * configure.ac: Check for readline 7.
5509 * NEWS: Mention readline 7 requirement.
5510 * README: Update.
5511
5512 2019-08-12 Tom Tromey <tom@tromey.com>
5513
5514 * mingw-hdep.c (gdb_select): Remove readline hack.
5515
5516 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5517
5518 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5519 when the function fails.
5520
5521 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5522
5523 * s390-tdep.c (s390_type_align): New function.
5524 (s390_gdbarch_init): Set it as type_align gdbarch method.
5525
5526 2019-08-09 Tom de Vries <tdevries@suse.de>
5527
5528 PR gdb/24591
5529 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5530 pc_low with relocation offset.
5531
5532 2019-08-07 Tom Tromey <tromey@adacore.com>
5533
5534 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5535 (print_frame_args): Update.
5536 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5537 Update.
5538 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5539 * frame.h (struct frame_arg): Add initializers.
5540 <error>: Now a unique_xmalloc_ptr.
5541
5542 2019-08-07 Alan Hayward <alan.hayward@arm.com>
5543
5544 * NEWS: Expand the Pointer Authentication entry.
5545 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5546 (aarch64_frame_unmask_lr): ... to this.
5547 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5548 Call aarch64_frame_unmask_lr.
5549 * frame.c (struct frame_info): Add "masked" variable.
5550 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5551 (fprint_frame): Check for masked pc.
5552 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5553 declarations.
5554 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5555 * stack.c (print_frame): Check for masked pc.
5556
5557 2019-08-06 Tom Tromey <tom@tromey.com>
5558
5559 * stabsread.c (patch_block_stabs, read_one_struct_field)
5560 (read_enum_type): Use obstack_strndup.
5561 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5562 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5563 * dwarf2read.c (guess_full_die_structure_name)
5564 (anonymous_struct_prefix): Use obstack_strndup.
5565 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5566 * c-exp.y (yylex): Use obstack_strndup.
5567 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5568 (write_var_or_type): Use obstack_strndup.
5569
5570 2019-08-06 Tom Tromey <tom@tromey.com>
5571
5572 * symfile.c (reread_symbols): Use obstack_strdup.
5573 * stabsread.c (read_type): Use obstack_strdup.
5574 * gdb_obstack.h (obstack_strdup): New overload.
5575 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5576 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5577 (dwarf2_canonicalize_name): Use obstack_strdup.
5578 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5579 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5580 Use obstack_strdup.
5581
5582 2019-08-06 Tom Tromey <tom@tromey.com>
5583
5584 * gdb_obstack.h (obstack_strdup): Define.
5585 * gdb_obstack.c (obstack_strdup): Don't define.
5586
5587 2019-08-06 Tom Tromey <tom@tromey.com>
5588
5589 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5590 obstack_strdup.
5591 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5592 obstack_strdup.
5593 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5594 * stabsread.c (common_block_start): Use obstack_strdup.
5595 * objfiles.c (set_objfile_main_name, objfile): Use
5596 obstack_strdup.
5597 * namespace.c (add_using_directive): Use obstack_strdup.
5598 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5599 * jit.c (finalize_symtab): Use obstack_strdup.
5600 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5601 (guess_partial_die_structure_name, partial_die_info::fixup)
5602 (dwarf2_name): Use obstack_strdup.
5603 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5604 obstack_strdup.
5605 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5606 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5607 obstack_strdup.
5608 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5609
5610 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5611
5612 * unittests/help-doc-selftests.c: New file.
5613 * Makefile.in: Add the new file.
5614
5615 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5616
5617 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5618 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5619 the full first line, except when FOR_VALUE_PREFIX. In this case,
5620 the trailing '.' is not output, and the first character is uppercased.
5621 (print_help_for_command): Update call to print_doc_line.
5622 (print_doc_of_command): Likewise.
5623 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5624 * cli/cli-option.c (append_indented_doc): Do not append newline.
5625 (build_help_option): Append newline after first appended_indented_doc
5626 only if a second call is done.
5627 (build_help): Append 2 new lines before each option, except the first
5628 one.
5629 * compile/compile.c (_initialize_compile): Add new lines after
5630 %OPTIONS%, when not at the end of the help.
5631 Change help doc or code
5632 producing the help doc to respect the invariants.
5633 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5634 Also removed the new line after 'Options:', as all other commands
5635 do not put an empty line between 'Options:' and the first option.
5636 * printcmd.c (_initialize_printcmd): Likewise.
5637 * stack.c (_initialize_stack): Likewise.
5638 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5639 incorrectly telling COMMAND is optional.
5640 * ada-lang.c (_initialize_ada_language): Change help doc or code
5641 producing the help doc to respect the invariants.
5642 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5643 * breakpoint.c (_initialize_breakpoint): Likewise.
5644 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5645 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5646 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5647 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5648 _initialize_cli_style): Likewise.
5649 * corelow.c (core_target_info): Likewise.
5650 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5651 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5652 * filesystem.c (_initialize_filesystem): Likewise.
5653 * frame.c (_initialize_frame): Likewise.
5654 * gnu-nat.c (add_task_commands): Likewise.
5655 * infcall.c (_initialize_infcall): Likewise.
5656 * infcmd.c (_initialize_infcmd): Likewise.
5657 * interps.c (_initialize_interpreter): Likewise.
5658 * language.c (_initialize_language): Likewise.
5659 * linux-fork.c (_initialize_linux_fork): Likewise.
5660 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5661 * maint.c (_initialize_maint_cmds): Likewise.
5662 * memattr.c (_initialize_mem): Likewise.
5663 * printcmd.c (_initialize_printcmd): Likewise.
5664 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5665 _RegEx): Likewise.
5666 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5667 * record-btrace.c (_initialize_record_btrace): Likewise.
5668 * record-full.c (_initialize_record_full): Likewise.
5669 * record.c (_initialize_record): Likewise.
5670 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5671 * regcache.c (_initialize_regcache): Likewise.
5672 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5673 _initialize_remote): Likewise.
5674 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5675 * serial.c (_initialize_serial): Likewise.
5676 * skip.c (_initialize_step_skip): Likewise.
5677 * source.c (_initialize_source): Likewise.
5678 * stack.c (_initialize_stack): Likewise.
5679 * symfile.c (_initialize_symfile): Likewise.
5680 * symtab.c (_initialize_symtab): Likewise.
5681 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5682 * top.c (init_main): Likewise.
5683 * tracefile-tfile.c (tfile_target_info): Likewise.
5684 * tracepoint.c (_initialize_tracepoint): Likewise.
5685 * tui/tui-win.c (_initialize_tui_win): Likewise.
5686 * utils.c (add_internal_problem_command): Likewise.
5687 * valprint.c (value_print_option_defs): Likewise.
5688
5689 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5690
5691 PR build/24886
5692 * configure.ac: Drop enable-libmcheck support.
5693 * configure, config.in: Rebuild.
5694 * libmcheck.m4: Remove.
5695 * acinclude.m4: Don't include it.
5696 * Makefile.in: Don't distribute it.
5697 * top.c (print_gdb_configuration): Don't mention it.
5698
5699 2019-08-06 Tom Tromey <tom@tromey.com>
5700
5701 * utils.c (set_output_style): Sometimes pass stream to
5702 emit_style_escape.
5703 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5704 * record-btrace.c (btrace_insn_history): Update.
5705 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5706 method.
5707 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5708 Update initializers.
5709 <m_uiout>: New field.
5710 <m_di>: Move lower.
5711 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5712 Remove "uiout" parameter.
5713 (dump_insns): Update.
5714 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5715 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5716
5717 2019-08-06 Christian Biesinger <cbiesinger@google.com>
5718
5719 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5720 (error_in_psymtab_expansion): Likewise.
5721 (lookup_symbol_via_quick_fns): Likewise.
5722 (basic_lookup_transparent_type_quick): Likewise.
5723 (basic_lookup_transparent_type_1): Likewise.
5724
5725 2019-08-06 Tom Tromey <tromey@adacore.com>
5726
5727 * source.c (last_source_error): Now bool.
5728 (print_source_lines_base): Make "noprint" bool. Only open
5729 source file when last_source_visited changes.
5730
5731 2019-08-06 Tom Tromey <tromey@adacore.com>
5732
5733 * annotate.c (annotate_source_line): Use g_source_cache.
5734 * source-cache.c (source_cache::get_plain_source_lines): Change
5735 parameters. Populate m_offset_cache.
5736 (source_cache::ensure): New method.
5737 (source_cache::get_line_charpos): New method.
5738 (extract_lines): Move lower. Change parameters.
5739 (source_cache::get_source_lines): Move lower.
5740 * source-cache.h (class source_cache): Update comment.
5741 <get_line_charpos>: New method.
5742 <get_source_lines>: Update comment.
5743 <clear>: Clear m_offset_cache.
5744 <get_plain_source_lines>: Change parameters.
5745 <ensure>: New method
5746 <m_offset_cache>: New member.
5747 * source.c (forget_cached_source_info_for_objfile): Update.
5748 (info_source_command): Use g_source_cache.
5749 (find_source_lines, open_source_file_with_line_charpos): Remove.
5750 (print_source_lines_base, search_command_helper): Use g_source_cache.
5751 * source.h (open_source_file_with_line_charpos): Don't declare.
5752 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5753 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5754 Use g_source_cache.
5755
5756 2019-08-06 Tom Tromey <tromey@adacore.com>
5757
5758 * source-cache.c (source_cache::get_plain_source_lines):
5759 Remove "first_line" and "last_line" parameters.
5760 (source_cache::get_source_lines): Cache plain text.
5761 * source-cache.h (class source_cache)
5762 <get_plain_source_lines>: Update.
5763
5764 2019-08-06 Tom Tromey <tromey@adacore.com>
5765
5766 * source-cache.c (extract_lines): No longer a method.
5767 Changed type of parameter. Include final newline.
5768 (selftests::extract_lines_test): New function.
5769 (_initialize_source_cache): Likewise.
5770 * source-cache.h (class source_cache)
5771 <extract_lines>: Don't declare.
5772
5773 2019-08-06 Tom Tromey <tromey@adacore.com>
5774
5775 * breakpoint.c (init_breakpoint_sal): Update.
5776 (breakpoint): Update.
5777 * breakpoint.h (struct breakpoint) <filter>: Now a
5778 unique_xmalloc_ptr.
5779
5780 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5781
5782 * NEWS: Mention dictionary access on blocks.
5783 * python/py-block.c (blpy_getitem): New function.
5784 (block_object_as_mapping): New struct.
5785 (block_object_type): Use new struct for tp_as_mapping field.
5786
5787 2019-08-05 Christian Biesinger <cbiesinger@google.com>
5788
5789 * objfiles.h (objfile): Add a comment describing partial symbols.
5790
5791 2019-08-05 Tom Tromey <tromey@adacore.com>
5792
5793 * compile/compile.c (_initialize_compile): Use _(), not N_().
5794 * thread.c (_initialize_thread): Use _(), not N_().
5795 * stack.c (_initialize_stack): Use _(), not N_().
5796 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5797
5798 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5799
5800 * dwarf2read.c (struct dw2_symtab_iterator):
5801 <want_specific_block>: Remove.
5802 <block_index>: Change type to gdb::optional.
5803 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5804 change type of BLOCK_INDEX parameter to gdb::optional.
5805 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5806 (dw2_lookup_symbol): Don't pass argument for
5807 WANT_SPECIFIC_BLOCK.
5808 (dw2_expand_symtabs_for_function): Don't pass argument for
5809 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5810 (class dw2_debug_names_iterator)
5811 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5812 parameter, change BLOCK_INDEX type to gdb::optional.
5813 <m_want_specific_block>: Remove.
5814 <m_block_index>: Change type to gdb::optional.
5815 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5816 gdb::optional. Re-write in function of gdb::optional.
5817 (dw2_debug_names_lookup_symbol): Don't pass argument for
5818 WANT_SPECIFIC_BLOCK.
5819 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5820 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5821 BLOCK_INDEX.
5822
5823 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5824
5825 * NEWS: Mention changes to "info sources" command.
5826
5827 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5828
5829 * symtab.c (filename_partial_match_opts): New struct type.
5830 (struct output_source_filename_data): New members
5831 regexp, c_regexp, partial_match.
5832 (output_source_filename): Use new members to decide to print file.
5833 (info_sources_option_defs): New variable.
5834 (make_info_sources_options_def_group, print_info_sources_header,
5835 info_sources_command_completer):
5836 New functions.
5837 (info_sources_command): Read new optional arguments.
5838 (_initialize_symtab): Update info sources help.
5839
5840 2019-08-02 Alexandre Oliva <oliva@adacore.com>
5841
5842 * ada-lang.c (exception_support_info_v0): Renamed from...
5843 (default_exception_support_info): ... this. Create new
5844 definition for v1.
5845 (ada_has_this_exception_support): Look up catch_handlers_sym.
5846 (ada_exception_support_info_sniffer): Try v0 after default.
5847
5848 2019-08-01 Tom Tromey <tromey@adacore.com>
5849
5850 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5851 gdbarch.h.
5852
5853 2019-08-01 Christian Biesinger <cbiesinger@google.com>
5854
5855 * s12z-tdep.c: Fix include path for s12z-opc.h.
5856
5857 2019-08-01 Alan Hayward <alan.hayward@arm.com>
5858
5859 * NEWS: Require GNU make 3.82.
5860
5861 2019-07-16 Tom Tromey <tom@tromey.com>
5862
5863 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5864 declare.
5865
5866 2019-07-30 Tom Tromey <tromey@adacore.com>
5867
5868 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5869
5870 2019-07-30 Kevin Buettner <kevinb@redhat.com>
5871
5872 * printcmd.c (print_address_symbolic): Print negative offsets.
5873 (build_address_symbolic): Force signed arithmetic when computing
5874 offset.
5875
5876 2019-07-30 Christian Biesinger <cbiesinger@google.com>
5877
5878 PR/24474: Add a function to lookup static variables.
5879 * NEWS: Mention this new function.
5880 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5881 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5882 * python/python.c (python_GdbMethods): Add new function.
5883
5884 2019-07-29 Christian Biesinger <cbiesinger@google.com>
5885
5886 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5887 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5888 (objfpy_lookup_static_symbol): New function.
5889 (objfile_object_methods): Add new functions.
5890
5891 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5892
5893 * NEWS: Mention 'set|show print frame-info'. Mention new
5894 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5895 backtrace argument. Mention that python frame filtering code
5896 is now consistent with what 'backtrace' command prints.
5897
5898 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5899
5900 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5901 comments.
5902 (print_frame_info_auto, print_frame_info_source_line,
5903 print_frame_info_location, print_frame_info_source_and_location,
5904 print_frame_info_location_and_address, print_frame_info_short_location):
5905 New declarations.
5906 (struct frame_print_options): New member print_frame_info.
5907 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5908 * stack.h (get_user_print_what_frame_info): New declaration.
5909 (frame_show_address): New declaration.
5910 * stack.c (print_frame_arguments_choices): New value 'presence'.
5911 (print_frame_info_auto, print_frame_info_source_line,
5912 print_frame_info_location, print_frame_info_source_and_location,
5913 print_frame_info_location_and_address, print_frame_info_short_location,
5914 print_frame_info_choices, print_frame_info_print_what): New definitions.
5915 (print_frame_args): Only print dots for args if print frame-arguments
5916 is 'presence'.
5917 (frame_print_option_defs): New element for "frame-info".
5918 (get_user_print_what_frame_info): New function.
5919 (frame_show_address): Make non static. Move comment to stack.h.
5920 (print_frame_info_to_print_what): New function.
5921 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5922 to decide what to print.
5923 (backtrace_command_1): Handle the new print_frame_arguments_presence
5924 value.
5925 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5926 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5927 (py_print_frame): In non-mi mode, use LOCATION as default for
5928 print_what, similarly to frame information printed directly by
5929 backtrace command. Handle frame-info user option in non MI mode.
5930
5931 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5932
5933 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5934 Add case for debugging 32-bit target on 64-bit host. Revise
5935 comment.
5936
5937 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5938
5939 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5940 instead of find_function_entry_range_from_pc.
5941
5942 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5943
5944 * stack.c (find_frame_funname): Remove code which preferred
5945 minsym over symtab sym in "certain pathological cases".
5946
5947 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5948 parameter. Change type of "do_demangle" to bool.
5949 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5950 Pass suitable "prefer_sym_over_minsym" flag to
5951 build_address_symbolic(). Don't output "+" for negative offsets.
5952 * printcmd.c (print_address_symbolic): Update invocation of
5953 build_address_symbolic to include a "prefer_sym_over_minsym"
5954 flag.
5955 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5956 Restrict cases in which use of minimal symbol is preferred to that
5957 of a found symbol. Update comments.
5958
5959 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5960 for entry pc when entry pc is out of range for that FDE.
5961
5962 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5963
5964 PR gdb/24839:
5965 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5966 type.
5967
5968 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5969
5970 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5971 this function's Python signature.
5972
5973
5974 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5975
5976 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5977 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5978 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5979 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5980 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5981
5982
5983 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5984
5985 * h8300-tdep.c (h8300_register_name_common): New.
5986 h8300_register_name): Use h8300_register_name_common.
5987 (h8300s_register_name): Likewise.
5988 (h8300sx_register_name): Likewise.
5989 (h8300h_register_nam): New.
5990 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5991
5992
5993 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5994
5995 * arm-tdep.c (arm_skip_cmse_entry): New function.
5996 (arm_is_sgstubs_section): New function.
5997 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5998
5999 2019-07-22 Tom Tromey <tom@tromey.com>
6000
6001 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6002 Don't self-assign.
6003
6004 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6005
6006 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6007 type_print.
6008
6009 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6010
6011 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6012 so that GDB doesn't match any msymbols when searching in the
6013 TYPES_DOMAIN.
6014 (print_symbol_info): Print using typedef_print or type_print based
6015 on the type of the symbol. Add updated FIXME comment moved from...
6016 (_initialize_symtab): ... move and update FIXME comment to above.
6017
6018 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6019
6020 * NEWS: Mention adding -q option to "info types".
6021 * symtab.c (struct info_types_options): New struct.
6022 (info_types_options_defs): New variable.
6023 (make_info_types_options_def_group): New function.
6024 (info_types_command): Use gdb::option framework to parse options.
6025 (info_types_command_completer): New function.
6026 (_initialize_symtab): Extend the help text on "info types" and
6027 register command completer.
6028
6029 2019-07-21 Christian Biesinger <cbiesinger@google.com>
6030
6031 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6032 (lookup_symbol_in_objfile): Change int to block_enum and add a
6033 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6034
6035 2019-07-20 Christian Biesinger <cbiesinger@google.com>
6036
6037 * MAINTAINERS (Write After Approval): Add self.
6038
6039 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6040
6041 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6042 instruction to the dummy code region.
6043
6044 2019-07-19 Tom Tromey <tromey@adacore.com>
6045
6046 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6047 (ARGSUSED, PARAMS, __func__): Remove rules.
6048
6049 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6050
6051 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6052 * features/arm/arm-with-iwmmxt.c: Remove.
6053 * features/arm/arm-with-iwmmxt.xml: Remove.
6054 * features/arm/arm-with-m-fpa-layout.c: Remove.
6055 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6056 * features/arm/arm-with-m-vfp-d16.c: Remove.
6057 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6058 * features/arm/arm-with-m.c: Remove.
6059 * features/arm/arm-with-m.xml: Remove.
6060 * features/arm/arm-with-neon.c: Remove.
6061 * features/arm/arm-with-neon.xml: Remove.
6062 * features/arm/arm-with-vfpv2.c: Remove.
6063 * features/arm/arm-with-vfpv2.xml: Remove.
6064 * features/arm/arm-with-vfpv3.c: Remove.
6065 * features/arm/arm-with-vfpv3.xml: Remove.
6066
6067 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6068
6069 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6070
6071 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6072
6073 * arch/aarch32.c (aarch32_create_target_description): Create
6074 target descriptions using features.
6075 * arch/arm.c (arm_create_target_description)
6076 (arm_create_mprofile_target_description): Likewise.
6077 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6078
6079 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6080
6081 * Makefile.in: Add new files.
6082 * aarch32-tdep.c: New file.
6083 * aarch32-tdep.h: New file.
6084 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6085 Call aarch32_read_description.
6086 * arch/aarch32.c: New file.
6087 * arch/aarch32.h: New file.
6088 * arch/arm.c (arm_create_target_description)
6089 (arm_create_mprofile_target_description): New function.
6090 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6091 (arm_create_target_description)
6092 (arm_create_mprofile_target_description): New declaration.
6093 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6094 read_description functions.
6095 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6096 Likewise.
6097 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6098 * arm-tdep.c (tdesc_arm_list): New variable.
6099 (arm_register_g_packet_guesses): Call create description functions.
6100 (arm_read_description) (arm_read_mprofile_description): New
6101 function.
6102 * arm-tdep.h (arm_read_description)
6103 (arm_read_mprofile_description): Add declaration.
6104 * configure.tgt: Add new files.
6105
6106 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6107
6108 * top.c (new_ui_command): Open specified terminal just once.
6109
6110 2019-07-18 Tom Tromey <tromey@adacore.com>
6111
6112 * symtab.c (main_name): Constify return type.
6113 * symfile.c (set_initial_language): Update.
6114 * symtab.h (main_name): Constify return type.
6115
6116 2019-07-17 Tom Tromey <tom@tromey.com>
6117
6118 * tui/tui-winsource.c (tui_update_source_window)
6119 (tui_update_source_window_as_is)
6120 (tui_update_source_windows_with_line): Remove return.
6121 * tui/tui-disasm.c (tui_show_disassem)
6122 (tui_show_disassem_and_update_source): Remove return.
6123 * tui/tui.c (tui_reset): Remove return.
6124 * tui/tui-wingeneral.c
6125 (tui_check_and_display_highlight_if_needed): Remove return.
6126
6127 2019-07-17 Tom Tromey <tom@tromey.com>
6128
6129 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6130
6131 2019-07-17 Tom Tromey <tom@tromey.com>
6132
6133 * tui/tui-winsource.h (struct tui_exec_info_window)
6134 (struct tui_source_window_base): Move from tui-data.h.
6135 * tui/tui-winsource.c: Move many method definitions from
6136 elsewhere. Remove "structuring" comments.
6137 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6138 (tui_source_window_base::refresh_window): Move to
6139 tui-winsource.c.
6140 * tui/tui-win.c (tui_source_window_base::refresh_all)
6141 (tui_source_window_base::update_tab_width)
6142 (tui_source_window_base::set_new_height)
6143 (tui_source_window_base::do_make_visible_with_new_height): Move to
6144 tui-winsource.c.
6145 * tui/tui-source.h: Update.
6146 * tui/tui-source.c (tui_source_window_base::reset): Move to
6147 tui-winsource.c.
6148 * tui/tui-disasm.h: Update.
6149 * tui/tui-data.h (struct tui_exec_info_window): Move to
6150 tui-winsource.h.
6151 (struct tui_source_window_base): Likewise.
6152 * tui/tui-data.c (tui_source_window_base::clear_detail)
6153 (tui_source_window_base, ~tui_source_window_base): Move to
6154 tui-winsource.c.
6155
6156 2019-07-17 Tom Tromey <tom@tromey.com>
6157
6158 * tui/tui-win.c (tui_resize_all)
6159 (tui_source_window_base::update_tab_width)
6160 (tui_adjust_win_heights): Update.
6161 (tui_win_info::make_invisible_and_set_new_height): Rename from
6162 make_invisible_and_set_new_height.
6163 * tui/tui-data.h (struct tui_win_info)
6164 <make_invisible_and_set_new_height>: New method.
6165
6166 2019-07-17 Tom Tromey <tom@tromey.com>
6167
6168 * tui/tui.c: Update.
6169 * tui/tui-source.h (struct tui_source_window): Move from
6170 tui-data.h.
6171 * tui/tui-layout.c: Update.
6172 * tui/tui-disasm.c: Update.
6173 * tui/tui-data.h (struct tui_source_window): Move to
6174 tui-source.h.
6175
6176 2019-07-17 Tom Tromey <tom@tromey.com>
6177
6178 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6179 tui-data.h.
6180 * tui/tui-data.h (struct tui_disasm_window): Move to
6181 tui-disasm.h.
6182
6183 2019-07-17 Tom Tromey <tom@tromey.com>
6184
6185 * tui/tui-regs.h (struct tui_data_item_window): Move from
6186 tui-data.h.
6187 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6188 * tui/tui-data.h (struct tui_data_item_window): Move to
6189 tui-regs.h.
6190 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6191
6192 2019-07-17 Tom Tromey <tom@tromey.com>
6193
6194 * tui/tui.c: Update.
6195 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6196 (tui_cmd_window::max_height): Move to tui-command.c.
6197 * tui/tui-layout.c: Update.
6198 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6199 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6200 tui-command.c.
6201 * tui/tui-command.h (struct tui_cmd_window): Move from
6202 tui-data.h.
6203 * tui/tui-command.c: Remove "structuring" comments.
6204 (tui_cmd_window::clear_detail)
6205 (tui_cmd_window::do_make_visible_with_new_height)
6206 (tui_cmd_window::max_height): Move from elsewhere.
6207
6208 2019-07-17 Tom Tromey <tom@tromey.com>
6209
6210 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6211 Now static.
6212 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6213 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6214
6215 2019-07-17 Tom Tromey <tom@tromey.com>
6216
6217 * tui/tui.c: Update.
6218 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6219 tui-regs.c.
6220 * tui/tui-windata.h: Remove file.
6221 * tui/tui-windata.c: Remove file.
6222 * tui/tui-win.c (tui_data_window::set_new_height)
6223 (tui_data_window::do_make_visible_with_new_height): Move to
6224 tui-regs.c.
6225 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6226 * tui/tui-regs.c: Remove "structuring" comments.
6227 (tui_data_window::first_data_item_displayed)
6228 (tui_data_window::delete_data_content_windows)
6229 (tui_data_window::erase_data_content)
6230 (tui_data_window::display_all_data)
6231 (tui_data_window::refresh_all)
6232 (tui_data_window::do_scroll_vertical)
6233 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6234 (tui_data_window::do_make_visible_with_new_height)
6235 (tui_data_window::refresh_window): Move from elsewhere.
6236 (_initialize_tui_regs): Move to end of file.
6237 * tui/tui-layout.c: Update.
6238 * tui/tui-hooks.c: Update.
6239 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6240 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6241 tui-regs.c.
6242 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6243
6244 2019-07-17 Tom Tromey <tom@tromey.com>
6245
6246 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6247 seen.
6248
6249 2019-07-17 Tom Tromey <tom@tromey.com>
6250
6251 * tui/tui-win.c (tui_source_window_base::set_new_height)
6252 (tui_source_window_base::do_make_visible_with_new_height): Use
6253 m_has_locator field directly.
6254 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6255 method.
6256 (struct tui_source_window_base) <has_locator>: Likewise.
6257
6258 2019-07-17 Tom Tromey <tom@tromey.com>
6259
6260 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6261 Don't declare.
6262 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6263 Remove.
6264 * tui/tui-win.c (tui_source_window_base::set_new_height)
6265 (tui_source_window_base::set_new_height)
6266 (make_invisible_and_set_new_height)
6267 (tui_source_window_base::do_make_visible_with_new_height)
6268 (tui_source_window_base::do_make_visible_with_new_height):
6269 Update.
6270 * tui/tui-layout.c (show_source_disasm_command, show_data)
6271 (show_source_or_disasm_and_command): Update.
6272 * tui/tui-layout.c (show_layout): Update.
6273
6274 2019-07-17 Tom Tromey <tom@tromey.com>
6275
6276 * tui/tui-layout.c (make_data_window): Remove.
6277 (show_data): Unify creation and re-initialization cases.
6278
6279 2019-07-17 Tom Tromey <tom@tromey.com>
6280
6281 * tui/tui-layout.c (make_source_window, make_disasm_window):
6282 Remove.
6283 (show_data): Unify creation and re-initialization cases.
6284
6285 2019-07-17 Tom Tromey <tom@tromey.com>
6286
6287 * tui/tui-layout.c (make_command_window): Remove.
6288 (show_source_disasm_command, show_source_or_disasm_and_command):
6289 Unify creation and re-initialization cases.
6290
6291 2019-07-17 Tom Tromey <tom@tromey.com>
6292
6293 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6294 creation and re-initialization cases.
6295
6296 2019-07-17 Tom Tromey <tom@tromey.com>
6297
6298 * tui/tui-regs.c (tui_get_register): Return void.
6299
6300 2019-07-17 Tom Tromey <tom@tromey.com>
6301
6302 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6303 Simplify.
6304
6305 2019-07-17 Tom Tromey <tom@tromey.com>
6306
6307 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6308 resetting.
6309
6310 2019-07-17 Tom Tromey <tom@tromey.com>
6311
6312 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6313 * tui/tui-regs.c (tui_reg_layout): New function.
6314 (tui_show_registers, tui_reg_command): Use it.
6315 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6316 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6317 parameters.
6318 (tui_layout_command): Remove.
6319
6320 2019-07-17 Tom Tromey <tom@tromey.com>
6321
6322 * tui/tui-layout.h (tui/tui-layout): Return void.
6323 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6324
6325 2019-07-17 Tom Tromey <tom@tromey.com>
6326
6327 * tui/tui-layout.c (show_source_disasm_command, show_data):
6328 Update.
6329 (reset_locator): Remove.
6330 (show_source_or_disasm_and_command): Update.
6331
6332 2019-07-17 Tom Tromey <tom@tromey.com>
6333
6334 * tui/tui-source.c (tui_source_window_base::reset): Remove
6335 win_type parameter.
6336 * tui/tui-layout.c (make_command_window, make_source_window)
6337 (make_disasm_window, make_data_window)
6338 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6339 (reset_locator, show_source_or_disasm_and_command): Update.
6340 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6341 win_type parameter.
6342 (struct tui_source_window_base) <reset>: Likewise.
6343
6344 2019-07-17 Tom Tromey <tom@tromey.com>
6345
6346 * tui/tui-layout.c (show_source_disasm_command): Use
6347 reset_locator.
6348 (reset_locator): New function.
6349 (init_and_make_win): Remove.
6350 (show_source_or_disasm_and_command): Use reset_locator.
6351
6352 2019-07-17 Tom Tromey <tom@tromey.com>
6353
6354 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6355 condition.
6356 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6357 Remove condition.
6358 * tui/tui-source.c (tui_source_window_base::reset): New method.
6359 * tui/tui-layout.c (make_command_window): Don't call
6360 init_and_make_win.
6361 (make_source_window, make_disasm_window): Don't call
6362 make_source_or_disasm_window.
6363 (make_data_window): Don't call init_and_make_win. Change calling
6364 convention.
6365 (show_source_disasm_command, show_data): Simplify.
6366 (make_source_or_disasm_window): Remove.
6367 (show_source_or_disasm_and_command): Simplify.
6368 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6369 (struct tui_source_window_base) <reset>: Likewise.
6370 <execution_info>: Remove initializer.
6371 * tui/tui-data.c (tui_source_window_base): Initialize
6372 execution_info.
6373
6374 2019-07-17 Tom Tromey <tom@tromey.com>
6375
6376 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6377 variable.
6378
6379 2019-07-17 Tom Tromey <tom@tromey.com>
6380
6381 * tui/tui.c (tui_rl_other_window): Update.
6382 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6383 superclass method first. Always iterate over regs_content.
6384 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6385 method.
6386 * tui/tui-win.c (tui_set_focus_command): Update.
6387
6388 2019-07-17 Tom Tromey <tom@tromey.com>
6389
6390 * tui/tui-win.c (tui_set_focus_command): Rename from
6391 tui_set_focus. Call tui_enable.
6392 (tui_set_focus_command): Remove.
6393
6394 2019-07-17 Tom Tromey <tom@tromey.com>
6395
6396 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6397 refresh_window.
6398 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6399 touchwin.
6400 (tui_data_window::refresh_window): Call refresh_window on data
6401 items. Always call superclass refresh_window.
6402 (tui_win_info::refresh): Remove.
6403 (tui_source_window_base::refresh_window): Update.
6404 (tui_refresh_all): Update.
6405 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6406 refresh_window.
6407 (show_source_or_disasm_and_command): Likewise.
6408 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6409 (struct tui_source_window_base) <refresh>: Likewise.
6410
6411 2019-07-17 Tom Tromey <tom@tromey.com>
6412
6413 * tui/tui-winsource.c (tui_clear_source_content)
6414 (tui_show_source_content): Update.
6415 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6416 whether content is empty.
6417 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6418 Remove.
6419
6420 2019-07-17 Tom Tromey <tom@tromey.com>
6421
6422 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6423 window's contents.
6424 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6425 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6426
6427 2019-07-17 Tom Tromey <tom@tromey.com>
6428
6429 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6430 (struct tui_data_item_window): Update.
6431
6432 2019-07-17 Tom Tromey <tom@tromey.com>
6433
6434 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6435 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6436 defines.
6437
6438 2019-07-17 Tom Tromey <tom@tromey.com>
6439
6440 * tui/tui-winsource.h (tui_erase_source_content)
6441 (tui_clear_source_content): Remove "display_prompt" parameter.
6442 * tui/tui-winsource.c (tui_update_source_window_as_is)
6443 (tui_update_source_windows_with_addr): Update.
6444 (tui_clear_source_content): Remove "display_prompt" parameter.
6445 (tui_erase_source_content): Likewise. Simplify.
6446 (tui_show_source_content): Update.
6447 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6448 * tui/tui-stack.c (tui_show_frame_info): Update.
6449 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6450 Remove defines.
6451
6452 2019-07-17 Tom Tromey <tom@tromey.com>
6453
6454 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6455 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6456 parameter.
6457 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6458 parameter.
6459
6460 2019-07-17 Tom Tromey <tom@tromey.com>
6461
6462 * tui/tui-winsource.c (tui_clear_source_content)
6463 (tui_show_source_content, tui_show_exec_info_content)
6464 (tui_clear_exec_info_content): Update.
6465 * tui/tui-stack.c (tui_show_locator_content): Update.
6466 (tui_show_frame_info): Update.
6467 * tui/tui-source.h (tui_source_window): Don't declare.
6468 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6469 from tui_source_is_displayed.
6470 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6471 Remove field.
6472 (struct tui_source_window_base) <content_in_use>: New field. Now
6473 bool.
6474 (struct tui_source_window) <showing_source_p>: New method.
6475 (TUI_SRC_WIN): Change cast.
6476 * tui/tui-data.c (tui_initialize_static_data): Update.
6477
6478 2019-07-17 Tom Tromey <tom@tromey.com>
6479
6480 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6481 location_matches_p.
6482 * tui/tui-source.c (tui_source_window::location_matches_p): New
6483 method.
6484 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6485 method.
6486 * tui/tui-data.h (struct tui_source_window_base)
6487 <location_matches_p>: New method.
6488 (struct tui_source_window, struct tui_disasm_window)
6489 <location_matches_p>: Likewise.
6490
6491 2019-07-17 Tom Tromey <tom@tromey.com>
6492
6493 * tui/tui-win.c (tui_set_win_height_command): Rename from
6494 tui_set_win_height.
6495 (tui_set_win_height_command): Remove.
6496
6497 2019-07-17 Tom Tromey <tom@tromey.com>
6498
6499 * tui/tui-source.c (tui_source_window): New constructor. Add
6500 observer.
6501 (~tui_source_window): New destructor.
6502 (tui_source_window::style_changed): New method.
6503 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6504 (tui_attach_detach_observers): Update.
6505 * tui/tui-data.h (struct tui_source_window): Make constructor not
6506 inline. Add destructor.
6507 (struct tui_source_window) <style_changed>: New method.
6508 <m_observable>: New member.
6509
6510 2019-07-17 Tom Tromey <tom@tromey.com>
6511
6512 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6513 * tui/tui-win.c (tui_resize_all): Fix typo.
6514
6515 2019-07-17 Tom Tromey <tom@tromey.com>
6516
6517 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6518 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6519 (tui_refresh_all): Remove "list" parameter. Use foreach.
6520 * tui/tui-win.c (window_name_completer): Use foreach.
6521 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6522 (update_tab_width): Likewise.
6523 * tui/tui-layout.c (show_layout): Update.
6524 * tui/tui-data.h (class tui_window_iterator): New.
6525 (struct all_tui_windows): New.
6526 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6527
6528 2019-07-17 Tom Tromey <tom@tromey.com>
6529
6530 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6531 parameter. Don't reference globals.
6532 (tui_reg_command): Update.
6533
6534 2019-07-17 Tom Tromey <tom@tromey.com>
6535
6536 * tui/tui-regs.c (tui_show_registers): Simplify.
6537
6538 2019-07-17 Tom Tromey <tom@tromey.com>
6539
6540 * tui/tui-regs.c (tui_show_registers): Update.
6541 (tui_show_register_group): Add win_info parameter.
6542
6543 2019-07-17 Tom Tromey <tom@tromey.com>
6544
6545 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6546 Rename from tui_display_reg_element_at_line.
6547 (tui_data_window::display_registers_from_line): Update.
6548 * tui/tui-data.h (struct tui_data_window)
6549 <display_reg_element_at_line>: New method.
6550
6551 2019-07-17 Tom Tromey <tom@tromey.com>
6552
6553 * tui/tui-regs.h (tui_display_registers_from)
6554 (tui_display_registers_from_line): Don't declare.
6555 * tui/tui-windata.c (tui_data_window::display_all_data)
6556 (tui_data_window::refresh_all)
6557 (tui_data_window::do_scroll_vertical): Update.
6558 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6559 from tui_display_registers_from.
6560 (tui_display_reg_element_at_line): Update.
6561 (tui_data_window::display_registers_from_line): Rename from
6562 tui_display_registers_from_line.
6563 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6564 display_registers_from_line>: New methods.
6565
6566 2019-07-17 Tom Tromey <tom@tromey.com>
6567
6568 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6569 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6570 from tui_erase_data_content.
6571 (tui_data_window::display_all_data)
6572 (tui_data_window::refresh_all)
6573 (tui_data_window::do_scroll_vertical): Update.
6574 * tui/tui-regs.c (tui_show_registers): Update.
6575 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6576 New method.
6577
6578 2019-07-17 Tom Tromey <tom@tromey.com>
6579
6580 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6581 declare.
6582 * tui/tui-windata.c
6583 (tui_data_window::delete_data_content_windows): Rename from
6584 tui_delete_data_content_windows.
6585 (tui_data_window::display_all_data)
6586 (tui_data_window::do_scroll_vertical): Update.
6587 * tui/tui-data.h (struct tui_data_window)
6588 <delete_data_content_windows>: New method.
6589
6590 2019-07-17 Tom Tromey <tom@tromey.com>
6591
6592 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6593 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6594
6595 2019-07-17 Tom Tromey <tom@tromey.com>
6596
6597 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6598 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6599 from tui_display_all_data.
6600 * tui/tui-win.c
6601 (tui_data_window::do_make_visible_with_new_height): Update.
6602 * tui/tui-regs.c (tui_show_registers): Update.
6603 * tui/tui-layout.c (tui_set_layout): Update.
6604 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6605 method.
6606
6607 2019-07-17 Tom Tromey <tom@tromey.com>
6608
6609 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6610 * tui/tui-windata.c (tui_display_data_from): Remove.
6611 (tui_data_window::refresh_all): Update.
6612
6613 2019-07-17 Tom Tromey <tom@tromey.com>
6614
6615 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6616 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6617 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6618 tui_display_registers_from_line.
6619 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6620 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6621 "force_display" parameter.
6622
6623 2019-07-17 Tom Tromey <tom@tromey.com>
6624
6625 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6626 declare.
6627 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6628 Rename from tui_first_reg_element_no_inline.
6629 (tui_display_reg_element_at_line)
6630 (tui_display_registers_from_line): Update.
6631 * tui/tui-data.h (struct tui_data_window)
6632 <first_reg_element_no_inline>: New method.
6633
6634 2019-07-17 Tom Tromey <tom@tromey.com>
6635
6636 * tui/tui-windata.c (tui_display_data_from)
6637 (tui_data_window::do_scroll_vertical): Update.
6638 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6639 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6640 Rename from tui_line_from_reg_element_no.
6641 (tui_display_registers_from_line): Update.
6642 * tui/tui-data.h (struct tui_data_window)
6643 <line_from_reg_element_no>: New method.
6644
6645 2019-07-17 Tom Tromey <tom@tromey.com>
6646
6647 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6648 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6649 tui_last_regs_line_no.
6650 (tui_display_reg_element_at_line)
6651 (tui_display_registers_from_line): Update.
6652 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6653 method.
6654
6655 2019-07-17 Tom Tromey <tom@tromey.com>
6656
6657 PR tui/24722:
6658 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6659 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6660 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6661 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6662 (tui_update_breakpoint_info): Likewise.
6663 * tui/tui-hooks.c (tui_event_create_breakpoint)
6664 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6665 Update.
6666
6667 2019-07-17 Tom Tromey <tom@tromey.com>
6668
6669 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6670
6671 2019-07-17 Tom Tromey <tom@tromey.com>
6672
6673 * tui/tui-winsource.c (tui_update_source_window_as_is)
6674 (tui_update_source_windows_with_addr): Update.
6675 * tui/tui-source.h (tui_set_source_content)
6676 (tui_show_symtab_source): Add "win_info" parameter.
6677 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6678 parameter.
6679 (tui_show_symtab_source): Likewise.
6680
6681 2019-07-17 Tom Tromey <tom@tromey.com>
6682
6683 * tui/tui-wingeneral.c
6684 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6685
6686 2019-07-17 Tom Tromey <tom@tromey.com>
6687
6688 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6689 (struct tui_cmd_window) <can_scroll>: New method.
6690 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6691 method.
6692
6693 2019-07-17 Tom Tromey <tromey@adacore.com>
6694
6695 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6696 do_field_signed>: Rename. Change type of "value".
6697 * ui-out.c (ui_out::field_signed): Rename from field_int.
6698 Change type of "value".
6699 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6700 type of "value".
6701 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6702 do_field_int. Change type of "value".
6703 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6704 do_field_int. Change type of "value".
6705 * tracepoint.c (trace_status_mi, tfind_1)
6706 (print_one_static_tracepoint_marker): Update.
6707 * thread.c (print_thread_info_1, print_selected_thread_frame):
6708 Update.
6709 * stack.c (print_frame, print_frame_info): Update.
6710 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6711 Update.
6712 * source.c (print_source_lines_base): Update.
6713 * skip.c (info_skip_command): Update.
6714 * record-btrace.c (btrace_ui_out_decode_error)
6715 (btrace_call_history_src_line): Update.
6716 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6717 Update.
6718 * progspace.c (print_program_space): Update.
6719 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6720 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6721 do_field_int. Change type of "value".
6722 * mi/mi-out.c (mi_ui_out::do_table_begin)
6723 (mi_ui_out::do_table_header): Update.
6724 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6725 type of "value".
6726 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6727 (mi_cmd_data_list_changed_registers, output_register)
6728 (mi_cmd_data_read_memory, mi_load_progress)
6729 (mi_cmd_trace_frame_collected): Update.
6730 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6731 Update.
6732 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6733 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6734 (mi_cmd_var_list_children, varobj_update_one): Update.
6735 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6736 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6737 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6738 * inferior.c (print_inferior): Update.
6739 * gdb_bfd.c (print_one_bfd): Update.
6740 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6741 Update.
6742 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6743 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6744 do_field_int. Change type of "value".
6745 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6746 do_field_int. Change type of "value".
6747 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6748 (print_one_breakpoint_location, print_it_catch_fork)
6749 (print_one_catch_fork, print_it_catch_vfork)
6750 (print_one_catch_vfork, print_it_catch_solib)
6751 (print_it_catch_exec, print_it_ranged_breakpoint)
6752 (print_mention_watchpoint, print_mention_masked_watchpoint)
6753 (bkpt_print_it, update_static_tracepoint): Update.
6754 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6755 * break-catch-syscall.c (print_it_catch_syscall): Update.
6756 * ada-tasks.c (print_ada_task_info): Update.
6757 * ada-lang.c (print_it_exception, print_mention_exception):
6758 Update.
6759
6760 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6761
6762 PR breakpoints/24541
6763 * gdbarch.c: Regenerate.
6764 * gdbarch.h: Regenerate.
6765 * gdbarch.sh: Adjust return type and parameter types for
6766 'stap_adjust_register'.
6767 (i386_stap_adjust_register): Adjust signature and return new
6768 register name.
6769 * stap-probe.c (stap_parse_register_operand): Adjust use of
6770 'gdbarch_stap_adjust_register'.
6771
6772 2019-07-17 Tom Tromey <tromey@adacore.com>
6773
6774 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6775 declare VEC.
6776 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6777 std::vector.
6778 (struct s390_process_info): Add initializers.
6779 (s390_add_process): Use new.
6780 (s390_linux_nat_target::low_forget_process): Use delete.
6781 (s390_linux_nat_target::low_new_fork)
6782 (s390_linux_nat_target::stopped_by_watchpoint)
6783 (s390_linux_nat_target::low_prepare_to_resume)
6784 (s390_linux_nat_target::insert_watchpoint)
6785 (s390_linux_nat_target::insert_hw_breakpoint)
6786 (s390_linux_nat_target::remove_watchpoint)
6787 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6788
6789 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6790
6791 * aarch64-fbsd-nat.c: Include regcache.h.
6792 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6793 argument.
6794 (aarch64_fbsd_nat_target::fetch_registers)
6795 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6796 variable.
6797 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6798
6799 2019-07-16 John Baldwin <jhb@FreeBSD.org>
6800
6801 * fbsd-nat.c: Include gdbarch.h.
6802
6803 2019-07-15 Tom Tromey <tromey@adacore.com>
6804
6805 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6806
6807 2019-07-15 Tom Tromey <tromey@adacore.com>
6808
6809 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6810 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6811 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6812 * cli-out.c (cli_ui_out::do_field_int): New method.
6813 * ui-out.c (ui_out::field_unsigned): New method.
6814 * symfile.c (generic_load): Use field_unsigned.
6815 (print_transfer_performance): Likewise.
6816 * record-btrace.c (ui_out_field_uint): Remove.
6817 (btrace_call_history_insn_range, btrace_call_history): Use
6818 field_unsigned.
6819 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6820 field_unsigned.
6821 * ui-out.h (class ui_out) <field_unsigned>: New method.
6822 <do_field_unsigned>: Likewise.
6823
6824 2019-07-15 Tom Tromey <tromey@adacore.com>
6825
6826 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6827 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6828 * target.c (flash_erase_command): Use field_string.
6829 * infrun.c (print_signal_received_reason): Use field_string.
6830 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6831 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6832 field_string.
6833 * ada-tasks.c (print_ada_task_info): Use field_string.
6834
6835 2019-07-15 Tom Tromey <tromey@adacore.com>
6836
6837 * target.c (flash_erase_command): Use field_core_addr.
6838 * symfile.c (generic_load): Use field_core_addr.
6839 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6840 Use field_core_addr.
6841 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6842 field_core_addr.
6843
6844 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6845
6846 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6847 value if its desired type is smaller than a CORE_ADDR and signed.
6848
6849 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6850
6851 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6852 of changes to field names, and use new is_reference field to
6853 decide if a property is a reference or not.
6854 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6855 field.
6856 (struct dwarf2_property_baton): Update header comment, rename
6857 'referenced_type' to 'property_type' and update comments.
6858 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6859 default property type, store in property baton, update to take
6860 accound of renamed field.
6861 (read_func_scope): Update call to attr_to_dynamic_prop.
6862 (read_array_type): Likewise.
6863 (dwarf2_per_cu_addr_sized_int_type): New function.
6864 (read_subrange_index_type): Move type finding code to
6865 dwarf2_per_cu_addr_sized_int_type.
6866 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6867 (dwarf2_per_cu_addr_type): New function.
6868 (set_die_type): Update calls to attr_to_dynamic_prop.
6869
6870 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6871
6872 * dwarf2read.c (read_subrange_index_type): New function.
6873 (read_subrange_type): Move code into new function and call it.
6874 * gdbtypes.c (create_range_type): Add some asserts.
6875
6876 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6877
6878 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6879 update return statements.
6880 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6881 declaration, and update comment to match.
6882 * gdbtypes.c (resolve_dynamic_array): Update call to
6883 dwarf2_evaluate_property to match new return type.
6884
6885 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6886
6887 * valarith.c (value_subscripted_rvalue): Change lowerbound
6888 parameter type from int to LONGEST.
6889 * value.h (value_subscripted_rvalue): Likewise in declaration.
6890
6891 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6892
6893 * cli/cli-utils.c (info_print_command_completer): New function.
6894 * cli/cli-utils.h: Add 'completer.h' include, and forward
6895 declaration for 'struct cmd_list_element'.
6896 (info_print_command_completer): Declare.
6897 * stack.c (_initialize_stack): Add completer for 'info locals' and
6898 'info args'.
6899 * symtab.c (_initialize_symtab): Add completer for 'info
6900 variables' and 'info functions'.
6901 * NEWS: Mention completion for additional info commands.
6902
6903 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6904
6905 * cli/cli-utils.c (extract_info_print_args): Delete.
6906 (extract_arg_maybe_quoted): Delete.
6907 (info_print_options_defs): New variable.
6908 (make_info_print_options_def_group): New function.
6909 (extract_info_print_options): Define new function.
6910 * cli/cli-utils.h (extract_info_print_args): Delete.
6911 (struct info_print_options): New structure.
6912 (extract_info_print_options): Declare new function.
6913 * stack.c (info_locals_command): Update to use new
6914 extract_info_print_options, also add a header comment.
6915 (info_args_command): Likewise.
6916 * symtab.c (info_variables_command): Likewise.
6917 (info_functions_command): Likewise.
6918
6919 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6920
6921 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6922 to extract string arguments.
6923 * common/common-utils.c (extract_string_maybe_quoted): New function.
6924 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6925
6926 2019-07-11 Tom Tromey <tromey@adacore.com>
6927
6928 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6929 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6930 * top.h (gdbinit): Don't declare.
6931 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6932 into...
6933 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6934 * top.c (gdb_init): Don't call init_cli_cmds.
6935 (gdbinit): Remove.
6936 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6937
6938 2019-07-11 Tom Tromey <tromey@adacore.com>
6939
6940 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6941 after it has been moved.
6942
6943 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6944
6945 * valops.c (value_must_coerce_to_target): Change return type to
6946 bool.
6947 * value.h (value_must_coerce_to_target): Likewise.
6948
6949 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6950
6951 * breakpoint.c (is_hardware_watchpoint): Remove
6952 forward-declaration.
6953 (is_masked_watchpoint): Change return type to bool.
6954 (is_tracepoint): Likewise.
6955 (is_breakpoint): Likewise.
6956 (is_hardware_watchpoint): Likewise.
6957 (is_watchpoint): Likewise.
6958 (is_no_memory_software_watchpoint): Likewise.
6959 (is_catchpoint): Likewise.
6960 (breakpoint_1): Make FILTER parameter's return type bool.
6961 is_masked_watchpoint): Change return type to bool.
6962 (save_breakpoints): Make FILTER parameter's return type bool.
6963 * breakpoint.h (is_breakpoint): Change return type to bool.
6964 (is_watchpoint): Likewise.
6965 (is_catchpoint): Likewise.
6966 (is_tracepoint): Likewise.
6967
6968 2019-07-10 Tom Tromey <tom@tromey.com>
6969
6970 * defs.h: Don't include gdbarch.h.
6971 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6972 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6973 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6974 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6975 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6976 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6977 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6978 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6979 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6980 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6981 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6982 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6983 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6984 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6985 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6986 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6987 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6988 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6989 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6990 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6991 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6992 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6993 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6994 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6995 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6996 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6997 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6998
6999 2019-07-10 Tom Tromey <tromey@adacore.com>
7000
7001 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7002 * breakpoint.c (init_ada_exception_breakpoint): Register as
7003 bp_catchpoint.
7004 (print_one_breakpoint_location, print_one_breakpoint): Use
7005 is_ada_exception_catchpoint.
7006 * ada-lang.c (class ada_catchpoint_location): Pass
7007 bp_loc_software_breakpoint to bp_location constructor.
7008 (is_ada_exception_catchpoint): New function.
7009
7010 2019-07-10 Tom Tromey <tromey@adacore.com>
7011
7012 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7013 VEC.
7014 (struct arm_exidx_entry): New method operator<.
7015 (struct arm_exidx_data) <section_maps>: Change type.
7016 (arm_exidx_data_free): Remove.
7017 (arm_exidx_data_key): Change type. Move lower.
7018 (arm_exidx_new_objfile): Update.
7019 (arm_compare_exidx_entries): Remove.
7020 (arm_find_exidx_entry, _initialize_arm_tdep)
7021
7022 2019-07-10 Tom Tromey <tromey@adacore.com>
7023
7024 * solib-spu.c (ocl_program_data_key): Change type.
7025 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7026 Update.
7027
7028 2019-07-10 Tom Tromey <tromey@adacore.com>
7029
7030 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7031 (struct solib_aix_inferior_data) <library_list>: Change type.
7032 (solib_aix_inferior_data_handle): Change type.
7033 (get_solib_aix_inferior_data): Update.
7034 (solib_aix_free_library_list): Remove.
7035 (library_list_start_library): Update.
7036 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7037 return type.
7038 (solib_aix_get_library_list)
7039 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7040 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7041
7042 2019-07-10 Tom Tromey <tromey@adacore.com>
7043
7044 * solib-dsbt.c (struct dsbt_info): Add initializers.
7045 (solib_dsbt_pspace_data): Change type.
7046 (dsbt_pspace_data_cleanup): Remove.
7047 (get_dsbt_info, _initialize_dsbt_solib): Update.
7048
7049 2019-07-10 Tom Tromey <tromey@adacore.com>
7050
7051 * spu-tdep.c (spu_overlay_data): Change type.
7052 (spu_get_overlay_table, spu_overlay_new_objfile)
7053 (_initialize_spu_tdep): Update.
7054
7055 2019-07-10 Tom Tromey <tromey@adacore.com>
7056
7057 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7058 destructor.
7059 (dbx_objfile_data_key): Change type and declare later.
7060 (DBX_SYMFILE_INFO): Rewrite.
7061 * dbxread.c (dbx_objfile_data_key): Change type.
7062 (dbx_symfile_init): Update.
7063 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7064 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7065 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7066
7067 2019-07-10 Tom Tromey <tromey@adacore.com>
7068
7069 * jit.c (jit_program_space_key): Change type. Move lower.
7070 (get_jit_program_space_data): Update.
7071 (jit_program_space_data_cleanup): Remove.
7072 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7073 Update.
7074 (struct jit_program_space_data): Add initializers.
7075
7076 2019-07-10 Tom Tromey <tromey@adacore.com>
7077
7078 * solib-darwin.c (struct darwin_info): Add initializers.
7079 (solib_darwin_pspace_data): Change type.
7080 (darwin_pspace_data_cleanup): Remove.
7081 (get_darwin_info, _initialize_darwin_solib): Update.
7082
7083 2019-07-10 Tom Tromey <tromey@adacore.com>
7084
7085 * remote-sim.c (struct sim_inferior_data): Add initializers,
7086 constructor, and destructor.
7087 (sim_inferior_data_key): Change type. Move lower.
7088 (check_for_duplicate_sim_descriptor): Update.
7089 (get_sim_inferior_data): Use new. Update.
7090 (~sim_inferior_data_cleanup): Rename from
7091 sim_inferior_data_cleanup. Simplify.
7092 (gdbsim_close_inferior, simulator_command)
7093 (sim_command_completer, _initialize_remote_sim): Update.
7094 (next_pid, INITIAL_PID): Move earlier.
7095
7096 2019-07-10 Tom Tromey <tromey@adacore.com>
7097
7098 * python/python-internal.h (create_thread_object): Return
7099 gdbpy_ref.
7100 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7101 * python/py-inferior.c (struct threadlist_entry): Add
7102 constructor.
7103 <thread_obj>: Now a gdbpy_ref.
7104 (thread_to_thread_object): Update.
7105 (add_thread_object): Use new.
7106 (delete_thread_object): Use delete.
7107 (infpy_threads): Update.
7108 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7109 GIL.
7110
7111 2019-07-10 Tom Tromey <tromey@adacore.com>
7112
7113 * valops.c (value_cast): Specialize error message for Ada.
7114
7115 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7116
7117 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7118
7119 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7120
7121 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7122 bpstat_should_step): Return bool, adjust comments.
7123 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7124 bpstat_should_step): Likewise.
7125
7126 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7127
7128 * features/Makefile: Use feature target descriptions for Arm.
7129 * features/arm/arm-core.c: Generate new file.
7130 * features/arm/arm-fpa.c: Likewise.
7131 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7132 * features/arm/arm-m-profile.c: Likewise.
7133 * features/arm/arm-vfpv2.c: Likewise.
7134 * features/arm/arm-vfpv3.c: Likewise.
7135 * features/arm/xscale-iwmmxt.c: Likewise.
7136 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7137
7138 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7139
7140 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7141 ptrace earlier.
7142
7143 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7144
7145 * features/aarch64-pauth.c: Regenerate.
7146
7147 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7148
7149 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7150 bool.
7151 (bpstat_what): Use false instead of 0.
7152
7153 2019-07-09 Pedro Alves <palves@redhat.com>
7154
7155 * break-catch-throw.c (is_exception_catchpoint): New.
7156 * breakpoint.c (print_one_breakpoint_location): New parameter
7157 'raw_loc'. Handle it. Use
7158 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7159 looking at the breakpoint's type.
7160 (print_one_breakpoint): If handling "maint info breakpoints", also
7161 print locations of exception catchpoints.
7162 * breakpoint.h (is_exception_catchpoint): Declare.
7163
7164 2019-07-09 Pedro Alves <palves@redhat.com>
7165
7166 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7167 "addr" field.
7168 (allocate_location_exception_catchpoint): New.
7169 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7170 (initialize_throw_catchpoint_ops): Install
7171 allocate_location_exception_catchpoint as allocate_location
7172 method.
7173 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7174 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7175 bp_loc_other.
7176 (breakpoint_address_is_meaningful): Delete.
7177 (bl_address_is_meaningful): New.
7178 (breakpoint_locations_match): Adjust comment.
7179 (bp_location_from_bp_type): New, factored out of...
7180 (bp_location::bp_location(breakpoint *)): ... this.
7181 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7182 factored out of...
7183 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7184 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7185 breakpoint_address_is_meaningful.
7186 (bp_locations_compare): Adjust comment.
7187 (update_global_location_list): Use bl_address_is_meaningful
7188 instead of breakpoint_address_is_meaningful.
7189 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7190 explicit.
7191 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7192 * python/py-breakpoint.c (bppy_get_location): No longer check
7193 whether location is null.
7194
7195 2019-07-09 Pedro Alves <palves@redhat.com>
7196
7197 PR c++/15468
7198 * breakpoint.c (print_one_breakpoint_location): Remove
7199 single-location assert.
7200
7201 2019-07-09 Tom Tromey <tom@tromey.com>
7202
7203 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7204 * configure: Rebuild.
7205 * configure.ac: Change common to gdbsupport.
7206 * gdbsupport: Rename from common.
7207 * acinclude.m4: Change common to gdbsupport.
7208 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7209 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7210 gdbsupport.
7211 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7212 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7213 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7214 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7215 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7216 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7217 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7218 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7219 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7220 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7221 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7222 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7223 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7224 coff-pe-read.c, command.h, compile/compile-c-support.c,
7225 compile/compile-c.h, compile/compile-cplus-symbols.c,
7226 compile/compile-cplus-types.c, compile/compile-cplus.h,
7227 compile/compile-loc2c.c, compile/compile.c, completer.c,
7228 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7229 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7230 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7231 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7232 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7233 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7234 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7235 features/aarch64-core.c, features/aarch64-fpu.c,
7236 features/aarch64-pauth.c, features/aarch64-sve.c,
7237 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7238 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7239 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7240 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7241 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7242 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7243 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7244 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7245 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7246 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7247 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7248 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7249 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7250 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7251 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7252 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7253 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7254 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7255 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7256 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7257 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7258 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7259 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7260 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7261 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7262 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7263 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7264 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7265 minsyms.c, mips-linux-tdep.c, namespace.h,
7266 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7267 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7268 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7269 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7270 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7271 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7272 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7273 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7274 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7275 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7276 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7277 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7278 procfs.c, producer.c, progspace.h, psymtab.h,
7279 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7280 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7281 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7282 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7283 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7284 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7285 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7286 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7287 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7288 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7289 target-memory.c, target.c, target.h, target/waitstatus.c,
7290 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7291 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7292 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7293 unittests/array-view-selftests.c,
7294 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7295 unittests/common-utils-selftests.c,
7296 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7297 unittests/format_pieces-selftests.c,
7298 unittests/function-view-selftests.c,
7299 unittests/lookup_name_info-selftests.c,
7300 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7301 unittests/mkdir-recursive-selftests.c,
7302 unittests/observable-selftests.c,
7303 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7304 unittests/parse-connection-spec-selftests.c,
7305 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7306 unittests/scoped_fd-selftests.c,
7307 unittests/scoped_mmap-selftests.c,
7308 unittests/scoped_restore-selftests.c,
7309 unittests/string_view-selftests.c, unittests/style-selftests.c,
7310 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7311 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7312 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7313 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7314 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7315 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7316
7317 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7318
7319 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7320 bool value.
7321 (decode_digits_ordinary): Set explicit_line field in sal.
7322 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7323 symtab_and_line that was set on an explicit line number in
7324 assembler code. Do always update the recorded symtab and line if
7325 we do skip the prologue.
7326
7327 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7328
7329 * breakpoint.c (set_breakpoint_location_function): Remove
7330 explicit_loc parameter.
7331 (momentary_breakpoint_from_master): Update call to
7332 set_breakpoint_location_function.
7333 (add_location_to_breakpoint): Likewise.
7334
7335 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7336
7337 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7338 required features based on default bfd type when no specific bfd
7339 is present.
7340
7341 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7342
7343 * NEWS: Mention that GDB printf and eval commands can now print
7344 C-style and Ada-style convenience var strings without
7345 calling the inferior.
7346 * printcmd.c (printf_c_string): Locally print GDB internal var
7347 instead of transiting via the inferior.
7348 (printf_wide_c_string): Likewise.
7349
7350 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7351
7352 PR breakpoints/25011
7353 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7354
7355 2019-07-04 Tom Tromey <tom@tromey.com>
7356
7357 PR tui/24724:
7358 * tui/tui-winsource.c (tui_clear_source_content): Update.
7359 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7360 (tui_update_breakpoint_info): Update.
7361 (tui_set_exec_info_content): Update.
7362 * tui/tui-source.c (tui_set_source_content_nil): Update.
7363 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7364 has_break.
7365 * tui/tui-data.h (enum tui_bp_flag): New.
7366 (tui_bp_flags): New enum flags type.
7367 (struct tui_source_element) <break_mode>: Change type. Rename
7368 from has_break.
7369 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7370 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7371 constants.
7372 * tui/tui-winsource.h: Fix comment.
7373
7374 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7375
7376 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7377 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7378 (store_fpregs_to_thread)
7379 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7380 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7381 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7382 (IWMMXT_REGS_SIZE): Add define.
7383 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7384 (fetch_vfp_regs, store_vfp_regs)
7385 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7386 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7387
7388 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7389
7390 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7391 defines.
7392 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7393 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7394 (ARM_INT_REGISTER_SIZE): ...to this.
7395 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7396 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7397 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7398 (arm_linux_collect_gregset, supply_nwfpe_register)
7399 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7400 defines.
7401 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7402 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7403 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7404 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7405 (arm_return_in_memory, arm_store_return_value)
7406 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7407 (arm_record_ld_st_multiple): Likewise.
7408 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7409 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7410
7411 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7412
7413 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7414 AARCH64_DISPLACED_MODIFIED_INSNS.
7415 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7416 (aarch64_displaced_step_copy_insn): Likewise.
7417 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7418 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7419 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7420 ARM_DISPLACED_MODIFIED_INSNS.
7421 * arm-tdep.c (arm_gdbarch_init): Likewise.
7422 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7423 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7424 (struct arm_displaced_step_closure): Use
7425 ARM_DISPLACED_MODIFIED_INSNS.
7426
7427 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7428
7429 * features/Makefile: Remove unused xml files.
7430 * features/aarch64.xml: Remove.
7431 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7432 * features/i386/amd64-avx-avx512.xml: Remove.
7433 * features/i386/amd64-avx-linux.xml: Remove.
7434 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7435 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7436 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7437 * features/i386/amd64-avx-mpx.xml: Remove.
7438 * features/i386/amd64-avx.xml: Remove.
7439 * features/i386/amd64-linux.xml: Remove.
7440 * features/i386/amd64-mpx-linux.xml: Remove.
7441 * features/i386/amd64-mpx.xml: Remove.
7442 * features/i386/amd64.xml: Remove.
7443 * features/i386/i386-avx-avx512-linux.xml: Remove.
7444 * features/i386/i386-avx-avx512.xml: Remove.
7445 * features/i386/i386-avx-linux.xml: Remove.
7446 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7447 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7448 * features/i386/i386-avx-mpx-linux.xml: Remove.
7449 * features/i386/i386-avx-mpx.xml: Remove.
7450 * features/i386/i386-avx.xml: Remove.
7451 * features/i386/i386-linux.xml: Remove.
7452 * features/i386/i386-mmx-linux.xml: Remove.
7453 * features/i386/i386-mmx.xml: Remove.
7454 * features/i386/i386-mpx-linux.xml: Remove.
7455 * features/i386/i386-mpx.xml: Remove.
7456 * features/i386/i386.xml: Remove.
7457 * features/i386/x32-avx-avx512-linux.xml: Remove.
7458 * features/i386/x32-avx-linux.xml: Remove.
7459 * features/i386/x32-linux.xml: Remove.
7460
7461 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7462
7463 * regformats/aarch64.dat: Remove.
7464 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7465 * regformats/i386/amd64-avx-linux.dat: Remove.
7466 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7467 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7468 * regformats/i386/amd64-linux.dat: Remove.
7469 * regformats/i386/amd64-mpx-linux.dat: Remove.
7470 * regformats/i386/amd64.dat: Remove.
7471 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7472 * regformats/i386/i386-avx-linux.dat: Remove.
7473 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7474 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7475 * regformats/i386/i386-linux.dat: Remove.
7476 * regformats/i386/i386-mmx-linux.dat: Remove.
7477 * regformats/i386/i386-mpx-linux.dat: Remove.
7478 * regformats/i386/i386.dat: Remove.
7479 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7480 * regformats/i386/x32-avx-linux.dat: Remove.
7481 * regformats/i386/x32-linux.dat: Remove.
7482
7483 2019-07-04 Alan Hayward <alan.hayward@arm.com>
7484
7485 * aarch64-tdep.c: Remove xml self tests.
7486 * amd64-linux-tdep.c: Likewise.
7487 * amd64-tdep.c: Likewise.
7488 * i386-linux-tdep.c: Likewise.
7489 * i386-tdep.c: Likewise.
7490
7491 2019-07-03 Pedro Alves <palves@redhat.com>
7492
7493 PR cli/24732
7494 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7495 (pipe_cmd_option_defs): New.
7496 (make_pipe_cmd_options_def_group): New.
7497 (pipe_command): Use gdb::option::process_options.
7498 (pipe_command_completer): New function.
7499 (_initialize_cli_cmds): Install completer for "pipe" command.
7500
7501 2019-07-03 Pedro Alves <palves@redhat.com>
7502
7503 * cli/cli-option.c (union option_value) <string>: New field.
7504 (struct option_def_and_value): Add ctor, move ctor, dtor and
7505 use DISABLE_COPY_AND_ASSIGN.
7506 (option_def_and_value::clear_value): New.
7507 (parse_option, save_option_value_in_ctx, get_val_type_str)
7508 (add_setshow_cmds_for_options): Handle var_string.
7509 * cli-option.h (union option_def::var_address) <string>: New
7510 field.
7511 (struct string_option_def): New.
7512 * maint-test-options.c (struct test_options_opts): Add default
7513 ctor and use DISABLE_COPY_AND_ASSIGN.
7514 <string_opt>: New field.
7515 (test_options_opts::~test_options_opts): New.
7516 (test_options_opts::dump): Also dump "-string".
7517 (test_options_option_defs): Install "string.
7518
7519 2019-07-03 Pedro Alves <palves@redhat.com>
7520
7521 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7522 option_value with a null enumeration.
7523 (complete_options): Save the option values in the context.
7524 (save_option_value_in_ctx): New, factored out from ...
7525 (process_options): ... here.
7526 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7527 of the function.
7528 * maint-test-options.c (test_options_opts::dump): New, factored
7529 out from ...
7530 (maintenance_test_options_command_mode): ... here.
7531 (maintenance_test_options_command_completion_result): Delete.
7532 (maintenance_test_options_command_completion_text): Update
7533 comment.
7534 (maintenance_show_test_options_completion_result): Change
7535 prototype. Just print
7536 maintenance_test_options_command_completion_text.
7537 (save_completion_result): New.
7538 (maintenance_test_options_completer_mode): Pass options context to
7539 complete_options, and then save a dump.
7540 (_initialize_maint_test_options): Use add_cmd to install "maint
7541 show test-options-completion-result".
7542
7543 2019-07-03 Pedro Alves <palves@redhat.com>
7544
7545 * NEWS (New commands): Mention "with" and "maint with".
7546 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7547 (with_command, with_command_completer): New.
7548 (pipe_command): Adjust to new repeat_previous
7549 interface.
7550 (_initialize_cli_cmds): Install the "with" command and its "w"
7551 alias.
7552 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7553 declarations.
7554 * cli/cli-setshow.c (parse_cli_var_uinteger)
7555 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7556 argument strings for all var_types.
7557 (get_setshow_command_value_string): New, factored out from ...
7558 (do_show_command): ... this.
7559 * cli/cli-setshow.h: Include <string>.
7560 (get_setshow_command_value_string): Declare.
7561 * command.h (repeat_previous): Now returns const char *. Adjust
7562 comment.
7563 * maint.c: Include "cli/cli-cmds.h".
7564 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7565 (_initialize_maint_cmds): Register the "maintenance with" command.
7566 * top.c (repeat_previous): Move bits from pipe_command here:
7567 Return the saved command line, if any; error out if there's no
7568 command to relaunch.
7569
7570 2019-07-03 Pedro Alves <palves@redhat.com>
7571
7572 * NEWS (New commands): Mention "maint set/show test-settings"
7573 instead of "maint test-settings".
7574 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7575 (maintenance_test_settings_set_list): Rename to ...
7576 (maintenance_set_test_settings_list): ... this.
7577 (maintenance_test_settings_show_list): Rename to ...
7578 (maintenance_show_test_settings_list): ... this.
7579 (maintenance_test_settings_cmd): Delete.
7580 (maintenance_test_settings_set_cmd): ...
7581 (maintenance_set_test_settings_cmd): ... this.
7582 (maintenance_test_settings_show_cmd): ...
7583 (maintenance_show_test_settings_cmd): ... this.
7584 (maintenance_test_settings_show_value_cmd):
7585 (maintenance_show_test_settings_value_cmd): ... this.
7586 (_initialize_maint_test_settings): No longer install the "maint
7587 test-settings" prefix command. Rename "maint test-settings set"
7588 to "maint set test-settings", and "maint test-settings show" to
7589 "maint show test-settings". Adjust all subcommands.
7590
7591 2019-07-03 Pedro Alves <palves@redhat.com>
7592
7593 * maint-test-settings.c: Fix file's intro comment. Replace all
7594 references to "test-options" with references to "test-settings",
7595 in comments.
7596
7597 2019-07-03 Pedro Alves <palves@redhat.com>
7598
7599 * maint-test-settings.c (maintenance_test_settings_xxx)
7600 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7601 New.
7602 (maintenance_test_settings_enums): Use them.
7603 (maintenance_test_settings_enum): Default to
7604 maintenance_test_settings_xxx.
7605 (_initialize_maint_test_settings): Initialize
7606 MAINTENANCE_TEST_SETTINGS_FILENAME.
7607
7608 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7609
7610 * breakpoint.h (remove_breakpoints_inf): Change return type to
7611 void, move function documentation here.
7612 * breakpoint.c (remove_breakpoints_inf): Change return type to
7613 void, move function documentation to header.
7614
7615 2019-07-02 Pedro Alves <palves@redhat.com>
7616
7617 * NEWS (Completion improvements): Mention "info threads".
7618 * thread.c (struct info_threads_opts, info_threads_option_defs)
7619 (make_info_threads_options_def_group): New.
7620 (info_threads_command): Use gdb::option::process_options.
7621 (info_threads_command_completer): New.
7622 (_initialize_thread): Use gdb::option::build_help to build the
7623 help text for "info threads".
7624
7625 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7626
7627 * defs.h (generic_load): Move from here...
7628 * symfile.h (generic_load): ... to here. Rename name parameter
7629 to args.
7630 * symfile.c (generic_load): Add comment.
7631
7632 2019-07-01 Tom Tromey <tromey@adacore.com>
7633
7634 * dwarf2read.c
7635 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7636 declaration of without_params. Fix formatting.
7637
7638 2019-07-01 Tom Tromey <tromey@adacore.com>
7639
7640 * ada-exp.y (find_primitive_type): Update.
7641 * ada-lang.h (ada_lookup_symbol): Update.
7642 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7643 parameter.
7644 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7645
7646 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7647
7648 PR breakpoints/24541
7649 * gdbarch.c: Regenerate.
7650 * gdbarch.h: Regenerate.
7651 * gdbarch.sh: Add 'stap_adjust_register'.
7652 * i386-tdep.c: Include '<unordered_set>'.
7653 (i386_stap_adjust_register): New function.
7654 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7655 * stap-probe.c (stap_parse_register_operand): Call
7656 'gdbarch_stap_adjust_register'.
7657
7658 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7659
7660 PR python/24742
7661 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7662 * python/python.c (do_start_initialization): Use 'xmalloc'
7663 instead of 'PyMem_Malloc'.
7664
7665 2019-06-28 Tom Tromey <tromey@adacore.com>
7666
7667 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7668 for Ada.
7669
7670 2019-06-27 Tom Tromey <tromey@adacore.com>
7671
7672 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7673 objfile_key.
7674 (arm_find_mapping_symbol, arm_record_special_symbol)
7675 (_initialize_arm_tdep): Update.
7676 (arm_objfile_data_free): Remove.
7677
7678 2019-06-27 Tom Tromey <tromey@adacore.com>
7679
7680 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7681 to cp_print_static_field.
7682
7683 2019-06-26 Tom Tromey <tromey@adacore.com>
7684
7685 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7686 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7687 declare.
7688
7689 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7690
7691 * features/aarch64-core.c (create_feature_aarch64_core):
7692 Regenerate.
7693 * features/aarch64-core.xml: Add cpsr flags.
7694
7695 2019-06-26 Alan Hayward <alan.hayward@arm.com>
7696
7697 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7698 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7699
7700 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7701
7702 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7703 field.
7704 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7705 use.
7706 (arm_record_special_symbol): Don't insert new symbol in sorted
7707 position, push it at the end.
7708
7709 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7710
7711 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7712 (arm_mapping_symbol_s): Remove.
7713 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7714 (arm_mapping_symbol_vec): New typedef.
7715 (struct arm_per_objfile): Add constructor.
7716 <section_maps>: Change type to
7717 std::unique_ptr<arm_mapping_symbol_vec[]>.
7718 (arm_compare_mapping_symbols): Remove.
7719 (arm_find_mapping_symbol): Adjust to section_maps type change.
7720 (arm_objfile_data_free): Call delete on arm_per_objfile.
7721 (arm_record_special_symbol): Adjust to section_maps type change.
7722 Allocate arm_per_objfile with new.
7723
7724 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7725
7726 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7727 with the command prefix.
7728
7729 2019-06-25 Tom Tromey <tom@tromey.com>
7730
7731 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7732 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7733
7734 2019-06-25 Tom Tromey <tom@tromey.com>
7735
7736 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7737 type.
7738 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7739 protected.
7740
7741 2019-06-25 Tom Tromey <tom@tromey.com>
7742
7743 * tui/tui-winsource.c
7744 (tui_source_window_base::set_is_exec_point_at): Add check against
7745 LOA_ADDRESS.
7746
7747 2019-06-25 Tom Tromey <tom@tromey.com>
7748
7749 * tui/tui-source.c (tui_set_source_content): Don't check before
7750 xfree.
7751 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7752
7753 2019-06-25 Tom Tromey <tom@tromey.com>
7754
7755 * tui/tui-winsource.h (tui_update_source_window_as_is)
7756 (tui_alloc_source_buffer, tui_line_is_displayed)
7757 (tui_addr_is_displayed): Change type of win_info.
7758 * tui/tui-winsource.c (tui_update_source_window_as_is)
7759 (tui_clear_source_content, tui_show_source_line)
7760 (tui_show_source_content, tui_source_window_base::refill)
7761 (tui_source_window_base::set_is_exec_point_at)
7762 (tui_source_window_base::set_is_exec_point_at)
7763 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7764 (tui_alloc_source_buffer, tui_line_is_displayed)
7765 (tui_addr_is_displayed): Change type of win_info. Update.
7766 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7767 (tui_source_window_base::do_make_visible_with_new_height):
7768 Update.
7769 * tui/tui-source.c (tui_set_source_content)
7770 (tui_set_source_content_nil)
7771 (tui_source_window::do_scroll_vertical): Update.
7772 * tui/tui-layout.c (show_layout): Update.
7773 * tui/tui-disasm.c (tui_set_disassem_content)
7774 (tui_disasm_window::do_scroll_vertical): Update.
7775 * tui/tui-data.h (tui_win_content): Remove.
7776 (struct tui_gen_win_info) <content, content_size>: Remove.
7777 (struct tui_source_element): Add initializers and destructor.
7778 (union tui_which_element, struct tui_win_element): Remove.
7779 (struct tui_source_window_base) <content>: New field.
7780 (struct tui_data_window): Remove destructor.
7781 (tui_alloc_content, tui_free_win_content)
7782 (tui_free_all_source_wins_content): Don't declare.
7783 * tui/tui-data.c (tui_initialize_static_data): Update.
7784 (init_content_element, tui_alloc_content): Remove.
7785 (~tui_gen_win_info): Update.
7786 (~tui_data_window, tui_free_all_source_wins_content)
7787 (tui_free_win_content, free_content, free_content_elements):
7788 Remove.
7789
7790 2019-06-25 Tom Tromey <tom@tromey.com>
7791
7792 * tui/tui-winsource.h (tui_clear_source_content)
7793 (tui_erase_source_content, tui_show_source_content): Change type
7794 of win_info.
7795 * tui/tui-winsource.c (tui_clear_source_content)
7796 (tui_erase_source_content, tui_show_source_content): Change type
7797 of win_info.
7798 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7799 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7800 win_info.
7801 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7802 win_info.
7803 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7804
7805 2019-06-25 Tom Tromey <tom@tromey.com>
7806
7807 * tui/tui-winsource.c (tui_clear_source_content)
7808 (tui_source_window_base::set_is_exec_point_at): Update.
7809 * tui/tui-source.c (tui_set_source_content_nil): Update.
7810 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7811 a bool.
7812 * tui/tui-data.c (init_content_element): Update.
7813
7814 2019-06-25 Tom Tromey <tom@tromey.com>
7815
7816 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7817 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7818 * tui/tui-layout.c (init_and_make_win): Update.
7819 * tui/tui.h (enum tui_win_type): Update.
7820 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7821 tui_win_is_auxillary.
7822 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7823 tui_win_is_auxillary.
7824
7825 2019-06-25 Tom Tromey <tom@tromey.com>
7826
7827 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7828 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7829 (tui_delete_data_content_windows, tui_display_all_data)
7830 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7831 Update.
7832 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7833 * tui/tui-regs.c (tui_last_regs_line_no)
7834 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7835 (tui_show_registers): Update.
7836 (tui_show_register_group): Return void. Update.
7837 (tui_display_registers_from, tui_display_reg_element_at_line)
7838 (tui_display_registers_from_line, tui_check_register_values):
7839 Update.
7840 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7841 member.
7842 (struct tui_data_window) <regs_content>: Now a std::vector.
7843 <regs_content_count>: Remove.
7844 (tui_add_content_elements, tui_free_data_content): Don't declare.
7845 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7846 (init_content_element): Remove DATA_WIN case. Add assert.
7847 (tui_add_content_elements): Remove.
7848 (tui_data_window): Update.
7849 (tui_free_data_content): Remove.
7850 (free_content_elements): Remove DATA_WIN case.
7851
7852 2019-06-25 Tom Tromey <tom@tromey.com>
7853
7854 * tui/tui-data.c (tui_data_item_window): Update.
7855 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7856 * tui/tui-windata.c (tui_display_all_data)
7857 (tui_display_data_from_line): Update.
7858 (tui_check_data_values): Remove.
7859 * tui/tui-regs.c (tui_show_register_group)
7860 (tui_display_reg_element_at_line): Update.
7861 * tui/tui-hooks.c (tui_register_changed)
7862 (tui_refresh_frame_and_register_information): Call
7863 tui_check_register_values.
7864 * tui/tui-data.h (struct tui_data_window) <data_content,
7865 data_content_count, data_type>: Remove.
7866 (enum tui_data_type): Remove.
7867
7868 * tui/tui-data.c (tui_data_window::clear_detail)
7869 (~tui_data_window): Update.
7870
7871 2019-06-25 Tom Tromey <tom@tromey.com>
7872
7873 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7874 declare.
7875 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7876 Rename from tui_first_data_item_displayed. Update.
7877 (tui_data_window::refresh_all)
7878 (tui_data_window::do_scroll_vertical): Update.
7879 * tui/tui-data.h (struct tui_data_window)
7880 <first_data_item_displayed>: Declare new method.
7881
7882 2019-06-25 Tom Tromey <tom@tromey.com>
7883
7884 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7885 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7886 contents...
7887 (tui_initialize_static_data): ...here.
7888
7889 2019-06-25 Tom Tromey <tom@tromey.com>
7890
7891 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7892 (tui_display_registers_from, tui_check_register_values): Update.
7893 (tui_display_register): Remove win_info parameter; update.
7894 (tui_get_register): Change type of parameters.
7895 * tui/tui-data.h (struct tui_data_element): Remove.
7896 (union tui_which_element) <data>: Remove.
7897 <data_window>: Change type.
7898 (struct tui_data_item_window): New.
7899 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7900 case. Add assert.
7901 (~tui_data_item_window): New destructor.
7902 (free_content_elements): Remove DATA_ITEM_WIN case.
7903
7904 2019-06-25 Tom Tromey <tom@tromey.com>
7905
7906 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7907 Remove.
7908
7909 2019-06-25 Tom Tromey <tom@tromey.com>
7910
7911 * tui/tui-data.h (struct tui_command_element): Remove.
7912 (union tui_which_element) <command>: Remove.
7913 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7914 assert.
7915 (free_content_elements): Remove CMD_WIN case.
7916
7917 2019-06-25 Tom Tromey <tom@tromey.com>
7918
7919 * tui/tui-layout.c (tui_set_layout): Update.
7920 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7921 * tui/tui-data.c (layout_def): Update.
7922
7923 2019-06-25 Tom Tromey <tom@tromey.com>
7924
7925 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7926 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7927 (tui_source_window_base::set_new_height): Update.
7928 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7929 Update.
7930 (tui_set_locator_fullname, tui_set_locator_info)
7931 (tui_show_frame_info): Update.
7932 * tui/tui-source.c (tui_set_source_content)
7933 (tui_source_is_displayed): Update.
7934 * tui/tui-layout.c (show_source_disasm_command, show_data)
7935 (show_source_or_disasm_and_command): Update.
7936 * tui/tui-disasm.c (tui_set_disassem_content)
7937 (tui_get_begin_asm_address): Update.
7938 * tui/tui-data.h (struct tui_locator_element): Remove.
7939 (union tui_which_element) <locator>: Remove.
7940 (struct tui_locator_window): New.
7941 (tui_locator_win_info_ptr): Change return type.
7942 * tui/tui-data.c (_locator): Change type.
7943 (tui_locator_win_info_ptr): Change return type.
7944 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7945 (tui_alloc_content): Add assert.
7946
7947 2019-06-25 Tom Tromey <tom@tromey.com>
7948
7949 * tui/tui-winsource.c
7950 (tui_exec_info_window::maybe_allocate_content): New method.
7951 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7952 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7953 (make_source_or_disasm_window): Add cast.
7954 * tui/tui-data.h (union tui_which_element) <simple_string>:
7955 Remove.
7956 (struct tui_source_info): New.
7957 (struct tui_source_window_base) <execution_info>: Change type.
7958 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7959 case, and add assert.
7960 (tui_alloc_content): Add assert.
7961
7962 2019-06-25 Tom Tromey <tom@tromey.com>
7963
7964 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7965 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7966 * tui/tui-data.c (tui_alloc_win_info): Remove.
7967
7968 2019-06-25 Tom Tromey <tom@tromey.com>
7969
7970 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7971 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7972 can_highlight.
7973
7974 2019-06-25 Tom Tromey <tom@tromey.com>
7975
7976 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7977 make_visible_with_new_height method.
7978 (tui_win_info::make_visible_with_new_height): New method.
7979 (tui_source_window_base::do_make_visible_with_new_height)
7980 (tui_data_window::do_make_visible_with_new_height)
7981 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7982 (make_visible_with_new_height): Remove.
7983 (tui_resize_all, tui_adjust_win_heights): Use
7984 make_visible_with_new_height method.
7985 * tui/tui-data.h (struct tui_win_info)
7986 <do_make_visible_with_new_height, make_visible_with_new_height>:
7987 New methods.
7988 (struct tui_source_window_base, struct tui_data_window)
7989 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7990 methods.
7991
7992 2019-06-25 Tom Tromey <tom@tromey.com>
7993
7994 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7995 method.
7996 (update_tab_width): Call update_tab_width method.
7997 * tui/tui-data.h (struct tui_win_info)
7998 (struct tui_source_window_base) <update_tab_width>: New methods.
7999
8000 2019-06-25 Tom Tromey <tom@tromey.com>
8001
8002 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8003 parameter.
8004 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8005 parameter.
8006 (tui_gen_win_info::make_visible): Update.
8007 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8008 parameter.
8009 * tui/tui-data.h (enum tui_box): New enum.
8010 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8011
8012 2019-06-25 Tom Tromey <tom@tromey.com>
8013
8014 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8015 init_and_make_win for EXEC_INFO_WIN.
8016 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8017 longer inline.
8018 (struct tui_win_info) <~tui_win_info>: Inline.
8019 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8020 Don't declare.
8021 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8022 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8023 Remove.
8024 (tui_initialize_static_data): Update.
8025 (~tui_gen_win_info): Handle more cleanup here.
8026 (~tui_source_window_base): Delete "execution_info".
8027 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8028
8029 2019-06-25 Tom Tromey <tom@tromey.com>
8030
8031 * tui/tui-layout.c (make_command_window): Don't set
8032 can_highlight.
8033 (show_source_disasm_command): Call the reset method.
8034 (show_data): Don't set can_highlight. Call the reset method.
8035 (tui_gen_win_info::reset): Rename from init_gen_win_info
8036 (init_and_make_win): Simplify. Return tui_gen_win_info.
8037 (show_source_or_disasm_and_command): Call the reset method.
8038 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8039 (struct tui_cmd_window): Set can_highlight.
8040
8041 2019-06-25 Tom Tromey <tom@tromey.com>
8042
8043 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8044 from make_visible.
8045 (tui_make_visible, tui_make_invisible): Rewrite.
8046 (tui_win_info::make_visible): Remove.
8047 (tui_source_window_base::make_visible): Update.
8048 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8049 method. Moved from...
8050 (struct tui_win_info) <make_visible>: ...here.
8051
8052 2019-06-25 Tom Tromey <tom@tromey.com>
8053
8054 * tui/tui-winsource.c
8055 (tui_source_window_base::do_scroll_horizontal): Remove direction
8056 parameter.
8057 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8058 direction parameter.
8059 * tui/tui-win.c (tui_win_info::forward_scroll)
8060 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8061 (tui_win_info::right_scroll): Update.
8062 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8063 direction parameter.
8064 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8065 direction parameter.
8066 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8067 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8068 Remove direction parameter.
8069 (struct tui_source_window_base, struct tui_source_window)
8070 (struct tui_disasm_window, struct tui_data_window)
8071 (struct tui_cmd_window): Update.
8072
8073 2019-06-25 Tom Tromey <tom@tromey.com>
8074
8075 * tui/tui-winsource.h (tui_set_exec_info_content)
8076 (tui_show_exec_info_content, tui_erase_exec_info_content)
8077 (tui_clear_exec_info_content, tui_update_exec_info): Change
8078 argument to tui_source_window_base.
8079 * tui/tui-winsource.c (tui_set_exec_info_content)
8080 (tui_show_exec_info_content, tui_erase_exec_info_content)
8081 (tui_clear_exec_info_content, tui_update_exec_info): Change
8082 argument to tui_source_window_base.
8083
8084 2019-06-25 Tom Tromey <tom@tromey.com>
8085
8086 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8087 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8088
8089 2019-06-25 Tom Tromey <tom@tromey.com>
8090
8091 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8092 check.
8093
8094 2019-06-25 Tom Tromey <tom@tromey.com>
8095
8096 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8097 type to void.
8098 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8099 type to void.
8100 * tui/tui-source.c (tui_set_source_content): Update.
8101 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8102
8103 2019-06-25 Tom Tromey <tom@tromey.com>
8104
8105 * tui/tui-win.c (window_name_completer, tui_set_focus)
8106 (tui_all_windows_info): Use name method.
8107 * tui/tui-data.h (struct tui_gen_win_info)
8108 (struct tui_source_window, struct tui_disasm_window)
8109 (struct tui_data_window, struct tui_cmd_window) <name>: New
8110 method.
8111 (tui_win_name): Don't declare.
8112 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8113 (tui_win_name): Remove.
8114
8115 2019-06-25 Tom Tromey <tom@tromey.com>
8116
8117 * tui/tui-winsource.h (tui_update_source_window)
8118 (tui_update_source_window_as_is): Change parameter type.
8119 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8120 to be a tui_source_window_base.
8121 (tui_update_source_window_as_is): Likewise.
8122 * tui/tui-win.c (make_visible_with_new_height): Update.
8123
8124 2019-06-25 Tom Tromey <tom@tromey.com>
8125
8126 * tui/tui-winsource.c (tui_erase_source_content)
8127 (tui_show_source_content, tui_show_exec_info_content)
8128 (tui_erase_exec_info_content): Use refresh_window method.
8129 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8130 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8131 from tui_refresh_win.
8132 (tui_data_window::refresh_window): New method.
8133 (tui_win_info::refresh, tui_source_window_base::refresh)
8134 (tui_refresh_all): Use refresh_window method.
8135 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8136 method.
8137 * tui/tui-regs.c (tui_display_register): Call refresh_window
8138 method.
8139 * tui/tui-layout.c (show_source_disasm_command)
8140 (show_source_or_disasm_and_command): Call refresh_window method.
8141 * tui/tui-data.h (struct tui_gen_win_info)
8142 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8143 New method.
8144
8145 2019-06-25 Tom Tromey <tom@tromey.com>
8146
8147 * tui/tui.c (tui_rl_other_window, tui_enable)
8148 (tui_is_window_visible, tui_get_command_dimension): Update.
8149 * tui/tui-winsource.c (tui_update_source_window_as_is)
8150 (tui_clear_source_content, tui_erase_source_content)
8151 (tui_show_source_line, tui_source_window_base::refill)
8152 (tui_source_window_base::do_scroll_horizontal)
8153 (tui_source_window_base::set_is_exec_point_at)
8154 (tui_update_breakpoint_info, tui_set_exec_info_content)
8155 (tui_alloc_source_buffer, tui_line_is_displayed)
8156 (tui_addr_is_displayed): Update.
8157 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8158 (tui_check_and_display_highlight_if_needed)
8159 (tui_win_info::make_visible, tui_win_info::refresh)
8160 (tui_refresh_all): Update.
8161 * tui/tui-windata.c (tui_first_data_item_displayed)
8162 (tui_delete_data_content_windows, tui_erase_data_content)
8163 (tui_display_all_data, tui_data_window::refresh_all)
8164 (tui_check_data_values): Update.
8165 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8166 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8167 (tui_win_info::backward_scroll, tui_refresh_all_win)
8168 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8169 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8170 (tui_source_window_base::set_new_height)
8171 (tui_data_window::set_new_height)
8172 (make_invisible_and_set_new_height)
8173 (make_visible_with_new_height, new_height_ok)
8174 (parse_scrolling_args): Update.
8175 * tui/tui-stack.c (tui_show_frame_info): Update.
8176 * tui/tui-source.c (tui_set_source_content)
8177 (tui_set_source_content_nil, tui_source_is_displayed)
8178 (tui_source_window::do_scroll_vertical): Update.
8179 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8180 (tui_display_registers_from, tui_display_reg_element_at_line)
8181 (tui_check_register_values, tui_reg_command): Update.
8182 * tui/tui-layout.c (tui_default_win_height)
8183 (show_source_disasm_command, show_data, init_and_make_win)
8184 (show_source_or_disasm_and_command): Update.
8185 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8186 (tui_redisplay_readline, tui_mld_flush)
8187 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8188 (tui_getc): Update.
8189 * tui/tui-disasm.c (tui_set_disassem_content)
8190 (tui_disasm_window::do_scroll_vertical): Update.
8191 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8192 Now virtual.
8193 (struct tui_win_info): Derive from tui_gen_win_info.
8194 <~tui_win_info>: Mark as override.
8195 <generic>: Remove member.
8196 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8197 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8198 (~tui_data_window, ~tui_win_info)
8199 (tui_free_all_source_wins_content): Update.
8200 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8201
8202 2019-06-25 Tom Tromey <tom@tromey.com>
8203
8204 * tui/tui-layout.c (init_and_make_win): Use new.
8205 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8206 destructor, initializers.
8207 (tui_alloc_generic_win_info): Don't declare.
8208 * tui/tui-data.c (_locator): Add argument to constructor.
8209 (source_win, disasm_win): New globals.
8210 (exec_info): Remove.
8211 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8212 Update.
8213 (tui_alloc_generic_win_info): Remove.
8214 (init_content_element): Use new.
8215 (tui_win_info::tui_win_info): Update.
8216 (free_content_elements) <case DATA_WIN>: Use delete.
8217
8218 2019-06-25 Tom Tromey <tom@tromey.com>
8219
8220 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8221 * tui/tui-windata.c (tui_first_data_item_displayed)
8222 (tui_delete_data_content_windows): Update.
8223 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8224 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8225 (tui_display_registers_from, tui_check_register_values): Update.
8226 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8227 pointer.
8228 * tui/tui-data.c (init_content_element): Update. Allocate the new
8229 window.
8230 (tui_free_data_content): Update.
8231 (free_content_elements) <case DATA_WIN>: Free the window.
8232
8233 2019-06-25 Tom Tromey <tom@tromey.com>
8234
8235 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8236 Update.
8237 * tui/tui-layout.c (make_command_window)
8238 (show_source_disasm_command, show_data, init_and_make_win)
8239 (show_source_or_disasm_and_command): Update.
8240 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8241 method.
8242 <can_highight, is_highlighted>: Now bool.
8243 (tui_set_win_highlight): Don't declare.
8244 * tui/tui-data.c (tui_set_win_highlight): Remove.
8245
8246 2019-06-25 Tom Tromey <tom@tromey.com>
8247
8248 * tui/tui-wingeneral.c (make_visible): Remove check of window
8249 type.
8250
8251 2019-06-25 Tom Tromey <tom@tromey.com>
8252
8253 * tui/tui-win.c (tui_win_info::max_height)
8254 (tui_cmd_window::max_height): New methods.
8255 (new_height_ok): Call max_height.
8256 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8257 <max_height>: New method.
8258
8259 2019-06-25 Tom Tromey <tom@tromey.com>
8260
8261 * tui/tui-win.c (tui_source_window_base::set_new_height)
8262 (tui_data_window::set_new_height): New methods.
8263 (make_invisible_and_set_new_height): Call set_new_height method.
8264 * tui/tui-data.h (struct tui_win_info)
8265 (struct tui_source_window_base, struct tui_data_window)
8266 <set_new_height>: New method.
8267
8268 2019-06-25 Tom Tromey <tom@tromey.com>
8269
8270 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8271 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8272 tui_refresh_data_win.
8273 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8274 method.
8275 (tui_refresh_all_win): Call the refresh_all method.
8276 (tui_set_focus): Likewise.
8277 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8278 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8279 Likewise.
8280
8281 2019-06-25 Tom Tromey <tom@tromey.com>
8282
8283 * tui/tui-winsource.h (tui_refill_source_window)
8284 (tui_set_is_exec_point_at): Don't declare.
8285 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8286 (tui_source_window_base::refill): Rename from
8287 tui_refill_source_window.
8288 (tui_source_window_base::do_scroll_horizontal): Update.
8289 (tui_source_window_base::set_is_exec_point_at): Rename from
8290 tui_set_is_exec_point_at.
8291 (tui_update_all_breakpoint_info): Update.
8292 * tui/tui-stack.c (tui_show_frame_info): Update.
8293 * tui/tui-layout.c (show_data): Add cast.
8294 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8295 * tui/tui-data.h (struct tui_source_window_base) <refill,
8296 set_is_exec_point_at>: New methods.
8297 (tui_source_windows, tui_add_to_source_windows): Update types.
8298 (tui_add_to_source_windows): Remove redundant declaration.
8299 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8300 (tui_source_windows): Change return type.
8301 (tui_clear_source_windows_detail): Update.
8302 (tui_add_to_source_windows): Change type of parameter.
8303 (tui_free_all_source_wins_content): Update.
8304
8305 2019-06-25 Tom Tromey <tom@tromey.com>
8306
8307 * tui/tui-wingeneral.c (tui_win_info::refresh)
8308 (tui_source_window_base::refresh): New methods.
8309 (tui_refresh_all): Call the refresh method.
8310 * tui/tui-data.h (struct tui_win_info)
8311 (struct tui_source_window_base) <refresh>: New method.
8312
8313 2019-06-25 Tom Tromey <tom@tromey.com>
8314
8315 * tui/tui.h (tui_is_window_visible): Return bool.
8316 * tui/tui.c (tui_is_window_visible): Return bool.
8317 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8318 (tui_make_visible, tui_make_invisible)
8319 (tui_win_info::make_visible)
8320 (tui_source_window_base::make_visible, make_all_visible)
8321 (tui_make_all_visible, tui_make_all_invisible): Update.
8322 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8323 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8324 bool.
8325 (struct tui_win_info, struct tui_source_window_base)
8326 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8327 * tui/tui-data.c (tui_init_generic_part): Update.
8328
8329 2019-06-25 Tom Tromey <tom@tromey.com>
8330
8331 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8332 (tui_source_window_base::make_visible): New methods.
8333 (make_all_visible): Make method call.
8334 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8335 (struct tui_source_window_base, struct tui_cmd_window): Override
8336 make_visible.
8337 (tui_win_is_source_type): Don't declare.
8338 * tui/tui-data.c (tui_win_is_source_type): Remove.
8339
8340 2019-06-25 Tom Tromey <tom@tromey.com>
8341
8342 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8343 NULL check.
8344
8345 2019-06-25 Tom Tromey <tom@tromey.com>
8346
8347 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8348 Inline constructor. Add initializers for members.
8349 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8350 constructors; now inline in class.
8351
8352 2019-06-25 Tom Tromey <tom@tromey.com>
8353
8354 * tui/tui-regs.c (tui_show_registers): Update.
8355 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8356 bool.
8357 * tui/tui-data.c (tui_data_window::clear_detail)
8358 (tui_data_window): Update.
8359
8360 2019-06-25 Tom Tromey <tom@tromey.com>
8361
8362 * tui/tui-windata.c (tui_display_all_data)
8363 (tui_display_data_from_line, tui_display_data_from)
8364 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8365 Update.
8366 * tui/tui-regs.c (tui_last_regs_line_no)
8367 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8368 (tui_show_registers, tui_show_register_group)
8369 (tui_display_registers_from, tui_display_reg_element_at_line)
8370 (tui_display_registers_from_line, tui_check_register_values)
8371 (tui_reg_next, tui_reg_prev): Update.
8372 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8373 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8374 tui_data_window.
8375 (struct tui_win_info) <detail>: Remove. Add new fields from
8376 tui_data_info.
8377 (TUI_DATA_WIN): Add cast.
8378 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8379 (~tui_data_window): Simplify.
8380
8381 2019-06-25 Tom Tromey <tom@tromey.com>
8382
8383 * tui/tui-layout.c (show_source_disasm_command)
8384 (show_source_or_disasm_and_command): Update.
8385 * tui/tui-io.c (update_cmdwin_start_line)
8386 (tui_redisplay_readline): Update.
8387 * tui/tui-data.h (struct tui_command_info): Remove.
8388 (struct tui_win_info) <detail>: Remove command_info member.
8389 (struct tui_data_window) <start_line>: New member, from
8390 tui_command_info.
8391 (TUI_CMD_WIN): Add casts.
8392
8393 2019-06-25 Tom Tromey <tom@tromey.com>
8394
8395 * tui/tui-winsource.c (tui_update_source_window)
8396 (tui_refill_source_window)
8397 (tui_source_window_base::do_scroll_horizontal)
8398 (tui_update_breakpoint_info, tui_set_exec_info_content)
8399 (tui_show_exec_info_content, tui_erase_exec_info_content)
8400 (tui_clear_exec_info_content): Update.
8401 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8402 Update.
8403 * tui/tui-win.c (make_invisible_and_set_new_height)
8404 (make_visible_with_new_height): Update.
8405 * tui/tui-source.c (tui_set_source_content)
8406 (tui_show_symtab_source): Update.
8407 * tui/tui-layout.c (extract_display_start_addr)
8408 (show_source_disasm_command, show_data)
8409 (make_source_or_disasm_window)
8410 (show_source_or_disasm_and_command): Update.
8411 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8412 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8413 "gdbarch".
8414 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8415 to tui_source_window_base.
8416 (struct tui_win_info) <detail>: Remove source_info member.
8417 (struct tui_source_window_base) <has_locator>: Inline.
8418 Move contents from tui_source_info; rename has_locator member to
8419 m_has_locator.
8420 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8421 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8422 header file.
8423 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8424 Simplify.
8425 (tui_free_all_source_wins_content): Cast to
8426 tui_source_window_base.
8427
8428 2019-06-25 Tom Tromey <tom@tromey.com>
8429
8430 * tui/tui-win.c (make_invisible_and_set_new_height)
8431 (make_visible_with_new_height): Call has_locator method.
8432 * tui/tui-layout.c (show_source_disasm_command, show_data)
8433 (show_source_or_disasm_and_command): Update for bool change.
8434 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8435 (tui_win_info) <has_locator>: New method.
8436 (struct tui_source_window_base) <has_locator>: New method.
8437 (tui_win_has_locator): Don't declare.
8438 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8439 from tui_win_has_locator.
8440 (tui_source_window_base): Use false, not FALSE.
8441
8442 2019-06-25 Tom Tromey <tom@tromey.com>
8443
8444 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8445 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8446 clear_detail method directly.
8447 (tui_clear_win_detail): Remove.
8448
8449 2019-06-25 Tom Tromey <tom@tromey.com>
8450
8451 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8452 "this", not TUI_DISASM_WIN.
8453
8454 2019-06-25 Tom Tromey <tom@tromey.com>
8455
8456 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8457 declare.
8458 * tui/tui-winsource.c
8459 (tui_source_window_base::do_scroll_horizontal): Rename from
8460 tui_horizontal_source_scroll.
8461 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8462 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8463 from tui_vertical_data_scroll.
8464 * tui/tui-win.h (tui_scroll): Don't declare.
8465 * tui/tui-win.c (tui_win_info::forward_scroll)
8466 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8467 (tui_win_info::right_scroll): Rename and update.
8468 (tui_scroll_forward_command, tui_scroll_backward_command)
8469 (tui_scroll_left_command, tui_scroll_right_command): Update.
8470 (tui_scroll): Remove.
8471 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8472 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8473 from tui_vertical_source_scroll.
8474 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8475 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8476 from tui_vertical_disassem_scroll.
8477 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8478 do_scroll_horizontal>: New methods.
8479 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8480 Likewise.
8481 (struct tui_source_window_base): Add do_scroll_horizontal.
8482 (struct tui_source_window, struct tui_disasm_window): Add
8483 do_scroll_vertical.
8484 (struct tui_data_window, struct tui_cmd_window): Add
8485 do_scroll_horizontal and do_scroll_vertical.
8486 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8487
8488 2019-06-25 Tom Tromey <tom@tromey.com>
8489
8490 * tui/tui-data.h (struct tui_source_window_base): New struct.
8491 (struct tui_source_window): Derive from tui_source_window_base.
8492 (struct tui_disasm_window): New struct.
8493 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8494 from tui_source_window::clear_detail.
8495 (tui_source_window_base): Rename from tui_source_window.
8496 (~tui_source_window_base): Rename from ~tui_source_window.
8497 (tui_alloc_win_info): Create a tui_disasm_window.
8498
8499 2019-06-25 Tom Tromey <tom@tromey.com>
8500
8501 * tui/tui-data.h (struct tui_source_window)
8502 (struct tui_data_window): Declare destructors.
8503 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8504 destructors.
8505 (tui_win_info): Simplify.
8506
8507 2019-06-25 Tom Tromey <tom@tromey.com>
8508
8509 * tui/tui-winsource.c (tui_display_main)
8510 (tui_update_source_windows_with_addr)
8511 (tui_update_all_breakpoint_info): Update.
8512 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8513 (new_height_ok, parse_scrolling_args): Update.
8514 * tui/tui-stack.c (tui_show_frame_info): Update.
8515 * tui/tui-data.h (struct tui_list): Remove.
8516 (tui_source_windows): Return a reference to a std::vector.
8517 * tui/tui-data.c (source_windows): Now a std::vector.
8518 (tui_source_windows): Change return type.
8519 (tui_clear_source_windows): Rewrite.
8520 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8521 (tui_free_all_source_wins_content): Rewrite.
8522
8523 2019-06-25 Tom Tromey <tom@tromey.com>
8524
8525 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8526 (struct tui_data_window, struct tui_cmd_window): Declare
8527 clear_detail method.
8528 * tui/tui-data.c (tui_source_window::clear_detail)
8529 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8530 methods.
8531 (tui_clear_win_detail): Simplify.
8532
8533 2019-06-25 Tom Tromey <tom@tromey.com>
8534
8535 * tui/tui-layout.c (make_source_window, make_disasm_window)
8536 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8537 Return the new window.
8538 (show_source_disasm_command, show_data)
8539 (show_source_or_disasm_and_command): Update.
8540
8541 2019-06-25 Tom Tromey <tom@tromey.com>
8542
8543 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8544 parameter. Return the new window.
8545 (show_source_disasm_command): Update and remove NULL check.
8546 (show_source_or_disasm_and_command): Update.
8547
8548 2019-06-25 Tom Tromey <tom@tromey.com>
8549
8550 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8551
8552 2019-06-25 Tom Tromey <tom@tromey.com>
8553
8554 * tui/tui-data.h (struct tui_win_info): Make constructor
8555 protected. Make destructor virtual. Add initializers.
8556 (tui_source_window, tui_data_window, tui_cmd_window): New
8557 classes.
8558 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8559 constructor. Add "type" parameter.
8560 (tui_source_window, tui_data_window, tui_cmd_window): New
8561 constructors.
8562 (tui_alloc_win_info): Instantiate the appropriate subclass.
8563
8564 2019-06-25 Tom Tromey <tom@tromey.com>
8565
8566 * tui/tui-win.c (tui_resize_all): Use delete.
8567 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8568 destructor.
8569 (tui_free_window): Don't declare.
8570 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8571 Update.
8572
8573 2019-06-25 Tom Tromey <tom@tromey.com>
8574
8575 * tui/tui-data.h (struct tui_win_info): Add constructor.
8576 * tui/tui-data.c (tui_alloc_win_info): Use new.
8577 (tui_free_window): Use delete.
8578
8579 2019-06-22 Tom Tromey <tom@tromey.com>
8580
8581 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8582 declare.
8583 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8584
8585 2019-06-22 Tom Tromey <tom@tromey.com>
8586
8587 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8588 declare.
8589 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8590
8591 2019-06-22 Tom de Vries <tdevries@suse.de>
8592
8593 * dwarf2read.c (create_addrmap_from_aranges)
8594 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8595 instead of '%zu'.
8596
8597 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
8598
8599 * dwarf2read.h (dwarf2_section_info_def): Remove.
8600 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8601 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8602 std::vector<dwarf2_section_info>.
8603 (struct dwo_file) <~dwo_file>: Remove.
8604 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8605 types field.
8606 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8607 (dwarf2_read_debug_names): Likewise.
8608 (create_debug_types_hash_table): Change parameter type to
8609 array_view, adjust code accordingly.
8610 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8611 (partial_die_info::fixup): Likewise.
8612 (determine_prefix): Likewise.
8613 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8614
8615 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8616
8617 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8618 gdb_bfd_ref_ptr.
8619 <~dwo_file>: Remove call to gdb_bfd_unref.
8620 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8621 gdb_bfd_ref_ptr::get.
8622
8623 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8624
8625 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8626 type to htab_up.
8627 * dwarf2read.c (struct dwo_file): Initialize fields.
8628 <~dwo_file>: New.
8629 (free_dwo_file): Remove, move content to ~dwo_file.
8630 (struct dwo_file_deleter): Remove.
8631 (dwo_file_up>: Remove custom deleter.
8632 (free_dwo_files): Remove.
8633 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8634 dwo_files.
8635 (process_skeletonless_type_units): Call unique_ptr::get.
8636 (allocate_dwo_file_hash_table): Add deleter to created hash
8637 table. Change return type to htab_up.
8638 (lookup_dwo_file_slot): Don't memset dwo_file, call
8639 unique_ptr::get.
8640 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8641 (create_dwo_unit_in_dwp_v2): Likewise.
8642 (open_and_init_dwo_file): Likewise.
8643 (free_dwo_file_from_slot): Remove.
8644
8645 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8646
8647 * dwarf2read.h (struct dwarf2_section_info) <readin,
8648 is_virtual>: Change type to bool.
8649 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8650 true instead of 1.
8651
8652 2019-06-19 Tom Tromey <tom@tromey.com>
8653
8654 * tui/tui-data.h (tui_init_content_element): Don't declare.
8655
8656 2019-06-19 Tom Tromey <tom@tromey.com>
8657
8658 * tui/tui-data.h (tui_init_win_info): Don't declare.
8659
8660 2019-06-19 Tom de Vries <tdevries@suse.de>
8661
8662 * dwarf2read.h (abstract_to_concrete): Change type to
8663 std::unordered_map<sect_offset, std::vector<sect_offset>,
8664 gdb::hash_enum<sect_offset>>.
8665
8666 2019-06-19 Tom Tromey <tromey@adacore.com>
8667
8668 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8669 EVAL_AVOID_SIDE_EFFECTS specially.
8670
8671 2019-06-19 Tom Tromey <tromey@adacore.com>
8672
8673 * source-cache.c (highlighter): New global.
8674 (source_cache::get_source_lines): Create a highlighter on demand.
8675
8676 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8677
8678 * defs.h (deprecated_interactive_hook): Delete declaration.
8679 * interps.c (clear_interpreter_hooks): Remove use of
8680 deprecated_interactive_hook.
8681 * top.c (deprecated_interactive_hook): Delete definition.
8682 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8683
8684 2019-06-18 Tom de Vries <tdevries@suse.de>
8685
8686 PR gdb/24515
8687 * dwarf2read.h (abstract_to_concrete): Change type from
8688 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8689 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8690 * dwarf2read.c (read_variable): Update.
8691 (dwarf2_fetch_die_loc_sect_off): Update.
8692
8693 2019-06-17 Tom de Vries <tdevries@suse.de>
8694
8695 PR gdb/24617
8696 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8697 accessing parent[parent_len - 1].
8698
8699 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8700
8701 PR gdb/24364
8702 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8703 call dtrace_process_dof with NULL dof.
8704
8705 2019-06-16 Tom de Vries <tdevries@suse.de>
8706
8707 PR gdb/24445
8708 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8709
8710 2019-06-16 Tom Tromey <tom@tromey.com>
8711
8712 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8713 (make_all_visible): Use address of member.
8714
8715 2019-06-16 Tom Tromey <tom@tromey.com>
8716
8717 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8718 (tui_free_window, free_content, free_content_elements): Remove
8719 unnecessary cast.
8720 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8721 cast.
8722 * tui/tui-regs.c (tui_show_register_group)
8723 (tui_display_registers_from, tui_display_reg_element_at_line):
8724 Remove unnecessary cast.
8725
8726 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8727
8728 * linux-nat.c (normal_mask): Delete.
8729 (_initialize_linux_nat): Don't initialise normal_mask.
8730
8731 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8732
8733 PR gdb/24445
8734 * dwarf-index-write.h (write_psymtabs_to_index): Add
8735 dwz_basename parameter.
8736 * dwarf-index-write.c (write_gdbindex): Move file writing to
8737 write_gdbindex_1. Change return type void.
8738 (assert_file_size): Move up, remove filename parameter.
8739 (write_gdbindex_1): New function.
8740 (write_debug_names): Change return type to void, call
8741 assert_file_size.
8742 (struct index_wip_file): New struct.
8743 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8744 file logic to index_wip_file. Write index for dwz file if
8745 needed.
8746 (save_gdb_index_command): Pass basename of dwz file, if present.
8747 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8748 build-id of dwz file, if present.
8749 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8750 (dwarf2_get_dwz_file): Likewise.
8751 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8752 (dwarf2_get_dwz_file): Likewise.
8753
8754 2019-06-16 Tom Tromey <tom@tromey.com>
8755
8756 * coffread.c (process_coff_symbol): Use xstrdup.
8757 * value.c (create_internalvar): Use xstrdup.
8758
8759 2019-06-16 Tom Tromey <tom@tromey.com>
8760
8761 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8762 * breakpoint.c (stopin_command, stopat_command)
8763 (until_break_command, decode_location_default): Remove unnecessary
8764 cast.
8765 * utils.c (subset_compare): Remove unnecessary cast.
8766 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8767 cast.
8768 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8769 cast.
8770 * infcmd.c (path_command): Remove unnecessary cast.
8771 * coffread.c (decode_type): Remove unnecessary cast.
8772 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8773 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8774 * tui/tui-stack.c (tui_show_locator_content)
8775 (tui_show_frame_info): Remove unnecessary cast.
8776 * tui/tui-win.c (tui_scroll_forward_command)
8777 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8778 (parse_scrolling_args): Remove unnecessary cast.
8779 * tui/tui-data.c (init_win_info, tui_del_window)
8780 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8781 (free_content_elements): Remove unnecessary cast.
8782 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8783 unnecessary cast.
8784 * tui/tui-source.c (tui_set_source_content)
8785 (tui_vertical_source_scroll): Remove unnecessary cast.
8786 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8787 cast.
8788 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8789 * tui/tui-regs.c (tui_display_registers_from)
8790 (tui_display_register): Remove unnecessary cast.
8791 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8792 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8793 (make_visible): Remove unnecessary cast.
8794 * tui/tui-winsource.c (tui_erase_source_content)
8795 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8796 unnecessary cast.
8797 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8798 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8799 * stabsread.c (read_type, read_array_type, read_range_type):
8800 Remove unnecessary cast.
8801 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8802 (parse_symbol, parse_type, upgrade_type, parse_external)
8803 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8804 unnecessary cast.
8805 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8806
8807 2019-06-16 Tom Tromey <tom@tromey.com>
8808
8809 * tui/tui-data.c (tui_alloc_generic_win_info)
8810 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8811 checks.
8812
8813 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8814 Andrew Burgess <andrew.burgess@embecosm.com>
8815
8816 * f-typeprint.c (f_print_type): Don't return early for not
8817 associated or not allocated types.
8818 (f_type_print_varspec_suffix): Add print_rank parameter and print
8819 ranks of array types in case they dangling.
8820 (f_type_print_base): Add print_rank parameter.
8821
8822 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8823
8824 * NEWS: Mention new MI commands.
8825 * break-catch-throw.c (enum exception_event_kind): Move to
8826 breakpoint.h.
8827 (print_mention_exception_catchpoint): Output text as a single
8828 message.
8829 (catch_exception_command_1): Rename to...
8830 (catch_exception_event): ...this, make non-static, update header
8831 command, and change some parameter types.
8832 (catch_catch_command): Update for changes to
8833 catch_exception_command_1.
8834 (catch_throw_command): Likewise.
8835 (catch_rethrow_command): Likewise.
8836 * breakpoint.c (enum exception_event_kind): Delete.
8837 * breakpoint.h (enum exception_event_kind): Moved here from
8838 break-catch-throw.c.
8839 (catch_exception_event): Declare.
8840 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8841 (mi_cmd_catch_throw): New function.
8842 (mi_cmd_catch_rethrow): New function.
8843 (mi_cmd_catch_catch): New function.
8844 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8845 'catch-catch' entries.
8846 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8847 (mi_cmd_catch_rethrow): Declare.
8848 (mi_cmd_catch_catch): Declare.
8849
8850 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8851
8852 * annotate.c (annotate_source_line): Change return type to void,
8853 update implementation to match.
8854 * annotate.h (annotate_source_line): Change return type to void,
8855 update header comment.
8856 * stack.c (print_frame_info): Don't change what frame information
8857 is printed based on whether annotations are on or not.
8858
8859 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8860
8861 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8862 (annotate_source): Make static.
8863 (annotate_source_line): Moved from source.c and renamed from
8864 identify_source_line. Update the return type.
8865 * annotate.h (annotate_source): Delete declaration.
8866 (annotate_source_line): Declaration moved from source.h, and
8867 renamed from identify_source_line. Return type updated.
8868 * source.c (identify_source_line): Moved to annotate.c and renamed
8869 to annotate_source_line.
8870 (info_line_command): Remove check of annotation_level.
8871 * source.h (identify_source_line): Move declaration to annotate.h
8872 and rename to annotate_source_line.
8873 * stack.c: Add 'annotate.h' include.
8874 (print_frame_info): Remove check of annotation_level before
8875 calling annotate_source_line.
8876
8877 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8878
8879 * source-cache.c (source_cache::get_plain_source_lines): Use
8880 open_source_file_with_line_charpos instead of just
8881 open_source_file, remove call to find_source_lines.
8882 (source_cache::get_source_lines): Likewise.
8883 * source.c (find_source_lines): Make static.
8884 (get_filename_and_charpos): Renamed into...
8885 (open_source_file_with_line_charpos): ..this along with changes to
8886 return a scoped_fd, and some other minor clean ups.
8887 (identify_source_line): Use open_source_file_with_line_charpos.
8888 (search_command_helper): Use open_source_file_with_line_charpos
8889 instead of just open_source_file, remove call to
8890 find_source_lines.
8891 * source.h (open_source_file_with_line_charpos): Declare new
8892 function.
8893 (find_source_lines): Delete declaration.
8894
8895 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8896
8897 * source.c (get_filename_and_charpos): Remove fullname
8898 parameter.
8899 (identify_source_line): Update call to get_filename_and_charpos.
8900
8901 2019-06-14 Tom Tromey <tromey@adacore.com>
8902
8903 PR gdb/24502:
8904 * ui-style.h (skip_ansi_escape): Update comment.
8905 * ui-file.h (class no_terminal_escape_file): New class.
8906 * ui-file.c (no_terminal_escape_file::write)
8907 (no_terminal_escape_file::puts): New methods.
8908 * cli/cli-logging.c (handle_redirections): Use
8909 no_terminal_escape_file.
8910
8911 2019-06-14 Tom Tromey <tromey@adacore.com>
8912
8913 * NEWS: Move convenience variable news above Python news.
8914
8915 2019-06-14 Tom Tromey <tom@tromey.com>
8916
8917 * gnulib: Move directory to top-level.
8918 * configure.ac: Don't configure gnulib.
8919 * configure: Rebuild.
8920 * common/common-defs.h: Use new path to gnulib.
8921 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8922 (GNULIB_H): Remove.
8923 (INCGNU): Look in new gnulib location.
8924 (HFILES_NO_SRCDIR): Remove gnulib files.
8925 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8926 (generated_files): Remove GNULIB_H.
8927 ($(LIBGNU), all-lib): Remove targets.
8928 (distclean): Don't mention GNULIB_BUILDDIR.
8929 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8930
8931 2019-06-14 Tom Tromey <tromey@adacore.com>
8932
8933 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8934 Warn if symbol file does not provide any symbols.
8935
8936 2019-06-14 Tom Tromey <tromey@adacore.com>
8937
8938 * source.c (find_and_open_source): Respect basenames_may_differ.
8939
8940 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8941
8942 * annotate.c (annotate_breakpoints_invalid): Make use of
8943 scoped_restore_terminal_state.
8944 (annotate_frames_invalid): Likewise.
8945
8946 2019-06-14 Tom Tromey <tromey@adacore.com>
8947
8948 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8949 allow assignment to an internalvar.
8950
8951 2019-06-14 Tom Tromey <tromey@adacore.com>
8952
8953 * ada-lex.l: Allow "_" in attribute names.
8954
8955 2019-06-14 Tom Tromey <tromey@adacore.com>
8956
8957 PR gdb/24653:
8958 * regcache.c (registers_changed): Don't call alloca.
8959 * top.c (execute_command): Don't call alloca.
8960
8961 2019-06-13 Pedro Alves <palves@redhat.com>
8962
8963 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8964 'expression'. When parsing an expression, error out if there's
8965 junk after "unlimited".
8966 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8967 (do_set_command): Adjust calls to is_unlimited_literal.
8968
8969 2019-06-13 Pedro Alves <palves@redhat.com>
8970
8971 * compile/compile.c (make_compile_options_def_group): Add braces
8972 around array_view initializer.
8973 * thread.c (make_thread_apply_all_options_def_group)
8974 (make_thread_apply_all_options_def_group): Likewise.
8975
8976 2019-06-13 Pedro Alves <palves@redhat.com>
8977
8978 * NEWS (New commands): Mention "maint test-options
8979 require-delimiter", "maint test-options unknown-is-error", "maint
8980 test-options unknown-is-operand" and "maint show
8981 test-options-completion-result".
8982 (New command options, command completion): New section.
8983 (Completion improvements): New section.
8984 Mention that you can abbreviate "unlimited".
8985
8986 2019-06-13 Pedro Alves <palves@redhat.com>
8987
8988 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8989 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8990 * unittests/cli-utils-selftests.c (test_parse_flags)
8991 (test_parse_flags_qcs): Delete.
8992 (test_cli_utils): Don't call deleted functions.
8993
8994 2019-06-13 Pedro Alves <palves@redhat.com>
8995
8996 * thread.c: Include "cli/cli-option.h".
8997 (tp_array_compar_ascending): Global.
8998 (tp_array_compar): Delete function.
8999 (tp_array_compar_ascending, tp_array_compar_descending): New
9000 functions.
9001 (ascending_option_def, qcs_flag_option_def)
9002 (thr_qcs_flags_option_defs)
9003 (make_thread_apply_all_options_def_group)
9004 (make_thread_apply_options_def_group): New.
9005 (thread_apply_all_command): Use gdb::option::process_options.
9006 (thread_apply_command_completer)
9007 (thread_apply_all_command_completer): New.
9008 (thread_apply_command): Use gdb::option::process_options.
9009 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9010 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9011 to generate help text of "thread apply". Adjust "taas"'s help.
9012 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9013 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9014
9015 2019-06-13 Pedro Alves <palves@redhat.com>
9016
9017 * thread.c (thread_apply_command): Check for invalid TID with
9018 isdigit instead of !isalpha.
9019
9020 2019-06-13 Pedro Alves <palves@redhat.com>
9021
9022 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9023 (validate_flags_qcs): New.
9024 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9025 (validate_flags_qcs): Declare.
9026 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9027 (make_frame_apply_options_def_group): New.
9028 (frame_apply_command_count): Process options with
9029 gdb::option::process_options.
9030 (frame_apply_completer): New.
9031 (frame_apply_level_completer, frame_apply_all_completer)
9032 (frame_apply_completer): New.
9033 (_initialize_stack): Update help of "frame apply", "frame apply
9034 level", "frame apply all" and "faas" to mention supported options
9035 and install command completers.
9036 * stack.h (frame_apply_all_completer): Declare.
9037 * thread.c: Include "stack.h".
9038 (tfaas_command): Add "--".
9039 (_initialize_thread): Update help "tfaas" to mention supported
9040 options and install command completer.
9041
9042 2019-06-13 Pedro Alves <palves@redhat.com>
9043
9044 * completer.c (complete_nested_command_line): New.
9045 (gdb_completion_word_break_characters_throw): Add assertion.
9046 * completer.h (complete_nested_command_line): Declare.
9047
9048 2019-06-13 Pedro Alves <palves@redhat.com>
9049
9050 * stack.c (parse_backtrace_qualifiers): New.
9051 (backtrace_command): Use it.
9052 (backtrace_command_completer): Complete on qualifiers.
9053
9054 2019-06-13 Pedro Alves <palves@redhat.com>
9055
9056 * frame.c: Include "cli/cli-option.h.
9057 (user_set_backtrace_options): New.
9058 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9059 Delete.
9060 (get_prev_frame): Adjust.
9061 (boolean_option_def, uinteger_option_def)
9062 (set_backtrace_option_defs): New.
9063 (_initialize_frame): Adjust and use
9064 gdb::option::add_setshow_cmds_for_options to install "set
9065 backtrace past-main" and "set backtrace past-entry".
9066 * frame.h: Include "cli/cli-option.h".
9067 (struct frame_print_options): Forward declare.
9068 (print_frame_arguments_all, print_frame_arguments_scalars)
9069 (print_frame_arguments_none): Declare.
9070 (print_entry_values): Delete declaration.
9071 (struct frame_print_options, user_frame_print_options): New.
9072 (struct set_backtrace_options): New.
9073 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9074 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9075 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9076 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9077 (list_args_or_locals): Add frame_print_options parameter.
9078 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9079 * python/py-framefilter.c (enumerate_args): Pass down
9080 USER_FRAME_PRINT_OPTIONS.
9081 * stack.c: Include "cli/cli-option.h".
9082 (print_frame_arguments_all, print_frame_arguments_scalars)
9083 (print_frame_arguments_none): Declare.
9084 (print_raw_frame_arguments, print_entry_values): Delete.
9085 (user_frame_print_options): New.
9086 (boolean_option_def, enum_option_def, frame_print_option_defs):
9087 New.
9088 (struct backtrace_cmd_options): New.
9089 (bt_flag_option_def): New.
9090 (backtrace_command_option_defs): New.
9091 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9092 (print_frame_arg, read_frame_arg, print_frame_args)
9093 (print_frame_info, print_frame): Add frame_print_options parameter
9094 and use it.
9095 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9096 (backtrace_command_1): Add frame_print_options and
9097 backtrace_cmd_options parameters and use them.
9098 (make_backtrace_options_def_group): New.
9099 (backtrace_command): Process command options with
9100 gdb::option::process_options.
9101 (backtrace_command_completer): New.
9102 (_initialize_stack): Extend "backtrace"'s help to mention
9103 supported options. Install completer for "backtrace".
9104 Install some settings commands with add_setshow_cmds_for_options.
9105
9106 2019-06-13 Pedro Alves <palves@redhat.com>
9107
9108 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9109 and that "set/show print raw frame-arguments" are now deprecated.
9110
9111 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9112 command.
9113 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9114 * stack.c (_initialize_stack): Install "set/show print
9115 raw-frame-arguments", and deprecate "set/show print raw
9116 frame-arguments".
9117 * valprint.c (_initialize_valprint): Deprecate "set/show print
9118 raw".
9119
9120 2019-06-13 Pedro Alves <palves@redhat.com>
9121
9122 * compile/compile.c (struct compile_options): New.
9123 (compile_flag_option_def, compile_command_option_defs)
9124 (make_compile_options_def_group): New.
9125 (compile_file_command): Handle options with
9126 gdb::option::process_options.
9127 (compile_file_command_completer): New function.
9128 (compile_code_command): Handle options with
9129 gdb::option::process_options.
9130 (compile_code_command_completer): New function.
9131 (_initialize_compiler): Install completers for "compile code" and
9132 "compile file". Mention available options in "compile code" and
9133 "compile code"'s help.
9134 * completer.c (advance_to_completion_word): New, factored out from
9135 ...
9136 (advance_to_expression_complete_word_point): ... this.
9137 (advance_to_filename_complete_word_point): New.
9138 * completer.h (advance_to_filename_complete_word_point): New
9139 declaration.
9140
9141 2019-06-13 Pedro Alves <palves@redhat.com>
9142
9143 * compile/compile.c: Include "cli/cli-option.h".
9144 (compile_print_value): Scope data pointer is now a
9145 value_print_options pointer; adjust.
9146 (compile_print_command): Process options. Scope data pointer is
9147 now a value_print_options pointer; adjust.
9148 (_initialize_compile): Update "compile print"'s help to include
9149 supported options. Install a completer for "compile print".
9150 * cp-valprint.c (show_vtblprint, show_objectprint)
9151 (show_static_field_print): Delete.
9152 (_initialize_cp_valprint): Don't install "set print
9153 static-members", "set print vtbl", "set print object" here.
9154 * printcmd.c: Include "cli/cli-option.h" and
9155 "common/gdb_optional.h".
9156 (print_command_parse_format): Rework to fill in a
9157 value_print_options instead of a format_data.
9158 (print_value): Change parameter type from format_data pointer to
9159 value_print_options reference. Adjust.
9160 (print_command_1): Process options. Adjust to pass down a
9161 value_print_options.
9162 (print_command_completer): New.
9163 (_initialize_printcmd): Install print_command_completer as
9164 handle_brkchars completer for the "print" command. Update
9165 "print"'s help to include supported options.
9166 * valprint.c: Include "cli/cli-option.h".
9167 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9168 here from cp-valprint.c.
9169 (boolean_option_def, uinteger_option_def)
9170 (value_print_option_defs, make_value_print_options_def_group):
9171 New. Use gdb::option::add_setshow_cmds_for_options to install
9172 "set print elements", "set print null-stop", "set print repeats",
9173 "set print pretty", "set print union", "set print array", "set
9174 print address", "set print symbol", "set print array-indexes".
9175 * valprint.h: Include <string> and "cli/cli-option.h".
9176 (make_value_print_options_def_group): Declare.
9177 (print_value): Change parameter type from format_data pointer to
9178 value_print_options reference.
9179 (print_command_completer): Declare.
9180
9181 2019-06-13 Pedro Alves <palves@redhat.com>
9182
9183 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9184 (COMMON_SFILES): Add maint-test-settings.c.
9185 * cli/cli-decode.c (boolean_enums): New global, factored out from
9186 ...
9187 (add_setshow_boolean_cmd): ... here.
9188 * cli/cli-decode.h (boolean_enums): Declare.
9189 * cli/cli-option.c: New file.
9190 * cli/cli-option.h: New file.
9191 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9192 factored out from ...
9193 (parse_cli_boolean_value(const char *)): ... this.
9194 (is_unlimited_literal): Change parameter type to pointer to
9195 pointer. Adjust and advance ARG pointer.
9196 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9197 (parse_cli_var_enum): New, factored out from ...
9198 (do_set_command): ... this. Adjust.
9199 * cli/cli-setshow.h (parse_cli_boolean_value)
9200 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9201 (parse_cli_var_enum): Declare.
9202 * cli/cli-utils.c: Include "cli/cli-option.h".
9203 (get_ulongest): New.
9204 * cli/cli-utils.h (get_ulongest): Declare.
9205 (check_for_argument): New overloads.
9206 * maint-test-options.c: New file.
9207
9208 2019-06-13 Pedro Alves <palves@redhat.com>
9209
9210 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9211 parse a range if "-" is at the end of the string.
9212
9213 2019-06-13 Pedro Alves <palves@redhat.com>
9214
9215 * cli/cli-setshow.c (parse_auto_binary_operation)
9216 (parse_cli_boolean_value): Don't allow "o".
9217
9218 2019-06-13 Pedro Alves <palves@redhat.com>
9219
9220 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9221 * NEWS: Mention maint test-settings KIND.
9222 * maint-test-settings.c: New file.
9223
9224 2019-06-13 Pedro Alves <palves@redhat.com>
9225
9226 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9227 completer.
9228 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9229 "set" completers.
9230
9231 2019-06-13 Pedro Alves <palves@redhat.com>
9232
9233 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9234 after item.
9235
9236 2019-06-13 Pedro Alves <palves@redhat.com>
9237
9238 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9239
9240 2019-06-13 Pedro Alves <palves@redhat.com>
9241
9242 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9243 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9244 call.
9245 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9246 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9247 calls.
9248 (check_for_argument): Skip spaces after argument.
9249
9250 2019-06-13 Pedro Alves <palves@redhat.com>
9251
9252 * thread.c (thread_apply_command): Adjust TID parsing.
9253 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9254 detected before end of string.
9255 (tid_is_in_list): Error out if LIST is invalid.
9256
9257 2019-06-13 Pedro Alves <palves@redhat.com>
9258
9259 * completer.c (complete_line_internal_1): Rewind completion word
9260 point.
9261 (completion_tracker::advance_custom_word_point_by): Change
9262 parameter type to int.
9263 * completer.h (completion_tracker::advance_custom_word_point_by):
9264 Likewise.
9265
9266 2019-06-13 Pedro Alves <palves@redhat.com>
9267
9268 * completer.c (advance_to_completion_word): Handle delimiters.
9269
9270 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9271
9272 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9273
9274 2019-06-11 Tom Tromey <tom@tromey.com>
9275
9276 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9277 (xmalloc_failed): Move to alloc.c.
9278 * alloc.c: New file.
9279 * Makefile.in (COMMON_SFILES): Add alloc.c.
9280
9281 2019-06-11 Tom Tromey <tom@tromey.com>
9282
9283 * nat/linux-waitpid.c: Don't include server.h.
9284 (linux_debug): Remove.
9285 (my_waitpid): Update.
9286
9287 2019-06-11 Tom Tromey <tromey@adacore.com>
9288
9289 * infcall.c (_initialize_infcall): Remove trailing newline from
9290 help.
9291 * user-regs.c (_initialize_user_regs): Remove trailing newline
9292 from help.
9293 * typeprint.c (_initialize_typeprint): Remove trailing newline
9294 from help.
9295 * reverse.c (_initialize_reverse): Remove trailing newlines from
9296 help.
9297 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9298 from help.
9299 * language.c (add_set_language_command): Remove trailing newline
9300 from help.
9301 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9302 help.
9303 * disasm.c (_initialize_disasm): Remove trailing newline from
9304 help.
9305 * top.c (init_main): Remove trailing newline from help.
9306 * interps.c (_initialize_interpreter): Remove trailing newline
9307 from help.
9308 * btrace.c (_initialize_btrace): Remove trailing newlines from
9309 help.
9310 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9311 from help.
9312 * python/python.c (_initialize_python): Remove trailing newline
9313 from help.
9314 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9315 help.
9316 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9317 from help. Reformat some text.
9318 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9319 from help.
9320 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9321 newline from help.
9322
9323 2019-06-11 Tom Tromey <tromey@adacore.com>
9324
9325 * darwin-nat.c (darwin_decode_exception_message)
9326 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9327
9328 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9329
9330 * valops.c (value_slice): Check for not allocated or not
9331 associated values.
9332
9333 2019-06-10 Tom de Vries <tdevries@suse.de>
9334
9335 PR gdb/24618
9336 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9337 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9338 invalid.
9339
9340 2019-06-10 Tom de Vries <tdevries@suse.de>
9341
9342 PR gdb/24611
9343 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9344 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9345
9346 2019-06-10 Tom de Vries <tdevries@suse.de>
9347
9348 PR symtab/24545
9349 * symtab.c (struct demangled_name_entry): Add language field.
9350 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9351 static minimal symbol". Set and use language field.
9352
9353 2019-06-10 Tom Tromey <tromey@adacore.com>
9354
9355 * ada-lang.c (_initialize_ada_language): Update help text.
9356
9357 2019-06-10 Tom Tromey <tromey@adacore.com>
9358
9359 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9360 with a newline.
9361 * guile/guile.c (handle_boot_error): Don't end warning with a
9362 newline.
9363 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9364 warning with a newline.
9365 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9366 newline.
9367 (s12z_frame_cache): Likewise.
9368 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9369 a newline.
9370 * solib-svr4.c (disable_probes_interface): Don't end warning with
9371 a newline.
9372 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9373 newline.
9374 * python/python.c (do_finish_initialization): Don't end warning
9375 with a newline.
9376
9377 2019-06-10 Tom Tromey <tom@tromey.com>
9378
9379 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9380 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9381 gdbpy_enter.
9382
9383 2019-06-10 Tom Tromey <tromey@adacore.com>
9384
9385 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9386 data.
9387 (elf_new_init): Don't call stabsread_new_init.
9388 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9389 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9390 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9391
9392 2019-06-10 Tom de Vries <tdevries@suse.de>
9393
9394 PR symtab/16264
9395 PR symtab/24517
9396 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9397
9398 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9399
9400 * source.c (find_and_open_source): Also rewrite relative file
9401 names.
9402
9403 2019-04-26 Amos Bird <amosbird@gmail.com>
9404
9405 * annotate.c (annotate_thread_exited): Add "thread-exited"
9406 annotation.
9407
9408 2019-06-06 Tom Tromey <tromey@adacore.com>
9409
9410 * maint.h (class scoped_command_stats): Use
9411 DISABLE_COPY_AND_ASSIGN.
9412 <print_time>: New method.
9413 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9414 print_time.
9415 (scoped_command_stats::print_time): New method.
9416
9417 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9418
9419 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9420 instructions of lengths 6 or 8 bytes.
9421
9422 2019-06-04 Pedro Alves <palves@redhat.com>
9423
9424 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9425
9426 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9427 * breakpoint.c (condition_completer): Likewise.
9428 * cli/cli-dump.c (scan_expression): Likewise.
9429 * common/filestuff.c (mkdir_recursive): Likewise.
9430 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9431 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9432 (gdb_abspath): Likewise.
9433 * compile/compile-cplus-types.c
9434 (compile_cplus_instance::decl_name): Likewise.
9435 * completer.c (complete_explicit_location):
9436 (signal_completer, reg_or_group_completer_1): Likewise.
9437 * cp-support.c (cp_remove_params_if_any): Likewise.
9438 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9439 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9440 * infcmd.c (strip_bg_char): Likewise.
9441 * linespec.c (copy_token_string): Likewise.
9442 * mi/mi-main.c (output_cores): Likewise.
9443 * psymtab.c (psymtab_search_name):
9444 * symfile.c (test_set_ext_lang_command): Likewise.
9445 * target.c (target_fileio_read_stralloc): Likewise.
9446 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9447 * value.c (complete_internalvar): Likewise.
9448
9449 2019-06-04 Christian Biesinger <cbiesinger@google.com>
9450
9451 Add objfile property to gdb.Type.
9452 * NEWS: Mention Python API addition.
9453 * python/py-type.c (typy_get_objfile): New method.
9454
9455 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9456
9457 * NEWS: Mention the new set|show style [title|highlight].
9458 Mention changes to "show style", "help" and "apropos".
9459
9460 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9461
9462 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9463 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9464 instead of print_help_for_command.
9465 (print_doc_of_command): New function.
9466 (help_list): Add 'apropos -v word' suggestion.
9467 (print_help_for_command): Style the command name using title style.
9468 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9469 (_initialize_cli_cmds): Describe -v in apropos_command help.
9470
9471 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9472
9473 * cli/cli-style.h (cli_style_option): Add name in constructor,
9474 add m_name class member, add constructor with intensity,
9475 add name class function.
9476 (cli_style_option::add_setshow_commands): Remove name argument.
9477 (highlight_style, title_style): New styles.
9478 * cli/cli-style.c (do_show): New function that shows a style
9479 characteristic styling the style name with itself.
9480 (set_style_name): New function.
9481 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9482 Update all callers according to the changes in cli/cli-style.h.
9483 * utils.h (fputs_highlighted): New function.
9484 * utils.c (fputs_highlighted): Likewise.
9485
9486 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9487
9488 * NEWS: Mention new pipe command and new convenience variables.
9489
9490 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9491
9492 * cli/cli-cmds.c (pipe_command): New function.
9493 (_initialize_cli_cmds): Call add_com for pipe_command.
9494 Define | as an alias for pipe.
9495 (exit_status_set_internal_vars): New function.
9496 (shell_escape): Call exit_status_set_internal_vars.
9497 cli/cli-decode.c (find_command_name_length): Recognize | as
9498 a single character command.
9499
9500 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9501
9502 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9503 top.c (execute_command_to_ui_file): New function, mostly a copy
9504 of execute_command_to_string.
9505 (execute_command_to_string): Implement by calling
9506 execute_command_to_ui_file.
9507
9508 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9509
9510 * top.h (saved_command_line): Remove declaration.
9511 * top.c (previous_saved_command_line, previous_repeat_arguments):
9512 New variables.
9513 (saved_command_line): Make static, define together with other
9514 'repeat variables'.
9515 (dont_repeat): Clear repeat_arguments.
9516 (repeat_previous, get_saved_command_line, save_command_line):
9517 New functions.
9518 (gdb_init): Initialize saved_command_line
9519 and previous_saved_command_line.
9520 * main.c (captured_main_1): Remove saved_command_line initialization.
9521 * event-top.c (handle_line_of_input): Update to use
9522 the new 'repeat' related functions instead of direct access to
9523 saved_command_line.
9524 * command.h (repeat_previous, get_saved_command_line,
9525 save_command_line): New declarations.
9526 (dont_repeat): Add comment.
9527
9528 2019-05-30 Tom Tromey <tromey@adacore.com>
9529
9530 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9531 Fix comment.
9532 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9533
9534 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9535
9536 PR cli/24587
9537 * completer.c (complete): Initialize variable word.
9538
9539 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9540
9541 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9542 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9543 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9544 'body' is NULL to the outter 'if', protecting the '!is_define'
9545 situation as well.
9546
9547 2019-05-29 Tom Tromey <tromey@adacore.com>
9548
9549 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9550 (dwarf_unknown): New function.
9551 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9552 (dwarf_type_encoding_name): Use dwarf_unknown.
9553
9554 2019-05-29 Tom Tromey <tromey@adacore.com>
9555
9556 PR c++/20020:
9557 * cp-valprint.c (cp_print_value_fields): Call
9558 cp_print_static_field inside "try".
9559
9560 2019-05-29 Tom Tromey <tromey@adacore.com>
9561
9562 * inflow.c (struct terminal_info): Add default operator=.
9563 * configure: Rebuild.
9564 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9565 -Wdeprecated-copy-dtor, -Wredundant-move.
9566
9567 2019-05-29 Tom Tromey <tromey@adacore.com>
9568
9569 * NEWS: Add entry.
9570 * infcmd.c (print_return_value_1): Handle finish_print
9571 option.
9572 (show_print_finish): New function.
9573 (_initialize_infcmd): Add "set/show print finish" commands.
9574 * valprint.c (user_print_options): Initialize new member.
9575 * valprint.h (struct value_print_options) <finish_print>: New
9576 member.
9577
9578 2019-05-28 Tom Tromey <tromey@adacore.com>
9579
9580 * ada-lang.c (ada_remove_Xbn_suffix)
9581 (find_old_style_renaming_symbol)
9582 (parse_old_style_renaming): Remove.
9583 (ada_find_renaming_symbol): Don't call
9584 find_old_style_renaming_symbol.
9585 (ada_is_renaming_symbol): Rename from
9586 ada_find_renaming_symbol. Remove "block" parameter. Return
9587 bool. Now static.
9588 (ada_read_var_value): Update and simplify.
9589 * ada-exp.y (write_var_or_type): Remove old code.
9590
9591 2019-05-28 Alan Hayward <alan.hayward@arm.com>
9592
9593 PR gdb/25010
9594 * event-top.c: Remove include comment.
9595 * inflow.c (class scoped_ignore_sigttou): Move from here...
9596 * inflow.h (class scoped_ignore_sigttou): ...to here.
9597 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9598 * top.c: Remove include comment.
9599
9600 2019-05-27 Tom Tromey <tom@tromey.com>
9601
9602 * NEWS: Fix typo.
9603
9604 2019-05-22 Tom Tromey <tromey@adacore.com>
9605
9606 * target.c (target_follow_exec): Constify parameter.
9607 * target-delegates.c: Rebuild.
9608 * remote.c (remote_target::follow_exec): Constify parameter.
9609 * infrun.c (follow_exec): Constify parameter.
9610 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9611 (target_follow_exec): Likewise.
9612
9613 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9614
9615 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9616 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9617
9618 2019-05-22 Alan Hayward <alan.hayward@arm.com>
9619
9620 * NEWS: Add debugredirect and testsuite sections.
9621
9622 2019-05-22 Simon Cook <simon.cook@embecosm.com>
9623
9624 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9625 target descriptions using exclusively floating point register name
9626 aliases.
9627
9628 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9629
9630 PR gdb/18644:
9631 * f-lang.c (build_fortran_types): Handle the case where
9632 gdbarch_floatformat_for_type returns a nullptr.
9633
9634 2019-05-21 Tom de Vries <tdevries@suse.de>
9635
9636 PR cli/24587
9637 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9638
9639 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9640
9641 PR gdb/18644:
9642 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9643 16-byte floats.
9644 * i386-tdep.c (i386_floatformat_for_type): Use
9645 floatformats_ia64_quad for the 16-byte floating point component
9646 within a fortran 32-byte complex number.
9647
9648 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9649
9650 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9651 delete default constructor.
9652 (find_partial_die): Update to return const struct.
9653 (partial_die_parent_scope): Move variable declaration into scope
9654 of its use and change its type to auto.
9655 (guess_partial_die_structure_name): Likewise.
9656 (partial_die_info::fixup): Likewise.
9657
9658 2019-05-17 Tom Tromey <tromey@adacore.com>
9659
9660 * source.c (find_and_open_source): Remove cast.
9661
9662 2019-05-17 Tom Tromey <tromey@adacore.com>
9663
9664 * annotate.c (annotate_source): Make "filename" const.
9665 * annotate.h (annotate_source): Use const.
9666
9667 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9668
9669 * disasm.c (set_disassembler_options): Send errors to stderr.
9670
9671 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9672
9673 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9674 (cli_interp_base::set_logging): Check debug_redirect.
9675 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9676 * cli/cli-logging.c (debug_redirect): Add static variable.
9677 (pop_output_files): Add default param.
9678 (handle_redirections): Print debug setting.
9679 (show_logging_command): Likewise.
9680 (_initialize_cli_logging): Add debugredirect command.
9681 * interps.c (current_interp_set_logging): Add debug_redirect
9682 parameter.
9683 * interps.h (set_logging): Add debug_redirect parameter.
9684 (current_interp_set_logging): Likewise.
9685 * mi/mi-common.h: Likewise.
9686 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9687
9688 2019-05-17 Alan Hayward <alan.hayward@arm.com>
9689 Tom Tromey <tromey@adacore.com>
9690
9691 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9692 directly.
9693 * cli/cli-interp.h (make_logging_output): Remove declaration.
9694 * cli/cli-logging.c (make_logging_output): Remove function.
9695 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9696 directly.
9697 * ui-file.c (tee_file::tee_file): Remove bools.
9698 (tee_file::~tee_file): Remove deletes.
9699 * ui-file.h (tee_file): Remove bools.
9700
9701 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9702
9703 * mi/mi-cmds.h (mi_cmd_complete): New function.
9704 * mi/mi-main.c (mi_cmd_complete): Likewise.
9705 * mi/mi-cmds.c: Define new MI command -complete.
9706 * NEWS: Mention new -complete command.
9707
9708 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9709
9710 * completer.h (complete): New function.
9711 * completer.c (complete): Likewise.
9712 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9713 function defined in completer.h.
9714
9715 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9716
9717 * MAINTAINERS (Write After Approval): Add myself.
9718
9719 2019-05-17 Tom de Vries <tdevries@suse.de>
9720
9721 PR gdb/24094
9722 * dwarf2read.c (struct cu_partial_die_info): New struct.
9723 (find_partial_die): Return cu_partial_die_info.
9724 (partial_die_parent_scope, guess_partial_die_structure_name)
9725 (partial_die_info::fixup): Handle new return type of find_partial_die.
9726
9727 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9728
9729 PR breakpoints/24541
9730 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9731 "std::string", simplifying the algorithm.
9732
9733 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9734
9735 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9736 (stap_static_probe_ops::get_probes): Likewise.
9737
9738 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9739
9740 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9741 '-')" and "else if".
9742 (stap_parse_single_operand): Join checks for
9743 "gdbarch_stap_parse_special_token_p" and
9744 "gdbarch_stap_parse_special_token" in the same "if" statement.
9745 Invert check when verifying for operation on register
9746 displacement.
9747
9748 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9749
9750 * stap-probe.c (stap_get_opcode): Update comment.
9751 (stap_get_expected_argument_type): Likewise.
9752 (handle_stap_probe): Likewise.
9753
9754 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9755
9756 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9757 return type to 'bool'. Adjust comment. Use 'bool' when
9758 appropriate.
9759 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9760 * stap-probe.c (stap_parse_argument_1): Likewise.
9761 (stap_is_operator): Likewise.
9762 (stap_is_generic_prefix): Likewise.
9763 (stap_is_register_prefix): Likewise.
9764 (stap_is_register_indirection_prefix): Likewise.
9765 (stap_is_integer_prefix): Likewise.
9766 (stap_generic_check_suffix): Likewise.
9767 (stap_check_integer_suffix): Likewise.
9768 (stap_check_register_suffix): Likewise.
9769 (stap_check_register_indirection_suffix): Likewise.
9770 (stap_parse_register_operand): Likewise.
9771 (stap_parse_single_operand): Likewise.
9772 (stap_parse_argument_1): Likewise.
9773 (stap_probe::get_argument_count): Likewise.
9774 (stap_is_operator): Likewise.
9775
9776 2019-05-16 Tom Tromey <tromey@adacore.com>
9777
9778 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9779 keyword to foreach.
9780
9781 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
9782
9783 * linux-thread-db.c (try_thread_db_load_1): Change return type
9784 to bool.
9785 (try_thread_db_load): Likewise.
9786 (try_thread_db_load_from_pdir_1): Likewise.
9787 (try_thread_db_load_from_pdir): Likewise.
9788 (try_thread_db_load_from_sdir): Likewise.
9789 (try_thread_db_load_from_dir): Likewise.
9790 (thread_db_load_search): Likewise.
9791 (has_libpthread): Likewise.
9792 (thread_db_load): Likewise.
9793
9794 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9795
9796 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9797 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9798 NULL, and complain/return if that's the case.
9799
9800 2019-05-15 John Darrington <john@darrington.wattle.id.au>
9801
9802 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9803 (advance, posn, abstract_read_memory): New functions.
9804 [struct mem_read_abstraction]: New struct.
9805 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9806
9807 2019-05-14 Tom Tromey <tromey@adacore.com>
9808
9809 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9810 value is not lval_memory.
9811
9812 2019-05-14 Tom Tromey <tromey@adacore.com>
9813
9814 * solib.c (info_sharedlibrary_command): Style the file name.
9815
9816 2019-05-14 Alan Hayward <alan.hayward@arm.com>
9817
9818 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9819 (aarch64_vnv_type): Likewise.
9820 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9821 * common/tdesc.c: Likewise.
9822 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9823 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9824 * features/aarch64-fpu.xml: Add ieee half view.
9825 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9826 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9827 * gdbtypes.h (struct builtin_type): Likewise.
9828 (struct objfile_type): Likewise.
9829
9830 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
9831
9832 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9833 typo.
9834 * location.h (string_to_event_location): Likewise.
9835
9836 2019-05-11 Joel Brobecker <brobecker@adacore.com>
9837
9838 GDB 8.3 released.
9839
9840 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9841
9842 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9843 New variable declaration.
9844 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9845 New variable.
9846 (print_one_breakpoint): Use ui_out::test_flags and new global
9847 variable to compute use_fixed_output.
9848 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9849 Remove.
9850 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9851 (mi_multi_location_breakpoint_output_fixed): Remove.
9852 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9853 new variable.
9854 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9855 fix_multi_location_breakpoint_output flag if version >= 3.
9856 * ui-out.h (enum ui_out_flag)
9857 <fix_multi_location_breakpoint_output>: New enumerator.
9858
9859 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
9860
9861 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9862
9863 2019-05-10 Tom Tromey <tromey@adacore.com>
9864
9865 * ada-lang.c (catch_ada_completer): New function.
9866 (_initialize_ada_language): Use it.
9867
9868 2019-05-10 Tom Tromey <tromey@adacore.com>
9869
9870 * thread.c (print_thread_info): Make "requested_threads" const.
9871 * gdbthread.h (print_thread_info): Make "requested_threads"
9872 const.
9873 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9874 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9875
9876 2019-05-08 Tom Tromey <tom@tromey.com>
9877
9878 * gdbtypes.c (objfile_type_data): Change type.
9879 (objfile_type, _initialize_gdbtypes): Update.
9880
9881 2019-05-08 Tom Tromey <tom@tromey.com>
9882
9883 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9884 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9885 (_initialize_dwarf2_frame): Update.
9886
9887 2019-05-08 Tom Tromey <tom@tromey.com>
9888
9889 * objc-lang.c (objc_objfile_data): Change type.
9890 (find_methods): Update.
9891 (_initialize_objc_lang): Remove.
9892
9893 2019-05-08 Tom Tromey <tom@tromey.com>
9894
9895 * stabsread.c (rs6000_builtin_type_data): Change type.
9896 (rs6000_builtin_type, _initialize_stabsread): Update.
9897
9898 2019-05-08 Tom Tromey <tom@tromey.com>
9899
9900 * mips-tdep.c (mips_pdr_data): Remove.
9901 (_initialize_mips_tdep): Update.
9902
9903 2019-05-08 Tom Tromey <tom@tromey.com>
9904
9905 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9906 (hppa_init_objfile_priv_data, read_unwind_info)
9907 (find_unwind_entry, _initialize_hppa_tdep): Update.
9908
9909 2019-05-08 Tom Tromey <tom@tromey.com>
9910
9911 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9912 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9913 on obstack.
9914 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9915
9916 2019-05-08 Tom Tromey <tom@tromey.com>
9917
9918 * mdebugread.c (basic_type_data): Change type.
9919 (basic_type, _initialize_mdebugread): Update.
9920
9921 2019-05-08 Tom Tromey <tom@tromey.com>
9922
9923 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9924
9925 2019-05-08 Tom Tromey <tom@tromey.com>
9926
9927 * nto-tdep.c (nto_inferior_data_reg): Change type.
9928 (nto_inferior_data): Update.
9929 (nto_inferior_data_cleanup, nto_new_inferior_data)
9930 (_initialize_nto_tdep): Remove.
9931 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9932
9933 2019-05-08 Tom Tromey <tom@tromey.com>
9934
9935 * ada-lang.c (struct ada_inferior_data): Add initializers.
9936 (ada_inferior_data): Change type.
9937 (ada_inferior_data_cleanup): Remove.
9938 (get_ada_inferior_data, ada_inferior_exit)
9939 (struct ada_pspace_data): Add initializers, destructor.
9940 (ada_pspace_data_handle): Change type.
9941 (get_ada_pspace_data): Update.
9942 (ada_pspace_data_cleanup): Remove.
9943
9944 2019-05-08 Tom Tromey <tom@tromey.com>
9945
9946 * coffread.c (struct coff_symfile_info): Add initializers.
9947 (coff_objfile_data_key): Move lower. Change type.
9948 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9949 Update.
9950 (coff_free_info): Remove.
9951
9952 2019-05-08 Tom Tromey <tom@tromey.com>
9953
9954 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9955 (fbsd_pspace_data_handle): Move lower. Change type.
9956 (get_fbsd_pspace_data): Update.
9957 (fbsd_pspace_data_cleanup): Remove.
9958 (_initialize_fbsd_tdep): Update.
9959
9960 2019-05-08 Tom Tromey <tom@tromey.com>
9961
9962 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9963 (get_ada_tasks_pspace_data): Update.
9964 (ada_tasks_pspace_data_cleanup): Remove.
9965 (_initialize_tasks): Update.
9966 (ada_tasks_inferior_data_handle): Change type.
9967 (get_ada_tasks_inferior_data): Update.
9968 (ada_tasks_inferior_data_cleanup): Remove.
9969 (struct ada_tasks_pspace_data): Add initializers.
9970
9971 2019-05-08 Tom Tromey <tom@tromey.com>
9972
9973 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9974 * symfile-debug.c (debug_sym_get_probes): Change type.
9975 * stap-probe.c (handle_stap_probe):
9976 (stap_static_probe_ops::get_probes): Change type.
9977 * probe.h (class static_probe_ops) <get_probes>: Change type.
9978 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9979 (parse_probes_in_pspace): Update.
9980 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9981 Update.
9982 (any_static_probe_ops::get_probes): Change type.
9983 * elfread.c (elfread_data): New typedef.
9984 (probe_key): Change type.
9985 (elf_get_probes): Likewise. Update.
9986 (probe_key_free): Remove.
9987 (_initialize_elfread): Update.
9988 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9989 Change type.
9990 (dtrace_process_dof_probe, dtrace_process_dof)
9991 (dtrace_static_probe_ops::get_probe): Change type.
9992
9993 2019-05-08 Tom Tromey <tom@tromey.com>
9994
9995 * xcoffread.c (struct xcoff_symfile_info): Rename from
9996 coff_symfile_info. Add initializers.
9997 (xcoff_objfile_data_key): Move lower. Change type.
9998 (XCOFF_DATA): Rewrite.
9999 (xcoff_free_info): Remove.
10000 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10001 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10002 (xcoff_initial_scan): Update.
10003
10004 2019-05-08 Tom Tromey <tom@tromey.com>
10005
10006 * solib-svr4.c (struct svr4_info): Add initializers and
10007 destructor.
10008 <probes_table>: Now an htab_up.
10009 (solib_svr4_pspace_data): Change type.
10010 (free_probes_table): Simplify.
10011 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10012 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10013 (probes_table_remove_objfile_probes, register_solib_event_probe)
10014 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10015 (_initialize_svr4_solib): Update.
10016
10017 2019-05-08 Tom Tromey <tom@tromey.com>
10018
10019 * remote.c (remote_pspace_data): Change type.
10020 (remote_pspace_data_cleanup): Remove.
10021 (get_remote_exec_file, set_pspace_remote_exec_file)
10022 (_initialize_remote): Update.
10023
10024 2019-05-08 Tom Tromey <tom@tromey.com>
10025
10026 * breakpoint.c (breakpoint_objfile_key): Change type.
10027 (get_breakpoint_objfile_data): Update.
10028 (free_breakpoint_objfile_data): Remove.
10029 (_initialize_breakpoint): Update.
10030
10031 2019-05-08 Tom Tromey <tom@tromey.com>
10032
10033 * linux-tdep.c (struct linux_info): Add initializers.
10034 (linux_inferior_data): Move. Change type.
10035 (invalidate_linux_cache_inf): Update.
10036 (linux_inferior_data_cleanup): Remove.
10037 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10038
10039 2019-05-08 Tom Tromey <tom@tromey.com>
10040
10041 * auxv.c (auxv_inferior_data): Move. Change type.
10042 (auxv_inferior_data_cleanup): Remove.
10043 (invalidate_auxv_cache_inf): Rewrite.
10044 (get_auxv_inferior_data, _initialize_auxv): Update.
10045
10046 2019-05-08 Tom Tromey <tom@tromey.com>
10047
10048 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10049 (symfile_debug_objfile_data_key): Change type.
10050 (symfile_debug_installed, debug_qf_has_symbols)
10051 (debug_qf_find_last_source_symtab)
10052 (debug_qf_forget_cached_source_info)
10053 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10054 (debug_qf_print_stats, debug_qf_dump)
10055 (debug_qf_expand_symtabs_for_function)
10056 (debug_qf_expand_all_symtabs)
10057 (debug_qf_expand_symtabs_with_fullname)
10058 (debug_qf_map_matching_symbols)
10059 (debug_qf_expand_symtabs_matching)
10060 (debug_qf_find_pc_sect_compunit_symtab)
10061 (debug_qf_map_symbol_filenames)
10062 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10063 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10064 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10065 (debug_sym_read_linetable, debug_sym_relocate): Update.
10066 (symfile_debug_free_objfile): Remove.
10067 (install_symfile_debug_logging, _initialize_symfile_debug):
10068 Update.
10069
10070 2019-05-08 Tom Tromey <tom@tromey.com>
10071
10072 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10073 allocate_on_obstack.
10074 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10075 (get_dwarf2_per_objfile): Update.
10076 (set_dwarf2_per_objfile): Remove.
10077 (dwarf2_has_info, dwarf2_get_section_info): Update.
10078 (dwarf2_free_objfile): Remove.
10079 (_initialize_dwarf2_read): Update.
10080
10081 2019-05-08 Tom Tromey <tom@tromey.com>
10082
10083 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10084 initializers.
10085 <unsupported_script_warning_printed,
10086 script_not_found_warning_printed>: Now bool.
10087 (auto_load_pspace_data): Change type.
10088 (~auto_load_pspace_info): Rename from
10089 auto_load_pspace_data_cleanup.
10090 (get_auto_load_pspace_data, init_loaded_scripts_info)
10091 (clear_section_scripts, maybe_print_unsupported_script_warning)
10092 (maybe_print_script_not_found_warning, _initialize_auto_load):
10093 Update.
10094
10095 2019-05-08 Tom Tromey <tom@tromey.com>
10096
10097 * objfiles.c (objfile_pspace_info): Add destructor and
10098 initializers.
10099 (objfiles_pspace_data): Change type.
10100 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10101 (get_objfile_pspace_data): Update.
10102 (objfiles_bfd_data): Change type.
10103 (get_objfile_bfd_data): Update.
10104 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10105
10106 2019-05-08 Tom Tromey <tom@tromey.com>
10107
10108 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10109 Change type.
10110 (get_catch_syscall_inferior_data): Update.
10111 (catch_syscall_inferior_data_cleanup): Remove.
10112 (_initialize_break_catch_syscall): Update.
10113
10114 2019-05-08 Tom Tromey <tom@tromey.com>
10115
10116 * inflow.c (struct terminal_info): Add destructor and
10117 initializers.
10118 (inflow_inferior_data): Change type.
10119 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10120 (get_inflow_inferior_data, inflow_inferior_exit)
10121 (swap_terminal_info, _initialize_inflow): Update.
10122
10123 2019-05-08 Tom Tromey <tom@tromey.com>
10124
10125 * target-dcache.c (target_dcache_cleanup): Remove.
10126 (target_dcache_aspace_key): Change type.
10127 (target_dcache_init_p, target_dcache_invalidate)
10128 (target_dcache_get, target_dcache_get_or_init)
10129 (_initialize_target_dcache): Update.
10130 * dcache.h (struct dcache_deleter): New.
10131
10132 2019-05-08 Tom Tromey <tom@tromey.com>
10133
10134 * symtab.c (struct symbol_cache): Add destructor and
10135 initializers.
10136 (symbol_cache_key): Move. Change type.
10137 (make_symbol_cache, free_symbol_cache): Remove.
10138 (get_symbol_cache): Update.
10139 (symbol_cache_cleanup): Remove.
10140 (ALL_PSPACES, symbol_cache_flush)
10141 (maintenance_print_symbol_cache)
10142 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10143 Update.
10144
10145 2019-05-08 Tom Tromey <tom@tromey.com>
10146
10147 * symtab.c (struct main_info): Add destructor and initializers.
10148 (main_progspace_key): Move. Change type.
10149 (get_main_info): Update.
10150 (main_info_cleanup): Remove.
10151 (_initialize_symtab): Update.
10152
10153 2019-05-08 Tom Tromey <tom@tromey.com>
10154
10155 * registry.h (DECLARE_REGISTRY): Define the _key class.
10156
10157 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10158
10159 * NEWS: Merge two 'New commands' sections.
10160
10161 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10162
10163 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10164 parameter and use Ada language definition instead.
10165 (ada_val_print_ptr): Remove unused language parameter.
10166 (ada_val_print_num): Remove language parameter and use Ada language
10167 definition instead.
10168 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10169 parameter.
10170 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10171 parameter and use Ada language definition instead.
10172 (ada_val_print_1): Update all ada_val_print_xxx calls.
10173 Remove language parameter.
10174 (ada_val_print): Update ada_val_print_1 call.
10175
10176 2019-05-08 Tom Tromey <tromey@adacore.com>
10177
10178 * remote.c (remote_hw_watchpoint_limit)
10179 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10180 Now static.
10181
10182 2019-05-08 Tom Tromey <tromey@adacore.com>
10183
10184 * maint.c (_initialize_maint_cmds): Move initialization code to
10185 remote.c.
10186 (watchdog, show_watchdog): Move to remote.c.
10187 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10188 "watchdog" static.
10189 (_initialize_remote): Move initialization code from maint.c.
10190 * defs.h (watchdog): Don't declare.
10191
10192 2019-05-08 Tom Tromey <tromey@adacore.com>
10193
10194 * tui/tui-interp.c: Include main.h.
10195 * interps.c: Include main.h.
10196 * main.h (interpreter_p): Declare.
10197 * defs.h (interpreter_p): Don't declare.
10198
10199 2019-05-08 Tom Tromey <tromey@adacore.com>
10200
10201 * dwarf2loc.c: Include dwarf2read.h.
10202 * defs.h (read_unsigned_leb128): Don't declare.
10203 * dwarf2read.h (read_unsigned_leb128): Declare.
10204
10205 2019-05-08 Tom Tromey <tromey@adacore.com>
10206
10207 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10208 method.
10209
10210 2019-05-08 Tom Tromey <tromey@adacore.com>
10211
10212 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10213 when no wrap column is set.
10214
10215 2019-05-08 Tom Tromey <tromey@adacore.com>
10216
10217 * c-lang.c (c_get_string): Handle non-C-style arrays.
10218
10219 2019-05-08 Tom Tromey <tromey@adacore.com>
10220
10221 * typeprint.c (print_offset_data::update): Print the bit offset,
10222 not the number of bits remaining.
10223
10224 2019-05-08 Tom Tromey <tromey@adacore.com>
10225
10226 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10227 padding at end of comment.
10228
10229 2019-05-08 Tom Tromey <tromey@adacore.com>
10230
10231 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10232 Compare main types.
10233
10234 2019-05-06 Tom Tromey <tom@tromey.com>
10235
10236 * common/scoped_mmap.c: Include common-defs.h.
10237 * common/scoped_mmap.h: Don't include config.h.
10238
10239 2019-05-04 Tom Tromey <tom@tromey.com>
10240
10241 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10242 (struct aarch64_call_info): Add initializers.
10243 <si>: Now a std::vector.
10244 (pass_on_stack, aarch64_push_dummy_call): Update.
10245
10246 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10247 Tom Tromey <tom@tromey.com>
10248
10249 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10250 (ppc_threads): Now a std::vector. Now static.
10251 (hwdebug_find_thread_points_by_tid)
10252 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10253 Update.
10254
10255 2019-05-04 Tom Tromey <tom@tromey.com>
10256
10257 * arc-tdep.c (arc_tdesc_init): Return bool.
10258
10259 2019-05-04 Tom Tromey <tom@tromey.com>
10260
10261 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10262 Use gdb_assert_not_reached.
10263
10264 2019-05-04 Tom Tromey <tom@tromey.com>
10265
10266 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10267 "false".
10268
10269 2019-05-04 Tom Tromey <tom@tromey.com>
10270
10271 * arc-tdep.c (arc_tdesc_init): Use bool.
10272
10273 2019-05-04 Tom Tromey <tom@tromey.com>
10274
10275 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10276
10277 2019-05-04 Tom Tromey <tom@tromey.com>
10278
10279 * cli/cli-cmds.c (valid_command_p): Return bool.
10280
10281 2019-05-04 Tom Tromey <tom@tromey.com>
10282
10283 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10284 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10285
10286 2019-05-04 Raul Tambre <raul@tambre.ee>
10287
10288 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10289 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10290 operator for comparison.
10291
10292 2019-05-04 Tom Tromey <tom@tromey.com>
10293
10294 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10295 (lookup_partial_symbol, print_partial_symbols)
10296 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10297 (psymbol_compare): Update.
10298 (add_psymbol_to_bcache): Clear the entire psymbol.
10299 (maintenance_check_psymtabs): Update.
10300 * psympriv.h (struct partial_symbol): Don't derive from
10301 general_symbol_info.
10302 <obj_section, unrelocated_address, address,
10303 set_unrelocated_address>: Update.
10304 <ginfo>: New member.
10305 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10306 (debug_names::write_psymbols): Update.
10307
10308 2019-05-04 Tom de Vries <tdevries@suse.de>
10309
10310 * contrib/cc-with-tweaks.sh: Support -n arg.
10311
10312 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10313
10314 * corelow.c (core_target::detach): Ensure frame cache and
10315 register caches are cleared.
10316 inferior.c (exit_inferior_1): Likewise.
10317
10318 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10319 Tom Tromey <tom@tromey.com>
10320
10321 * dictionary.c (collate_pending_symbols_by_language): Remove
10322 "struct" from foreach.
10323 * symtab.c (lookup_global_symbol_from_objfile)
10324 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10325 foreach.
10326 * ser-tcp.c (net_open): Remove "struct" from foreach.
10327 * objfiles.c (objfile_relocate, objfile_rebase)
10328 (objfile_has_symbols): Remove "struct" from foreach.
10329 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10330 from foreach.
10331 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10332 foreach.
10333 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10334 "struct" from foreach.
10335 * ada-lang.c (create_excep_cond_exprs)
10336 (ada_exception_catchpoint_cond_string): Remove "struct" from
10337 foreach.
10338
10339 2019-05-03 Tom Tromey <tromey@adacore.com>
10340
10341 * ada-exp.y (convert_char_literal): Check suffix of each
10342 enumerator.
10343
10344 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10345
10346 PR ada/21406:
10347 * ada-exp.y (yywrap): Don't define.
10348 * ada-lex.l (%option): Add noyywrap
10349 (yywrap): Remove.
10350
10351 2019-05-03 Eli Zaretskii <eliz@gnu.org>
10352
10353 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10354 _WIN32_WINNT to the XP level, unless already defined to a higher
10355 level.
10356
10357 * unittests/parse-connection-spec-selftests.c:
10358 * ser-tcp.c:
10359 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10360 override.
10361
10362 * symfile.c (find_separate_debug_file): Remove colon from the
10363 drive spec of DOS/Windows file names of the target, so that the
10364 file name produced from DEBUGDIR and the target's directory will
10365 be valid on DOS/Windows systems.
10366
10367 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10368
10369 * rust-lang.c (val_print_struct): Handle printing structures
10370 containing strings.
10371
10372 2019-05-02 Tom Tromey <tromey@adacore.com>
10373
10374 * valarith.c (_initialize_valarith): Remove.
10375
10376 2019-05-01 Tom Tromey <tromey@adacore.com>
10377
10378 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10379 bitfields.
10380
10381 2019-05-01 Tom Tromey <tromey@adacore.com>
10382
10383 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10384 for big-endian copies.
10385
10386 2019-04-30 Ali Tamur <tamur@google.com>
10387 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10388 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10389 (read_3_bytes): New function.
10390
10391 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10392
10393 * windows-nat.c (main_thread_id): Delete.
10394 (handle_output_debug_string): Replace main_thread_id by
10395 current_event.dwThreadId.
10396 (fake_create_process): Likewise.
10397 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10398 Do not set main_thread_id.
10399 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10400 current_event.dwThreadId.
10401 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10402
10403 2019-04-30 Joel Brobecker <brobecker@adacore.com>
10404
10405 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10406 Use current_event.dwThreadId instead of main_thread_id.
10407
10408 2019-04-30 Tom Tromey <tromey@adacore.com>
10409
10410 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10411 (create_excep_cond_exprs): Iterate over program spaces.
10412 (ada_exception_catchpoint_cond_string): Examine all minimal
10413 symbols for exception types.
10414
10415 2019-04-30 Tom Tromey <tromey@adacore.com>
10416
10417 PR c++/24470:
10418 * dwarf2read.c (process_structure_scope): Handle case where type
10419 has template parameters but no symbol was created.
10420
10421 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10422 Chris January <chris.january@arm.com>
10423
10424 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10425 qualifier.
10426 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10427
10428 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10429
10430 * f-typeprint.c (f_print_type): Update rules for printing
10431 whitespace.
10432 (f_type_print_varspec_suffix): Likewise.
10433
10434 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10435 Chris January <chris.january@arm.com>
10436
10437 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10438 function arguments.
10439
10440 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10441
10442 * f-lang.c (build_fortran_types): Change name of void type to
10443 lower case.
10444 * f-typeprint.c (f_type_print_base): Print the name of the void
10445 type, rather than a fixed string.
10446 * f-valprint.c (f_decorations): Use lower case void string.
10447
10448 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10449 Chris January <chris.january@arm.com>
10450
10451 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10452 types for Fortran.
10453
10454 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10455 Chris January <chris.january@arm.com>
10456 David Lecomber <david.lecomber@arm.com>
10457
10458 * f-exp.y (BINOP_INTRINSIC): New token.
10459 (exp): New parser rule handling BINOP_INTRINSIC.
10460 (f77_keywords): Add new builtin procedures.
10461 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10462 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10463 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10464 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10465 (print_unop_subexp_f): New function.
10466 (print_binop_subexp_f): New function.
10467 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10468 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10469 (dump_subexp_body_f): Likewise.
10470 (operator_check_f): Likewise.
10471 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10472 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10473
10474 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10475
10476 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10477 UNOP_KIND.
10478 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10479 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10480 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10481 (operator_length_f): New fuction.
10482 (print_subexp_f): New function.
10483 (op_name_f): New function.
10484 (dump_subexp_body_f): New function.
10485 (operator_check_f): New function.
10486 (exp_descriptor_f): Replace standard expression handling functions
10487 with new functions.
10488 * gdb/fortran-operator.def: New file.
10489 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10490 * gdb/std-operator.def: Remove UNOP_KIND.
10491
10492 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10493
10494 * std-operator.def: Remove unbalanced, stray double quote
10495 character.
10496
10497 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10498 Chris January <chris.january@arm.com>
10499 Daniel Everett <daniel.everett@arm.com>
10500 Nick Forrington <nick.forrington@arm.com>
10501 Richard Bunt <richard.bunt@arm.com>
10502
10503 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10504 of depth when printing anonymous structs or unions.
10505 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10506 Don't print either the top-level value, or the children if the
10507 max-depth is exceeded.
10508 (ppscm_print_children): When printing the key of a map, allow one
10509 extra level of depth.
10510 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10511 print either the top-level value, or the children if the max-depth
10512 is exceeded.
10513 (print_children): When printing the key of a map, allow one extra
10514 level of depth.
10515 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10516 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10517 (user_print_options): Initialise max_depth field.
10518 (val_print_scalar_or_string_type_p): New function.
10519 (val_print): Check to see if the max depth has been reached.
10520 (val_print_check_max_depth): Define new function.
10521 (show_print_max_depth): New function.
10522 (_initialize_valprint): Add 'print max-depth' option.
10523 * valprint.h (struct value_print_options) <max_depth>: New field.
10524 (val_print_check_max_depth): Declare new function.
10525 * NEWS: Document new feature.
10526
10527 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10528
10529 * ada-lang.c (ada_language_defn): Initialise new field.
10530 * c-lang.c (c_is_string_type_p): New function.
10531 (c_language_defn): Initialise new field.
10532 (cplus_language_defn): Initialise new field.
10533 (asm_language_defn): Initialise new field.
10534 (minimal_language_defn): Initialise new field.
10535 * c-lang.h (c_is_string_type_p): Declare new function.
10536 * d-lang.c (d_language_defn): Initialise new field.
10537 * f-lang.c (f_is_string_type_p): New function.
10538 (f_language_defn): Initialise new field.
10539 * go-lang.c (go_is_string_type_p): New function.
10540 (go_language_defn): Initialise new field.
10541 * language.c (default_is_string_type_p): New function.
10542 (unknown_language_defn): Initialise new field.
10543 (auto_language_defn): Initialise new field.
10544 * language.h (struct language_defn) <la_is_string_type_p>: New
10545 member variable.
10546 (default_is_string_type_p): Declare new function.
10547 * m2-lang.c (m2_language_defn): Initialise new field.
10548 * objc-lang.c (objc_language_defn): Initialise new field.
10549 * opencl-lang.c (opencl_language_defn): Initialise new field.
10550 * p-lang.c (pascal_is_string_type_p): New function.
10551 (pascal_language_defn): Initialise new field.
10552 * rust-lang.c (rust_is_string_type_p): New function.
10553 (rust_language_defn): Initialise new field.
10554
10555 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10556
10557 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10558 New field.
10559 * ada-lang.c (ada_language_defn): Initialise new field.
10560 * c-lang.c (c_language_defn): Likewise.
10561 (cplus_language_defn): Likewise.
10562 (asm_language_defn): Likewise.
10563 (minimal_language_defn): Likewise.
10564 * d-lang.c (d_language_defn): Likewise.
10565 * f-lang.c (f_language_defn): Likewise.
10566 * go-lang.c (go_language_defn): Likewise.
10567 * language.c (unknown_language_defn): Likewise.
10568 (auto_language_defn): Likewise.
10569 * m2-lang.c (m2_language_defn): Likewise.
10570 * objc-lang.c (objc_language_defn): Likewise.
10571 * opencl-lang.c (opencl_language_defn): Likewise.
10572 * p-lang.c (pascal_language_defn): Likewise.
10573 * rust-lang.c (rust_language_defn): Likewise.
10574
10575 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10576
10577 * ada-lang.c (ada_is_character_type): Change return type to bool.
10578 (ada_is_string_type): Likewise.
10579 * ada-lang.h (ada_is_character_type): Update declaration
10580 (ada_is_string_type): Likewise.
10581
10582 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10583
10584 Support style in 'frame|thread apply'
10585
10586 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10587 * record.c (record_start, record_stop): Update callers of
10588 execute_command_to_string with false.
10589 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10590 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10591 methods.
10592 (class string_file): New constructor with term_out parameter.
10593 Override methods term_out and can_emit_style_escape. New member
10594 term_out.
10595 (class stdio_file): Override can_emit_style_escape.
10596 (class tee_file): Override term_out and can_emit_style_escape.
10597 * utils.h (can_emit_style_escape): Remove.
10598 * utils.c (can_emit_style_escape): Likewise.
10599 Update all callers of can_emit_style_escape (SOMESTREAM) to
10600 SOMESTREAM->can_emit_style_escape.
10601 * source-cache.c (source_cache::get_source_lines): Likewise.
10602 * stack.c (frame_apply_command_count): Call execute_command_to_string
10603 passing the term_out characteristic of the current gdb_stdout.
10604 * thread.c (thr_try_catch_cmd): Likewise.
10605 * top.c (execute_command_to_string): pass term_out parameter
10606 to construct the string_file for the command output.
10607 * ui-file.c (term_cli_styling): New function (most code moved
10608 from utils.c can_emit_style_escape).
10609 (string_file::string_file, string_file::can_emit_style_escape,
10610 stdio_file::can_emit_style_escape, tee_file::term_out,
10611 tee_file::can_emit_style_escape): New functions.
10612
10613 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10614
10615 * NEWS: Mention the new set|show may-call-functions.
10616 * infcall.c (may_call_functions_p): New variable.
10617 (show_may_call_functions_p): New function.
10618 (call_function_by_hand_dummy): Throws an error if not
10619 may-call-functions.
10620 (_initialize_infcall): Call add_setshow_boolean_cmd for
10621 may-call-functions.
10622
10623 2019-04-25 Keith Seitz <keiths@redhat.com>
10624
10625 PR c++/24367
10626 * cp-support.c (inspect_type): Don't attempt substitutions
10627 of symbol with the same name.
10628
10629 2019-04-25 Tom Tromey <tromey@adacore.com>
10630
10631 PR gdb/24475:
10632 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10633 static.
10634
10635 2019-04-25 Tom Tromey <tromey@adacore.com>
10636
10637 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10638 rvalue reference.
10639 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10640 (gdb_xml_parser::parse): Use std::move.
10641 * python/python-internal.h (gdbpy_convert_exception): Take a const
10642 reference.
10643 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10644 std::move.
10645 * python/py-utils.c (gdbpy_convert_exception): Take a const
10646 reference.
10647 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10648 Use std::move.
10649 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10650 Use std::move.
10651 * mi/mi-main.c (mi_print_exception): Take a const reference.
10652 * main.c (handle_command_errors): Take a const reference.
10653 * linespec.c (parse_linespec): Use std::move.
10654 * infcall.c (run_inferior_call): Use std::move.
10655 (call_function_by_hand_dummy): Use std::move.
10656 * exec.c (try_open_exec_file): Use std::move.
10657 * exceptions.h (exception_print, exception_fprintf)
10658 (exception_print_same): Update.
10659 * exceptions.c (print_exception, exception_print)
10660 (exception_fprintf, exception_print_same): Change parameters to
10661 const reference.
10662 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10663 * common/new-op.c: Use std::move.
10664 * common/common-exceptions.h (struct gdb_exception): Add move
10665 constructor.
10666 (struct gdb_exception_error, struct gdb_exception_quit, struct
10667 gdb_quit_bad_alloc): Change constructor to move constructor.
10668 (throw_exception): Change parameter to rvalue reference.
10669 * common/common-exceptions.c (throw_exception): Take rvalue
10670 reference.
10671 * cli/cli-interp.c (safe_execute_command): Use std::move.
10672 * breakpoint.c (insert_bp_location, location_to_sals): Use
10673 std::move.
10674
10675 2019-04-25 Tom Tromey <tromey@adacore.com>
10676
10677 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10678 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10679 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10680 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10681 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10682 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10683 guile/scm-value.c: Use unpack.
10684 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10685 gdbscm_gdb_exception.
10686 (gdbscm_throw_gdb_exception): Likewise.
10687 (struct gdbscm_gdb_exception): New.
10688 (unpack): New function.
10689 (gdbscm_wrap): Use unpack.
10690
10691 2019-04-25 Tom Tromey <tromey@adacore.com>
10692
10693 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10694 (gdb_rl_callback_handler): Use std::move.
10695 * common/common-exceptions.h (struct gdb_exception): Add move
10696 assignment operator.
10697 (throw_exception_sjlj): Change "exception" to const reference.
10698 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10699 (throw_exception_sjlj): Change "exception" to const reference.
10700
10701 2019-04-25 Tom Tromey <tromey@adacore.com>
10702
10703 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10704 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10705 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10706 Update.
10707 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10708 Update.
10709 * mi/mi-interp.c (mi_interp::exec): Update.
10710 * linespec.c (parse_linespec): Update.
10711 * infcall.c (run_inferior_call): Update.
10712 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10713 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10714 (gdbscm_lookup_global_symbol): Update.
10715 * guile/scm-param.c (gdbscm_parameter_value): Update.
10716 * guile/scm-frame.c (gdbscm_frame_read_register)
10717 (gdbscm_frame_read_var): Update.
10718 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10719 * exec.c (try_open_exec_file): Update.
10720 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10721 (gdb_rl_callback_handler): Update.
10722 * common/common-exceptions.h (exception_none): Don't declare.
10723 * common/common-exceptions.c (exception_none): Don't define.
10724 (struct catcher) <exception>: Update.
10725 * cli/cli-interp.c (safe_execute_command): Update.
10726 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10727
10728 2019-04-25 Ali Tamur <tamur@google.com>
10729
10730 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10731 (read_attribute_value): Likewise.
10732 (dwarf2_read_addr_index): Update comment.
10733 (read_str_index): Add DW_FORM_strx.
10734 (dwarf2_string_attr): Likewise.
10735 (dwarf2_const_value_attr): Likewise.
10736 (dump_die_shallow): Likewise.
10737 (dwarf2_fetch_constant_bytes): Likewise.
10738 (skip_form_bytes): Likewise.
10739 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10740
10741 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10742
10743 PR corefiles/11608
10744 PR corefiles/18187
10745 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10746 OFFSET. Verify if current mapping contains an ELF header.
10747 (linux_find_memory_regions_full): Adjust call to
10748 dump_mapping_p.
10749
10750 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10751 Kang Li <kanglictf@gmail.com>
10752
10753 PR gdb/21600
10754
10755 * dwarf2-frame.c (read_initial_length): Be consistent about using
10756 unsigned representation of length.
10757 (decode_frame_entry_1): Likewise. Check for wraparound of
10758 end pointer as well as buffer overflow.
10759
10760 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10761
10762 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10763 "vq".
10764
10765 2019-04-24 Tom Tromey <tromey@adacore.com>
10766
10767 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10768
10769 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10770
10771 * s12z-tdep.c (s12z_unwind_pc): Delete.
10772 (s12z_unwind_sp): Delete.
10773 (s12z_gdbarch_init): Don't register deleted functions with
10774 gdbarch.
10775
10776 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10777
10778 * rl78-tdep.c (rl78_unwind_sp): Delete.
10779 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10780
10781 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10782
10783 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10784 (xstormy16_unwind_pc): Delete.
10785 (xstormy16_dummy_id): Delete.
10786 (xstormy16_gdbarch_init): Don't register deleted functions with
10787 gdbarch.
10788
10789 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10790
10791 * vax-tdep.c (vax_unwind_pc): Delete.
10792 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10793
10794 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10795
10796 * v850-tdep.c (v850_unwind_sp): Delete.
10797 (v850_unwind_pc): Delete.
10798 (v850_dummy_id): Delete.
10799 (v850_gdbarch_init): Don't register deleted functions with
10800 gdbarch.
10801
10802 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10803
10804 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10805 (tilegx_unwind_pc): Delete.
10806 (tilegx_unwind_dummy_id): Delete.
10807 (tilegx_gdbarch_init): Don't register deleted functions with
10808 gdbarch.
10809
10810 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10811
10812 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10813 (tic6x_dummy_id): Delete.
10814 (tic6x_gdbarch_init): Don't register deleted functions with
10815 gdbarch.
10816
10817 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10818
10819 * sparc-tdep.c (sparc_unwind_pc): Delete.
10820 (sparc32_gdbarch_init): Don't register deleted function with
10821 gdbarch.
10822
10823 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10824
10825 * sh-tdep.c (sh_unwind_sp): Delete.
10826 (sh_unwind_pc): Delete.
10827 (sh_dummy_id): Delete.
10828 (sh_gdbarch_init): Don't register deleted functions with
10829 gdbarch.
10830
10831 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10832
10833 * score-tdep.c (score_unwind_sp): Delete.
10834 (score_unwind_pc): Delete.
10835 (score_dummy_id): Delete.
10836 (score_gdbarch_init): Don't register deleted functions with
10837 gdbarch.
10838
10839 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10840
10841 * rx-tdep.c (rx_unwind_pc): Delete.
10842 (rx_unwind_sp): Delete.
10843 (rx_dummy_id): Delete.
10844 (rx_gdbarch_init): Don't register deleted functions with
10845 gdbarch. Update comment.
10846
10847 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10848
10849 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10850 (rs6000_dummy_id): Delete.
10851 (rs6000_gdbarch_init): Don't register deleted functions with
10852 gdbarch.
10853
10854 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10855
10856 * or1k-tdep.c (or1k_dummy_id): Delete.
10857 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10858
10859 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10860
10861 * nios2-tdep.c (nios2_dummy_id): Delete.
10862 (nios2_unwind_sp): Delete.
10863 (nios2_gdbarch_init): Don't register deleted functions with
10864 gdbarch.
10865
10866 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10867
10868 * nds32-tdep.c (nds32_dummy_id): Delete.
10869 (nds32_unwind_pc): Delete.
10870 (nds32_unwind_sp): Delete.
10871 (nds32_gdbarch_init): Don't register deleted functions with
10872 gdbarch.
10873
10874 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10875
10876 * msp430-tdep.c (msp430_unwind_pc): Delete.
10877 (msp430_unwind_sp): Delete.
10878 (msp430_dummy_id): Delete.
10879 (msp430_gdbarch_init): Don't register deleted functions with
10880 gdbarch.
10881
10882 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10883
10884 * moxie-tdep.c (moxie_unwind_sp): Delete.
10885 (moxie_unwind_pc): Delete.
10886 (moxie_dummy_id): Delete.
10887 (moxie_gdbarch_init): Don't register deleted functions with
10888 gdbarch.
10889
10890 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10891
10892 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10893 (mn10300_unwind_pc): Delete.
10894 (mn10300_unwind_sp): Delete.
10895 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10896 mn10300_unwind_sp.
10897 (mn10300_frame_unwind_init): Don't register deleted functions with
10898 gdbarch.
10899
10900 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10901
10902 * mep-tdep.c (mep_unwind_pc): Delete.
10903 (mep_unwind_sp): Delete.
10904 (mep_dummy_id): Delete.
10905 (mep_gdbarch_init): Don't register deleted functions with
10906 gdbarch.
10907
10908 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10909
10910 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10911 (m68hc11_unwind_sp): Delete.
10912 (m68hc11_gdbarch_init): Don't register deleted functions with
10913 gdbarch.
10914
10915 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10916
10917 * m32r-tdep.c (m32r_unwind_sp): Delete.
10918 (m32r_unwind_pc): Delete.
10919 (m32r_dummy_id): Delete.
10920 (m32r_gdbarch_init): Don't register deleted functions with
10921 gdbarch.
10922
10923 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10924
10925 * m32c-tdep.c (m32c_unwind_pc): Delete.
10926 (m32c_unwind_sp): Delete.
10927 (m32c_dummy_id): Delete.
10928 (m32c_gdbarch_init): Don't register deleted functions with
10929 gdbarch.
10930
10931 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10932
10933 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10934 (lm32_unwind_pc): Delete.
10935 (lm32_dummy_id): Delete.
10936 (lm32_gdbarch_init): Don't register deleted functions with
10937 gdbarch.
10938
10939 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10940
10941 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10942 (iq2000_unwind_pc): Delete.
10943 (iq2000_dummy_id): Delete.
10944 (iq2000_gdbarch_init): Don't register deleted functions with
10945 gdbarch.
10946
10947 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10948
10949 * nds32-tdep.c (nds32_type_align): Delete.
10950 (nds32_push_dummy_call): Use type_align instead.
10951
10952 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10953
10954 * arm-tdep.c (arm_type_align): Only handle vector override case.
10955 (arm_push_dummy_call): Use type_align.
10956 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10957
10958 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10959
10960 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10961 case.
10962 (pass_on_stack): Use type_align.
10963 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10964 function.
10965
10966 2019-04-23 Tom Tromey <tromey@adacore.com>
10967
10968 * dwarf2read.c (line_header::file_name_at): Remove unused
10969 overload.
10970
10971 2019-04-23 Tom de Vries <tdevries@suse.de>
10972
10973 PR gdb/24438
10974 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10975 invocation.
10976
10977
10978 2019-03-27 Ali Tamur <tamur@google.com>
10979
10980 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10981 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10982 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10983 (dwarf_expr_context::get_addr_index): Likewise
10984 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10985 (symbol_needs_eval_context::get_addr_index): Likewise
10986 (disassemble_dwarf_expression): Add DW_OP_addrx
10987 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10988 (read_cutu_die_from_dwo): Update comment
10989 (skip_one_die): Add DW_FORM_addrx
10990 (read_attribute_value): Likewise
10991 (var_decode_location): Add DW_OP_addrx
10992 (dwarf2_const_value_attr): Add DW_FORM_addrx
10993 (dump_die_shallow): Likewise
10994 (dwarf2_fetch_constant_bytes): Likewise
10995 (decode_locdesc): Add DW_OP_addrx
10996 (skip_form_bytes): Add DW_FORM_addrx
10997
10998 2019-04-22 Ali Tamur <tamur@google.com>
10999
11000 * MAINTAINERS (Write After Approval): Add self.
11001
11002 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
11003
11004 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11005 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11006 (open_symbol_file_object): Likewise.
11007 (svr4_default_sos): Add info parameter.
11008 (svr4_read_so_list): Likewise.
11009 (svr4_current_sos_direct): Adjust functions calls to pass down
11010 info.
11011 (svr4_current_sos_1): Add info parameter.
11012 (svr4_current_sos): Call get_svr4_info, pass info down to
11013 svr4_current_sos_1.
11014 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11015 get_svr4_info.
11016 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11017 get_svr4_info.
11018 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11019 to get_svr4_info.
11020 (probes_table_remove_objfile_probes): Likewise.
11021 (register_solib_event_probe): Add info parameter.
11022 (solist_update_incremental): Pass info parameter down to
11023 svr4_read_so_list.
11024 (disable_probes_interface): Add info parameter.
11025 (svr4_handle_solib_event): Pass current_program_space to
11026 get_svr4_info. Adjust disable_probes_interface cleanup.
11027 (svr4_create_probe_breakpoints): Add info parameter, pass it
11028 down to register_solib_event_probe.
11029 (svr4_create_solib_event_breakpoints): Add info parameter,
11030 pass it down to svr4_create_probe_breakpoints.
11031 (enable_break): Pass info down to
11032 svr4_create_solib_event_breakpoints.
11033 (svr4_solib_create_inferior_hook): Pass current_program_space to
11034 get_svr4_info.
11035 (svr4_clear_solib): Likewise.
11036
11037 2019-04-22 Pedro Alves <palves@redhat.com>
11038
11039 * solib-svr4.c (svr4_free_objfile_observer): New.
11040 (probe_and_action::objfile): New field.
11041 (probes_table_htab_remove_objfile_probes)
11042 (probes_table_remove_objfile_probes): New functions.
11043 (register_solib_event_probe): Add 'objfile' parameter. Store it
11044 in the new probe_and_action. Don't store the probe in 'lookup'.
11045 (svr4_create_probe_breakpoints): Pass objfile to
11046 register_solib_event_probe.
11047 (_initialize_svr4_solib): Register a free_objfile observer.
11048
11049 2019-04-19 Tom Tromey <tom@tromey.com>
11050
11051 * common/queue.h: Remove.
11052
11053 2019-04-19 Tom Tromey <tom@tromey.com>
11054
11055 * event-loop.c: Don't include "common/queue.h".
11056
11057 2019-04-19 Tom Tromey <tom@tromey.com>
11058
11059 * remote.c (remote_target): Use delete.
11060 * remote-notif.h: Include <list>, not "common/queue.h".
11061 (notif_client_p): Remove typedef.
11062 (remote_notif_state): Add constructor, destructor, initializer.
11063 <notif_queue>: Now a std::list.
11064 (remote_notif_state_xfree): Don't declare.
11065 * remote-notif.c (remote_notif_process, handle_notification)
11066 (remote_notif_state_allocate): Update.
11067 (~remote_notif_state): Rename from remote_notif_state_xfree.
11068
11069 2019-04-19 Tom Tromey <tom@tromey.com>
11070
11071 * symfile.c (reread_symbols): Update.
11072 * objfiles.c (objfile_register_static_link)
11073 (objfile_lookup_static_link): Update
11074 (~objfile) Don't delete static_links.
11075 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11076
11077 2019-04-19 Tom Tromey <tom@tromey.com>
11078
11079 * type-stack.h (struct type_stack) <insert>: Constify string.
11080 * type-stack.c (type_stack::insert): Constify string.
11081 * gdbtypes.h (lookup_template_type): Update.
11082 (address_space_name_to_int): Update.
11083 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11084 const.
11085 (lookup_template_type): Make name const.
11086 * c-exp.y: Update rules.
11087 (lex_one_token, classify_name, classify_inner_name)
11088 (c_print_token): Update.
11089 * p-exp.y: Update rules.
11090 (yylex): Update.
11091 * f-exp.y: Update rules.
11092 (yylex): Update.
11093 * d-exp.y: Update rules.
11094 (lex_one_token, classify_name, classify_inner_name): Update.
11095 * parse.c (write_dollar_variable, copy_name): Return std::string.
11096 * parser-defs.h (copy_name): Change return type.
11097 * m2-exp.y: Update rules.
11098 (yylex): Update.
11099 * go-exp.y (lex_one_token): Update.
11100 Update rules.
11101 (classify_unsafe_function, classify_packaged_name)
11102 (classify_name, yylex): Update.
11103
11104 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11105
11106 * configure.ac: add --enable-source-highlight switch.
11107 * configure: Regenerate.
11108 * top.c (print_gdb_version): plumb --enable-source-highlight
11109 status to "show configuration".
11110
11111 2019-04-19 Tom Tromey <tromey@adacore.com>
11112
11113 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11114 Check ADA_TYPE_P.
11115 (empty_record, ada_template_to_fixed_record_type_1)
11116 (template_to_static_fixed_type)
11117 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11118 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11119 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11120 macros.
11121
11122 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11123
11124 PR symtab/24423:
11125 * source.c (print_source_lines_base): Advance "iter" when a
11126 control character is seen.
11127
11128 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11129
11130 * inferior.h (struct infcall_suspend_state_deleter):
11131 Catch exception in destructor to avoid crash.
11132
11133 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11134
11135 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11136 close to the add_com "shell".
11137
11138 2019-04-18 Tom Tromey <tromey@adacore.com>
11139
11140 * process-stratum-target.h (class process_stratum_target)
11141 <stratum>: Add "final".
11142
11143 2019-04-17 Tom Tromey <tromey@adacore.com>
11144
11145 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11146 against nullptr before use.
11147
11148 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11149
11150 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11151
11152 2019-04-17 Jim Wilson <jimw@sifive.com>
11153 Andrew Burgess <andrew.burgess@embecosm.com>
11154
11155 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11156 code read might fail, assume 4-byte breakpoint in that case.
11157
11158 2019-04-15 Leszek Swirski <leszeks@google.com>
11159
11160 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11161 rather than a hand-rolled POD check when checking for forced MEMORY
11162 classification.
11163
11164 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11165
11166 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11167 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11168 function.
11169 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11170 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11171 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11172 declaration.
11173
11174 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11175
11176 * aarch64-linux-nat.c
11177 (aarch64_linux_nat_target::thread_architecture): Add override.
11178 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11179 each VQ.
11180
11181 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11182
11183 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11184
11185 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11186
11187 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11188 target types of size 96-bits, add some additional comments, and
11189 check that the builtin type we found was the correct size.
11190
11191 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11192
11193 * utils.c (prompt_for_continue): Don't restore the styling at the
11194 end, as applied_style has the wrong value. This fixes styling in
11195 long lists of file names that are interrupted by the "Continue?"
11196 prompt.
11197
11198 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11199
11200 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11201 * c-lang.c (c_language_defn): Likewise.
11202 (cplus_language_defn): Likewise.
11203 (asm_language_defn): Likewise.
11204 (minimal_language_defn): Likewise.
11205 * d-lang.c (d_language_defn): Likewise.
11206 * f-lang.c (f_language_defn): Likewise.
11207 * go-lang.c (go_language_defn): Likewise.
11208 * language.c (unknown_language_defn): Likewise.
11209 (auto_language_defn): Likewise.
11210 * language.h (struct language_defn): Remove la_magic field.
11211 (LANG_MAGIC): Delete.
11212 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11213 * objc-lang.c (objc_language_defn): Likewise.
11214 * opencl-lang.c (opencl_language_defn): Likewise.
11215 * p-lang.c (pascal_language_defn): Likewise.
11216 * rust-lang.c (rust_language_defn): Likewise.
11217
11218 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11219
11220 * riscv-tdep.c (riscv_type_align): New function.
11221 (riscv_type_alignment): Delete.
11222 (riscv_arg_location): Use 'type_align'.
11223 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11224
11225 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11226
11227 * gdbtypes.c (type_align): A struct with no non-static fields also
11228 has alignment of 1.
11229
11230 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11231
11232 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11233 component to 0.
11234 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11235 member.
11236 (riscv_struct_info::analyse): New implementation using new
11237 analyse_inner member function.
11238 (riscv_struct_info::field_offset): New member function.
11239 (riscv_struct_info::m_offsets): New member variable.
11240 (riscv_struct_info::analyse_inner): New private member function,
11241 takes the old implementation of riscv_struct_info::analyse but
11242 extended to track field offsets.
11243 (riscv_call_arg_struct): Update the struct folding special cases
11244 to handle cases where empty C++ structs, which are non-zero
11245 length, are found.
11246 (riscv_arg_location): Initialise the length of each location, a
11247 non-zero length now indicates the location is in use.
11248 (riscv_push_dummy_call): Allow for the first location having a
11249 non-zero offset when setting up arguments.
11250 (riscv_return_value): Likewise, but for return values.
11251
11252 2019-04-11 Tom Tromey <tromey@adacore.com>
11253
11254 * utils.c (internal_vproblem): Make "msg" const.
11255
11256 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11257
11258 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11259 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11260 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11261 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11262
11263 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11264
11265 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11266 function.
11267 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11268 of amd64_collect_native_gregset.
11269 (amd64_linux_nat_target::store_registers): Likewise.
11270
11271 2019-04-10 Tom Tromey <tom@tromey.com>
11272
11273 * symtab.c (lookup_global_symbol_from_objfile)
11274 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11275 * objfiles.h (class separate_debug_iterator): New.
11276 (class separate_debug_range): New.
11277 (struct objfile) <separate_debug_objfiles>: New method.
11278 (objfile_separate_debug_iterate): Don't declare.
11279 * objfiles.c (separate_debug_iterator::operator++): Rename from
11280 objfile_separate_debug_iterate.
11281 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11282 iterator.
11283 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11284 iterator.
11285
11286 2019-04-10 Tom Tromey <tom@tromey.com>
11287
11288 * symfile.c (reread_symbols): Remove old comment.
11289 * objfiles.c (free_all_objfiles): Fix a typo.
11290
11291 2019-04-10 Tom Tromey <tom@tromey.com>
11292
11293 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11294 * minsyms.c (lookup_minimal_symbol): Use foreach.
11295 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11296 (lookup_minimal_symbol_solib_trampoline): Likewise.
11297 * symfile.c (reread_symbols): Use foreach.
11298
11299 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11300 Tom Tromey <tromey@adacore.com>
11301
11302 PR rust/24414:
11303 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11304 (rust_lex_int_test): Change "value" to be LONGEST.
11305 (rust_lex_tests): Add test for long integer literal.
11306
11307 2019-04-09 Tom Tromey <tromey@adacore.com>
11308
11309 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11310 to bool.
11311 (extended_remote_target::attach): Update.
11312 (remote_target::remote_notice_new_inferior): Update.
11313 (remote_target::add_current_inferior_and_thread): Update.
11314 * inferior.c (exit_inferior_1): Use "false".
11315 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11316
11317 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11318
11319 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11320 the "start" command.
11321
11322 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11323
11324 * python/py-inferior.c (infpy_thread_from_thread_handle):
11325 Adjust comments to reflect renaming of thread_from_thread_handle
11326 to thread_from_handle. Adjust keywords. Fix type error message.
11327 (inferior_object_methods): Add thread_from_handle. Retain
11328 thread_from_thread_handle, but mark it as deprecated.
11329
11330 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11331
11332 * gdbthread.h (find_thread_by_handle): Revise declaration.
11333 * thread.c (find_thread_by_handle): Likewise. Adjust
11334 implementation too.
11335 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11336 support for buffer objects as handles.
11337
11338 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11339
11340 * python/py-infthread.c (thpy_thread_handle): New function.
11341 (thread_object_methods): Register thpy_thread_handle.
11342
11343 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11344
11345 * gdbthread.h (thread_to_thread_handle): Declare.
11346 * thread.c (gdbtypes.h): Include.
11347 (thread_to_thread_handle): New function.
11348
11349 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11350 (target_thread_info_to_thread_handle): Declare.
11351 * target.c (target_thread_info_to_thread_handle): New function.
11352 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11353 * target-delegates.c: Regenerate.
11354
11355 * linux-thread-db.c (class thread_db_target): Add method
11356 thread_info_to_thread_handle.
11357 (thread_db_target::thread_info_to_thread_handle): Define.
11358 * remote.c (class remote_target): Add new method
11359 thread_info_to_thread_handle.
11360 (remote_target::thread_info_to_thread_handle): Define.
11361
11362 2019-04-08 Pedro Alves <palves@redhat.com>
11363
11364 * common/common-exceptions.c (throw_exception): Don't create
11365 named object to throw; throw directly.
11366 (throw_it): Likewise. Don't initialize gdb_exception::message
11367 here, with new; pass FMT and AP to the ctor instead.
11368 * common/common-exceptions.h: Include <string>.
11369 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11370 const char *, va_list)): New ctor. Use std::make_shared.
11371 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11372 errors)): Delete.
11373 (gdb_exception_error::gdb_exception_error(enum errors, const char
11374 *, va_list)): New.
11375 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11376 Add assertion.
11377 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11378 errors)): Delete.
11379 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11380 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11381 Add assertion.
11382
11383 2019-04-08 Tom Tromey <tom@tromey.com>
11384
11385 * valops.c (value_rtti_indirect_type): Replace throw_exception
11386 with throw.
11387 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11388 with throw.
11389 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11390 throw.
11391 * target.c (target_translate_tls_address): Replace throw_exception
11392 with throw.
11393 * stack.c (frame_apply_command_count): Replace throw_exception
11394 with throw.
11395 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11396 throw.
11397 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11398 with throw.
11399 * rs6000-tdep.c (rs6000_frame_cache)
11400 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11401 * remote.c: Replace throw_exception with throw.
11402 * record-full.c (record_full_message, record_full_wait_1)
11403 (record_full_restore): Replace throw_exception with throw.
11404 * record-btrace.c:
11405 (get_thread_current_frame_id, record_btrace_start_replaying)
11406 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11407 (cmd_record_btrace_start): Replace throw_exception with throw.
11408 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11409 throw.
11410 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11411 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11412 * linespec.c:
11413 (find_linespec_symbols): Replace throw_exception with throw.
11414 * infrun.c (displaced_step_prepare, resume): Replace
11415 throw_exception with throw.
11416 * infcmd.c (post_create_inferior): Replace throw_exception with
11417 throw.
11418 * inf-loop.c (inferior_event_handler): Replace throw_exception
11419 with throw.
11420 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11421 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11422 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11423 (get_prev_frame_always, get_frame_pc_if_available)
11424 (get_frame_address_in_block_if_available, get_frame_language):
11425 Replace throw_exception with throw.
11426 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11427 throw_exception with throw.
11428 * eval.c (fetch_subexp_value, evaluate_var_value)
11429 (evaluate_funcall, evaluate_subexp_standard): Replace
11430 throw_exception with throw.
11431 * dwarf2loc.c (call_site_find_chain)
11432 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11433 Replace throw_exception with throw.
11434 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11435 with throw.
11436 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11437 throw.
11438 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11439 * completer.c (complete_line_internal): Replace throw_exception
11440 with throw.
11441 * compile/compile-object-run.c (compile_object_run): Replace
11442 throw_exception with throw.
11443 * cli/cli-script.c (process_next_line): Replace throw_exception
11444 with throw.
11445 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11446 (btrace_enable, btrace_maint_update_pt_packets): Replace
11447 throw_exception with throw.
11448 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11449 throw_exception with throw.
11450 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11451 throw_exception with throw.
11452 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11453 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11454 * aarch64-tdep.c (aarch64_make_prologue_cache)
11455 (aarch64_make_stub_cache): Replace throw_exception with throw.
11456
11457 2019-04-08 Tom Tromey <tom@tromey.com>
11458
11459 * common/common-exceptions.c (throw_exception): Rename from
11460 throw_exception_cxx. Remove old copy. Make argument const.
11461 (throw_it): Create and throw exception objects directly.
11462 * common/common-exceptions.h (throw_exception): Make argument
11463 const.
11464 (struct gdb_exception_error): Add constructor.
11465 (struct gdb_exception_quit): Add constructor.
11466
11467 2019-04-08 Tom Tromey <tom@tromey.com>
11468
11469 * common/common-exceptions.h (exception_rethrow): Don't declare.
11470 (TRY_SJLJ): Update comment.
11471 (TRY, CATCH, END_CATCH): Remove.
11472 * common/common-exceptions.c (exception_rethrow): Remove.
11473
11474 2019-04-08 Tom Tromey <tom@tromey.com>
11475
11476 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11477 Remove.
11478 (gdb_exception_error): Rename from
11479 gdb_exception_RETURN_MASK_ERROR.
11480 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11481 (gdb_quit_bad_alloc): Update.
11482 * aarch64-tdep.c: Update.
11483 * ada-lang.c: Update.
11484 * ada-typeprint.c: Update.
11485 * ada-valprint.c: Update.
11486 * amd64-tdep.c: Update.
11487 * arch-utils.c: Update.
11488 * break-catch-throw.c: Update.
11489 * breakpoint.c: Update.
11490 * btrace.c: Update.
11491 * c-varobj.c: Update.
11492 * cli/cli-cmds.c: Update.
11493 * cli/cli-interp.c: Update.
11494 * cli/cli-script.c: Update.
11495 * common/common-exceptions.c: Update.
11496 * common/new-op.c: Update.
11497 * common/selftest.c: Update.
11498 * compile/compile-c-symbols.c: Update.
11499 * compile/compile-cplus-symbols.c: Update.
11500 * compile/compile-object-load.c: Update.
11501 * compile/compile-object-run.c: Update.
11502 * completer.c: Update.
11503 * corelow.c: Update.
11504 * cp-abi.c: Update.
11505 * cp-support.c: Update.
11506 * cp-valprint.c: Update.
11507 * darwin-nat.c: Update.
11508 * disasm-selftests.c: Update.
11509 * dtrace-probe.c: Update.
11510 * dwarf-index-cache.c: Update.
11511 * dwarf-index-write.c: Update.
11512 * dwarf2-frame-tailcall.c: Update.
11513 * dwarf2-frame.c: Update.
11514 * dwarf2loc.c: Update.
11515 * dwarf2read.c: Update.
11516 * eval.c: Update.
11517 * event-loop.c: Update.
11518 * event-top.c: Update.
11519 * exec.c: Update.
11520 * f-valprint.c: Update.
11521 * fbsd-tdep.c: Update.
11522 * frame-unwind.c: Update.
11523 * frame.c: Update.
11524 * gdbtypes.c: Update.
11525 * gnu-v3-abi.c: Update.
11526 * guile/guile-internal.h: Update.
11527 * guile/scm-block.c: Update.
11528 * guile/scm-breakpoint.c: Update.
11529 * guile/scm-cmd.c: Update.
11530 * guile/scm-disasm.c: Update.
11531 * guile/scm-frame.c: Update.
11532 * guile/scm-lazy-string.c: Update.
11533 * guile/scm-math.c: Update.
11534 * guile/scm-param.c: Update.
11535 * guile/scm-ports.c: Update.
11536 * guile/scm-pretty-print.c: Update.
11537 * guile/scm-symbol.c: Update.
11538 * guile/scm-symtab.c: Update.
11539 * guile/scm-type.c: Update.
11540 * guile/scm-value.c: Update.
11541 * i386-linux-tdep.c: Update.
11542 * i386-tdep.c: Update.
11543 * inf-loop.c: Update.
11544 * infcall.c: Update.
11545 * infcmd.c: Update.
11546 * infrun.c: Update.
11547 * jit.c: Update.
11548 * language.c: Update.
11549 * linespec.c: Update.
11550 * linux-fork.c: Update.
11551 * linux-nat.c: Update.
11552 * linux-tdep.c: Update.
11553 * linux-thread-db.c: Update.
11554 * main.c: Update.
11555 * mi/mi-cmd-break.c: Update.
11556 * mi/mi-cmd-stack.c: Update.
11557 * mi/mi-interp.c: Update.
11558 * mi/mi-main.c: Update.
11559 * objc-lang.c: Update.
11560 * p-valprint.c: Update.
11561 * parse.c: Update.
11562 * ppc-linux-tdep.c: Update.
11563 * printcmd.c: Update.
11564 * python/py-arch.c: Update.
11565 * python/py-breakpoint.c: Update.
11566 * python/py-cmd.c: Update.
11567 * python/py-finishbreakpoint.c: Update.
11568 * python/py-frame.c: Update.
11569 * python/py-framefilter.c: Update.
11570 * python/py-gdb-readline.c: Update.
11571 * python/py-inferior.c: Update.
11572 * python/py-infthread.c: Update.
11573 * python/py-lazy-string.c: Update.
11574 * python/py-linetable.c: Update.
11575 * python/py-objfile.c: Update.
11576 * python/py-param.c: Update.
11577 * python/py-prettyprint.c: Update.
11578 * python/py-progspace.c: Update.
11579 * python/py-record-btrace.c: Update.
11580 * python/py-record.c: Update.
11581 * python/py-symbol.c: Update.
11582 * python/py-type.c: Update.
11583 * python/py-unwind.c: Update.
11584 * python/py-utils.c: Update.
11585 * python/py-value.c: Update.
11586 * python/python.c: Update.
11587 * record-btrace.c: Update.
11588 * record-full.c: Update.
11589 * remote-fileio.c: Update.
11590 * remote.c: Update.
11591 * riscv-tdep.c: Update.
11592 * rs6000-aix-tdep.c: Update.
11593 * rs6000-tdep.c: Update.
11594 * rust-exp.y: Update.
11595 * rust-lang.c: Update.
11596 * s390-tdep.c: Update.
11597 * selftest-arch.c: Update.
11598 * solib-dsbt.c: Update.
11599 * solib-frv.c: Update.
11600 * solib-spu.c: Update.
11601 * solib-svr4.c: Update.
11602 * solib.c: Update.
11603 * sparc64-linux-tdep.c: Update.
11604 * stack.c: Update.
11605 * symfile-mem.c: Update.
11606 * symmisc.c: Update.
11607 * target.c: Update.
11608 * thread.c: Update.
11609 * top.c: Update.
11610 * tracefile-tfile.c: Update.
11611 * tui/tui.c: Update.
11612 * typeprint.c: Update.
11613 * unittests/cli-utils-selftests.c: Update.
11614 * unittests/parse-connection-spec-selftests.c: Update.
11615 * valops.c: Update.
11616 * valprint.c: Update.
11617 * value.c: Update.
11618 * varobj.c: Update.
11619 * windows-nat.c: Update.
11620 * x86-linux-nat.c: Update.
11621 * xml-support.c: Update.
11622
11623 2019-04-08 Tom Tromey <tom@tromey.com>
11624
11625 * xml-support.c: Use C++ exception handling.
11626 * x86-linux-nat.c: Use C++ exception handling.
11627 * windows-nat.c: Use C++ exception handling.
11628 * varobj.c: Use C++ exception handling.
11629 * value.c: Use C++ exception handling.
11630 * valprint.c: Use C++ exception handling.
11631 * valops.c: Use C++ exception handling.
11632 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11633 handling.
11634 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11635 * typeprint.c: Use C++ exception handling.
11636 * tui/tui.c: Use C++ exception handling.
11637 * tracefile-tfile.c: Use C++ exception handling.
11638 * top.c: Use C++ exception handling.
11639 * thread.c: Use C++ exception handling.
11640 * target.c: Use C++ exception handling.
11641 * symmisc.c: Use C++ exception handling.
11642 * symfile-mem.c: Use C++ exception handling.
11643 * stack.c: Use C++ exception handling.
11644 * sparc64-linux-tdep.c: Use C++ exception handling.
11645 * solib.c: Use C++ exception handling.
11646 * solib-svr4.c: Use C++ exception handling.
11647 * solib-spu.c: Use C++ exception handling.
11648 * solib-frv.c: Use C++ exception handling.
11649 * solib-dsbt.c: Use C++ exception handling.
11650 * selftest-arch.c: Use C++ exception handling.
11651 * s390-tdep.c: Use C++ exception handling.
11652 * rust-lang.c: Use C++ exception handling.
11653 * rust-exp.y: Use C++ exception handling.
11654 * rs6000-tdep.c: Use C++ exception handling.
11655 * rs6000-aix-tdep.c: Use C++ exception handling.
11656 * riscv-tdep.c: Use C++ exception handling.
11657 * remote.c: Use C++ exception handling.
11658 * remote-fileio.c: Use C++ exception handling.
11659 * record-full.c: Use C++ exception handling.
11660 * record-btrace.c: Use C++ exception handling.
11661 * python/python.c: Use C++ exception handling.
11662 * python/py-value.c: Use C++ exception handling.
11663 * python/py-utils.c: Use C++ exception handling.
11664 * python/py-unwind.c: Use C++ exception handling.
11665 * python/py-type.c: Use C++ exception handling.
11666 * python/py-symbol.c: Use C++ exception handling.
11667 * python/py-record.c: Use C++ exception handling.
11668 * python/py-record-btrace.c: Use C++ exception handling.
11669 * python/py-progspace.c: Use C++ exception handling.
11670 * python/py-prettyprint.c: Use C++ exception handling.
11671 * python/py-param.c: Use C++ exception handling.
11672 * python/py-objfile.c: Use C++ exception handling.
11673 * python/py-linetable.c: Use C++ exception handling.
11674 * python/py-lazy-string.c: Use C++ exception handling.
11675 * python/py-infthread.c: Use C++ exception handling.
11676 * python/py-inferior.c: Use C++ exception handling.
11677 * python/py-gdb-readline.c: Use C++ exception handling.
11678 * python/py-framefilter.c: Use C++ exception handling.
11679 * python/py-frame.c: Use C++ exception handling.
11680 * python/py-finishbreakpoint.c: Use C++ exception handling.
11681 * python/py-cmd.c: Use C++ exception handling.
11682 * python/py-breakpoint.c: Use C++ exception handling.
11683 * python/py-arch.c: Use C++ exception handling.
11684 * printcmd.c: Use C++ exception handling.
11685 * ppc-linux-tdep.c: Use C++ exception handling.
11686 * parse.c: Use C++ exception handling.
11687 * p-valprint.c: Use C++ exception handling.
11688 * objc-lang.c: Use C++ exception handling.
11689 * mi/mi-main.c: Use C++ exception handling.
11690 * mi/mi-interp.c: Use C++ exception handling.
11691 * mi/mi-cmd-stack.c: Use C++ exception handling.
11692 * mi/mi-cmd-break.c: Use C++ exception handling.
11693 * main.c: Use C++ exception handling.
11694 * linux-thread-db.c: Use C++ exception handling.
11695 * linux-tdep.c: Use C++ exception handling.
11696 * linux-nat.c: Use C++ exception handling.
11697 * linux-fork.c: Use C++ exception handling.
11698 * linespec.c: Use C++ exception handling.
11699 * language.c: Use C++ exception handling.
11700 * jit.c: Use C++ exception handling.
11701 * infrun.c: Use C++ exception handling.
11702 * infcmd.c: Use C++ exception handling.
11703 * infcall.c: Use C++ exception handling.
11704 * inf-loop.c: Use C++ exception handling.
11705 * i386-tdep.c: Use C++ exception handling.
11706 * i386-linux-tdep.c: Use C++ exception handling.
11707 * guile/scm-value.c: Use C++ exception handling.
11708 * guile/scm-type.c: Use C++ exception handling.
11709 * guile/scm-symtab.c: Use C++ exception handling.
11710 * guile/scm-symbol.c: Use C++ exception handling.
11711 * guile/scm-pretty-print.c: Use C++ exception handling.
11712 * guile/scm-ports.c: Use C++ exception handling.
11713 * guile/scm-param.c: Use C++ exception handling.
11714 * guile/scm-math.c: Use C++ exception handling.
11715 * guile/scm-lazy-string.c: Use C++ exception handling.
11716 * guile/scm-frame.c: Use C++ exception handling.
11717 * guile/scm-disasm.c: Use C++ exception handling.
11718 * guile/scm-cmd.c: Use C++ exception handling.
11719 * guile/scm-breakpoint.c: Use C++ exception handling.
11720 * guile/scm-block.c: Use C++ exception handling.
11721 * guile/guile-internal.h: Use C++ exception handling.
11722 * gnu-v3-abi.c: Use C++ exception handling.
11723 * gdbtypes.c: Use C++ exception handling.
11724 * frame.c: Use C++ exception handling.
11725 * frame-unwind.c: Use C++ exception handling.
11726 * fbsd-tdep.c: Use C++ exception handling.
11727 * f-valprint.c: Use C++ exception handling.
11728 * exec.c: Use C++ exception handling.
11729 * event-top.c: Use C++ exception handling.
11730 * event-loop.c: Use C++ exception handling.
11731 * eval.c: Use C++ exception handling.
11732 * dwarf2read.c: Use C++ exception handling.
11733 * dwarf2loc.c: Use C++ exception handling.
11734 * dwarf2-frame.c: Use C++ exception handling.
11735 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11736 * dwarf-index-write.c: Use C++ exception handling.
11737 * dwarf-index-cache.c: Use C++ exception handling.
11738 * dtrace-probe.c: Use C++ exception handling.
11739 * disasm-selftests.c: Use C++ exception handling.
11740 * darwin-nat.c: Use C++ exception handling.
11741 * cp-valprint.c: Use C++ exception handling.
11742 * cp-support.c: Use C++ exception handling.
11743 * cp-abi.c: Use C++ exception handling.
11744 * corelow.c: Use C++ exception handling.
11745 * completer.c: Use C++ exception handling.
11746 * compile/compile-object-run.c: Use C++ exception handling.
11747 * compile/compile-object-load.c: Use C++ exception handling.
11748 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11749 * compile/compile-c-symbols.c: Use C++ exception handling.
11750 * common/selftest.c: Use C++ exception handling.
11751 * common/new-op.c: Use C++ exception handling.
11752 * cli/cli-script.c: Use C++ exception handling.
11753 * cli/cli-interp.c: Use C++ exception handling.
11754 * cli/cli-cmds.c: Use C++ exception handling.
11755 * c-varobj.c: Use C++ exception handling.
11756 * btrace.c: Use C++ exception handling.
11757 * breakpoint.c: Use C++ exception handling.
11758 * break-catch-throw.c: Use C++ exception handling.
11759 * arch-utils.c: Use C++ exception handling.
11760 * amd64-tdep.c: Use C++ exception handling.
11761 * ada-valprint.c: Use C++ exception handling.
11762 * ada-typeprint.c: Use C++ exception handling.
11763 * ada-lang.c: Use C++ exception handling.
11764 * aarch64-tdep.c: Use C++ exception handling.
11765
11766 2019-04-08 Tom Tromey <tom@tromey.com>
11767
11768 * xml-support.c (gdb_xml_parser::parse): Update.
11769 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11770 * value.c (show_convenience): Update.
11771 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11772 (test_parse_flags_qcs): Update.
11773 * thread.c (thr_try_catch_cmd): Update.
11774 * target.c (target_translate_tls_address): Update.
11775 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11776 (info_frame_command_core, frame_apply_command_count): Update.
11777 * rust-exp.y (rust_lex_exception_test): Update.
11778 * riscv-tdep.c (riscv_print_one_register_info): Update.
11779 * remote.c (remote_target::enable_btrace): Update.
11780 * record-btrace.c (record_btrace_enable_warn): Update.
11781 * python/py-utils.c (gdbpy_convert_exception): Update.
11782 * printcmd.c (do_one_display, print_variable_and_value): Update.
11783 * mi/mi-main.c (mi_print_exception): Update.
11784 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11785 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11786 * linux-nat.c (linux_nat_target::attach): Update.
11787 * linux-fork.c (class scoped_switch_fork_info): Update.
11788 * infrun.c (displaced_step_prepare): Update.
11789 * infcall.c (call_function_by_hand_dummy): Update.
11790 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11791 * gnu-v3-abi.c (print_one_vtable): Update.
11792 * frame.c (get_prev_frame_always): Update.
11793 * f-valprint.c (info_common_command_for_block): Update.
11794 * exec.c (try_open_exec_file): Update.
11795 * exceptions.c (print_exception, exception_print)
11796 (exception_fprintf, exception_print_same): Update.
11797 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11798 * dwarf-index-cache.c (index_cache::store)
11799 (index_cache::lookup_gdb_index): Update.
11800 * darwin-nat.c (maybe_cache_shell): Update.
11801 * cp-valprint.c (cp_print_value_fields): Update.
11802 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11803 (gcc_cplus_symbol_address): Update.
11804 * compile/compile-c-symbols.c (gcc_convert_symbol)
11805 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11806 * common/selftest.c: Update.
11807 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11808 a std::string.
11809 (exception_try_scope_entry, exception_try_scope_exit): Don't
11810 declare.
11811 (struct exception_try_scope): Remove.
11812 (TRY): Don't use exception_try_scope.
11813 (struct gdb_exception): Add constructor, operator=.
11814 <what>: New method.
11815 (struct gdb_exception_RETURN_MASK_ALL)
11816 (struct gdb_exception_RETURN_MASK_ERROR)
11817 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11818 (struct gdb_quit_bad_alloc): Update.
11819 * common/common-exceptions.c (exception_none): Change
11820 initializer.
11821 (struct catcher) <state, exception>: Initialize inline.
11822 <prev>: Remove member.
11823 (current_catcher): Remove.
11824 (catchers): New global.
11825 (exceptions_state_mc_init): Simplify.
11826 (catcher_pop): Remove.
11827 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11828 (try_scope_depth, exception_try_scope_entry)
11829 (exception_try_scope_exit): Remove.
11830 (throw_exception_sjlj): Update.
11831 (exception_messages, exception_messages_size): Remove.
11832 (throw_it): Simplify.
11833 (gdb_exception_sliced_copy): Remove.
11834 (throw_exception_cxx): Update.
11835 * cli/cli-script.c (script_from_file): Update.
11836 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11837 Update.
11838 * ada-valprint.c (ada_val_print): Update.
11839 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11840 (create_excep_cond_exprs): Update.
11841
11842 2019-04-08 Tom Tromey <tom@tromey.com>
11843
11844 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11845 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11846 (TRY, CATCH, END_CATCH): Remove some definitions.
11847 * common/common-exceptions.c: Don't use GDB_XCPT.
11848 (catcher_list_size): Remove.
11849 (throw_exception, throw_it): Simplify.
11850
11851 2019-04-05 Tom Tromey <tom@tromey.com>
11852
11853 Revert the header-sorting patch.
11854 * ft32-tdep.c: Revert.
11855 * frv-tdep.c: Revert.
11856 * frv-linux-tdep.c: Revert.
11857 * frame.c: Revert.
11858 * frame-unwind.c: Revert.
11859 * frame-base.c: Revert.
11860 * fork-child.c: Revert.
11861 * findvar.c: Revert.
11862 * findcmd.c: Revert.
11863 * filesystem.c: Revert.
11864 * filename-seen-cache.h: Revert.
11865 * filename-seen-cache.c: Revert.
11866 * fbsd-tdep.c: Revert.
11867 * fbsd-nat.h: Revert.
11868 * fbsd-nat.c: Revert.
11869 * f-valprint.c: Revert.
11870 * f-typeprint.c: Revert.
11871 * f-lang.c: Revert.
11872 * extension.h: Revert.
11873 * extension.c: Revert.
11874 * extension-priv.h: Revert.
11875 * expprint.c: Revert.
11876 * exec.h: Revert.
11877 * exec.c: Revert.
11878 * exceptions.c: Revert.
11879 * event-top.c: Revert.
11880 * event-loop.c: Revert.
11881 * eval.c: Revert.
11882 * elfread.c: Revert.
11883 * dwarf2read.h: Revert.
11884 * dwarf2read.c: Revert.
11885 * dwarf2loc.c: Revert.
11886 * dwarf2expr.h: Revert.
11887 * dwarf2expr.c: Revert.
11888 * dwarf2-frame.c: Revert.
11889 * dwarf2-frame-tailcall.c: Revert.
11890 * dwarf-index-write.h: Revert.
11891 * dwarf-index-write.c: Revert.
11892 * dwarf-index-common.c: Revert.
11893 * dwarf-index-cache.h: Revert.
11894 * dwarf-index-cache.c: Revert.
11895 * dummy-frame.c: Revert.
11896 * dtrace-probe.c: Revert.
11897 * disasm.h: Revert.
11898 * disasm.c: Revert.
11899 * disasm-selftests.c: Revert.
11900 * dictionary.c: Revert.
11901 * dicos-tdep.c: Revert.
11902 * demangle.c: Revert.
11903 * dcache.h: Revert.
11904 * dcache.c: Revert.
11905 * darwin-nat.h: Revert.
11906 * darwin-nat.c: Revert.
11907 * darwin-nat-info.c: Revert.
11908 * d-valprint.c: Revert.
11909 * d-namespace.c: Revert.
11910 * d-lang.c: Revert.
11911 * ctf.c: Revert.
11912 * csky-tdep.c: Revert.
11913 * csky-linux-tdep.c: Revert.
11914 * cris-tdep.c: Revert.
11915 * cris-linux-tdep.c: Revert.
11916 * cp-valprint.c: Revert.
11917 * cp-support.c: Revert.
11918 * cp-namespace.c: Revert.
11919 * cp-abi.c: Revert.
11920 * corelow.c: Revert.
11921 * corefile.c: Revert.
11922 * continuations.c: Revert.
11923 * completer.h: Revert.
11924 * completer.c: Revert.
11925 * complaints.c: Revert.
11926 * coffread.c: Revert.
11927 * coff-pe-read.c: Revert.
11928 * cli-out.h: Revert.
11929 * cli-out.c: Revert.
11930 * charset.c: Revert.
11931 * c-varobj.c: Revert.
11932 * c-valprint.c: Revert.
11933 * c-typeprint.c: Revert.
11934 * c-lang.c: Revert.
11935 * buildsym.c: Revert.
11936 * buildsym-legacy.c: Revert.
11937 * build-id.h: Revert.
11938 * build-id.c: Revert.
11939 * btrace.c: Revert.
11940 * bsd-uthread.c: Revert.
11941 * breakpoint.h: Revert.
11942 * breakpoint.c: Revert.
11943 * break-catch-throw.c: Revert.
11944 * break-catch-syscall.c: Revert.
11945 * break-catch-sig.c: Revert.
11946 * blockframe.c: Revert.
11947 * block.c: Revert.
11948 * bfin-tdep.c: Revert.
11949 * bfin-linux-tdep.c: Revert.
11950 * bfd-target.c: Revert.
11951 * bcache.c: Revert.
11952 * ax-general.c: Revert.
11953 * ax-gdb.h: Revert.
11954 * ax-gdb.c: Revert.
11955 * avr-tdep.c: Revert.
11956 * auxv.c: Revert.
11957 * auto-load.c: Revert.
11958 * arm-wince-tdep.c: Revert.
11959 * arm-tdep.c: Revert.
11960 * arm-symbian-tdep.c: Revert.
11961 * arm-pikeos-tdep.c: Revert.
11962 * arm-obsd-tdep.c: Revert.
11963 * arm-nbsd-tdep.c: Revert.
11964 * arm-nbsd-nat.c: Revert.
11965 * arm-linux-tdep.c: Revert.
11966 * arm-linux-nat.c: Revert.
11967 * arm-fbsd-tdep.c: Revert.
11968 * arm-fbsd-nat.c: Revert.
11969 * arm-bsd-tdep.c: Revert.
11970 * arch-utils.c: Revert.
11971 * arc-tdep.c: Revert.
11972 * arc-newlib-tdep.c: Revert.
11973 * annotate.h: Revert.
11974 * annotate.c: Revert.
11975 * amd64-windows-tdep.c: Revert.
11976 * amd64-windows-nat.c: Revert.
11977 * amd64-tdep.c: Revert.
11978 * amd64-sol2-tdep.c: Revert.
11979 * amd64-obsd-tdep.c: Revert.
11980 * amd64-obsd-nat.c: Revert.
11981 * amd64-nbsd-tdep.c: Revert.
11982 * amd64-nbsd-nat.c: Revert.
11983 * amd64-nat.c: Revert.
11984 * amd64-linux-tdep.c: Revert.
11985 * amd64-linux-nat.c: Revert.
11986 * amd64-fbsd-tdep.c: Revert.
11987 * amd64-fbsd-nat.c: Revert.
11988 * amd64-dicos-tdep.c: Revert.
11989 * amd64-darwin-tdep.c: Revert.
11990 * amd64-bsd-nat.c: Revert.
11991 * alpha-tdep.c: Revert.
11992 * alpha-obsd-tdep.c: Revert.
11993 * alpha-nbsd-tdep.c: Revert.
11994 * alpha-mdebug-tdep.c: Revert.
11995 * alpha-linux-tdep.c: Revert.
11996 * alpha-linux-nat.c: Revert.
11997 * alpha-bsd-tdep.c: Revert.
11998 * alpha-bsd-nat.c: Revert.
11999 * aix-thread.c: Revert.
12000 * agent.c: Revert.
12001 * addrmap.c: Revert.
12002 * ada-varobj.c: Revert.
12003 * ada-valprint.c: Revert.
12004 * ada-typeprint.c: Revert.
12005 * ada-tasks.c: Revert.
12006 * ada-lang.c: Revert.
12007 * aarch64-tdep.c: Revert.
12008 * aarch64-ravenscar-thread.c: Revert.
12009 * aarch64-newlib-tdep.c: Revert.
12010 * aarch64-linux-tdep.c: Revert.
12011 * aarch64-linux-nat.c: Revert.
12012 * aarch64-fbsd-tdep.c: Revert.
12013 * aarch64-fbsd-nat.c: Revert.
12014 * aarch32-linux-nat.c: Revert.
12015
12016 2019-04-05 Tom Tromey <tom@tromey.com>
12017
12018 * ft32-tdep.c: Sort headers.
12019 * frv-tdep.c: Sort headers.
12020 * frv-linux-tdep.c: Sort headers.
12021 * frame.c: Sort headers.
12022 * frame-unwind.c: Sort headers.
12023 * frame-base.c: Sort headers.
12024 * fork-child.c: Sort headers.
12025 * findvar.c: Sort headers.
12026 * findcmd.c: Sort headers.
12027 * filesystem.c: Sort headers.
12028 * filename-seen-cache.h: Sort headers.
12029 * filename-seen-cache.c: Sort headers.
12030 * fbsd-tdep.c: Sort headers.
12031 * fbsd-nat.h: Sort headers.
12032 * fbsd-nat.c: Sort headers.
12033 * f-valprint.c: Sort headers.
12034 * f-typeprint.c: Sort headers.
12035 * f-lang.c: Sort headers.
12036 * extension.h: Sort headers.
12037 * extension.c: Sort headers.
12038 * extension-priv.h: Sort headers.
12039 * expprint.c: Sort headers.
12040 * exec.h: Sort headers.
12041 * exec.c: Sort headers.
12042 * exceptions.c: Sort headers.
12043 * event-top.c: Sort headers.
12044 * event-loop.c: Sort headers.
12045 * eval.c: Sort headers.
12046 * elfread.c: Sort headers.
12047 * dwarf2read.h: Sort headers.
12048 * dwarf2read.c: Sort headers.
12049 * dwarf2loc.c: Sort headers.
12050 * dwarf2expr.h: Sort headers.
12051 * dwarf2expr.c: Sort headers.
12052 * dwarf2-frame.c: Sort headers.
12053 * dwarf2-frame-tailcall.c: Sort headers.
12054 * dwarf-index-write.h: Sort headers.
12055 * dwarf-index-write.c: Sort headers.
12056 * dwarf-index-common.c: Sort headers.
12057 * dwarf-index-cache.h: Sort headers.
12058 * dwarf-index-cache.c: Sort headers.
12059 * dummy-frame.c: Sort headers.
12060 * dtrace-probe.c: Sort headers.
12061 * disasm.h: Sort headers.
12062 * disasm.c: Sort headers.
12063 * disasm-selftests.c: Sort headers.
12064 * dictionary.c: Sort headers.
12065 * dicos-tdep.c: Sort headers.
12066 * demangle.c: Sort headers.
12067 * dcache.h: Sort headers.
12068 * dcache.c: Sort headers.
12069 * darwin-nat.h: Sort headers.
12070 * darwin-nat.c: Sort headers.
12071 * darwin-nat-info.c: Sort headers.
12072 * d-valprint.c: Sort headers.
12073 * d-namespace.c: Sort headers.
12074 * d-lang.c: Sort headers.
12075 * ctf.c: Sort headers.
12076 * csky-tdep.c: Sort headers.
12077 * csky-linux-tdep.c: Sort headers.
12078 * cris-tdep.c: Sort headers.
12079 * cris-linux-tdep.c: Sort headers.
12080 * cp-valprint.c: Sort headers.
12081 * cp-support.c: Sort headers.
12082 * cp-namespace.c: Sort headers.
12083 * cp-abi.c: Sort headers.
12084 * corelow.c: Sort headers.
12085 * corefile.c: Sort headers.
12086 * continuations.c: Sort headers.
12087 * completer.h: Sort headers.
12088 * completer.c: Sort headers.
12089 * complaints.c: Sort headers.
12090 * coffread.c: Sort headers.
12091 * coff-pe-read.c: Sort headers.
12092 * cli-out.h: Sort headers.
12093 * cli-out.c: Sort headers.
12094 * charset.c: Sort headers.
12095 * c-varobj.c: Sort headers.
12096 * c-valprint.c: Sort headers.
12097 * c-typeprint.c: Sort headers.
12098 * c-lang.c: Sort headers.
12099 * buildsym.c: Sort headers.
12100 * buildsym-legacy.c: Sort headers.
12101 * build-id.h: Sort headers.
12102 * build-id.c: Sort headers.
12103 * btrace.c: Sort headers.
12104 * bsd-uthread.c: Sort headers.
12105 * breakpoint.h: Sort headers.
12106 * breakpoint.c: Sort headers.
12107 * break-catch-throw.c: Sort headers.
12108 * break-catch-syscall.c: Sort headers.
12109 * break-catch-sig.c: Sort headers.
12110 * blockframe.c: Sort headers.
12111 * block.c: Sort headers.
12112 * bfin-tdep.c: Sort headers.
12113 * bfin-linux-tdep.c: Sort headers.
12114 * bfd-target.c: Sort headers.
12115 * bcache.c: Sort headers.
12116 * ax-general.c: Sort headers.
12117 * ax-gdb.h: Sort headers.
12118 * ax-gdb.c: Sort headers.
12119 * avr-tdep.c: Sort headers.
12120 * auxv.c: Sort headers.
12121 * auto-load.c: Sort headers.
12122 * arm-wince-tdep.c: Sort headers.
12123 * arm-tdep.c: Sort headers.
12124 * arm-symbian-tdep.c: Sort headers.
12125 * arm-pikeos-tdep.c: Sort headers.
12126 * arm-obsd-tdep.c: Sort headers.
12127 * arm-nbsd-tdep.c: Sort headers.
12128 * arm-nbsd-nat.c: Sort headers.
12129 * arm-linux-tdep.c: Sort headers.
12130 * arm-linux-nat.c: Sort headers.
12131 * arm-fbsd-tdep.c: Sort headers.
12132 * arm-fbsd-nat.c: Sort headers.
12133 * arm-bsd-tdep.c: Sort headers.
12134 * arch-utils.c: Sort headers.
12135 * arc-tdep.c: Sort headers.
12136 * arc-newlib-tdep.c: Sort headers.
12137 * annotate.h: Sort headers.
12138 * annotate.c: Sort headers.
12139 * amd64-windows-tdep.c: Sort headers.
12140 * amd64-windows-nat.c: Sort headers.
12141 * amd64-tdep.c: Sort headers.
12142 * amd64-sol2-tdep.c: Sort headers.
12143 * amd64-obsd-tdep.c: Sort headers.
12144 * amd64-obsd-nat.c: Sort headers.
12145 * amd64-nbsd-tdep.c: Sort headers.
12146 * amd64-nbsd-nat.c: Sort headers.
12147 * amd64-nat.c: Sort headers.
12148 * amd64-linux-tdep.c: Sort headers.
12149 * amd64-linux-nat.c: Sort headers.
12150 * amd64-fbsd-tdep.c: Sort headers.
12151 * amd64-fbsd-nat.c: Sort headers.
12152 * amd64-dicos-tdep.c: Sort headers.
12153 * amd64-darwin-tdep.c: Sort headers.
12154 * amd64-bsd-nat.c: Sort headers.
12155 * alpha-tdep.c: Sort headers.
12156 * alpha-obsd-tdep.c: Sort headers.
12157 * alpha-nbsd-tdep.c: Sort headers.
12158 * alpha-mdebug-tdep.c: Sort headers.
12159 * alpha-linux-tdep.c: Sort headers.
12160 * alpha-linux-nat.c: Sort headers.
12161 * alpha-bsd-tdep.c: Sort headers.
12162 * alpha-bsd-nat.c: Sort headers.
12163 * aix-thread.c: Sort headers.
12164 * agent.c: Sort headers.
12165 * addrmap.c: Sort headers.
12166 * ada-varobj.c: Sort headers.
12167 * ada-valprint.c: Sort headers.
12168 * ada-typeprint.c: Sort headers.
12169 * ada-tasks.c: Sort headers.
12170 * ada-lang.c: Sort headers.
12171 * aarch64-tdep.c: Sort headers.
12172 * aarch64-ravenscar-thread.c: Sort headers.
12173 * aarch64-newlib-tdep.c: Sort headers.
12174 * aarch64-linux-tdep.c: Sort headers.
12175 * aarch64-linux-nat.c: Sort headers.
12176 * aarch64-fbsd-tdep.c: Sort headers.
12177 * aarch64-fbsd-nat.c: Sort headers.
12178 * aarch32-linux-nat.c: Sort headers.
12179
12180 2019-04-04 Tom Tromey <tom@tromey.com>
12181
12182 * varobj.c (varobj_create): Update.
12183 * rust-exp.y (struct rust_parser) <update_innermost_block,
12184 lookup_symbol>: New methods.
12185 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12186 Rename.
12187 (rust_parser::rust_lookup_type)
12188 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12189 * printcmd.c (display_command, do_one_display): Update.
12190 * parser-defs.h (struct parser_state) <parser_state>: Add
12191 "tracker" parameter.
12192 (block_tracker): New member.
12193 (class innermost_block_tracker) <innermost_block_tracker>: Add
12194 "types" parameter.
12195 <reset>: Remove method.
12196 (innermost_block): Don't declare.
12197 (null_post_parser): Update.
12198 * parse.c (innermost_block): Remove global.
12199 (write_dollar_variable): Update.
12200 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12201 Remove "tracker_types" parameter.
12202 (parse_expression): Add "tracker" parameter.
12203 (parse_expression_for_completion): Update.
12204 (null_post_parser): Add "tracker" parameter.
12205 * p-exp.y: Update rules.
12206 * m2-exp.y: Update rules.
12207 * language.h (struct language_defn) <la_post_parser>: Add
12208 "tracker" parameter.
12209 * go-exp.y: Update rules.
12210 * f-exp.y: Update rules.
12211 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12212 parameter.
12213 * d-exp.y: Update rules.
12214 * c-exp.y: Update rules.
12215 * breakpoint.c (set_breakpoint_condition): Create an
12216 innermost_block_tracker.
12217 (watch_command_1): Likewise.
12218 * ada-lang.c (resolve): Add "tracker" parameter.
12219 (resolve_subexp): Likewise.
12220 * ada-exp.y (write_var_from_sym): Update.
12221
12222 2019-04-04 Tom Tromey <tom@tromey.com>
12223
12224 * type-stack.h: New file.
12225 * type-stack.c: New file.
12226 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12227 type-stack.h.
12228 (insert_into_type_stack, insert_type, push_type, push_type_int)
12229 (insert_type_address_space, pop_type, pop_type_int)
12230 (pop_typelist, pop_type_stack, append_type_stack)
12231 (push_type_stack, get_type_stack, push_typelist)
12232 (follow_type_instance_flags, follow_types): Don't declare.
12233 * parse.c (type_stack): Remove global.
12234 (parse_exp_in_context): Update.
12235 (insert_into_type_stack, insert_type, push_type, push_type_int)
12236 (insert_type_address_space, pop_type, pop_type_int)
12237 (pop_typelist, pop_type_stack, append_type_stack)
12238 (push_type_stack, get_type_stack, push_typelist)
12239 (follow_type_instance_flags, follow_types): Remove (moved to
12240 type-stack.c).
12241 * f-exp.y (type_stack): New global.
12242 Update rules.
12243 (push_kind_type, f_parse): Update.
12244 * d-exp.y (type_stack): New global.
12245 Update rules.
12246 (d_parse): Update.
12247 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12248 Update rules.
12249 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12250 (HFILES_NO_SRCDIR): Add type-stack.h.
12251
12252 2019-04-04 Tom Tromey <tom@tromey.com>
12253
12254 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12255 (rust_parser::convert_ast_to_expression, rust_parse)
12256 (rust_lex_test_completion, rust_lex_tests): Update.
12257 * parser-defs.h (struct expr_completion_state): New.
12258 (struct parser_state) <parser_state>: Add completion parameter.
12259 <mark_struct_expression, mark_completion_tag>: New methods.
12260 <parse_completion, m_completion_state>: New members.
12261 (prefixify_expression, null_post_parser): Update.
12262 (mark_struct_expression, mark_completion_tag): Don't declare.
12263 * parse.c (parse_completion, expout_last_struct)
12264 (expout_tag_completion_type, expout_completion_name): Remove
12265 globals.
12266 (parser_state::mark_struct_expression)
12267 (parser_state::mark_completion_tag): Now methods.
12268 (prefixify_expression): Add last_struct parameter.
12269 (prefixify_subexp): Likewise.
12270 (parse_exp_1): Update.
12271 (parse_exp_in_context): Add cstate parameter. Update.
12272 (parse_expression_for_completion): Create an
12273 expr_completion_state.
12274 (null_post_parser): Add "completion" parameter.
12275 * p-exp.y: Update rules.
12276 (yylex): Update.
12277 * language.h (struct language_defn) <la_post_parser>: Add
12278 "completing" parameter.
12279 * go-exp.y: Update rules.
12280 (lex_one_token): Update.
12281 * expression.h (parse_completion): Don't declare.
12282 * d-exp.y: Update rules.
12283 (lex_one_token): Update rules.
12284 * c-exp.y: Update rules.
12285 (lex_one_token): Update.
12286 * ada-lang.c (resolve): Add "parse_completion" parameter.
12287 (resolve_subexp): Likewise.
12288 (ada_resolve_function): Likewise.
12289
12290 2019-04-04 Tom Tromey <tom@tromey.com>
12291
12292 * parser-defs.h (struct parser_state) <start_arglist,
12293 end_arglist>: New methods.
12294 <arglist_len, m_funcall_chain>: New members.
12295 (arglist_len, start_arglist, end_arglist): Don't declare.
12296 * parse.c (arglist_len, funcall_chain): Remove global.
12297 (start_arglist, end_arglist): Remove functions.
12298 (parse_exp_in_context): Update.
12299 * p-exp.y: Update rules.
12300 * m2-exp.y: Update rules.
12301 * go-exp.y: Update rules.
12302 * f-exp.y: Update rules.
12303 * d-exp.y: Update rules.
12304 * c-exp.y: Update rules.
12305
12306 2019-04-04 Tom Tromey <tom@tromey.com>
12307
12308 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12309 lex_operator, push_back>: New methods.
12310 Update all rules.
12311 (rust_parser::lex_hex, lex_escape): Rename and update.
12312 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12313 (rust_parser::lex_operator): Rename and update.
12314 (rust_parser::lex_number, rustyylex, rustyyerror)
12315 (rust_lex_test_init, rust_lex_test_sequence)
12316 (rust_lex_test_push_back, rust_lex_tests): Update.
12317 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12318 parameter.
12319 <lexptr, prev_lexptr>: New members.
12320 (lexptr, prev_lexptr): Don't declare.
12321 * parse.c (lexptr, prev_lexptr): Remove globals.
12322 (parse_exp_in_context): Update.
12323 * p-exp.y (yylex, yyerror): Update.
12324 * m2-exp.y (parse_number, yylex, yyerror): Update.
12325 * go-exp.y (lex_one_token, yyerror): Update.
12326 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12327 * d-exp.y (lex_one_token, yyerror): Update.
12328 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12329 (lex_one_token, yyerror): Update.
12330 * ada-lex.l (YY_INPUT): Update.
12331 (rewind_to_char): Update.
12332 * ada-exp.y (yyerror): Update.
12333
12334 2019-04-04 Tom Tromey <tom@tromey.com>
12335
12336 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12337 * parser-defs.h (struct parser_state) <parser_state>: Add new
12338 parameter.
12339 <comma_terminates>: New member.
12340 (comma_terminates): Don't declare global.
12341 * parse.c (comma_terminates): Remove global.
12342 (parse_exp_in_context): Update.
12343 * p-exp.y (yylex): Update.
12344 * m2-exp.y (yylex): Update.
12345 * go-exp.y (lex_one_token): Update.
12346 * f-exp.y (yylex): Update.
12347 * d-exp.y (lex_one_token): Update.
12348 * c-exp.y (lex_one_token): Update.
12349 * ada-lex.l: Update.
12350
12351 2019-04-04 Tom Tromey <tom@tromey.com>
12352
12353 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12354 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12355 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12356 * parser-defs.h (paren_depth): Don't declare.
12357 * parse.c (paren_depth): Remove global.
12358 (parse_exp_in_context): Update.
12359 * p-exp.y (paren_depth): New global.
12360 (pascal_parse): Initialize it.
12361 * m2-exp.y (paren_depth): New global.
12362 (m2_parse): Initialize it.
12363 * go-exp.y (paren_depth): New global.
12364 (go_parse): Initialize it.
12365 * f-exp.y (paren_depth): New global.
12366 (f_parse): Initialize it.
12367 * d-exp.y (paren_depth): New global.
12368 (d_parse): Initialize it.
12369 * c-exp.y (paren_depth): New global.
12370 (c_parse): Initialize it.
12371 * ada-lex.l (paren_depth): New global.
12372 (lexer_init): Initialize it.
12373
12374 2019-04-04 Tom Tromey <tom@tromey.com>
12375
12376 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12377 (rust_parser::convert_ast_to_type)
12378 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12379 * parser-defs.h (struct parser_state) <parser_state>: Add
12380 parameters. Initialize new members.
12381 <expression_context_block, expression_context_pc>: New members.
12382 * parse.c (expression_context_block, expression_context_pc):
12383 Remove globals.
12384 (parse_exp_in_context): Update.
12385 * p-exp.y: Update all rules.
12386 (yylex): Update.
12387 * m2-exp.y: Update all rules.
12388 (yylex): Update.
12389 * go-exp.y (yylex): Update.
12390 * f-exp.y (yylex): Update.
12391 * d-exp.y: Update all rules.
12392 (yylex): Update.
12393 * c-exp.y: Update all rules.
12394 (lex_one_token, classify_name, yylex, c_parse): Update.
12395 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12396
12397 2019-04-04 Tom Tromey <tom@tromey.com>
12398
12399 * gdbarch.h, gdbarch.c: Rebuild.
12400 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12401 * stap-probe.h:
12402 (struct stap_parse_info): Replace "parser_state" with
12403 "expr_builder".
12404 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12405 (parser_state): New class.
12406 * parse.c (expr_builder): Rename.
12407 (expr_builder::release): Rename.
12408 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12409 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12410 (write_exp_elt_longcst, write_exp_elt_floatcst)
12411 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12412 (write_exp_string_vector, write_exp_bitstring)
12413 (write_exp_msymbol, mark_struct_expression)
12414 (write_dollar_variable)
12415 (insert_type_address_space, increase_expout_size): Replace
12416 "parser_state" with "expr_builder".
12417 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12418 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12419 "parser_state" with "expr_builder".
12420
12421 2019-04-04 Tom Tromey <tom@tromey.com>
12422
12423 * rust-exp.y: Replace "parse_language" with method call.
12424 * p-exp.y:
12425 (yylex): Replace "parse_language" with method call.
12426 * m2-exp.y:
12427 (yylex): Replace "parse_language" with method call.
12428 * go-exp.y (classify_name): Replace "parse_language" with method
12429 call.
12430 * f-exp.y (yylex): Replace "parse_language" with method call.
12431 * d-exp.y (lex_one_token): Replace "parse_language" with method
12432 call.
12433 * c-exp.y:
12434 (lex_one_token, classify_name, yylex): Replace "parse_language"
12435 with method call.
12436 * ada-exp.y (find_primitive_type, type_char)
12437 (type_system_address): Replace "parse_language" with method call.
12438
12439 2019-04-04 Tom Tromey <tom@tromey.com>
12440
12441 * rust-exp.y: Replace "parse_gdbarch" with method call.
12442 * parse.c (write_dollar_variable, insert_type_address_space):
12443 Replace "parse_gdbarch" with method call.
12444 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12445 call.
12446 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12447 call.
12448 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12449 "parse_gdbarch" with method call.
12450 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12451 with method call.
12452 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12453 "parse_gdbarch" with method call.
12454 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12455 "parse_gdbarch" with method call.
12456 * c-exp.y (parse_type, parse_number, classify_name): Replace
12457 "parse_gdbarch" with method call.
12458 * ada-lex.l: Replace "parse_gdbarch" with method call.
12459 * ada-exp.y (parse_type, find_primitive_type, type_char)
12460 (type_system_address): Replace "parse_gdbarch" with method call.
12461
12462 2019-04-04 Tom Tromey <tom@tromey.com>
12463
12464 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12465 * stap-probe.c (stap_parse_argument): Update.
12466 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12467 initial_size parameter.
12468 * rust-exp.y (rust_lex_tests): Update.
12469 * parse.c (parser_state): Update.
12470 (parse_exp_in_context): Update.
12471 * parser-defs.h (struct parser_state) <parser_state>: Remove
12472 "initial_size" parameter.
12473
12474 2019-04-04 Tom Tromey <tom@tromey.com>
12475
12476 * parser-defs.h (increase_expout_size): Don't declare.
12477 * parse.c (increase_expout_size): Now static.
12478
12479 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12480
12481 * gnu-nat.c (gnu_nat_target::wait): Fix
12482 target_waitstatus_to_string call.
12483
12484 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12485
12486 * eval.c (evaluate_subexp_standard): Handle internal functions
12487 during Fortran function call handling.
12488
12489 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12490
12491 * NEWS: Mention new internal functions.
12492 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12493 (read_base_type): Use dwarf2_init_complex_target_type.
12494 * value.c (creal_internal_fn): New function.
12495 (cimag_internal_fn): New function.
12496 (_initialize_values): Register new internal functions.
12497
12498 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12499
12500 * infrun.c (stop_all_threads): If debug_infrun, always
12501 trace the wait status after wait_one, using
12502 target_waitstatus_to_string and target_pid_to_str.
12503 (handle_inferior_event): Replace various trace of
12504 wait status kind by a single trace.
12505 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12506 wait status kind image by target_waitstatus_to_string.
12507 * target/waitstatus.c (target_waitstatus_to_string): Fix
12508 obsolete comment.
12509
12510 2019-04-01 Tom Tromey <tromey@adacore.com>
12511
12512 PR symtab/23331:
12513 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12514
12515 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12516 Pedro Alves <palves@redhat.com>
12517
12518 * top.c (quit_force): Call 'finalize_values'.
12519 * value.c (finalize_values): New function.
12520 * value.h (finalize_values): Declare.
12521
12522 2019-03-30 Eli Zaretskii <eliz@gnu.org>
12523
12524 * NEWS: Announce $_gdb_major and $_gdb_minor.
12525
12526 * top.c (init_gdb_version_vars): New function.
12527 (gdb_init): Call init_gdb_version_vars.
12528
12529 2019-03-29 Tom Tromey <tromey@adacore.com>
12530
12531 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12532 help text. Remove dead code.
12533
12534 2019-03-29 Keith Seitz <keiths@redhat.com>
12535
12536 From Siddhesh Poyarekar:
12537 * f-lang.h (f77_get_upperbound): Return LONGEST.
12538 (f77_get_lowerbound): Likewise.
12539 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12540 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12541 print them.
12542 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12543 plongest to format print it.
12544 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12545 (f77_get_upperbound): Likewise.
12546 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12547 LOWER_BOUND to LONGEST.
12548 (f77_create_arrayprint_offset_tbl): Likewise.
12549
12550 2019-03-29 Keith Seitz <keiths@redhat.com>
12551
12552 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12553 %s/pulongest for TYPE_LENGTH instead of %d in format
12554 strings.
12555 * ada-typerint.c (ada_print_type): Likewise.
12556 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12557 * compile/compile-c-support.c (generate_register_struct): Likewise.
12558 * gdbtypes.c (recursive_dump_type): Likewise.
12559 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12560 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12561 instead of %d in format strings.
12562 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12563 to std::min to ULONGEST.
12564 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12565 instead of %d in format strings.
12566 * tracepoint.c (info_scope_command): Likewise.
12567 * typeprint.c (print_offset_data::update)
12568 (print_offset_data::finish): Likewise.
12569 * xtensa-tdep.c (xtensa_store_return_value)
12570 (xtensa_push_dummy_call): Likewise.
12571
12572 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12573
12574 * windows-nat.c (display_selector): Fixed format specifications
12575 for 64-bit Cygwin.
12576
12577 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12578
12579 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12580
12581 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12582
12583 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12584 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12585 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12586 (nios2_linux_init_abi): Install it.
12587
12588 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12589
12590 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12591
12592 2019-03-28 Alan Hayward <alan.hayward@arm.com>
12593
12594 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12595
12596 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12597 Tom Tromey <tromey@adacore.com>
12598
12599 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12600
12601 2019-03-26 Joel Brobecker <brobecker@adacore.com>
12602
12603 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12604 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12605 method to compute the bounds of range types. Also print "[evaluated]"
12606 if the bounds' values come from a dynamic evaluation.
12607
12608 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12609
12610 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12611 whitespace when pretty printing is on.
12612
12613 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12614
12615 * ppc-linux-nat.c: Add include.
12616
12617 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12618
12619 * NEWS: Mention AArch64 Pointer Authentication.
12620
12621 2019-03-26 Alan Hayward <alan.hayward@arm.com>
12622
12623 * arm-linux-nat.c: Add include.
12624
12625 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12626
12627 * source-cache.c (source_cache::get_source_lines): Re-read
12628 fullname after calling open_source_file.
12629
12630 2019-03-25 John Baldwin <jhb@FreeBSD.org>
12631
12632 * NEWS: Mention TLS support for FreeBSD.
12633
12634 2019-03-25 Tom Tromey <tromey@adacore.com>
12635
12636 * minsyms.c (BUNCH_SIZE): Update comment.
12637 (~minimal_symbol_reader): Remove old comment.
12638 (compact_minimal_symbols): Update comment.
12639 (minimal_symbol_reader::install): Remove old comment. Update
12640 other comments.
12641
12642 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12643
12644 * s390-linux-nat.c: Add include.
12645
12646 2019-03-25 Alan Hayward <alan.hayward@arm.com>
12647
12648 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12649 Call linux_get_hwcap.
12650 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12651 Likewise.
12652 (aarch64_linux_get_hwcap): Remove function.
12653 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12654 declaration.
12655 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12656 linux_get_hwcap.
12657 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12658 * linux-tdep.c (linux_get_hwcap): Add function.
12659 (linux_get_hwcap2): Likewise.
12660 * linux-tdep.h (linux_get_hwcap): Add declaration.
12661 (linux_get_hwcap2): Likewise.
12662 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12663 (ppc_linux_get_hwcap2): Likewise.
12664 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12665 linux_get_hwcap.
12666 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12667 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12668 (ppc_linux_nat_target::read_description): Likewise.
12669 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12670 * s390-linux-nat.c: Likewise.
12671 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12672
12673 2019-03-24 Tom Tromey <tom@tromey.com>
12674
12675 * ada-lang.c (standard_lookup): Simplify initialization.
12676 (ada_lookup_symbol_nonlocal): Simplify return.
12677 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12678 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12679 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12680 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12681 initialization.
12682 * solib.c (solib_global_lookup): Simplify.
12683 * symtab.c (null_block_symbol): Remove.
12684 (symbol_cache_lookup): Simplify returns.
12685 (lookup_language_this): Simplify returns.
12686 (lookup_symbol_aux): Simplify return.
12687 (lookup_local_symbol): Simplify returns.
12688 (lookup_global_symbol_from_objfile): Simplify return.
12689 (lookup_symbol_in_objfile_symtabs)
12690 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12691 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12692 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12693 * cp-namespace.c (cp_lookup_bare_symbol)
12694 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12695 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12696 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12697 (cp_lookup_symbol_via_imports): Simplify initialization.
12698 (find_symbol_in_baseclass): Likewise.
12699 * symtab.h (null_block_symbol): Remove.
12700 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12701 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12702 (d_lookup_symbol_module): Likewise.
12703 (find_symbol_in_baseclass): Simplify initialization.
12704
12705 2019-03-24 Tom Tromey <tom@tromey.com>
12706
12707 * expression.h: Don't include symtab.h.
12708 (struct block): Forward declare.
12709
12710 2019-03-24 Tom Tromey <tom@tromey.com>
12711
12712 * c-exp.y (typebase): Remove casts.
12713 * gdbtypes.c (lookup_unsigned_typename, )
12714 (lookup_signed_typename): Remove cast.
12715 * eval.c (parse_to_comma_and_eval): Remove cast.
12716 * parse.c (write_dollar_variable): Remove cast.
12717 * block.h (struct block) <superblock>: Now const.
12718 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12719 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12720 (map_block): Make "block" const.
12721 * symfile.h (struct quick_symbol_functions)
12722 <map_matching_symbols>: Constify block argument to "callback".
12723 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12724 const.
12725 (find_pc_sect_compunit_symtab): Make "b" const.
12726 (find_symbol_at_address): Likewise.
12727 (search_symbols): Likewise.
12728 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12729 (dw2_debug_names_lookup_symbol): Likewise.
12730 (dw2_map_matching_symbols): Update.
12731 * p-valprint.c (pascal_val_print): Remove "block".
12732 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12733 (aux_add_nonlocal_symbols): Make "block" const.
12734 (resolve_subexp): Remove cast.
12735 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12736 const.
12737 (iterate_over_file_blocks): Likewise.
12738 * f-exp.y (%union) <bval>: Remove.
12739 * coffread.c (patch_opaque_types): Make "b" const.
12740 * spu-tdep.c (spu_catch_start): Make "block" const.
12741 * c-valprint.c (print_unpacked_pointer): Remove "block".
12742 * symmisc.c (dump_symtab_1): Make "b" const.
12743 (block_depth): Make "block" const.
12744 * d-exp.y (%union) <bval>: Remove.
12745 * cp-support.h (cp_lookup_rtti_type): Update.
12746 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12747 * psymtab.c (psym_lookup_symbol): Make "block" const.
12748 (maintenance_check_psymtabs): Make "b" const.
12749 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12750 (enumerate_locals, enumerate_args): Update.
12751 * python/py-symtab.c (stpy_global_block): Make "block" const.
12752 (stpy_static_block): Likewise.
12753 * inline-frame.c (block_starting_point_at): Make "new_block"
12754 const.
12755 * block.c (find_block_in_blockvector): Make return type const.
12756 (blockvector_for_pc_sect): Make "b" const.
12757 (find_block_in_blockvector): Make "b" const.
12758
12759 2019-03-23 Tom Tromey <tom@tromey.com>
12760
12761 * varobj.c (varobj_create): Update.
12762 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12763 * printcmd.c (display_command, do_one_display): Don't reset
12764 innermost_block.
12765 * parser-defs.h (enum innermost_block_tracker_type): Move to
12766 expression.h.
12767 (innermost_block): Update comment.
12768 * parse.c (parse_exp_1): Add tracker_types parameter.
12769 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12770 tracker_types parameter. Reset innermost_block.
12771 (parse_exp_in_context): Remove.
12772 (parse_expression_for_completion): Update.
12773 * objfiles.c (~objfile): Don't reset expression_context_block or
12774 innermost_block.
12775 * expression.h (enum innermost_block_tracker_type): Move from
12776 parser-defs.h.
12777 (parse_exp_1): Add tracker_types parameter.
12778 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12779 reset innermost_block.
12780
12781 2019-03-23 Tom Tromey <tom@tromey.com>
12782
12783 * objfiles.h: Include bcache.h.
12784
12785 2019-03-23 Tom Tromey <tom@tromey.com>
12786
12787 * linespec.c (get_current_search_block): Use
12788 scoped_restore_current_language.
12789 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12790
12791 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12792 Jiong Wang <jiong.wang@arm.com>
12793
12794 * aarch64-linux-tdep.c
12795 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12796 section.
12797 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12798
12799 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12800 Jiong Wang <jiong.wang@arm.com>
12801
12802 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12803 instructions.
12804 (aarch64_analyze_prologue_test): Add PACIASP test.
12805 (aarch64_prologue_prev_register): Unmask PC value.
12806
12807 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12808 Jiong Wang <jiong.wang@arm.com>
12809
12810 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12811 (aarch64_dwarf2_prev_register): Unmask PC value.
12812 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12813 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12814 DW_CFA_AARCH64_negate_ra_state.
12815 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12816
12817 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12818 Jiong Wang <jiong.wang@arm.com>
12819
12820 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12821 registers.
12822 (aarch64_pseudo_register_name): Likewise.
12823 (aarch64_pseudo_register_type): Likewise.
12824 (aarch64_pseudo_register_reggroup_p): Likewise.
12825 (aarch64_gdbarch_init): Add pauth registers.
12826 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12827 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12828 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12829 (struct gdbarch_tdep): Add regnum for ra_state.
12830
12831 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12832 Jiong Wang <jiong.wang@arm.com>
12833
12834 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12835
12836 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12837 Jiong Wang <jiong.wang@arm.com>
12838
12839 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12840 function.
12841 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12842 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12843 (aarch64_gdbarch_init): Add puth registers.
12844 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12845 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12846 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12847
12848 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12849 Jiong Wang <jiong.wang@arm.com>
12850
12851 * aarch64-linux-nat.c
12852 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12853 * aarch64-linux-tdep.c
12854 (aarch64_linux_core_read_description): Likewise.
12855 (aarch64_linux_get_hwcap): New function.
12856 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12857 (aarch64_linux_get_hwcap): New declaration.
12858
12859 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12860 Jiong Wang <jiong.wang@arm.com>
12861
12862 * aarch64-linux-nat.c
12863 (aarch64_linux_nat_target::read_description): Add pauth param.
12864 * aarch64-linux-tdep.c
12865 (aarch64_linux_core_read_description): Likewise.
12866 * aarch64-tdep.c (struct target_desc): Add in pauth.
12867 (aarch64_read_description): Add pauth param.
12868 (aarch64_gdbarch_init): Likewise.
12869 * aarch64-tdep.h (aarch64_read_description): Likewise.
12870 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12871 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12872 * features/Makefile: Add new files.
12873 * features/aarch64-pauth.c: New file.
12874 * features/aarch64-pauth.xml: New file.
12875
12876 2019-03-20 Tom Tromey <tromey@adacore.com>
12877
12878 * infrun.c (handle_inferior_event): Rename from
12879 handle_inferior_event_1. Create a scoped_value_mark.
12880 (handle_inferior_event): Remove.
12881
12882 2019-03-19 Tom Tromey <tromey@adacore.com>
12883
12884 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12885 * infrun.h (print_stop_event): Add "displays" parameter.
12886 * infrun.c (print_stop_event): Add "displays" parameter.
12887
12888 2019-03-19 Pedro Alves <palves@redhat.com>
12889
12890 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12891 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12892 to -1. Fix TABs vs spaces.
12893 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12894 * tui/tui-out.h (tui_ui_out) Add intro comments.
12895 <m_line, m_start_of_line>: In-class initialize, and add describing
12896 comment.
12897
12898 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12899
12900 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12901 variable names.
12902 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12903
12904 2019-03-18 Pedro Alves <palves@redhat.com>
12905 Eli Zaretskii <eliz@gnu.org>
12906
12907 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12908 m_line and m_start_of_line.
12909
12910 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12911
12912 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12913 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12914 it returns a newline. This fixes a regression in TU mode, whereby
12915 the next line is output on the same screen line as the user input.
12916
12917 2019-03-18 Tom Tromey <tromey@adacore.com>
12918
12919 * minsyms.c (minimal_symbol_reader::install): Remove call to
12920 obstack_blank.
12921
12922 2019-03-18 Pedro Alves <palves@redhat.com>
12923
12924 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12925 New globals.
12926 (apply_style): New, factored out from ...
12927 (apply_ansi_escape): ... this. Handle reverse video mode.
12928 (tui_set_reverse_mode): New function.
12929 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12930 * tui/tui-winsource.c (tui_show_source_line): Use
12931 tui_set_reverse_mode instead of setting A_STANDOUT.
12932 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12933 New setter methods.
12934
12935 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12936
12937 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12938 Handle tabs.
12939
12940 2019-03-18 Tom Tromey <tromey@adacore.com>
12941
12942 * ada-lang.c (empty_array): Add "high" parameter.
12943 (ada_evaluate_subexp): Update.
12944
12945 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12946
12947 * unittests/string_view-selftests.c: Define
12948 _initialize_string_view_selftests unconditionally.
12949
12950 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12951
12952 PR gdb/24350
12953 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12954
12955 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12956
12957 PR gdb/24351
12958 * windows-nat.c (display_selector): Fix format specifiers.
12959
12960 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12961
12962 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12963 tui_refill_source_window instead of tui_refresh_win, to update the
12964 current execution line. This fixes redisplay of the current line
12965 when stepping through the code with "next" or "step".
12966
12967 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12968
12969 * source-cache.c (source_cache::get_source_lines): Call
12970 find_source_lines to initialize s->nlines. This fixes vertical
12971 scrolling of TUI source window when the DOWN arrow is pressed.
12972
12973 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12974
12975 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12976 linux-thread-db.c (_initialize_thread_db): Likewise.
12977
12978 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12979
12980 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12981 wclrtoeol in tui_show_source_line". This reverts changes made in
12982 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12983
12984 2019-03-15 Tom Tromey <tom@tromey.com>
12985
12986 * symtab.h (struct minimal_symbol): Derive from
12987 general_symbol_info.
12988 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12989 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12990 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12991 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12992 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12993 (MSYMBOL_SEARCH_NAME): Update.
12994 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12995 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12996 * minsyms.c (minimal_symbol_reader::record_full): Update.
12997
12998 2019-03-15 Tom Tromey <tom@tromey.com>
12999
13000 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13001
13002 2019-03-15 Tom Tromey <tom@tromey.com>
13003
13004 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13005 unique_xmalloc_ptr.
13006 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13007 Update.
13008 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13009 (build_minimal_symbol_hash_tables)
13010 (minimal_symbol_reader::install): Update.
13011
13012 2019-03-15 Tom Tromey <tom@tromey.com>
13013
13014 * symtab.c (create_demangled_names_hash): Update.
13015 (symbol_set_names): Update.
13016 * objfiles.h (struct objfile_per_bfd_storage)
13017 <demangled_names_hash>: Now an htab_up.
13018 * objfiles.c (objfile_per_bfd_storage): Simplify.
13019
13020 2019-03-15 Tom Tromey <tom@tromey.com>
13021
13022 * objfiles.h (struct objfile_per_bfd_storage): Declare
13023 destructor.
13024 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13025 New.
13026 (get_objfile_bfd_data): Use new. Don't initialize
13027 language_of_main.
13028 (free_objfile_per_bfd_storage): Remove.
13029 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13030
13031 2019-03-15 Tom Tromey <tom@tromey.com>
13032
13033 * symfile.c (reread_symbols): Update.
13034 * objfiles.c (objfile::objfile): Update.
13035 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13036 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13037 comment.
13038 (minimal_symbol_reader::install): Update.
13039 (terminate_minimal_symbol_table): Remove.
13040 * jit.c (jit_object_close_impl): Update.
13041
13042 2019-03-15 Tom Tromey <tom@tromey.com>
13043
13044 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13045 initializations.
13046
13047 2019-03-15 Tom Tromey <tom@tromey.com>
13048
13049 * objfiles.h (struct objfile_per_bfd_storage)
13050 <demangled_hash_languages>: Now a bitset.
13051 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13052 (lookup_minimal_symbol): Update.
13053
13054 2019-03-15 Tom Tromey <tom@tromey.com>
13055
13056 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13057 Don't return the symbol.
13058 * coffread.c (record_minimal_symbol): Use record_full.
13059
13060 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13061
13062 The MS-Windows port of ncurses fails to switch to a color pair if
13063 one or both of the colors are the implicit default colors. This
13064 change records the default colors when TUI is initialized, and
13065 then specifies them explicitly when a color pair uses the default
13066 colors. This allows color styling in TUI mode on MS-Windows.
13067
13068 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13069 ncurses_norm_attr.
13070 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13071 colors in ncurses_norm_attr.
13072 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13073 "none", replace it with the default color recorded in
13074 ncurses_norm_attr.
13075
13076 2019-03-14 Tom Tromey <tromey@adacore.com>
13077
13078 * source-cache.h (class source_cache) <get_source_lines>: Return
13079 std::string.
13080 * source-cache.c (source_cache::extract_lines): Handle case where
13081 first_pos==npos. Return std::string.
13082 (source_cache::get_source_lines): Update.
13083
13084 2019-03-14 Tom Tromey <tromey@adacore.com>
13085
13086 * NEWS: Add item for "style sources" commands.
13087 * source-cache.c (source_cache::get_source_lines): Check
13088 source_styling.
13089 * cli/cli-style.c (source_styling): New global.
13090 (_initialize_cli_style): Add "style sources" commands.
13091 (show_style_sources): New function.
13092 * cli/cli-style.h (source_styling): Declare.
13093
13094 2019-03-14 Pedro Alves <palves@redhat.com>
13095 Tom Tromey <tromey@adacore.com>
13096
13097 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13098 * tui/tui-winsource.c (tui_refill_source_window): New function,
13099 from...
13100 (tui_horizontal_source_scroll): ... here. Move some logic.
13101 * cli/cli-style.c (set_style_enabled): Notify new observable.
13102 * tui/tui-hooks.c (tui_redisplay_source): New function.
13103 (tui_attach_detach_observers): Attach or detach
13104 tui_redisplay_source.
13105 * observable.h (source_styling_changed): New observable.
13106 * observable.c: Define source_styling_changed observable.
13107
13108 2019-03-13 Tom Tromey <tromey@adacore.com>
13109
13110 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13111 (i386_gnu_nat_target::store_registers): Update.
13112 * target-debug.h (target_debug_print_std_string): New macro.
13113 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13114 * windows-tdep.c (display_one_tib): Update.
13115 * tui/tui-stack.c (tui_make_status_line): Update.
13116 * top.c (print_inferior_quit_action): Update.
13117 * thread.c (thr_try_catch_cmd): Update.
13118 (add_thread_with_info): Update.
13119 (thread_target_id_str): Update.
13120 (thr_try_catch_cmd): Update.
13121 (thread_command): Update.
13122 (thread_find_command): Update.
13123 * record-btrace.c (record_btrace_target::info_record)
13124 (record_btrace_resume_thread, record_btrace_target::resume)
13125 (record_btrace_cancel_resume, record_btrace_step_thread)
13126 (record_btrace_target::wait, record_btrace_target::wait)
13127 (record_btrace_target::wait, record_btrace_target::stop): Update.
13128 * progspace.c (print_program_space): Update.
13129 * process-stratum-target.c
13130 (process_stratum_target::thread_address_space): Update.
13131 * linux-fork.c (linux_fork_mourn_inferior)
13132 (detach_checkpoint_command, info_checkpoints_command)
13133 (linux_fork_context): Update.
13134 (linux_fork_detach): Update.
13135 (class scoped_switch_fork_info): Update.
13136 (delete_checkpoint_command): Update.
13137 * infrun.c (follow_fork_inferior): Update.
13138 (follow_fork_inferior): Update.
13139 (proceed_after_vfork_done): Update.
13140 (handle_vfork_child_exec_or_exit): Update.
13141 (follow_exec): Update.
13142 (displaced_step_prepare_throw): Update.
13143 (displaced_step_restore): Update.
13144 (start_step_over): Update.
13145 (resume_1): Update.
13146 (clear_proceed_status_thread): Update.
13147 (proceed): Update.
13148 (print_target_wait_results): Update.
13149 (do_target_wait): Update.
13150 (context_switch): Update.
13151 (stop_all_threads): Update.
13152 (restart_threads): Update.
13153 (finish_step_over): Update.
13154 (handle_signal_stop): Update.
13155 (switch_back_to_stepped_thread): Update.
13156 (keep_going_pass_signal): Update.
13157 (print_exited_reason): Update.
13158 (normal_stop): Update.
13159 * inferior.c (inferior_pid_to_str): Change return type.
13160 (print_selected_inferior): Update.
13161 (add_inferior): Update.
13162 (detach_inferior): Update.
13163 * dummy-frame.c (fprint_dummy_frames): Update.
13164 * dcache.c (dcache_info_1): Update.
13165 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13166 (btrace_fetch, btrace_clear): Update.
13167 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13168 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13169 type.
13170 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13171 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13172 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13173 * gdbarch.c, gdbarch.h: Rebuild.
13174 * gdbarch.sh (core_pid_to_str): Change return type.
13175 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13176 return type.
13177 (windows_nat_target::pid_to_str): Change return type.
13178 (windows_delete_thread): Update.
13179 (windows_nat_target::attach): Update.
13180 (windows_nat_target::files_info): Update.
13181 * target-delegates.c: Rebuild.
13182 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13183 return type.
13184 (sol_thread_target::pid_to_str): Change return type.
13185 * remote.c (class remote_target) <pid_to_str>: Change return
13186 type.
13187 (remote_target::pid_to_str): Change return type.
13188 (extended_remote_target::attach, remote_target::remote_stop_ns)
13189 (remote_target::remote_notif_remove_queued_reply)
13190 (remote_target::push_stop_reply, remote_target::disable_btrace):
13191 Update.
13192 (extended_remote_target::attach): Update.
13193 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13194 type.
13195 (gdbsim_target::pid_to_str): Change return type.
13196 * ravenscar-thread.c (struct ravenscar_thread_target)
13197 <pid_to_str>: Change return type.
13198 (ravenscar_thread_target::pid_to_str): Change return type.
13199 * procfs.c (class procfs_target) <pid_to_str>: Change return
13200 type.
13201 (procfs_target::pid_to_str): Change return type.
13202 (procfs_target::attach): Update.
13203 (procfs_target::detach): Update.
13204 (procfs_target::fetch_registers): Update.
13205 (procfs_target::store_registers): Update.
13206 (procfs_target::wait): Update.
13207 (procfs_target::files_info): Update.
13208 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13209 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13210 return type.
13211 (nto_procfs_target::pid_to_str): Change return type.
13212 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13213 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13214 return type.
13215 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13216 (exit_lwp): Update.
13217 (attach_proc_task_lwp_callback, get_detach_signal)
13218 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13219 (linux_nat_target::resume, wait_lwp, stop_callback)
13220 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13221 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13222 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13223 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13224 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13225 type.
13226 (inf_ptrace_target::attach): Update.
13227 (inf_ptrace_target::files_info): Update.
13228 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13229 type.
13230 (go32_nat_target::pid_to_str): Change return type.
13231 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13232 (gnu_nat_target::wait): Update.
13233 (gnu_nat_target::wait): Update.
13234 (gnu_nat_target::resume): Update.
13235 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13236 (fbsd_nat_target::wait): Update.
13237 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13238 type.
13239 (darwin_nat_target::attach): Update.
13240 * corelow.c (class core_target) <pid_to_str>: Change return type.
13241 (core_target::pid_to_str): Change return type.
13242 * target.c (normal_pid_to_str): Change return type.
13243 (default_pid_to_str): Likewise.
13244 (target_pid_to_str): Change return type.
13245 (target_translate_tls_address): Update.
13246 (target_announce_detach): Update.
13247 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13248 return type.
13249 (bsd_uthread_target::pid_to_str): Change return type.
13250 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13251 type.
13252 (bsd_kvm_target::pid_to_str): Change return type.
13253 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13254 return type.
13255 (aix_thread_target::pid_to_str): Change return type.
13256 * target.h (struct target_ops) <pid_to_str>: Change return type.
13257 (target_pid_to_str, normal_pid_to_str): Likewise.
13258 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13259 type.
13260 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13261 type.
13262 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13263 return type.
13264 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13265 type.
13266 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13267 type.
13268 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13269 return type.
13270
13271 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13272
13273 * NEWS: Mention that the new default MI version is 3. Mention
13274 changes to the output of commands and events that deal with
13275 multi-location breakpoints.
13276 * breakpoint.c: Include "mi/mi-out.h".
13277 (print_one_breakpoint): Change output syntax if using MI version
13278 >= 3.
13279 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13280 New.
13281 (mi_multi_location_breakpoint_output_fixed): New.
13282 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13283 (mi_cmd_fix_multi_location_breakpoint_output): New.
13284 (mi_multi_location_breakpoint_output_fixed): New.
13285 * mi/mi-cmds.c (mi_cmds): Register command
13286 -fix-multi-location-breakpoint-output.
13287 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13288 interpreter "mi".
13289
13290 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13291
13292 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13293 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13294 instantiate mi_ui_out based on interpreter name.
13295 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13296 * mi/mi-main.c (mi_load_progress): Likewise.
13297
13298 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13299
13300 * NEWS: Combine separate "New targets" sections for 8.3.
13301
13302 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13303
13304 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13305 (ppcfbsd_init_abi): Install gdbarch
13306 "fetch_tls_load_module_address" and "get_thread_local_address"
13307 methods.
13308
13309 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13310
13311 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13312 (riscv_fbsd_init_abi): Install gdbarch
13313 "fetch_tls_load_module_address" and "get_thread_local_address"
13314 methods.
13315
13316 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13317
13318 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13319 (i386fbsd_init_abi): Install gdbarch
13320 "fetch_tls_load_module_address" and "get_thread_local_address"
13321 methods.
13322
13323 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13324
13325 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13326 (amd64fbsd_init_abi): Install gdbarch
13327 "fetch_tls_load_module_address" and "get_thread_local_address"
13328 methods.
13329
13330 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13331
13332 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13333 (struct fbsd_pspace_data): New type.
13334 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13335 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13336 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13337 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13338 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13339
13340 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13341
13342 * gdbtypes.c (lookup_struct_elt): New function.
13343 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13344 * gdbtypes.h (struct struct_elt): New type.
13345 (lookup_struct_elt): New prototype.
13346
13347 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13348
13349 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13350 remove disabled code block.
13351
13352 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13353
13354 * gdbarch.sh (get_thread_local_address): New method.
13355 * gdbarch.h, gdbarch.c: Regenerate.
13356 * target.c (target_translate_tls_address): Use
13357 gdbarch_get_thread_local_address if present instead of
13358 target::get_thread_local_address.
13359
13360 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13361
13362 * target.h (target::get_thread_local_address): Update comment.
13363
13364 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13365
13366 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13367 objfile->separate_debug_objfile_backlink if not NULL.
13368
13369 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13370
13371 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13372 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13373 (amd64bsd_store_inferior_registers): Likewise.
13374 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13375 Enable segment base registers.
13376 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13377 PT_GETFSBASE and PT_GETGSBASE.
13378 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13379 PT_SETGSBASE.
13380 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13381 segment base registers.
13382 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13383
13384 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13385
13386 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13387 Update calls to i386_target_description to add 'segments'
13388 parameter.
13389 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13390 add segment base registers.
13391 * arch/i386.c (i386_create_target_description): Add 'segments'
13392 parameter to enable segment base registers.
13393 * arch/i386.h (i386_create_target_description): Likewise.
13394 * features/i386/32bit-segments.xml: New file.
13395 * features/i386/32bit-segments.c: Generate.
13396 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13397 call to i386_target_description to add 'segments' parameter.
13398 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13399 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13400 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13401 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13402 if feature is present.
13403 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13404 Add 'segments' parameter to call to i386_target_description.
13405 (i386_target_description): Add 'segments' parameter to enable
13406 segment base registers.
13407 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13408 to call to i386_target_description.
13409 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13410 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13411 Define I386_NUM_REGS.
13412 (i386_target_description): Add 'segments' parameter to enable
13413 segment base registers.
13414
13415 2019-03-12 Eli Zaretskii <eliz@gnu.org>
13416
13417 PR/24325
13418 * source-cache.c: #undef open and close, to avoid unresolved
13419 externals during linking.
13420
13421 2019-03-12 Tom Tromey <tromey@adacore.com>
13422
13423 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13424 const. Add initializers.
13425 (_initialize_remote): Don't initialize ptid globals.
13426
13427 2019-03-12 Pedro Alves <palves@redhat.com>
13428
13429 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13430
13431 2019-03-12 Pedro Alves <palves@redhat.com>
13432
13433 * cp-name-parser.y (main): Remove unused 'len' variable.
13434
13435 2019-03-12 Tom Tromey <tromey@adacore.com>
13436
13437 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13438 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13439
13440 2019-03-12 Tom Tromey <tromey@adacore.com>
13441
13442 * linux-nat.c (iterate_over_lwps): Update.
13443 (stop_callback): Remove parameter.
13444 (stop_wait_callback, detach_callback, resume_set_callback)
13445 (select_singlestep_lwp_callback, set_ignore_sigint)
13446 (status_callback, resumed_callback, resume_clear_callback)
13447 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13448 data parameter.
13449 (linux_nat_target::detach, linux_nat_target::resume)
13450 (linux_stop_and_wait_all_lwps, select_event_lwp)
13451 (linux_nat_filter_event, linux_nat_wait_1)
13452 (linux_nat_target::kill, linux_nat_target::stop)
13453 (linux_nat_target::stop): Update.
13454 (linux_nat_resume_callback): Change type.
13455 (resume_stopped_resumed_lwps, count_events_callback)
13456 (select_event_lwp_callback): Likewise.
13457 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13458 * arm-linux-nat.c (struct update_registers_data): Remove.
13459 (update_registers_callback): Change type.
13460 (arm_linux_insert_hw_breakpoint1): Update.
13461 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13462 parameter.
13463 (x86_linux_dr_set_addr): Update.
13464 (x86_linux_dr_set_control): Update.
13465 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13466 (iterate_over_lwps): Use gdb::function_view.
13467 * nat/aarch64-linux-hw-point.c (struct
13468 aarch64_dr_update_callback_param): Remove.
13469 (debug_reg_change_callback): Change type.
13470 (aarch64_notify_debug_reg_change): Update.
13471 * s390-linux-nat.c (s390_refresh_per_info): Update.
13472
13473 2019-03-11 Tom Tromey <tromey@adacore.com>
13474
13475 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13476 redundant assignment to "this_cu".
13477
13478 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13479
13480 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13481
13482 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13483
13484 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13485 from...
13486 (rank_one_type): ... this.
13487
13488 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13489
13490 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13491 from...
13492 (rank_one_type): ... this.
13493
13494 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13495
13496 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13497 from...
13498 (rank_one_type): ... this.
13499
13500 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13501
13502 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13503 from...
13504 (rank_one_type): ... this.
13505
13506 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13507
13508 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13509 from...
13510 (rank_one_type): ... this.
13511
13512 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13513
13514 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13515 from...
13516 (rank_one_type): ... this.
13517
13518 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13519
13520 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13521 from...
13522 (rank_one_type): ... this.
13523
13524 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13525
13526 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13527 from...
13528 (rank_one_type): ... this.
13529
13530 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13531
13532 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13533 from...
13534 (rank_one_type): ... this.
13535
13536 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13537
13538 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13539 from...
13540 (rank_one_type): ... this.
13541
13542 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13543
13544 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13545 from...
13546 (rank_one_type): ... this.
13547
13548 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
13549
13550 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13551 from...
13552 (rank_one_type): ... this.
13553
13554 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13555
13556 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13557 inferior-events' shows the example events.
13558
13559 2019-03-08 Eli Zaretskii <eliz@gnu.org>
13560
13561 Support styling on native MS-Windows console
13562
13563 PR/24315
13564 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13565 on MS-Windows if $TERM is not defined.
13566
13567 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13568
13569 * posix-hdep.c (gdb_console_fputs):
13570 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13571 functions.
13572 * ui-file.h (gdb_console_fputs): Add prototype.
13573
13574 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13575 back to fputs only if the former returns zero.
13576
13577 2019-03-07 Tom Tromey <tom@tromey.com>
13578
13579 * symmisc.c (print_symbol_bcache_statistics): Update.
13580 (print_objfile_statistics): Update.
13581 * symfile.c (allocate_symtab): Update.
13582 * stabsread.c: Don't include bcache.h.
13583 * psymtab.h (struct psymbol_bcache): Don't declare.
13584 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13585 (psymbol_bcache_init, psymbol_bcache_free)
13586 (psymbol_bcache_get_bcache): Don't declare.
13587 * psymtab.c (struct psymbol_bcache): Remove.
13588 (psymtab_storage::psymtab_storage): Update.
13589 (psymtab_storage::~psymtab_storage): Update.
13590 (psymbol_bcache_init, psymbol_bcache_free)
13591 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13592 (add_psymbol_to_bcache): Update.
13593 (allocate_psymtab): Update.
13594 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13595 macro_cache>: No longer pointers.
13596 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13597 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13598 * macrotab.c (macro_bcache): Update.
13599 * macroexp.c: Don't include bcache.h.
13600 * gdbtypes.c (check_types_worklist): Update.
13601 (types_deeply_equal): Remove TRY/CATCH. Update.
13602 * elfread.c (elf_symtab_read): Update.
13603 * dwarf2read.c: Don't include bcache.h.
13604 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13605 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13606 (print_bcache_statistics, bcache_memory_used): Don't declare.
13607 (struct bcache): Move from bcache.c. Add constructor, destructor,
13608 methods. Rename all data members.
13609 * bcache.c (struct bcache): Move to bcache.h.
13610 (bcache::expand_hash_table): Rename from expand_hash_table.
13611 (bcache): Remove.
13612 (bcache::insert): Rename from bcache_full.
13613 (bcache::compare): Rename from bcache_compare.
13614 (bcache_xmalloc): Remove.
13615 (bcache::~bcache): Rename from bcache_xfree.
13616 (bcache::print_statistics): Rename from print_bcache_statistics.
13617 (bcache::memory_used): Rename from bcache_memory_used.
13618
13619 2019-03-07 Pedro Alves <palves@redhat.com>
13620
13621 * infrun.c (normal_stop): Also check for
13622 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13623
13624 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13625
13626 * f-lang.c (value_from_host_double): Moved to...
13627 * value.c (value_from_host_double): ...here.
13628 * value.h (value_from_host_double): Declare.
13629 * guile/scm-math.c (vlscm_convert_typed_number): Use
13630 value_from_host_double.
13631 (vlscm_convert_number): Likewise.
13632 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13633 * python/py-value.c (convert_value_from_python): Likewise.
13634
13635 2019-03-06 Tom Tromey <tom@tromey.com>
13636
13637 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13638
13639 2019-03-06 Tom Tromey <tom@tromey.com>
13640
13641 * utils.h (free_current_contents): Don't declare.
13642 * utils.c (free_current_contents): Remove.
13643
13644 2019-03-06 Tom Tromey <tom@tromey.com>
13645
13646 * top.c (quit_force): Update.
13647 * main.c (captured_command_loop): Update.
13648 * common/new-op.c (operator new): Update.
13649 * common/common-exceptions.c (struct catcher)
13650 <save_cleanup_chain>: Remove member.
13651 (exceptions_state_mc_init): Update.
13652 (exception_try_scope_entry): Return nullptr.
13653 (exception_try_scope_exit, exception_rethrow)
13654 (throw_exception_sjlj, throw_exception_cxx): Update.
13655 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13656 (all_cleanups, do_cleanups, discard_cleanups)
13657 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13658 (restore_cleanups, restore_final_cleanups): Don't declare.
13659 (do_final_cleanups): Remove parameter.
13660 * common/cleanups.c (cleanup_chain, make_cleanup)
13661 (make_cleanup_dtor, all_cleanups, do_cleanups)
13662 (discard_my_cleanups, discard_cleanups)
13663 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13664 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13665 (null_cleanup): Remove.
13666 (do_final_cleanups): Remove parameter.
13667
13668 2019-03-06 Tom Tromey <tom@tromey.com>
13669
13670 * remote.c (remote_target::remote_parse_stop_reply): Use
13671 unique_xmalloc_ptr.
13672
13673 2019-03-06 Tom Tromey <tom@tromey.com>
13674
13675 * stabsread.c (struct stabs_field_info): Rename from field_info.
13676 <list, fnlist>: Add initializers.
13677 <obstack>: New member.
13678 (read_member_functions, read_struct_fields, read_baseclasses):
13679 Allocate on obstack. Don't use cleanups.
13680 (read_one_struct_field, read_member_functions, read_struct_fields)
13681 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13682 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13683 (read_struct_type): Update.
13684
13685 2019-03-06 Tom Tromey <tom@tromey.com>
13686
13687 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13688 * common/filestuff.h (make_cleanup_close): Don't declare.
13689 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13690 Remove.
13691
13692 2019-03-06 Tom Tromey <tom@tromey.com>
13693
13694 * solib-aix.c: Use make_scope_exit.
13695
13696 2019-03-06 Tom Tromey <tom@tromey.com>
13697
13698 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13699 Use make_scope_exit.
13700
13701 2019-03-06 Tom Tromey <tom@tromey.com>
13702
13703 * solib-svr4.c (disable_probes_interface): Remove parameter.
13704 (svr4_handle_solib_event): Use make_scope_exit.
13705
13706 2019-03-06 Tom Tromey <tom@tromey.com>
13707
13708 * remote.c (struct stop_reply_deleter): Remove.
13709 (stop_reply_up): Update.
13710 (struct stop_reply): Derive from notif_event. Don't typedef.
13711 <regcache>: Now a std::vector.
13712 (stop_reply_xfree): Remove.
13713 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13714 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13715 (remote_target::discard_pending_stop_replies): Use delete.
13716 (remote_target::remote_parse_stop_reply): Update.
13717 (remote_target::process_stop_reply): Update.
13718 * remote-notif.h (struct notif_event): Add virtual destructor.
13719 Remove "dtr" member.
13720 (struct notif_client) <alloc_event>: Return a unique_ptr.
13721 (notif_event_xfree): Don't declare.
13722 (notif_event_up): New typedef.
13723 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13724 (notif_event_xfree, do_notif_event_xfree): Remove.
13725 (remote_notif_state_xfree): Update.
13726
13727 2019-03-06 Tom Tromey <tom@tromey.com>
13728
13729 * infrun.c (displaced_step_clear_cleanup): Now a
13730 forward_scope_exit type.
13731 (displaced_step_prepare_throw): Update.
13732 (displaced_step_fixup): Update.
13733
13734 2019-03-06 Tom Tromey <tom@tromey.com>
13735
13736 * inferior.h (class inferior): Update comment.
13737 * gdbthread.h (class thread_info): Update comment.
13738
13739 2019-03-06 Joel Brobecker <brobecker@adacore.com>
13740 Tom Tromey <tom@tromey.com>
13741
13742 * stabsread.h (struct stab_section_list): Remove.
13743 (coffstab_build_psymtabs): Update.
13744 * dbxread.c (symbuf_sections): Now a std::vector.
13745 (sect_idx): New global.
13746 (fill_symbuf): Update.
13747 (coffstab_build_psymtabs): Change type of stabsects parameter.
13748 Update.
13749 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13750 std::vector.
13751 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13752 (coff_locate_sections): Update.
13753 (coff_symfile_read): Remove cleanups. Update.
13754 (init_stringtab): Add storage parameter.
13755 (free_stringtab, free_stringtab_cleanup): Remove.
13756 (init_lineno): Add storage parameter.
13757 (free_linetab, free_linetab_cleanup): Remove.
13758
13759 2019-03-06 Pedro Alves <palves@redhat.com>
13760
13761 * linux-fork.c (fork_info::clobber_regs): Delete.
13762 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13763 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13764 comment. Adjust.
13765 (scoped_switch_fork_info::scoped_switch_fork_info)
13766 (checkpoint_command, linux_fork_context): Adjust
13767 fork_save_infrun_state calls.
13768
13769 2019-03-06 Pedro Alves <palves@redhat.com>
13770
13771 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13772 (inf_has_multiple_threads): Return 'bool' and rewrite using
13773 inferior_info::threads().
13774
13775 2019-03-06 Pedro Alves <palves@redhat.com>
13776
13777 * linux-fork.c: Include <list>.
13778 (fork_list): Now a std::list instance.
13779 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13780 (forks_exist_p, find_last_fork): Adjust.
13781 (new_fork): Delete.
13782 (one_fork_p): New.
13783 (add_fork): Adjust.
13784 (free_fork): Delete, folded into fork_info::~fork_info().
13785 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13786 Adjust.
13787 (init_fork_list): Delete.
13788 (linux_fork_killall, linux_fork_mourn_inferior)
13789 (linux_fork_detach, info_checkpoints_command): Adjust.
13790 (_initialize_linux_fork): No longer call init_fork_list.
13791
13792 2019-03-06 Pedro Alves <palves@redhat.com>
13793
13794 * linux-fork.c (new_fork): New, split out of ...
13795 (add_fork): ... this. Return void. Move "first fork" special
13796 case from here, to ...
13797 (checkpoint_command): ... here.
13798 * linux-linux.h (add_fork): Return void.
13799
13800 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13801
13802 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13803
13804 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13805 Chris January <chris.january@arm.com>
13806 David Lecomber <david.lecomber@arm.com>
13807
13808 * f-exp.y: New token, UNOP_INTRINSIC.
13809 (exp): New pattern using UNOP_INTRINSIC token.
13810 (f77_keywords): Add 'abs' keyword.
13811 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13812 (value_from_host_double): New function.
13813 (evaluate_subexp_f): Support UNOP_ABS.
13814
13815 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13816
13817 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13818 types.
13819
13820 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13821
13822 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13823 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13824 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13825
13826 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13827
13828 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13829
13830 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13831 Chris January <chris.january@arm.com>
13832
13833 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13834 * f-exp.y: Define 'KIND' token.
13835 (exp): New pattern for KIND expressions.
13836 (ptype): Handle types with a kind extension.
13837 (direct_abs_decl): Extend to spot kind extensions.
13838 (f77_keywords): Add 'kind' to the list.
13839 (push_kind_type): New function.
13840 (convert_to_kind_type): New function.
13841 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13842 * parse.c (operator_length_standard): Likewise.
13843 * parser-defs.h (enum type_pieces): Add tp_kind.
13844 * std-operator.def: Add UNOP_KIND.
13845
13846 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13847
13848 * f-exp.y (f_parse): Set yydebug.
13849
13850 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13851
13852 * f-lang.c (evaluate_subexp_f): New function.
13853 (exp_descriptor_f): New global.
13854 (f_language_defn): Use exp_descriptor_f instead of
13855 exp_descriptor_standard.
13856
13857 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13858
13859 * f-exp.y (struct token): Add comments.
13860 (dot_ops): Remove uppercase versions and the end marker.
13861 (f77_keywords): Likewise.
13862 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13863 entries in the dot_ops array are case insensitive, and use
13864 strncasecmp to compare strings. Also some whitespace cleanup in
13865 this area. Similar for the f77_keywords array, except entries in
13866 this list might be case sensitive.
13867
13868 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13869
13870 * f-exp.y (struct f77_boolean_val): Add comments.
13871 (boolean_values): Remove uppercase versions, and end marker.
13872 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13873 and use strncasecmp to achieve case insensitivity. Additionally,
13874 perform whitespace cleanup around this code.
13875
13876 2019-03-06 Tom Tromey <tromey@adacore.com>
13877
13878 * remote-sim.c (gdbsim_target_open): Use result of
13879 gdb_argv::release.
13880
13881 2019-03-06 Richard Bunt <richard.bunt@arm.com>
13882 Dirk Schubert <dirk.schubert@arm.com>
13883 Chris January <chris.january@arm.com>
13884
13885 * eval.c (evaluate_subexp_standard): Call Fortran argument
13886 wrapping logic.
13887 * f-lang.c (struct value): A value which can be passed into a
13888 Fortran function call.
13889 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13890 where appropriate.
13891 (struct type): Value ready for a Fortran function call.
13892 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13893 is needed.
13894 * f-lang.h (fortran_argument_convert): Declaration.
13895 (fortran_preserve_arg_pointer): Declaration.
13896 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13897
13898 2019-03-05 Tom Tromey <tromey@adacore.com>
13899
13900 * python/py-prettyprint.c (print_string_repr): Remove #if.
13901 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13902
13903 2019-03-05 Tom Tromey <tromey@adacore.com>
13904
13905 * target.c (the_dummy_target): Move later. Change type to
13906 "dummy_target".
13907 (initialize_targets): Don't initialize the_dummy_target.
13908
13909 2019-03-05 Tom Tromey <tromey@adacore.com>
13910
13911 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13912 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13913
13914 2019-03-05 Tom Tromey <tromey@adacore.com>
13915
13916 * windows-nat.c (windows_nat_target::attach)
13917 (windows_nat_target::detach): Don't call gdb_flush.
13918 * valprint.c (generic_val_print, val_print, val_print_string):
13919 Don't call gdb_flush.
13920 * utils.c (defaulted_query): Don't call gdb_flush.
13921 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13922 * target.c (target_announce_detach): Don't call gdb_flush.
13923 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13924 * remote.c (extended_remote_target::attach): Don't call
13925 gdb_flush.
13926 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13927 * printcmd.c (do_examine): Don't call gdb_flush.
13928 (info_display_command): Don't call gdb_flush.
13929 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13930 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13931 * memattr.c (info_mem_command): Don't call gdb_flush.
13932 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13933 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13934 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13935 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13936 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13937 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13938 (gnu_nat_target::detach): Don't call gdb_flush.
13939 * f-valprint.c (f_val_print): Don't call gdb_flush.
13940 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13941 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13942 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13943 gdb_flush.
13944 * c-valprint.c (c_val_print): Don't call gdb_flush.
13945 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13946
13947 2019-03-05 Tom Tromey <tromey@adacore.com>
13948
13949 * varobj.c (update_dynamic_varobj_children): Update.
13950 (install_default_visualizer): Use reset, not release.
13951 * value.c (set_internalvar): Update.
13952 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13953 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13954 ATTRIBUTE_UNUSED_RESULT.
13955
13956 2019-03-05 Tom Tromey <tromey@adacore.com>
13957
13958 * remote.c (class scoped_remote_fd) <release>: Add
13959 ATTRIBUTE_UNUSED_RESULT.
13960
13961 2019-03-05 Tom Tromey <tromey@adacore.com>
13962
13963 * macroexp.c (struct macro_buffer) <release>: Add
13964 ATTRIBUTE_UNUSED_RESULT.
13965
13966 2019-03-05 Tom Tromey <tromey@adacore.com>
13967
13968 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13969 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13970 ATTRIBUTE_UNUSED_RESULT.
13971
13972 2019-03-05 Tom Tromey <tromey@adacore.com>
13973
13974 * common/scoped_fd.h (class scoped_fd) <release>: Add
13975 ATTRIBUTE_UNUSED_RESULT.
13976
13977 2019-03-05 Tom Tromey <tromey@adacore.com>
13978
13979 * parser-defs.h (struct parser_state) <release>: Add
13980 ATTRIBUTE_UNUSED_RESULT.
13981
13982 2019-03-05 Tom Tromey <tromey@adacore.com>
13983
13984 * utils.h (class gdb_argv) <release>: Add
13985 ATTRIBUTE_UNUSED_RESULT.
13986 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13987
13988 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13989
13990 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13991 for-loop range, to avoid compiler warnings.
13992
13993 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13994 avoid compiler warnings about unused variables.
13995
13996 * NEWS: Mention end of support for native debugging on MS-Windows
13997 before XP.
13998
13999 PR gdb/24292
14000 * common/netstuff.c:
14001 * gdbserver/gdbreplay.c
14002 * gdbserver/remote-utils.c:
14003 * ser-tcp.c:
14004 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14005 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14006 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14007 'getaddrinfo' and 'freeaddrinfo' were not available before
14008 Windows XP, and mingw.org's MinGW headers by default define
14009 _WIN32_WINNT to 0x500.
14010
14011 2019-03-01 Gary Benson <gbenson@redhat.com>
14012
14013 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14014
14015 2019-02-28 Brian Vandenberg <phantall@gmail.com>
14016 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14017
14018 PR gdb/8527
14019 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14020 set_sigint_trap, clear_sigint_trap.
14021
14022 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14023
14024 * target.c (target_detach): Clear the regcache and the
14025 frame cache.
14026
14027 2019-02-27 Pedro Alves <palves@redhat.com>
14028
14029 * utils.c (set_screen_size): When we cap the height/width sizes,
14030 tweak the corresponding command variable to show "unlimited":
14031
14032 2019-02-27 Saagar Jha <saagar@saagarjha.com>
14033 Pedro Alves <palves@redhat.com>
14034
14035 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14036 before calling rl_set_screen_size.
14037
14038 2019-02-27 Tom Tromey <tromey@adacore.com>
14039
14040 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14041 define.
14042 * python/py-value.c: Remove Python 2.4 workaround.
14043 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14044 workaround.
14045 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14046 Python 2.4 workaround.
14047 * python/python-internal.h: Remove Python 2.4 comment.
14048 (Py_ssize_t): Don't define.
14049 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14050 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14051 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14052 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14053 * python/python.c (do_start_initialization): Remove Python 2.4
14054 workaround.
14055 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14056 (print_children): Remove Python 2.4 workaround.
14057 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14058 workaround.
14059 (CHARBUFFERPROC_NAME): Remove.
14060 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14061 Python 2.4 workaround.
14062
14063 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14064
14065 * NEWS: Note minimum Python version.
14066
14067 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14068
14069 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14070 code from these functions. Remove corresponding ifdefs. Use
14071 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14072 Remove gotos and target of gotos.
14073 (infpy_search_memory): Likewise.
14074
14075 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14076
14077 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14078 (hppa_gdbarch_init): Don't register deleted functions with
14079 gdbarch.
14080
14081 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14082
14083 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14084 (h8300_unwind_sp): Delete.
14085 (h8300_dummy_id): Delete.
14086 (h8300_gdbarch_init): Don't register deleted functions with
14087 gdbarch.
14088
14089 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14090
14091 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14092 (ft32_unwind_pc): Delete.
14093 (ft32_unwind_sp): Delete.
14094 (ft32_gdbarch_init): Don't register deleted functions with
14095 gdbarch.
14096
14097 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14098
14099 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14100 (frv_unwind_pc): Delete.
14101 (frv_unwind_sp): Delete.
14102 (frv_gdbarch_init): Don't register deleted functions with
14103 gdbarch.
14104
14105 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14106
14107 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14108 (riscv_unwind_pc): Delete.
14109 (riscv_unwind_sp): Delete.
14110 (riscv_gdbarch_init): Don't register deleted functions with
14111 gdbarch.
14112
14113 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14114
14115 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14116 (csky_unwind_pc): Delete.
14117 (csky_unwind_sp): Delete.
14118 (csky_gdbarch_init): Don't register deleted functions with
14119 gdbarch.
14120
14121 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14122
14123 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14124 (cris_unwind_pc): Delete.
14125 (cris_unwind_sp): Delete.
14126 (cris_gdbarch_init): Don't register deleted functions with
14127 gdbarch.
14128
14129 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14130
14131 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14132 (bfin_unwind_pc): Delete.
14133 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14134
14135 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14136
14137 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14138 (arm_unwind_pc): Delete.
14139 (arm_unwind_sp): Delete.
14140 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14141
14142 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14143
14144 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14145 (arc_unwind_pc): Delete.
14146 (arc_unwind_sp): Delete.
14147 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14148
14149 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14150
14151 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14152 (alpha_unwind_pc): Delete.
14153 (alpha_gdbarch_init): Don't register deleted functions with
14154 gdbarch.
14155
14156 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14157
14158 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14159 (aarch64_unwind_pc): Delete.
14160 (aarch64_unwind_sp): Delete.
14161 (aarch64_gdbarch_init): Don't register deleted functions with
14162 gdbarch.
14163
14164 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14165
14166 * gdbtypes.c (type_align): Don't consider static members when
14167 computing structure alignment.
14168
14169 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14170
14171 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14172 return 0 for other types.
14173 * arch-utils.c (default_type_align): Always return 0.
14174 * gdbarch.h: Regenerate.
14175 * gdbarch.sh (type_align): Extend comment.
14176 * gdbtypes.c (type_align): Add additional comments, always call
14177 gdbarch_type_align before applying the default rules.
14178 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14179 generic code will then apply a suitable default.
14180 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14181 types, return 0 for other types.
14182
14183 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14184
14185 * NEWS: Create a new section for the next release branch.
14186 Rename the section of the current branch, now that it has
14187 been cut.
14188
14189 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14190
14191 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14192 * version.in: Bump version to 8.3.50.DATE-git.
14193
14194 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14195
14196 * aix-thread.c (ptid_cmp): Remove unused variable.
14197 (get_signaled_thread): Likewise.
14198 (store_regs_user_thread): Likewise.
14199 (store_regs_kernel_thread): Likewise.
14200 (fetch_regs_kernel_thread): Remove shadowed variable.
14201
14202 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14203
14204 * features/riscv/32bit-cpu.xml: Add register numbers.
14205 * features/riscv/32bit-fpu.c: Regenerate.
14206 * features/riscv/32bit-fpu.xml: Add register numbers.
14207 * features/riscv/64bit-cpu.xml: Add register numbers.
14208 * features/riscv/64bit-fpu.c: Regenerate.
14209 * features/riscv/64bit-fpu.xml: Add register numbers.
14210
14211 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14212
14213 * NEWS: Mention two argument form of gdb.Value constructor.
14214 * python/py-value.c (convert_buffer_and_type_to_value): New
14215 function.
14216 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14217 Add support for handling an optional second argument. Call
14218 convert_buffer_and_type_to_value as appropriate.
14219 * python/python-internal.h (Py_buffer_deleter): New struct.
14220 (Py_buffer_up): New typedef.
14221
14222 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14223
14224 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14225 instead of releasing ownership.
14226
14227 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14228
14229 * dwarf2read.c (open_and_init_dwp_file): Call
14230 elf_numsections instead of bfd_count_sections to initialize
14231 dwp_file->num_sections.
14232
14233 2019-02-25 Tom Tromey <tromey@adacore.com>
14234
14235 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14236
14237 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14238
14239 * gcore.in: Add '--readnever' option when invoking GDB.
14240
14241 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14242
14243 * MAINTAINERS: Update my email address.
14244
14245 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14246
14247 * build-id.c (build_id_to_debug_bfd_1): New function.
14248 (build_id_to_debug_bfd): Look for separate debug file in
14249 sysroot.
14250
14251 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14252
14253 * gdbarch.sh: Update the copyright year range that is placed into
14254 generated files.
14255
14256 2019-02-22 Keith Seitz <keiths@redhat.com>
14257
14258 PR symtab/23853
14259 * linespec.c (create_sals_line_offset): Search for the default
14260 symtab's filename instead of its fullname.
14261
14262 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14263
14264 * NEWS: Update style defaults.
14265
14266 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14267
14268 * main.c (captured_main_1): Disable styling in batch mode.
14269
14270 2019-02-20 Tom Tromey <tom@tromey.com>
14271
14272 * symtab.c (symtab_symbol_info): Fix typos.
14273
14274 2019-02-20 Tom Tromey <tromey@adacore.com>
14275
14276 * findcmd.c (_initialize_mem_search): Use upper case for
14277 metasyntactic variables.
14278
14279 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14280
14281 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14282 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14283
14284 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14285
14286 * top.h (source_file_name): Change to std::string.
14287 * top.c (source_file_name): Likewise.
14288 (command_line_input): Adjust.
14289 * cli/cli-script.c (script_from_file): Adjust.
14290
14291 2019-02-19 Tom Tromey <tromey@adacore.com>
14292
14293 * ravenscar-thread.c
14294 (ravenscar_thread_target::update_thread_list): Don't call
14295 ada_build_task_list.
14296 * ada-lang.h (ada_build_task_list): Don't declare.
14297 * ada-tasks.c (struct ada_tasks_inferior_data)
14298 <task_list_valid_p>: Now bool.
14299 (read_known_tasks, ada_task_list_changed)
14300 (ada_tasks_invalidate_inferior_data): Update.
14301 (read_known_tasks_array): Return bool.
14302 (read_known_tasks_list): Likewise.
14303 (read_known_tasks): Return void.
14304 (ada_build_task_list): Now static.
14305
14306 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14307
14308 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14309 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14310
14311 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14312
14313 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14314 variant for ada_tasks_pspace_data_handle and
14315 ada_tasks_inferior_data_handle.
14316 (ada_tasks_pspace_data_cleanup): New function.
14317 (ada_tasks_inferior_data_cleanup): New function.
14318
14319 2019-02-17 Tom Tromey <tom@tromey.com>
14320
14321 * macrotab.h (macro_source_fullname): Return a std::string.
14322 * macrotab.c (macro_include, check_for_redefinition)
14323 (macro_undef, macro_lookup_definition, foreach_macro)
14324 (foreach_macro_in_scope): Update.
14325 (macro_source_fullname): Return a std::string.
14326 * macrocmd.c (show_pp_source_pos): Update.
14327
14328 2019-02-17 Tom Tromey <tom@tromey.com>
14329
14330 * macrocmd.c (show_pp_source_pos): Style the file names.
14331
14332 2019-02-17 Tom Tromey <tom@tromey.com>
14333
14334 PR tui/24197:
14335 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14336
14337 2019-02-17 Tom Tromey <tom@tromey.com>
14338
14339 * ada-lang.c (user_select_syms): Use filtered printing.
14340 * utils.c (wrap_style): New global.
14341 (desired_style): Remove.
14342 (emit_style_escape): Add stream parameter.
14343 (set_output_style, reset_terminal_style, prompt_for_continue):
14344 Update.
14345 (flush_wrap_buffer): Only flush gdb_stdout.
14346 (wrap_here): Set wrap_style.
14347 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14348 treat escape sequences as a character. Change when wrap buffer is
14349 flushed.
14350 (fputs_styled): Do not set the output style when the default is
14351 requested.
14352 * ui-style.h (struct ui_file_style) <is_default>: New method.
14353 * source.c (print_source_lines_base): Emit escape sequences in one
14354 piece.
14355
14356 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14357
14358 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14359 integers and enumeration types.
14360
14361 2019-02-17 Joel Brobecker <brobecker@adacore.com>
14362
14363 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14364 instead of lookup_symbol_in_language
14365 (do_exact_match): New function.
14366 (ada_get_symbol_name_matcher): Return do_exact_match when
14367 doing a verbatim match.
14368
14369 2019-02-15 Tom Tromey <tromey@adacore.com>
14370
14371 * ravenscar-thread.c (ravenscar_thread_target::resume)
14372 (ravenscar_thread_target::wait): Special case wildcard requests.
14373
14374 2019-02-15 Tom Tromey <tromey@adacore.com>
14375
14376 * ravenscar-thread.c (base_ptid): Remove.
14377 (struct ravenscar_thread_target) <close>: New method.
14378 <m_base_ptid>: New member.
14379 <update_inferior_ptid, active_task, task_is_currently_active,
14380 runtime_initialized>: Declare methods.
14381 <ravenscar_thread_target>: Add constructor.
14382 (ravenscar_thread_target::task_is_currently_active)
14383 (ravenscar_thread_target::update_inferior_ptid)
14384 (ravenscar_runtime_initialized): Rename. Now methods.
14385 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14386 (ravenscar_thread_target::update_thread_list): Update.
14387 (ravenscar_thread_target::active_task): Now method.
14388 (ravenscar_thread_target::store_registers)
14389 (ravenscar_thread_target::prepare_to_store)
14390 (ravenscar_thread_target::prepare_to_store)
14391 (ravenscar_thread_target::mourn_inferior): Update.
14392 (ravenscar_inferior_created): Use "new" to create target.
14393 (ravenscar_thread_target::get_ada_task_ptid): Update.
14394 (_initialize_ravenscar): Don't initialize base_ptid.
14395 (ravenscar_ops): Remove global.
14396
14397 2019-02-15 Tom Tromey <tromey@adacore.com>
14398
14399 * target.h (push_target): Declare new overload.
14400 * target.c (push_target): New overload, taking an rvalue reference.
14401 * remote.c (remote_target::open_1): Use push_target overload.
14402 * corelow.c (core_target_open): Use push_target overload.
14403
14404 2019-02-15 Tom Tromey <tromey@adacore.com>
14405
14406 * ravenscar-thread.c (is_ravenscar_task)
14407 (ravenscar_task_is_currently_active): Return bool.
14408 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14409 (_initialize_ravenscar): Remove "(void)".
14410 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14411 Return bool.
14412
14413 2019-02-15 Tom Tromey <tromey@adacore.com>
14414
14415 * ravenscar-thread.c (ravenscar_runtime_initializer)
14416 (has_ravenscar_runtime, get_running_thread_id)
14417 (ravenscar_thread_target::resume): Fix indentation.
14418
14419 2019-02-15 Tom Tromey <tromey@adacore.com>
14420
14421 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14422 from ravenscar_arch_ops.
14423 (sparc_ravenscar_ops::fetch_registers)
14424 (sparc_ravenscar_ops::store_registers): Now methods.
14425 (sparc_ravenscar_prepare_to_store): Remove.
14426 (sparc_ravenscar_ops): Redefine.
14427 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14428 methods and destructor. Remove members.
14429 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14430 (ravenscar_thread_target::store_registers)
14431 (ravenscar_thread_target::prepare_to_store): Update.
14432 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14433 Remove.
14434 (struct ppc_ravenscar_powerpc_ops): Derive from
14435 ravenscar_arch_ops.
14436 (ppc_ravenscar_powerpc_ops::fetch_registers)
14437 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14438 (ppc_ravenscar_powerpc_ops): Redefine.
14439 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14440 (ppc_ravenscar_e500_ops::fetch_registers)
14441 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14442 (ppc_ravenscar_e500_ops): Redefine.
14443 * aarch64-ravenscar-thread.c
14444 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14445 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14446 (aarch64_ravenscar_fetch_registers)
14447 (aarch64_ravenscar_store_registers): Now methods.
14448 (aarch64_ravenscar_ops): Redefine.
14449
14450 2019-02-15 Tom Tromey <tromey@adacore.com>
14451
14452 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14453 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14454 (ravenscar_thread_target::stopped_by_watchpoint)
14455 (ravenscar_thread_target::stopped_data_address)
14456 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14457
14458 2019-02-15 Tom Tromey <tromey@adacore.com>
14459
14460 * ravenscar-thread.c: Fix some typos.
14461
14462 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14463 Tom Tromey <tromey@adacore.com>
14464
14465 * ada-lang.c (ada_exception_sal): Change addr_string to a
14466 std::string.
14467 (create_ada_exception_catchpoint): Update.
14468
14469 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14470 Tom Tromey <tromey@adacore.com>
14471
14472 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14473 (bp_location_ops): Remove.
14474 (base_breakpoint_allocate_location): Update.
14475 (free_bp_location): Update.
14476 * ada-lang.c (class ada_catchpoint_location)
14477 <ada_catchpoint_location>: Remove ops parameter.
14478 (ada_catchpoint_location_dtor): Remove.
14479 (ada_catchpoint_location_ops): Remove.
14480 (allocate_location_exception): Update.
14481 * breakpoint.h (struct bp_location_ops): Remove.
14482 (class bp_location) <bp_location>: Remove bp_location_ops
14483 parameter.
14484 <~bp_location>: Add destructor.
14485 <ops>: Remove.
14486
14487 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14488 Pedro Alves <palves@redhat.com>
14489
14490 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14491 'PATH_MAX'.
14492
14493 2019-02-14 David Michael <fedora.dm0@gmail.com>
14494 Samuel Thibault <samuel.thibault@gnu.org>
14495 Thomas Schwinge <thomas@codesourcery.com>
14496
14497 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14498 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14499
14500 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14501
14502 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14503 (check_empty): Use "const char *".
14504
14505 * gnu-nat.c (gnu_nat_target::detach): Instead of
14506 'detach_inferior (pid)' call
14507 'detach_inferior (find_inferior_pid (pid))'.
14508
14509 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14510 'nat/fork-inferior.o'.
14511 * gnu-nat.c: #include "nat/fork-inferior.h".
14512
14513 * gnu-nat.c (gnu_nat_target::detach): Instead of
14514 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14515 * gnu-nat.h: #include "inf-child.h".
14516 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14517 'i386_gnu_nat_target::fetch_registers'.
14518 (gnu_store_registers): Rename/move to
14519 'i386_gnu_nat_target::store_registers'.
14520
14521 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14522 * gnu-nat.h (mach_thread_info): New function.
14523 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14524
14525 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14526
14527 2019-02-14 Frederic Konrad <konrad@adacore.com>
14528
14529 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14530
14531 2019-02-14 Joel Brobecker <brobecker@adacore.com>
14532
14533 * windows-nat.c (windows_add_thread): Add new parameter
14534 "main_thread_p" with default value set to false. Update
14535 function documentation as well as all callers.
14536 (windows_delete_thread): Likewise.
14537 (fake_create_process): Update call to windows_add_thread.
14538 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14539 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14540 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14541 call to windows_delete_thread.
14542
14543 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14544
14545 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14546
14547 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14548
14549 * symfile.c (find_separate_debug_file): Use canonical path of
14550 sysroot with child_path instead of gdb_sysroot if it is valid.
14551
14552 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14553
14554 * symfile.c (find_separate_debug_file): Use child_path to
14555 determine if an object file is under a sysroot.
14556
14557 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14558
14559 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14560 unittests/child-path-selftests.c.
14561 * common/pathstuff.c (child_path): New function.
14562 * common/pathstuff.h (child_path): New prototype.
14563 * unittests/child-path-selftests.c: New file.
14564
14565 2019-02-12 John Baldwin <jhb@FreeBSD.org>
14566
14567 * symfile.c (find_separate_debug_file): Look for separate debug
14568 files in debug directories under the sysroot.
14569
14570 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14571
14572 * symtab.h (struct minimal_symbol data_p): New const method.
14573 (struct minimal_symbol text_p): Likewise.
14574 * symtab.c (output_source_filename): Use file name style
14575 to print file name.
14576 (print_symbol_info): Likewise.
14577 (print_msymbol_info): Use address style to print addresses.
14578 Use function name style to print executable text symbols.
14579 (expand_symtab_containing_pc): Use data_p.
14580 (find_pc_sect_compunit_symtab): Likewise.
14581
14582 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14583
14584 * breakpoint.c (describe_other_breakpoints): Use address style
14585 to print addresses.
14586 (say_where): Likewise.
14587
14588 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14589
14590 * ada-typeprint.c (print_func_type): Print function name
14591 style to print function name.
14592 * c-typeprint.c (c_print_type_1): Likewise.
14593
14594 2019-02-11 Alan Hayward <alan.hayward@arm.com>
14595
14596 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14597 for execve.
14598
14599 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14600
14601 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14602 type_stack.
14603
14604 2019-02-10 Joel Brobecker <brobecker@adacore.com>
14605
14606 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14607 TYPE_CODE_REF types.
14608
14609 2019-02-08 Jim Wilson <jimw@sifive.com>
14610
14611 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14612 (riscv_linux_fregset): New.
14613 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14614
14615 2019-02-07 Tom Tromey <tom@tromey.com>
14616
14617 * thread.c (thread_cancel_execution_command): Update.
14618 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14619 methods.
14620 (struct thread_fsm_ops): Remove.
14621 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14622 (thread_fsm_should_stop, thread_fsm_return_value)
14623 (thread_fsm_set_finished, thread_fsm_finished_p)
14624 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14625 Don't declare.
14626 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14627 * infrun.c (clear_proceed_status_thread)
14628 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14629 (print_stop_event): Update.
14630 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14631 Add constructor.
14632 (step_command_fsm_ops): Remove.
14633 (new_step_command_fsm): Remove.
14634 (step_1): Update.
14635 (step_command_fsm::should_stop): Rename from
14636 step_command_fsm_should_stop.
14637 (step_command_fsm::clean_up): Rename from
14638 step_command_fsm_clean_up.
14639 (step_command_fsm::do_async_reply_reason): Rename from
14640 step_command_fsm_async_reply_reason.
14641 (struct until_next_fsm): Inherit from thread_fsm. Add
14642 constructor.
14643 (until_next_fsm_ops): Remove.
14644 (new_until_next_fsm): Remove.
14645 (until_next_fsm::should_stop): Rename from
14646 until_next_fsm_should_stop.
14647 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14648 (until_next_fsm::do_async_reply_reason): Rename from
14649 until_next_fsm_async_reply_reason.
14650 (struct finish_command_fsm): Inherit from thread_fsm. Add
14651 constructor. Change type of breakpoint.
14652 (finish_command_fsm_ops): Remove.
14653 (new_finish_command_fsm): Remove.
14654 (finish_command_fsm::should_stop): Rename from
14655 finish_command_fsm_should_stop.
14656 (finish_command_fsm::clean_up): Rename from
14657 finish_command_fsm_clean_up.
14658 (finish_command_fsm::return_value): Rename from
14659 finish_command_fsm_return_value.
14660 (finish_command_fsm::do_async_reply_reason): Rename from
14661 finish_command_fsm_async_reply_reason.
14662 (finish_command): Update.
14663 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14664 Add constructor.
14665 (call_thread_fsm_ops): Remove.
14666 (call_thread_fsm::call_thread_fsm): Rename from
14667 new_call_thread_fsm.
14668 (call_thread_fsm::should_stop): Rename from
14669 call_thread_fsm_should_stop.
14670 (call_thread_fsm::should_notify_stop): Rename from
14671 call_thread_fsm_should_notify_stop.
14672 (run_inferior_call, call_function_by_hand_dummy): Update.
14673 * cli/cli-interp.c (should_print_stop_to_console): Update.
14674 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14675 Add constructor. Change type of location_breakpoint,
14676 caller_breakpoint.
14677 (until_break_fsm_ops): Remove.
14678 (new_until_break_fsm): Remove.
14679 (until_break_fsm::should_stop): Rename from
14680 until_break_fsm_should_stop.
14681 (until_break_fsm::clean_up): Rename from
14682 until_break_fsm_clean_up.
14683 (until_break_fsm::do_async_reply_reason): Rename from
14684 until_break_fsm_async_reply_reason.
14685 (until_break_command): Update.
14686 * thread-fsm.c: Remove.
14687 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14688
14689 2019-02-07 Tom Tromey <tom@tromey.com>
14690
14691 * yy-remap.h: Add include guard.
14692 * xtensa-tdep.h: Add include guard.
14693 * xcoffread.h: Rename include guard.
14694 * varobj-iter.h: Add include guard.
14695 * tui/tui.h: Rename include guard.
14696 * tui/tui-winsource.h: Rename include guard.
14697 * tui/tui-wingeneral.h: Rename include guard.
14698 * tui/tui-windata.h: Rename include guard.
14699 * tui/tui-win.h: Rename include guard.
14700 * tui/tui-stack.h: Rename include guard.
14701 * tui/tui-source.h: Rename include guard.
14702 * tui/tui-regs.h: Rename include guard.
14703 * tui/tui-out.h: Rename include guard.
14704 * tui/tui-layout.h: Rename include guard.
14705 * tui/tui-io.h: Rename include guard.
14706 * tui/tui-hooks.h: Rename include guard.
14707 * tui/tui-file.h: Rename include guard.
14708 * tui/tui-disasm.h: Rename include guard.
14709 * tui/tui-data.h: Rename include guard.
14710 * tui/tui-command.h: Rename include guard.
14711 * tic6x-tdep.h: Add include guard.
14712 * target/waitstatus.h: Rename include guard.
14713 * target/wait.h: Rename include guard.
14714 * target/target.h: Rename include guard.
14715 * target/resume.h: Rename include guard.
14716 * target-float.h: Rename include guard.
14717 * stabsread.h: Add include guard.
14718 * rs6000-tdep.h: Add include guard.
14719 * riscv-fbsd-tdep.h: Add include guard.
14720 * regformats/regdef.h: Rename include guard.
14721 * record.h: Rename include guard.
14722 * python/python.h: Rename include guard.
14723 * python/python-internal.h: Rename include guard.
14724 * python/py-stopevent.h: Rename include guard.
14725 * python/py-ref.h: Rename include guard.
14726 * python/py-record.h: Rename include guard.
14727 * python/py-record-full.h: Rename include guard.
14728 * python/py-record-btrace.h: Rename include guard.
14729 * python/py-instruction.h: Rename include guard.
14730 * python/py-events.h: Rename include guard.
14731 * python/py-event.h: Rename include guard.
14732 * procfs.h: Add include guard.
14733 * proc-utils.h: Add include guard.
14734 * p-lang.h: Add include guard.
14735 * or1k-tdep.h: Rename include guard.
14736 * observable.h: Rename include guard.
14737 * nto-tdep.h: Rename include guard.
14738 * nat/x86-linux.h: Rename include guard.
14739 * nat/x86-linux-dregs.h: Rename include guard.
14740 * nat/x86-gcc-cpuid.h: Add include guard.
14741 * nat/x86-dregs.h: Rename include guard.
14742 * nat/x86-cpuid.h: Rename include guard.
14743 * nat/ppc-linux.h: Rename include guard.
14744 * nat/mips-linux-watch.h: Rename include guard.
14745 * nat/linux-waitpid.h: Rename include guard.
14746 * nat/linux-ptrace.h: Rename include guard.
14747 * nat/linux-procfs.h: Rename include guard.
14748 * nat/linux-osdata.h: Rename include guard.
14749 * nat/linux-nat.h: Rename include guard.
14750 * nat/linux-namespaces.h: Rename include guard.
14751 * nat/linux-btrace.h: Rename include guard.
14752 * nat/glibc_thread_db.h: Rename include guard.
14753 * nat/gdb_thread_db.h: Rename include guard.
14754 * nat/gdb_ptrace.h: Rename include guard.
14755 * nat/fork-inferior.h: Rename include guard.
14756 * nat/amd64-linux-siginfo.h: Rename include guard.
14757 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14758 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14759 * nat/aarch64-linux.h: Rename include guard.
14760 * nat/aarch64-linux-hw-point.h: Rename include guard.
14761 * mn10300-tdep.h: Add include guard.
14762 * mips-linux-tdep.h: Add include guard.
14763 * mi/mi-parse.h: Rename include guard.
14764 * mi/mi-out.h: Rename include guard.
14765 * mi/mi-main.h: Rename include guard.
14766 * mi/mi-interp.h: Rename include guard.
14767 * mi/mi-getopt.h: Rename include guard.
14768 * mi/mi-console.h: Rename include guard.
14769 * mi/mi-common.h: Rename include guard.
14770 * mi/mi-cmds.h: Rename include guard.
14771 * mi/mi-cmd-break.h: Rename include guard.
14772 * m2-lang.h: Add include guard.
14773 * location.h: Rename include guard.
14774 * linux-record.h: Rename include guard.
14775 * linux-nat.h: Add include guard.
14776 * linux-fork.h: Add include guard.
14777 * i386-darwin-tdep.h: Rename include guard.
14778 * hppa-linux-offsets.h: Add include guard.
14779 * guile/guile.h: Rename include guard.
14780 * guile/guile-internal.h: Rename include guard.
14781 * gnu-nat.h: Rename include guard.
14782 * gdb-stabs.h: Rename include guard.
14783 * frv-tdep.h: Add include guard.
14784 * f-lang.h: Add include guard.
14785 * event-loop.h: Add include guard.
14786 * darwin-nat.h: Rename include guard.
14787 * cp-abi.h: Rename include guard.
14788 * config/sparc/nm-sol2.h: Rename include guard.
14789 * config/nm-nto.h: Rename include guard.
14790 * config/nm-linux.h: Add include guard.
14791 * config/i386/nm-i386gnu.h: Rename include guard.
14792 * config/djgpp/nl_types.h: Rename include guard.
14793 * config/djgpp/langinfo.h: Rename include guard.
14794 * compile/gcc-cp-plugin.h: Add include guard.
14795 * compile/gcc-c-plugin.h: Add include guard.
14796 * compile/compile.h: Rename include guard.
14797 * compile/compile-object-run.h: Rename include guard.
14798 * compile/compile-object-load.h: Rename include guard.
14799 * compile/compile-internal.h: Rename include guard.
14800 * compile/compile-cplus.h: Rename include guard.
14801 * compile/compile-c.h: Rename include guard.
14802 * common/xml-utils.h: Rename include guard.
14803 * common/x86-xstate.h: Rename include guard.
14804 * common/version.h: Rename include guard.
14805 * common/vec.h: Rename include guard.
14806 * common/tdesc.h: Rename include guard.
14807 * common/selftest.h: Rename include guard.
14808 * common/scoped_restore.h: Rename include guard.
14809 * common/scoped_mmap.h: Rename include guard.
14810 * common/scoped_fd.h: Rename include guard.
14811 * common/safe-iterator.h: Rename include guard.
14812 * common/run-time-clock.h: Rename include guard.
14813 * common/refcounted-object.h: Rename include guard.
14814 * common/queue.h: Rename include guard.
14815 * common/ptid.h: Rename include guard.
14816 * common/print-utils.h: Rename include guard.
14817 * common/preprocessor.h: Rename include guard.
14818 * common/pathstuff.h: Rename include guard.
14819 * common/observable.h: Rename include guard.
14820 * common/netstuff.h: Rename include guard.
14821 * common/job-control.h: Rename include guard.
14822 * common/host-defs.h: Rename include guard.
14823 * common/gdb_wait.h: Rename include guard.
14824 * common/gdb_vecs.h: Rename include guard.
14825 * common/gdb_unlinker.h: Rename include guard.
14826 * common/gdb_unique_ptr.h: Rename include guard.
14827 * common/gdb_tilde_expand.h: Rename include guard.
14828 * common/gdb_sys_time.h: Rename include guard.
14829 * common/gdb_string_view.h: Rename include guard.
14830 * common/gdb_splay_tree.h: Rename include guard.
14831 * common/gdb_setjmp.h: Rename include guard.
14832 * common/gdb_ref_ptr.h: Rename include guard.
14833 * common/gdb_optional.h: Rename include guard.
14834 * common/gdb_locale.h: Rename include guard.
14835 * common/gdb_assert.h: Rename include guard.
14836 * common/filtered-iterator.h: Rename include guard.
14837 * common/filestuff.h: Rename include guard.
14838 * common/fileio.h: Rename include guard.
14839 * common/environ.h: Rename include guard.
14840 * common/common-utils.h: Rename include guard.
14841 * common/common-types.h: Rename include guard.
14842 * common/common-regcache.h: Rename include guard.
14843 * common/common-inferior.h: Rename include guard.
14844 * common/common-gdbthread.h: Rename include guard.
14845 * common/common-exceptions.h: Rename include guard.
14846 * common/common-defs.h: Rename include guard.
14847 * common/common-debug.h: Rename include guard.
14848 * common/cleanups.h: Rename include guard.
14849 * common/buffer.h: Rename include guard.
14850 * common/btrace-common.h: Rename include guard.
14851 * common/break-common.h: Rename include guard.
14852 * cli/cli-utils.h: Rename include guard.
14853 * cli/cli-style.h: Rename include guard.
14854 * cli/cli-setshow.h: Rename include guard.
14855 * cli/cli-script.h: Rename include guard.
14856 * cli/cli-interp.h: Rename include guard.
14857 * cli/cli-decode.h: Rename include guard.
14858 * cli/cli-cmds.h: Rename include guard.
14859 * charset-list.h: Add include guard.
14860 * buildsym-legacy.h: Rename include guard.
14861 * bfin-tdep.h: Add include guard.
14862 * ax.h: Rename include guard.
14863 * arm-linux-tdep.h: Add include guard.
14864 * arm-fbsd-tdep.h: Add include guard.
14865 * arch/xtensa.h: Rename include guard.
14866 * arch/tic6x.h: Add include guard.
14867 * arch/i386.h: Add include guard.
14868 * arch/arm.h: Rename include guard.
14869 * arch/arm-linux.h: Rename include guard.
14870 * arch/arm-get-next-pcs.h: Rename include guard.
14871 * arch/amd64.h: Add include guard.
14872 * arch/aarch64-insn.h: Rename include guard.
14873 * arch-utils.h: Rename include guard.
14874 * annotate.h: Add include guard.
14875 * amd64-darwin-tdep.h: Rename include guard.
14876 * aarch64-linux-tdep.h: Add include guard.
14877 * aarch64-fbsd-tdep.h: Add include guard.
14878 * aarch32-linux-nat.h: Add include guard.
14879
14880 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14881
14882 * macrotab.c (macro_define_internal): New function that
14883 factorizes macro_define_object_internal and macro_define_function
14884 code.
14885 (macro_define_object_internal): Use macro_define_internal.
14886 (macro_define_function): Likewise.
14887
14888 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14889
14890 * macrocmd.c (extract_identifier): Return
14891 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14892 callers.
14893
14894 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14895
14896 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14897
14898 2019-02-05 Tom Tromey <tom@tromey.com>
14899
14900 * target.c (target_stack::unpush): Move assertion earlier.
14901
14902 2019-01-30 Tom Tromey <tom@tromey.com>
14903
14904 PR python/23615:
14905 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14906 (gdbpy_parse_and_eval): Likewise.
14907 * python/python-internal.h (gdbpy_allow_threads): New class.
14908
14909 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14910
14911 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14912 (aarch64_fbsd_fpregmap): Move earlier.
14913 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14914 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14915 instead of individual calls to trad_frame_set_reg_addr.
14916 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14917 earlier.
14918 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14919 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14920 instead of individual calls to trad_frame_set_reg_addr.
14921
14922 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14923
14924 * CONTRIBUTE: Replace contribution list with wiki link.
14925
14926 2019-01-25 Tom Tromey <tom@tromey.com>
14927
14928 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14929
14930 2019-01-25 Tom Tromey <tom@tromey.com>
14931
14932 * xtensa-linux-nat.c: Fix common/ includes.
14933 * xml-support.h: Fix common/ includes.
14934 * xml-support.c: Fix common/ includes.
14935 * x86-linux-nat.c: Fix common/ includes.
14936 * windows-nat.c: Fix common/ includes.
14937 * varobj.h: Fix common/ includes.
14938 * varobj.c: Fix common/ includes.
14939 * value.c: Fix common/ includes.
14940 * valops.c: Fix common/ includes.
14941 * utils.c: Fix common/ includes.
14942 * unittests/xml-utils-selftests.c: Fix common/ includes.
14943 * unittests/utils-selftests.c: Fix common/ includes.
14944 * unittests/unpack-selftests.c: Fix common/ includes.
14945 * unittests/tracepoint-selftests.c: Fix common/ includes.
14946 * unittests/style-selftests.c: Fix common/ includes.
14947 * unittests/string_view-selftests.c: Fix common/ includes.
14948 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14949 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14950 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14951 * unittests/rsp-low-selftests.c: Fix common/ includes.
14952 * unittests/parse-connection-spec-selftests.c: Fix common/
14953 includes.
14954 * unittests/optional-selftests.c: Fix common/ includes.
14955 * unittests/offset-type-selftests.c: Fix common/ includes.
14956 * unittests/observable-selftests.c: Fix common/ includes.
14957 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14958 * unittests/memrange-selftests.c: Fix common/ includes.
14959 * unittests/memory-map-selftests.c: Fix common/ includes.
14960 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14961 * unittests/function-view-selftests.c: Fix common/ includes.
14962 * unittests/environ-selftests.c: Fix common/ includes.
14963 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14964 * unittests/common-utils-selftests.c: Fix common/ includes.
14965 * unittests/cli-utils-selftests.c: Fix common/ includes.
14966 * unittests/array-view-selftests.c: Fix common/ includes.
14967 * ui-file.c: Fix common/ includes.
14968 * tui/tui-io.c: Fix common/ includes.
14969 * tracepoint.h: Fix common/ includes.
14970 * tracepoint.c: Fix common/ includes.
14971 * tracefile-tfile.c: Fix common/ includes.
14972 * top.h: Fix common/ includes.
14973 * top.c: Fix common/ includes.
14974 * thread.c: Fix common/ includes.
14975 * target/waitstatus.h: Fix common/ includes.
14976 * target/waitstatus.c: Fix common/ includes.
14977 * target.h: Fix common/ includes.
14978 * target.c: Fix common/ includes.
14979 * target-memory.c: Fix common/ includes.
14980 * target-descriptions.c: Fix common/ includes.
14981 * symtab.h: Fix common/ includes.
14982 * symfile.c: Fix common/ includes.
14983 * stap-probe.c: Fix common/ includes.
14984 * spu-linux-nat.c: Fix common/ includes.
14985 * sparc-nat.c: Fix common/ includes.
14986 * source.c: Fix common/ includes.
14987 * solib.c: Fix common/ includes.
14988 * solib-target.c: Fix common/ includes.
14989 * ser-unix.c: Fix common/ includes.
14990 * ser-tcp.c: Fix common/ includes.
14991 * ser-pipe.c: Fix common/ includes.
14992 * ser-base.c: Fix common/ includes.
14993 * selftest-arch.c: Fix common/ includes.
14994 * s12z-tdep.c: Fix common/ includes.
14995 * rust-exp.y: Fix common/ includes.
14996 * rs6000-aix-tdep.c: Fix common/ includes.
14997 * riscv-tdep.c: Fix common/ includes.
14998 * remote.c: Fix common/ includes.
14999 * remote-notif.h: Fix common/ includes.
15000 * remote-fileio.h: Fix common/ includes.
15001 * remote-fileio.c: Fix common/ includes.
15002 * regcache.h: Fix common/ includes.
15003 * regcache.c: Fix common/ includes.
15004 * record-btrace.c: Fix common/ includes.
15005 * python/python.c: Fix common/ includes.
15006 * python/py-type.c: Fix common/ includes.
15007 * python/py-inferior.c: Fix common/ includes.
15008 * progspace.h: Fix common/ includes.
15009 * producer.c: Fix common/ includes.
15010 * procfs.c: Fix common/ includes.
15011 * proc-api.c: Fix common/ includes.
15012 * printcmd.c: Fix common/ includes.
15013 * ppc-linux-nat.c: Fix common/ includes.
15014 * parser-defs.h: Fix common/ includes.
15015 * osdata.c: Fix common/ includes.
15016 * obsd-nat.c: Fix common/ includes.
15017 * nat/x86-linux.c: Fix common/ includes.
15018 * nat/x86-linux-dregs.c: Fix common/ includes.
15019 * nat/x86-dregs.h: Fix common/ includes.
15020 * nat/x86-dregs.c: Fix common/ includes.
15021 * nat/ppc-linux.c: Fix common/ includes.
15022 * nat/mips-linux-watch.h: Fix common/ includes.
15023 * nat/mips-linux-watch.c: Fix common/ includes.
15024 * nat/linux-waitpid.c: Fix common/ includes.
15025 * nat/linux-ptrace.h: Fix common/ includes.
15026 * nat/linux-ptrace.c: Fix common/ includes.
15027 * nat/linux-procfs.c: Fix common/ includes.
15028 * nat/linux-personality.c: Fix common/ includes.
15029 * nat/linux-osdata.c: Fix common/ includes.
15030 * nat/linux-namespaces.c: Fix common/ includes.
15031 * nat/linux-btrace.h: Fix common/ includes.
15032 * nat/linux-btrace.c: Fix common/ includes.
15033 * nat/fork-inferior.c: Fix common/ includes.
15034 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15035 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15036 * nat/aarch64-linux.c: Fix common/ includes.
15037 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15038 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15039 * namespace.h: Fix common/ includes.
15040 * mips-linux-tdep.c: Fix common/ includes.
15041 * minsyms.c: Fix common/ includes.
15042 * mi/mi-parse.h: Fix common/ includes.
15043 * mi/mi-main.c: Fix common/ includes.
15044 * mi/mi-cmd-env.c: Fix common/ includes.
15045 * memrange.h: Fix common/ includes.
15046 * memattr.c: Fix common/ includes.
15047 * maint.h: Fix common/ includes.
15048 * maint.c: Fix common/ includes.
15049 * main.c: Fix common/ includes.
15050 * machoread.c: Fix common/ includes.
15051 * location.c: Fix common/ includes.
15052 * linux-thread-db.c: Fix common/ includes.
15053 * linux-nat.c: Fix common/ includes.
15054 * linux-fork.c: Fix common/ includes.
15055 * inline-frame.c: Fix common/ includes.
15056 * infrun.c: Fix common/ includes.
15057 * inflow.c: Fix common/ includes.
15058 * inferior.h: Fix common/ includes.
15059 * inferior.c: Fix common/ includes.
15060 * infcmd.c: Fix common/ includes.
15061 * inf-ptrace.c: Fix common/ includes.
15062 * inf-child.c: Fix common/ includes.
15063 * ia64-linux-nat.c: Fix common/ includes.
15064 * i387-tdep.c: Fix common/ includes.
15065 * i386-tdep.c: Fix common/ includes.
15066 * i386-linux-tdep.c: Fix common/ includes.
15067 * i386-linux-nat.c: Fix common/ includes.
15068 * i386-go32-tdep.c: Fix common/ includes.
15069 * i386-fbsd-tdep.c: Fix common/ includes.
15070 * i386-fbsd-nat.c: Fix common/ includes.
15071 * guile/scm-type.c: Fix common/ includes.
15072 * guile/guile.c: Fix common/ includes.
15073 * go32-nat.c: Fix common/ includes.
15074 * gnu-nat.c: Fix common/ includes.
15075 * gdbthread.h: Fix common/ includes.
15076 * gdbarch-selftests.c: Fix common/ includes.
15077 * gdb_usleep.c: Fix common/ includes.
15078 * gdb_select.h: Fix common/ includes.
15079 * gdb_bfd.c: Fix common/ includes.
15080 * gcore.c: Fix common/ includes.
15081 * fork-child.c: Fix common/ includes.
15082 * findvar.c: Fix common/ includes.
15083 * fbsd-nat.c: Fix common/ includes.
15084 * event-top.c: Fix common/ includes.
15085 * event-loop.c: Fix common/ includes.
15086 * dwarf2read.c: Fix common/ includes.
15087 * dwarf2loc.c: Fix common/ includes.
15088 * dwarf2-frame.c: Fix common/ includes.
15089 * dwarf-index-cache.c: Fix common/ includes.
15090 * dtrace-probe.c: Fix common/ includes.
15091 * disasm-selftests.c: Fix common/ includes.
15092 * defs.h: Fix common/ includes.
15093 * csky-tdep.c: Fix common/ includes.
15094 * cp-valprint.c: Fix common/ includes.
15095 * cp-support.h: Fix common/ includes.
15096 * cp-support.c: Fix common/ includes.
15097 * corelow.c: Fix common/ includes.
15098 * completer.h: Fix common/ includes.
15099 * completer.c: Fix common/ includes.
15100 * compile/compile.c: Fix common/ includes.
15101 * compile/compile-loc2c.c: Fix common/ includes.
15102 * compile/compile-cplus-types.c: Fix common/ includes.
15103 * compile/compile-cplus-symbols.c: Fix common/ includes.
15104 * command.h: Fix common/ includes.
15105 * cli/cli-dump.c: Fix common/ includes.
15106 * cli/cli-cmds.c: Fix common/ includes.
15107 * charset.c: Fix common/ includes.
15108 * build-id.c: Fix common/ includes.
15109 * btrace.h: Fix common/ includes.
15110 * btrace.c: Fix common/ includes.
15111 * breakpoint.h: Fix common/ includes.
15112 * breakpoint.c: Fix common/ includes.
15113 * ax.h:
15114 (enum agent_op): Fix common/ includes.
15115 * ax-general.c (struct aop_map): Fix common/ includes.
15116 * ax-gdb.c: Fix common/ includes.
15117 * auxv.c: Fix common/ includes.
15118 * auto-load.c: Fix common/ includes.
15119 * arm-tdep.c: Fix common/ includes.
15120 * arch/riscv.c: Fix common/ includes.
15121 * arch/ppc-linux-common.c: Fix common/ includes.
15122 * arch/i386.c: Fix common/ includes.
15123 * arch/arm.c: Fix common/ includes.
15124 * arch/arm-linux.c: Fix common/ includes.
15125 * arch/arm-get-next-pcs.c: Fix common/ includes.
15126 * arch/amd64.c: Fix common/ includes.
15127 * arch/aarch64.c: Fix common/ includes.
15128 * arch/aarch64-insn.c: Fix common/ includes.
15129 * arch-utils.c: Fix common/ includes.
15130 * amd64-windows-tdep.c: Fix common/ includes.
15131 * amd64-tdep.c: Fix common/ includes.
15132 * amd64-sol2-tdep.c: Fix common/ includes.
15133 * amd64-obsd-tdep.c: Fix common/ includes.
15134 * amd64-nbsd-tdep.c: Fix common/ includes.
15135 * amd64-linux-tdep.c: Fix common/ includes.
15136 * amd64-linux-nat.c: Fix common/ includes.
15137 * amd64-fbsd-tdep.c: Fix common/ includes.
15138 * amd64-fbsd-nat.c: Fix common/ includes.
15139 * amd64-dicos-tdep.c: Fix common/ includes.
15140 * amd64-darwin-tdep.c: Fix common/ includes.
15141 * agent.c: Fix common/ includes.
15142 * ada-lang.h: Fix common/ includes.
15143 * ada-lang.c: Fix common/ includes.
15144 * aarch64-tdep.c: Fix common/ includes.
15145
15146 2019-01-25 Tom Tromey <tom@tromey.com>
15147
15148 * common/create-version.sh: Use common/version.h.
15149
15150 2019-01-24 Pedro Alves <palves@redhat.com>
15151
15152 * infrun.c (signal_stop, signal_print, signal_program)
15153 (signal_catch, signal_pass): Now arrays instead of pointers.
15154 (update_signals_program_target, do_target_resume)
15155 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15156 * linux-nat.c (linux_nat_target::pass_signals)
15157 (linux_nat_target::create_inferior, linux_nat_target::attach):
15158 Adjust.
15159 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15160 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15161 * procfs.c (procfs_target::pass_signals): Adjust.
15162 * record-full.c (record_full_target::resume): Adjust.
15163 * remote.c (remote_target::pass_signals)
15164 (remote_target::program_signals): Adjust.
15165 * target-debug.h (target_debug_print_signals): Now takes a
15166 gdb::array_view as parameter. Adjust.
15167 * target.h (target_ops) <pass_signals, program_signals>: Replace
15168 pointer and length parameters with gdb::array_view.
15169 (target_pass_signals, target_program_signals): Likewise.
15170 * target-delegates.c: Regenerate.
15171
15172 2019-01-24 Pedro Alves <palves@redhat.com>
15173
15174 * common/forward-scope-exit.h
15175 (forward_scope_exit::forward_scope_exit): Pass arguments to
15176 m_bind_function directly, instead of creating a std::bind and
15177 copying that.
15178
15179 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15180
15181 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15182 for static members.
15183 (pass_in_v_vfp_candidate): Likewise.
15184
15185 2019-01-23 Tom Tromey <tom@tromey.com>
15186 Pedro Alves <palves@redhat.com>
15187
15188 * regcache.c (class regcache_invalidator): Remove.
15189 (regcache::raw_write): Use make_scope_exit.
15190
15191 2019-01-23 Tom Tromey <tom@tromey.com>
15192
15193 * ui-out.h (class ui_out_emit_type): Update comment.
15194
15195 2019-01-23 Tom Tromey <tom@tromey.com>
15196
15197 * infrun.c (fetch_inferior_event): Update comment.
15198
15199 2019-01-23 Tom Tromey <tom@tromey.com>
15200 Pedro Alves <palves@redhat.com>
15201
15202 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15203 parameter.
15204 (fetch_inferior_event): Use SCOPE_EXIT.
15205
15206
15207 2019-01-23 Tom Tromey <tom@tromey.com>
15208 Pedro Alves <palves@redhat.com>
15209
15210 * infrun.c (disable_thread_events): Delete.
15211 (stop_all_threads): Use SCOPE_EXIT.
15212
15213 2019-01-23 Tom Tromey <tom@tromey.com>
15214 Pedro Alves <palves@redhat.com>
15215
15216 * symfile.c: Include forward-scope-exit.h.
15217 (clear_symtab_users_cleanup): Replace forward declaration with
15218 a FORWARD_SCOPE_EXIT.
15219 (syms_from_objfile_1): Use the forward_scope_exit and
15220 gdb::optional instead of cleanup_function.
15221 (reread_symbols): Use the forward_scope_exit instead of
15222 cleanup_function.
15223 (clear_symtab_users_cleanup): Remove function.
15224
15225 2019-01-23 Tom Tromey <tom@tromey.com>
15226 Pedro Alves <palves@redhat.com>
15227
15228 * linux-nat.c: Include scope-exit.h.
15229 (cleanup_target_stop): Remove.
15230 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15231 SCOPE_EXIT.
15232
15233 2019-01-23 Tom Tromey <tom@tromey.com>
15234 Pedro Alves <palves@redhat.com>
15235
15236 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15237 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15238
15239 2019-01-23 Tom Tromey <tom@tromey.com>
15240 Andrew Burgess <andrew.burgess@embecosm.com>
15241 Pedro Alves <palves@redhat.com>
15242
15243 * infrun.c (fetch_inferior_event): Use scope_exit.
15244 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15245 * top.c (execute_command): Use scope_exit.
15246 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15247 * utils.c (do_bpstat_clear_actions_cleanup)
15248 (make_bpstat_clear_actions_cleanup): Remove.
15249
15250 2019-01-23 Tom Tromey <tom@tromey.com>
15251 Pedro Alves <palves@redhat.com>
15252
15253 * infrun.c: Include "common/scope-exit.h"
15254 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15255 (wait_for_inferior): Use SCOPE_EXIT.
15256 (fetch_inferior_event): Use scope_exit.
15257
15258 2019-01-23 Tom Tromey <tom@tromey.com>
15259 Pedro Alves <palves@redhat.com>
15260
15261 * breakpoint.c (create_breakpoint): Remove cleanup.
15262
15263 2019-01-23 Tom Tromey <tom@tromey.com>
15264 Andrew Burgess <andrew.burgess@embecosm.com>
15265 Pedro Alves <palves@redhat.com>
15266
15267 2019-01-23 Pedro Alves <palves@redhat.com>
15268
15269 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15270
15271 2019-01-23 Pedro Alves <palves@redhat.com>
15272 Andrew Burgess <andrew.burgess@embecosm.com>
15273
15274 * gdbthread.h: Include "common/forward-scope-exit.h".
15275 (scoped_finish_thread_state): Redefine custom class in terms of
15276 forward_scope_exit.
15277
15278 2019-01-23 Pedro Alves <palves@redhat.com>
15279 Andrew Burgess <andrew.burgess@embecosm.com>
15280
15281 * common/forward-scope-exit.h: New file.
15282
15283 2019-01-23 Pedro Alves <palves@redhat.com>
15284 Andrew Burgess <andrew.burgess@embecosm.com>
15285 Tom Tromey <tom@tromey.com>
15286
15287 * common/scope-exit.h: New file.
15288
15289 2019-01-23 Pedro Alves <palves@redhat.com>
15290
15291 * common/preprocessor.h (ESC): Rename to ...
15292 (ESC_PARENS): ... this.
15293 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15294 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15295
15296 2019-01-23 Tom Tromey <tom@tromey.com>
15297
15298 * language.h (class scoped_switch_to_sym_language_if_auto):
15299 Initialize m_lang in both cases.
15300
15301 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15302
15303 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15304 with XCNEW.
15305
15306 2019-01-22 Tom Tromey <tom@tromey.com>
15307
15308 * corelow.c: Do not include sys/file.h.
15309
15310 2019-01-22 Tom Tromey <tom@tromey.com>
15311
15312 * tui/tui-wingeneral.h: Include gdb_curses.h.
15313
15314 2019-01-22 Tom Tromey <tom@tromey.com>
15315
15316 * source-cache.h (class source_cache) <get_source_lines,
15317 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15318
15319 2019-01-22 Tom Tromey <tom@tromey.com>
15320
15321 * remote-fileio.h (struct remote_target): Declare.
15322
15323 2019-01-22 Tom Tromey <tom@tromey.com>
15324
15325 * python/py-arch.c: Do not include py-ref.h.
15326 * python/py-bpevent.c: Do not include py-ref.h.
15327 * python/py-cmd.c: Do not include py-ref.h.
15328 * python/py-continueevent.c: Do not include py-ref.h.
15329 * python/py-event.h: Do not include py-ref.h.
15330 * python/py-evtregistry.c: Do not include py-ref.h.
15331 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15332 * python/py-frame.c: Do not include py-ref.h.
15333 * python/py-framefilter.c: Do not include py-ref.h.
15334 * python/py-function.c: Do not include py-ref.h.
15335 * python/py-infevents.c: Do not include py-ref.h.
15336 * python/py-linetable.c: Do not include py-ref.h.
15337 * python/py-objfile.c: Do not include py-ref.h.
15338 * python/py-param.c: Do not include py-ref.h.
15339 * python/py-prettyprint.c: Do not include py-ref.h.
15340 * python/py-progspace.c: Do not include py-ref.h.
15341 * python/py-symbol.c: Do not include py-ref.h.
15342 * python/py-symtab.c: Do not include py-ref.h.
15343 * python/py-type.c: Do not include py-ref.h.
15344 * python/py-unwind.c: Do not include py-ref.h.
15345 * python/py-utils.c: Do not include py-ref.h.
15346 * python/py-value.c: Do not include py-ref.h.
15347 * python/py-varobj.c: Do not include py-ref.h.
15348 * python/py-xmethods.c: Do not include py-ref.h.
15349 * python/python.c: Do not include py-ref.h.
15350 * varobj.c: Do not include py-ref.h.
15351
15352 2019-01-22 Tom Tromey <tom@tromey.com>
15353
15354 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15355 keyword for bcache.
15356
15357 2019-01-22 Tom Tromey <tom@tromey.com>
15358
15359 * compile/compile-cplus-types.c: Remove a comment by #include.
15360
15361 2019-01-22 Tom Tromey <tom@tromey.com>
15362
15363 * compile/gcc-c-plugin.h: Include compile-internal.h.
15364
15365 2019-01-22 Tom Tromey <tom@tromey.com>
15366
15367 * stabsread.c (EXTERN): Do not define.
15368 (symnum, next_symbol_text_func, processing_gcc_compilation)
15369 (within_function, global_sym_chain, global_stabs)
15370 (previous_stab_code, this_object_header_files)
15371 (n_this_object_header_files)
15372 (n_allocated_this_object_header_files): Define.
15373 * stabsread.h (EXTERN): Never define. Use "extern".
15374
15375 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15376
15377 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15378 history_value.
15379
15380 2019-01-21 Tom Tromey <tom@tromey.com>
15381
15382 * ui-out.c: Fix includes.
15383 * tui/tui-source.c: Fix includes.
15384 * target.c: Fix includes.
15385 * remote.c: Fix includes.
15386 * regcache.c: Fix includes.
15387 * python/py-block.c: Fix includes.
15388 * printcmd.c: Fix includes.
15389 * or1k-tdep.c: Fix includes.
15390 * mi/mi-main.c: Fix includes.
15391 * m32r-tdep.c: Fix includes.
15392 * csky-tdep.c: Fix includes.
15393 * compile/compile-cplus-types.c: Fix includes.
15394 * cli/cli-interp.c: Fix includes.
15395
15396 2019-01-21 Alan Hayward <alan.hayward@arm.com>
15397
15398 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15399 for padding.
15400
15401 2019-01-16 Tom Tromey <tom@tromey.com>
15402
15403 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15404 earlier.
15405 (struct objfile) <msymbols_range>: Move from top level.
15406 <msymbols>: New method.
15407 (class objfile_msymbols): Remove.
15408 * symtab.c (default_collect_symbol_completion_matches_break_on):
15409 Update.
15410 * symmisc.c (dump_msymbols): Update.
15411 * stabsread.c (scan_file_globals): Update.
15412 * objc-lang.c (info_selectors_command, info_classes_command)
15413 (find_methods): Update.
15414 * minsyms.c (find_solib_trampoline_target): Update.
15415 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15416 * coffread.c (coff_symfile_read): Update.
15417 * ada-lang.c (ada_lookup_simple_minsym)
15418 (ada_collect_symbol_completion_matches): Update.
15419
15420 2019-01-16 Tom Tromey <tom@tromey.com>
15421
15422 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15423 type. Remove no-argument constructor.
15424 <iterator::operator++>: Simplify.
15425 <begin>: Update.
15426 <end>: Use minimal_symbol_count.
15427
15428 2019-01-16 Tom Tromey <tom@tromey.com>
15429
15430 * objfiles.h (struct objfile) <psymtabs>: New method.
15431 (class objfile_psymtabs): Remove.
15432 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15433 typedef.
15434 <range>: New method.
15435 (require_partial_symbols): Change return type.
15436 * psymtab.c (require_partial_symbols)
15437 (psym_expand_symtabs_matching): Update.
15438 * mdebugread.c (parse_partial_symbols): Update.
15439 * dbxread.c (dbx_end_psymtab): Update.
15440
15441 2019-01-15 Tom Tromey <tom@tromey.com>
15442
15443 * symtab.c (lookup_objfile_from_block)
15444 (lookup_symbol_in_objfile_symtabs)
15445 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15446 (find_line_symtab, info_sources_command)
15447 (default_collect_symbol_completion_matches_break_on)
15448 (make_source_files_completion_list): Update.
15449 * symmisc.c (print_objfile_statistics, dump_objfile)
15450 (maintenance_print_symbols, maintenance_info_symtabs)
15451 (maintenance_check_symtabs, maintenance_info_line_tables):
15452 Update.
15453 * source.c (select_source_symtab)
15454 (forget_cached_source_info_for_objfile): Update.
15455 * objfiles.h (class objfile_compunits): Remove.
15456 (struct objfile) <compunits_range>: New typedef.
15457 (compunits): New method.
15458 * objfiles.c (objfile_relocate1): Update.
15459 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15460 * maint.c (count_symtabs_and_blocks): Update.
15461 * linespec.c (iterate_over_all_matching_symtabs): Update.
15462 * cp-support.c (add_symbol_overload_list_qualified): Update.
15463 * coffread.c (coff_symtab_read): Update.
15464 * ada-lang.c (add_nonlocal_symbols)
15465 (ada_collect_symbol_completion_matches)
15466 (ada_add_global_exceptions): Update.
15467
15468 2019-01-15 Tom Tromey <tom@tromey.com>
15469
15470 * progspace.h (program_space) <objfiles_safe_range>: New
15471 typedef.
15472 <objfiles_safe>: New method.
15473 * objfiles.h (class all_objfiles_safe): Remove.
15474 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15475 * jit.c (jit_inferior_exit_hook): Update.
15476
15477 2019-01-17 Tom Tromey <tom@tromey.com>
15478
15479 * progspace.h (program_space) <objfiles_range>: New typedef.
15480 <objfiles>: New method.
15481 <objfiles_head>: Rename from objfiles.
15482 (object_files): Update.
15483 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15484 * guile/scm-pretty-print.c
15485 (ppscm_find_pretty_printer_from_objfiles): Update.
15486 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15487 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15488 Update.
15489 * python/py-progspace.c (pspy_get_objfiles): Update.
15490 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15491 Update.
15492 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15493 (objfpy_lookup_objfile_by_build_id): Update.
15494 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15495 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15496 Update.
15497 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15498 (expand_symtab_containing_pc, lookup_objfile_from_block)
15499 (lookup_static_symbol, basic_lookup_transparent_type)
15500 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15501 (find_line_symtab, info_sources_command)
15502 (default_collect_symbol_completion_matches_break_on)
15503 (make_source_files_completion_list, find_main_name): Update.
15504 * symmisc.c (print_symbol_bcache_statistics)
15505 (print_objfile_statistics, maintenance_print_symbols)
15506 (maintenance_print_msymbols, maintenance_print_objfiles)
15507 (maintenance_info_symtabs, maintenance_check_symtabs)
15508 (maintenance_expand_symtabs, maintenance_info_line_tables):
15509 Update.
15510 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15511 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15512 (map_overlay_command, unmap_overlay_command)
15513 (simple_overlay_update, expand_symtabs_matching)
15514 (map_symbol_filenames): Update.
15515 * symfile-debug.c (set_debug_symfile): Update.
15516 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15517 Update.
15518 * source.c (select_source_symtab, forget_cached_source_info):
15519 Update.
15520 * solib.c (solib_read_symbols): Update.
15521 * solib-spu.c (append_ocl_sos): Update.
15522 * psymtab.c (maintenance_print_psymbols)
15523 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15524 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15525 * printcmd.c (info_symbol_command): Update.
15526 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15527 Update.
15528 * objfiles.h (class all_objfiles): Remove.
15529 * objfiles.c (have_partial_symbols, have_full_symbols)
15530 (have_minimal_symbols, qsort_cmp, update_section_map)
15531 (shared_objfile_contains_address_p)
15532 (default_iterate_over_objfiles_in_search_order): Update.
15533 * objc-lang.c (info_selectors_command, info_classes_command)
15534 (find_methods): Update.
15535 * minsyms.c (find_solib_trampoline_target): Update.
15536 * maint.c (maintenance_info_sections)
15537 (maintenance_translate_address, count_symtabs_and_blocks):
15538 Update.
15539 * main.c (captured_main_1): Update.
15540 * linux-thread-db.c (try_thread_db_load_from_pdir)
15541 (has_libpthread): Update.
15542 * linespec.c (iterate_over_all_matching_symtabs)
15543 (search_minsyms_for_name): Update.
15544 * jit.c (jit_find_objf_with_entry_addr): Update.
15545 * hppa-tdep.c (find_unwind_entry)
15546 (hppa_lookup_stub_minimal_symbol): Update.
15547 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15548 Update.
15549 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15550 (elf_gnu_ifunc_resolve_by_got): Update.
15551 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15552 * dwarf-index-write.c (save_gdb_index_command): Update.
15553 * cp-support.c (add_symbol_overload_list_qualified): Update.
15554 * breakpoint.c (create_overlay_event_breakpoint)
15555 (create_longjmp_master_breakpoint)
15556 (create_std_terminate_master_breakpoint)
15557 (create_exception_master_breakpoint): Update.
15558 * blockframe.c (find_pc_partial_function): Update.
15559 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15560 (ada_collect_symbol_completion_matches)
15561 (ada_add_global_exceptions): Update.
15562
15563 2019-01-17 Tom Tromey <tom@tromey.com>
15564
15565 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15566 declare VEC.
15567 (solib_target_parse_libraries): Change return type.
15568 (library_list_start_segment, library_list_start_section)
15569 (library_list_end_library, library_list_start_library); Update.
15570 (solib_target_free_library_list): Remove.
15571 (solib_target_parse_libraries): Remove cleanup. Change return
15572 type.
15573 (solib_target_current_sos): Update.
15574
15575 2019-01-17 Tom Tromey <tromey@bapiya>
15576
15577 * valprint.c: Replace "the the" with "the".
15578 * symtab.c: Replace "the the" with "the".
15579 * solib.c: Replace "the the" with "the".
15580 * solib-dsbt.c: Replace "the the" with "the".
15581 * linespec.c: Replace "the the" with "the".
15582 * dwarf2loc.h: Replace "the the" with "the".
15583 * amd64-windows-tdep.c: Replace "the the" with "the".
15584 * aarch64-tdep.c: Replace "the the" with "the".
15585
15586 2019-01-16 Keith Seitz <keiths@redhat.com>
15587
15588 PR gdb/23773
15589 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15590 <builder>: Rename to ..
15591 <m_builder>: ... this and make private.
15592 (dwarf2_cu::get_builder): New method. Change all users of
15593 `builder' to use this method.
15594 (dwarf2_start_symtab): Move to ...
15595 (dwarf2_cu::start_symtab): ... here. Update all callers
15596 (setup_type_unit_groups): Move to ...
15597 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15598 callers.
15599 (dwarf2_cu::reset_builder): New method.
15600 (process_full_compunit, process_full_type_unit): Use
15601 dwarf2_cu::reset_builder.
15602 (follow_die_offset): Record the ancestor CU if it is different
15603 from the followed DIE's CU.
15604 (follow_die_sig_1): Likewise.
15605
15606 2019-01-15 Tom Tromey <tom@tromey.com>
15607
15608 * remote.c (class remote_state) <buf>: Now a char_vector.
15609 <buf_size>: Remove.
15610 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15611 parameter.
15612 (remote_target::getpkt_or_notif_sane_1)
15613 (remote_target::getpkt_sane)
15614 (remote_target::getpkt_or_notif_sane): Likewise.
15615 (class remote_target) <putpkt>: New overload.
15616 (remote_target::read_frame): Change type of "buf_p". Remove
15617 sizeof_p parameter.
15618 (packet_ok): New overload.
15619 (packet_check_result): New overload.
15620 Update all uses.
15621
15622 2019-01-14 Tom Tromey <tom@tromey.com>
15623
15624 * remote-notif.c (handle_notification, remote_notif_ack)
15625 (remote_notif_parse): Make "buf" const.
15626 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15627 const.
15628 (remote_notif_parse, remote_notif_ack, handle_notification):
15629 Likewise.
15630 * remote.c (remote_notif_stop_parse): Make "buf" const.
15631 (remote_target::remote_parse_stop_reply): Make "buf" const.
15632 (remote_notif_stop_ack): Make "buf" const.
15633
15634 2019-01-14 Tom Tromey <tom@tromey.com>
15635
15636 * remote.c (remote_console_output): Make parameter const.
15637
15638 2019-01-14 Tom Tromey <tom@tromey.com>
15639
15640 * target-debug.h (target_debug_print_signals): Constify.
15641 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15642 * procfs.c (procfs_target::pass_signals): Update.
15643 * linux-nat.c (linux_nat_target::pass_signals): Update.
15644 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15645 * target-delegates.c: Rebuild.
15646 * remote.c (remote_target::program_signals): Update.
15647 (remote_target::pass_signals): Update.
15648 * target.c (target_pass_signals): Constify argument.
15649 (target_program_signals): Likewise.
15650 * target.h (struct target_ops) <pass_signals, program_signals>:
15651 Constify argument.
15652 (target_pass_signals, target_program_signals): Constify argument.
15653
15654 2019-01-14 Tom Tromey <tom@tromey.com>
15655
15656 PR tui/28819:
15657 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15658
15659 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15660
15661 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15662 field.
15663 * rs6000-tdep.c: Include reggroups.h.
15664 (IS_V_ALIAS_PSEUDOREG): Define.
15665 (rs6000_register_name): Return names for the "vX" aliases.
15666 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15667 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15668 aliases. Call default_register_reggroup_p for all other
15669 pseudo-registers.
15670 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15671 New functions.
15672 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15673 Handle "vX" aliases.
15674 (v_alias_pseudo_register_collect): New function.
15675 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15676 (rs6000_gdbarch_init): Initialize "vX" aliases as
15677 pseudo-registers. Restore registration of
15678 rs6000_pseudo_register_reggroup_p with
15679 set_tdesc_pseudo_register_reggroup_p.
15680
15681 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15682
15683 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15684 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15685 set_gdbarch_num_pseudo_regs.
15686
15687 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15688
15689 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15690 Remove arg prefixname, add do_set and do_show.
15691 Add member functions set_list and show_list.
15692 * cli/cli-style.c (class cli_style_option): Update accordingly.
15693 (style_set_list): Move to file scope.
15694 (style_show_list): Likewise.
15695 (set_style): Call help_list.
15696 (show_style): Call cmd_show_list.
15697 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15698 Update to use the new macro.
15699
15700 2019-10-12 Joel Brobecker <brobecker@adacore.com>
15701
15702 * ada-lang.c (_initialize_ada_language): Expand the help text
15703 for the "catch exception" command.
15704
15705 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15706
15707 * symtab.c (matching_obj_sections): Initialize obj,
15708 declare it closer to its usage.
15709
15710 2019-01-10 Tom Tromey <tom@tromey.com>
15711
15712 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15713 (basic_inf_threads_range): Remove.
15714 (inf_threads_range, inf_non_exited_threads_range)
15715 (safe_inf_threads_range): Use next_adapter.
15716
15717 2019-01-10 Keith Seitz <keiths@redhat.com>
15718
15719 PR gdb/23712
15720 PR symtab/23010
15721 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15722 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15723
15724 2019-01-10 Keith Seitz <keiths@redhat.com>
15725
15726 PR gdb/23712
15727 PR symtab/23010
15728 * dictionary.c (pending_to_vector): Remove.
15729 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15730 Remove _1 suffix, replacing functions of the same name. Update
15731 all callers.
15732 (dict_create_hashed, dict_create_hashed_expandable)
15733 (dict_create_linear, dict_create_linear_expandable, dict_free)
15734 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15735 Make functions static.
15736
15737 2019-01-10 Keith Seitz <keiths@redhat.com>
15738
15739 PR gdb/23712
15740 PR symtab/23010
15741 * dictionary.h (struct dictionary): Replace declaration with
15742 multidictionary.
15743 (dict_create_hashed, dict_create_hashed_expandable)
15744 (dict_create_linear, dict_create_linear_expandable)
15745 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15746 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15747 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15748 taking multidictionary argument.
15749 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15750 * block.h (struct block) <dict>: Change to multidictionary
15751 and rename `multidict'.
15752 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15753 symmisc.c: Update all dictionary references to multidictionary.
15754
15755 2019-01-10 Keith Seitz <keiths@redhat.com>
15756
15757 PR gdb/23712
15758 PR symtab/23010
15759 * dictionary.c: Include unordered_map.
15760 (pending_to_vector): New function.
15761 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15762 Rewrite the non-"_1" functions to take vector instead
15763 of linked list.
15764 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15765 "new" _1 versions of the same name.
15766 (multidictionary): Define.
15767 (std::hash<enum language): New definition.
15768 (collate_pending_symbols_by_language, mdict_create_hashed)
15769 (mdict_create_hashed_expandable, mdict_create_linear)
15770 (mdict_create_linear_expandable, mdict_free)
15771 (find_language_dictionary, create_new_language_dictionary)
15772 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15773 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15774 (mdict_size, mdict_empty): New functions.
15775 * dictionary.h (mdict_iterator): Define.
15776
15777 2019-01-10 Pedro Alves <palves@redhat.com>
15778
15779 * breakpoint.c (read_uploaded_action)
15780 (create_tracepoint_from_upload): Adjust to use
15781 gdb::unique_xmalloc_ptr.
15782 * ctf.c (ctf_write_uploaded_tp):
15783 (SET_ARRAY_FIELD): Use emplace_back.
15784 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15785 * tracefile-tfile.c (tfile_write_uploaded_tp):
15786 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15787 gdb::unique_xmalloc_ptr.
15788 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15789 at_string, cond_string, cmd_strings>: Replace char pointers
15790 with gdb::unique_xmalloc_ptr.
15791
15792 2019-01-10 Pedro Alves <palves@redhat.com>
15793
15794 * solib-target.c (library_list_start_library): Don't xstrdup name.
15795
15796 2019-01-10 Pedro Alves <palves@redhat.com>
15797
15798 * mdebugread.c (parse_partial_symbols): Use
15799 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15800
15801 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15802
15803 * linux-fork.c (scoped_switch_fork_info)
15804 <~scoped_switch_fork_info>: Fix incorrect variable name.
15805
15806 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15807
15808 * linux-fork.c (scoped_switch_fork_info)
15809 <scoped_switch_fork_info>: Make explicit.
15810 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15811
15812 2019-01-10 Tom Tromey <tom@tromey.com>
15813
15814 * objfiles.h (objfile::reset_psymtabs): Update.
15815 * objfiles.c (objfile::objfile): Update.
15816 * psymtab.h (psymtab_storage::obstack): Update.
15817 (psymtab_storage::m_obstack): Use gdb::optional.
15818 (class psymtab_storage): Update comment. Remove objfile
15819 parameter.
15820 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15821
15822 2019-01-10 Tom Tromey <tom@tromey.com>
15823
15824 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15825 <free_psymtabs>: Now private.
15826 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15827 (allocate_psymtab): Use new method.
15828
15829 2019-01-10 Tom Tromey <tom@tromey.com>
15830
15831 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15832 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15833 * mdebugread.c (parse_partial_symbols): Use
15834 allocate_dependencies.
15835 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15836 allocate_dependencies.
15837 (process_psymtab_comp_unit_reader)
15838 (build_type_psymtab_dependencies): Likewise.
15839 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15840
15841 2019-01-10 Tom Tromey <tom@tromey.com>
15842
15843 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15844 PSYMBOL_SET_LANGUAGE.
15845 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15846
15847 2019-01-10 Tom Tromey <tom@tromey.com>
15848
15849 * psymtab.h (psymtab_storage::obstack): New method.
15850 <m_obstack>: Rename from obstack; now private.
15851 * psymtab.c (psymtab_storage): Update.
15852 * dwarf2read.c (create_addrmap_from_index)
15853 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15854 Update.
15855
15856 2019-01-10 Tom Tromey <tom@tromey.com>
15857
15858 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15859 * objfiles.h (objfile::reset_psymtabs): New method.
15860
15861 2019-01-10 Tom Tromey <tom@tromey.com>
15862
15863 * symmisc.c (print_symbol_bcache_statistics): Update.
15864 (print_objfile_statistics): Update.
15865 * symfile.c (reread_symbols): Update.
15866 * psymtab.h (class psymtab_storage): New.
15867 * psymtab.c (psymtab_storage): New constructor.
15868 (~psymtab_storage): New destructor.
15869 (require_partial_symbols): Update.
15870 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15871 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15872 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15873 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15874 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15875 (start_psymtab_common, end_psymtab_common)
15876 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15877 (allocate_psymtab): Update.
15878 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15879 Update.
15880 (dump_psymtab_addrmap, maintenance_print_psymbols)
15881 (maintenance_check_psymtabs): Update.
15882 (class objfile_psymtabs): Move to objfiles.h.
15883 * psympriv.h (discard_psymtab): Now inline.
15884 (psymtab_discarder::psymtab_discarder): Update.
15885 (psymtab_discarder::~psymtab_discarder): Update.
15886 (ALL_OBJFILE_PSYMTABS): Rewrite.
15887 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15888 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15889 Remove fields.
15890 <partial_symtabs>: New field.
15891 (class objfile_psymtabs): Move from psymtab.h. Update.
15892 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15893 psymbol_cache.
15894 (objfile::~objfile): Don't destroy psymbol_cache.
15895 * mdebugread.c (parse_partial_symbols): Update.
15896 * dwarf2read.c (create_addrmap_from_index)
15897 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15898 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15899 (add_partial_subprogram, dwarf2_ranges_read): Update.
15900 * dwarf-index-write.c (write_address_map)
15901 (write_one_signatured_type, recursively_write_psymbols)
15902 (class debug_names, class debug_names, write_psymtabs_to_index):
15903 Update.
15904
15905 2019-01-10 Tom Tromey <tom@tromey.com>
15906
15907 * symtab.h (SYMBOL_SET_NAMES): Update.
15908 (symbol_set_names): Update.
15909 (MSYMBOL_SET_NAMES): Update.
15910 * symtab.c (symbol_set_names): Change argument to be an
15911 objfile_per_bfd_storage.
15912 * psymtab.c (add_psymbol_to_bcache): Update.
15913 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15914
15915 2019-01-10 Tom Tromey <tom@tromey.com>
15916
15917 * symtab.c (create_demangled_names_hash): Change argument to be an
15918 objfile_per_bfd_storage.
15919 (symbol_set_names): Update.
15920
15921 2019-01-10 Tom Tromey <tom@tromey.com>
15922
15923 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15924 init_psymbol_list.
15925 * psymtab.c (init_psymbol_list): Do nothing if already called.
15926 * psympriv.h (init_psymbol_list): Add comment.
15927 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15928 init_psymbol_list.
15929 * dbxread.c (dbx_symfile_read): Unconditionally call
15930 init_psymbol_list.
15931
15932 2019-01-10 Tom Tromey <tom@tromey.com>
15933
15934 * xcoffread.c (scan_xcoff_symtab): Update.
15935 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15936 "where".
15937 * mdebugread.c (parse_partial_symbols)
15938 (handle_psymbol_enumerators): Update.
15939 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15940 * dbxread.c (read_dbx_symtab): Update.
15941 * psympriv.h (psymbol_placement): New enum.
15942 (add_psymbol_to_list): Update.
15943
15944 2019-01-10 Tom Tromey <tom@tromey.com>
15945
15946 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15947 static_psymbols parameters.
15948 (scan_xcoff_symtab): Update.
15949 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15950 static_psymbols parameters.
15951 * psympriv.h (start_psymtab_common): Update.
15952 * mdebugread.c (parse_partial_symbols): Update.
15953 * dwarf2read.c (create_partial_symtab): Update.
15954 * dbxread.c (read_dbx_symtab): Update.
15955 (start_psymtab): Remove global_psymbols and static_psymbols
15956 parameters.
15957
15958 2019-01-10 Tom Tromey <tom@tromey.com>
15959
15960 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15961 * psymtab.c (allocate_psymtab): Add comment.
15962 * psympriv.h (allocate_psymtab): Add comment.
15963 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15964 initializations.
15965 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15966
15967 2019-01-10 Tom Tromey <tom@tromey.com>
15968
15969 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15970 Don't declare.
15971 * mipsread.c: Include mdebugread.h.
15972 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15973 Declare.
15974 * elfread.c: Include mdebugread.h.
15975
15976 2019-01-09 Tom Tromey <tom@tromey.com>
15977
15978 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15979 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15980 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15981 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15982 (psym_lookup_symbol, psym_find_last_source_symtab)
15983 (psym_forget_cached_source_info, psym_print_stats)
15984 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15985 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15986 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15987 (psym_find_compunit_symtab_by_address)
15988 (maintenance_print_psymbols, maintenance_info_psymtabs)
15989 (maintenance_check_psymtabs): Use ranged for.
15990 * psymtab.h (class objfile_psymtabs): New.
15991 (require_partial_symbols): Return objfile_psymtabs.
15992 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15993
15994 2019-01-09 Tom Tromey <tom@tromey.com>
15995
15996 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15997 (find_pc_mapped_section, list_overlays_command)
15998 (map_overlay_command, unmap_overlay_command)
15999 (simple_overlay_update): Use all_objfiles.
16000 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16001 * printcmd.c (info_symbol_command): Use all_objfiles.
16002 * objfiles.h (ALL_OBJSECTIONS): Remove.
16003 * maint.c (maintenance_translate_address): Use all_objfiles.
16004 * gcore.c (gcore_create_callback): Use all_objfiles.
16005 (objfile_find_memory_regions): Likewise.
16006
16007 2019-01-09 Tom Tromey <tom@tromey.com>
16008
16009 * symtab.c (find_line_symtab, info_sources_command)
16010 (make_source_files_completion_list): Use objfile_compunits.
16011 * source.c (select_source_symtab): Use objfile_compunits.
16012 * objfiles.h (struct objfile): Update comment.
16013 (ALL_OBJFILES): Remove.
16014 (ALL_FILETABS): Remove.
16015 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16016 objfile_compunits.
16017
16018 2019-01-09 Tom Tromey <tom@tromey.com>
16019
16020 * symmisc.c (print_objfile_statistics, dump_objfile)
16021 (maintenance_print_symbols): Use compunit_filetabs.
16022 * source.c (forget_cached_source_info_for_objfile): Use
16023 compunit_filetabs.
16024 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16025 (ALL_FILETABS): Use compunit_filetabs.
16026 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16027 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16028
16029 2019-01-09 Tom Tromey <tom@tromey.com>
16030
16031 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16032 (compunit_filetabs): New.
16033 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16034 compunit_filetabs.
16035 (info_sources_command, make_source_files_completion_list): Remove
16036 declaration.
16037 * symmisc.c (print_objfile_statistics, dump_objfile)
16038 (maintenance_print_symbols): Remove declaration.
16039 (maintenance_info_symtabs): Use compunit_filetabs.
16040 (maintenance_info_line_tables): Likewise.
16041 * source.c (select_source_symtab): Change local variable name.
16042 (forget_cached_source_info_for_objfile): Remove declaration.
16043 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16044 * objfiles.c (objfile_relocate1): Remove declaration.
16045 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16046 declaration.
16047 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16048 * coffread.c (coff_symtab_read): Remove declaration.
16049 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16050 compunit_filetabs.
16051
16052 2019-01-09 Tom Tromey <tom@tromey.com>
16053
16054 * symtab.c (lookup_objfile_from_block)
16055 (find_pc_sect_compunit_symtab, search_symbols)
16056 (default_collect_symbol_completion_matches_break_on): Use
16057 objfile_compunits.
16058 * objfiles.h (ALL_COMPUNITS): Remove.
16059 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16060 * cp-support.c (add_symbol_overload_list_qualified): Use
16061 objfile_compunits.
16062 * ada-lang.c (ada_collect_symbol_completion_matches)
16063 (ada_add_global_exceptions): Use objfile_compunits.
16064
16065 2019-01-09 Tom Tromey <tom@tromey.com>
16066
16067 * source.c (select_source_symtab)
16068 (forget_cached_source_info_for_objfile): Remove declaration.
16069 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16070 declaration.
16071 * maint.c (count_symtabs_and_blocks): Remove declaration.
16072 * cp-support.c (add_symbol_overload_list_qualified): Remove
16073 declaration.
16074 * coffread.c (coff_symtab_read): Remove declaration.
16075 * symtab.c (lookup_symbol_in_objfile_symtabs)
16076 (basic_lookup_transparent_type_1): Use objfile_compunits.
16077 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16078 (info_sources_command, search_symbols)
16079 (default_collect_symbol_completion_matches_break_on)
16080 (make_source_files_completion_list): Remove declaration.
16081 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16082 (ada_collect_symbol_completion_matches)
16083 (ada_add_global_exceptions): Remove declaration.
16084 * linespec.c (iterate_over_all_matching_symtabs): Use
16085 objfile_compunits.
16086 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16087 (class objfile_compunits): New.
16088 (ALL_COMPUNITS): Use objfile_compunits.
16089 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16090 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16091 objfile_compunits.
16092 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16093
16094 2019-01-09 Tom Tromey <tom@tromey.com>
16095
16096 * symtab.c (search_symbols)
16097 (default_collect_symbol_completion_matches_break_on): Use
16098 objfile_msymbols.
16099 * ada-lang.c (ada_lookup_simple_minsym)
16100 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16101 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16102 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16103 objfile_msymbols.
16104 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16105 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16106 * objc-lang.c (find_methods): Use objfile_msymbols.
16107 (info_selectors_command, info_classes_command): Likewise.
16108 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16109 * objfiles.h (class objfile_msymbols): New.
16110 (ALL_OBJFILE_MSYMBOLS): Remove.
16111 (ALL_MSYMBOLS): Remove.
16112
16113 2019-01-09 Tom Tromey <tom@tromey.com>
16114
16115 * common/next-iterator.h (next_adapter): Add Iterator template
16116 parameter.
16117 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16118 (class all_objfiles_safe): New.
16119 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16120 * objfiles.c (put_objfile_before): Update comment.
16121 (add_separate_debug_objfile): Likewise.
16122 (free_all_objfiles): Use all_objfiles_safe.
16123 (objfile_purge_solibs): Likewise.
16124
16125 2019-01-09 Tom Tromey <tom@tromey.com>
16126
16127 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16128 (expand_symtab_containing_pc, lookup_static_symbol)
16129 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16130 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16131 all_objfiles.
16132 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16133 * breakpoint.c (create_overlay_event_breakpoint)
16134 (create_longjmp_master_breakpoint)
16135 (create_std_terminate_master_breakpoint)
16136 (create_exception_master_breakpoint): Use all_objfiles.
16137 * linux-thread-db.c (try_thread_db_load_from_pdir)
16138 (has_libpthread): Use all_objfiles.
16139 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16140 * linespec.c (iterate_over_all_matching_symtabs)
16141 (search_minsyms_for_name): Use all_objfiles.
16142 * maint.c (maintenance_info_sections): Use all_objfiles.
16143 * main.c (captured_main_1): Use all_objfiles.
16144 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16145 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16146 * guile/scm-pretty-print.c
16147 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16148 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16149 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16150 (maintenance_print_msymbols): Use all_objfiles.
16151 * source.c (select_source_symtab): Use all_objfiles.
16152 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16153 * symfile.c (remove_symbol_file_command)
16154 (expand_symtabs_matching, map_symbol_filenames): Use
16155 all_objfiles.
16156 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16157 all_objfiles.
16158 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16159 * objc-lang.c (find_methods): Use all_objfiles.
16160 * objfiles.c (have_partial_symbols, have_full_symbols)
16161 (have_minimal_symbols, qsort_cmp)
16162 (default_iterate_over_objfiles_in_search_order): Use
16163 all_objfiles.
16164 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16165 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16166 (maintenance_check_psymtabs): Use all_objfiles.
16167 (ALL_PSYMTABS): Remove.
16168 * compile/compile-object-run.c (do_module_cleanup): Use
16169 all_objfiles.
16170 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16171 * cp-support.c (add_symbol_overload_list_qualified): Use
16172 all_objfiles.
16173 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16174 Use all_objfiles.
16175 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16176 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16177 all_objfiles.
16178 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16179 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16180 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16181 Uses all_objfiles.
16182 * solib.c (solib_read_symbols): Use all_objfiles
16183
16184 2019-01-09 Tom Tromey <tom@tromey.com>
16185
16186 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16187 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16188 all_objfiles.
16189 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16190 * symmisc.c (print_symbol_bcache_statistics)
16191 (print_objfile_statistics, maintenance_print_objfiles)
16192 (maintenance_info_symtabs, maintenance_check_symtabs)
16193 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16194 all_objfiles.
16195 * source.c (forget_cached_source_info): Use all_objfiles.
16196 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16197 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16198 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16199 * objfiles.c (update_section_map): Use all_objfiles.
16200 (shared_objfile_contains_address_p): Likewise.
16201 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16202 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16203
16204 2019-01-09 Tom Tromey <tom@tromey.com>
16205
16206 * common/next-iterator.h: New file.
16207 * objfiles.h (class all_objfiles): New.
16208 (struct objfile_iterator): New.
16209
16210 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16211
16212 * NEWS: Move the description of the changed "frame", "select-frame",
16213 and "info frame" commands to the Changed commands section.
16214
16215 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16216
16217 * gdbtypes.c (check_stub_method_group): Remove handling of old
16218 mangling schemes.
16219 * linespec.c (find_methods): Likewise.
16220 * stabsread.c (read_member_functions): Likewise.
16221 * valops.c (search_struct_method): Likewise.
16222 (value_struct_elt_for_reference): Likewise.
16223 * NEWS: Mention this change.
16224
16225 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16226
16227 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16228 print_source_lines.
16229 * source.c (print_source_lines_base): Update line number check.
16230 (print_source_lines): New function.
16231 (source_lines_range::source_lines_range): New function.
16232 * source.h (class source_lines_range): New class.
16233 (print_source_lines): New declaration.
16234
16235 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16236
16237 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16238
16239 2019-01-08 Tom Tromey <tom@tromey.com>
16240 Simon Marchi <simon.marchi@ericsson.com>
16241
16242 PR gdb/24060
16243 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16244 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16245 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16246 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16247 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16248 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16249
16250 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16251
16252 * source.c (select_source_symtab): Move header comment to
16253 declaration in source.h.
16254 (forget_cached_source_info_for_objfile): Likewise.
16255 (forget_cached_source_info): Likewise.
16256 (identify_source_line): Likewise.
16257 * source.h (identify_source_line): Move declaration from symtab.h
16258 and add comment from source.c
16259 (print_source_lines): Likewise.
16260 (forget_cached_source_info_for_objfile): Likewise.
16261 (forget_cached_source_info): Likewise.
16262 (select_source_symtab): Likewise.
16263 (enum print_source_lines_flag): Move definition from symtab.h.
16264 * symtab.h (identify_source_line): Move declaration to source.h.
16265 (print_source_lines): Likewise.
16266 (forget_cached_source_info_for_objfile): Likewise.
16267 (forget_cached_source_info): Likewise.
16268 (select_source_symtab): Likewise.
16269 (enum print_source_lines_flag): Move definition to source.h.
16270 * tui/tui-hooks.c: Add 'source.h' include.
16271
16272 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16273
16274 * source.c (print_source_lines_base): Handle requests to print
16275 reverse line number sequences, and guard against empty lines
16276 string.
16277
16278 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16279
16280 * source.c (print_source_lines_base): Fix skip of '\r' if next
16281 character is '\n'.
16282
16283 2019-01-06 Tom Tromey <tom@tromey.com>
16284
16285 * c-exp.y (struct c_parse_state) <macro_original_text,
16286 expansion_obstack>: New member.
16287 (macro_original_text, expansion_obstack): Remove globals.
16288 (scan_macro_expansion, scanning_macro_expansion)
16289 (finished_macro_expansion): Update.
16290 (scan_macro_cleanup): Remove.
16291 (yylex, c_parse): Update.
16292
16293 2019-01-06 Tom Tromey <tom@tromey.com>
16294
16295 * c-exp.y (struct c_parse_state) <strings>: New member.
16296 (operator_stoken): Update.
16297
16298 2019-01-06 Tom Tromey <tom@tromey.com>
16299
16300 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16301 (union type_stack_elt) <typelist_val>: Now a pointer to
16302 std::vector.
16303 (type_stack_cleanup): Don't declare.
16304 (push_typelist): Update.
16305 * parse.c (pop_typelist): Return a std::vector.
16306 (push_typelist): Take a std::vector.
16307 (follow_types): Update. Do not free args.
16308 (type_stack_cleanup): Remove.
16309 * c-exp.y (struct c_parse_state): New.
16310 (cpstate): New global.
16311 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16312 (nonempty_typelist): Update.
16313 (func_mod): Create a new vector.
16314 (c_parse): Create a c_parse_state.
16315 (check_parameter_typelist): Do not delete params.
16316 (function_method): Update. Do not delete type_list.
16317
16318 2019-01-06 Tom Tromey <tom@tromey.com>
16319
16320 PR gdb/28155:
16321 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16322 check_typedef.
16323 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16324 (print_return_value): Likewise.
16325
16326 2019-01-05 Tom Tromey <tom@tromey.com>
16327
16328 * contrib/cleanup_check.py: Remove.
16329 * contrib/gcc-with-excheck: Remove.
16330 * contrib/exsummary.py: Remove.
16331 * contrib/excheck.py: Remove.
16332
16333 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16334
16335 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16336 NULL. Initialize tpprev to NULL instead of assigning it
16337 to NULL on the next statement.
16338 * windows-nat.c (windows_delete_thread): Remove check for
16339 main_thread_id before printing thread exit notifications.
16340 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16341 Remove thread ID check against main_thread_id.
16342 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16343 windows_delete_thread.
16344 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16345
16346 2019-01-04 Tom Tromey <tom@tromey.com>
16347
16348 * compile/compile.c (_initialize_compile): Use upper case for
16349 metasyntactic variables.
16350 * symmisc.c (_initialize_symmisc): Use upper case for
16351 metasyntactic variables.
16352 * psymtab.c (_initialize_psymtab): Use upper case for
16353 metasyntactic variables.
16354 * demangle.c (demangle_command): Use upper case for metasyntactic
16355 variables.
16356 (_initialize_demangler): Likewise.
16357 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16358 variables.
16359
16360 2019-01-03 Tom Tromey <tom@tromey.com>
16361
16362 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16363
16364 2019-01-03 Tom Tromey <tom@tromey.com>
16365
16366 * python/py-symtab.c (salpy_str): Update.
16367 (struct salpy_sal_object) <symtab>: Now a PyObject.
16368 (salpy_dealloc): Update.
16369 (del_objfile_sal): Use gdbpy_ref.
16370
16371 2019-01-03 Tom Tromey <tom@tromey.com>
16372
16373 * python/py-type.c (convert_field): Use new_reference. Return
16374 gdbpy_ref.
16375 (make_fielditem): Return gdbpy_ref.
16376 (typy_fields): Update.
16377 (typy_getitem): Update.
16378 (field_name): Return gdbpy_ref. Use new_reference.
16379 (typy_iterator_iternext): Update.
16380
16381 2019-01-03 Tom Tromey <tom@tromey.com>
16382
16383 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16384
16385 2019-01-03 Tom Tromey <tom@tromey.com>
16386
16387 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16388 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16389 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16390 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16391 (pspy_set_type_printers): Likewise.
16392 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16393 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16394 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16395 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16396 (objfpy_set_type_printers): Likewise.
16397
16398 2019-01-03 Tom Tromey <tom@tromey.com>
16399
16400 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16401 (gdbpy_print_stack): Use gdbpy_err_fetch.
16402 * python/python-internal.h (class gdbpy_err_fetch): New class.
16403 (class gdbpy_enter) <m_error_type, m_error_value,
16404 m_error_traceback>: Remove.
16405 <m_error>: New member.
16406 (gdbpy_exception_to_string): Don't declare.
16407 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16408 * python/py-value.c (convert_value_from_python): Use
16409 gdbpy_err_fetch.
16410 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16411 gdbpy_exception_to_string.
16412 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16413 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16414 gdbpy_err_fetch.
16415
16416 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16417
16418 * linux-nat.c (delete_lwp_cleanup): Delete.
16419 (struct lwp_deleter): New struct.
16420 (lwp_info_up): New typedef.
16421 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16422 lwp_info_up.
16423
16424 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16425
16426 * linux-fork.c (class scoped_switch_fork_info): New class.
16427 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16428
16429 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16430
16431 * valops.c (find_overload_match): Remove use of null_cleanup, and
16432 calls to do_cleanups.
16433
16434 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16435
16436 * compile/compile-cplus-types.c
16437 (compile_cplus_instance::decl_name): Handle changes to
16438 cp_func_name.
16439 * cp-support.c (cp_func_name): Update header comment, update
16440 return type.
16441 * cp-support.h (cp_func_name): Update return type in declaration.
16442 * valops.c (find_overload_match): Move temp_func local to top
16443 level of function and change its type. Use temp_func to hold and
16444 delete temporary string obtained from cp_func_name.
16445
16446 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16447
16448 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16449 gdb::char_vector, remove cleanup, and update uses of `msg`.
16450
16451 2019-01-03 Jim Wilson <jimw@sifive.com>
16452
16453 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16454
16455 2019-01-02 Tom Tromey <tom@tromey.com>
16456
16457 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16458 (tdesc_parse_xml): Remove cleanups.
16459 * target-descriptions.h (make_cleanup_free_target_description):
16460 Don't declare.
16461 (target_desc_deleter): New struct.
16462 (target_desc_up): New typedef.
16463 * target-descriptions.c (target_desc_deleter::operator()): Rename
16464 from free_target_description.
16465 (make_cleanup_free_target_description): Remove.
16466
16467 2019-01-02 Tom Tromey <tom@tromey.com>
16468
16469 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16470 constructor, destructor.
16471 (linespec_parser): Remove typedef.
16472 (~linespec_parser): Rename from linespec_parser_delete.
16473 (linespec_lex_to_end, linespec_complete_label)
16474 (linespec_complete): Update.
16475 (decode_line_full): Remove cleanups.
16476 (decode_line_1): Update.
16477
16478 2019-01-02 Tom Tromey <tom@tromey.com>
16479
16480 * python/python-internal.h (inferior_to_inferior_object): Change
16481 return type.
16482 * python/py-exitedevent.c (create_exited_event_object): Update.
16483 * python/py-inferior.c (inferior_to_inferior_object): Return
16484 gdbpy_ref.
16485 (python_new_inferior, python_inferior_deleted)
16486 (thread_to_thread_object, delete_thread_object)
16487 (build_inferior_list, gdbpy_selected_inferior): Update.
16488 * python/py-infthread.c (create_thread_object): Update. Also fail
16489 if inferior_to_inferior_object fails.
16490
16491 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16492
16493 * inferior.h (class inferior) <displaced_step_state>: New field.
16494 * infrun.h (struct displaced_step_state): Move here from
16495 infrun.c. Initialize fields, add constructor.
16496 <inf>: Remove field.
16497 <reset>: New method.
16498 * infrun.c (struct displaced_step_inferior_state): Move to
16499 infrun.h.
16500 (displaced_step_inferior_states): Remove.
16501 (get_displaced_stepping_state): Adust.
16502 (displaced_step_in_progress_any_inferior): Adjust.
16503 (displaced_step_in_progress_thread): Adjust.
16504 (displaced_step_in_progress): Adjust.
16505 (add_displaced_stepping_state): Remove.
16506 (get_displaced_step_closure_by_addr): Adjust.
16507 (remove_displaced_stepping_state): Remove.
16508 (infrun_inferior_exit): Call displaced_step_state.reset.
16509 (use_displaced_stepping): Don't check for NULL.
16510 (displaced_step_prepare_throw): Call
16511 get_displaced_stepping_state.
16512 (displaced_step_fixup): Don't check for NULL.
16513 (prepare_for_detach): Don't check for NULL.
16514
16515 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16516
16517 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16518 in case of call that did not complete.
16519
16520 2019-01-02 Andrey Utkin <autkin@undo.io>
16521
16522 * symfile.c (find_separate_debug_file): Fix search of debug files for
16523 remote debuggee.
16524
16525 2019-01-02 Tom Tromey <tom@tromey.com>
16526
16527 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16528 indentation.
16529 * python/py-frame.c (frapy_older): Remove cast.
16530 (frapy_newer): Likewise.
16531 * python/py-breakpoint.c (local_setattro): Remove cast.
16532 * python/py-arch.c (archpy_name): Remove local variable.
16533 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16534
16535 2019-01-02 Joel Brobecker <brobecker@adacore.com>
16536
16537 * unittests/basic_string_view/element_access/char/empty.cc:
16538 Fix year range in copyright header.
16539
16540 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16541
16542 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16543 Delete.
16544 <operator==>: Update with for removed field.
16545 <hash>: Likewise.
16546 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16547 <isa_features>: ...this.
16548 <abi_features>: New field.
16549 (riscv_isa_flen): Update comment.
16550 (riscv_abi_xlen): New declaration.
16551 (riscv_abi_flen): New declaration.
16552 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16553 isa_features.
16554 (riscv_abi_xlen): New function.
16555 (riscv_isa_flen): Update to get answer from isa_features.
16556 (riscv_abi_flen): New function.
16557 (riscv_has_fp_abi): Update to get answer from abi_features.
16558 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16559 xlen and flen.
16560 (riscv_call_info) <xlen, flen>: Update comment.
16561 (riscv_call_arg_struct): Remove invalid assertions
16562 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16563 is removed.
16564 (riscv_gdbarch_init): Gather isa features and abi features
16565 separately, ensure both match on the gdbarch when reusing an old
16566 gdbarch. Relax an error check to allow 32-bit abi float to run on
16567 a target with 64-bit float hardware.
16568
16569 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16570
16571 * source.c (search_command_helper): Stop reverse search
16572 when line 1 has been searched.
16573
16574 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16575
16576 * record-full.c (record_full_base_target::close): Rewrite
16577 record_full_core_buf_list free logic.
16578
16579 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16580
16581 * break-catch-syscall.c (print_one_catch_syscall): xfree
16582 the last text.
16583
16584 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16585
16586 * top.c (print_gdb_version): Update Copyright year in version
16587 message.
16588
16589 2019-01-01 Joel Brobecker <brobecker@adacore.com>
16590
16591 Update copyright year range in all GDB files.
16592
16593 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
16594
16595 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
16596
16597 For older changes see ChangeLog-2018.
16598 \f
16599 Local Variables:
16600 mode: change-log
16601 left-margin: 8
16602 fill-column: 74
16603 version-control: never
16604 coding: utf-8
16605 End:
16606