Handle multiple target events before commit resume
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
80e899b3
SM
12020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * infrun.c (gdbarch_supports_displaced_stepping): New.
4 (use_displaced_stepping): Break up conditions in smaller pieces.
5 Use gdbarch_supports_displaced_stepping.
6 (displaced_step_prepare_throw): Use
7 gdbarch_supports_displaced_stepping.
8
1c4d7450
SM
92020-02-14 Simon Marchi <simon.marchi@efficios.com>
10
11 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12 displaced_step_closure_up.
13 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14 (struct displaced_step_closure_up):
15 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
16 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
17 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
18 Likewise.
19 * gdbarch.sh (displaced_step_copy_insn): Likewise.
20 * gdbarch.c, gdbarch.h: Re-generate.
21 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
22 displaced_step_closure_up.
23 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
24 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
25 * infrun.h (displaced_step_closure_up): New type alias.
26 (struct displaced_step_inferior_state) <step_closure>: Change
27 type to displaced_step_closure_up.
28 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
29 displaced_step_closure_up.
30 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
31
18b28e13
SM
322020-02-14 Simon Marchi <simon.marchi@efficios.com>
33
34 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
35 std::unique_ptr.
36 * gdbarch.c: Re-generate.
37 * gdbarch.h: Re-generate.
38 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
39 change.
40 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
41 type to std::unique_ptr.
42 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
43 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
44 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
45 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
46 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
47 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
48 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
49 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
50 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
51
b8bfbca5
SM
522020-02-14 Simon Marchi <simon.marchi@efficios.com>
53
54 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
55 std::unique_ptr.
56 (displaced_step_clear): Rename to...
57 (displaced_step_reset): ... this. Just call displaced->reset ().
58 (displaced_step_clear_cleanup): Rename to...
59 (displaced_step_reset_cleanup): ... this.
60 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
61 (displaced_step_fixup): Likewise.
62 (resume_1): Likewise.
63 (handle_inferior_event): Restore child's memory before calling
64 displaced_step_fixup on the parent.
65 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
66 to std::unique_ptr.
67 <step_closure>: Change type to std::unique_ptr.
68
899016d4
JB
692020-02-08 Joel Brobecker <brobecker@adacore.com>
70
71 * version.in: Set GDB version number to 9.1.
72
f49692df
IB
732020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
74
75 PR gdb/25190:
76 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
77 * gdb/remote.c (remote_console_output): Update.
78 * gdb/ui-file.c (fputs_unfiltered): Rename to...
79 (ui_file_puts): ...this.
80 * gdb/ui-file.h (ui_file_puts): Add declaration.
81 * gdb/utils.c (emit_style_escape): Update.
82 (flush_wrap_buffer): Update.
83 (fputs_maybe_filtered): Update.
84 (fputs_unfiltered): Add function.
85
ff491e6b
IB
862020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
87
88 * gdb/event-loop.c (gdb_wait_for_event): Update.
89 * gdb/printcmd.c (printf_command): Update.
90 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
91 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
92 (gdb_os_flush_stderr): Update.
93 * gdb/remote.c (remote_console_output): Update.
94 * gdb/ui-file.c (gdb_flush): Rename to...
95 (ui_file_flush): ...this.
96 (stderr_file::write): Update.
97 (stderr_file::puts): Update.
98 * gdb/ui-file.h (gdb_flush): Rename to...
99 (ui_file_flush): ...this.
100 * gdb/utils.c (gdb_flush): Add function.
101 * gdb/utils.h (gdb_flush): Add declaration.
102
76f5096c
TT
1032020-02-07 Tom Tromey <tromey@adacore.com>
104
105 PR breakpoints/24915:
106 * source.c (find_and_open_source): Do not check basenames_may_differ.
107
975292a9
CB
1082020-01-10 Christian Biesinger <cbiesinger@google.com>
109
110 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
111
3c473fad
TT
1122020-01-07 Tom Tromey <tromey@adacore.com>
113
114 PR build/24937:
115 * stap-probe.c (class stap_static_probe_ops): Add constructor.
116
f7da8e5b
AB
1172020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
118
119 * stack.c (print_frame_info): Move disassemble_next_line code
120 inside source_print block.
121
b8e46eb9
JB
1222020-01-01 Joel Brobecker <brobecker@adacore.com>
123
124 * gdbarch.sh: Update copyright year range of generated files.
125
11bc5fe4
JB
1262020-01-01 Joel Brobecker <brobecker@adacore.com>
127
128 Update copyright year range in all the GDB files automatically
129 handled by our copyright.py script.
130
8b371634
JB
1312020-01-01 Joel Brobecker <brobecker@adacore.com>
132
133 * copyright.py: Convert to Python 3.
134
a292f79f
JB
1352020-01-01 Joel Brobecker <brobecker@adacore.com>
136
137 * copyright.py: Adapt after move of gnulib directory from gdb
138 directory to toplevel directory.
139
1458b0f3
JB
1402020-01-01 Joel Brobecker <brobecker@adacore.com>
141
142 * copyright.py (main): Exit if run from the wrong directory.
143
e9de78be
JB
1442020-01-01 Joel Brobecker <brobecker@adacore.com>
145
146 * top.c (print_gdb_version): Change copyright year to 2020.
147
c0716f3e
CB
1482019-12-26 Christian Biesinger <cbiesinger@google.com>
149
150 * configure: Regenerate.
151 * configure.ac: Quote variable arguments of test.
152 * gdbsupport/common.m4: Likewise.
153
527178f7
EZ
1542019-12-21 Eli Zaretskii <eliz@gnu.org>
155
156 * top.c (print_gdb_configuration): Print "--with-xxhash" or
157 "--without-xxhash" according to HAVE_LIBXXHASH.
158
4ae7258e
TT
1592019-12-18 Tom Tromey <tromey@adacore.com>
160
161 PR build/25268:
162 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
163 type on macOS. Add comment.
164
1c66314d
TT
1652019-12-18 Tom Tromey <tromey@adacore.com>
166
167 PR build/25250:
168 * ui-out.c (ui_out::vmessage): Update.
169 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
170 Rename.
171 (string_field): Update.
172 (signed_field): Update.
173
be19b699
SM
1742019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
175
176 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
177
3f434671
JB
1782019-12-11 Joel Brobecker <brobecker@adacore.com>
179
180 * version.in: Set GDB version number to 9.0.90.DATE-git.
181
07d5aa38
JB
1822019-12-11 Joel Brobecker <brobecker@adacore.com>
183
184 GDB 9.0.90 released.
185
b06b5486
JB
1862019-12-11 Joel Brobecker <brobecker@adacore.com>
187
188 * version.in: Set GDB version number to 9.0.90.
189
41ec388b
JB
1902019-12-11 Joel Brobecker <brobecker@adacore.com>
191
192 * NEWS: Change "Changes since GDB 8.3" into "Changes in GDB 9".
193
c87abc50
JB
1942019-12-11 Joel Brobecker <brobecker@adacore.com>
195
196 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
197 * version.in: Bump version to 9.0.90.DATE-git.
198
2e744276
TT
1992019-12-11 Tom Tromey <tromey@adacore.com>
200
201 PR build/25268:
202 * gdbsupport/thread-pool.c (set_thread_name): New function.
203 (thread_pool::set_thread_count): Don't call pthread_setname_np.
204 (thread_pool::thread_function): Call set_thread_name.
205
aac4760f
TT
2062019-12-11 Tom Tromey <tromey@adacore.com>
207
208 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
209 bfd_get_signed_8.
210
d8edc8b7
PW
2112019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
212
213 * NEWS: Document -raw-values option and the related setting commands.
214 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
215 only set it on when /r is given.
216 * valprint.c (value_print_option_defs): New element raw-values.
217 * Makefile.in: Add the new file.
218
cb511130
CB
2192019-12-10 Christian Biesinger <cbiesinger@google.com>
220
221 * gdbsupport/safe-strerror.c: Supress the unused function warning
222 for select_strerror_r.
223
ab7d13f0
CB
2242019-12-10 Christian Biesinger <cbiesinger@google.com>
225
226 * config.in: Regenerate.
227 * configure: Regenerate.
228 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
229 safe_strerror instead of strerror.
230 * gdbsupport/common.m4: Don't check for strerror.
231 * gdbsupport/safe-strerror.c: Support both the glibc version
232 of strerror_r and the XSI version.
233
6c71eb7d
TT
2342019-12-10 Tom Tromey <tromey@adacore.com>
235
236 * ada-typeprint.c (print_choices): Use a single "?".
237 (print_variant_part): Print "?" if the discriminant name
238 is not known.
239
bac7c5cf
GB
2402019-12-10 George Barrett <bob@bob131.so>
241
242 Fix scripted probe breakpoints.
243 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
244 declaration forward.
245 (breakpoint_ops_for_event_location_type)
246 (breakpoint_ops_for_event_location): Add function definitions.
247 (break_command_1, trace_command): Use
248 breakpoint_ops_for_event_location.
249 * breakpoint.h (breakpoint_ops_for_event_location): Add function
250 declarations.
251 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
252 breakpoint_ops_for_event_location.
253 * python/py-breakpoint.c (bppy_init): Use
254 breakpoint_ops_for_event_location.
255
330f1d38
TBA
2562019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
257
258 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
259 when ranking an lvalue argument for an rvalue parameter.
260
b1f0c0b9
WA
2612019-12-08 Wataru Ashihara <wataash@wataash.com>
262
263 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
264 template argument for scoped_restore_tmpl from bool to int.
265
aa2d5a42
KS
2662019-12-07 Keith Seitz <keiths@redhat.com>
267
268 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
269 (build_id_to_debug_bfd): Make static, rewriting to use
270 build_id_to_bfd_suffix.
271 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
272 adding `suffix' parameter. Append SUFFIX to file names
273 when searching for matching files.
274 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
275 (build_id_to_exec_bfd): Likewise.
276 * build-id.h (build_id_to_debug_bfd): Clarify that function
277 searches for BFD of debug info file.
278 (build_id_to_exec_bfd): Declare.
279 * corelow.c: Include build-id.h.
280 (locate_exec_from_corefile_build_id): New function.
281 (core_target_open): If no executable BFD is found,
282 search for a core file BFD using build-id.
283
dfb65191
CB
2842019-12-06 Christian Biesinger <cbiesinger@google.com>
285
286 * bcache.c: Put in namespace gdb.
287 * bcache.h: Likewise.
288 * gdbtypes.c (check_types_worklist): Update.
289 (types_deeply_equal): Update.
290 * macrotab.c (struct macro_table) <bcache>: Update.
291 (new_macro_table): Update.
292 * macrotab.h (struct bcache): Put this forward declaration
293 inside namespace gdb.
294 (new_macro_table): Update.
295 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
296 Update.
297 <macro_cache>: Update.
298 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
299
93e55f0a
TV
3002019-12-06 Tom de Vries <tdevries@suse.de>
301
302 PR symtab/24971
303 * block.c (best_symbol, better_symbol): New function.
304 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
305 decl.
306
06acc08f
TBA
3072019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
308
309 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
310 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
311 for ranking see-through reference cases.
312
e0fad1ea
PW
3132019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
314 * stack.c (faas_command): Check a command is provided.
315 * thread.c (taas_command, tfaas_command): Likewise.
316
908641f5
PW
3172019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
318 * inferior.c (prune_inferiors): Only call delete_inferior,
319 Do not modify the inferior list.
320
b858499d
SM
3212019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
322
323 * c-exp.y: Update calls to lookup_typename,
324 lookup_signed_typename and lookup_unsigned_typename.
325 * c-lang.c (evaluate_subexp_c): Likewise.
326 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
327 Likewise.
328 * eval.c (binop_promote): Likewise.
329 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
330 (lookup_unsigned_typename): Likewise.
331 (lookup_signed_typename): Likewise.
332 * gdbtypes.h (lookup_unsigned_typename): Likewise.
333 (lookup_signed_typename): Likewise.
334 (lookup_typename): Likewise.
335 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
336 lookup_typename, lookup_signed_typename,
337 lookup_unsigned_typename.
338 * m2-exp.y: Likewise.
339 * printcmd.c (printf_wide_c_string): Likewise.
340 (ui_printf): Likewise.
341 * python/py-type.c (typy_lookup_typename): Likewise.
342 * python/py-xmethods.c (python_xmethod_worker::invoke):
343 Likewise.
344 * rust-exp.y: Likewise.
345
3a8fa228
CB
3462019-12-04 Christian Biesinger <cbiesinger@google.com>
347
348 * configure.nat (obsd64): Add missing files x86-nat.o and
349 nat/x86-dregs.o.
350
2dbc041e
TT
3512019-12-04 Tom Tromey <tom@tromey.com>
352
353 * valprint.c (val_print_string): Use metadata_style.
354 * go-valprint.c (print_go_string): Use metadata style.
355 * p-valprint.c (pascal_object_print_static_field): Use metadata
356 style.
357 * cp-valprint.c (cp_print_static_field): Use metadata style.
358
36c8fb93
AB
3592019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
360 Chris January <chris.january@arm.com>
361
362 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
363 tokens.
364 (typebase): New patterns for complex, single/double precision, and
365 single/double complex.
366 (f77_keywords): Change token for complex keyword, and add single,
367 double, and precision keywords.
368
c6170c2c
SM
3692019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
370
371 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
372 "info io_registers".
373
894ecaf4
SM
3742019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
375
376 * regcache.c (cooked_read_test): Initialize thread list of
377 mock_inferior.
378
be155ebb
SM
3792019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
380
381 * aarch64-linux-tdep.c: Remove includes.
382
c577cdd7
SM
3832019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
384
385 * aarch64-tdep.c: Remove includes.
386
610cfd61
SM
3872019-12-04 Simon Marchi <simon.marchi@efficios.com>
388
389 * filtered-iterator.h (filtered_iterator) <operator==,
390 operator!=>: Compare wrapped iterators, not wrapped pointers.
391 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
392 unittests/filtered_iterator-selftests.c.
393 * unittests/filtered_iterator-selftests.c: New file.
394
a05cf17a
TT
3952019-12-04 Tom Tromey <tromey@adacore.com>
396
397 * gdbtypes.c (create_range_type): Inherit endianity
398 from base type.
399
d5a22e77
TT
4002019-12-04 Tom Tromey <tromey@adacore.com>
401
402 * ada-lang.c (decode_constrained_packed_array)
403 (ada_value_assign, value_assign_to_component): Update.
404 * dwarf2loc.c (rw_pieced_value, access_memory)
405 (dwarf2_compile_expr_to_ax): Update.
406 * dwarf2read.c (dwarf2_add_field): Update.
407 * eval.c (evaluate_subexp_standard): Update.
408 * gdbarch.c, gdbarch.h: Rebuild.
409 * gdbarch.sh (bits_big_endian): Remove.
410 * gdbtypes.h (union field_location): Update comment.
411 * target-descriptions.c (make_gdb_type): Update.
412 * valarith.c (value_bit_index): Update.
413 * value.c (struct value) <bitpos>: Update comment.
414 (unpack_bits_as_long, modify_field): Update.
415 * value.h (value_bitpos): Update comment.
416
7ab4a236
TT
4172019-12-04 Tom Tromey <tromey@adacore.com>
418
419 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
420 endian-ness.
421
103a685e
TT
4222019-12-04 Tom Tromey <tromey@adacore.com>
423
424 * dwarf2read.c (dwarf2_init_float_type)
425 (dwarf2_init_complex_target_type): Add byte_order parameter.
426 (read_base_type): Compute byte order earlier.
427 * gdbtypes.c (init_float_type): Add byte_order parameter.
428 * gdbtypes.h (init_float_type): Add byte_order parameter.
429
7a9e9f9f
TT
4302019-12-04 Tom Tromey <tromey@adacore.com>
431
432 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
433
feee869b
TT
4342019-12-04 Tom Tromey <tromey@adacore.com>
435
436 * dwarf2read.c (process_structure_scope): Initialize
437 "discr_offset".
438
c2512106
AB
4392019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
440
441 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
442 add it into the search spec.
443 (parse_max_results_option): New function.
444 (mi_info_functions_or_variables): Parse -max-results flag and pass
445 it to mi_symbol_info.
446 (mi_cmd_symbol_info_modules): Likewise.
447 (mi_cmd_symbol_info_types): Likewise.
448 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
449 return type to bool, change result container into a set, and don't
450 add new results if we have enough already.
451 (global_symbol_searcher::add_matching_msymbols): Change return
452 type to bool, and don't add new results if we have enough already.
453 (sort_search_symbols_remove_dups): Delete.
454 (global_symbol_searcher::search): Early exit from search loop when
455 we have enough results. Use a std::set to collect the results
456 from calling add_matching_symbols.
457 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
458 member function.
459 (global_symbol_searcher) <m_max_search_results>: New member
460 variable.
461 (global_symbol_searcher) <add_matching_symbols>: Update header
462 comment and change return type to bool.
463 (global_symbol_searcher) <add_matching_msymbols>: Update header
464 comment and change return type to bool.
465
f97a63c5
AB
4662019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
467
468 * symtab.c (symbol_search::compare_search_syms): Update header
469 comment.
470 (global_symbol_searcher::is_suitable_msymbol): New function.
471 (global_symbol_searcher::expand_symtabs): New function.
472 (global_symbol_searcher::add_matching_symbols): New function.
473 (global_symbol_searcher::add_matching_msymbols): New function.
474 (global_symbol_searcher::search): Move most of the content
475 into the new functions above, and call them as needed.
476 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
477 function.
478 (global_symbol_searcher) <add_matching_symbols>: New member
479 function.
480 (global_symbol_searcher) <add_matching_msymbols>: New member
481 function.
482 (global_symbol_searcher) <is_suitable_msymbol>: New member
483 function.
484
293b38d6
AB
4852019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
486
487 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
488 -symbol-info-module-variables entries.
489 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
490 (mi_cmd_symbol_info_module_variables): Declare.
491 * mi/mi-symbol-cmds.c
492 (module_symbol_search_iterator): New typedef.
493 (output_module_symbols_in_single_module_and_file): New function.
494 (output_module_symbols_in_single_module): New function.
495 (mi_info_module_functions_or_variables): New function.
496 (mi_cmd_symbol_info_module_functions): New function.
497 (mi_cmd_symbol_info_module_variables): New function.
498 * NEWS: Mention new MI command.
499
4cbd39b2
CB
5002019-12-03 Christian Biesinger <cbiesinger@google.com>
501
502 * bcache.c (hash): Remove.
503 (hash_continue): Remove.
504 * bcache.h (hash): Remove.
505 (hash_continue): Remove.
506 (struct bcache) <ctor>: Update.
507 * psymtab.c (psymbol_hash): Update.
508 * stabsread.c (hashname): Update.
509 * utils.h (fast_hash): Add an argument for a start value,
510 defaulting to zero.
511
82f910ea
PW
5122019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
513 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
514 (destroy_block_symbol_cache): New function.
515 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
516 (resize_symbol_cache): Likewise.
517
de2396d0
TT
5182019-12-02 Tom Tromey <tom@tromey.com>
519
520 * unittests/tui-selftests.c (run_tests): Make conditional.
521 (_initialize_tui_selftest): Make conditional.
522
638d85bc
CB
5232019-12-02 Christian Biesinger <cbiesinger@google.com>
524
525 * aix-thread.c (debug_aix_thread): Change type to bool.
526
7532a164
LM
5272019-12-02 Luis Machado <luis.machado@linaro.org>
528
529 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
530
216a7e6b
AB
5312019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
532
533 * dwarf2read.c (read_tag_string_type): Read the fields required to
534 make a dynamic string, and possibly create a dynamic range for the
535 string.
536 (attr_to_dynamic_prop): Setup is_reference based on the type of
537 attribute being processed.
538 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
539 (resolve_dynamic_array): Rename to...
540 (resolve_dynamic_array_or_string): ...this, update header comment,
541 and accept TYPE_CODE_STRING.
542 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
543
11a8b164
AB
5442019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
545
546 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
547 of its implementation from...
548 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
549 the new function.
550
5bbd8269
AB
5512019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
552
553 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
554 create a range with stride where appropriate.
555 * f-valprint.c: Include 'gdbarch.h'.
556 (f77_print_array_1): Take the stride into account when walking the
557 array. Also convert the stride into addressable units.
558 * gdbtypes.c (create_range_type): Initialise the stride to
559 constant zero.
560 (create_range_type_with_stride): New function, initialise the
561 range as normal, and then setup the stride.
562 (has_static_range): Include the stride here. Also change the
563 return type to bool.
564 (create_array_type_with_stride): Consider the range stride if the
565 array isn't given its own stride.
566 (resolve_dynamic_range): Resolve the stride if needed.
567 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
568 (struct range_bounds) <flag_is_byte_stride>: New member variable.
569 (TYPE_BIT_STRIDE): Define.
570 (TYPE_ARRAY_BIT_STRIDE): Define.
571 (create_range_type_with_stride): Declare.
572 * valarith.c (value_subscripted_rvalue): Take range stride into
573 account when walking the array.
574
82e3b564
TT
5752019-12-01 Tom Tromey <tom@tromey.com>
576
577 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
578 specially.
579
517d261d
TT
5802019-12-01 Tom Tromey <tom@tromey.com>
581
582 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
583 \0.
584 * unittests/tui-selftests.c: New file.
585 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
586
484c9b64
TT
5872019-12-01 Tom Tromey <tom@tromey.com>
588
589 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
590
a2a7af0c
TT
5912019-12-01 Tom Tromey <tom@tromey.com>
592
593 * NEWS: Document new settings.
594 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
595 * tui/tui-win.c (_initialize_tui_win): Add border style
596 observers.
597 * tui/tui-io.h (tui_apply_style): Declare.
598 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
599 longer static.
600 (apply_ansi_escape, tui_set_reverse_mode): Update.
601 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
602 Add "skip_intensity" parameter.
603 <changed>: New member.
604 <do_set_value>: Declare.
605 (tui_border_style, tui_active_border_style): Declare.
606 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
607 globals.
608 (cli_style_option): Initialize "changed".
609 (cli_style_option::do_set_value): New function.
610 (cli_style_option::add_setshow_commands): Add "skip_intensity"
611 parameter. Update.
612 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
613 (_initialize_cli_style): Update. Create TUI border style
614 commands.
615
d1da6b01
TT
6162019-12-01 Tom Tromey <tom@tromey.com>
617
618 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
619 parameter.
620 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
621 parameter.
622 * tui/tui-win.h (compact_source): Declare.
623 * tui/tui-win.c (compact_source): New global.
624 (tui_set_compact_source, tui_show_compact_source): New functions.
625 (_initialize_tui_win): Add "compact-source" setting.
626 * tui/tui-source.c (tui_source_window::set_contents): Handle
627 compact_source setting.
628 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
629 * NEWS: Document new setting.
630
489dbda6
TT
6312019-11-30 Tom Tromey <tom@tromey.com>
632
633 * dwarf2read.c (dwarf2_add_field): Include field offset when
634 computing variant part length.
635
bf498525
PW
6362019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
637 * NEWS: Mention define-prefix. Tell that command names can now
638 contain a . character.
639
be09caf1
PW
6402019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
641
642 * command.h (valid_cmd_char_p): Declare.
643 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
644 the check of valid command char.
645 (find_command_name_length, valid_user_defined_cmd_name_p): Use
646 valid_cmd_char_p.
647 * cli/cli-script.c (validate_comname): Likewise.
648 * completer.c (gdb_completer_command_word_break_characters):
649 Do not remove . from the word break char, update comments.
650 (complete_line_internal_1): Use valid_cmd_char_p.
651 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
652 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
653
c6ac7fc9
PW
6542019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
655
656 * cli/cli-script.c (do_define_command): Ensure a redefined
657 prefix command is kept as a prefix command.
658 (define_prefix_command): New function.
659 (show_user_1): Report user defined prefixes.
660 (_initialize_cli_script): Create the new 'define-prefix' command.
661 Add completers for 'define' and 'document'.
662 * top.c (execute_command): If command is a user-defined prefix only
663 command, report the list of commands for this prefix command.
664
a992a3b0
TBA
6652019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
666
667 * valops.c (find_oload_champ): Improve debug output.
668
e9194a1a
TBA
6692019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
670
671 * valops.c (find_oload_champ): Print part of debug messages
672 before the badness vector is std::move'd.
673
53a008a6
TT
6742019-11-28 Tom Tromey <tom@tromey.com>
675
676 * value.c (creal_internal_fn): Fix comment.
677
bab05c83
TT
6782019-11-28 Tom Tromey <tom@tromey.com>
679
680 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
681 flag_bound_evaluated>: Now unsigned.
682
2522f049
TT
6832019-11-28 Tom Tromey <tom@tromey.com>
684
685 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
686 declare.
687
38b49e22
MS
6882019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
689
690 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
691 debug output.
692 * jit.c (jit_unregister_code): Add debug print to match
693 `jit_register_code`.
694
35125921
CB
6952019-11-27 Christian Biesinger <cbiesinger@google.com>
696
697 * NEWS: Mention the new multithreaded symbol loading.
698
62e77f56
CB
6992019-11-27 Christian Biesinger <cbiesinger@google.com>
700
701 * maint.c (n_worker_threads): Default to 0.
702 (worker_threads_disabled): New function.
703 * maint.h (worker_threads_disabled): New function.
704 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
705 here if worker_threads_disabled () is true.
706 (minimal_symbol_reader::install): Skip all threading if
707 worker_threads_disabled () is true.
708
f29d7f6b
CB
7092019-11-27 Christian Biesinger <cbiesinger@google.com>
710
711 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
712 hash code if possible.
713 (add_minsym_to_demangled_hash_table): Likewise.
714 (minimal_symbol_reader::install): Compute the hash codes for msymbol
715 on the background thread.
716 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
717 Add these fields.
718
e76b2246
CB
7192019-11-27 Christian Biesinger <cbiesinger@google.com>
720
721 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
722 of the mangled name on the background thread.
723 * symtab.c (symbol_set_names): Allow passing in the hash of the
724 linkage_name.
725 * symtab.h (symbol_set_names): Likewise.
726
8d9a2568
KB
7272019-11-27 Kevin Buettner <kevinb@redhat.com>
728
729 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
730 physnames are computed for inherited DIEs.
731
fad03f6e
TT
7322019-11-27 Tom Tromey <tromey@adacore.com>
733
734 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
735 backslashes.
736 * cp-support.c: Remove unnecessary backslashes.
737
43678b0a
CB
7382019-11-27 Christian Biesinger <cbiesinger@google.com>
739
740 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
741 with sym->set_linkage_name.
742 * coffread.c (coff_read_enum_type): Likewise.
743 * mdebugread.c (parse_symbol): Likewise.
744 * stabsread.c (patch_block_stabs): Likewise.
745 (define_symbol): Likewise.
746 (read_enum_type): Likewise.
747 (common_block_end): Likewise.
748 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
749 function.
750 (SYMBOL_SET_LINKAGE_NAME): Remove.
751 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
752 with sym->set_linkage_name.
753
db5960b4
AB
7542019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
755
756 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
757 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
758 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
759 * NEWS: Mention new MI command.
760
7dc42066
AB
7612019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
762
763 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
764 '-symbol-info-types', and '-symbol-info-variables'.
765 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
766 (mi_cmd_symbol_info_types): Declare.
767 (mi_cmd_symbol_info_variables): Declare.
768 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
769 (output_debug_symbol): New function.
770 (output_nondebug_symbol): New function.
771 (mi_symbol_info): New function.
772 (mi_info_functions_or_variables): New function.
773 (mi_cmd_symbol_info_functions): New function.
774 (mi_cmd_symbol_info_types): New function.
775 (mi_cmd_symbol_info_variables): New function.
776 * NEWS: Mention new commands.
777
5f512a7d
AB
7782019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
779
780 * symtab.c (symbol_to_info_string): New function, most content
781 moved from print_symbol_info, but updated to return a std::string.
782 (print_symbol_info): Update to use symbol_to_info_string and print
783 returned string.
784 * symtab.h (symbol_to_info_string): Declare new function.
785
470c0b1c
AB
7862019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
787
788 * python/python.c (gdbpy_rbreak): Convert to using
789 global_symbol_searcher.
790 * symtab.c (file_matches): Convert return type to bool, change
791 file list to std::vector, update header comment.
792 (search_symbols): Rename to...
793 (global_symbol_searcher::search): ...this and update now its
794 a member function of global_symbol_searcher. Take account of the
795 changes to file_matches.
796 (symtab_symbol_info): Convert to using global_symbol_searcher.
797 (rbreak_command): Likewise.
798 (search_module_symbols): Likewise.
799 * symtab.h (enum symbol_search): Update comment.
800 (search_symbols): Remove declaration.
801 (class global_symbol_searcher): New class.
802
57357d9d
TT
8032019-11-26 Tom Tromey <tromey@adacore.com>
804
805 * cp-support.c (_initialize_cp_support): Conditionally initialize
806 gdb_demangle_attempt_core_dump.
807
3ea16160
TT
8082019-11-26 Tom Tromey <tom@tromey.com>
809
810 * python/py-function.c (fnpy_init): Update.
811 * value.h (add_internal_function): Adjust declaration.
812 * value.c (function_destroyer): Remove.
813 (do_add_internal_function): Don't set destroyer or copy name.
814 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
815 Set name_allocated.
816 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
817 (cmdpy_init): Set name_allocated.
818 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
819 member.
820 (~cmd_list_element): Free "name" if needed.
821
1a6d41c6
TT
8222019-11-26 Tom Tromey <tom@tromey.com>
823
824 * value.h (add_internal_function): Add new overload. Move
825 documentation from value.h.
826 * value.c (do_add_internal_function): New function.
827 (add_internal_function): Use it. Add new overload.
828 (function_destroyer): Don't free doc.
829 * python/py-function.c (fnpy_init): Update.
830
8318f3c3
TT
8312019-11-26 Tom Tromey <tom@tromey.com>
832
833 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
834 (cmdpy_init): Set "doc_allocated".
835
4da8c3a8
TT
8362019-11-26 Tom Tromey <tom@tromey.com>
837
838 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
839 name of worker thread.
840 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
841 pthread_setname_np.
842 * configure, config.in: Rebuild.
843
971db5e2
TT
8442019-11-26 Tom Tromey <tom@tromey.com>
845
846 * python/python.c (class gdbpy_gil): New.
847 (struct gdbpy_event): Add constructor, destructor, operator().
848 (gdbpy_post_event): Use run_on_main_thread.
849 (gdbpy_initialize_events): Remove.
850 (do_start_initialization): Update.
851
22138db6
TT
8522019-11-26 Tom Tromey <tom@tromey.com>
853
854 * NEWS: Add entry.
855 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
856 commands. Call update_thread_pool_size.
857 (update_thread_pool_size, maintenance_set_worker_threads): New
858 functions.
859 (n_worker_threads): New global.
860
d55c9a68
TT
8612019-11-26 Christian Biesinger <cbiesinger@google.com>
862 Tom Tromey <tom@tromey.com>
863
864 * minsyms.c (minimal_symbol_reader::install): Use
865 parallel_for_each.
866 * gdbsupport/parallel-for.h: New file.
867 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
868
a0b57563
CB
8692019-11-26 Christian Biesinger <cbiesinger@google.com>
870 Tom Tromey <tom@tromey.com>
871
872 * gdbsupport/thread-pool.h: New file.
873 * gdbsupport/thread-pool.c: New file.
874 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
875 (HFILES_NO_SRCDIR): Add thread-pool.h.
876
3b3978bc
TT
8772019-11-26 Tom Tromey <tom@tromey.com>
878
879 * event-top.h (thread_local_segv_handler): Declare.
880 * event-top.c (thread_local_segv_handler): New global.
881 (install_handle_sigsegv, handle_sigsegv): New functions.
882 (async_init_signals): Install SIGSEGV handler.
883 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
884 thread-local.
885 (report_failed_demangle): New function.
886 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
887 handler-setting code, instead use segv_handler. Run warning code
888 on main thread.
889
9411c49e
TT
8902019-11-26 Tom Tromey <tom@tromey.com>
891
892 * run-on-main-thread.c: New file.
893 * run-on-main-thread.h: New file.
894 * unittests/main-thread-selftests.c: New file.
895 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
896 main-thread-selftests.c.
897 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
898 (COMMON_SFILES): Add run-on-main-thread.c.
899
c3efb965
TT
9002019-11-26 Tom Tromey <tom@tromey.com>
901
902 * main.c (setup_alternate_signal_stack): Remove.
903 (captured_main_1): Use gdb::alternate_signal_stack.
904 * gdbsupport/alt-stack.h: New file.
905
21987b9c
TT
9062019-11-26 Tom Tromey <tom@tromey.com>
907
908 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
909 Remove comment.
910 (save_original_signals_state, restore_original_signals_state): Use
911 gdb_sigmask.
912 * linux-nat.c (block_child_signals, restore_child_signals_mask)
913 (_initialize_linux_nat): Use gdb_sigmask.
914 * guile/guile.c (_initialize_guile): Use block_signals.
915 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
916 * gdbsupport/gdb-sigmask.h: New file.
917 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
918 * cp-support.c (gdb_demangle): Use gdb_sigmask.
919 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
920 pthread_sigmask.
921 * configure, config.in: Rebuild.
922 * gdbsupport/block-signals.h: New file.
923
5e030278
TT
9242019-11-26 Tom Tromey <tom@tromey.com>
925
926 * acinclude.m4: Include ax_pthread.m4.
927 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
928 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
929 (CLIBS): Use PTHREAD_LIBS.
930 (aclocal_m4_deps): Add ax_pthread.m4.
931 * config.in, configure: Rebuild.
932 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
933
5a79c107
TT
9342019-11-26 Tom Tromey <tom@tromey.com>
935
936 * symtab.h (struct minimal_symbol) <name_set>: New member.
937 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
938 Don't call symbol_set_names.
939 (minimal_symbol_reader::install): Call symbol_set_names.
940
aa369509
PW
9412019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
942
943 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
944 restore_active_ext_lang, as GIL is needed for (indirectly)
945 called PyOS_InterruptOccurred.
946
cadc9cb8
SM
9472019-11-26 Simon Marchi <simon.marchi@efficios.com>
948
949 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
950 definition.
951
d04afd58
SM
9522019-11-26 Simon Marchi <simon.marchi@efficios.com>
953
954 * remote-sim.c (simulator_command): Make static, remove
955 declaration.
956
dd694d77
SM
9572019-11-26 Simon Marchi <simon.marchi@efficios.com>
958
959 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
960 static.
961 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
962 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
963 (main): Likewise.
964 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
965 (main): Likewise.
966 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
967 (main): Likewise.
968 * unittests/basic_string_view/element_access/char/1.cc (test01):
969 Likewise.
970 (main): Likewise.
971 * unittests/basic_string_view/element_access/char/empty.cc (main):
972 Likewise.
973 * unittests/basic_string_view/element_access/char/front_back.cc
974 (test01): Likewise.
975 (main): Likewise.
976 * unittests/basic_string_view/inserters/char/2.cc (test05):
977 Likewise.
978 (main): Likewise.
979 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
980 (test01): Likewise.
981 (main): Likewise.
982 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
983 (test01): Likewise.
984 (main): Likewise.
985 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
986 Likewise.
987 * unittests/basic_string_view/operations/compare/char/1.cc
988 (test01): Likewise.
989 (main): Likewise.
990 * unittests/basic_string_view/operations/compare/char/13650.cc
991 (test01): Likewise.
992 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
993 Likewise.
994 (main): Likewise.
995 * unittests/basic_string_view/operations/data/char/1.cc (test01):
996 Likewise.
997 (main): Likewise.
998 * unittests/basic_string_view/operations/find/char/1.cc (test01):
999 Likewise.
1000 (main): Likewise.
1001 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1002 Likewise.
1003 (main): Likewise.
1004 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1005 Likewise.
1006 (main): Likewise.
1007 * unittests/basic_string_view/operations/find/char/4.cc (main):
1008 Likewise.
1009 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1010 Likewise.
1011 (main): Likewise.
1012 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1013 Likewise.
1014 (main): Likewise.
1015 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1016 Likewise.
1017 (main): Likewise.
1018 * unittests/basic_string_view/operations/substr/char/1.cc
1019 (test01): Likewise.
1020 (main): Likewise.
1021 * unittests/basic_string_view/operators/char/2.cc (main):
1022 Likewise.
1023 * unittests/optional/assignment/1.cc (test): Likewise.
1024 * unittests/optional/assignment/2.cc (test): Likewise.
1025 * unittests/optional/assignment/3.cc (test): Likewise.
1026 * unittests/optional/assignment/4.cc (test): Likewise.
1027 * unittests/optional/assignment/5.cc (test): Likewise.
1028 * unittests/optional/assignment/6.cc (test): Likewise.
1029 * unittests/optional/assignment/7.cc (test): Likewise.
1030 * unittests/optional/cons/copy.cc (test): Likewise.
1031 * unittests/optional/cons/default.cc (test): Likewise.
1032 * unittests/optional/cons/move.cc (test): Likewise.
1033 * unittests/optional/cons/value.cc (test): Likewise.
1034 * unittests/optional/in_place.cc (test): Likewise.
1035 * unittests/optional/observers/1.cc (test): Likewise.
1036 * unittests/optional/observers/2.cc (test): Likewise.
1037
3b5c1d49
SM
10382019-11-26 Simon Marchi <simon.marchi@efficios.com>
1039
1040 * tui-win.h (tui_set_var_cmd): Remove.
1041 * tui-win.c (tui_set_var_cmd): Make static.
1042
adce99fe
SM
10432019-11-26 Simon Marchi <simon.marchi@efficios.com>
1044
1045 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1046 rbreak_command_wrapper): Remove.
1047 * symtab.c (rbreak_command_wrapper): Remove.
1048
fe3adccf
SM
10492019-11-26 Simon Marchi <simon.marchi@efficios.com>
1050
1051 * inferior.h (info_terminal_command): Remove declaration.
1052 * inflow.c (info_terminal_command): Make static.
1053
b926335f
SM
10542019-11-26 Simon Marchi <simon.marchi@efficios.com>
1055
1056 * inferior.c (exit_inferior_silent): Remove.
1057
b62f6f54
SM
10582019-11-26 Simon Marchi <simon.marchi@efficios.com>
1059
1060 * dictionary.c (dict_empty, mdict_empty): Remove.
1061 * dictionary.c (mdict_empty): Remove.
1062
cb8c24b6
SM
10632019-11-26 Simon Marchi <simon.marchi@efficios.com>
1064
1065 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1066 (arc_insn_get_memory_offset): Likewise.
1067 (arc_insn_dump): Likewise.
1068 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1069 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1070 * dictionary.c (dict_iterator_next): Likewise.
1071 (dict_iter_match_first): Likewise.
1072 (dict_iter_match_next): Likewise.
1073 * f-lang.c (evaluate_subexp_f): Likewise.
1074 * hppa-tdep.c (hppa_read_pc): Likewise.
1075 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1076 * parse.c (write_exp_elt_msym): Likewise.
1077 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1078 * remote.c (remote_packet_size): Likewise.
1079 (remote_notif_stop_parse): Likewise.
1080 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1081 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1082 * source.c (prepare_path_for_appending): Likewise.
1083 * sparc64-linux-tdep.c
1084 (sparc64_linux_handle_segmentation_fault); Likewise.
1085 * stack.c (frame_selection_by_function_completer): Likewise.
1086
781597ff
SM
10872019-11-26 Simon Marchi <simon.marchi@efficios.com>
1088
1089 * completer.c (set_gdb_completion_word_break_characters):
1090 Remove.
1091
23baa4cc
SM
10922019-11-26 Simon Marchi <simon.marchi@efficios.com>
1093
1094 * dwarf-index-write.c: Include dwarf-index-write.h.
1095 * mi/mi-interp.c: Include mi/mi-interp.h.
1096
23767560
SM
10972019-11-26 Simon Marchi <simon.marchi@efficios.com>
1098
1099 * aarch32-tdep.c: Include aarch32-tdep.h.
1100 * aarch32-tdep.h: Forward-declare struct target_desc.
1101
6d91ce9a
CB
11022019-11-26 Christian Biesinger <cbiesinger@google.com>
1103
1104 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1105 strerror.
1106 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1107 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1108
3cf2f237
TV
11092019-11-25 Tom de Vries <tdevries@suse.de>
1110
1111 * contrib/words.sh: Add -c option.
1112
5b89c67a
CB
11132019-11-25 Christian Biesinger <cbiesinger@google.com>
1114
1115 * solib.c (solib_find_1): Change int to bool.
1116 (exec_file_find): Change int to bool.
1117 (solib_find): Change int to bool.
1118 (solib_read_symbols): Change int to bool.
1119 (solib_used): Change int to bool.
1120 (solib_add): Change int to bool.
1121 (info_sharedlibrary_command): Change int to bool.
1122 (solib_contains_address_p): Change int to bool.
1123 (solib_keep_data_in_core): Change int to bool.
1124 (in_solib_dynsym_resolve_code): Change int to bool.
1125 (reload_shared_libraries_1): Change int to bool.
1126 (gdb_sysroot_changed): Change int to bool.
1127 * solib.h (solib_read_symbols): Change int to bool.
1128 (solib_contains_address_p): Change int to bool.
1129 (solib_keep_data_in_core): Change int to bool.
1130 (in_solib_dynsym_resolve_code): Change int to bool.
1131 (libpthread_name_p): Change int to bool.
1132
6cc8564b
LM
11332019-11-25 Luis Machado <luis.machado@linaro.org>
1134
1135 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1136 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1137 (remote_packet_max_chars): New static global.
1138 (show_remote_packet_max_chars): New function.
1139 (remote_target::putpkt_binary): Adjust to use new
1140 remote_packet_max_chars option.
1141 (remote_target::getpkt_or_notif_sane_1): Likewise.
1142 (_initialize_remote): Register new remote-packet-max-chars option.
1143
a7cdaa91
SM
11442019-11-24 Simon Marchi <simon.marchi@efficios.com>
1145
1146 * m68k-linux-nat.c: Include gdbarch.h.
1147
26abc753
TT
11482019-11-24 Tom Tromey <tom@tromey.com>
1149
1150 * symfile.c (read_symbols): Update.
1151 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1152 bool.
1153 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1154 (psym_lookup_symbol, psym_find_last_source_symtab)
1155 (psym_forget_cached_source_info, psym_print_stats)
1156 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1157 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1158 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1159 (psym_find_compunit_symtab_by_address)
1160 (maintenance_print_psymbols, maintenance_info_psymtabs)
1161 (maintenance_check_psymtabs): Update.
1162 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1163 bool.
1164
012fc909
TT
11652019-11-22 Tom Tromey <tom@tromey.com>
1166
1167 * observable.h: Update comments.
1168
c83d8d32
TT
11692019-11-22 Tom Tromey <tromey@adacore.com>
1170
1171 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1172 (print_ada_task_info): Don't try to fetch thread id if task is not
1173 alive.
1174
987012b8
CB
11752019-11-22 Christian Biesinger <cbiesinger@google.com>
1176
1177 * ada-exp.y: Update.
1178 * ada-lang.c (sort_choices): Update.
1179 (ada_print_symbol_signature): Update.
1180 (resolve_subexp): Update.
1181 (ada_parse_renaming): Update.
1182 (ada_read_renaming_var_value): Update.
1183 (lesseq_defined_than): Update.
1184 (remove_extra_symbols): Update.
1185 (remove_irrelevant_renamings): Update.
1186 (ada_add_block_symbols): Update.
1187 (ada_collect_symbol_completion_matches): Update.
1188 (ada_is_renaming_symbol): Update.
1189 (aggregate_assign_from_choices): Update.
1190 (ada_evaluate_subexp): Update.
1191 (ada_has_this_exception_support): Update.
1192 (ada_is_non_standard_exception_sym): Update.
1193 (ada_add_exceptions_from_frame): Update.
1194 (ada_add_global_exceptions): Update.
1195 (ada_print_subexp): Update.
1196 * ax-gdb.c (gen_var_ref): Update.
1197 (gen_maybe_namespace_elt): Update.
1198 (gen_expr_for_cast): Update.
1199 (gen_expr): Update.
1200 * block.h: Update.
1201 * blockframe.c (find_pc_partial_function): Update.
1202 * breakpoint.c (print_breakpoint_location): Update.
1203 (update_static_tracepoint): Update.
1204 * btrace.c (ftrace_print_function_name): Update.
1205 (ftrace_function_switched): Update.
1206 * buildsym.c (find_symbol_in_list): Update.
1207 * c-exp.y: Update.
1208 * c-typeprint.c (c_print_typedef): Update.
1209 (c_type_print_template_args): Update.
1210 * cli/cli-cmds.c (edit_command): Update.
1211 (list_command): Update.
1212 (print_sal_location): Update.
1213 * coffread.c (patch_opaque_types): Update.
1214 (process_coff_symbol): Update.
1215 (coff_read_enum_type): Update.
1216 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1217 (convert_one_symbol): Update.
1218 (hash_symname): Update.
1219 (eq_symname): Update.
1220 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1221 * compile/compile-cplus-types.c (debug_print_scope): Update.
1222 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1223 * compile/compile-object-load.c (get_out_value_type): Update.
1224 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1225 (search_symbol_list): Update.
1226 (cp_lookup_symbol_imports_or_template): Update.
1227 * cp-support.c (overload_list_add_symbol): Update.
1228 * ctfread.c (psymtab_to_symtab): Update.
1229 * dbxread.c (cp_set_block_scope): Update.
1230 * dictionary.c (iter_match_first_hashed): Update.
1231 (iter_match_next_hashed): Update.
1232 (insert_symbol_hashed): Update.
1233 (iter_match_next_linear): Update.
1234 * dictionary.h: Update.
1235 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1236 (locexpr_describe_location_piece): Update.
1237 (locexpr_describe_location_1): Update.
1238 (locexpr_generate_c_location): Update.
1239 (loclist_describe_location): Update.
1240 (loclist_generate_c_location): Update.
1241 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1242 (read_func_scope): Update.
1243 (process_enumeration_scope): Update.
1244 (new_symbol): Update.
1245 (dwarf2_const_value): Update.
1246 (dwarf2_symbol_mark_computed): Update.
1247 * eval.c (evaluate_funcall): Update.
1248 (evaluate_subexp_standard): Update.
1249 * expprint.c (print_subexp_standard): Update.
1250 (dump_subexp_body_standard): Update.
1251 * f-valprint.c (info_common_command_for_block): Update.
1252 * findvar.c (get_hosting_frame): Update.
1253 (default_read_var_value): Update.
1254 * go-lang.c (go_symbol_package_name): Update.
1255 * guile/scm-block.c (bkscm_print_block_smob): Update.
1256 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1257 (gdbscm_symbol_name): Update.
1258 (gdbscm_symbol_linkage_name): Update.
1259 (gdbscm_symbol_print_name): Update.
1260 * infcall.c (get_function_name): Update.
1261 * infcmd.c (jump_command): Update.
1262 (finish_command): Update.
1263 * infrun.c (insert_exception_resume_breakpoint): Update.
1264 * linespec.c (canonicalize_linespec): Update.
1265 (create_sals_line_offset): Update.
1266 (convert_linespec_to_sals): Update.
1267 (complete_label): Update.
1268 (find_label_symbols_in_block): Update.
1269 * m2-typeprint.c (m2_print_typedef): Update.
1270 * mdebugread.c (mdebug_reg_to_regnum): Update.
1271 (parse_symbol): Update.
1272 (mylookup_symbol): Update.
1273 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1274 (list_args_or_locals): Update.
1275 * objc-lang.c (compare_selectors): Update.
1276 (info_selectors_command): Update.
1277 (compare_classes): Update.
1278 (info_classes_command): Update.
1279 (find_imps): Update.
1280 * p-typeprint.c (pascal_print_typedef): Update.
1281 * printcmd.c (build_address_symbolic): Update.
1282 (info_address_command): Update.
1283 (print_variable_and_value): Update.
1284 * python/py-framefilter.c (extract_sym): Update.
1285 (py_print_single_arg): Update.
1286 * python/py-symbol.c (sympy_str): Update.
1287 (sympy_get_name): Update.
1288 (sympy_get_linkage_name): Update.
1289 * python/python.c (gdbpy_rbreak): Update.
1290 * record-btrace.c (btrace_get_bfun_name): Update.
1291 (btrace_call_history): Update.
1292 * rust-lang.c (rust_print_typedef): Update.
1293 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1294 * stabsread.c (stab_reg_to_regnum): Update.
1295 (define_symbol): Update.
1296 (read_enum_type): Update.
1297 (common_block_end): Update.
1298 (cleanup_undefined_types_1): Update.
1299 (scan_file_globals): Update.
1300 * stack.c (print_frame_arg): Update.
1301 (print_frame_args): Update.
1302 (find_frame_funname): Update.
1303 (info_frame_command_core): Update.
1304 (iterate_over_block_locals): Update.
1305 (print_block_frame_labels): Update.
1306 (do_print_variable_and_value): Update.
1307 (iterate_over_block_arg_vars): Update.
1308 (return_command): Update.
1309 * symmisc.c (dump_symtab_1): Update.
1310 (print_symbol): Update.
1311 * symtab.c (eq_symbol_entry): Update.
1312 (symbol_cache_dump): Update.
1313 (lookup_language_this): Update.
1314 (find_pc_sect_line): Update.
1315 (skip_prologue_sal): Update.
1316 (symbol_search::compare_search_syms): Update.
1317 (treg_matches_sym_type_name): Update.
1318 (search_symbols): Update.
1319 (print_symbol_info): Update.
1320 (rbreak_command): Update.
1321 (completion_list_add_symbol): Update.
1322 (find_gnu_ifunc): Update.
1323 (get_symbol_address): Update.
1324 (search_module_symbols): Update.
1325 (info_module_subcommand): Update.
1326 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1327 (SYMBOL_LINKAGE_NAME): Remove.
1328 (SYMBOL_DEMANGLED_NAME): Remove.
1329 (SYMBOL_PRINT_NAME): Remove.
1330 (SYMBOL_SEARCH_NAME): Remove.
1331 * tracepoint.c (set_traceframe_context): Update.
1332 (validate_actionline): Update.
1333 (collection_list::collect_symbol): Update.
1334 (encode_actions_1): Update.
1335 (info_scope_command): Update.
1336 (print_one_static_tracepoint_marker): Update.
1337 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1338 * valops.c (address_of_variable): Update.
1339 (find_overload_match): Update.
1340 (find_oload_champ): Update.
1341
c9d95fa3
CB
13422019-11-22 Christian Biesinger <cbiesinger@google.com>
1343
1344 * ada-lang.c (ada_lookup_simple_minsym): Update.
1345 (ada_collect_symbol_completion_matches): Update.
1346 * ada-tasks.c (read_atcb): Update.
1347 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1348 (amd64_windows_skip_trampoline_code): Update.
1349 * arm-tdep.c (skip_prologue_function): Update.
1350 (arm_skip_stack_protector): Update.
1351 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1352 (arm_wince_skip_main_prologue): Update.
1353 * ax-gdb.c (gen_expr): Update.
1354 * block.c (call_site_for_pc): Update.
1355 * blockframe.c (find_pc_partial_function): Update.
1356 * breakpoint.c (set_breakpoint_location_function): Update.
1357 * btrace.c (ftrace_print_function_name): Update.
1358 (ftrace_function_switched): Update.
1359 * c-valprint.c (print_unpacked_pointer): Update.
1360 * coffread.c (coff_symfile_read): Update.
1361 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1362 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1363 * dwarf-index-write.c (write_psymbols): Update.
1364 * dwarf2loc.c (call_site_to_target_addr): Update.
1365 (func_verify_no_selftailcall): Update.
1366 (tailcall_dump): Update.
1367 (call_site_find_chain_1): Update.
1368 (dwarf_expr_reg_to_entry_parameter): Update.
1369 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1370 * eval.c (evaluate_funcall): Update.
1371 (evaluate_subexp_standard): Update.
1372 (evaluate_subexp_for_sizeof): Update.
1373 * expprint.c (print_subexp_standard): Update.
1374 (dump_subexp_body_standard): Update.
1375 * frame.c (get_prev_frame_always_1): Update.
1376 * frv-tdep.c (frv_skip_main_prologue): Update.
1377 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1378 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1379 (gnuv3_get_typename_from_type_info): Update.
1380 (gnuv3_skip_trampoline): Update.
1381 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1382 * i386-tdep.c (i386_skip_main_prologue): Update.
1383 (i386_pe_skip_trampoline_code): Update.
1384 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1385 * infcall.c (get_function_name): Update.
1386 * linespec.c (minsym_found): Update.
1387 * linux-fork.c (info_checkpoints_command): Update.
1388 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1389 (m32c_m16c_pointer_to_address): Update.
1390 * maint.c (maintenance_translate_address): Update.
1391 * minsyms.c (add_minsym_to_hash_table): Update.
1392 (add_minsym_to_demangled_hash_table): Update.
1393 (lookup_minimal_symbol_mangled): Update.
1394 (lookup_minimal_symbol_demangled): Update.
1395 (lookup_minimal_symbol_linkage): Update.
1396 (lookup_minimal_symbol_text): Update.
1397 (lookup_minimal_symbol_by_pc_name): Update.
1398 (minimal_symbol_is_less_than): Update.
1399 (compact_minimal_symbols): Update.
1400 (build_minimal_symbol_hash_tables): Update.
1401 (find_solib_trampoline_target): Update.
1402 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1403 (mips_skip_pic_trampoline_code): Update.
1404 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1405 * objc-lang.c (info_selectors_command): Update.
1406 (info_classes_command): Update.
1407 (find_methods): Update.
1408 (find_imps): Update.
1409 * p-valprint.c (pascal_val_print): Update.
1410 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1411 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1412 * printcmd.c (build_address_symbolic): Update.
1413 (info_symbol_command): Update.
1414 * psymtab.c (psymbol_name_matches): Update.
1415 (match_partial_symbol): Update.
1416 (lookup_partial_symbol): Update.
1417 (print_partial_symbols): Update.
1418 (sort_pst_symbols): Update.
1419 (maintenance_check_psymtabs): Update.
1420 * python/py-framefilter.c (py_print_frame): Update.
1421 * python/python.c (gdbpy_rbreak): Update.
1422 * record-btrace.c (btrace_get_bfun_name): Update.
1423 (btrace_call_history): Update.
1424 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1425 (rs6000_skip_trampoline_code): Update.
1426 * sol-thread.c (info_cb): Update.
1427 * stabsread.c (scan_file_globals): Update.
1428 * stack.c (find_frame_funname): Update.
1429 (info_frame_command_core): Update.
1430 * symmisc.c (dump_msymbols): Update.
1431 * symtab.c (symbol_natural_name): Rename to..,
1432 (general_symbol_info::natural_name): ...this.
1433 (symbol_demangled_name): Rename to...
1434 (general_symbol_info::demangled_name): ...this.
1435 (symbol_search_name): Rename to...
1436 (general_symbol_info::search_name): ...this.
1437 (symbol_matches_search_name): Update.
1438 (find_pc_sect_line): Update.
1439 (skip_prologue_sal): Update.
1440 (search_symbols): Update.
1441 (print_msymbol_info): Update.
1442 (rbreak_command): Update.
1443 (completion_list_add_msymbol): Update.
1444 (completion_list_objc_symbol): Update.
1445 (get_msymbol_address): Update.
1446 * symtab.h (struct general_symbol_info): Add member functions
1447 natural_name (), linkage_name (), print_name (), demangled_name (),
1448 and search_name ().
1449 (SYMBOL_NATURAL_NAME): Update.
1450 (symbol_natural_name): Move to a member function on general_symbol_info.
1451 (SYMBOL_DEMANGLED_NAME): Update.
1452 (symbol_demangled_name): Move to a member function on
1453 general_symbol_info.
1454 (SYMBOL_SEARCH_NAME): Update.
1455 (symbol_search_name): Move to a member function on general_symbol_info.
1456 (MSYMBOL_NATURAL_NAME): Remove.
1457 (MSYMBOL_LINKAGE_NAME): Remove.
1458 (MSYMBOL_PRINT_NAME): Remove.
1459 (MSYMBOL_DEMANGLED_NAME): Remove.
1460 (MSYMBOL_SEARCH_NAME): Remove.
1461 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1462
f8bab2d6
CB
14632019-11-22 Christian Biesinger <cbiesinger@google.com>
1464
1465 * symtab.c (create_demangled_names_hash): Use per_bfd->
1466 minimal_symbol_count for computing the initial size, if greater
1467 than our default size.
1468
85e7588d
TV
14692019-11-22 Tom de Vries <tdevries@suse.de>
1470
1471 * contrib/words.sh: Improve words extraction.
1472
f6180073
TV
14732019-11-22 Tom de Vries <tdevries@suse.de>
1474
1475 * contrib/words.sh: Combine sed invocations.
1476
f10ffa41
CB
14772019-11-21 Christian Biesinger <cbiesinger@google.com>
1478
1479 * Makefile.in: Update.
1480 * demangle.c: Rename to...
1481 * gdb-demangle.c: ..this.
1482 (is_cplus_marker): Change return type to bool.
1483 (_initialize_demangler): Rename to...
1484 (_initialize_gdb_demangle): ...this.
1485 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1486 * symtab.h (demangle): Remove declaration; instead include
1487 gdb-demangle.h.
1488
6ba18521
TT
14892019-11-21 Tom Tromey <tromey@adacore.com>
1490
1491 * gdbsupport/format.c (format_pieces): Parse %I64d.
1492 * unittests/format_pieces-selftests.c (test_windows_formats): New
1493 function.
1494 (run_tests): Call it.
1495
34877895
PJ
14962019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1497
1498 Byte reverse display of variables with DW_END_big, DW_END_little
1499 (DW_AT_endianity) dwarf attributes if different than the native
1500 byte order.
1501 * ada-lang.c (ada_value_binop):
1502 Use type_byte_order instead of gdbarch_byte_order.
1503 * ada-valprint.c (printstr):
1504 (ada_val_print_string):
1505 * ada-lang.c (value_pointer):
1506 (ada_value_binop):
1507 Use type_byte_order instead of gdbarch_byte_order.
1508 * c-lang.c (c_get_string):
1509 Use type_byte_order instead of gdbarch_byte_order.
1510 * c-valprint.c (c_val_print_array):
1511 Use type_byte_order instead of gdbarch_byte_order.
1512 * cp-valprint.c (cp_print_class_member):
1513 Use type_byte_order instead of gdbarch_byte_order.
1514 * dwarf2loc.c (rw_pieced_value):
1515 Use type_byte_order instead of gdbarch_byte_order.
1516 * dwarf2read.c (read_base_type): Handle DW_END_big,
1517 DW_END_little
1518 * f-lang.c (f_get_encoding):
1519 Use type_byte_order instead of gdbarch_byte_order.
1520 * findvar.c (default_read_var_value):
1521 Use type_byte_order instead of gdbarch_byte_order.
1522 * gdbtypes.c (check_types_equal):
1523 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1524 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1525 and TYPE_ENDIANITY_LITTLE if set.
1526 (type_byte_order): new function.
1527 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1528 (struct main_type) <flag_endianity_not_default>:
1529 New field.
1530 (type_byte_order): New function.
1531 * infcmd.c (default_print_one_register_info):
1532 Use type_byte_order instead of gdbarch_byte_order.
1533 * p-lang.c (pascal_printstr):
1534 Use type_byte_order instead of gdbarch_byte_order.
1535 * p-valprint.c (pascal_val_print):
1536 Use type_byte_order instead of gdbarch_byte_order.
1537 * printcmd.c (print_scalar_formatted):
1538 Use type_byte_order instead of gdbarch_byte_order.
1539 * solib-darwin.c (darwin_current_sos):
1540 Use type_byte_order instead of gdbarch_byte_order.
1541 * solib-svr4.c (solib_svr4_r_ldsomap):
1542 Use type_byte_order instead of gdbarch_byte_order.
1543 * stap-probe.c (stap_modify_semaphore):
1544 Use type_byte_order instead of gdbarch_byte_order.
1545 * target-float.c (target_float_same_format_p):
1546 Use type_byte_order instead of gdbarch_byte_order.
1547 * valarith.c (scalar_binop):
1548 (value_bit_index):
1549 Use type_byte_order instead of gdbarch_byte_order.
1550 * valops.c (value_cast):
1551 Use type_byte_order instead of gdbarch_byte_order.
1552 * valprint.c (generic_emit_char):
1553 (generic_printstr):
1554 (val_print_string):
1555 Use type_byte_order instead of gdbarch_byte_order.
1556 * value.c (unpack_long):
1557 (unpack_bits_as_long):
1558 (unpack_value_bitfield):
1559 (modify_field):
1560 (pack_long):
1561 (pack_unsigned_long):
1562 Use type_byte_order instead of gdbarch_byte_order.
1563 * findvar.c (unsigned_pointer_to_address):
1564 (signed_pointer_to_address):
1565 (unsigned_address_to_pointer):
1566 (address_to_signed_pointer):
1567 (default_read_var_value):
1568 (default_value_from_register):
1569 Use type_byte_order instead of gdbarch_byte_order.
1570 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1571 Use type_byte_order instead of gdbarch_byte_order.
1572 * riscv-tdep.c (riscv_print_one_register_info):
1573 Use type_byte_order instead of gdbarch_byte_order.
1574
87fb00ea
SM
15752019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1576
1577 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1578 (current_ui_gdb_stdin_ptr): Likewise.
1579 (current_ui_gdb_stderr_ptr): Likewise.
1580 (current_ui_gdb_stdlog_ptr): Likewise.
1581 (current_ui_current_uiout_ptr): Likewise.
1582 (gen_ret_current_ui_field_ptr): Remove.
1583
65d1cd5f
TV
15842019-11-21 Tom de Vries <tdevries@suse.de>
1585
1586 PR gdb/24956
1587 * cli/cli-script.c (execute_control_command): Only switch to
1588 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1589
9f6ad286
TT
15902019-11-19 Tom Tromey <tom@tromey.com>
1591
1592 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1593 Now static. Change type of "name".
1594 (tui_set_win_height_command): Don't copy "arg".
1595 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1596 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1597
435d3d88
AT
15982019-11-19 Ali Tamur <tamur@google.com>
1599
1600 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1601 "if (attr != nullptr)".
1602 (dwarf2_find_base_address): Likewise.
1603 (dwarf2_build_include_psymtabs): Likewise.
1604 (read_cutu_die_from_dwo): Likewise.
1605 (read_func_scope): Likewise.
1606 (read_call_site_scope): Likewise.
1607 (dwarf2_get_pc_bounds): Likewise.
1608 (dwarf2_record_block_ranges): Likewise.
1609 (dwarf2_add_field): Likewise.
1610 (dwarf2_add_member_fn): Likewise.
1611 (read_structure_type): Likewise.
1612 (read_enumeration_type): Likewise.
1613 (read_array_type): Likewise.
1614 (read_array_order): Likewise.
1615 (read_set_type): Likewise.
1616 (read_common_block): Likewise.
1617 (read_tag_reference_type): Likewise.
1618 (read_tag_string_type): Likewise.
1619 (read_subroutine_type): Likewise.
1620 (read_base_type): Likewise.
1621 (read_subrange_type): Likewise.
1622 (new_symbol): Likewise.
1623 (prepare_one_comp_unit): Likewise.
1624
c9739b6a
TT
16252019-11-19 Tom Tromey <tromey@adacore.com>
1626
1627 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1628 result in error when DebugActiveProcess fails.
1629
494409bb
SDJ
16302019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1631 Pedro Alves <palves@redhat.com>
1632
1633 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1634 * target.c (target_stack::push): Call 'unpush' if there's a
1635 target on top of the stack.
1636
2e953aca
PW
16372019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1638
1639 * python/py-block.c (blpy_dealloc): Call tp_free.
1640 (blpy_block_syms_dealloc): Likewise.
1641 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1642 * python/py-inferior.c (infpy_dealloc): Likewise.
1643 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1644 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1645 * python/py-symbol.c (sympy_dealloc): Likewise.
1646 * python/py-symtab.c (stpy_dealloc): Likewise.
1647 * python/py-type.c (typy_iterator_dealloc): Likewise.
1648
6edc43ec
CB
16492019-11-18 Christian Biesinger <cbiesinger@google.com>
1650
1651 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1652 constructor instead of using a class initializer.
1653
cd850b40
CB
16542019-11-15 Christian Biesinger <cbiesinger@google.com>
1655
1656 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1657 * configure: Regenerate.
1658 * configure.ac: Don't source common.host.
1659 * gdbsupport/common.host: Remove.
1660 * gdbsupport/mingw-strerror.c: Remove.
1661 * gdbsupport/posix-strerror.c: Rename to...
1662 * gdbsupport/safe-strerror.c: ...this.
1663
53fea9c7
CB
16642019-11-15 Christian Biesinger <cbiesinger@google.com>
1665
1666 * maint.c (scoped_command_stats::print_time): Use localtime_r
1667 instead of localtime (provided through gnulib if necessary).
1668 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1669 of ctime.
1670
f8e27d88
CB
16712019-11-15 Christian Biesinger <cbiesinger@google.com>
1672
1673 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1674 avoid compile errors.
1675
5abebf3c
CB
16762019-11-15 Christian Biesinger <cbiesinger@google.com>
1677
1678 * config.in: Regenerate.
1679 * configure: Regenerate.
1680 * gdbsupport/common.m4: No longer check for strerror_r.
1681 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1682 POSIX version of strerror_r, now that gnulib provides it if
1683 necessary.
1684
9a351667
CB
16852019-11-14 Christian Biesinger <cbiesinger@google.com>
1686
1687 * README (`configure' options): Update.
1688
55708e99
TT
16892019-11-14 Tom Tromey <tromey@adacore.com>
1690
1691 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1692 expected type for the RHS if the LHS is a convenience variable.
1693
4b09bb2e
SM
16942019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1695
1696 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1697 Provide explicit default and copy constructor.
1698
bd454f8b
PW
16992019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1700
1701 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1702 only call Py_INCREF (newbp) in the bppy_pending_object case.
1703
d1aa3cf0
TT
17042019-11-13 Tom Tromey <tromey@adacore.com>
1705
1706 PR build/25182:
1707 * psympriv.h (partial_symbol): Remove static assert.
1708 * symtab.h (general_symbol_info, symbol): Remove static assert.
1709
e06f3d6e
AB
17102019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1711
1712 * gdbsupport/format.c (format_pieces::format_pieces): Support
1713 printf 'z' size modifier.
1714 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1715 * printcmd.c (ui_printf): Handle size_t_arg.
1716 * ui-out.c (ui_out::vmessage): Likewise.
1717 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1718 function.
1719 (run_tests): Call test_format_int_sizes.
1720
468c0cbb
CB
17212019-11-12 Christian Biesinger <cbiesinger@google.com>
1722
1723 * ada-exp.y (write_ambiguous_var): Update.
1724 * buildsym.c (add_symbol_to_list): Update.
1725 * dwarf2read.c (read_variable): Update.
1726 (new_symbol): Update.
1727 * jit.c (finalize_symtab): Update.
1728 * language.c (language_alloc_type_symbol): Update.
1729 * symtab.c (fixup_symbol_section): Update.
1730 (initialize_objfile_symbol_1): Move code to...
1731 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1732 (allocate_symbol): Update.
1733 (allocate_template_symbol): Update.
1734 (get_symbol_address): Update.
1735 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1736 of having as a field, and add a constructor.
1737 (SYMBOL_VALUE): Update.
1738 (SYMBOL_VALUE_ADDRESS): Update.
1739 (SET_SYMBOL_VALUE_ADDRESS): Update.
1740 (SYMBOL_VALUE_BYTES): Update.
1741 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1742 (SYMBOL_BLOCK_VALUE): Update.
1743 (SYMBOL_VALUE_CHAIN): Update.
1744 (SYMBOL_LANGUAGE): Update.
1745 (SYMBOL_SECTION): Update.
1746 (SYMBOL_OBJ_SECTION): Update.
1747 (SYMBOL_SET_LANGUAGE): Update.
1748 (SYMBOL_SET_LINKAGE_NAME): Update.
1749 (SYMBOL_SET_NAMES): Update.
1750 (SYMBOL_NATURAL_NAME): Update.
1751 (SYMBOL_LINKAGE_NAME): Update.
1752 (SYMBOL_DEMANGLED_NAME): Update.
1753 (SYMBOL_SEARCH_NAME): Update.
1754 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1755 (struct symbol): Update.
1756 (struct template_symbol): Update.
1757 (struct rust_vtable_symbol): Update.
1758 * xcoffread.c (SYMBOL_DUP): Update.
1759
ed2c82c3
TT
17602019-11-12 Tom Tromey <tom@tromey.com>
1761
1762 * tui/tui-layout.c (show_layout): Set current_layout.
1763 (show_source_disasm_command, show_data)
1764 (show_source_or_disasm_and_command): Don't set current_layout.
1765
d9fcefd5
TT
17662019-11-12 Tom Tromey <tom@tromey.com>
1767
1768 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1769
45e42163
TT
17702019-11-12 Tom Tromey <tom@tromey.com>
1771
1772 * tui/tui-win.c (resize_message): New global.
1773 (show_tui_resize_message): New function.
1774 (tui_async_resize_screen): Print message if requested.
1775 (_initialize_tui_win): Add tui-resize-message setting.
1776 * NEWS: Add entry for new commands.
1777
c86d74cc
TT
17782019-11-11 Tom Tromey <tom@tromey.com>
1779
1780 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1781 functions.
1782
7b7b9424
CB
17832019-11-11 Christian Biesinger <cbiesinger@google.com>
1784
1785 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1786
086baaf1
AB
17872019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1788
1789 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1790 function.
1791 * python/python-internal.h (gdbpy_lookup_static_symbols):
1792 Declare new function.
1793 * python/python.c (python_GdbMethods): Add
1794 gdb.lookup_static_symbols method.
1795 * NEWS: Mention gdb.lookup_static_symbols.
1796
09ff83af
AB
17972019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1798
1799 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1800 static block of current object file first. Also fix typo in
1801 header comment.
1802
eb2dd8df
AB
18032019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1804
1805 * stack.c (set_last_displayed_sal): Delete.
1806 (last_displayed_sal_valid): Delete.
1807 (last_displayed_pspace): Delete.
1808 (last_displayed_addr): Delete.
1809 (last_displayed_symtab): Delete.
1810 (last_displayed_line): Delete.
1811 (class last_displayed_symtab_info_type): New.
1812 (last_displayed_symtab_info): New static global variable.
1813 (print_frame_info): Call methods on last_displayed_symtab_info.
1814 (clear_last_displayed_sal): Update header comment, and make use of
1815 last_displayed_symtab_info.
1816 (last_displayed_sal_is_valid): Likewise.
1817 (get_last_displayed_pspace): Likewise.
1818 (get_last_displayed_addr): Likewise.
1819 (get_last_displayed_symtab): Likewise.
1820 (get_last_displayed_line): Likewise.
1821 (get_last_displayed_sal): Likewise.
1822 * stack.h (clear_last_displayed_sal): Update header comment.
1823 (last_displayed_sal_is_valid): Likewise.
1824 (get_last_displayed_pspace): Likewise.
1825 (get_last_displayed_addr): Likewise.
1826 (get_last_displayed_symtab): Likewise.
1827 (get_last_displayed_line): Likewise.
1828 (get_last_displayed_sal): Likewise.
1829
62137775
AB
18302019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1831
1832 * stack.c (frame_show_address): Convert return type to bool.
1833 * stack.h (frame_show_address): Likewise, and update header
1834 comment.
1835
cf57ad6d
AB
18362019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1837
1838 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1839 * unittests/vec-utils-selftests.c: New file.
1840 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1841
0b026263
TT
18422019-11-10 Tom Tromey <tom@tromey.com>
1843
1844 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1845 (tui_highlight_win): Likewise.
1846 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1847 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1848 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1849 Don't set can_highlight.
1850
b049ce2d
TT
18512019-11-10 Tom Tromey <tom@tromey.com>
1852
1853 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1854 Remove unused declaration.
1855
992a7040
TT
18562019-11-08 Tom Tromey <tromey@adacore.com>
1857
1858 * top.c (read_command_file): Update.
1859 (command_line_input): Make return type const.
1860 * python/py-gdb-readline.c: Update.
1861 * linespec.c (decode_line_2): Update.
1862 * defs.h (command_line_input): Make return type const.
1863 * cli/cli-script.c (read_next_line): Make return type const.
1864 * ada-lang.c (get_selections): Update.
1865
ca3a04f6
CB
18662019-11-06 Christian Biesinger <cbiesinger@google.com>
1867
1868 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1869 * mi/mi-main.c (output_cores): Likewise.
1870 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1871 (linux_xfer_osdata_modules): Likewise.
1872 * remote.c (register_remote_support_xml): Likewise.
1873 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1874 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1875
e0eac551
TT
18762019-11-06 Tom Tromey <tom@tromey.com>
1877
1878 * tui/tui-interp.c: Don't include readline.h.
1879 * tui/tui-hooks.c: Don't include readline.h.
1880 * symmisc.c: Include tilde.h, not readline.h.
1881 * symfile.c: Include tilde.h, not readline.h.
1882 * source.c: Include tilde.h, not readline.h.
1883 * solib.c: Include tilde.h, not readline.h.
1884 * psymtab.c: Include tilde.h, not readline.h.
1885 * exec.c: Include tilde.h, not readline.h.
1886 * corelow.c: Include tilde.h, not readline.h.
1887 * cli/cli-dump.c: Include tilde.h, not readline.h.
1888 * cli/cli-cmds.c: Don't include readline.h.
1889
825165c5
TT
18902019-11-05 Tom Tromey <tom@tromey.com>
1891
1892 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1893 (tui_disassemble): Set addr_size.
1894 (tui_disasm_window::set_contents): Use addr_size.
1895
91ae903f
TT
18962019-11-05 Tom Tromey <tom@tromey.com>
1897
1898 * rust-lang.c (rust_language_defn): Update.
1899 * python/py-value.c (valpy_string): Call c_get_string.
1900 * p-lang.c (pascal_language_defn): Update.
1901 * opencl-lang.c (opencl_language_defn): Update.
1902 * objc-lang.c (objc_language_defn): Update.
1903 * m2-lang.c (m2_language_defn): Update.
1904 * language.c (unknown_language_defn, auto_language_defn): Update.
1905 (default_get_string): Remove.
1906 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1907 * go-lang.c (go_language_defn): Update.
1908 * f-lang.c (f_language_defn): Update.
1909 * d-lang.c (d_language_defn): Update.
1910 * c-lang.c (c_language_defn, cplus_language_defn)
1911 (asm_language_defn, minimal_language_defn): Update.
1912 * ada-lang.c (ada_language_defn): Update.
1913 * language.h (struct language_defn) <la_get_string>: Remove.
1914 (LA_GET_STRING): Remove.
1915 (default_get_string): Don't declare.
1916
1df2f9ef
TT
19172019-11-05 Tom Tromey <tom@tromey.com>
1918
1919 * tui/tui-source.h (struct tui_source_window): Inline
1920 constructor. Remove destructor.
1921 <style_changed, m_observable>: Move to superclass.
1922 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1923 (struct tui_source_window_base): Move private members to end.
1924 <style_changed, m_observable>: Move from tui_source_window.
1925 * tui/tui-winsource.c (tui_copy_source_line): Move from
1926 tui-source.c. Rename from copy_source_line. Add special handling
1927 for negative line number.
1928 (tui_source_window_base::style_changed): Move from
1929 tui_source_window.
1930 (tui_source_window_base): Register observer.
1931 (~tui_source_window_base): New.
1932 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1933 rename.
1934 (tui_source_window::set_contents): Use tui_copy_source_line.
1935 (tui_source_window::tui_source_window): Move to tui-source.h.
1936 (tui_source_window::~tui_source_window): Remove.
1937 (tui_source_window::style_changed): Move to superclass.
1938 * tui/tui-disasm.c (tui_disassemble): Create string file with
1939 styling, when possible. Add "addr_size" parameter.
1940 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1941 Don't compute maximum size.
1942 (len_without_escapes): New function
1943
5d051055
TT
19442019-11-05 Tom Tromey <tom@tromey.com>
1945
1946 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1947 std::string.
1948 * tui/tui-winsource.c (tui_show_source_line): Update.
1949 * tui/tui-source.c (tui_source_window::set_contents): Update.
1950 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1951
ade7beea
CB
19522019-11-05 Christian Biesinger <cbiesinger@google.com>
1953
1954 * symtab.h (gdb_static_assert): Put && operator at the beginning
1955 of the line instead of the end.
1956
3573abe1
CB
19572019-11-04 Christian Biesinger <cbiesinger@google.com>
1958
1959 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1960 and sizeof (symbol).
1961 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1962
dae8b3eb
RO
19632019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1964
1965 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1966 * configure.host: Mark *-*-solaris2.10* obsolete.
1967 * configure.tgt: Mark Solaris < 11 obsolete.
1968 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1969 Update target triplet.
1970
5df96a4e
TT
19712019-11-01 Tom Tromey <tromey@adacore.com>
1972
1973 * utils.c (print_sys_errmsg): Simplify.
1974
b7481649
TT
19752019-11-01 Tom Tromey <tromey@adacore.com>
1976
1977 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1978
e48f6033
CB
19792019-11-01 Christian Biesinger <cbiesinger@google.com>
1980
1981 * configure: Regenerate.
1982 * configure.ac: Remove check for strerror_r.
1983 * gdbsupport/common.m4: Check for strerror_r.
1984
bd5766ec
LM
19852019-11-01 Luis Machado <luis.machado@linaro.org>
1986
1987 PR gdb/25124
1988
1989 * arm-tdep.c (arm_per_objfile): Rename to ...
1990 (arm_per_bfd): ... this.
1991 (arm_objfile_data_key): Rename to ...
1992 (arm_bfd_data_key): ... this.
1993 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1994 data.
1995 (arm_record_special_symbol): Likewise.
1996
e1709896
AB
19972019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1998
1999 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2000 end.
2001 * c-typeprint.c (c_print_typedef): Likewise.
2002 * f-typeprint.c (f_print_typedef): Likewise.
2003 * m2-typeprint.c (m2_print_typedef): Likewise.
2004 * p-typeprint.c (pascal_print_typedef): Likewise.
2005 * rust-lang.c (rust_print_typedef): Likewise.
2006 * symtab.c (print_symbol_info): Print a newline after calling
2007 typedef_print.
2008
165f8965
AB
20092019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2010
2011 * symtab.c (info_module_cmdlist): New variable.
2012 (info_module_command): New function.
2013 (search_module_symbols): New function.
2014 (info_module_subcommand): New function.
2015 (struct info_modules_var_func_options): New struct.
2016 (info_modules_var_func_options_defs): New variable.
2017 (make_info_modules_var_func_options_def_group): New function.
2018 (info_module_functions_command): New function.
2019 (info_module_variables_command): New function.
2020 (info_module_var_func_command_completer): New function.
2021 (_initialize_symtab): Register new 'info module functions' and
2022 'info module variables' commands.
2023 * symtab.h (typedef symbol_search_in_module): New typedef.
2024 (search_module_symbols): Declare new function.
2025 * NEWS: Mention new commands.
2026
59c35742
AB
20272019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2028
2029 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2030 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2031 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2032 MODULES_DOMAIN.
2033 (scan_partial_symbols): Only create partial module symbols for non
2034 declarations.
2035 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2036 and MODULES_DOMAIN.
2037 * symtab.c (search_domain_name): Likewise.
2038 (search_symbols): Likewise.
2039 (print_symbol_info): Likewise.
2040 (symtab_symbol_info): Likewise.
2041 (info_modules_command): New function.
2042 (_initialize_symtab): Register 'info modules' command.
2043 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2044 * NEWS: Mention new 'info modules' command.
2045
aed61d02
PW
20462019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2047
2048 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2049 and $_gdb_maint_setting_str.
2050
9ad9b77d
PW
20512019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2052
2053 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2054 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2055 (str_value_from_setting, gdb_setting_str_internal_fn)
2056 (gdb_maint_setting_str_internal_fn): New functions.
2057 (_initialize_cli_cmds): Define the new convenience functions.
2058 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2059 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2060
8d6efaa2
CB
20612019-10-31 Christian Biesinger <cbiesinger@google.com>
2062
2063 * agent.c (set_can_use_agent): When the setting is turned on,
2064 look up agent symbols if we don't have them yet.
2065 (agent_new_objfile): Don't look up agent symbols when the agent
2066 setting is off.
2067
33cb1647
CB
20682019-10-31 Christian Biesinger <cbiesinger@google.com>
2069
2070 * config.in: Regenerate.
2071
b231e86a
CB
20722019-10-31 Christian Biesinger <cbiesinger@google.com>
2073
2074 * configure: Regenerate.
2075 * configure.ac: Check for strerror_r.
2076 * gdbsupport/common-utils.h (safe_strerror): Change return value
2077 to const char * and document that this function is now threadsafe.
2078 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2079 thread_local and call strerror_r, if available.
2080 * utils.c (perror_string): Update.
2081 (print_sys_errmsg): Update.
2082
a2726d4f
LM
20832019-10-31 Luis Machado <luis.machado@linaro.org>
2084
2085 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2086 objfile_key.
2087 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2088 objfile to fetch per-bfd data.
2089 (arm_find_exidx_entry): Likewise.
2090
75cafaa6
CB
20912019-10-31 Christian Biesinger <cbiesinger@google.com>
2092
2093 * gdbsupport/agent.c (debug_agent): Change type to bool.
2094 (use_agent): Likewise.
2095 (all_agent_symbols_look_up): Likewise.
2096 (agent_loaded_p): Change return value to bool.
2097 (agent_look_up_symbols): Update.
2098 (agent_capability_check): Change return value to bool.
2099 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2100 (debug_agent): Change type to bool.
2101 (use_agent): Likewise.
2102 (agent_capability_check): Change return value to bool.
2103
808590ec
CB
21042019-10-30 Christian Biesinger <cbiesinger@google.com>
2105
2106 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2107 (build_minimal_symbol_hash_tables): Code to clear the table moved
2108 to clear_minimal_symbol_hash_tables.
2109 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2110 when needed.
2111
f18ad8a1
SM
21122019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2113
2114 * infcmd.c: Remove includes.
2115 * infrun.c: Remove includes.
2116
de93309a
SM
21172019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2118
2119 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2120 (grow_vect): Remove declaration.
2121 (ada_type_of_array): Remove declaration.
2122 (ada_update_initial_language): Remove declaration.
2123 (ada_fold_name): Remove declaration.
2124 (ada_fill_in_ada_prototype): Remove declaration.
2125 (user_select_syms): Remove declaration.
2126 (get_selections): Remove declaration.
2127 (ada_tag_type): Remove declaration.
2128 (ada_value_tag): Remove declaration.
2129 (ada_is_others_clause): Remove declaration.
2130 (ada_in_variant): Remove declaration.
2131 (ada_value_struct_elt): Remove declaration.
2132 (ada_attribute_name): Remove declaration.
2133 (ada_system_address_type): Remove declaration.
2134 * ada-lang.c (ada_watch_location_expression): Make static.
2135 (GROW_VECT): Move here from ada-lang.h.
2136 (grow_vect): Make static.
2137 (ada_update_initial_language): Make static.
2138 (ada_fold_name): Make static.
2139 (ada_type_of_array): Make static.
2140 (encoded_ordered_before): Move up.
2141 (sort_choices): Move up.
2142 (print_signatures): Move up.
2143 (ada_print_symbol_signature): Move up.
2144 (get_selections): Move up and make static.
2145 (user_select_syms): Move up and make static.
2146 (ada_value_struct_elt): Move up and make static.
2147 (ada_tag_type): Make static.
2148 (ada_value_tag): Make static.
2149 (ada_is_others_clause): Make static.
2150 (ada_in_variant): Make static.
2151 (ada_attribute_name): Make static.
2152
cdc46a9f
SM
21532019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2154
2155 * ada-lang.c: Remove includes.
2156 * ada-typeprint.c: Remove includes.
2157 * ada-valprint.c: Remove includes.
2158
90421c56
SM
21592019-10-29 Simon Marchi <simon.marchi@efficios.com>
2160
2161 * addrmap.c: Add static assertions of type size, moved from
2162 _initialize_addrmap.
2163 (_initialize_addrmap): Remove.
2164
31edb802
CB
21652019-10-29 Christian Biesinger <cbiesinger@google.com>
2166
2167 * coffread.c (record_minimal_symbol): Update.
2168 (process_coff_symbol): Update.
2169 * dbxread.c (read_dbx_symtab): Update.
2170 * dwarf2read.c (add_partial_symbol): Update.
2171 (fixup_go_packaging): Update.
2172 (load_partial_dies): Update.
2173 (new_symbol): Update.
2174 * elfread.c (record_minimal_symbol): Change signature to use
2175 gdb::string_view instead of name+len.
2176 (elf_symtab_read): Update.
2177 (elf_rel_plt_read): Update.
2178 * mdebugread.c (parse_partial_symbols): Update.
2179 (handle_psymbol_enumerators): Update.
2180 (new_symbol): Update.
2181 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2182 to use gdb::string_view instead of name+len.
2183 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2184 * psympriv.h (add_psymbol_to_list): Likewise.
2185 * psymtab.c (add_psymbol_to_bcache): Likewise.
2186 (add_psymbol_to_list): Likewise.
2187 * stabsread.c (define_symbol): Update.
2188 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2189 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2190 (symbol_set_names): Likewise.
2191 * xcoffread.c (scan_xcoff_symtab): Update.
2192
0c921b21
CB
21932019-10-29 Christian Biesinger <cbiesinger@google.com>
2194
2195 * symtab.h (symbol_set_names): Document that copy_name must be
2196 set to true for non-nullterminated strings.
2197 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2198 linkage_name if the entry was not found and we need to demangle.
2199
35e65c49
CB
22002019-10-29 Christian Biesinger <cbiesinger@google.com>
2201
2202 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2203 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2204 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2205 * gdbsupport/gdb_binary_search.h: New file.
2206
ed2a2229
CB
22072019-10-29 Christian Biesinger <cbiesinger@google.com>
2208
2209 * NEWS: Mention new --with-system-gdbinit-dir option.
2210 * config.in: Regenerate.
2211 * configure: Regenerate.
2212 * configure.ac: Add new option --with-system-gdbinit-dir.
2213 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2214 for a ".gdb" suffix.
2215 * main.c (get_init_files): Change system_gdbinit argument to
2216 a vector and return the files in SYSTEM_GDBINIT_DIR in
2217 addition to SYSTEM_GDBINIT.
2218 (captured_main_1): Update.
2219 (print_gdb_help): Update.
2220 * top.c (print_gdb_configuration): Also print the value of
2221 SYSTEM_GDBINIT_DIR.
2222
87f34879
CB
22232019-10-28 Christian Biesinger <cbiesinger@google.com>
2224
2225 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2226 that takes gdb::string_view arguments.
2227
30baf67b
TV
22282019-10-26 Tom de Vries <tdevries@suse.de>
2229
2230 * aarch64-linux-tdep.c: Fix typos in comments.
2231 * aarch64-tdep.c: Same.
2232 * ada-lang.c: Same.
2233 * amd64-nat.c: Same.
2234 * arc-tdep.c: Same.
2235 * arch/aarch64-insn.c: Same.
2236 * block.c: Same.
2237 * breakpoint.h: Same.
2238 * btrace.h: Same.
2239 * c-varobj.c: Same.
2240 * cli/cli-decode.c: Same.
2241 * cli/cli-script.c: Same.
2242 * cli/cli-utils.h: Same.
2243 * coff-pe-read.c: Same.
2244 * coffread.c: Same.
2245 * compile/compile-cplus-symbols.c: Same.
2246 * compile/compile-object-run.c: Same.
2247 * completer.c: Same.
2248 * corelow.c: Same.
2249 * cp-support.c: Same.
2250 * demangle.c: Same.
2251 * dwarf-index-write.c: Same.
2252 * dwarf2-frame.c: Same.
2253 * dwarf2-frame.h: Same.
2254 * eval.c: Same.
2255 * frame-base.h: Same.
2256 * frame.h: Same.
2257 * gdbcmd.h: Same.
2258 * gdbtypes.h: Same.
2259 * gnu-nat.c: Same.
2260 * guile/scm-objfile.c: Same.
2261 * i386-tdep.c: Same.
2262 * i386-tdep.h: Same.
2263 * infcall.c: Same.
2264 * infcall.h: Same.
2265 * linux-nat.c: Same.
2266 * m68k-tdep.c: Same.
2267 * macroexp.c: Same.
2268 * memattr.c: Same.
2269 * mi/mi-cmd-disas.c: Same.
2270 * mi/mi-getopt.h: Same.
2271 * mi/mi-main.c: Same.
2272 * minsyms.c: Same.
2273 * nat/aarch64-sve-linux-sigcontext.h: Same.
2274 * objfiles.h: Same.
2275 * ppc-linux-nat.c: Same.
2276 * ppc-linux-tdep.c: Same.
2277 * ppc-tdep.h: Same.
2278 * progspace.h: Same.
2279 * prologue-value.h: Same.
2280 * python/py-evtregistry.c: Same.
2281 * python/py-instruction.h: Same.
2282 * record-btrace.c: Same.
2283 * record-full.c: Same.
2284 * remote.c: Same.
2285 * rs6000-tdep.c: Same.
2286 * ser-tcp.c: Same.
2287 * sol-thread.c: Same.
2288 * sparc-sol2-tdep.c: Same.
2289 * sparc64-tdep.c: Same.
2290 * stabsread.c: Same.
2291 * symfile.c: Same.
2292 * symtab.h: Same.
2293 * target.c: Same.
2294 * tracepoint.c: Same.
2295 * tui/tui-data.h: Same.
2296 * tui/tui-io.c: Same.
2297 * tui/tui-win.c: Same.
2298 * tui/tui.c: Same.
2299 * unittests/rsp-low-selftests.c: Same.
2300 * user-regs.h: Same.
2301 * utils.c: Same.
2302 * utils.h: Same.
2303 * valarith.c: Same.
2304 * valops.c: Same.
2305 * valprint.c: Same.
2306 * valprint.h: Same.
2307 * value.c: Same.
2308 * value.h: Same.
2309 * varobj.c: Same.
2310 * x86-nat.h: Same.
2311 * xtensa-tdep.c: Same.
2312
1834d45f
AT
23132019-10-25 Ali Tamur <tamur@google.com>
2314
2315 * charset.c (find_charset_names): Reflect API change.
2316
5396ae17
CB
23172019-10-25 Christian Biesinger <cbiesinger@google.com>
2318
2319 * symtab.c (struct demangled_name_entry): Change demangled name
2320 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2321 part of the struct anymore.
2322 (symbol_set_names): No longer obstack allocate + copy the demangled
2323 name, just store the allocated name from bfd.
2324
93878f47
TT
23252019-10-25 Tom Tromey <tromey@adacore.com>
2326
2327 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2328 (bsearch_cie_cmp, add_cie): Remove.
2329 (find_cie): Reimplement.
2330 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2331 (dwarf2_build_frame_info): Update.
2332
7b71fc97
L
23332019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2334
2335 PR gdb/25126
2336 * symfile.c (reread_symbols): Call forget_cached_source_info to
2337 clear the stale source cache.
2338
cbb5a2ea
CB
23392019-10-24 Christian Biesinger <cbiesinger@google.com>
2340
2341 * configure: Regenerate.
2342 * configure.ac: Remove code that sets python_has_threads.
2343
71737c43
CB
23442019-10-24 Christian Biesinger <cbiesinger@google.com>
2345
2346 * config.in: Regenerate.
2347 * configure: Regenerate.
2348 * configure.ac: Remove the code that uses sed to get the python
2349 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2350
33d569b7
AB
23512019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2352
2353 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2354 error paths.
2355
f16f7b7c
TT
23562019-10-23 Tom Tromey <tom@tromey.com>
2357
2358 * arc-tdep.c: Remove ".." from include.
2359 * frv-tdep.c: Remove ".." from include.
2360 * lm32-tdep.c: Remove ".." from include.
2361 * microblaze-tdep.c: Remove ".." from include.
2362 * or1k-tdep.h: Remove ".." from include.
2363 * s12z-tdep.c: Remove ".." from include.
2364 * Makefile.in (OPCODES_CFLAGS): Add comment.
2365 (TOP_CFLAGS): New variable.
2366 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2367
6999161a
TT
23682019-10-23 Tom Tromey <tom@tromey.com>
2369
2370 * Makefile.in (READLINE_DIR): Update.
2371
12e7c35e
TBA
23722019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2373
2374 * infcall.c (call_function_by_hand_dummy): Fix the function
2375 comment. And extract out a code section into...
2376 (reserve_stack_space): ...this new function.
2377
37055cad
TBA
23782019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2379
2380 * infcall.c (value_arg_coerce): Remove an unused parameter.
2381 (call_function_by_hand_dummy): Update the call to
2382 'value_arg_coerce'.
2383
39bcc47c
TBA
23842019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2385
2386 * infcall.c (call_function_by_hand_dummy): Refactor.
2387
bd888c0f
TBA
23882019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2389
2390 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2391
c12d372d
TT
23922019-10-23 Tom Tromey <tom@tromey.com>
2393
2394 * configure: Rebuild.
2395 * configure.ac: Don't check for sigprocmask.
2396 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2397
4d0b984b
TT
23982019-10-23 Tom Tromey <tom@tromey.com>
2399
2400 * configure: Rebuild.
2401 * acinclude.m4: Use m4_include, not sinclude.
2402
7e785608
TV
24032019-10-23 Tom de Vries <tdevries@suse.de>
2404
2405 PR breakpoints/24687
2406 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2407
403772ef
CB
24082019-10-22 Christian Biesinger <cbiesinger@google.com>
2409
2410 * symtab.c (struct demangled_name_entry) <language>: Change from
2411 bitfield to regular variable.
2412
3a494279
CB
24132019-10-22 Christian Biesinger <cbiesinger@google.com>
2414
2415 * symtab.c (struct demangled_name_entry): Add a constructor.
2416 (free_demangled_name_entry): New function to call the destructor
2417 for demangled_name_entry.
2418 (create_demangled_names_hash): Pass free_demangled_name_entry to
2419 htab_create_alloc.
2420 (symbol_set_names): Call placement new for demangled_name_entry.
2421 * utils.c: No longer include xxhash.h here, now that fast_hash
2422 is inlined in the header.
2423 * utils.h: Instead, include it here.
2424
ccb1ba62
CB
24252019-10-22 Christian Biesinger <cbiesinger@google.com>
2426
2427 * Makefile.in: Link with libxxhash.
2428 * config.in: Regenerate.
2429 * configure: Regenerate.
2430 * configure.ac: Search for libxxhash.
2431 * utils.c (fast_hash): Use xxhash if present.
2432
1a6ff1a9
CB
24332019-10-22 Christian Biesinger <cbiesinger@google.com>
2434
2435 * utils.h (fast_hash): New function.
2436 * symtab.c (hash_demangled_name_entry): Call new function
2437 fast_hash.
2438
7bb43059
CB
24392019-10-22 Christian Biesinger <cbiesinger@google.com>
2440
2441 * symtab.c (struct demangled_name_entry): Change type of mangled
2442 to gdb::string_view. Also adds a constructor that takes the
2443 mangled name.
2444 (hash_demangled_name_entry): Update.
2445 (eq_demangled_name_entry): Update.
2446 (free_demangled_name_entry): New function to call the destructor
2447 now that this is not a POD anymore.
2448 (create_demangled_names_hash): Pass free_demangled_name_entry to
2449 htab_create_alloc.
2450 (symbol_set_names): Update.
2451
7ba99d21
AT
24522019-10-21 Ali Tamur <tamu@google.com>
2453
2454 * dwarf2read.c (dir_index): Change type.
2455 (file_name_index): Likewise.
2456 (line_header::include_dir_at): Change comment and implementation on
2457 whether it is DWARF 5.
2458 (line_header::is_valid_file_index): New function.
2459 (line_header::file_name_at): Change comment and implementation on
2460 whether it is DWARF 5.
2461 (line_header::file_names): Change to private field renamed as
2462 m_file_names and introduce a new accessor method.
2463 (line_header::file_names_size): New method.
2464 (line_header::include_dirs): Change to private field and rename as
2465 m_include_dirs.
2466 (dw2_get_file_names_reader): Define local var at a smaller scope and
2467 reflect API change.
2468 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2469 (process_structure_scope): Likewise.
2470 (line_header::add_include_dir): Change message and reflect renaming.
2471 (line_header::add_file_name): Likewise.
2472 (read_formatted_entries): Handle DW_FORM_data16.
2473 (dwarf_decode_line_header): Fix line header length calculation.
2474 (psymtab_include_file_name): Change comment and API.
2475 (lnp_state_machine::m_file): Update comment and reflect type change.
2476 (lnp_state_machine::record_line): Reflect type change.
2477 (dwarf_decode_lines): Reflect API change.
2478 (file_file_name): Likewise.
2479 (file_full_name): Likewise.
2480
45f47c3a
AB
24812019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2482
2483 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2484
e5f3c0e3
TT
24852019-10-21 Tom Tromey <tom@tromey.com>
2486
2487 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2488
a0a461e5
TT
24892019-10-21 Tom Tromey <tom@tromey.com>
2490
2491 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2492 NM_H. Use AC_CONFIG_LINKS.
2493 * configure: Rebuild.
2494 * Makefile.in (NM_H): New variable.
2495 (generated_files): Add NM_H. Remove gcore.
2496 (nm.h, stamp-nmh): New targets.
2497
54d83b8d
TT
24982019-10-20 Tom Tromey <tom@tromey.com>
2499
2500 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2501 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2502 obsolete comment.
2503 (put_objfile_before): Now static.
2504
23771117
SM
25052019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2506
2507 * gdbsupport/common-utils.h (startswith): Change return type to
2508 bool.
2509
39ef2f62
CB
25102019-10-19 Christian Biesinger <cbiesinger@google.com>
2511
2512 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2513 * breakpoint.c (bp_locations_compare): Rename to...
2514 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2515 (update_global_location_list): Use std::sort instead of qsort.
2516 * buildsym.c (compare_line_numbers): Rename to...
2517 (lte_is_less_than): ...this, and change to std::sort semantics.
2518 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2519 instead of qsort.
2520 * disasm.c (compare_lines): Rename to...
2521 (line_is_less_than): ...this, and change to std::sort semantics.
2522 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2523 of qsort.
2524 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2525 (fde_is_less_than): ...this, and change to std::sort semantics.
2526 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2527 * mdebugread.c (compare_blocks):
2528 (block_is_less_than): ...this, and change to std::sort semantics.
2529 (sort_blocks): Call std::sort instead of qsort.
2530 * objfiles.c (qsort_cmp): Rename to...
2531 (sort_cmp): ...this, and change to std::sort semantics.
2532 (update_section_map): Call std::sort instead of qsort.
2533 * remote.c (compare_pnums): Remove.
2534 (map_regcache_remote_table): Call std::sort instead of qsort.
2535 * utils.c (compare_positive_ints): Remove.
2536 * utils.h (compare_positive_ints): Remove.
2537 * xcoffread.c (compare_lte): Remove.
2538 (arrange_linetable): Call std::sort instead of qsort.
2539
f71433ee
SDJ
25402019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2541
2542 * symfile.c (init_entry_point_info): Fix typo.
2543 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2544
85102364
TV
25452019-10-18 Tom de Vries <tdevries@suse.de>
2546
2547 * aarch64-tdep.c: Fix typos in comments.
2548 * ada-lang.c: Same.
2549 * ada-tasks.c: Same.
2550 * alpha-tdep.c: Same.
2551 * alpha-tdep.h: Same.
2552 * amd64-nat.c: Same.
2553 * amd64-windows-tdep.c: Same.
2554 * arc-tdep.c: Same.
2555 * arc-tdep.h: Same.
2556 * arch-utils.c: Same.
2557 * arm-nbsd-tdep.c: Same.
2558 * arm-tdep.c: Same.
2559 * ax-gdb.c: Same.
2560 * blockframe.c: Same.
2561 * btrace.c: Same.
2562 * c-varobj.c: Same.
2563 * coff-pe-read.c: Same.
2564 * coffread.c: Same.
2565 * cris-tdep.c: Same.
2566 * darwin-nat.c: Same.
2567 * dbxread.c: Same.
2568 * dcache.c: Same.
2569 * disasm.c: Same.
2570 * dtrace-probe.c: Same.
2571 * dwarf-index-write.c: Same.
2572 * dwarf2-frame-tailcall.c: Same.
2573 * dwarf2-frame.c: Same.
2574 * dwarf2read.c: Same.
2575 * eval.c: Same.
2576 * exceptions.c: Same.
2577 * fbsd-tdep.c: Same.
2578 * findvar.c: Same.
2579 * frame.c: Same.
2580 * frv-tdep.c: Same.
2581 * gnu-v3-abi.c: Same.
2582 * go32-nat.c: Same.
2583 * h8300-tdep.c: Same.
2584 * hppa-tdep.c: Same.
2585 * i386-linux-tdep.c: Same.
2586 * i386-tdep.c: Same.
2587 * ia64-libunwind-tdep.c: Same.
2588 * ia64-tdep.c: Same.
2589 * infcmd.c: Same.
2590 * infrun.c: Same.
2591 * linespec.c: Same.
2592 * linux-nat.c: Same.
2593 * linux-thread-db.c: Same.
2594 * machoread.c: Same.
2595 * mdebugread.c: Same.
2596 * mep-tdep.c: Same.
2597 * mn10300-tdep.c: Same.
2598 * namespace.c: Same.
2599 * objfiles.c: Same.
2600 * opencl-lang.c: Same.
2601 * or1k-tdep.c: Same.
2602 * osabi.c: Same.
2603 * ppc-linux-nat.c: Same.
2604 * ppc-linux-tdep.c: Same.
2605 * ppc-sysv-tdep.c: Same.
2606 * printcmd.c: Same.
2607 * procfs.c: Same.
2608 * record-btrace.c: Same.
2609 * record-full.c: Same.
2610 * remote-fileio.c: Same.
2611 * remote.c: Same.
2612 * rs6000-tdep.c: Same.
2613 * s12z-tdep.c: Same.
2614 * score-tdep.c: Same.
2615 * ser-base.c: Same.
2616 * ser-go32.c: Same.
2617 * skip.c: Same.
2618 * sol-thread.c: Same.
2619 * solib-svr4.c: Same.
2620 * solib.c: Same.
2621 * source.c: Same.
2622 * sparc-nat.c: Same.
2623 * sparc-sol2-tdep.c: Same.
2624 * sparc-tdep.c: Same.
2625 * sparc64-tdep.c: Same.
2626 * stabsread.c: Same.
2627 * stack.c: Same.
2628 * symfile.c: Same.
2629 * symtab.c: Same.
2630 * target-descriptions.c: Same.
2631 * target-float.c: Same.
2632 * thread.c: Same.
2633 * utils.c: Same.
2634 * valops.c: Same.
2635 * valprint.c: Same.
2636 * value.c: Same.
2637 * varobj.c: Same.
2638 * windows-nat.c: Same.
2639 * xcoffread.c: Same.
2640 * xstormy16-tdep.c: Same.
2641 * xtensa-tdep.c: Same.
2642
c5adaa19
TT
26432019-10-17 Tom Tromey <tromey@adacore.com>
2644
2645 * configure: Rebuild.
2646 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2647 in AC_CONFIG_FILES invocation.
2648 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2649 new-style config.status invocation.
2650
405feb71
TV
26512019-10-17 Tom de Vries <tdevries@suse.de>
2652
2653 * arm-nbsd-nat.c: Fix typos in comments.
2654 * arm-tdep.c: Same.
2655 * darwin-nat-info.c: Same.
2656 * dwarf2read.c: Same.
2657 * elfread.c: Same.
2658 * event-top.c: Same.
2659 * findvar.c: Same.
2660 * gdbtypes.c: Same.
2661 * hppa-tdep.c: Same.
2662 * i386-tdep.c: Same.
2663 * jit.c: Same.
2664 * main.c: Same.
2665 * mdebugread.c: Same.
2666 * moxie-tdep.c: Same.
2667 * nto-procfs.c: Same.
2668 * osabi.c: Same.
2669 * ppc-linux-tdep.c: Same.
2670 * remote.c: Same.
2671 * riscv-tdep.c: Same.
2672 * s390-tdep.c: Same.
2673 * sh-tdep.c: Same.
2674 * sparc-linux-tdep.c: Same.
2675 * sparc-nat.c: Same.
2676 * stack.c: Same.
2677 * target-descriptions.c: Same.
2678 * top.c: Same.
2679 * varobj.c: Same.
2680
befcd486
TT
26812019-10-16 Tom Tromey <tom@tromey.com>
2682
2683 * objfiles.h (struct objfile) <original_name>: Now const.
2684
17bfe554
CB
26852019-10-16 Christian Biesinger <cbiesinger@google.com>
2686
2687 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2688 pass on to sigsetjmp's second argument.
2689 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2690
950b7495
KS
26912019-10-16 Keith Seitz <keiths@redhat.com>
2692
2693 PR gdb/23567
2694 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2695 sections whose size is greater than the file size.
2696
ff371ec9
JW
26972019-10-16 Jim Wilson <jimw@sifive.com>
2698
2699 * riscv-tdep.c (riscv_gcc_target_options): New.
2700 (riscv_gnu_triplet_regexp): New.
2701 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2702 set_gdbarch_gnu_triplet_regexp.
2703
fec4e896
CB
27042019-10-16 Christian Biesinger <cbiesinger@google.com>
2705
2706 * Makefile.in: Add xml-builtin.h.
2707 * features/feature_to_c.sh: Add an include for xml-builtin.h
2708 to ensure that the compiler checks that the types match.
2709 * xml-builtin.h: New file.
2710 * xml-support.c (fetch_xml_builtin): Add missing const.
2711 * xml-support.h: Remove declaration of xml_builtins.
2712
d10eccaa
TV
27132019-10-16 Tom de Vries <tdevries@suse.de>
2714
2715 PR tdep/25096
2716 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2717 (amd64_classify_aggregate): ... here.
2718 (amd64_classify_aggregate_field): Handled fiels of nested structs
2719 recursively.
2720
745ff14e
TV
27212019-10-16 Tom de Vries <tdevries@suse.de>
2722
2723 PR tdep/24104
2724 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2725 that handles 'theclass'.
2726
791b7405
AB
27272019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2728
2729 * linespec.c (decode_digits_ordinary): Update comment.
2730 * make-target-delegates: No longer need to handle VEC case.
2731 * memrange.c (normalize_mem_ranges): Update comment.
2732 * namespace.c (add_using_directive): Update comment.
2733 * objc-lang.c (uniquify_strings): Update comment.
2734 * ppc-linux-nat.c (struct thread_points): Update comment.
2735 * probe.h (find_probes_in_objfile): Update comment.
2736 * target.h (enum flash_preserve_mode): Update comment.
2737 * varobj.c (varobj_restrict_range): Update comment.
2738 * varobj.h (varobj_list_children): Update comment.
2739
0dc32745
AB
27402019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2741
2742 * Makefile.in: Remove references to vec.h and vec.c.
2743 * aarch64-tdep.c: No longer include vec.h.
2744 * ada-lang.c: Likewise.
2745 * ada-lang.h: Likewise.
2746 * arm-tdep.c: Likewise.
2747 * ax.h: Likewise.
2748 * breakpoint.h: Likewise.
2749 * charset.c: Likewise.
2750 * cp-support.h: Likewise.
2751 * dtrace-probe.c: Likewise.
2752 * dwarf2read.c: Likewise.
2753 * extension.h: Likewise.
2754 * gdb_bfd.c: Likewise.
2755 * gdbsupport/gdb_vecs.h: Likewise.
2756 * gdbsupport/vec.c: Remove.
2757 * gdbsupport/vec.h: Remove.
2758 * gdbthread.h: Likewise.
2759 * guile/scm-type.c: Likewise.
2760 * inline-frame.c: Likewise.
2761 * machoread.c: Likewise.
2762 * memattr.c: Likewise.
2763 * memrange.h: Likewise.
2764 * namespace.h: Likewise.
2765 * nat/linux-btrace.h: Likewise.
2766 * osdata.c: Likewise.
2767 * parser-defs.h: Likewise.
2768 * progspace.h: Likewise.
2769 * python/py-type.c: Likewise.
2770 * record-btrace.c: Likewise.
2771 * rust-exp.y: Likewise.
2772 * solib-target.c: Likewise.
2773 * stap-probe.c: Likewise.
2774 * target-descriptions.c: Likewise.
2775 * target-memory.c: Likewise.
2776 * target.h: Likewise.
2777 * varobj.c: Likewise.
2778 * varobj.h: Likewise.
2779 * xml-support.h: Likewise.
2780
ae640021
AB
27812019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2782
2783 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2784 Update for new std::vector based implementation.
2785 (process_psymtab_comp_unit_reader): Likewise.
2786 (scan_partial_symbols): Likewise.
2787 (recursively_compute_inclusions): Likewise.
2788 (compute_compunit_symtab_includes): Likewise.
2789 (process_imported_unit_die): Likewise.
2790 (queue_and_load_dwo_tu): Likewise.
2791 (follow_die_sig_1): Likewise.
2792 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2793 (typedef dwarf2_per_cu_ptr): Remove.
2794 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2795 function.
2796 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2797 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2798 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2799 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2800 std::vector.
2801
55dfc88f
TT
28022019-10-15 Tom Tromey <tromey@adacore.com>
2803
2804 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2805 TID.
2806
96b49c5e
TT
28072019-10-15 Tom Tromey <tromey@adacore.com>
2808
2809 * windows-nat.c (windows_nat_target::fetch_registers)
2810 (windows_nat_target::store_registers): Rename "pid" to "tid".
2811
953cff56
TT
28122019-10-15 Tom Tromey <tromey@adacore.com>
2813
2814 * gdbarch.h, gdbarch.c: Rebuild.
2815 * gdbarch.sh (gcc_target_options): Change return type to
2816 std::string.
2817 * compile/compile.c (get_args): Update.
2818 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2819 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2820 std::string.
2821 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2822 std::string.
2823 * arch-utils.c (default_gcc_target_options): Return std::string.
2824 * arch-utils.h (default_gcc_target_options): Return std::string.
2825 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2826
81e6b8eb
CB
28272019-10-15 Christian Biesinger <cbiesinger@google.com>
2828
2829 * breakpoint.c (breakpoint_chain): Make static.
2830 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2831 of accessing breakpoint_chain.
2832
95da600f
CB
28332019-10-15 Christian Biesinger <cbiesinger@google.com>
2834
2835 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2836 to a gdb::function_view and return value to bool.
2837 * breakpoint.h (iterate_over_breakpoints): Likewise.
2838 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2839 (pop_dummy_frame): Update.
2840 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2841 (gdbscm_breakpoints): Update.
2842 * python/py-breakpoint.c (build_bp_list): Update.
2843 (gdbpy_breakpoints): Update.
2844 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2845 Update.
2846 (bpfinishpy_handle_stop): Update.
2847 (bpfinishpy_handle_exit): Update.
2848 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2849 (svr4_update_solib_event_breakpoints): Update.
2850
ba18312d
AA
28512019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2852
2853 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2854 when unwrapping single-field structs.
2855
6acc1a0b
SM
28562019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2857
2858 * dwarf2read.c: Remove includes.
2859
284782de
SM
28602019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2861
2862 * ui-out.c (ui_out::call_do_message): Silence
2863 -Wformat-nonliteral warning.
2864
073bbbb0
SM
28652019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2866
2867 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2868 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2869 include: readline/tilde.h.
2870
7b9a15e1
CB
28712019-10-12 Christian Biesinger <cbiesinger@google.com>
2872
2873 * remote.c (remote_target::get_trace_status): Remove declaration of
2874 trace_regblock_size.
2875
cc8dee1f
CB
28762019-10-12 Christian Biesinger <cbiesinger@google.com>
2877
2878 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2879 (show_user): Remove declaration of cmdlist.
2880 * cli/cli-cmds.h (max_user_call_depth): Declare.
2881 * cli/cli-script.c (execute_user_command): Remove declaration
2882 of max_user_call_depth.
2883
a83d4ef6
JW
28842019-10-11 Jim Wilson <jimw@sifive.com>
2885
5f93c5a6
JW
2886 * gdbsupport/print-utils.h (pulongest): Fix comment.
2887 (plongest): Likewise.
2888 (phex): Add missing comment, mention leading zeros.
2889 (phex_nz): Add mention of no leading zeros to comment.
2890
a83d4ef6
JW
2891 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2892 plongest instead of unsigned long long cast.
2893
26344e0c
CB
28942019-10-10 Christian Biesinger <cbiesinger@google.com>
2895
2896 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2897 for external_editor_command and gdbtk_test.
2898
c2c440a9
CB
28992019-10-10 Christian Biesinger <cbiesinger@google.com>
2900
2901 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2902 * varobj.c (varobjdebug): Move comment to...
2903 * varobj.h (varobjdebug): ...here, and declare.
2904
a31bff9d
TT
29052019-10-09 Tom Tromey <tom@tromey.com>
2906
2907 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2908 erase_data_content.
2909
7523da63
TT
29102019-10-09 Tom Tromey <tom@tromey.com>
2911
2912 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2913 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2914 * tui/tui-command.c (tui_cmd_window::resize)
2915 (tui_refresh_cmd_win): Update.
2916 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2917 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2918 * tui/tui-data.c (~tui_gen_win_info): Remove.
2919 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2920 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2921 (tui_redisplay_readline, tui_mld_flush)
2922 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2923 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2924 (tui_data_window::erase_data_content)
2925 (tui_data_item_window::rerender)
2926 (tui_data_item_window::refresh_window): Update.
2927 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2928 (box_win, tui_gen_win_info::make_window)
2929 (tui_gen_win_info::make_visible): Update.
2930 (tui_delete_win): Remove.
2931 * tui/tui-winsource.c
2932 (tui_source_window_base::do_erase_source_content): Update.
2933 (tui_show_source_line, tui_source_window_base::update_tab_width)
2934 (tui_source_window_base::update_exec_info): Update.
2935 * tui/tui-data.h (struct curses_deleter): New.
2936 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2937 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2938
a7798e7f
TT
29392019-10-09 Tom Tromey <tom@tromey.com>
2940
2941 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2942
5c45899e
TT
29432019-10-09 Tom Tromey <tom@tromey.com>
2944
2945 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2946 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2947
6d7fd9aa
TT
29482019-10-09 Tom Tromey <tom@tromey.com>
2949
2950 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2951 window height directly.
2952 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2953 declare.
2954 * tui/tui-layout.c (tui_default_win_height): Remove.
2955 (tui_default_win_viewport_height): Remove.
2956
d2dd1084
TT
29572019-10-09 Tom Tromey <tom@tromey.com>
2958
2959 * tui/tui.h: Remove comments.
2960
cff32449
TV
29612019-10-09 Tom de Vries <tdevries@suse.de>
2962
2963 * python/lib/gdb/printer/bound_registers.py: Use
2964 '^builtin_type_bound128' as regexp argument for
2965 add_builtin_pretty_printer.
2966
6a25e8a2
CB
29672019-10-09 Christian Biesinger <cbiesinger@google.com>
2968
2969 * guile/guile.c (guile_extension_script_ops): Remove forward
2970 declaration and mark as static.
2971 (guile_script_ops): Likewise.
2972 (extension_language_guile): Move further down in the file so
2973 it can reference the definitions for guile_{extension_,}script_ops.
2974
6d9d6da4
AA
29752019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2976
2977 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2978 except SORTL, DFLTCC, and KDSA.
2979
3abea05d
TT
29802019-10-08 Tom Tromey <tromey@adacore.com>
2981
2982 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2983 (struct safe_symbol_file_add_args): Remove.
2984
dde996e2
TT
29852019-10-08 Tom Tromey <tromey@adacore.com>
2986
2987 * windows-nat.c: Don't include buildsym-legacy.h.
2988
cd6fdaa1
TT
29892019-10-08 Tom Tromey <tromey@adacore.com>
2990
2991 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2992
79bb1944
CB
29932019-10-08 Christian Biesinger <cbiesinger@google.com>
2994
2995 * gdbtypes.c (overload_debug): Move comment to header.
2996 * gdbtypes.h (overload_debug): Declare.
2997 * valops.c: Remove declaration of overload_debug, instead
2998 include gdbtypes.h.
2999
34916edc
CB
30002019-10-08 Christian Biesinger <cbiesinger@google.com>
3001
3002 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3003 through _().
3004 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3005 move comment...
3006 * language.h (lang_frame_mismatch_warn): ... here. Also add
3007 declaration.
3008 * top.c (lang_frame_mismatch_warn): Remove declaration.
3009 (check_frame_language_change): Pass lang_frame_mismatch_warn
3010 through _().
3011
bad5c026
CB
30122019-10-07 Christian Biesinger <cbiesinger@google.com>
3013
3014 * c-lang.h (vtbl_ptr_name): Declare.
3015 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3016 it from the header.
3017 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3018
51f1fdc3
CB
30192019-10-07 Christian Biesinger <cbiesinger@google.com>
3020
3021 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3022 gdb_static_assert.
3023
30d1f018
WP
30242019-10-07 Weimin Pan <weimin.pan@oracle.com>
3025
606813d5
WP
3026 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3027 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
3028 * ctfread.c: New file.
3029 * ctfread.h: New file.
3030 * elfread.c: Include ctfread.h.
3031 (struct elfinfo text_p): New member ctfsect.
3032 (elf_locate_sections): Mark CTF section.
3033 (elf_symfile_read): Call elfctf_build_psymtabs.
3034 * Makefile.in (LIBCTF): Add.
3035 (CLIBS): Use it.
3036 (CDEPS): Likewise.
3037 (DIST): Add ctfread.c.
606813d5
WP
3038
30392019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3040
3041 * ctfread.c (struct nextfield): Renamed to ...
3042 (struct ctf_nextfield): ... this.
3043 (struct field_info): Renamed to ...
3044 (strut ctf_field_info): ... this.
3045 (attach_fields_to_type): Update for renamed structures.
3046 (ctf_add_member_cb): Likewise.
3047 (ctf_add_enum_member_cb): Likewise.
3048 (process_struct_members): Likewise.
3049 (process_enum_type): Likewise.
30d1f018 3050
518fe38c
WP
30512019-10-07 Weimin Pan <weimin.pan@oracle.com>
3052
3053 * tracectf.h: Rename, was ctf.h.
3054 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3055 * tracefile.c: Likewise.
3056 * tracepoint.c: Remove unused include ctf.h.
3057 * mi/mi-main.c: Likewise.
3058 * Makefile.in Replace ctf.c with tracectf.c.
3059
225f296a
JB
30602019-10-06 Joel Brobecker <brobecker@adacore.com>
3061
3062 * version.in: Change version number to "9.0.50.DATE-git".
3063
77c2dba3
TT
30642019-10-03 Tom Tromey <tom@tromey.com>
3065
3066 PR rust/24976:
3067 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3068
179aed7f
AB
30692019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3070
3071 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3072 cp_search_name_hash.
3073 * NEWS: Add entry about nested function support.
3074
0a4b0913
AB
30752019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3076 Andrew Burgess <andrew.burgess@embecosm.com>
3077
3078 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3079 for nested static variables when searchin VAR_DOMAIN.
3080 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3081 global scope, update comment.
3082 (add_partial_subprogram): Call add_partial_subprogram recursively
3083 for nested subroutines when processinng Fortran.
3084 (load_partial_dies): Process the child entities of a subprogram
3085 when processing Fortran.
3086 (partial_die_parent_scope): Handle building scope
3087 for Fortran nested functions.
3088 (process_die): Record that nested functions have a scope.
3089 (new_symbol): Always record Fortran subprograms on the global
3090 symbol list.
3091 (determine_prefix): How to build the prefix for Fortran
3092 subprograms.
3093
d8c06f22
AB
30942019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3095
3096 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3097 have just sent the thread a SIGSTOP and are waiting for it to
3098 arrive.
3099
a8b3b8e9
AB
31002019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3101
3102 * btrace.c (btrace_add_pc): Remove whitespace before the template
3103 parameter in 'std::vector <...>'.
3104 (parse_xml_btrace_block): Likewise.
3105 (btrace_maint_decode_pt): Likewise.
3106 (btrace_maint_update_packets): Likewise.
3107 (btrace_maint_print_packets): Likewise.
3108 * btrace.h (struct btrace_maint_info): Likewise.
3109 * dwarf2read.c (struct type_unit_group): Likewise.
3110 (build_type_psymtabs_reader): Likewise.
3111 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3112 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3113 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3114
4d825eab
TV
31152019-10-03 Tom de Vries <tdevries@suse.de>
3116
3117 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3118 the first line of the help text for set/show style metadata.
3119
80fd2826
TT
31202019-10-02 Tom Tromey <tromey@adacore.com>
3121
3122 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3123 * gdbsupport/common-inferior.c: New file.
3124 * infcmd.c (startup_with_shell): Don't define.
3125 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3126 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3127 * inferior.h (startup_with_shell): Don't declare.
3128
70054538
CB
31292019-10-02 Christian Biesinger <cbiesinger@google.com>
3130
3131 * gdbsupport/gdb_assert.h: Include errors.h.
3132 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3133
37f6a7f4
TT
31342019-10-02 Tom Tromey <tromey@adacore.com>
3135
3136 * NEWS: Add $_ada_exception entry.
3137 * ada-lang.c (struct ada_catchpoint): Add constructor.
3138 <m_kind>: New member.
3139 (allocate_location_exception, re_set_exception): Remove
3140 "ex" parameter.
3141 (should_stop_exception): Compute $_ada_exception.
3142 (check_status_exception, print_it_exception)
3143 (print_one_exception, print_mention_exception): Remove
3144 "ex" parameter.
3145 (allocate_location_catch_exception, re_set_catch_exception)
3146 (check_status_exception, print_it_catch_exception)
3147 (print_one_catch_exception, print_mention_catch_exception)
3148 (print_recreate_catch_exception)
3149 (allocate_location_catch_exception_unhandled)
3150 (re_set_catch_exception_unhandled)
3151 (check_status_exception, print_it_catch_exception_unhandled)
3152 (print_one_catch_exception_unhandled)
3153 (print_mention_catch_exception_unhandled)
3154 (print_recreate_catch_exception_unhandled)
3155 (allocate_location_catch_assert, re_set_catch_assert)
3156 (check_status_assert, print_it_catch_assert)
3157 (print_one_catch_assert, print_mention_catch_assert)
3158 (print_recreate_catch_assert)
3159 (allocate_location_catch_handlers, re_set_catch_handlers)
3160 (check_status_handlers, print_it_catch_handlers)
3161 (print_one_catch_handlers, print_mention_catch_handlers)
3162 (print_recreate_catch_handlers): Remove.
3163 (create_ada_exception_catchpoint): Update.
3164 (initialize_ada_catchpoint_ops): Update.
3165
fccf9de1
TT
31662019-10-02 Tom Tromey <tromey@adacore.com>
3167
3168 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3169 (create_excep_cond_exprs): Simplify exception string computation.
3170 (ada_exception_catchpoint_cond_string): Likewise.
3171
4b610737
TT
31722019-10-02 Tom Tromey <tromey@adacore.com>
3173
3174 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3175 * ada-lang.c (lesseq_defined_than): Handle
3176 LOC_STATIC.
3177 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3178 parameter.
3179 (dwarf2_has_info): Likewise.
3180 (new_symbol): Set maybe_copied on symbol when
3181 appropriate.
3182 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3183 parameter.
3184 <can_copy>: New member.
3185 * elfread.c (record_minimal_symbol): Set maybe_copied
3186 on symbol when appropriate.
3187 (elf_symfile_read): Update call to dwarf2_has_info.
3188 * minsyms.c (lookup_minimal_symbol_linkage): New
3189 function.
3190 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3191 * symtab.c (get_symbol_address, get_msymbol_address):
3192 New functions.
3193 * symtab.h (get_symbol_address, get_msymbol_address):
3194 Declare.
3195 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3196 maybe_copied.
3197 (struct symbol, struct minimal_symbol) <maybe_copied>:
3198 New member.
3199
1dd58850
TT
32002019-10-02 Tom Tromey <tromey@adacore.com>
3201
3202 * source.c (struct current_source_location): New.
3203 (current_source_key): New global.
3204 (current_source_symtab, current_source_line)
3205 (current_source_pspace): Remove.
3206 (get_source_location): New function.
3207 (get_current_source_symtab_and_line)
3208 (set_default_source_symtab_and_line)
3209 (set_current_source_symtab_and_line)
3210 (clear_current_source_symtab_and_line, select_source_symtab)
3211 (info_source_command, print_source_lines_base)
3212 (info_line_command, search_command_helper, _initialize_source):
3213 Update.
3214
5c281dbb
TT
32152019-10-02 Tom Tromey <tromey@adacore.com>
3216
3217 * source.c (select_source_symtab): Don't call
3218 decode_line_with_current_source.
3219
d3d32391
AB
32202019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3221
3222 * symtab.c (lookup_global_symbol): Search global block.
3223
38583298
TT
32242019-10-02 Tom Tromey <tromey@adacore.com>
3225
3226 * coffread.c (process_coff_symbol): Update.
3227 * dwarf2read.c (var_decode_location, new_symbol): Update.
3228 * mdebugread.c (parse_symbol): Update.
3229 * objfiles.c (relocate_one_symbol): Update.
3230 * stabsread.c (define_symbol, fix_common_block)
3231 (scan_file_globals): Update.
3232 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3233 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3234 * xcoffread.c (process_xcoff_symbol): Update.
3235
9344c18f
AA
32362019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3237
3238 * MAINTAINERS: Update my email address.
3239
df07e2c7
AB
32402019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3241
3242 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3243 std::vector.
3244 (build_type_psymtabs_reader): Update for std::vector.
3245 (build_type_psymtab_dependencies): Likewise.
3246 * dwarf2read.h: Remove use of DEF_VEC_P.
3247 (typedef sig_type_ptr): Delete.
3248
554ac434
AB
32492019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3250
3251 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3252 to std::vector.
3253 (btrace_maint_decode_pt): Likewise, and move allocation of the
3254 vector outside of the loop.
3255 (btrace_maint_update_packets): Update to handle change from VEC to
3256 std::vector.
3257 (btrace_maint_print_packets): Likewise.
3258 (maint_info_btrace_cmd): Likewise.
3259 * btrace.h: Remove use of DEF_VEC_O.
3260 (typedef btrace_pt_packet_s): Delete.
3261 (struct btrace_maint_info) <packets>: Change fromm VEC to
3262 std::vector.
3263 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3264
46f29a9a
AB
32652019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3266
3267 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3268 make accesses into the vector constant references.
3269 (btrace_add_pc): Update for std::vector.
3270 (btrace_stitch_bts): Likewise.
3271 (parse_xml_btrace_block): Likewise.
3272 (btrace_maint_update_packets): Likewise.
3273 (btrace_maint_print_packets): Likewise.
3274 (maint_info_btrace_cmd): Likewise.
3275 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3276 std::vector.
3277 (btrace_data::empty): Likewise.
3278 (btrace_data_append): Likewise.
3279 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3280 (typedef btrace_block_s): Delete.
3281 (struct btrace_block): Add constructor.
3282 (struct btrace_data_bts) <blocks>: Change to std::vector.
3283 * nat/linux-btrace.c (perf_event_read_bts): Update for
3284 std::vector.
3285 (linux_read_bts): Likewise.
3286
d770d56f
TT
32872019-10-01 Tom Tromey <tom@tromey.com>
3288
3289 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3290
9d636d67
TT
32912019-10-01 Tom Tromey <tom@tromey.com>
3292
3293 * stack.c (print_frame, info_frame_command_core): Use
3294 styled_string.
3295 * linux-thread-db.c (try_thread_db_load_1)
3296 (try_thread_db_load_from_pdir_1): Use styled_string.
3297 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3298 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3299 (maybe_print_unsupported_script_warning)
3300 (maybe_print_script_not_found_warning): Use styled_string.
3301 * ada-lang.c (user_select_syms): Use styled_string.
3302
7f6aba03
TT
33032019-10-01 Tom Tromey <tom@tromey.com>
3304
3305 * p-lang.c (pascal_printstr): Use metadata style.
3306 * value.c (show_convenience): Use metadata style.
3307 * valprint.c (valprint_check_validity, val_print_optimized_out)
3308 (val_print_not_saved, val_print_unavailable)
3309 (val_print_invalid_address, generic_val_print, val_print)
3310 (value_check_printable, val_print_array_elements): Use metadata
3311 style.
3312 * ui-out.h (class ui_out) <field_fmt>: New overload.
3313 <do_field_fmt>: Add style parameter.
3314 * ui-out.c (ui_out::field_fmt): New overload.
3315 * typeprint.c (type_print_unknown_return_type)
3316 (val_print_not_allocated, val_print_not_associated): Use metadata
3317 style.
3318 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3319 parameter.
3320 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3321 * tracepoint.c (tvariables_info_1): Use metadata style.
3322 * stack.c (print_frame_arg, print_frame_info, print_frame)
3323 (info_frame_command_core): Use metadata style.
3324 * skip.c (info_skip_command): Use metadata style.
3325 * rust-lang.c (rust_print_enum): Use metadata style.
3326 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3327 metadata style.
3328 * python/py-framefilter.c (py_print_single_arg): Use metadata
3329 style.
3330 * printcmd.c (do_one_display, print_variable_and_value): Use
3331 metadata style.
3332 * p-valprint.c (pascal_val_print)
3333 (pascal_object_print_value_fields): Use metadata style.
3334 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3335 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3336 parameter.
3337 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3338 * m2-valprint.c (m2_print_long_set): Use metadata style.
3339 * m2-typeprint.c (m2_print_type): Use metadata style.
3340 * infcmd.c (print_return_value_1): Use metadata style.
3341 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3342 * f-valprint.c (info_common_command_for_block): Use metadata
3343 style.
3344 * f-typeprint.c (f_type_print_base): Use metadata style.
3345 * expprint.c (print_subexp_standard): Use metadata style.
3346 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3347 * cli/cli-style.h (class cli_style_option): Add constructor.
3348 (metadata_style): Declare.
3349 * cli/cli-style.c (metadata_style): New global.
3350 (_initialize_cli_style): Register metadata style.
3351 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3352 parameter.
3353 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3354 * c-typeprint.c (c_type_print_base_struct_union)
3355 (c_type_print_base_1): Use metadata style.
3356 * breakpoint.c (watchpoint_value_print)
3357 (print_one_breakpoint_location): Use metadata style.
3358 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3359 style.
3360 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3361 style.
3362 * ada-valprint.c (val_print_packed_array_elements, printstr)
3363 (print_field_values, ada_val_print_ref, ada_val_print): Use
3364 metadata style.
3365 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3366 style.
3367 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3368 style.
3369 * ada-lang.c (user_select_syms): Use metadata style.
3370
14309bb6
TT
33712019-10-01 Tom Tromey <tom@tromey.com>
3372
3373 * cli/cli-cmds.c (pwd_command): Style output.
3374
6a831f06
PA
33752019-10-01 Pedro Alves <palves@redhat.com>
3376 Tom Tromey <tom@tromey.com>
3377
3378 * symtab.c (print_symbol_info): Use %ps.
3379 (print_msymbol_info): Use %ps.
3380 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3381 * printcmd.c (print_variable_and_value): Use %ps.
3382 * macrocmd.c (show_pp_source_pos): Use %ps.
3383 * infrun.c (print_exited_reason): Use ui_out::message.
3384 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3385 (describe_other_breakpoints): Use ui_out::message and new
3386 formats.
3387 (say_where): Use new formats.
3388 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3389 and new formats.
3390
2a3c1174
PA
33912019-10-01 Pedro Alves <palves@redhat.com>
3392 Tom Tromey <tom@tromey.com>
3393
3394 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3395 (test_gdb_formats): New function.
3396 (run_tests): Call it.
3397 (test_format_specifier): Update.
3398 * utils.h (fputs_filtered): Update comment.
3399 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3400 (fputs_styled_unfiltered): Declare.
3401 * utils.c (fputs_styled_unfiltered): New function.
3402 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3403 (vfprintf_filtered): Update.
3404 (vfprintf_unfiltered, vprintf_filtered): Update.
3405 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3406 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3407 disallow_ui_out_field>: New constants.
3408 (enum class field_kind): New.
3409 (struct base_field_s, struct signed_field_s): New.
3410 (signed_field): New function.
3411 (struct string_field_s): New.
3412 (string_field): New function.
3413 (struct styled_string_s): New.
3414 (styled_string): New function.
3415 (class ui_out) <message>: Add comment.
3416 <vmessage, call_do_message>: New methods.
3417 <do_message>: Add style parameter.
3418 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3419 methods.
3420 (ui_out::message): Rewrite.
3421 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3422 parameter.
3423 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3424 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3425 gdb_extensions parameter.
3426 (class format_piece): Add parameter to constructor.
3427 (n_int_args): New field.
3428 * gdbsupport/format.c (format_pieces::format_pieces): Add
3429 gdb_extensions parameter. Handle '*'.
3430 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3431 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3432 vfprintf_styled_no_gdbfmt.
3433 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3434 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3435 unfiltered output.
3436 * ui-style.h (struct ui_file_style) <ptr>: New method.
3437
0dfe5bfb
TT
34382019-10-01 Tom Tromey <tom@tromey.com>
3439
3440 * unittests/format_pieces-selftests.c: Update. Add final format.
3441 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3442 empty literal pieces.
3443
e43b10e1
TT
34442019-10-01 Tom Tromey <tom@tromey.com>
3445
3446 * ui-out.h (enum class ui_out_style_kind): Remove.
3447 (class ui_out) <field_string, field_stsream, do_field_string>:
3448 Change type of "style".
3449 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3450 (ui_out::field_string): Update.
3451 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3452 of "style".
3453 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3454 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3455 * stack.c (print_frame_arg, print_frame_info, print_frame):
3456 Update.
3457 * source.c (print_source_lines_base): Update.
3458 * solib.c (info_sharedlibrary_command): Update.
3459 * skip.c (info_skip_command): Update.
3460 * record-btrace.c (btrace_call_history_src_line)
3461 (btrace_call_history): Update.
3462 * python/py-framefilter.c (py_print_frame): Update.
3463 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3464 "style".
3465 * mi/mi-out.c (mi_ui_out::do_table_header)
3466 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3467 (mi_ui_out::do_field_string): Update.
3468 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3469 Update.
3470 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3471 "style".
3472 * cli-out.c (cli_ui_out::do_table_header)
3473 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3474 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3475 (cli_ui_out::do_field_fmt): Update.
3476 * breakpoint.c (print_breakpoint_location): Update.
3477 (update_static_tracepoint): Update.
3478
cd7c32c3
PW
34792019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3480
3481 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3482 conversion of gdb_datadir.
3483 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3484 remove not needed c_str ().
3485
8fe0f950
AT
34862019-09-30 Ali Tamur <tamur@google.com>
3487
3488 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3489 (dwarf2_string_attr): Likewise.
3490
5f48f8f3
AT
34912019-09-30 Ali Tamur <tamur@google.com>
3492
3493 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3494 (process_full_type_unit): Likewise.
3495 (dump_die_shallow): Likewise.
3496 (cu_debug_loc_section): Likewise.
3497
6fb08628
CB
34982019-09-28 Christian Biesinger <cbiesinger@google.com>
3499
3500 * minsyms.c (compare_minimal_symbols): Rename to...
3501 (minimal_symbol_is_less_than): ...this, and adjust to STL
3502 conventions (return bool, take arguments as references)
3503 (minimal_symbol_reader::install): Call std::sort instead
3504 of qsort.
3505
c7ee338a
CB
35062019-09-29 Christian Biesinger <cbiesinger@google.com>
3507
3508 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3509 hash and why.
3510 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3511 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3512
703a86c2
SM
35132019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3514
3515 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3516 * psympriv.h (add_psymbol_to_list): Move comment here and update
3517 it.
3518
0df0352a
TV
35192019-09-29 Tom de Vries <tdevries@suse.de>
3520
3521 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3522 Use $tmpdir/$(basename "$output_file").dwz instead of
3523 "${output_file}.dwz".
3524
ad75efa6
SM
35252019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3526
3527 PR gdb/25045
3528 * hppa-linux-nat.c: Include gdbarch.h.
3529
ececd218
CB
35302019-09-26 Christian Biesinger <cbiesinger@google.com>
3531
3532 * blockframe.c (find_pc_partial_function): Change return type to bool.
3533 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3534 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3535 (stub_gnu_ifunc_resolve_name): Likewise.
3536 * symtab.c (compare_filenames_for_search): Likewise.
3537 (compare_glob_filenames_for_search): Likewise.
3538 (matching_obj_sections): Likewise.
3539 (symbol_matches_domain): Likewise.
3540 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3541 (find_line_pc): Change return type to bool.
3542 (find_line_pc_range): Likewise.
3543 (producer_is_realview): Likewise.
3544 * symtab.h (symbol_matches_domain): Likewise.
3545 (find_pc_partial_function): Likewise.
3546 (find_pc_line_pc_range): Likewise.
3547 (in_gnu_ifunc_stub): Likewise.
3548 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3549 (find_line_pc): Likewise.
3550 (find_line_pc_range): Likewise.
3551 (matching_obj_sections): Likewise.
3552 (find_line_symtab): Change out parameter to bool.
3553 (producer_is_realview): Change return type to bool.
3554 (compare_filenames_for_search): Likewise.
3555 (compare_glob_filenames_for_search): Likewise.
3556
27a900b8
TT
35572019-09-26 Tom Tromey <tom@tromey.com>
3558
3559 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3560 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3561 * gdb_usleep.h: Remove.
3562 * gdb_usleep.c: Remove.
3563 * utils.c: Don't include gdb_usleep.h.
3564
5d63b30a
TT
35652019-09-26 Tom Tromey <tromey@adacore.com>
3566
3567 * python/py-type.c (type_to_type_object): Call check_typedef
3568 for stub types.
3569
12904d37
TT
35702019-09-26 Tom Tromey <tom@tromey.com>
3571
3572 * utils.h (initialize_utils): Don't declare.
3573 * top.c (gdb_init): Don't call initialize_utils.
3574 * utils.c (initialize_utils): Remove. Move contents...
3575 (_initialize_utils): ... here.
3576
858f25f0
TT
35772019-09-25 Tom Tromey <tom@tromey.com>
3578
3579 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3580 * utils.h (make_hex_string): Don't declare.
3581 * utils.c (make_hex_string): Remove.
3582
3d435220
TV
35832019-09-24 Tom de Vries <tdevries@suse.de>
3584
3585 PR gdb/23815
3586 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3587 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3588
ddd44b70
DD
35892019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3590
3591 * NEWS: Mention new simulator port for PRU.
3592
f945dedf
CB
35932019-09-23 Christian Biesinger <cbiesinger@google.com>
3594
3595 * ada-exp.y (write_object_remaining): Update.
3596 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3597 and eliminate the static buffer.
3598 (ada_decode_symbol): Update.
3599 (ada_la_decode): Update.
3600 (ada_sniff_from_mangled_name): Update.
3601 (is_valid_name_for_wild_match): Update.
3602 (ada_lookup_name_info::matches): Update and simplify.
3603 (name_matches_regex): Update.
3604 (ada_add_global_exceptions): Update.
3605 * ada-lang.h (ada_decode): Update signature.
3606 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3607 * dwarf-index-write.c (debug_names::insert): Update.
3608
7ab78ccb
SM
36092019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3610
3611 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3612 formatting.
3613
9252448b
SM
36142019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3615
3616 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3617 Change "nonzero" to "true" in documentation.
3618
626ca2c0
CB
36192019-09-20 Christian Biesinger <cbiesinger@google.com>
3620
3621 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3622 (_initialize_darwin_solib): Don't set
3623 darwin_so_ops.lookup_lib_global_symbol.
3624 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3625 set_gdbarch_iterate_over_objfiles_in_search_order.
3626 (elf_lookup_lib_symbol): Rename to...
3627 (svr4_iterate_over_objfiles_in_search_order): this, and update
3628 to iterate semantics.
3629 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3630 * solib.c (solib_global_lookup): Remove.
3631 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3632 (solib_global_lookup): Remove.
3633 * symtab.c (lookup_global_or_static_symbol): Remove call to
3634 solib_global_lookup.
3635
5a3a0d63
JB
36362019-09-20 Joel Brobecker <brobecker@adacore.com>
3637
3638 * NEWS: Move entries about default MI version now being
3639 version 3, and about the GDB/MI fix for multi-location
3640 breakpoints to the "since GDB 8.3" section.
3641
ffea1427
JB
36422019-09-20 Joel Brobecker <brobecker@adacore.com>
3643
3644 GDB 8.3.1 released.
3645
abf516c6
UW
36462019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3647
3648 * NEWS: Mention that Cell/B.E. debugging support was removed.
3649 * MAINTAINERS: Remove spu target.
3650
3651 * config/djgpp/fnchange.lst: Remove entries for removed files.
3652
3653 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3654 spu-multiarch.o, and spu-tdep.o.
3655 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3656 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3657 spu-multiarch.c, and spu-tdep.c.
3658 * spu-linux-nat.c: Remove file.
3659 * spu-multiarch.c: Remove file.
3660 * spu-tdep.c: Remove file.
3661 * spu-tdep.h: Remove file.
3662 * solib-spu.c: Remove file.
3663 * solib-spu.h: Remove file.
3664
3665 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3666 * configure.nat (spu-linux): Remove.
3667 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3668 solib-multiarch.o from gdb_target_obs.
3669 (spu*-*-*): Remove.
3670
3671 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3672 feature flag.
3673 (ppc_linux_no_features): Update.
3674 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3675 Cell/B.E. support.
3676 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3677 (tdesc_powerpc_cell64l): Likewise.
3678 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3679 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3680 Cell/B.E. support.
3681 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3682 Do not include "features/rs6000/powerpc-cell32l.c" or
3683 "features/rs6000/powerpc-cell64l.c".
3684 (ppc_linux_spu_section): Remove.
3685 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3686 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3687 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3688 (ppc_linux_spe_context_lookup): Remove.
3689 (ppc_linux_spe_context_inferior_created): Remove.
3690 (ppc_linux_spe_context_solib_loaded): Remove.
3691 (ppc_linux_spe_context_solib_unloaded): Remove.
3692 (ppc_linux_spe_context): Remove.
3693 (struct ppu2spu_cache): Remove.
3694 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3695 (struct ppu2spu_data): Remove.
3696 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3697 ppu2spu_unwind): Remove.
3698 (ppc_linux_init_abi): Remove Cell/B.E. support.
3699 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3700
3701 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3702 (rs6000/powerpc-cell64l-expedite): Likewise
3703 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3704 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3705 rs6000/powerpc-cell64l.xml.
3706 * features/rs6000/powerpc-cell32l.xml: Remove.
3707 * features/rs6000/powerpc-cell64l.xml: Likewise.
3708 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3709 * features/rs6000/powerpc-cell64l.c: Likewise.
3710 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3711 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3712 * regformats/reg-spu.dat: Remove.
3713
3714 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3715 * corelow.c (struct spuid_list): Remove.
3716 (add_to_spuid_list): Remove.
3717 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3718 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3719 (remote_protocol_features): Remove associated entries.
3720 (_initialize_remote): No longer initialize them.
3721 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3722 * linux-nat.c (SPUFS_MAGIC): Remove.
3723 (linux_proc_xfer_spu): Remove.
3724 (spu_enumerate_spu_ids): Remove.
3725 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3726 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3727 (linux_make_corefile_notes): No longer call it.
3728
3729 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3730 (cooked_write_test): Likewise.
3731
78e8cb91
TT
37322019-09-20 Tom Tromey <tom@tromey.com>
3733
3734 * NEWS: Mention case-sensitivity of TUI commands.
3735 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3736 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3737 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3738
f074b67e
TT
37392019-09-20 Tom Tromey <tom@tromey.com>
3740
3741 * tui/tui-source.c (tui_source_window::set_contents): Use
3742 make_unique_xstrdup.
3743 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3744 make_unique_xstrdup.
3745
63c4bf19
TT
37462019-09-20 Tom Tromey <tom@tromey.com>
3747
3748 * tui/tui-data.c: Remove separator comments.
3749 * tui/tui-layout.c: Remove separator comments.
3750 * tui/tui-win.c: Remove separator comments.
3751 * tui/tui-wingeneral.c: Remove separator comments.
3752
43df9b2f
TT
37532019-09-20 Tom Tromey <tom@tromey.com>
3754
3755 * tui/tui.h (strcat_to_buf): Don't declare.
3756 * tui/tui.c (strcat_to_buf): Remove.
3757
7226433c
TT
37582019-09-20 Tom Tromey <tom@tromey.com>
3759
3760 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3761 from "fullname".
3762 * tui/tui-source.c (tui_source_window::set_contents)
3763 (tui_source_window::location_matches_p)
3764 (tui_source_window::maybe_update): Update.
3765
80df3337
TT
37662019-09-20 Tom Tromey <tom@tromey.com>
3767
3768 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3769 Update.
3770 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3771 prefix.
3772 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3773 (tui_data_window::line_from_reg_element_no)
3774 (tui_data_window::first_reg_element_no_inline)
3775 (tui_data_window::show_registers)
3776 (tui_data_window::show_register_group)
3777 (tui_data_window::display_registers_from)
3778 (tui_data_window::display_registers_from_line)
3779 (tui_data_window::first_data_item_displayed)
3780 (tui_data_window::delete_data_content_windows)
3781 (tui_data_window::erase_data_content)
3782 (tui_data_window::do_scroll_vertical)
3783 (tui_data_window::refresh_window)
3784 (tui_data_window::check_register_values): Update.
3785
9923f347
TT
37862019-09-20 Tom Tromey <tom@tromey.com>
3787
3788 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3789 (struct tui_locator_window) <full_name, proc_name>: Now
3790 std::string.
3791 * tui/tui-stack.c (tui_locator_window::make_status_line)
3792 (tui_locator_window::set_locator_fullname)
3793 (tui_locator_window::set_locator_info): Update.
3794 * tui/tui-source.c (tui_source_window::set_contents)
3795 (tui_source_window::showing_source_p): Update.
3796
b76251ab
TT
37972019-09-20 Tom Tromey <tom@tromey.com>
3798
3799 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3800 Don't call tui_locator_win_info_ptr.
3801
0891be08
TT
38022019-09-20 Tom Tromey <tom@tromey.com>
3803
3804 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3805
1b935acf
TT
38062019-09-20 Tom Tromey <tom@tromey.com>
3807
3808 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3809 height for locator.
3810 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3811 * tui/tui-layout.c (show_source_disasm_command, show_data)
3812 (show_source_or_disasm_and_command): Use 1 as height for locator.
3813
9abd8a65
TT
38142019-09-20 Tom Tromey <tom@tromey.com>
3815
3816 * tui/tui.c (tui_enable): Update.
3817 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3818 Update.
3819 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3820 Update.
3821 * tui/tui-data.c (win_resized): Now bool.
3822 (tui_win_resized): Return bool.
3823 (tui_set_win_resized_to): Accept a bool.
3824
b5457826
TT
38252019-09-20 Tom Tromey <tom@tromey.com>
3826
3827 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3828 Change type of "refresh_values_only".
3829 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3830 type of "refresh_values_only".
3831
6b915f7d
TT
38322019-09-20 Tom Tromey <tom@tromey.com>
3833
3834 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3835 std::string.
3836 (tui_disassemble): Add "pos" parameter.
3837 (tui_disasm_window::set_contents): Simplify.
3838
2ad52f6f
TT
38392019-09-20 Tom Tromey <tom@tromey.com>
3840
3841 * tui/tui-winsource.h (struct tui_source_window_base)
3842 <show_source_content>: Now private.
3843 * tui/tui-winsource.c
3844 (tui_source_window_base::show_source_content): Don't handle empty
3845 content case.
3846
b3b1bde6
TT
38472019-09-20 Tom Tromey <tom@tromey.com>
3848
3849 * tui/tui-layout.c (show_source_disasm_command)
3850 (show_source_or_disasm_and_command): Don't call
3851 show_source_content.
3852
71a25ed2
TT
38532019-09-20 Tom Tromey <tom@tromey.com>
3854
3855 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3856 Declare.
3857 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3858 from tui_make_status_line.
3859 (tui_locator_window::rerender): Update.
3860
f8532154
TT
38612019-09-20 Tom Tromey <tom@tromey.com>
3862
3863 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3864 (tui_locator_window::rerender): Update.
3865
2d81b349
TT
38662019-09-20 Tom Tromey <tom@tromey.com>
3867
3868 * tui/tui-winsource.h (struct tui_source_window_base)
3869 <~tui_source_window_base>: Don't declare.
3870 <fullname>: Remove.
3871 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3872 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3873 member.
3874 * tui/tui-source.c (tui_source_window::set_contents): Update.
3875 (tui_source_window::location_matches_p)
3876 (tui_source_window::maybe_update): Update.
3877
f14bec58
TT
38782019-09-20 Tom Tromey <tom@tromey.com>
3879
3880 * tui/tui-winsource.h (~tui_source_element): Remove.
3881 (tui_source_element): Update.
3882 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3883 * tui/tui-winsource.c (tui_show_source_line): Update.
3884 * tui/tui-source.c (tui_source_window::set_contents): Update.
3885 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3886
78d5933a
TT
38872019-09-20 Tom Tromey <tom@tromey.com>
3888
3889 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3890 declare.
3891 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3892 tui_clear_source_windows_detail.
3893 * tui/tui-winsource.h (struct tui_source_window_base)
3894 <clear_detail>: Don't declare.
3895 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3896 Remove.
3897 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3898
d4207696
TT
38992019-09-20 Tom Tromey <tromey@adacore.com>
3900
3901 PR ada/24919:
3902 * block.c (contained_in): Fix final return value.
3903
00f93c44
AM
39042019-09-20 Alan Modra <amodra@gmail.com>
3905
3906 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3907 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3908 (read_indirect_string_from_dwz): Use bfd accessor.
3909 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3910 * machoread.c (macho_symfile_read_all_oso): Likewise.
3911 * solib.c (solib_bfd_open): Likewise.
3912
e4153ae6
CB
39132019-09-19 Christian Biesinger <cbiesinger@google.com>
3914
3915 * eval.c: Move declaration of overload_resolution to...
3916 * value.h: ...here.
3917
c7ae7675
CB
39182019-09-19 Christian Biesinger <cbiesinger@google.com>
3919
3920 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3921 * arm-linux-tdep.c: Likewise.
3922 * arm-nbsd-nat.c: Likewise.
3923 * arm-tdep.h: Declare arm_apcs_32.
3924 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3925
e86f08d2
CB
39262019-09-19 Christian Biesinger <cbiesinger@google.com>
3927
3928 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3929 * dwarf2read.h: Declare dwarf_always_disassemble.
3930
f64e2f40
TV
39312019-09-19 Tom de Vries <tdevries@suse.de>
3932
3933 PR gdb/25009
3934 * source-cache.c (source_cache::ensure): Catch exception thrown during
3935 construction of the highlighter.
3936
fd361982
AM
39372019-09-18 Alan Modra <amodra@gmail.com>
3938
3939 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3940 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3941 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3942 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3943 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3944 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3945 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3946 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3947 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3948 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3949 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3950 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3951 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3952 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3953 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3954 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3955 * mi/mi-interp.c: Update throughout for bfd section macro and
3956 function changes.
3957 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3958 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3959
11061048
TT
39602019-09-18 Tom Tromey <tom@tromey.com>
3961
3962 * NEWS: Add entry.
3963 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3964 call rl_initialize.
3965 (tui_enable): Do not call rl_initialize.
3966
7a27b85f
CG
39672019-09-18 Christian Groessler <chris@groessler.org>
3968
3969 * alpha-linux-nat.c: Include gdbarch.h.
3970
f64eea3a
SM
39712019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3972
3973 * ui-file.c: Include cli/cli-style.h.
3974 (term_cli_styling): Remove cli_styling declaration.
3975
e6f7f6d1
AM
39762019-09-18 Alan Modra <amodra@gmail.com>
3977
3978 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3979 to bfd_asymbol_section.
3980
1d38e9d1
AM
39812019-09-18 Alan Modra <amodra@gmail.com>
3982
3983 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3984 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3985 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3986
90d92a63
AM
39872019-09-18 Alan Modra <amodra@gmail.com>
3988
3989 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3990 * spu-linux-nat.c (spu_bfd_open): Likewise.
3991
a3d181d2
CB
39922019-09-18 Christian Biesinger <cbiesinger@google.com>
3993
3994 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3995 to bool to match definition in dwarf2read.c.
3996
491144b5
CB
39972019-09-17 Christian Biesinger <cbiesinger@google.com>
3998
3999 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4000 (print_signatures): Likewise.
4001 (trust_pad_over_xvs): Likewise.
4002 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4003 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4004 * arm-linux-nat.c (arm_apcs_32): Likewise.
4005 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4006 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4007 * arm-tdep.c (arm_debug): Likewise.
4008 (arm_apcs_32): Likewise.
4009 * auto-load.c (debug_auto_load): Likewise.
4010 (auto_load_gdb_scripts): Likewise.
4011 (global_auto_load): Likewise.
4012 (auto_load_local_gdbinit): Likewise.
4013 (auto_load_local_gdbinit_loaded): Likewise.
4014 * auto-load.h (global_auto_load): Likewise.
4015 (auto_load_local_gdbinit): Likewise.
4016 (auto_load_local_gdbinit_loaded): Likewise.
4017 * breakpoint.c (disconnected_dprintf): Likewise.
4018 (breakpoint_proceeded): Likewise.
4019 (automatic_hardware_breakpoints): Likewise.
4020 (always_inserted_mode): Likewise.
4021 (target_exact_watchpoints): Likewise.
4022 (_initialize_breakpoint): Update.
4023 * breakpoint.h (target_exact_watchpoints): Change to bool.
4024 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4025 * cli/cli-cmds.c (trace_commands): Likewise.
4026 * cli/cli-cmds.h (trace_commands): Likewise.
4027 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4028 to bool*.
4029 * cli/cli-logging.c (logging_overwrite): Change to bool.
4030 (logging_redirect): Likewise.
4031 (debug_redirect): Likewise.
4032 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4033 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4034 to bool.
4035 <boolean_option_def>: Update.
4036 (struct flag_option_def): Change default type of Context to bool
4037 from int.
4038 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4039 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4040 (get_setshow_command_value_string): Likewise.
4041 * cli/cli-style.c (cli_styling): Change to bool.
4042 (source_styling): Likewise.
4043 * cli/cli-style.h (source_styling): Likewise.
4044 (cli_styling): Likewise.
4045 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4046 to bool.
4047 * command.h (var_types): Update comment.
4048 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4049 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4050 bool.
4051 (debug_compile_cplus_scopes): Likewise.
4052 * compile/compile-internal.h (compile_debug): Likewise.
4053 * compile/compile.c (compile_debug): Likewise.
4054 (struct compile_options) <raw>: Likewise.
4055 * cp-support.c (catch_demangler_crashes): Likewise.
4056 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4057 (usr_cmd_cris_dwarf2_cfi): Likewise.
4058 * csky-tdep.c (csky_debug): Likewise.
4059 * darwin-nat.c (enable_mach_exceptions): Likewise.
4060 * dcache.c (dcache_enabled_p): Likewise.
4061 * defs.h (info_verbose): Likewise.
4062 * demangle.c (demangle): Likewise.
4063 (asm_demangle): Likewise.
4064 * dwarf-index-cache.c (debug_index_cache): Likewise.
4065 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4066 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4067 * dwarf2read.c (check_physname): Likewise.
4068 (use_deprecated_index_sections): Likewise.
4069 (dwarf_always_disassemble): Likewise.
4070 * eval.c (overload_resolution): Likewise.
4071 * event-top.c (set_editing_cmd_var): Likewise.
4072 (exec_done_display_p): Likewise.
4073 * event-top.h (set_editing_cmd_var): Likewise.
4074 (exec_done_display_p): Likewise.
4075 * exec.c (write_files): Likewise.
4076 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4077 (debug_fbsd_nat): Likewise.
4078 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4079 Likewise.
4080 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4081 <backtrace_past_entry> Likewise.
4082 * gdb-demangle.h (demangle): Likewise.
4083 (asm_demangle): Likewise.
4084 * gdb_bfd.c (bfd_sharing): Likewise.
4085 * gdbcore.h (write_files): Likewise.
4086 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4087 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4088 * gdbthread.h (print_thread_events): Likewise.
4089 * gdbtypes.c (opaque_type_resolution): Likewise.
4090 (strict_type_checking): Likewise.
4091 * gnu-nat.c (gnu_debug_flag): Likewise.
4092 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4093 * guile/scm-param.c (pascm_variable): Add boolval.
4094 (add_setshow_generic): Update.
4095 (pascm_param_value): Update.
4096 (pascm_set_param_value_x): Update.
4097 * hppa-tdep.c (hppa_debug): Change to bool..
4098 * infcall.c (may_call_functions_p): Likewise.
4099 (coerce_float_to_double_p): Likewise.
4100 (unwind_on_signal_p): Likewise.
4101 (unwind_on_terminating_exception_p): Likewise.
4102 * infcmd.c (startup_with_shell): Likewise.
4103 * inferior.c (print_inferior_events): Likewise.
4104 * inferior.h (startup_with_shell): Likewise.
4105 (print_inferior_events): Likewise.
4106 * infrun.c (step_stop_if_no_debug): Likewise.
4107 (detach_fork): Likewise.
4108 (debug_displaced): Likewise.
4109 (disable_randomization): Likewise.
4110 (non_stop): Likewise.
4111 (non_stop_1): Likewise.
4112 (observer_mode): Likewise.
4113 (observer_mode_1): Likewise.
4114 (set_observer_mode): Update.
4115 (sched_multi): Change to bool.
4116 * infrun.h (debug_displaced): Likewise.
4117 (sched_multi): Likewise.
4118 (step_stop_if_no_debug): Likewise.
4119 (non_stop): Likewise.
4120 (disable_randomization): Likewise.
4121 * linux-tdep.c (use_coredump_filter): Likewise.
4122 (dump_excluded_mappings): Likewise.
4123 * linux-thread-db.c (auto_load_thread_db): Likewise.
4124 (check_thread_db_on_load): Likewise.
4125 * main.c (captured_main_1): Update.
4126 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4127 xx2_opt, boolean_opt>: Change to bool.
4128 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4129 * maint.c (maintenance_profile_p): Likewise.
4130 (per_command_time): Likewise.
4131 (per_command_space): Likewise.
4132 (per_command_symtab): Likewise.
4133 * memattr.c (inaccessible_by_default): Likewise.
4134 * mi/mi-main.c (mi_async): Likewise.
4135 (mi_async_1): Likewise.
4136 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4137 * nat/fork-inferior.h (startup_with_shell): Likewise.
4138 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4139 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4140 * nios2-tdep.c (nios2_debug): Likewise.
4141 * or1k-tdep.c (or1k_debug): Likewise.
4142 * parse.c (parser_debug): Likewise.
4143 * parser-defs.h (parser_debug): Likewise.
4144 * printcmd.c (print_symbol_filename): Likewise.
4145 * proc-api.c (procfs_trace): Likewise.
4146 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4147 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4148 (set_parameter_value): Update.
4149 (add_setshow_generic): Update.
4150 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4151 to bool*.
4152 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4153 int*.
4154 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4155 * record-btrace.c (record_btrace_target::store_registers): Update.
4156 * record-full.c (record_full_memory_query): Change to bool.
4157 (record_full_stop_at_limit): Likewise.
4158 * record-full.h (record_full_memory_query): Likewise.
4159 * remote-notif.c (notif_debug): Likewise.
4160 * remote-notif.h (notif_debug): Likewise.
4161 * remote.c (use_range_stepping): Likewise.
4162 (interrupt_on_connect): Likewise.
4163 (remote_break): Likewise.
4164 * ser-tcp.c (tcp_auto_retry): Likewise.
4165 * ser-unix.c (serial_hwflow): Likewise.
4166 * skip.c (debug_skip): Likewise.
4167 * solib-aix.c (solib_aix_debug): Likewise.
4168 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4169 (spu_auto_flush_cache_p): Likewise.
4170 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4171 Likewise.
4172 (struct info_print_options) <quiet>: Likewise.
4173 * symfile-debug.c (debug_symfile): Likewise.
4174 * symfile.c (auto_solib_add): Likewise.
4175 (separate_debug_file_debug): Likewise.
4176 * symfile.h (auto_solib_add): Likewise.
4177 (separate_debug_file_debug): Likewise.
4178 * symtab.c (basenames_may_differ): Likewise.
4179 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4180 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4181 (struct info_types_options) <quiet>: Likewise.
4182 * symtab.h (demangle): Likewise.
4183 (basenames_may_differ): Likewise.
4184 * target-dcache.c (stack_cache_enabled_1): Likewise.
4185 (code_cache_enabled_1): Likewise.
4186 * target.c (trust_readonly): Likewise.
4187 (may_write_registers): Likewise.
4188 (may_write_memory): Likewise.
4189 (may_insert_breakpoints): Likewise.
4190 (may_insert_tracepoints): Likewise.
4191 (may_insert_fast_tracepoints): Likewise.
4192 (may_stop): Likewise.
4193 (auto_connect_native_target): Likewise.
4194 (target_stop_and_wait): Update.
4195 (target_async_permitted): Change to bool.
4196 (target_async_permitted_1): Likewise.
4197 (may_write_registers_1): Likewise.
4198 (may_write_memory_1): Likewise.
4199 (may_insert_breakpoints_1): Likewise.
4200 (may_insert_tracepoints_1): Likewise.
4201 (may_insert_fast_tracepoints_1): Likewise.
4202 (may_stop_1): Likewise.
4203 * target.h (target_async_permitted): Likewise.
4204 (may_write_registers): Likewise.
4205 (may_write_memory): Likewise.
4206 (may_insert_breakpoints): Likewise.
4207 (may_insert_tracepoints): Likewise.
4208 (may_insert_fast_tracepoints): Likewise.
4209 (may_stop): Likewise.
4210 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4211 (make_thread_apply_all_options_def_group): Change argument from int*
4212 to bool*.
4213 (thread_apply_all_command): Update.
4214 (print_thread_events): Change to bool.
4215 * top.c (confirm): Likewise.
4216 (command_editing_p): Likewise.
4217 (history_expansion_p): Likewise.
4218 (write_history_p): Likewise.
4219 (info_verbose): Likewise.
4220 * top.h (confirm): Likewise.
4221 (history_expansion_p): Likewise.
4222 * tracepoint.c (disconnected_tracing): Likewise.
4223 (circular_trace_buffer): Likewise.
4224 * typeprint.c (print_methods): Likewise.
4225 (print_typedefs): Likewise.
4226 * utils.c (debug_timestamp): Likewise.
4227 (sevenbit_strings): Likewise.
4228 (pagination_enabled): Likewise.
4229 * utils.h (sevenbit_strings): Likewise.
4230 (pagination_enabled): Likewise.
4231 * valops.c (overload_resolution): Likewise.
4232 * valprint.h (struct value_print_options) <prettyformat_arrays,
4233 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4234 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4235 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4236 Likewise.
4237 * windows-nat.c (new_console): Likewise.
4238 (cygwin_exceptions): Likewise.
4239 (new_group): Likewise.
4240 (debug_exec): Likewise.
4241 (debug_events): Likewise.
4242 (debug_memory): Likewise.
4243 (debug_exceptions): Likewise.
4244 (useshell): Likewise.
4245 * windows-tdep.c (maint_display_all_tib): Likewise.
4246 * xml-support.c (debug_xml): Likewise.
4247
f1b620e9
MG
42482019-09-17 Mike Gulick <mgulick@mathworks.com>
4249
4250 * source.c (prepare_path_for_appending): New function.
4251 (openp): Make use of new function.
4252 (find_and_open_source): Search for the compilation directory and
4253 source file as a relative path beneath the directory search path.
4254
67f3ed6a
AB
42552019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4256
4257 * source-cache.c (source_cache::get_line_charpos): Catch
4258 exceptions and return false, this matches the behaviour documented
4259 in the header file.
4260
74332189
JB
42612019-09-17 Joel Brobecker <brobecker@adacore.com>
4262
4263 * ada-tasks.c (info_task): Remove quoting of the task's name.
4264
f2f24aa9
CB
42652019-09-16 Christian Biesinger <cbiesinger@google.com>
4266
4267 * symfile.c (auto_solib_add): Replace comment with a reference
4268 to the header file.
4269
6a062a93
CB
42702019-09-14 Christian Biesinger <cbiesinger@google.com>
4271
4272 * NEWS: Mention that gdb can now be compiled with Python 3
4273 on Windows.
4274
ec6c8338
AB
42752019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4276
4277 * maint.c (maint_print_section_data::maint_print_section_data):
4278 Force use of 'float log10 (float)' by casting the argument to
4279 float.
4280
aa17805f
AB
42812019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4282
4283 * maint.c: Add 'cmath' include.
4284 (struct maint_print_section_data): New structure.
4285 (print_section_index): New function.
4286 (print_bfd_section_info): Add header comment, small whitespace
4287 cleanup, and update to call new print_section_index function.
4288 (print_objfile_section_info): Likewise.
4289 (maint_obj_section_from_bfd_section): New function.
4290 (print_bfd_section_info_maybe_relocated): New function.
4291 (maintenance_info_sections): Add header comment, always use
4292 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4293
3dd9bb46
AB
42942019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4295
4296 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4297 inner scope, add check that the objfile has psymtabs before
4298 checking psymtabs_addrmap.
4299 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4300
4993045d
PW
43012019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4302
4303 * NEWS: Announce that Ada task names are now shown at more places,
4304 and between quotes (except in info task output).
4305 * gdb/ada-tasks.c (task_to_str): New function.
4306 (display_current_task_id): Call task_to_str.
4307 (task_command_1): Likewise.
4308 (print_ada_task_info): In non-mi mode, Properly align headers and data
4309 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4310
7a289707
RO
43112019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4312
4313 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4314 prstatus.pr_lwp.pr_info instead of making it up.
4315
f2aec7f6
CB
43162019-09-11 Christian Biesinger <cbiesinger@google.com>
4317
4318 * auto-load.c (auto_load_expand_dir_vars): Update.
4319 * defs.h (gdb_datadir): Change to std::string.
4320 (python_libdir): Likewise.
4321 (relocate_gdb_directory): Change return type to std::string.
4322 * guile/guile.c (gdbscm_data_directory): Update.
4323 (initialize_scheme_side): Update.
4324 * jit.c (jit_reader_dir): Change to std::string.
4325 (jit_reader_load_command): Update.
4326 * main.c (gdb_datadir): Change to std::string.
4327 (python_libdir): Likewise.
4328 (set_gdb_data_directory): Update.
4329 (relocate_path): Change to return std::string.
4330 (relocate_gdb_directory): Change to return std::string.
4331 (relocate_gdbinit_path_maybe_in_datadir): Update.
4332 (captured_main_1): Update.
4333 * python/python.c (do_start_initialization): Update.
4334 * top.c (show_gdb_datadir): Update.
4335 * xml-syscall.c (xml_init_syscalls_info): Update.
4336 (init_syscalls_info): Update.
4337
9224a013
CB
43382019-09-11 Christian Biesinger <cbiesinger@google.com>
4339
4340 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4341 out of get_init_files.
4342 (get_init_files): Update.
4343
f48cd836
CB
43442019-09-11 Christian Biesinger <cbiesinger@google.com>
4345
4346 * main.c (get_init_files): Change to use std::string.
4347 (captured_main_1): Update.
4348 (print_gdb_help): Update.
4349
9cab7ecd
AT
43502019-09-11 Ali Tamur <tamur@google.com>
4351
4352 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4353 implementation.
4354
67547d89
CB
43552019-09-11 Christian Biesinger <cbiesinger@google.com>
4356
4357 * dbxread.c (read_dbx_symtab): Update.
4358 * dwarf2read.c (load_partial_dies): Update.
4359 * mdebugread.c (parse_partial_symbols): Update.
4360 (handle_psymbol_enumerators): Update.
4361 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4362 * psymtab.c (add_psymbol_to_bcache): Likewise.
4363 (add_psymbol_to_list): Likewise.
4364 * symtab.c (symbol_set_names): Likewise.
4365 * symtab.h (symbol_set_names): Likewise.
4366 * xcoffread.c (scan_xcoff_symtab): Update.
4367
64b2d4a0
TT
43682019-09-11 Tom Tromey <tom@tromey.com>
4369
4370 * symfile-mem.c (symbol_file_add_from_memory): Use
4371 bfd_set_filename.
4372 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4373 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4374
3b00ef10
TT
43752019-09-10 Tom Tromey <tromey@adacore.com>
4376
4377 * dwarf-index-write.c (write_psymbols): Extend error message.
4378 (debug_names::insert): Add Ada code.
4379 (debug_names::write_psymbols): Remove Ada check.
4380 (debug_names) <m_string_obstack>: New member.
4381 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4382 (gdb_index_symbol_name_matcher::matches): Remove.
4383 (mapped_index_base::find_name_components_bounds): Add "lang"
4384 parameter.
4385 (mapped_index_base::build_name_components): Also split names
4386 according to Ada syntax.
4387 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4388 type of "match_callback".
4389 (check_match, check_find_bounds_finds)
4390 (dw2_expand_symtabs_matching): Update.
4391 (dw2_debug_names_iterator): Add new constructor.
4392 (dw2_debug_names_map_matching_symbols): New function.
4393 (dw2_debug_names_expand_symtabs_matching): Update.
4394 (dwarf2_debug_names_functions): Use
4395 dw2_debug_names_map_matching_symbols.
4396
aa391654
TT
43972019-09-10 Tom Tromey <tromey@adacore.com>
4398
4399 * dwarf2read.c (dw2_get_file_names_reader): Add the
4400 CU's file name to the results.
4401
b054970d
TT
44022019-09-10 Tom Tromey <tromey@adacore.com>
4403
4404 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4405 map_matching_symbols. Update.
4406 * dwarf2read.c (dw2_map_matching_symbols): Update.
4407 * psymtab.c (match_partial_symbol): Change type; update.
4408 (psym_map_matching_symbols): Likewise.
4409 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4410 type; update.
4411 * symfile.h (struct quick_symbol_functions)
4412 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4413 Remove "match".
4414
6a3dbf1b
TT
44152019-09-10 Tom Tromey <tromey@adacore.com>
4416
4417 * psymtab.c (map_block): Remove.
4418 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4419 * symtab.c (iterate_over_symbols_terminated): New function.
4420 * symtab.c (iterate_over_symbols_terminated): Declare.
4421
6969f124
TT
44222019-09-10 Tom Tromey <tromey@adacore.com>
4423
4424 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4425 * language.h (struct language_defn) <la_iterate_over_symbols>:
4426 Return bool.
4427 * symtab.c (iterate_over_symbols): Return bool.
4428 * symtab.h (iterate_over_symbols): Return bool.
4429
199b4314
TT
44302019-09-10 Tom Tromey <tromey@adacore.com>
4431
4432 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4433 (add_nonlocal_symbols): Update.
4434 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4435 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4436 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4437 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4438 Change type of "callback". Remove "data".
4439
a084a2a6
AT
4440
44412019-09-09 Ali Tamur <tamur@google.com>
4442
4443 * dwarf2read.c (comp_unit_head): Update comment.
4444 (dwarf2_dwo_name): New function declaration.
4445 (dwarf_unit_type_name): New function declaration.
4446 (read_comp_unit_head): Add support for new compilation units,
4447 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4448 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4449 (currently named as "signature") in their header. Also clarify error
4450 messages.
4451 (lookup_dwo_id): New function. Returns the dwo id of the given
4452 compile unit.
4453 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4454 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4455 functions.
4456 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4457 (dwarf2_dwo_name): Get the dwo name if present.
4458 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4459 purposes.
4460
25a2915e
TT
44612019-09-09 Tom Tromey <tom@tromey.com>
4462
4463 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4464
e4df0874
PW
44652019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4466
4467 * python/python.c (do_start_initialization): Make progname_copy static,
4468 to avoid a leak report.
4469
8634b462
TT
44702019-09-08 Tom Tromey <tom@tromey.com>
4471
4472 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4473
c7f839cb
SM
44742019-09-07 Simon Marchi <simon.marchi@efficios.com>
4475
4476 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4477 Change type to gdb::optional<block_enum>.
4478 (dw2_symtab_iter_init): Change block_index parameter type
4479 to gdb::optional<block_enum>.
4480 (dw2_lookup_symbol): Change block_index parameter
4481 type to block_enum.c
4482 (dw2_debug_names_lookup_symbol): Likewise.
4483 * psymtab.c (psym_lookup_symbol): Likewise.
4484 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4485 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4486 Likewise.
4487
ead0e69a
CB
44882019-09-06 Christian Biesinger <cbiesinger@google.com>
4489
4490 * defs.h (relocate_gdb_directory): Change int to bool in
4491 signature and rename flag to relocatable.
4492 * main.c (relocate_path): Likewise.
4493 (relocate_gdb_directory): Likewise.
4494
b16c44de
AM
44952019-09-06 Alan Modra <amodra@gmail.com>
4496
4497 * coffread.c (coff_symfile_read): Constify filename variable.
4498 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4499 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4500 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4501 * solib.c (reload_shared_libraries_1): Likewise.
4502 * symfile.c (reread_symbols): Likewise.
4503 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4504 * solib-darwin.c (darwin_bfd_open): Likewise.
4505 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4506
06ff036e
AB
45072019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4508
4509 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4510 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4511
4e962e74
TT
45122019-09-03 Tom Tromey <tromey@adacore.com>
4513
4514 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4515 types.
4516 (has_negatives): Unbias a range type bound.
4517 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4518 * gdbtypes.c (operator==): Handle new field.
4519 (create_range_type): Add "bias" parameter.
4520 (create_static_range_type, resolve_dynamic_range): Update.
4521 * gdbtypes.h (struct range_bounds) <bias>: New member.
4522 (create_range_type): Add bias parameter.
4523 * printcmd.c (print_scalar_formatted): Unbias range types.
4524 * value.c (unpack_long): Unbias range types.
4525 (pack_long): Bias range types.
4526
d90b8f26
AH
45272019-09-02 Alan Hayward <alan.hayward@arm.com>
4528
4529 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4530 probe arguments.
4531
fe01123e
AH
45322019-09-02 Alan Hayward <alan.hayward@arm.com>
4533
4534 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4535 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4536 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4537 (compile_probe_arg): Likewise.
4538 * probe.h (get_argument_count): Likewise.
4539 * solib-svr4.c (solib_event_probe_action): Likewise.
4540 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4541
e661ef01
AH
45422019-09-02 Alan Hayward <alan.hayward@arm.com>
4543
4544 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4545 code to here...
4546 (svr4_create_solib_event_breakpoints): ...from here.
4547
47a536d9
SDJ
45482019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4549
4550 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4551 suffix from warning message.
4552
d6a00eba
TT
45532019-08-30 Tom Tromey <tom@tromey.com>
4554
4555 * tui/tui-winsource.h (struct tui_source_window_base)
4556 <refresh_all>: Don't declare.
4557 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4558 Remove.
4559 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4560 tui_show_locator_content.
4561 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4562 declare.
4563 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4564 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4565 declare.
4566
55b2657b
TT
45672019-08-30 Tom Tromey <tom@tromey.com>
4568
4569 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4570
12a8555a
TT
45712019-08-30 Tom Tromey <tom@tromey.com>
4572
4573 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4574 Remove unnecessary forward declarations.
4575
900ac242
TT
45762019-08-30 Tom Tromey <tom@tromey.com>
4577
4578 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4579 rerender.
4580 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4581 tui_show_locator_content.
4582
99ab33fb
TT
45832019-08-30 Tom Tromey <tom@tromey.com>
4584
4585 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4586 (tui_locator_window::rerender): Rewrite using body of previous
4587 tui_show_locator_content.
4588
e594a5d1
TT
45892019-08-30 Tom Tromey <tom@tromey.com>
4590
4591 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4592 set_locator_fullname>: New methods.
4593 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4594 Rename from tui_set_locator_fullname.
4595 (tui_locator_window::set_locator_info): Rename from
4596 tui_set_locator_info. Return bool.
4597 (tui_update_locator_fullname, tui_show_frame_info): Update.
4598
715bb467
TT
45992019-08-30 Tom Tromey <tom@tromey.com>
4600
4601 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4602
772f3f03
TT
46032019-08-30 Tom Tromey <tom@tromey.com>
4604
4605 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4606 call touchwin.
4607
108e13ab
TT
46082019-08-30 Tom Tromey <tom@tromey.com>
4609
4610 * tui/tui-wingeneral.c (box_win): Assume win_info and
4611 win_info->handle cannot be NULL.
4612
cdaa6eb4
TT
46132019-08-30 Tom Tromey <tom@tromey.com>
4614
4615 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4616 refresh_window>: Declare.
4617 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4618 resize.
4619 (tui_data_item_window::rerender): Rename from
4620 tui_display_register.
4621 (tui_data_item_window::refresh_window): New method.
4622 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4623 no-op.
4624
89df7f90
TT
46252019-08-30 Tom Tromey <tom@tromey.com>
4626
4627 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4628 regs_column_count, current_group>: Move later. Now private.
4629 <get_current_group>: New method.
4630 * tui/tui-regs.c (tui_reg_command): Update.
4631 * tui/tui-layout.c (tui_set_layout): Update.
4632
1bf2866a
TT
46332019-08-30 Tom Tromey <tom@tromey.com>
4634
4635 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4636 (tui_data_window::rerender): Don't call
4637 check_and_display_highlight_if_needed.
4638 (tui_data_window::refresh_all): Remove call to
4639 erase_data_content.
4640
0670413d
TT
46412019-08-30 Tom Tromey <tom@tromey.com>
4642
4643 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4644 (tui_data_window::display_registers_from)
4645 (tui_data_window::display_reg_element_at_line)
4646 (tui_data_window::display_registers_from_line): Remove checks of
4647 "empty".
4648
18bb55c7
TT
46492019-08-30 Tom Tromey <tom@tromey.com>
4650
4651 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4652 Don't declare.
4653 * tui/tui-regs.c (tui_data_window::show_registers): Call
4654 rerender.
4655 (tui_data_window::rerender): Rename from display_all_data.
4656 (tui_data_window::rerender): Remove old implementation.
4657
1f6d2f10
TT
46582019-08-30 Tom Tromey <tom@tromey.com>
4659
4660 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4661 text.
4662 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4663
16d01f9c
BW
46642019-08-29 Bernhard Wodok <barto@gmx.net>
4665 Sergio Durigan Junior <sergiodj@redhat.com>
4666
4667 PR win32/24284
4668 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4669
d8f27c60
AB
46702019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4671
4672 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4673 when searching for types.
4674
1f20c35e
AB
46752019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4676
4677 * f-lang.c (f_language_defn): Use f_print_typedef.
4678 * f-lang.h (f_print_typedef): Declare.
4679 * f-typeprint.c (f_print_typedef): Define.
4680
550105b7
CB
46812019-08-27 Christian Biesinger <cbiesinger@google.com>
4682
4683 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4684
4acfdd20
AB
46852019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4686
4687 * cli/cli-utils.c (info_print_options_defs): Delete.
4688 (make_info_print_options_def_group): Delete.
4689 (extract_info_print_options): Delete.
4690 (info_print_command_completer): Delete.
4691 (info_print_args_help): Add extra parameter, and optionally
4692 include text about -n flag.
4693 * cli/cli-utils.h (struct info_print_options): Delete.
4694 (extract_info_print_options): Delete declaration.
4695 (info_print_command_completer): Delete declaration.
4696 (info_print_args_help): Add extra parameter, extend header
4697 comment.
4698 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4699 search_symbols.
4700 * stack.c (struct info_print_options): New type.
4701 (info_print_options_defs): New file scoped variable.
4702 (make_info_print_options_def_group): New static function.
4703 (info_print_command_completer): New static function.
4704 (info_locals_command): Update to use new local functions.
4705 (info_args_command): Likewise.
4706 (_initialize_stack): Add extra parameter to calls to
4707 info_print_args_help.
4708 * symtab.c (search_symbols): Add extra parameter, use this to
4709 possibly excluse non-debug symbols.
4710 (symtab_symbol_info): Add extra parameter, which is passed on to
4711 search_symbols.
4712 (struct info_print_options): New type.
4713 (info_print_options_defs): New file scoped variable.
4714 (make_info_print_options_def_group): New static function.
4715 (info_print_command_completer): New static function.
4716 (info_variables_command): Update to use local functions, and pass
4717 extra parameter through to symtab_symbol_info.
4718 (info_functions_command): Likewise.
4719 (info_types_command): Pass additional argument through to
4720 symtab_symbol_info.
4721 (rbreak_command): Pass extra argument to search_symbols.
4722 (_initialize_symtab): Add extra arguments for calls to
4723 info_print_args_help, and update help text for 'info variables',
4724 'whereis', and 'info functions' commands.
4725 * symtab.h (search_symbols): Add extra argument to declaration.
4726 * NEWS: Mention new flags.
4727
9aa55206
CB
47282019-08-26 Christian Biesinger <cbiesinger@google.com>
4729
4730 * symtab.c (lookup_static_symbol): Call the new function (and move
4731 it down to be next to lookup_global_symbol).
4732 (struct global_sym_lookup_data): Add block_enum member and rename to...
4733 (struct global_or_static_sym_lookup_data): ...this.
4734 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4735 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4736 (lookup_symbol_global_or_static_iterator_cb): ...this.
4737 (lookup_global_or_static_symbol): New function.
4738 (lookup_global_symbol): Call new function.
4739
5c31b358
TV
47402019-08-26 Tom de Vries <tdevries@suse.de>
4741
4742 PR c++/24852
4743 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4744 when pc_probe.prob == NULL.
4745
23c13d42
SM
47462019-08-25 Simon Marchi <simon.marchi@efficios.com>
4747
4748 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4749 variable symbol_linkage to symbol_linkage_.
4750
beadd3e8
SM
47512019-08-25 Simon Marchi <simon.marchi@efficios.com>
4752
4753 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4754 represent whether the symbol is static, dynamic, or we don't
4755 know.
4756
e3ec872f
YS
47572019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4758
4759 * gdb/rx-tdep.c (rx_register_names): New.
4760 (rx_register_name): Delete.
4761 (rx_psw_type): Delete.
4762 (rx_fpsw_type): Delete.
4763 (rx_register_type): Delete.
4764 (rx_gdbarch_init): Convert target-descriptions.
4765 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4766 * gdb/features/Makefile: Add rx.xml.
4767 * gdb/features/rx.xml: New.
4768 * gdb/features/rx.c: Generated.
4769 * gdb/NEWS: Mention target description support.
4770
d0509ba4
CB
47712019-08-22 Christian Biesinger <cbiesinger@google.com>
4772
4773 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4774 *slot_ptr.
4775
2d41fa11
SDJ
47762019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4777
4778 * configure.ac: Don't check for 'dlfcn.h' (moved to
4779 gdbsupport/common.m4).
4780 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4781 'gdbsupport/'.
4782 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4783 * compile/compile-c-support.c: Include
4784 'gdbsupport/gdb-dlfcn.h'.
4785 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4786 * gdb-dlfcn.c: Move to...
4787 * gdbsupport/gdb-dlfcn.c: ... here.
4788 * gdb-dlfcn.h: Move to...
4789 * gdbsupport/gdb-dlfcn.h: ... here.
4790
de8af808
SL
47912019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4792
4793 * nios2-tdep.c (struct reg_value): Improve comments. Make
4794 the offset field signed.
4795
27204489
CB
47962019-08-22 Christian Biesinger <cbiesinger@google.com>
4797
4798 * python/lib/gdb/__init__.py (_execute_file): New function.
4799 * python/python.c (python_run_simple_file): Call gdb._execute_file
4800 on Windows.
4801
43771869
AB
48022019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4803
4804 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4805 all uses as this was never set to anything but a zero value.
4806
26c957f1
PA
48072019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4808
4809 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4810
c07aae6e
CB
48112019-08-21 Christian Biesinger <cbiesinger@google.com>
4812
4813 * tui/tui-data.h (tui_gen_win_info): Add an =default
4814 move constructor, required by some GCC versions.
4815
3960cb7a
JF
48162019-08-21 Jinke Fan <fanjinke51@yeah.net>
4817
4818 * go32-nat.c (go32_sysinfo): Add hygon_p.
4819
04c72a68
TT
48202019-08-20 Tom Tromey <tom@tromey.com>
4821
4822 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4823 line_from_reg_element_no, first_reg_element_no_inline,
4824 display_all_data, delete_data_content_windows,
4825 erase_data_content>: Now private.
4826
072272ce
TT
48272019-08-20 Tom Tromey <tom@tromey.com>
4828
4829 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4830 (tui_unhighlight_win, tui_highlight_win)
4831 (tui_win_info::make_window): Update.
4832 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4833
973961bd
TT
48342019-08-20 Tom Tromey <tom@tromey.com>
4835
4836 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4837 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4838 (MAX_PID_WIDTH): Move to tui-stack.c.
4839 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4840 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4841 (MAX_PID_WIDTH): Move from tui-data.h.
4842
ab0e1f1a
TT
48432019-08-20 Tom Tromey <tom@tromey.com>
4844
4845 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4846 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4847 (box_win): Update.
4848 (tui_gen_win_info::make_window): Rename from tui_make_window.
4849 (tui_win_info::make_window): New method.
4850 (tui_gen_win_info::make_visible): Update.
4851 * tui/tui-source.c (tui_source_window::set_contents): Update.
4852 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4853 (tui_data_window::display_registers_from): Update.
4854 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4855 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4856 Declare.
4857 <can_box>: Remove.
4858 <title>: Remove.
4859 (struct tui_win_info) <make_window>: Declare.
4860 <can_box>: Now virtual.
4861 <title>: New member.
4862 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4863 * tui/tui-command.c (tui_cmd_window::resize): Update.
4864
100c2bf3
TT
48652019-08-20 Tom Tromey <tom@tromey.com>
4866
4867 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4868 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4869 (tui_data_window::check_register_values): Update.
4870
fa4dc567
TT
48712019-08-20 Tom Tromey <tom@tromey.com>
4872
4873 * tui/tui-regs.h (struct tui_data_window): Use
4874 DISABLE_COPY_AND_ASSIGN.
4875 <regs_content>: Change type, removing unique_ptr.
4876 <tui_data_window>: Add move constructor.
4877 * tui/tui-regs.c (tui_data_window::show_registers)
4878 (tui_data_window::show_register_group)
4879 (tui_data_window::display_registers_from)
4880 (tui_data_window::display_registers_from)
4881 (tui_data_window::first_data_item_displayed)
4882 (tui_data_window::delete_data_content_windows)
4883 (tui_data_window::rerender, tui_data_window::refresh_window)
4884 (tui_data_window::check_register_values): Update.
4885
ca02d7c8
TT
48862019-08-20 Tom Tromey <tom@tromey.com>
4887
4888 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4889 show_register_group>: Declare.
4890 (tui_show_register_group): Don't declare.
4891 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4892 tui_show_registers.
4893 (tui_data_window::show_register_group): Rename from
4894 tui_show_register_group.
4895 (tui_data_window::check_register_values, tui_reg_command):
4896 Update.
4897 * tui/tui-layout.c (tui_set_layout): Update.
4898
63356bfd
TT
48992019-08-20 Tom Tromey <tom@tromey.com>
4900
4901 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4902 Declare.
4903 (tui_check_register_values): Don't declare.
4904 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4905 from tui_check_register_values.
4906 * tui/tui-hooks.c (tui_register_changed): Update.
4907
42cc14a7
TT
49082019-08-20 Tom Tromey <tom@tromey.com>
4909
4910 * tui/tui-regs.c (tui_reg_layout): Move later.
4911 (tui_show_registers): Don't enable TUI mode or change layout.
4912
b9ad3686
TT
49132019-08-20 Tom Tromey <tom@tromey.com>
4914
4915 * tui/tui-regs.h (struct tui_data_item_window)
4916 <~tui_data_item_window>: Remove.
4917 <content>: Now a unique_xmalloc_ptr.
4918 * tui/tui-regs.c (tui_register_format): Return a
4919 unique_xmalloc_ptr.
4920 (tui_get_register): Update.
4921 (~tui_data_item_window): Remove.
4922 (tui_data_window::display_registers_from, tui_display_register):
4923 Update.
4924 * tui/tui-io.h (tui_expand_tabs): Update.
4925 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4926 Remove "col" parameter.
4927
8e114aab
TT
49282019-08-20 Tom Tromey <tom@tromey.com>
4929
4930 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4931 field.
4932 * tui/tui-regs.c (~tui_data_item_window): Update.
4933
1a4f81dd
TT
49342019-08-20 Tom Tromey <tom@tromey.com>
4935
4936 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4937 earlier.
4938
0f8d8876
TT
49392019-08-20 Tom Tromey <tom@tromey.com>
4940
4941 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4942
605dc2c2
TT
49432019-08-20 Tom Tromey <tom@tromey.com>
4944
4945 * tui/tui-source.h (struct tui_source_window): Update.
4946 * tui/tui-regs.c (tui_show_registers): Update.
4947 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4948 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4949 (NO_REGS_STRING): Remove defines.
4950
aedbe3bb
CM
49512019-08-20 Conrad Meyer <cem@FreeBSD.org>
4952
4953 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4954 unnecessary thread walk if remote doesn't support the packet.
4955
7ce8f214
TT
49562019-08-19 Tom Tromey <tromey@adacore.com>
4957
4958 * python/py-value.c (value_has_field): Fix indentation.
4959
f21c2bd7
TT
49602019-08-19 Tom Tromey <tromey@adacore.com>
4961
4962 * printcmd.c (do_one_display, info_display_command): Update.
4963 * block.h (contained_in): Return bool. Add allow_nested
4964 parameter.
4965 * block.c (contained_in): Return bool. Add allow_nested
4966 parameter.
4967
d806ea2d
TT
49682019-08-19 Tom Tromey <tom@tromey.com>
4969
4970 * configure: Rebuild.
4971 * configure.ac: Disallow the combination of -static-libstdc++ and
4972 source highlight.
4973 * source-cache.c (get_language_name): Handle rust.
4974 (source_cache::get_source_lines): Ignore highlighting exceptions.
4975
398fdd60
TT
49762019-08-16 Tom Tromey <tom@tromey.com>
4977
4978 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4979 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4980 (struct tui_source_window_base) <make_visible, refresh_window,
4981 resize>: Remove methods.
4982 <execution_info>: Remove field.
4983 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4984 (tui_show_source_line, tui_source_window_base)
4985 (~tui_source_window_base): Update.
4986 (tui_source_window_base::resize)
4987 (tui_source_window_base::make_visible)
4988 (tui_source_window_base::refresh_window): Remove.
4989 (tui_source_window_base::update_exec_info): Update.
4990 * tui/tui-source.c (tui_source_window::set_contents): Update.
4991 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4992
e699d331
TT
49932019-08-16 Tom Tromey <tom@tromey.com>
4994
4995 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4996 deprecated_query_hook.
4997
bb01dbfc
TT
49982019-08-16 Tom Tromey <tom@tromey.com>
4999
5000 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5001 (tui_update_source_windows_with_line): Update.
5002 * tui/tui-source.h (struct tui_source_window)
5003 <show_symtab_source>: Declare.
5004 (tui_show_symtab_source): Don't declare.
5005 * tui/tui-source.c (tui_show_symtab_source): Rename from
5006 tui_show_symtab_source.
5007
81c82c4b
TT
50082019-08-16 Tom Tromey <tom@tromey.com>
5009
5010 * tui/tui-winsource.h (struct tui_source_window_base)
5011 <set_contents>: Declare.
5012 * tui/tui-winsource.c
5013 (tui_source_window_base::update_source_window_as_is): Update.
5014 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5015 Declare.
5016 (tui_set_source_content): Don't declare.
5017 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5018 tui_set_source_content.
5019 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5020 Declare.
5021 (tui_set_disassem_content): Don't declare.
5022 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5023 tui_set_disassem_content.
5024
2ddaf614
TT
50252019-08-16 Tom Tromey <tom@tromey.com>
5026
5027 * tui/tui-winsource.h (struct tui_source_window_base)
5028 <update_breakpoint_info>: Declare.
5029 (tui_update_breakpoint_info): Don't declare.
5030 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5031 (tui_update_all_breakpoint_info): Update.
5032 (tui_source_window_base::update_breakpoint_info): Rename from
5033 tui_update_breakpoint_info.
5034 (tui_source_window_base::update_exec_info): Update.
5035
017f9828
TT
50362019-08-16 Tom Tromey <tom@tromey.com>
5037
5038 * tui/tui-winsource.h (struct tui_source_window_base)
5039 <update_source_window>: Declare.
5040 (tui_update_source_window): Don't declare.
5041 * tui/tui-winsource.c
5042 (tui_source_window_base::update_source_window): Rename from
5043 tui_update_source_window.
5044 (tui_source_window_base::rerender): Update.
5045 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5046 * tui/tui-disasm.c (tui_show_disassem)
5047 (tui_show_disassem_and_update_source)
5048 (tui_disasm_window::maybe_update): Update.
5049
ed8358e9
TT
50502019-08-16 Tom Tromey <tom@tromey.com>
5051
5052 * tui/tui-winsource.h (struct tui_source_window_base)
5053 <update_source_window_as_is>: Declare.
5054 (tui_update_source_window_as_is): Don't declare.
5055 * tui/tui-winsource.c (tui_update_source_window): Update
5056 (tui_source_window_base::update_source_window_as_is): Rename from
5057 tui_update_source_window_as_is.
5058 (tui_source_window_base::refill): Update.
5059 * tui/tui-source.c (tui_show_symtab_source): Update.
5060 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5061 Update.
5062
20149b6b
TT
50632019-08-16 Tom Tromey <tom@tromey.com>
5064
5065 * tui/tui-winsource.h (tui_update_source_window)
5066 (tui_update_source_window_as_is): Remove "noerror" parameter.
5067 * tui/tui-winsource.c (tui_update_source_window)
5068 (tui_update_source_window_as_is): Remove "noerror" parameter.
5069 (tui_update_source_windows_with_addr)
5070 (tui_update_source_windows_with_line)
5071 (tui_source_window_base::rerender)
5072 (tui_source_window_base::refill): Update.
5073 * tui/tui-source.h (tui_set_source_content)
5074 (tui_show_symtab_source): Remove "noerror" parameter.
5075 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5076 parameter.
5077 (tui_show_symtab_source): Likewise.
5078 (tui_source_window::maybe_update): Update.
5079 * tui/tui-disasm.c (tui_show_disassem)
5080 (tui_show_disassem_and_update_source)
5081 (tui_disasm_window::do_scroll_vertical)
5082 (tui_disasm_window::maybe_update): Update.
5083
2d83e710
TT
50842019-08-16 Tom Tromey <tom@tromey.com>
5085
5086 * tui/tui.c (tui_is_window_visible): Update.
5087 * tui/tui-wingeneral.c (tui_make_window)
5088 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5089 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5090 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5091 (tui_set_win_height_command, parse_scrolling_args): Update.
5092 * tui/tui-source.c (tui_source_window::style_changed): Update.
5093 * tui/tui-regs.c (tui_show_registers)
5094 (tui_data_window::first_data_item_displayed)
5095 (tui_data_window::delete_data_content_windows)
5096 (tui_check_register_values, tui_reg_command): Update.
5097 * tui/tui-disasm.c (tui_show_disassem): Update.
5098 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5099 method.
5100 <is_visible>: Remove field.
5101 * tui/tui-data.c (tui_next_win, tui_prev_win)
5102 (tui_delete_invisible_windows): Update.
5103
d4ab829a
TT
51042019-08-16 Tom Tromey <tom@tromey.com>
5105
5106 * tui/tui-winsource.h (struct tui_source_window_base)
5107 <m_has_locator>: Remove.
5108 * tui/tui-layout.c (show_source_disasm_command, show_data)
5109 (show_source_or_disasm_and_command): Update.
5110
aa7ca1bb
AH
51112019-08-16 Alan Hayward <alan.hayward@arm.com>
5112
5113 * NEWS (Other MI changes): New subsection.
5114 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5115 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5116 * arch-utils.c (default_get_pc_address_flags): New function.
5117 * arch-utils.h (default_get_pc_address_flags): New declaration.
5118 * gdbarch.sh: Add get_pc_address_flags.
5119 * gdbarch.c: Regenerate.
5120 * gdbarch.h: Likewise.
5121 * stack.c (print_pc): New function.
5122 (print_frame_info) (print_frame): Call print_pc.
5123
6eac171f
TV
51242019-08-16 Tom de Vries <tdevries@suse.de>
5125
5126 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5127 print_objfile_section_info.
5128
3df505f6
TT
51292019-08-15 Tom Tromey <tom@tromey.com>
5130
5131 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5132 calling update_cmdwin_start_line.
5133 * tui/tui-winsource.h (struct tui_source_window_base)
5134 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5135 <rerender>: Declare.
5136 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5137 Call rerender.
5138 (tui_source_window_base::set_new_height): Remove.
5139 (tui_source_window_base::rerender): Rename from
5140 do_make_visible_with_new_height.
5141 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5142 resize method.
5143 (tui_win_info::make_invisible_and_set_new_height)
5144 (tui_win_info::make_visible_with_new_height): Remove.
5145 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5146 Declare.
5147 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5148 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5149 do_make_visible_with_new_height>: Don't declare.
5150 <rerender>: Declare.
5151 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5152 set_new_height.
5153 (tui_data_window::do_make_visible_with_new_height): Remove.
5154 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5155 call tui_show_locator_content.
5156 (tui_gen_win_info::resize): Call rerender.
5157 (show_source_or_disasm_and_command): Don't call
5158 tui_show_locator_content.
5159 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5160 method.
5161 (struct tui_win_info) <rerender>: Declare.
5162 <set_new_height, make_invisible_and_set_new_height,
5163 make_visible_with_new_height>: Don't declare.
5164 * tui/tui-data.c (tui_win_list::rerender): New method.
5165 * tui/tui-command.h (struct tui_cmd_window)
5166 <do_make_visible_with_new_height>: Don't declare.
5167 * tui/tui-command.c
5168 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5169
272560b5
TT
51702019-08-15 Tom Tromey <tromey@adacore.com>
5171
5172 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5173 * ada-lang.c (ada_enum_name): Likewise.
5174
08235187
CB
51752019-08-15 Christian Biesinger <cbiesinger@google.com>
5176
5177 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5178 leading underscore.
5179 (GdbOutputErrorFile): Likewise.
5180 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5181 accordingly.
5182 (execute_unwinders): Rename to have a leading underscore.
5183 (auto_load_packages): Likewise.
5184 (global scope): Adjust call to auto_load_packages accordingly.
5185 (GdbSetPythonDirectory): Likewise.
5186 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5187 instead of execute_unwinders.
5188
db502012
TT
51892019-08-15 Tom Tromey <tom@tromey.com>
5190
5191 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5192 (show_data): Don't change window visibility.
5193 (tui_gen_win_info::resize): Remove special case for command
5194 window. Use wresize, when available.
5195 (show_source_or_disasm_and_command): Don't change window
5196 visibility.
5197 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5198 <make_visible>: New method.
5199 * tui/tui-command.c (tui_cmd_window::resize): New method.
5200
3891b65e
TT
52012019-08-15 Tom Tromey <tom@tromey.com>
5202
5203 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5204 (struct tui_source_windows): New.
5205 * tui/tui-winsource.c (tui_display_main): Update.
5206 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5207 (new_height_ok, parse_scrolling_args): Update.
5208 * tui/tui-layout.c (show_layout, show_data): Update.
5209 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5210 (tui_add_to_source_windows): Don't declare.
5211 * tui/tui-data.c (source_windows, tui_source_windows)
5212 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5213
ee556432
TT
52142019-08-15 Tom Tromey <tom@tromey.com>
5215
5216 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5217 Rename from reset.
5218 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5219 * tui/tui-layout.c (show_source_disasm_command, show_data):
5220 Update.
5221 (tui_gen_win_info::resize): Rename.
5222 (show_source_or_disasm_and_command): Update.
5223 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5224 reset.
5225
46f438e3
TT
52262019-08-15 Tom Tromey <tom@tromey.com>
5227
5228 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5229 * tui/tui-interp.c (tui_interp::init): Don't call
5230 tui_initialize_static_data.
5231 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5232
f4ce562c
TT
52332019-08-15 Tom Tromey <tom@tromey.com>
5234
5235 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5236 examine tui_win_list.
5237
c398c3d0
TT
52382019-08-15 Tom Tromey <tom@tromey.com>
5239
5240 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5241 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5242 tui_clear_source_content.
5243 (tui_clear_source_content): Remove.
5244 (tui_source_window_base::do_erase_source_content): Hoist call to
5245 content.clear().
5246 * tui/tui-stack.c (tui_show_frame_info): Don't call
5247 tui_clear_source_content.
5248
e25d2004
TT
52492019-08-15 Tom Tromey <tom@tromey.com>
5250
5251 * tui/tui-winsource.h (struct tui_source_window_base)
5252 <do_erase_source_content>: New method.
5253 <erase_source_content>: New method.
5254 (tui_erase_source_content): Don't declare.
5255 * tui/tui-winsource.c (tui_clear_source_content): Update.
5256 (tui_source_window_base::do_erase_source_content): Rename from
5257 tui_erase_source_content.
5258 (tui_source_window_base::show_source_content): Update.
5259 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5260 * tui/tui-source.h (struct tui_source_window)
5261 <erase_source_content>: New method.
5262 * tui/tui-disasm.h (struct tui_disasm_window)
5263 <erase_source_content>: New method.
5264
002f15c2
TT
52652019-08-15 Tom Tromey <tom@tromey.com>
5266
5267 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5268 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5269 constructor.
5270 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5271 * tui/tui-source.c (tui_set_source_content): Update.
5272 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5273
c9033fe8
TT
52742019-08-15 Tom Tromey <tom@tromey.com>
5275
5276 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5277 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5278 tui-source.c.
5279 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5280 Declare.
5281 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5282 method.
5283 (tui_source_window::maybe_update): Update.
5284
088f37dd
TT
52852019-08-15 Tom Tromey <tom@tromey.com>
5286
5287 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5288 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5289 tui-disasm.c.
5290 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5291 Declare.
5292 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5293 method.
5294 (tui_disasm_window::maybe_update): Update.
5295
a54700c6
TT
52962019-08-15 Tom Tromey <tom@tromey.com>
5297
5298 * tui/tui-winsource.h (struct tui_source_window_base)
5299 <maybe_update>: Declare.
5300 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5301 method.
5302 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5303 Declare.
5304 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5305 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5306 Declare.
5307 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5308
e2a678a5
TT
53092019-08-15 Tom Tromey <tom@tromey.com>
5310
5311 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5312
f2dda477
TT
53132019-08-15 Tom Tromey <tom@tromey.com>
5314
5315 * tui/tui-wingeneral.c: Include tui-stack.h.
5316 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5317 (struct tui_locator_window): Move from tui-data.h.
5318 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5319 (tui_initialize_static_data): Move from tui-data.c.
5320 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5321 (struct tui_locator_window): Move to tui-stack.c.
5322 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5323 (tui_initialize_static_data): Move to tui-stack.c.
5324
ed4a1084
TT
53252019-08-15 Tom Tromey <tom@tromey.com>
5326
5327 * tui/tui-layout.c (show_source_disasm_command)
5328 (show_source_or_disasm_and_command): Use make_visible method, not
5329 tui_make_window.
5330 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5331 Remove.
5332
65962b20
TT
53332019-08-15 Tom Tromey <tom@tromey.com>
5334
5335 * tui/tui-wingeneral.h (tui_make_window): Update.
5336 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5337 parameter.
5338 (tui_gen_win_info::make_visible): Update.
5339 * tui/tui-regs.c (tui_data_window::display_registers_from):
5340 Update.
5341 * tui/tui-layout.c (show_source_disasm_command)
5342 (show_source_or_disasm_and_command): Update.
5343 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5344 (enum tui_box): Remove.
5345 (struct tui_win_info) <can_box>: New method.
5346 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5347 method.
5348
2208ee91
TV
53492019-08-15 Tom de Vries <tdevries@suse.de>
5350
5351 * linux-nat-trad.c: Include gdbarch.h.
5352
75faf5c4
AH
53532019-08-14 Alan Hayward <alan.hayward@arm.com>
5354
5355 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5356 register sizes.
5357
b1c896b3
TT
53582019-08-14 Tom Tromey <tromey@adacore.com>
5359
5360 * darwin-nat.c: Include gdbarch.h.
5361 * darwin-nat-info.c: Include gdbarch.h.
5362
6405cd73
TT
53632019-08-13 Tom Tromey <tom@tromey.com>
5364
5365 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5366 Remove.
5367 * tui/tui-data.c (tui_initialize_static_data): Update.
5368
5216580d
TT
53692019-08-13 Tom Tromey <tom@tromey.com>
5370
5371 * tui/tui-winsource.h (struct tui_exec_info_window)
5372 <~tui_exec_info_window, maybe_allocate_content, get_content,
5373 m_content>: Remove.
5374 (struct tui_source_window_base) <set_exec_info_content,
5375 show_exec_info_content>: Don't declare.
5376 * tui/tui-winsource.c
5377 (tui_exec_info_window::maybe_allocate_content): Remove.
5378 (tui_source_window_base::update_exec_info): Rename from
5379 set_exec_info_content.
5380 (tui_source_window_base::show_exec_info_content)
5381 (tui_source_window_base::update_exec_info): Remove.
5382
93858ad3
TT
53832019-08-13 Tom Tromey <tom@tromey.com>
5384
5385 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5386 declare.
5387 * tui/tui-winsource.c (tui_update_source_window_as_is)
5388 (tui_update_source_windows_with_addr, tui_erase_source_content):
5389 Update.
5390 (tui_clear_exec_info_content): Remove.
5391
e321e7ce
TT
53922019-08-13 Tom Tromey <tom@tromey.com>
5393
5394 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5395 declare.
5396 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5397 call tui_erase_exec_info_content.
5398 (tui_clear_exec_info_content): Rename from
5399 tui_erase_exec_info_content.
5400 (tui_clear_exec_info_content): Delete.
5401
8270ac62
TT
54022019-08-13 Tom Tromey <tom@tromey.com>
5403
5404 * tui/tui-winsource.h (struct tui_source_window_base)
5405 <show_exec_info_content>: Declare.
5406 (tui_show_exec_info_content): Don't declare.
5407 * tui/tui-winsource.c
5408 (tui_source_window_base::show_exec_info_content): Rename from
5409 tui_show_exec_info_content.
5410 (tui_source_window_base::update_exec_info): Update.
5411
7b56485d
TT
54122019-08-13 Tom Tromey <tom@tromey.com>
5413
5414 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5415 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5416 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5417 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5418 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5419 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5420 ... here.
5421
7ba913dc
TT
54222019-08-13 Tom Tromey <tom@tromey.com>
5423
5424 * tui/tui-winsource.h (struct tui_source_window_base)
5425 <update_exec_info>: Declare.
5426 (tui_update_exec_info): Don't declare.
5427 * tui/tui-winsource.c (tui_update_source_window_as_is)
5428 (tui_source_window_base::refresh_all)
5429 (tui_update_all_breakpoint_info): Update.
5430 (tui_source_window_base::update_exec_info): Rename from
5431 tui_update_exec_info.
5432 * tui/tui-stack.c (tui_show_frame_info): Update.
5433
37a4a131
TT
54342019-08-13 Tom Tromey <tom@tromey.com>
5435
5436 * tui/tui-winsource.h (struct tui_source_window_base)
5437 <set_exec_info_content>: Declare.
5438 (tui_set_exec_info_content): Don't declare.
5439 * tui/tui-winsource.c
5440 (tui_source_window_base::set_exec_info_content): Rename from
5441 tui_set_exec_info_content.
5442 (tui_update_exec_info): Update.
5443
0bd27e07
TT
54442019-08-13 Tom Tromey <tom@tromey.com>
5445
5446 * tui/tui-winsource.h (struct tui_source_window_base)
5447 <show_source_content>: Declare.
5448 (tui_show_source_content): Don't declare.
5449 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5450 (tui_source_window_base::show_source_content): Rename from
5451 tui_show_source_content.
5452 (tui_source_window_base::refresh_all): Update.
5453 * tui/tui-layout.c (show_source_disasm_command)
5454 (show_source_or_disasm_and_command): Update.
5455
b4ef5aeb
TT
54562019-08-13 Tom Tromey <tom@tromey.com>
5457
5458 * tui/tui-winsource.c (tui_erase_source_content)
5459 (tui_show_source_content, tui_source_window_base::refresh_all):
5460 Update.
5461 * tui/tui-wingeneral.h
5462 (tui_check_and_display_highlight_if_needed): Don't declare.
5463 * tui/tui-wingeneral.c
5464 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5465 check_and_display_highlight_if_needed.
5466 * tui/tui-win.c (tui_rehighlight_all)
5467 (tui_win_info::make_visible_with_new_height): Update.
5468 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5469 (tui_data_window::erase_data_content)
5470 (tui_data_window::display_all_data): Update.
5471 * tui/tui-data.h (struct tui_win_info)
5472 <check_and_display_highlight_if_needed>: Declare.
5473
fede5273
TT
54742019-08-13 Tom Tromey <tom@tromey.com>
5475
5476 * tui/tui-win.c (tui_resize_all): Call
5477 tui_delete_invisible_windows.
5478 * tui/tui-layout.c (show_layout): Call
5479 tui_delete_invisible_windows.
5480 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5481 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5482
22c3f490
TT
54832019-08-13 Tom Tromey <tom@tromey.com>
5484
5485 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5486 tui_add_win_to_layout.
5487
16cb7910
TT
54882019-08-13 Tom Tromey <tom@tromey.com>
5489
5490 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5491 * tui/tui-layout.c (tui_default_win_height): Now static.
5492
cc0c3ffb
TT
54932019-08-13 Tom Tromey <tom@tromey.com>
5494
5495 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5496 single switch.
5497 (show_source_disasm_command, show_source_or_disasm_and_command):
5498 Don't check current layout.
5499
3f3ffe54
TT
55002019-08-13 Tom Tromey <tom@tromey.com>
5501
5502 * tui/tui-wingeneral.c (make_all_visible): Remove.
5503 (tui_make_all_invisible): Simplify.
5504 * tui/tui-layout.c (tui_make_all_invisible): Move from
5505 tui-wingeneral.c; simplify.
5506 (show_layout): Hoist call to tui_make_all_invisible.
5507 (show_data): Don't call tui_make_all_invisible.
5508
69258091
TT
55092019-08-13 Tom Tromey <tom@tromey.com>
5510
5511 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5512 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5513
62cf57fe
TT
55142019-08-13 Tom Tromey <tom@tromey.com>
5515
5516 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5517 tui-data.c.
5518 (show_source_disasm_command, show_data)
5519 (show_source_or_disasm_and_command): Don't use
5520 tui_set_current_layout_to.
5521 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5522 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5523 tui-layout.c.
5524 (tui_set_current_layout_to): Remove.
5525
2afade5d
TT
55262019-08-13 Tom Tromey <tom@tromey.com>
5527
5528 * tui/tui-layout.c (tui_set_layout): Update.
5529 * tui/tui-data.h (struct tui_layout_def): Remove.
5530 (tui_layout_def): Don't declare.
5531 * tui/tui-data.c (layout_def): Remove.
5532 (tui_layout_def): Remove.
5533
a3504e96
TT
55342019-08-13 Tom Tromey <tom@tromey.com>
5535
5536 * tui/tui-winsource.h (struct tui_source_window_base)
5537 <clear_detail>: No longer "override".
5538 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5539 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5540 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5541 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5542 Remove.
5543 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5544
29c92911
TT
55452019-08-13 Tom Tromey <tromey@adacore.com>
5546
5547 * tracepoint.c: Don't include readline.h or history.h.
5548
86c6b807
TT
55492019-08-12 Tom Tromey <tom@tromey.com>
5550
5551 * configure: Rebuild.
5552 * configure.ac: Check for readline 7.
5553 * NEWS: Mention readline 7 requirement.
5554 * README: Update.
5555
5db2718c
TT
55562019-08-12 Tom Tromey <tom@tromey.com>
5557
5558 * mingw-hdep.c (gdb_select): Remove readline hack.
5559
dac36daf
PFC
55602019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5561
5562 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5563 when the function fails.
5564
1022c627
AA
55652019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5566
5567 * s390-tdep.c (s390_type_align): New function.
5568 (s390_gdbarch_init): Set it as type_align gdbarch method.
5569
eba4caf2
TV
55702019-08-09 Tom de Vries <tdevries@suse.de>
5571
5572 PR gdb/24591
5573 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5574 pc_low with relocation offset.
5575
123cd851
TT
55762019-08-07 Tom Tromey <tromey@adacore.com>
5577
5578 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5579 (print_frame_args): Update.
5580 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5581 Update.
5582 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5583 * frame.h (struct frame_arg): Add initializers.
5584 <error>: Now a unique_xmalloc_ptr.
5585
3d31bc39
AH
55862019-08-07 Alan Hayward <alan.hayward@arm.com>
5587
5588 * NEWS: Expand the Pointer Authentication entry.
5589 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5590 (aarch64_frame_unmask_lr): ... to this.
5591 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5592 Call aarch64_frame_unmask_lr.
5593 * frame.c (struct frame_info): Add "masked" variable.
5594 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5595 (fprint_frame): Check for masked pc.
5596 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5597 declarations.
5598 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5599 * stack.c (print_frame): Check for masked pc.
5600
0cf9feb9
TT
56012019-08-06 Tom Tromey <tom@tromey.com>
5602
5603 * stabsread.c (patch_block_stabs, read_one_struct_field)
5604 (read_enum_type): Use obstack_strndup.
5605 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5606 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5607 * dwarf2read.c (guess_full_die_structure_name)
5608 (anonymous_struct_prefix): Use obstack_strndup.
5609 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5610 * c-exp.y (yylex): Use obstack_strndup.
5611 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5612 (write_var_or_type): Use obstack_strndup.
5613
efba19b0
TT
56142019-08-06 Tom Tromey <tom@tromey.com>
5615
5616 * symfile.c (reread_symbols): Use obstack_strdup.
5617 * stabsread.c (read_type): Use obstack_strdup.
5618 * gdb_obstack.h (obstack_strdup): New overload.
5619 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5620 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5621 (dwarf2_canonicalize_name): Use obstack_strdup.
5622 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5623 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5624 Use obstack_strdup.
5625
f25102f7
TT
56262019-08-06 Tom Tromey <tom@tromey.com>
5627
5628 * gdb_obstack.h (obstack_strdup): Define.
5629 * gdb_obstack.c (obstack_strdup): Don't define.
5630
021887d8
TT
56312019-08-06 Tom Tromey <tom@tromey.com>
5632
5633 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5634 obstack_strdup.
5635 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5636 obstack_strdup.
5637 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5638 * stabsread.c (common_block_start): Use obstack_strdup.
5639 * objfiles.c (set_objfile_main_name, objfile): Use
5640 obstack_strdup.
5641 * namespace.c (add_using_directive): Use obstack_strdup.
5642 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5643 * jit.c (finalize_symtab): Use obstack_strdup.
5644 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5645 (guess_partial_die_structure_name, partial_die_info::fixup)
5646 (dwarf2_name): Use obstack_strdup.
5647 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5648 obstack_strdup.
5649 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5650 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5651 obstack_strdup.
5652 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5653
d2834edc
PW
56542019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5655
5656 * unittests/help-doc-selftests.c: New file.
5657 * Makefile.in: Add the new file.
5658
590042fc
PW
56592019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5660
5661 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5662 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5663 the full first line, except when FOR_VALUE_PREFIX. In this case,
5664 the trailing '.' is not output, and the first character is uppercased.
5665 (print_help_for_command): Update call to print_doc_line.
5666 (print_doc_of_command): Likewise.
5667 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5668 * cli/cli-option.c (append_indented_doc): Do not append newline.
5669 (build_help_option): Append newline after first appended_indented_doc
5670 only if a second call is done.
5671 (build_help): Append 2 new lines before each option, except the first
5672 one.
5673 * compile/compile.c (_initialize_compile): Add new lines after
5674 %OPTIONS%, when not at the end of the help.
5675 Change help doc or code
5676 producing the help doc to respect the invariants.
5677 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5678 Also removed the new line after 'Options:', as all other commands
5679 do not put an empty line between 'Options:' and the first option.
5680 * printcmd.c (_initialize_printcmd): Likewise.
5681 * stack.c (_initialize_stack): Likewise.
5682 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5683 incorrectly telling COMMAND is optional.
5684 * ada-lang.c (_initialize_ada_language): Change help doc or code
5685 producing the help doc to respect the invariants.
5686 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5687 * breakpoint.c (_initialize_breakpoint): Likewise.
5688 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5689 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5690 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5691 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5692 _initialize_cli_style): Likewise.
5693 * corelow.c (core_target_info): Likewise.
5694 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5695 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5696 * filesystem.c (_initialize_filesystem): Likewise.
5697 * frame.c (_initialize_frame): Likewise.
5698 * gnu-nat.c (add_task_commands): Likewise.
5699 * infcall.c (_initialize_infcall): Likewise.
5700 * infcmd.c (_initialize_infcmd): Likewise.
5701 * interps.c (_initialize_interpreter): Likewise.
5702 * language.c (_initialize_language): Likewise.
5703 * linux-fork.c (_initialize_linux_fork): Likewise.
5704 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5705 * maint.c (_initialize_maint_cmds): Likewise.
5706 * memattr.c (_initialize_mem): Likewise.
5707 * printcmd.c (_initialize_printcmd): Likewise.
5708 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5709 _RegEx): Likewise.
5710 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5711 * record-btrace.c (_initialize_record_btrace): Likewise.
5712 * record-full.c (_initialize_record_full): Likewise.
5713 * record.c (_initialize_record): Likewise.
5714 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5715 * regcache.c (_initialize_regcache): Likewise.
5716 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5717 _initialize_remote): Likewise.
5718 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5719 * serial.c (_initialize_serial): Likewise.
5720 * skip.c (_initialize_step_skip): Likewise.
5721 * source.c (_initialize_source): Likewise.
5722 * stack.c (_initialize_stack): Likewise.
5723 * symfile.c (_initialize_symfile): Likewise.
5724 * symtab.c (_initialize_symtab): Likewise.
5725 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5726 * top.c (init_main): Likewise.
5727 * tracefile-tfile.c (tfile_target_info): Likewise.
5728 * tracepoint.c (_initialize_tracepoint): Likewise.
5729 * tui/tui-win.c (_initialize_tui_win): Likewise.
5730 * utils.c (add_internal_problem_command): Likewise.
5731 * valprint.c (value_print_option_defs): Likewise.
5732
404f2902
FCE
57332019-08-06 Frank Ch. Eigler <fche@redhat.com>
5734
5735 PR build/24886
5736 * configure.ac: Drop enable-libmcheck support.
5737 * configure, config.in: Rebuild.
5738 * libmcheck.m4: Remove.
5739 * acinclude.m4: Don't include it.
5740 * Makefile.in: Don't distribute it.
5741 * top.c (print_gdb_configuration): Don't mention it.
5742
046bebe1
TT
57432019-08-06 Tom Tromey <tom@tromey.com>
5744
5745 * utils.c (set_output_style): Sometimes pass stream to
5746 emit_style_escape.
5747 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5748 * record-btrace.c (btrace_insn_history): Update.
5749 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5750 method.
5751 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5752 Update initializers.
5753 <m_uiout>: New field.
5754 <m_di>: Move lower.
5755 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5756 Remove "uiout" parameter.
5757 (dump_insns): Update.
5758 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5759 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5760
ddbcedf5
CB
57612019-08-06 Christian Biesinger <cbiesinger@google.com>
5762
5763 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5764 (error_in_psymtab_expansion): Likewise.
5765 (lookup_symbol_via_quick_fns): Likewise.
5766 (basic_lookup_transparent_type_quick): Likewise.
5767 (basic_lookup_transparent_type_1): Likewise.
5768
b08b16c8
TT
57692019-08-06 Tom Tromey <tromey@adacore.com>
5770
5771 * source.c (last_source_error): Now bool.
5772 (print_source_lines_base): Make "noprint" bool. Only open
5773 source file when last_source_visited changes.
5774
cb44333d
TT
57752019-08-06 Tom Tromey <tromey@adacore.com>
5776
5777 * annotate.c (annotate_source_line): Use g_source_cache.
5778 * source-cache.c (source_cache::get_plain_source_lines): Change
5779 parameters. Populate m_offset_cache.
5780 (source_cache::ensure): New method.
5781 (source_cache::get_line_charpos): New method.
5782 (extract_lines): Move lower. Change parameters.
5783 (source_cache::get_source_lines): Move lower.
5784 * source-cache.h (class source_cache): Update comment.
5785 <get_line_charpos>: New method.
5786 <get_source_lines>: Update comment.
5787 <clear>: Clear m_offset_cache.
5788 <get_plain_source_lines>: Change parameters.
5789 <ensure>: New method
5790 <m_offset_cache>: New member.
5791 * source.c (forget_cached_source_info_for_objfile): Update.
5792 (info_source_command): Use g_source_cache.
5793 (find_source_lines, open_source_file_with_line_charpos): Remove.
5794 (print_source_lines_base, search_command_helper): Use g_source_cache.
5795 * source.h (open_source_file_with_line_charpos): Don't declare.
5796 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5797 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5798 Use g_source_cache.
5799
872dceaa
TT
58002019-08-06 Tom Tromey <tromey@adacore.com>
5801
5802 * source-cache.c (source_cache::get_plain_source_lines):
5803 Remove "first_line" and "last_line" parameters.
5804 (source_cache::get_source_lines): Cache plain text.
5805 * source-cache.h (class source_cache)
5806 <get_plain_source_lines>: Update.
5807
269249d9
TT
58082019-08-06 Tom Tromey <tromey@adacore.com>
5809
5810 * source-cache.c (extract_lines): No longer a method.
5811 Changed type of parameter. Include final newline.
5812 (selftests::extract_lines_test): New function.
5813 (_initialize_source_cache): Likewise.
5814 * source-cache.h (class source_cache)
5815 <extract_lines>: Don't declare.
5816
c0e8dcd8
TT
58172019-08-06 Tom Tromey <tromey@adacore.com>
5818
5819 * breakpoint.c (init_breakpoint_sal): Update.
5820 (breakpoint): Update.
5821 * breakpoint.h (struct breakpoint) <filter>: Now a
5822 unique_xmalloc_ptr.
5823
0b27c27d
CB
58242019-08-05 Christian Biesinger <cbiesinger@google.com>
5825
5826 * NEWS: Mention dictionary access on blocks.
5827 * python/py-block.c (blpy_getitem): New function.
5828 (block_object_as_mapping): New struct.
5829 (block_object_type): Use new struct for tp_as_mapping field.
5830
4ee94178
CB
58312019-08-05 Christian Biesinger <cbiesinger@google.com>
5832
5833 * objfiles.h (objfile): Add a comment describing partial symbols.
5834
8abfcabc
TT
58352019-08-05 Tom Tromey <tromey@adacore.com>
5836
5837 * compile/compile.c (_initialize_compile): Use _(), not N_().
5838 * thread.c (_initialize_thread): Use _(), not N_().
5839 * stack.c (_initialize_stack): Use _(), not N_().
5840 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5841
2b79f376
SM
58422019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5843
5844 * dwarf2read.c (struct dw2_symtab_iterator):
5845 <want_specific_block>: Remove.
5846 <block_index>: Change type to gdb::optional.
5847 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5848 change type of BLOCK_INDEX parameter to gdb::optional.
5849 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5850 (dw2_lookup_symbol): Don't pass argument for
5851 WANT_SPECIFIC_BLOCK.
5852 (dw2_expand_symtabs_for_function): Don't pass argument for
5853 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5854 (class dw2_debug_names_iterator)
5855 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5856 parameter, change BLOCK_INDEX type to gdb::optional.
5857 <m_want_specific_block>: Remove.
5858 <m_block_index>: Change type to gdb::optional.
5859 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5860 gdb::optional. Re-write in function of gdb::optional.
5861 (dw2_debug_names_lookup_symbol): Don't pass argument for
5862 WANT_SPECIFIC_BLOCK.
5863 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5864 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5865 BLOCK_INDEX.
5866
ae60f04e
PW
58672019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5868
5869 * NEWS: Mention changes to "info sources" command.
5870
28cd9371
PW
58712019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5872
5873 * symtab.c (filename_partial_match_opts): New struct type.
5874 (struct output_source_filename_data): New members
5875 regexp, c_regexp, partial_match.
5876 (output_source_filename): Use new members to decide to print file.
5877 (info_sources_option_defs): New variable.
5878 (make_info_sources_options_def_group, print_info_sources_header,
5879 info_sources_command_completer):
5880 New functions.
5881 (info_sources_command): Read new optional arguments.
5882 (_initialize_symtab): Update info sources help.
5883
ca683e3a
AO
58842019-08-02 Alexandre Oliva <oliva@adacore.com>
5885
5886 * ada-lang.c (exception_support_info_v0): Renamed from...
5887 (default_exception_support_info): ... this. Create new
5888 definition for v1.
5889 (ada_has_this_exception_support): Look up catch_handlers_sym.
5890 (ada_exception_support_info_sniffer): Try v0 after default.
5891
f1264162
TT
58922019-08-01 Tom Tromey <tromey@adacore.com>
5893
5894 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5895 gdbarch.h.
5896
0a7b2485
CB
58972019-08-01 Christian Biesinger <cbiesinger@google.com>
5898
5899 * s12z-tdep.c: Fix include path for s12z-opc.h.
5900
c6bdbeb7
AH
59012019-08-01 Alan Hayward <alan.hayward@arm.com>
5902
5903 * NEWS: Require GNU make 3.82.
5904
a2bd7b82
TT
59052019-07-16 Tom Tromey <tom@tromey.com>
5906
5907 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5908 declare.
5909
aa3b6533
TT
59102019-07-30 Tom Tromey <tromey@adacore.com>
5911
5912 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5913
a1530dc7
KB
59142019-07-30 Kevin Buettner <kevinb@redhat.com>
5915
5916 * printcmd.c (print_address_symbolic): Print negative offsets.
5917 (build_address_symbolic): Force signed arithmetic when computing
5918 offset.
5919
2906593f
CB
59202019-07-30 Christian Biesinger <cbiesinger@google.com>
5921
5922 PR/24474: Add a function to lookup static variables.
5923 * NEWS: Mention this new function.
5924 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5925 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5926 * python/python.c (python_GdbMethods): Add new function.
5927
c620ed88
CB
59282019-07-29 Christian Biesinger <cbiesinger@google.com>
5929
5930 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5931 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5932 (objfpy_lookup_static_symbol): New function.
5933 (objfile_object_methods): Add new functions.
5934
bc4268a5
PW
59352019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5936
5937 * NEWS: Mention 'set|show print frame-info'. Mention new
5938 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5939 backtrace argument. Mention that python frame filtering code
5940 is now consistent with what 'backtrace' command prints.
5941
4b5e8d19
PW
59422019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5943
5944 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5945 comments.
5946 (print_frame_info_auto, print_frame_info_source_line,
5947 print_frame_info_location, print_frame_info_source_and_location,
5948 print_frame_info_location_and_address, print_frame_info_short_location):
5949 New declarations.
5950 (struct frame_print_options): New member print_frame_info.
5951 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5952 * stack.h (get_user_print_what_frame_info): New declaration.
5953 (frame_show_address): New declaration.
5954 * stack.c (print_frame_arguments_choices): New value 'presence'.
5955 (print_frame_info_auto, print_frame_info_source_line,
5956 print_frame_info_location, print_frame_info_source_and_location,
5957 print_frame_info_location_and_address, print_frame_info_short_location,
5958 print_frame_info_choices, print_frame_info_print_what): New definitions.
5959 (print_frame_args): Only print dots for args if print frame-arguments
5960 is 'presence'.
5961 (frame_print_option_defs): New element for "frame-info".
5962 (get_user_print_what_frame_info): New function.
5963 (frame_show_address): Make non static. Move comment to stack.h.
5964 (print_frame_info_to_print_what): New function.
5965 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5966 to decide what to print.
5967 (backtrace_command_1): Handle the new print_frame_arguments_presence
5968 value.
5969 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5970 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5971 (py_print_frame): In non-mi mode, use LOCATION as default for
5972 print_what, similarly to frame information printed directly by
5973 backtrace command. Handle frame-info user option in non MI mode.
5974
6bdfee81
KB
59752019-07-27 Kevin Buettner <kevinb@redhat.com>
5976
5977 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5978 Add case for debugging 32-bit target on 64-bit host. Revise
5979 comment.
5980
98a617f8
KB
59812019-07-27 Kevin Buettner <kevinb@redhat.com>
5982
5983 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5984 instead of find_function_entry_range_from_pc.
5985
567238c9
KB
59862019-07-27 Kevin Buettner <kevinb@redhat.com>
5987
5988 * stack.c (find_frame_funname): Remove code which preferred
5989 minsym over symtab sym in "certain pathological cases".
5990
2dc80cf8
KB
5991 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5992 parameter. Change type of "do_demangle" to bool.
5993 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5994 Pass suitable "prefer_sym_over_minsym" flag to
5995 build_address_symbolic(). Don't output "+" for negative offsets.
5996 * printcmd.c (print_address_symbolic): Update invocation of
5997 build_address_symbolic to include a "prefer_sym_over_minsym"
5998 flag.
5999 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6000 Restrict cases in which use of minimal symbol is preferred to that
6001 of a found symbol. Update comments.
6002
1aff7173
KB
6003 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6004 for entry pc when entry pc is out of range for that FDE.
6005
89b085ac
BC
60062019-07-26 Brian Callahan <bcallah@openbsd.org>
6007
6008 PR gdb/24839:
6009 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6010 type.
6011
f32feb4a
CB
60122019-07-25 Christian Biesinger <cbiesinger@google.com>
6013
6014 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6015 this function's Python signature.
6016
6017
60182019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
6019
6020 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6021 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6022 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6023 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6024 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6025
6026
c54e4253
YS
60272019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6028
6029 * h8300-tdep.c (h8300_register_name_common): New.
6030 h8300_register_name): Use h8300_register_name_common.
6031 (h8300s_register_name): Likewise.
6032 (h8300sx_register_name): Likewise.
6033 (h8300h_register_nam): New.
6034 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6035
6036
40eadf04
SP
60372019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6038
6039 * arm-tdep.c (arm_skip_cmse_entry): New function.
6040 (arm_is_sgstubs_section): New function.
6041 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6042
bfa2a36d
TT
60432019-07-22 Tom Tromey <tom@tromey.com>
6044
6045 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6046 Don't self-assign.
6047
a8e9d247
AB
60482019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6049
6050 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6051 type_print.
6052
eb86c5e2
AB
60532019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6054
6055 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6056 so that GDB doesn't match any msymbols when searching in the
6057 TYPES_DOMAIN.
6058 (print_symbol_info): Print using typedef_print or type_print based
6059 on the type of the symbol. Add updated FIXME comment moved from...
6060 (_initialize_symtab): ... move and update FIXME comment to above.
6061
a8eab7c6
AB
60622019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6063
6064 * NEWS: Mention adding -q option to "info types".
6065 * symtab.c (struct info_types_options): New struct.
6066 (info_types_options_defs): New variable.
6067 (make_info_types_options_def_group): New function.
6068 (info_types_command): Use gdb::option framework to parse options.
6069 (info_types_command_completer): New function.
6070 (_initialize_symtab): Extend the help text on "info types" and
6071 register command completer.
6072
b4603c34
CB
60732019-07-21 Christian Biesinger <cbiesinger@google.com>
6074
6075 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6076 (lookup_symbol_in_objfile): Change int to block_enum and add a
6077 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6078
c8cdc1e0
CB
60792019-07-20 Christian Biesinger <cbiesinger@google.com>
6080
6081 * MAINTAINERS (Write After Approval): Add self.
6082
01e175fe
AB
60832019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6084
6085 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6086 instruction to the dummy code region.
6087
56f79b63
TT
60882019-07-19 Tom Tromey <tromey@adacore.com>
6089
6090 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6091 (ARGSUSED, PARAMS, __func__): Remove rules.
6092
4c5aa8e0
AH
60932019-07-19 Alan Hayward <alan.hayward@arm.com>
6094
6095 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6096 * features/arm/arm-with-iwmmxt.c: Remove.
6097 * features/arm/arm-with-iwmmxt.xml: Remove.
6098 * features/arm/arm-with-m-fpa-layout.c: Remove.
6099 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6100 * features/arm/arm-with-m-vfp-d16.c: Remove.
6101 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6102 * features/arm/arm-with-m.c: Remove.
6103 * features/arm/arm-with-m.xml: Remove.
6104 * features/arm/arm-with-neon.c: Remove.
6105 * features/arm/arm-with-neon.xml: Remove.
6106 * features/arm/arm-with-vfpv2.c: Remove.
6107 * features/arm/arm-with-vfpv2.xml: Remove.
6108 * features/arm/arm-with-vfpv3.c: Remove.
6109 * features/arm/arm-with-vfpv3.xml: Remove.
6110
f42b2617
AH
61112019-07-19 Alan Hayward <alan.hayward@arm.com>
6112
6113 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6114
f29ec966
AH
61152019-07-19 Alan Hayward <alan.hayward@arm.com>
6116
6117 * arch/aarch32.c (aarch32_create_target_description): Create
6118 target descriptions using features.
6119 * arch/arm.c (arm_create_target_description)
6120 (arm_create_mprofile_target_description): Likewise.
6121 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6122
d105cce5
AH
61232019-07-19 Alan Hayward <alan.hayward@arm.com>
6124
6125 * Makefile.in: Add new files.
6126 * aarch32-tdep.c: New file.
6127 * aarch32-tdep.h: New file.
6128 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6129 Call aarch32_read_description.
6130 * arch/aarch32.c: New file.
6131 * arch/aarch32.h: New file.
6132 * arch/arm.c (arm_create_target_description)
6133 (arm_create_mprofile_target_description): New function.
6134 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6135 (arm_create_target_description)
6136 (arm_create_mprofile_target_description): New declaration.
6137 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6138 read_description functions.
6139 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6140 Likewise.
6141 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6142 * arm-tdep.c (tdesc_arm_list): New variable.
6143 (arm_register_g_packet_guesses): Call create description functions.
6144 (arm_read_description) (arm_read_mprofile_description): New
6145 function.
6146 * arm-tdep.h (arm_read_description)
6147 (arm_read_mprofile_description): Add declaration.
6148 * configure.tgt: Add new files.
6149
afe09f0b
GL
61502019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6151
6152 * top.c (new_ui_command): Open specified terminal just once.
6153
cd215b2e
TT
61542019-07-18 Tom Tromey <tromey@adacore.com>
6155
6156 * symtab.c (main_name): Constify return type.
6157 * symfile.c (set_initial_language): Update.
6158 * symtab.h (main_name): Constify return type.
6159
d8f68fcb
TT
61602019-07-17 Tom Tromey <tom@tromey.com>
6161
6162 * tui/tui-winsource.c (tui_update_source_window)
6163 (tui_update_source_window_as_is)
6164 (tui_update_source_windows_with_line): Remove return.
6165 * tui/tui-disasm.c (tui_show_disassem)
6166 (tui_show_disassem_and_update_source): Remove return.
6167 * tui/tui.c (tui_reset): Remove return.
6168 * tui/tui-wingeneral.c
6169 (tui_check_and_display_highlight_if_needed): Remove return.
6170
ca5af91e
TT
61712019-07-17 Tom Tromey <tom@tromey.com>
6172
6173 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6174
5104fe36
TT
61752019-07-17 Tom Tromey <tom@tromey.com>
6176
6177 * tui/tui-winsource.h (struct tui_exec_info_window)
6178 (struct tui_source_window_base): Move from tui-data.h.
6179 * tui/tui-winsource.c: Move many method definitions from
6180 elsewhere. Remove "structuring" comments.
6181 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6182 (tui_source_window_base::refresh_window): Move to
6183 tui-winsource.c.
6184 * tui/tui-win.c (tui_source_window_base::refresh_all)
6185 (tui_source_window_base::update_tab_width)
6186 (tui_source_window_base::set_new_height)
6187 (tui_source_window_base::do_make_visible_with_new_height): Move to
6188 tui-winsource.c.
6189 * tui/tui-source.h: Update.
6190 * tui/tui-source.c (tui_source_window_base::reset): Move to
6191 tui-winsource.c.
6192 * tui/tui-disasm.h: Update.
6193 * tui/tui-data.h (struct tui_exec_info_window): Move to
6194 tui-winsource.h.
6195 (struct tui_source_window_base): Likewise.
6196 * tui/tui-data.c (tui_source_window_base::clear_detail)
6197 (tui_source_window_base, ~tui_source_window_base): Move to
6198 tui-winsource.c.
6199
daa15dde
TT
62002019-07-17 Tom Tromey <tom@tromey.com>
6201
6202 * tui/tui-win.c (tui_resize_all)
6203 (tui_source_window_base::update_tab_width)
6204 (tui_adjust_win_heights): Update.
6205 (tui_win_info::make_invisible_and_set_new_height): Rename from
6206 make_invisible_and_set_new_height.
6207 * tui/tui-data.h (struct tui_win_info)
6208 <make_invisible_and_set_new_height>: New method.
6209
bfad4537
TT
62102019-07-17 Tom Tromey <tom@tromey.com>
6211
6212 * tui/tui.c: Update.
6213 * tui/tui-source.h (struct tui_source_window): Move from
6214 tui-data.h.
6215 * tui/tui-layout.c: Update.
6216 * tui/tui-disasm.c: Update.
6217 * tui/tui-data.h (struct tui_source_window): Move to
6218 tui-source.h.
6219
88f7e873
TT
62202019-07-17 Tom Tromey <tom@tromey.com>
6221
6222 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6223 tui-data.h.
6224 * tui/tui-data.h (struct tui_disasm_window): Move to
6225 tui-disasm.h.
6226
96bd6233
TT
62272019-07-17 Tom Tromey <tom@tromey.com>
6228
6229 * tui/tui-regs.h (struct tui_data_item_window): Move from
6230 tui-data.h.
6231 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6232 * tui/tui-data.h (struct tui_data_item_window): Move to
6233 tui-regs.h.
6234 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6235
ce38393b
TT
62362019-07-17 Tom Tromey <tom@tromey.com>
6237
6238 * tui/tui.c: Update.
6239 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6240 (tui_cmd_window::max_height): Move to tui-command.c.
6241 * tui/tui-layout.c: Update.
6242 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6243 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6244 tui-command.c.
6245 * tui/tui-command.h (struct tui_cmd_window): Move from
6246 tui-data.h.
6247 * tui/tui-command.c: Remove "structuring" comments.
6248 (tui_cmd_window::clear_detail)
6249 (tui_cmd_window::do_make_visible_with_new_height)
6250 (tui_cmd_window::max_height): Move from elsewhere.
6251
2d8b51cb
TT
62522019-07-17 Tom Tromey <tom@tromey.com>
6253
6254 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6255 Now static.
6256 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6257 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6258
18ab23af
TT
62592019-07-17 Tom Tromey <tom@tromey.com>
6260
6261 * tui/tui.c: Update.
6262 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6263 tui-regs.c.
6264 * tui/tui-windata.h: Remove file.
6265 * tui/tui-windata.c: Remove file.
6266 * tui/tui-win.c (tui_data_window::set_new_height)
6267 (tui_data_window::do_make_visible_with_new_height): Move to
6268 tui-regs.c.
6269 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6270 * tui/tui-regs.c: Remove "structuring" comments.
6271 (tui_data_window::first_data_item_displayed)
6272 (tui_data_window::delete_data_content_windows)
6273 (tui_data_window::erase_data_content)
6274 (tui_data_window::display_all_data)
6275 (tui_data_window::refresh_all)
6276 (tui_data_window::do_scroll_vertical)
6277 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6278 (tui_data_window::do_make_visible_with_new_height)
6279 (tui_data_window::refresh_window): Move from elsewhere.
6280 (_initialize_tui_regs): Move to end of file.
6281 * tui/tui-layout.c: Update.
6282 * tui/tui-hooks.c: Update.
6283 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6284 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6285 tui-regs.c.
6286 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6287
88b7e7cc
TT
62882019-07-17 Tom Tromey <tom@tromey.com>
6289
6290 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6291 seen.
6292
0fcd3711
TT
62932019-07-17 Tom Tromey <tom@tromey.com>
6294
6295 * tui/tui-win.c (tui_source_window_base::set_new_height)
6296 (tui_source_window_base::do_make_visible_with_new_height): Use
6297 m_has_locator field directly.
6298 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6299 method.
6300 (struct tui_source_window_base) <has_locator>: Likewise.
6301
4a38112d
TT
63022019-07-17 Tom Tromey <tom@tromey.com>
6303
6304 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6305 Don't declare.
6306 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6307 Remove.
6308 * tui/tui-win.c (tui_source_window_base::set_new_height)
6309 (tui_source_window_base::set_new_height)
6310 (make_invisible_and_set_new_height)
6311 (tui_source_window_base::do_make_visible_with_new_height)
6312 (tui_source_window_base::do_make_visible_with_new_height):
6313 Update.
6314 * tui/tui-layout.c (show_source_disasm_command, show_data)
6315 (show_source_or_disasm_and_command): Update.
6316 * tui/tui-layout.c (show_layout): Update.
6317
09129226
TT
63182019-07-17 Tom Tromey <tom@tromey.com>
6319
6320 * tui/tui-layout.c (make_data_window): Remove.
6321 (show_data): Unify creation and re-initialization cases.
6322
4a8a5e84
TT
63232019-07-17 Tom Tromey <tom@tromey.com>
6324
6325 * tui/tui-layout.c (make_source_window, make_disasm_window):
6326 Remove.
6327 (show_data): Unify creation and re-initialization cases.
6328
76d2be8e
TT
63292019-07-17 Tom Tromey <tom@tromey.com>
6330
6331 * tui/tui-layout.c (make_command_window): Remove.
6332 (show_source_disasm_command, show_source_or_disasm_and_command):
6333 Unify creation and re-initialization cases.
6334
890b8bde
TT
63352019-07-17 Tom Tromey <tom@tromey.com>
6336
6337 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6338 creation and re-initialization cases.
6339
2cdfa113
TT
63402019-07-17 Tom Tromey <tom@tromey.com>
6341
6342 * tui/tui-regs.c (tui_get_register): Return void.
6343
8e3cfd09
TT
63442019-07-17 Tom Tromey <tom@tromey.com>
6345
6346 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6347 Simplify.
6348
f4e04977
TT
63492019-07-17 Tom Tromey <tom@tromey.com>
6350
6351 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6352 resetting.
6353
0379b883
TT
63542019-07-17 Tom Tromey <tom@tromey.com>
6355
6356 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6357 * tui/tui-regs.c (tui_reg_layout): New function.
6358 (tui_show_registers, tui_reg_command): Use it.
6359 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6360 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6361 parameters.
6362 (tui_layout_command): Remove.
6363
b7fbad91
TT
63642019-07-17 Tom Tromey <tom@tromey.com>
6365
6366 * tui/tui-layout.h (tui/tui-layout): Return void.
6367 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6368
4e1e56b9
TT
63692019-07-17 Tom Tromey <tom@tromey.com>
6370
6371 * tui/tui-layout.c (show_source_disasm_command, show_data):
6372 Update.
6373 (reset_locator): Remove.
6374 (show_source_or_disasm_and_command): Update.
6375
1e0c09ba
TT
63762019-07-17 Tom Tromey <tom@tromey.com>
6377
6378 * tui/tui-source.c (tui_source_window_base::reset): Remove
6379 win_type parameter.
6380 * tui/tui-layout.c (make_command_window, make_source_window)
6381 (make_disasm_window, make_data_window)
6382 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6383 (reset_locator, show_source_or_disasm_and_command): Update.
6384 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6385 win_type parameter.
6386 (struct tui_source_window_base) <reset>: Likewise.
6387
1bf605de
TT
63882019-07-17 Tom Tromey <tom@tromey.com>
6389
6390 * tui/tui-layout.c (show_source_disasm_command): Use
6391 reset_locator.
6392 (reset_locator): New function.
6393 (init_and_make_win): Remove.
6394 (show_source_or_disasm_and_command): Use reset_locator.
6395
098f9ed4
TT
63962019-07-17 Tom Tromey <tom@tromey.com>
6397
6398 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6399 condition.
6400 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6401 Remove condition.
6402 * tui/tui-source.c (tui_source_window_base::reset): New method.
6403 * tui/tui-layout.c (make_command_window): Don't call
6404 init_and_make_win.
6405 (make_source_window, make_disasm_window): Don't call
6406 make_source_or_disasm_window.
6407 (make_data_window): Don't call init_and_make_win. Change calling
6408 convention.
6409 (show_source_disasm_command, show_data): Simplify.
6410 (make_source_or_disasm_window): Remove.
6411 (show_source_or_disasm_and_command): Simplify.
6412 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6413 (struct tui_source_window_base) <reset>: Likewise.
6414 <execution_info>: Remove initializer.
6415 * tui/tui-data.c (tui_source_window_base): Initialize
6416 execution_info.
6417
80110957
TT
64182019-07-17 Tom Tromey <tom@tromey.com>
6419
6420 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6421 variable.
6422
cf82af05
TT
64232019-07-17 Tom Tromey <tom@tromey.com>
6424
6425 * tui/tui.c (tui_rl_other_window): Update.
6426 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6427 superclass method first. Always iterate over regs_content.
6428 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6429 method.
6430 * tui/tui-win.c (tui_set_focus_command): Update.
6431
01aeb396
TT
64322019-07-17 Tom Tromey <tom@tromey.com>
6433
6434 * tui/tui-win.c (tui_set_focus_command): Rename from
6435 tui_set_focus. Call tui_enable.
6436 (tui_set_focus_command): Remove.
6437
fd6c75ee
TT
64382019-07-17 Tom Tromey <tom@tromey.com>
6439
6440 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6441 refresh_window.
6442 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6443 touchwin.
6444 (tui_data_window::refresh_window): Call refresh_window on data
6445 items. Always call superclass refresh_window.
6446 (tui_win_info::refresh): Remove.
6447 (tui_source_window_base::refresh_window): Update.
6448 (tui_refresh_all): Update.
6449 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6450 refresh_window.
6451 (show_source_or_disasm_and_command): Likewise.
6452 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6453 (struct tui_source_window_base) <refresh>: Likewise.
6454
f6cc34a9
TT
64552019-07-17 Tom Tromey <tom@tromey.com>
6456
6457 * tui/tui-winsource.c (tui_clear_source_content)
6458 (tui_show_source_content): Update.
6459 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6460 whether content is empty.
6461 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6462 Remove.
6463
f31ec9af
TT
64642019-07-17 Tom Tromey <tom@tromey.com>
6465
6466 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6467 window's contents.
6468 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6469 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6470
d1b6f1e5
TT
64712019-07-17 Tom Tromey <tom@tromey.com>
6472
6473 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6474 (struct tui_data_item_window): Update.
6475
d9743a13
TT
64762019-07-17 Tom Tromey <tom@tromey.com>
6477
6478 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6479 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6480 defines.
6481
caf0bc4e
TT
64822019-07-17 Tom Tromey <tom@tromey.com>
6483
6484 * tui/tui-winsource.h (tui_erase_source_content)
6485 (tui_clear_source_content): Remove "display_prompt" parameter.
6486 * tui/tui-winsource.c (tui_update_source_window_as_is)
6487 (tui_update_source_windows_with_addr): Update.
6488 (tui_clear_source_content): Remove "display_prompt" parameter.
6489 (tui_erase_source_content): Likewise. Simplify.
6490 (tui_show_source_content): Update.
6491 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6492 * tui/tui-stack.c (tui_show_frame_info): Update.
6493 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6494 Remove defines.
6495
9d391078
TT
64962019-07-17 Tom Tromey <tom@tromey.com>
6497
6498 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6499 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6500 parameter.
6501 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6502 parameter.
6503
a38da35d
TT
65042019-07-17 Tom Tromey <tom@tromey.com>
6505
6506 * tui/tui-winsource.c (tui_clear_source_content)
6507 (tui_show_source_content, tui_show_exec_info_content)
6508 (tui_clear_exec_info_content): Update.
6509 * tui/tui-stack.c (tui_show_locator_content): Update.
6510 (tui_show_frame_info): Update.
6511 * tui/tui-source.h (tui_source_window): Don't declare.
6512 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6513 from tui_source_is_displayed.
6514 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6515 Remove field.
6516 (struct tui_source_window_base) <content_in_use>: New field. Now
6517 bool.
6518 (struct tui_source_window) <showing_source_p>: New method.
6519 (TUI_SRC_WIN): Change cast.
6520 * tui/tui-data.c (tui_initialize_static_data): Update.
6521
c2cd8994
TT
65222019-07-17 Tom Tromey <tom@tromey.com>
6523
6524 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6525 location_matches_p.
6526 * tui/tui-source.c (tui_source_window::location_matches_p): New
6527 method.
6528 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6529 method.
6530 * tui/tui-data.h (struct tui_source_window_base)
6531 <location_matches_p>: New method.
6532 (struct tui_source_window, struct tui_disasm_window)
6533 <location_matches_p>: Likewise.
6534
4dde7b34
TT
65352019-07-17 Tom Tromey <tom@tromey.com>
6536
6537 * tui/tui-win.c (tui_set_win_height_command): Rename from
6538 tui_set_win_height.
6539 (tui_set_win_height_command): Remove.
6540
b73dd877
TT
65412019-07-17 Tom Tromey <tom@tromey.com>
6542
6543 * tui/tui-source.c (tui_source_window): New constructor. Add
6544 observer.
6545 (~tui_source_window): New destructor.
6546 (tui_source_window::style_changed): New method.
6547 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6548 (tui_attach_detach_observers): Update.
6549 * tui/tui-data.h (struct tui_source_window): Make constructor not
6550 inline. Add destructor.
6551 (struct tui_source_window) <style_changed>: New method.
6552 <m_observable>: New member.
6553
ae2b5380
TT
65542019-07-17 Tom Tromey <tom@tromey.com>
6555
6556 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6557 * tui/tui-win.c (tui_resize_all): Fix typo.
6558
1ce3e844
TT
65592019-07-17 Tom Tromey <tom@tromey.com>
6560
6561 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6562 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6563 (tui_refresh_all): Remove "list" parameter. Use foreach.
6564 * tui/tui-win.c (window_name_completer): Use foreach.
6565 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6566 (update_tab_width): Likewise.
6567 * tui/tui-layout.c (show_layout): Update.
6568 * tui/tui-data.h (class tui_window_iterator): New.
6569 (struct all_tui_windows): New.
6570 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6571
fe3eaf1c
TT
65722019-07-17 Tom Tromey <tom@tromey.com>
6573
6574 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6575 parameter. Don't reference globals.
6576 (tui_reg_command): Update.
6577
368c1354
TT
65782019-07-17 Tom Tromey <tom@tromey.com>
6579
6580 * tui/tui-regs.c (tui_show_registers): Simplify.
6581
e80cd204
TT
65822019-07-17 Tom Tromey <tom@tromey.com>
6583
6584 * tui/tui-regs.c (tui_show_registers): Update.
6585 (tui_show_register_group): Add win_info parameter.
6586
aca2dd16
TT
65872019-07-17 Tom Tromey <tom@tromey.com>
6588
6589 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6590 Rename from tui_display_reg_element_at_line.
6591 (tui_data_window::display_registers_from_line): Update.
6592 * tui/tui-data.h (struct tui_data_window)
6593 <display_reg_element_at_line>: New method.
6594
517e9505
TT
65952019-07-17 Tom Tromey <tom@tromey.com>
6596
6597 * tui/tui-regs.h (tui_display_registers_from)
6598 (tui_display_registers_from_line): Don't declare.
6599 * tui/tui-windata.c (tui_data_window::display_all_data)
6600 (tui_data_window::refresh_all)
6601 (tui_data_window::do_scroll_vertical): Update.
6602 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6603 from tui_display_registers_from.
6604 (tui_display_reg_element_at_line): Update.
6605 (tui_data_window::display_registers_from_line): Rename from
6606 tui_display_registers_from_line.
6607 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6608 display_registers_from_line>: New methods.
6609
f76d8b19
TT
66102019-07-17 Tom Tromey <tom@tromey.com>
6611
6612 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6613 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6614 from tui_erase_data_content.
6615 (tui_data_window::display_all_data)
6616 (tui_data_window::refresh_all)
6617 (tui_data_window::do_scroll_vertical): Update.
6618 * tui/tui-regs.c (tui_show_registers): Update.
6619 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6620 New method.
6621
b4094625
TT
66222019-07-17 Tom Tromey <tom@tromey.com>
6623
6624 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6625 declare.
6626 * tui/tui-windata.c
6627 (tui_data_window::delete_data_content_windows): Rename from
6628 tui_delete_data_content_windows.
6629 (tui_data_window::display_all_data)
6630 (tui_data_window::do_scroll_vertical): Update.
6631 * tui/tui-data.h (struct tui_data_window)
6632 <delete_data_content_windows>: New method.
6633
c223a729
TT
66342019-07-17 Tom Tromey <tom@tromey.com>
6635
6636 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6637 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6638
50daf268
TT
66392019-07-17 Tom Tromey <tom@tromey.com>
6640
6641 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6642 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6643 from tui_display_all_data.
6644 * tui/tui-win.c
6645 (tui_data_window::do_make_visible_with_new_height): Update.
6646 * tui/tui-regs.c (tui_show_registers): Update.
6647 * tui/tui-layout.c (tui_set_layout): Update.
6648 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6649 method.
6650
df5f8cab
TT
66512019-07-17 Tom Tromey <tom@tromey.com>
6652
6653 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6654 * tui/tui-windata.c (tui_display_data_from): Remove.
6655 (tui_data_window::refresh_all): Update.
6656
80cb6c27
TT
66572019-07-17 Tom Tromey <tom@tromey.com>
6658
6659 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6660 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6661 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6662 tui_display_registers_from_line.
6663 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6664 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6665 "force_display" parameter.
6666
baff0c28
TT
66672019-07-17 Tom Tromey <tom@tromey.com>
6668
6669 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6670 declare.
6671 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6672 Rename from tui_first_reg_element_no_inline.
6673 (tui_display_reg_element_at_line)
6674 (tui_display_registers_from_line): Update.
6675 * tui/tui-data.h (struct tui_data_window)
6676 <first_reg_element_no_inline>: New method.
6677
3b23c5f2
TT
66782019-07-17 Tom Tromey <tom@tromey.com>
6679
6680 * tui/tui-windata.c (tui_display_data_from)
6681 (tui_data_window::do_scroll_vertical): Update.
6682 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6683 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6684 Rename from tui_line_from_reg_element_no.
6685 (tui_display_registers_from_line): Update.
6686 * tui/tui-data.h (struct tui_data_window)
6687 <line_from_reg_element_no>: New method.
6688
0b5ec218
TT
66892019-07-17 Tom Tromey <tom@tromey.com>
6690
6691 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6692 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6693 tui_last_regs_line_no.
6694 (tui_display_reg_element_at_line)
6695 (tui_display_registers_from_line): Update.
6696 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6697 method.
6698
0807ab7b
TT
66992019-07-17 Tom Tromey <tom@tromey.com>
6700
6701 PR tui/24722:
6702 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6703 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6704 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6705 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6706 (tui_update_breakpoint_info): Likewise.
6707 * tui/tui-hooks.c (tui_event_create_breakpoint)
6708 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6709 Update.
6710
9ad7fdef
TT
67112019-07-17 Tom Tromey <tom@tromey.com>
6712
6713 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6714
5813316f
TT
67152019-07-17 Tom Tromey <tom@tromey.com>
6716
6717 * tui/tui-winsource.c (tui_update_source_window_as_is)
6718 (tui_update_source_windows_with_addr): Update.
6719 * tui/tui-source.h (tui_set_source_content)
6720 (tui_show_symtab_source): Add "win_info" parameter.
6721 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6722 parameter.
6723 (tui_show_symtab_source): Likewise.
6724
00e264e7
TT
67252019-07-17 Tom Tromey <tom@tromey.com>
6726
6727 * tui/tui-wingeneral.c
6728 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6729
06210ce4
TT
67302019-07-17 Tom Tromey <tom@tromey.com>
6731
6732 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6733 (struct tui_cmd_window) <can_scroll>: New method.
6734 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6735 method.
6736
381befee
TT
67372019-07-17 Tom Tromey <tromey@adacore.com>
6738
6739 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6740 do_field_signed>: Rename. Change type of "value".
6741 * ui-out.c (ui_out::field_signed): Rename from field_int.
6742 Change type of "value".
6743 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6744 type of "value".
6745 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6746 do_field_int. Change type of "value".
6747 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6748 do_field_int. Change type of "value".
6749 * tracepoint.c (trace_status_mi, tfind_1)
6750 (print_one_static_tracepoint_marker): Update.
6751 * thread.c (print_thread_info_1, print_selected_thread_frame):
6752 Update.
6753 * stack.c (print_frame, print_frame_info): Update.
6754 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6755 Update.
6756 * source.c (print_source_lines_base): Update.
6757 * skip.c (info_skip_command): Update.
6758 * record-btrace.c (btrace_ui_out_decode_error)
6759 (btrace_call_history_src_line): Update.
6760 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6761 Update.
6762 * progspace.c (print_program_space): Update.
6763 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6764 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6765 do_field_int. Change type of "value".
6766 * mi/mi-out.c (mi_ui_out::do_table_begin)
6767 (mi_ui_out::do_table_header): Update.
6768 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6769 type of "value".
6770 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6771 (mi_cmd_data_list_changed_registers, output_register)
6772 (mi_cmd_data_read_memory, mi_load_progress)
6773 (mi_cmd_trace_frame_collected): Update.
6774 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6775 Update.
6776 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6777 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6778 (mi_cmd_var_list_children, varobj_update_one): Update.
6779 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6780 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6781 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6782 * inferior.c (print_inferior): Update.
6783 * gdb_bfd.c (print_one_bfd): Update.
6784 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6785 Update.
6786 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6787 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6788 do_field_int. Change type of "value".
6789 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6790 do_field_int. Change type of "value".
6791 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6792 (print_one_breakpoint_location, print_it_catch_fork)
6793 (print_one_catch_fork, print_it_catch_vfork)
6794 (print_one_catch_vfork, print_it_catch_solib)
6795 (print_it_catch_exec, print_it_ranged_breakpoint)
6796 (print_mention_watchpoint, print_mention_masked_watchpoint)
6797 (bkpt_print_it, update_static_tracepoint): Update.
6798 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6799 * break-catch-syscall.c (print_it_catch_syscall): Update.
6800 * ada-tasks.c (print_ada_task_info): Update.
6801 * ada-lang.c (print_it_exception, print_mention_exception):
6802 Update.
6803
6b78c3f8
AB
68042019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6805
6806 PR breakpoints/24541
6807 * gdbarch.c: Regenerate.
6808 * gdbarch.h: Regenerate.
6809 * gdbarch.sh: Adjust return type and parameter types for
6810 'stap_adjust_register'.
6811 (i386_stap_adjust_register): Adjust signature and return new
6812 register name.
6813 * stap-probe.c (stap_parse_register_operand): Adjust use of
6814 'gdbarch_stap_adjust_register'.
6815
d72a9b85
TT
68162019-07-17 Tom Tromey <tromey@adacore.com>
6817
6818 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6819 declare VEC.
6820 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6821 std::vector.
6822 (struct s390_process_info): Add initializers.
6823 (s390_add_process): Use new.
6824 (s390_linux_nat_target::low_forget_process): Use delete.
6825 (s390_linux_nat_target::low_new_fork)
6826 (s390_linux_nat_target::stopped_by_watchpoint)
6827 (s390_linux_nat_target::low_prepare_to_resume)
6828 (s390_linux_nat_target::insert_watchpoint)
6829 (s390_linux_nat_target::insert_hw_breakpoint)
6830 (s390_linux_nat_target::remove_watchpoint)
6831 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6832
206e6c58
JB
68332019-07-16 John Baldwin <jhb@FreeBSD.org>
6834
6835 * aarch64-fbsd-nat.c: Include regcache.h.
6836 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6837 argument.
6838 (aarch64_fbsd_nat_target::fetch_registers)
6839 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6840 variable.
6841 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6842
cbde90f2
JB
68432019-07-16 John Baldwin <jhb@FreeBSD.org>
6844
6845 * fbsd-nat.c: Include gdbarch.h.
6846
07128006
TT
68472019-07-15 Tom Tromey <tromey@adacore.com>
6848
6849 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6850
1f77b012
TT
68512019-07-15 Tom Tromey <tromey@adacore.com>
6852
6853 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6854 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6855 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6856 * cli-out.c (cli_ui_out::do_field_int): New method.
6857 * ui-out.c (ui_out::field_unsigned): New method.
6858 * symfile.c (generic_load): Use field_unsigned.
6859 (print_transfer_performance): Likewise.
6860 * record-btrace.c (ui_out_field_uint): Remove.
6861 (btrace_call_history_insn_range, btrace_call_history): Use
6862 field_unsigned.
6863 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6864 field_unsigned.
6865 * ui-out.h (class ui_out) <field_unsigned>: New method.
6866 <do_field_unsigned>: Likewise.
6867
33eca680
TT
68682019-07-15 Tom Tromey <tromey@adacore.com>
6869
6870 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6871 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6872 * target.c (flash_erase_command): Use field_string.
6873 * infrun.c (print_signal_received_reason): Use field_string.
6874 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6875 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6876 field_string.
6877 * ada-tasks.c (print_ada_task_info): Use field_string.
6878
ca8d69be
TT
68792019-07-15 Tom Tromey <tromey@adacore.com>
6880
6881 * target.c (flash_erase_command): Use field_core_addr.
6882 * symfile.c (generic_load): Use field_core_addr.
6883 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6884 Use field_core_addr.
6885 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6886 field_core_addr.
6887
0d4e84ed
AB
68882019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6889
6890 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6891 value if its desired type is smaller than a CORE_ADDR and signed.
6892
9a49df9d
AB
68932019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6894
6895 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6896 of changes to field names, and use new is_reference field to
6897 decide if a property is a reference or not.
6898 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6899 field.
6900 (struct dwarf2_property_baton): Update header comment, rename
6901 'referenced_type' to 'property_type' and update comments.
6902 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6903 default property type, store in property baton, update to take
6904 accound of renamed field.
6905 (read_func_scope): Update call to attr_to_dynamic_prop.
6906 (read_array_type): Likewise.
6907 (dwarf2_per_cu_addr_sized_int_type): New function.
6908 (read_subrange_index_type): Move type finding code to
6909 dwarf2_per_cu_addr_sized_int_type.
6910 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6911 (dwarf2_per_cu_addr_type): New function.
6912 (set_die_type): Update calls to attr_to_dynamic_prop.
6913
b86352cf
AB
69142019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6915
6916 * dwarf2read.c (read_subrange_index_type): New function.
6917 (read_subrange_type): Move code into new function and call it.
6918 * gdbtypes.c (create_range_type): Add some asserts.
6919
603490bf
AB
69202019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6921
6922 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6923 update return statements.
6924 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6925 declaration, and update comment to match.
6926 * gdbtypes.c (resolve_dynamic_array): Update call to
6927 dwarf2_evaluate_property to match new return type.
6928
592f9d27
AB
69292019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6930
6931 * valarith.c (value_subscripted_rvalue): Change lowerbound
6932 parameter type from int to LONGEST.
6933 * value.h (value_subscripted_rvalue): Likewise in declaration.
6934
60cfcb20
AB
69352019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6936
6937 * cli/cli-utils.c (info_print_command_completer): New function.
6938 * cli/cli-utils.h: Add 'completer.h' include, and forward
6939 declaration for 'struct cmd_list_element'.
6940 (info_print_command_completer): Declare.
6941 * stack.c (_initialize_stack): Add completer for 'info locals' and
6942 'info args'.
6943 * symtab.c (_initialize_symtab): Add completer for 'info
6944 variables' and 'info functions'.
6945 * NEWS: Mention completion for additional info commands.
6946
b16507e0
AB
69472019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6948
6949 * cli/cli-utils.c (extract_info_print_args): Delete.
6950 (extract_arg_maybe_quoted): Delete.
6951 (info_print_options_defs): New variable.
6952 (make_info_print_options_def_group): New function.
6953 (extract_info_print_options): Define new function.
6954 * cli/cli-utils.h (extract_info_print_args): Delete.
6955 (struct info_print_options): New structure.
6956 (extract_info_print_options): Declare new function.
6957 * stack.c (info_locals_command): Update to use new
6958 extract_info_print_options, also add a header comment.
6959 (info_args_command): Likewise.
6960 * symtab.c (info_variables_command): Likewise.
6961 (info_functions_command): Likewise.
6962
021d8588
AB
69632019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6964
6965 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6966 to extract string arguments.
6967 * common/common-utils.c (extract_string_maybe_quoted): New function.
6968 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6969
b777eb6d
TT
69702019-07-11 Tom Tromey <tromey@adacore.com>
6971
6972 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6973 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6974 * top.h (gdbinit): Don't declare.
6975 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6976 into...
6977 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6978 * top.c (gdb_init): Don't call init_cli_cmds.
6979 (gdbinit): Remove.
6980 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6981
72ee03ff
TT
69822019-07-11 Tom Tromey <tromey@adacore.com>
6983
6984 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6985 after it has been moved.
6986
00db9531
SM
69872019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6988
6989 * valops.c (value_must_coerce_to_target): Change return type to
6990 bool.
6991 * value.h (value_must_coerce_to_target): Likewise.
6992
f2478a7e
SM
69932019-07-10 Simon Marchi <simon.marchi@efficios.com>
6994
6995 * breakpoint.c (is_hardware_watchpoint): Remove
6996 forward-declaration.
6997 (is_masked_watchpoint): Change return type to bool.
6998 (is_tracepoint): Likewise.
6999 (is_breakpoint): Likewise.
7000 (is_hardware_watchpoint): Likewise.
7001 (is_watchpoint): Likewise.
7002 (is_no_memory_software_watchpoint): Likewise.
7003 (is_catchpoint): Likewise.
7004 (breakpoint_1): Make FILTER parameter's return type bool.
7005 is_masked_watchpoint): Change return type to bool.
7006 (save_breakpoints): Make FILTER parameter's return type bool.
7007 * breakpoint.h (is_breakpoint): Change return type to bool.
7008 (is_watchpoint): Likewise.
7009 (is_catchpoint): Likewise.
7010 (is_tracepoint): Likewise.
7011
0d12e84c
TT
70122019-07-10 Tom Tromey <tom@tromey.com>
7013
7014 * defs.h: Don't include gdbarch.h.
7015 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7016 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7017 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7018 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7019 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7020 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7021 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7022 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7023 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7024 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7025 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7026 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7027 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7028 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7029 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7030 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7031 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7032 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7033 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7034 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7035 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7036 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7037 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7038 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7039 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7040 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7041 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7042
f06f1252
TT
70432019-07-10 Tom Tromey <tromey@adacore.com>
7044
7045 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7046 * breakpoint.c (init_ada_exception_breakpoint): Register as
7047 bp_catchpoint.
7048 (print_one_breakpoint_location, print_one_breakpoint): Use
7049 is_ada_exception_catchpoint.
7050 * ada-lang.c (class ada_catchpoint_location): Pass
7051 bp_loc_software_breakpoint to bp_location constructor.
7052 (is_ada_exception_catchpoint): New function.
7053
7a5d944b
TT
70542019-07-10 Tom Tromey <tromey@adacore.com>
7055
7056 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7057 VEC.
7058 (struct arm_exidx_entry): New method operator<.
7059 (struct arm_exidx_data) <section_maps>: Change type.
7060 (arm_exidx_data_free): Remove.
7061 (arm_exidx_data_key): Change type. Move lower.
7062 (arm_exidx_new_objfile): Update.
7063 (arm_compare_exidx_entries): Remove.
7064 (arm_find_exidx_entry, _initialize_arm_tdep)
7065
48c66e1d
TT
70662019-07-10 Tom Tromey <tromey@adacore.com>
7067
7068 * solib-spu.c (ocl_program_data_key): Change type.
7069 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7070 Update.
7071
a269fbf1
TT
70722019-07-10 Tom Tromey <tromey@adacore.com>
7073
7074 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7075 (struct solib_aix_inferior_data) <library_list>: Change type.
7076 (solib_aix_inferior_data_handle): Change type.
7077 (get_solib_aix_inferior_data): Update.
7078 (solib_aix_free_library_list): Remove.
7079 (library_list_start_library): Update.
7080 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7081 return type.
7082 (solib_aix_get_library_list)
7083 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7084 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7085
c294730c
TT
70862019-07-10 Tom Tromey <tromey@adacore.com>
7087
7088 * solib-dsbt.c (struct dsbt_info): Add initializers.
7089 (solib_dsbt_pspace_data): Change type.
7090 (dsbt_pspace_data_cleanup): Remove.
7091 (get_dsbt_info, _initialize_dsbt_solib): Update.
7092
9d52077d
TT
70932019-07-10 Tom Tromey <tromey@adacore.com>
7094
7095 * spu-tdep.c (spu_overlay_data): Change type.
7096 (spu_get_overlay_table, spu_overlay_new_objfile)
7097 (_initialize_spu_tdep): Update.
7098
22a20dca
TT
70992019-07-10 Tom Tromey <tromey@adacore.com>
7100
7101 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7102 destructor.
7103 (dbx_objfile_data_key): Change type and declare later.
7104 (DBX_SYMFILE_INFO): Rewrite.
7105 * dbxread.c (dbx_objfile_data_key): Change type.
7106 (dbx_symfile_init): Update.
7107 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7108 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7109 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7110
cb60f420
TT
71112019-07-10 Tom Tromey <tromey@adacore.com>
7112
7113 * jit.c (jit_program_space_key): Change type. Move lower.
7114 (get_jit_program_space_data): Update.
7115 (jit_program_space_data_cleanup): Remove.
7116 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7117 Update.
7118 (struct jit_program_space_data): Add initializers.
7119
51df2ae3
TT
71202019-07-10 Tom Tromey <tromey@adacore.com>
7121
7122 * solib-darwin.c (struct darwin_info): Add initializers.
7123 (solib_darwin_pspace_data): Change type.
7124 (darwin_pspace_data_cleanup): Remove.
7125 (get_darwin_info, _initialize_darwin_solib): Update.
7126
18101a35
TT
71272019-07-10 Tom Tromey <tromey@adacore.com>
7128
7129 * remote-sim.c (struct sim_inferior_data): Add initializers,
7130 constructor, and destructor.
7131 (sim_inferior_data_key): Change type. Move lower.
7132 (check_for_duplicate_sim_descriptor): Update.
7133 (get_sim_inferior_data): Use new. Update.
7134 (~sim_inferior_data_cleanup): Rename from
7135 sim_inferior_data_cleanup. Simplify.
7136 (gdbsim_close_inferior, simulator_command)
7137 (sim_command_completer, _initialize_remote_sim): Update.
7138 (next_pid, INITIAL_PID): Move earlier.
7139
05b08ac1
TT
71402019-07-10 Tom Tromey <tromey@adacore.com>
7141
7142 * python/python-internal.h (create_thread_object): Return
7143 gdbpy_ref.
7144 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7145 * python/py-inferior.c (struct threadlist_entry): Add
7146 constructor.
7147 <thread_obj>: Now a gdbpy_ref.
7148 (thread_to_thread_object): Update.
7149 (add_thread_object): Use new.
7150 (delete_thread_object): Use delete.
7151 (infpy_threads): Update.
7152 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7153 GIL.
7154
32372d80
TT
71552019-07-10 Tom Tromey <tromey@adacore.com>
7156
7157 * valops.c (value_cast): Specialize error message for Ada.
7158
5c458ae8
SM
71592019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7160
7161 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7162
4c462cb0
SM
71632019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7164
7165 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7166 bpstat_should_step): Return bool, adjust comments.
7167 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7168 bpstat_should_step): Likewise.
7169
89abbcc2
AH
71702019-07-10 Alan Hayward <alan.hayward@arm.com>
7171
7172 * features/Makefile: Use feature target descriptions for Arm.
7173 * features/arm/arm-core.c: Generate new file.
7174 * features/arm/arm-fpa.c: Likewise.
7175 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7176 * features/arm/arm-m-profile.c: Likewise.
7177 * features/arm/arm-vfpv2.c: Likewise.
7178 * features/arm/arm-vfpv3.c: Likewise.
7179 * features/arm/xscale-iwmmxt.c: Likewise.
7180 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7181
166a82be
AH
71822019-07-10 Alan Hayward <alan.hayward@arm.com>
7183
7184 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7185 ptrace earlier.
7186
9fb4c7e9
AH
71872019-07-10 Alan Hayward <alan.hayward@arm.com>
7188
7189 * features/aarch64-pauth.c: Regenerate.
7190
e2d0f980
SM
71912019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7192
7193 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7194 bool.
7195 (bpstat_what): Use false instead of 0.
7196
a38118e5
PA
71972019-07-09 Pedro Alves <palves@redhat.com>
7198
7199 * break-catch-throw.c (is_exception_catchpoint): New.
7200 * breakpoint.c (print_one_breakpoint_location): New parameter
7201 'raw_loc'. Handle it. Use
7202 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7203 looking at the breakpoint's type.
7204 (print_one_breakpoint): If handling "maint info breakpoints", also
7205 print locations of exception catchpoints.
7206 * breakpoint.h (is_exception_catchpoint): Declare.
7207
cb1e4e32
PA
72082019-07-09 Pedro Alves <palves@redhat.com>
7209
7210 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7211 "addr" field.
7212 (allocate_location_exception_catchpoint): New.
7213 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7214 (initialize_throw_catchpoint_ops): Install
7215 allocate_location_exception_catchpoint as allocate_location
7216 method.
7217 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7218 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7219 bp_loc_other.
7220 (breakpoint_address_is_meaningful): Delete.
7221 (bl_address_is_meaningful): New.
7222 (breakpoint_locations_match): Adjust comment.
7223 (bp_location_from_bp_type): New, factored out of...
7224 (bp_location::bp_location(breakpoint *)): ... this.
7225 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7226 factored out of...
7227 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7228 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7229 breakpoint_address_is_meaningful.
7230 (bp_locations_compare): Adjust comment.
7231 (update_global_location_list): Use bl_address_is_meaningful
7232 instead of breakpoint_address_is_meaningful.
7233 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7234 explicit.
7235 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7236 * python/py-breakpoint.c (bppy_get_location): No longer check
7237 whether location is null.
7238
b58a68fe
PA
72392019-07-09 Pedro Alves <palves@redhat.com>
7240
7241 PR c++/15468
7242 * breakpoint.c (print_one_breakpoint_location): Remove
7243 single-location assert.
7244
268a13a5
TT
72452019-07-09 Tom Tromey <tom@tromey.com>
7246
7247 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7248 * configure: Rebuild.
7249 * configure.ac: Change common to gdbsupport.
7250 * gdbsupport: Rename from common.
7251 * acinclude.m4: Change common to gdbsupport.
7252 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7253 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7254 gdbsupport.
7255 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7256 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7257 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7258 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7259 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7260 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7261 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7262 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7263 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7264 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7265 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7266 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7267 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7268 coff-pe-read.c, command.h, compile/compile-c-support.c,
7269 compile/compile-c.h, compile/compile-cplus-symbols.c,
7270 compile/compile-cplus-types.c, compile/compile-cplus.h,
7271 compile/compile-loc2c.c, compile/compile.c, completer.c,
7272 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7273 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7274 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7275 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7276 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7277 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7278 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7279 features/aarch64-core.c, features/aarch64-fpu.c,
7280 features/aarch64-pauth.c, features/aarch64-sve.c,
7281 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7282 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7283 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7284 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7285 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7286 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7287 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7288 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7289 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7290 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7291 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7292 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7293 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7294 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7295 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7296 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7297 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7298 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7299 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7300 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7301 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7302 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7303 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7304 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7305 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7306 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7307 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7308 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7309 minsyms.c, mips-linux-tdep.c, namespace.h,
7310 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7311 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7312 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7313 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7314 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7315 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7316 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7317 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7318 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7319 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7320 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7321 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7322 procfs.c, producer.c, progspace.h, psymtab.h,
7323 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7324 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7325 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7326 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7327 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7328 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7329 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7330 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7331 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7332 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7333 target-memory.c, target.c, target.h, target/waitstatus.c,
7334 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7335 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7336 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7337 unittests/array-view-selftests.c,
7338 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7339 unittests/common-utils-selftests.c,
7340 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7341 unittests/format_pieces-selftests.c,
7342 unittests/function-view-selftests.c,
7343 unittests/lookup_name_info-selftests.c,
7344 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7345 unittests/mkdir-recursive-selftests.c,
7346 unittests/observable-selftests.c,
7347 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7348 unittests/parse-connection-spec-selftests.c,
7349 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7350 unittests/scoped_fd-selftests.c,
7351 unittests/scoped_mmap-selftests.c,
7352 unittests/scoped_restore-selftests.c,
7353 unittests/string_view-selftests.c, unittests/style-selftests.c,
7354 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7355 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7356 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7357 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7358 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7359 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7360
5b0e2db4
AB
73612019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7362
7363 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7364 bool value.
7365 (decode_digits_ordinary): Set explicit_line field in sal.
7366 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7367 symtab_and_line that was set on an explicit line number in
7368 assembler code. Do always update the recorded symtab and line if
7369 we do skip the prologue.
7370
0ba852ab
AB
73712019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7372
7373 * breakpoint.c (set_breakpoint_location_function): Remove
7374 explicit_loc parameter.
7375 (momentary_breakpoint_from_master): Update call to
7376 set_breakpoint_location_function.
7377 (add_location_to_breakpoint): Likewise.
7378
b3a7d171
AB
73792019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7380
7381 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7382 required features based on default bfd type when no specific bfd
7383 is present.
7384
1f6f6e21
PW
73852019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7386
7387 * NEWS: Mention that GDB printf and eval commands can now print
7388 C-style and Ada-style convenience var strings without
7389 calling the inferior.
7390 * printcmd.c (printf_c_string): Locally print GDB internal var
7391 instead of transiting via the inferior.
7392 (printf_wide_c_string): Likewise.
7393
73942019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7395
5862c886 7396 PR breakpoints/25011
ea142fbf
AH
7397 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7398
0598af48
TT
73992019-07-04 Tom Tromey <tom@tromey.com>
7400
7401 PR tui/24724:
7402 * tui/tui-winsource.c (tui_clear_source_content): Update.
7403 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7404 (tui_update_breakpoint_info): Update.
7405 (tui_set_exec_info_content): Update.
7406 * tui/tui-source.c (tui_set_source_content_nil): Update.
7407 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7408 has_break.
7409 * tui/tui-data.h (enum tui_bp_flag): New.
7410 (tui_bp_flags): New enum flags type.
7411 (struct tui_source_element) <break_mode>: Change type. Rename
7412 from has_break.
7413 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7414 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7415 constants.
7416 * tui/tui-winsource.h: Fix comment.
7417
350fab54
AH
74182019-07-04 Alan Hayward <alan.hayward@arm.com>
7419
7420 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7421 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7422 (store_fpregs_to_thread)
7423 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7424 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7425 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7426 (IWMMXT_REGS_SIZE): Add define.
7427 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7428 (fetch_vfp_regs, store_vfp_regs)
7429 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7430 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7431
f0452268
AH
74322019-07-04 Alan Hayward <alan.hayward@arm.com>
7433
7434 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7435 defines.
7436 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7437 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7438 (ARM_INT_REGISTER_SIZE): ...to this.
7439 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7440 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7441 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7442 (arm_linux_collect_gregset, supply_nwfpe_register)
7443 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7444 defines.
7445 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7446 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7447 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7448 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7449 (arm_return_in_memory, arm_store_return_value)
7450 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7451 (arm_record_ld_st_multiple): Likewise.
7452 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7453 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7454
e935475c
AH
74552019-07-04 Alan Hayward <alan.hayward@arm.com>
7456
7457 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7458 AARCH64_DISPLACED_MODIFIED_INSNS.
7459 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7460 (aarch64_displaced_step_copy_insn): Likewise.
7461 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7462 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7463 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7464 ARM_DISPLACED_MODIFIED_INSNS.
7465 * arm-tdep.c (arm_gdbarch_init): Likewise.
7466 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7467 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7468 (struct arm_displaced_step_closure): Use
7469 ARM_DISPLACED_MODIFIED_INSNS.
7470
df0bb381
AH
74712019-07-04 Alan Hayward <alan.hayward@arm.com>
7472
7473 * features/Makefile: Remove unused xml files.
7474 * features/aarch64.xml: Remove.
7475 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7476 * features/i386/amd64-avx-avx512.xml: Remove.
7477 * features/i386/amd64-avx-linux.xml: Remove.
7478 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7479 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7480 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7481 * features/i386/amd64-avx-mpx.xml: Remove.
7482 * features/i386/amd64-avx.xml: Remove.
7483 * features/i386/amd64-linux.xml: Remove.
7484 * features/i386/amd64-mpx-linux.xml: Remove.
7485 * features/i386/amd64-mpx.xml: Remove.
7486 * features/i386/amd64.xml: Remove.
7487 * features/i386/i386-avx-avx512-linux.xml: Remove.
7488 * features/i386/i386-avx-avx512.xml: Remove.
7489 * features/i386/i386-avx-linux.xml: Remove.
7490 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7491 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7492 * features/i386/i386-avx-mpx-linux.xml: Remove.
7493 * features/i386/i386-avx-mpx.xml: Remove.
7494 * features/i386/i386-avx.xml: Remove.
7495 * features/i386/i386-linux.xml: Remove.
7496 * features/i386/i386-mmx-linux.xml: Remove.
7497 * features/i386/i386-mmx.xml: Remove.
7498 * features/i386/i386-mpx-linux.xml: Remove.
7499 * features/i386/i386-mpx.xml: Remove.
7500 * features/i386/i386.xml: Remove.
7501 * features/i386/x32-avx-avx512-linux.xml: Remove.
7502 * features/i386/x32-avx-linux.xml: Remove.
7503 * features/i386/x32-linux.xml: Remove.
7504
edd6266a
AH
75052019-07-04 Alan Hayward <alan.hayward@arm.com>
7506
7507 * regformats/aarch64.dat: Remove.
7508 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7509 * regformats/i386/amd64-avx-linux.dat: Remove.
7510 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7511 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7512 * regformats/i386/amd64-linux.dat: Remove.
7513 * regformats/i386/amd64-mpx-linux.dat: Remove.
7514 * regformats/i386/amd64.dat: Remove.
7515 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7516 * regformats/i386/i386-avx-linux.dat: Remove.
7517 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7518 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7519 * regformats/i386/i386-linux.dat: Remove.
7520 * regformats/i386/i386-mmx-linux.dat: Remove.
7521 * regformats/i386/i386-mpx-linux.dat: Remove.
7522 * regformats/i386/i386.dat: Remove.
7523 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7524 * regformats/i386/x32-avx-linux.dat: Remove.
7525 * regformats/i386/x32-linux.dat: Remove.
7526
2b40fda7
AH
75272019-07-04 Alan Hayward <alan.hayward@arm.com>
7528
7529 * aarch64-tdep.c: Remove xml self tests.
7530 * amd64-linux-tdep.c: Likewise.
7531 * amd64-tdep.c: Likewise.
7532 * i386-linux-tdep.c: Likewise.
7533 * i386-tdep.c: Likewise.
7534
5f4ba3e7
PA
75352019-07-03 Pedro Alves <palves@redhat.com>
7536
7537 PR cli/24732
7538 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7539 (pipe_cmd_option_defs): New.
7540 (make_pipe_cmd_options_def_group): New.
7541 (pipe_command): Use gdb::option::process_options.
7542 (pipe_command_completer): New function.
7543 (_initialize_cli_cmds): Install completer for "pipe" command.
7544
3d9be6f5
PA
75452019-07-03 Pedro Alves <palves@redhat.com>
7546
7547 * cli/cli-option.c (union option_value) <string>: New field.
7548 (struct option_def_and_value): Add ctor, move ctor, dtor and
7549 use DISABLE_COPY_AND_ASSIGN.
7550 (option_def_and_value::clear_value): New.
7551 (parse_option, save_option_value_in_ctx, get_val_type_str)
7552 (add_setshow_cmds_for_options): Handle var_string.
7553 * cli-option.h (union option_def::var_address) <string>: New
7554 field.
7555 (struct string_option_def): New.
7556 * maint-test-options.c (struct test_options_opts): Add default
7557 ctor and use DISABLE_COPY_AND_ASSIGN.
7558 <string_opt>: New field.
7559 (test_options_opts::~test_options_opts): New.
7560 (test_options_opts::dump): Also dump "-string".
7561 (test_options_option_defs): Install "string.
7562
41fc454c
PA
75632019-07-03 Pedro Alves <palves@redhat.com>
7564
7565 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7566 option_value with a null enumeration.
7567 (complete_options): Save the option values in the context.
7568 (save_option_value_in_ctx): New, factored out from ...
7569 (process_options): ... here.
7570 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7571 of the function.
7572 * maint-test-options.c (test_options_opts::dump): New, factored
7573 out from ...
7574 (maintenance_test_options_command_mode): ... here.
7575 (maintenance_test_options_command_completion_result): Delete.
7576 (maintenance_test_options_command_completion_text): Update
7577 comment.
7578 (maintenance_show_test_options_completion_result): Change
7579 prototype. Just print
7580 maintenance_test_options_command_completion_text.
7581 (save_completion_result): New.
7582 (maintenance_test_options_completer_mode): Pass options context to
7583 complete_options, and then save a dump.
7584 (_initialize_maint_test_options): Use add_cmd to install "maint
7585 show test-options-completion-result".
7586
fdbc9870
PA
75872019-07-03 Pedro Alves <palves@redhat.com>
7588
7589 * NEWS (New commands): Mention "with" and "maint with".
7590 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7591 (with_command, with_command_completer): New.
7592 (pipe_command): Adjust to new repeat_previous
7593 interface.
7594 (_initialize_cli_cmds): Install the "with" command and its "w"
7595 alias.
7596 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7597 declarations.
7598 * cli/cli-setshow.c (parse_cli_var_uinteger)
7599 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7600 argument strings for all var_types.
7601 (get_setshow_command_value_string): New, factored out from ...
7602 (do_show_command): ... this.
7603 * cli/cli-setshow.h: Include <string>.
7604 (get_setshow_command_value_string): Declare.
7605 * command.h (repeat_previous): Now returns const char *. Adjust
7606 comment.
7607 * maint.c: Include "cli/cli-cmds.h".
7608 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7609 (_initialize_maint_cmds): Register the "maintenance with" command.
7610 * top.c (repeat_previous): Move bits from pipe_command here:
7611 Return the saved command line, if any; error out if there's no
7612 command to relaunch.
7613
c6ac8931
PA
76142019-07-03 Pedro Alves <palves@redhat.com>
7615
7616 * NEWS (New commands): Mention "maint set/show test-settings"
7617 instead of "maint test-settings".
7618 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7619 (maintenance_test_settings_set_list): Rename to ...
7620 (maintenance_set_test_settings_list): ... this.
7621 (maintenance_test_settings_show_list): Rename to ...
7622 (maintenance_show_test_settings_list): ... this.
7623 (maintenance_test_settings_cmd): Delete.
7624 (maintenance_test_settings_set_cmd): ...
7625 (maintenance_set_test_settings_cmd): ... this.
7626 (maintenance_test_settings_show_cmd): ...
7627 (maintenance_show_test_settings_cmd): ... this.
7628 (maintenance_test_settings_show_value_cmd):
7629 (maintenance_show_test_settings_value_cmd): ... this.
7630 (_initialize_maint_test_settings): No longer install the "maint
7631 test-settings" prefix command. Rename "maint test-settings set"
7632 to "maint set test-settings", and "maint test-settings show" to
7633 "maint show test-settings". Adjust all subcommands.
7634
d1fcf2fd
PA
76352019-07-03 Pedro Alves <palves@redhat.com>
7636
7637 * maint-test-settings.c: Fix file's intro comment. Replace all
7638 references to "test-options" with references to "test-settings",
7639 in comments.
7640
970f9d09
PA
76412019-07-03 Pedro Alves <palves@redhat.com>
7642
7643 * maint-test-settings.c (maintenance_test_settings_xxx)
7644 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7645 New.
7646 (maintenance_test_settings_enums): Use them.
7647 (maintenance_test_settings_enum): Default to
7648 maintenance_test_settings_xxx.
7649 (_initialize_maint_test_settings): Initialize
7650 MAINTENANCE_TEST_SETTINGS_FILENAME.
7651
f3869b1a
SM
76522019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7653
7654 * breakpoint.h (remove_breakpoints_inf): Change return type to
7655 void, move function documentation here.
7656 * breakpoint.c (remove_breakpoints_inf): Change return type to
7657 void, move function documentation to header.
7658
54d66006
PA
76592019-07-02 Pedro Alves <palves@redhat.com>
7660
7661 * NEWS (Completion improvements): Mention "info threads".
7662 * thread.c (struct info_threads_opts, info_threads_option_defs)
7663 (make_info_threads_options_def_group): New.
7664 (info_threads_command): Use gdb::option::process_options.
7665 (info_threads_command_completer): New.
7666 (_initialize_thread): Use gdb::option::build_help to build the
7667 help text for "info threads".
7668
854f6088
SM
76692019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7670
7671 * defs.h (generic_load): Move from here...
7672 * symfile.h (generic_load): ... to here. Rename name parameter
7673 to args.
7674 * symfile.c (generic_load): Add comment.
7675
54ee4252
TT
76762019-07-01 Tom Tromey <tromey@adacore.com>
7677
7678 * dwarf2read.c
7679 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7680 declaration of without_params. Fix formatting.
7681
65392b3e
TT
76822019-07-01 Tom Tromey <tromey@adacore.com>
7683
7684 * ada-exp.y (find_primitive_type): Update.
7685 * ada-lang.h (ada_lookup_symbol): Update.
7686 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7687 parameter.
7688 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7689
7d7571f0
SDJ
76902019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7691
7692 PR breakpoints/24541
7693 * gdbarch.c: Regenerate.
7694 * gdbarch.h: Regenerate.
7695 * gdbarch.sh: Add 'stap_adjust_register'.
7696 * i386-tdep.c: Include '<unordered_set>'.
7697 (i386_stap_adjust_register): New function.
7698 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7699 * stap-probe.c (stap_parse_register_operand): Call
7700 'gdbarch_stap_adjust_register'.
7701
5af5392a
SDJ
77022019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7703
7704 PR python/24742
7705 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7706 * python/python.c (do_start_initialization): Use 'xmalloc'
7707 instead of 'PyMem_Malloc'.
7708
10d06d82
TT
77092019-06-28 Tom Tromey <tromey@adacore.com>
7710
7711 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7712 for Ada.
7713
1b7f24cd
TT
77142019-06-27 Tom Tromey <tromey@adacore.com>
7715
7716 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7717 objfile_key.
7718 (arm_find_mapping_symbol, arm_record_special_symbol)
7719 (_initialize_arm_tdep): Update.
7720 (arm_objfile_data_free): Remove.
7721
3d507ff2
TT
77222019-06-27 Tom Tromey <tromey@adacore.com>
7723
7724 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7725 to cp_print_static_field.
7726
762c164d
TT
77272019-06-26 Tom Tromey <tromey@adacore.com>
7728
7729 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7730 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7731 declare.
7732
aa2f9bcf
AH
77332019-06-26 Alan Hayward <alan.hayward@arm.com>
7734
7735 * features/aarch64-core.c (create_feature_aarch64_core):
7736 Regenerate.
7737 * features/aarch64-core.xml: Add cpsr flags.
7738
3426ae57
AH
77392019-06-26 Alan Hayward <alan.hayward@arm.com>
7740
7741 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7742 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7743
4838e44c
SM
77442019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7745
7746 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7747 field.
7748 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7749 use.
7750 (arm_record_special_symbol): Don't insert new symbol in sorted
7751 position, push it at the end.
7752
54cc7474
SM
77532019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7754
7755 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7756 (arm_mapping_symbol_s): Remove.
7757 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7758 (arm_mapping_symbol_vec): New typedef.
7759 (struct arm_per_objfile): Add constructor.
7760 <section_maps>: Change type to
7761 std::unique_ptr<arm_mapping_symbol_vec[]>.
7762 (arm_compare_mapping_symbols): Remove.
7763 (arm_find_mapping_symbol): Adjust to section_maps type change.
7764 (arm_objfile_data_free): Call delete on arm_per_objfile.
7765 (arm_record_special_symbol): Adjust to section_maps type change.
7766 Allocate arm_per_objfile with new.
7767
b65b566c
PW
77682019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7769
7770 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7771 with the command prefix.
7772
c2fc64f5
TT
77732019-06-25 Tom Tromey <tom@tromey.com>
7774
7775 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7776 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7777
fb54fa76
TT
77782019-06-25 Tom Tromey <tom@tromey.com>
7779
7780 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7781 type.
7782 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7783 protected.
7784
f7952c57
TT
77852019-06-25 Tom Tromey <tom@tromey.com>
7786
7787 * tui/tui-winsource.c
7788 (tui_source_window_base::set_is_exec_point_at): Add check against
7789 LOA_ADDRESS.
7790
17568d78
TT
77912019-06-25 Tom Tromey <tom@tromey.com>
7792
7793 * tui/tui-source.c (tui_set_source_content): Don't check before
7794 xfree.
7795 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7796
53e7cdba
TT
77972019-06-25 Tom Tromey <tom@tromey.com>
7798
7799 * tui/tui-winsource.h (tui_update_source_window_as_is)
7800 (tui_alloc_source_buffer, tui_line_is_displayed)
7801 (tui_addr_is_displayed): Change type of win_info.
7802 * tui/tui-winsource.c (tui_update_source_window_as_is)
7803 (tui_clear_source_content, tui_show_source_line)
7804 (tui_show_source_content, tui_source_window_base::refill)
7805 (tui_source_window_base::set_is_exec_point_at)
7806 (tui_source_window_base::set_is_exec_point_at)
7807 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7808 (tui_alloc_source_buffer, tui_line_is_displayed)
7809 (tui_addr_is_displayed): Change type of win_info. Update.
7810 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7811 (tui_source_window_base::do_make_visible_with_new_height):
7812 Update.
7813 * tui/tui-source.c (tui_set_source_content)
7814 (tui_set_source_content_nil)
7815 (tui_source_window::do_scroll_vertical): Update.
7816 * tui/tui-layout.c (show_layout): Update.
7817 * tui/tui-disasm.c (tui_set_disassem_content)
7818 (tui_disasm_window::do_scroll_vertical): Update.
7819 * tui/tui-data.h (tui_win_content): Remove.
7820 (struct tui_gen_win_info) <content, content_size>: Remove.
7821 (struct tui_source_element): Add initializers and destructor.
7822 (union tui_which_element, struct tui_win_element): Remove.
7823 (struct tui_source_window_base) <content>: New field.
7824 (struct tui_data_window): Remove destructor.
7825 (tui_alloc_content, tui_free_win_content)
7826 (tui_free_all_source_wins_content): Don't declare.
7827 * tui/tui-data.c (tui_initialize_static_data): Update.
7828 (init_content_element, tui_alloc_content): Remove.
7829 (~tui_gen_win_info): Update.
7830 (~tui_data_window, tui_free_all_source_wins_content)
7831 (tui_free_win_content, free_content, free_content_elements):
7832 Remove.
7833
7908abbf
TT
78342019-06-25 Tom Tromey <tom@tromey.com>
7835
7836 * tui/tui-winsource.h (tui_clear_source_content)
7837 (tui_erase_source_content, tui_show_source_content): Change type
7838 of win_info.
7839 * tui/tui-winsource.c (tui_clear_source_content)
7840 (tui_erase_source_content, tui_show_source_content): Change type
7841 of win_info.
7842 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7843 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7844 win_info.
7845 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7846 win_info.
7847 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7848
02c28df0
TT
78492019-06-25 Tom Tromey <tom@tromey.com>
7850
7851 * tui/tui-winsource.c (tui_clear_source_content)
7852 (tui_source_window_base::set_is_exec_point_at): Update.
7853 * tui/tui-source.c (tui_set_source_content_nil): Update.
7854 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7855 a bool.
7856 * tui/tui-data.c (init_content_element): Update.
7857
6658b1bf
TT
78582019-06-25 Tom Tromey <tom@tromey.com>
7859
7860 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7861 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7862 * tui/tui-layout.c (init_and_make_win): Update.
7863 * tui/tui.h (enum tui_win_type): Update.
7864 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7865 tui_win_is_auxillary.
7866 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7867 tui_win_is_auxillary.
7868
21e1c91e
TT
78692019-06-25 Tom Tromey <tom@tromey.com>
7870
7871 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7872 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7873 (tui_delete_data_content_windows, tui_display_all_data)
7874 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7875 Update.
7876 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7877 * tui/tui-regs.c (tui_last_regs_line_no)
7878 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7879 (tui_show_registers): Update.
7880 (tui_show_register_group): Return void. Update.
7881 (tui_display_registers_from, tui_display_reg_element_at_line)
7882 (tui_display_registers_from_line, tui_check_register_values):
7883 Update.
7884 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7885 member.
7886 (struct tui_data_window) <regs_content>: Now a std::vector.
7887 <regs_content_count>: Remove.
7888 (tui_add_content_elements, tui_free_data_content): Don't declare.
7889 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7890 (init_content_element): Remove DATA_WIN case. Add assert.
7891 (tui_add_content_elements): Remove.
7892 (tui_data_window): Update.
7893 (tui_free_data_content): Remove.
7894 (free_content_elements): Remove DATA_WIN case.
7895
115ac53b
TT
78962019-06-25 Tom Tromey <tom@tromey.com>
7897
7898 * tui/tui-data.c (tui_data_item_window): Update.
7899 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7900 * tui/tui-windata.c (tui_display_all_data)
7901 (tui_display_data_from_line): Update.
7902 (tui_check_data_values): Remove.
7903 * tui/tui-regs.c (tui_show_register_group)
7904 (tui_display_reg_element_at_line): Update.
7905 * tui/tui-hooks.c (tui_register_changed)
7906 (tui_refresh_frame_and_register_information): Call
7907 tui_check_register_values.
7908 * tui/tui-data.h (struct tui_data_window) <data_content,
7909 data_content_count, data_type>: Remove.
7910 (enum tui_data_type): Remove.
7911
7912 * tui/tui-data.c (tui_data_window::clear_detail)
7913 (~tui_data_window): Update.
7914
eaf9738b
TT
79152019-06-25 Tom Tromey <tom@tromey.com>
7916
7917 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7918 declare.
7919 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7920 Rename from tui_first_data_item_displayed. Update.
7921 (tui_data_window::refresh_all)
7922 (tui_data_window::do_scroll_vertical): Update.
7923 * tui/tui-data.h (struct tui_data_window)
7924 <first_data_item_displayed>: Declare new method.
7925
31ca4723
TT
79262019-06-25 Tom Tromey <tom@tromey.com>
7927
7928 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7929 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7930 contents...
7931 (tui_initialize_static_data): ...here.
7932
41bcff7f
TT
79332019-06-25 Tom Tromey <tom@tromey.com>
7934
7935 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7936 (tui_display_registers_from, tui_check_register_values): Update.
7937 (tui_display_register): Remove win_info parameter; update.
7938 (tui_get_register): Change type of parameters.
7939 * tui/tui-data.h (struct tui_data_element): Remove.
7940 (union tui_which_element) <data>: Remove.
7941 <data_window>: Change type.
7942 (struct tui_data_item_window): New.
7943 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7944 case. Add assert.
7945 (~tui_data_item_window): New destructor.
7946 (free_content_elements): Remove DATA_ITEM_WIN case.
7947
d2802c33
TT
79482019-06-25 Tom Tromey <tom@tromey.com>
7949
7950 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7951 Remove.
7952
dd835f8b
TT
79532019-06-25 Tom Tromey <tom@tromey.com>
7954
7955 * tui/tui-data.h (struct tui_command_element): Remove.
7956 (union tui_which_element) <command>: Remove.
7957 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7958 assert.
7959 (free_content_elements): Remove CMD_WIN case.
7960
bd7db367
TT
79612019-06-25 Tom Tromey <tom@tromey.com>
7962
7963 * tui/tui-layout.c (tui_set_layout): Update.
7964 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7965 * tui/tui-data.c (layout_def): Update.
7966
3add462f
TT
79672019-06-25 Tom Tromey <tom@tromey.com>
7968
7969 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7970 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7971 (tui_source_window_base::set_new_height): Update.
7972 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7973 Update.
7974 (tui_set_locator_fullname, tui_set_locator_info)
7975 (tui_show_frame_info): Update.
7976 * tui/tui-source.c (tui_set_source_content)
7977 (tui_source_is_displayed): Update.
7978 * tui/tui-layout.c (show_source_disasm_command, show_data)
7979 (show_source_or_disasm_and_command): Update.
7980 * tui/tui-disasm.c (tui_set_disassem_content)
7981 (tui_get_begin_asm_address): Update.
7982 * tui/tui-data.h (struct tui_locator_element): Remove.
7983 (union tui_which_element) <locator>: Remove.
7984 (struct tui_locator_window): New.
7985 (tui_locator_win_info_ptr): Change return type.
7986 * tui/tui-data.c (_locator): Change type.
7987 (tui_locator_win_info_ptr): Change return type.
7988 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7989 (tui_alloc_content): Add assert.
7990
489e9d8b
TT
79912019-06-25 Tom Tromey <tom@tromey.com>
7992
7993 * tui/tui-winsource.c
7994 (tui_exec_info_window::maybe_allocate_content): New method.
7995 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7996 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7997 (make_source_or_disasm_window): Add cast.
7998 * tui/tui-data.h (union tui_which_element) <simple_string>:
7999 Remove.
8000 (struct tui_source_info): New.
8001 (struct tui_source_window_base) <execution_info>: Change type.
8002 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8003 case, and add assert.
8004 (tui_alloc_content): Add assert.
8005
c3fabb7d
TT
80062019-06-25 Tom Tromey <tom@tromey.com>
8007
8008 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8009 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8010 * tui/tui-data.c (tui_alloc_win_info): Remove.
8011
bbc228ee
TT
80122019-06-25 Tom Tromey <tom@tromey.com>
8013
8014 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8015 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8016 can_highlight.
8017
5fcee43a
TT
80182019-06-25 Tom Tromey <tom@tromey.com>
8019
8020 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8021 make_visible_with_new_height method.
8022 (tui_win_info::make_visible_with_new_height): New method.
8023 (tui_source_window_base::do_make_visible_with_new_height)
8024 (tui_data_window::do_make_visible_with_new_height)
8025 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8026 (make_visible_with_new_height): Remove.
8027 (tui_resize_all, tui_adjust_win_heights): Use
8028 make_visible_with_new_height method.
8029 * tui/tui-data.h (struct tui_win_info)
8030 <do_make_visible_with_new_height, make_visible_with_new_height>:
8031 New methods.
8032 (struct tui_source_window_base, struct tui_data_window)
8033 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8034 methods.
8035
d83f1fe6
TT
80362019-06-25 Tom Tromey <tom@tromey.com>
8037
8038 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8039 method.
8040 (update_tab_width): Call update_tab_width method.
8041 * tui/tui-data.h (struct tui_win_info)
8042 (struct tui_source_window_base) <update_tab_width>: New methods.
8043
17374de4
TT
80442019-06-25 Tom Tromey <tom@tromey.com>
8045
8046 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8047 parameter.
8048 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8049 parameter.
8050 (tui_gen_win_info::make_visible): Update.
8051 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8052 parameter.
8053 * tui/tui-data.h (enum tui_box): New enum.
8054 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8055
f936bca2
TT
80562019-06-25 Tom Tromey <tom@tromey.com>
8057
8058 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8059 init_and_make_win for EXEC_INFO_WIN.
8060 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8061 longer inline.
8062 (struct tui_win_info) <~tui_win_info>: Inline.
8063 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8064 Don't declare.
8065 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8066 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8067 Remove.
8068 (tui_initialize_static_data): Update.
8069 (~tui_gen_win_info): Handle more cleanup here.
8070 (~tui_source_window_base): Delete "execution_info".
8071 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8072
d6ba6a11
TT
80732019-06-25 Tom Tromey <tom@tromey.com>
8074
8075 * tui/tui-layout.c (make_command_window): Don't set
8076 can_highlight.
8077 (show_source_disasm_command): Call the reset method.
8078 (show_data): Don't set can_highlight. Call the reset method.
8079 (tui_gen_win_info::reset): Rename from init_gen_win_info
8080 (init_and_make_win): Simplify. Return tui_gen_win_info.
8081 (show_source_or_disasm_and_command): Call the reset method.
8082 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8083 (struct tui_cmd_window): Set can_highlight.
8084
48a3bd16
TT
80852019-06-25 Tom Tromey <tom@tromey.com>
8086
8087 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8088 from make_visible.
8089 (tui_make_visible, tui_make_invisible): Rewrite.
8090 (tui_win_info::make_visible): Remove.
8091 (tui_source_window_base::make_visible): Update.
8092 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8093 method. Moved from...
8094 (struct tui_win_info) <make_visible>: ...here.
8095
c3bd716f
TT
80962019-06-25 Tom Tromey <tom@tromey.com>
8097
8098 * tui/tui-winsource.c
8099 (tui_source_window_base::do_scroll_horizontal): Remove direction
8100 parameter.
8101 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8102 direction parameter.
8103 * tui/tui-win.c (tui_win_info::forward_scroll)
8104 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8105 (tui_win_info::right_scroll): Update.
8106 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8107 direction parameter.
8108 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8109 direction parameter.
8110 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8111 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8112 Remove direction parameter.
8113 (struct tui_source_window_base, struct tui_source_window)
8114 (struct tui_disasm_window, struct tui_data_window)
8115 (struct tui_cmd_window): Update.
8116
21c32dca
TT
81172019-06-25 Tom Tromey <tom@tromey.com>
8118
8119 * tui/tui-winsource.h (tui_set_exec_info_content)
8120 (tui_show_exec_info_content, tui_erase_exec_info_content)
8121 (tui_clear_exec_info_content, tui_update_exec_info): Change
8122 argument to tui_source_window_base.
8123 * tui/tui-winsource.c (tui_set_exec_info_content)
8124 (tui_show_exec_info_content, tui_erase_exec_info_content)
8125 (tui_clear_exec_info_content, tui_update_exec_info): Change
8126 argument to tui_source_window_base.
8127
73fbdc65
TT
81282019-06-25 Tom Tromey <tom@tromey.com>
8129
8130 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8131 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8132
33325343
TT
81332019-06-25 Tom Tromey <tom@tromey.com>
8134
8135 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8136 check.
8137
29d2c474
TT
81382019-06-25 Tom Tromey <tom@tromey.com>
8139
8140 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8141 type to void.
8142 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8143 type to void.
8144 * tui/tui-source.c (tui_set_source_content): Update.
8145 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8146
152f3f4b
TT
81472019-06-25 Tom Tromey <tom@tromey.com>
8148
8149 * tui/tui-win.c (window_name_completer, tui_set_focus)
8150 (tui_all_windows_info): Use name method.
8151 * tui/tui-data.h (struct tui_gen_win_info)
8152 (struct tui_source_window, struct tui_disasm_window)
8153 (struct tui_data_window, struct tui_cmd_window) <name>: New
8154 method.
8155 (tui_win_name): Don't declare.
8156 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8157 (tui_win_name): Remove.
8158
be4da588
TT
81592019-06-25 Tom Tromey <tom@tromey.com>
8160
8161 * tui/tui-winsource.h (tui_update_source_window)
8162 (tui_update_source_window_as_is): Change parameter type.
8163 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8164 to be a tui_source_window_base.
8165 (tui_update_source_window_as_is): Likewise.
8166 * tui/tui-win.c (make_visible_with_new_height): Update.
8167
5b81daba
TT
81682019-06-25 Tom Tromey <tom@tromey.com>
8169
8170 * tui/tui-winsource.c (tui_erase_source_content)
8171 (tui_show_source_content, tui_show_exec_info_content)
8172 (tui_erase_exec_info_content): Use refresh_window method.
8173 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8174 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8175 from tui_refresh_win.
8176 (tui_data_window::refresh_window): New method.
8177 (tui_win_info::refresh, tui_source_window_base::refresh)
8178 (tui_refresh_all): Use refresh_window method.
8179 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8180 method.
8181 * tui/tui-regs.c (tui_display_register): Call refresh_window
8182 method.
8183 * tui/tui-layout.c (show_source_disasm_command)
8184 (show_source_or_disasm_and_command): Call refresh_window method.
8185 * tui/tui-data.h (struct tui_gen_win_info)
8186 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8187 New method.
8188
cb2ce893
TT
81892019-06-25 Tom Tromey <tom@tromey.com>
8190
8191 * tui/tui.c (tui_rl_other_window, tui_enable)
8192 (tui_is_window_visible, tui_get_command_dimension): Update.
8193 * tui/tui-winsource.c (tui_update_source_window_as_is)
8194 (tui_clear_source_content, tui_erase_source_content)
8195 (tui_show_source_line, tui_source_window_base::refill)
8196 (tui_source_window_base::do_scroll_horizontal)
8197 (tui_source_window_base::set_is_exec_point_at)
8198 (tui_update_breakpoint_info, tui_set_exec_info_content)
8199 (tui_alloc_source_buffer, tui_line_is_displayed)
8200 (tui_addr_is_displayed): Update.
8201 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8202 (tui_check_and_display_highlight_if_needed)
8203 (tui_win_info::make_visible, tui_win_info::refresh)
8204 (tui_refresh_all): Update.
8205 * tui/tui-windata.c (tui_first_data_item_displayed)
8206 (tui_delete_data_content_windows, tui_erase_data_content)
8207 (tui_display_all_data, tui_data_window::refresh_all)
8208 (tui_check_data_values): Update.
8209 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8210 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8211 (tui_win_info::backward_scroll, tui_refresh_all_win)
8212 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8213 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8214 (tui_source_window_base::set_new_height)
8215 (tui_data_window::set_new_height)
8216 (make_invisible_and_set_new_height)
8217 (make_visible_with_new_height, new_height_ok)
8218 (parse_scrolling_args): Update.
8219 * tui/tui-stack.c (tui_show_frame_info): Update.
8220 * tui/tui-source.c (tui_set_source_content)
8221 (tui_set_source_content_nil, tui_source_is_displayed)
8222 (tui_source_window::do_scroll_vertical): Update.
8223 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8224 (tui_display_registers_from, tui_display_reg_element_at_line)
8225 (tui_check_register_values, tui_reg_command): Update.
8226 * tui/tui-layout.c (tui_default_win_height)
8227 (show_source_disasm_command, show_data, init_and_make_win)
8228 (show_source_or_disasm_and_command): Update.
8229 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8230 (tui_redisplay_readline, tui_mld_flush)
8231 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8232 (tui_getc): Update.
8233 * tui/tui-disasm.c (tui_set_disassem_content)
8234 (tui_disasm_window::do_scroll_vertical): Update.
8235 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8236 Now virtual.
8237 (struct tui_win_info): Derive from tui_gen_win_info.
8238 <~tui_win_info>: Mark as override.
8239 <generic>: Remove member.
8240 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8241 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8242 (~tui_data_window, ~tui_win_info)
8243 (tui_free_all_source_wins_content): Update.
8244 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8245
ab313b35
TT
82462019-06-25 Tom Tromey <tom@tromey.com>
8247
8248 * tui/tui-layout.c (init_and_make_win): Use new.
8249 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8250 destructor, initializers.
8251 (tui_alloc_generic_win_info): Don't declare.
8252 * tui/tui-data.c (_locator): Add argument to constructor.
8253 (source_win, disasm_win): New globals.
8254 (exec_info): Remove.
8255 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8256 Update.
8257 (tui_alloc_generic_win_info): Remove.
8258 (init_content_element): Use new.
8259 (tui_win_info::tui_win_info): Update.
8260 (free_content_elements) <case DATA_WIN>: Use delete.
8261
dc2c33e4
TT
82622019-06-25 Tom Tromey <tom@tromey.com>
8263
8264 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8265 * tui/tui-windata.c (tui_first_data_item_displayed)
8266 (tui_delete_data_content_windows): Update.
8267 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8268 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8269 (tui_display_registers_from, tui_check_register_values): Update.
8270 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8271 pointer.
8272 * tui/tui-data.c (init_content_element): Update. Allocate the new
8273 window.
8274 (tui_free_data_content): Update.
8275 (free_content_elements) <case DATA_WIN>: Free the window.
8276
214a5cbe
TT
82772019-06-25 Tom Tromey <tom@tromey.com>
8278
8279 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8280 Update.
8281 * tui/tui-layout.c (make_command_window)
8282 (show_source_disasm_command, show_data, init_and_make_win)
8283 (show_source_or_disasm_and_command): Update.
8284 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8285 method.
8286 <can_highight, is_highlighted>: Now bool.
8287 (tui_set_win_highlight): Don't declare.
8288 * tui/tui-data.c (tui_set_win_highlight): Remove.
8289
8e2daf15
TT
82902019-06-25 Tom Tromey <tom@tromey.com>
8291
8292 * tui/tui-wingeneral.c (make_visible): Remove check of window
8293 type.
8294
8903bd8a
TT
82952019-06-25 Tom Tromey <tom@tromey.com>
8296
8297 * tui/tui-win.c (tui_win_info::max_height)
8298 (tui_cmd_window::max_height): New methods.
8299 (new_height_ok): Call max_height.
8300 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8301 <max_height>: New method.
8302
3f02ce1e
TT
83032019-06-25 Tom Tromey <tom@tromey.com>
8304
8305 * tui/tui-win.c (tui_source_window_base::set_new_height)
8306 (tui_data_window::set_new_height): New methods.
8307 (make_invisible_and_set_new_height): Call set_new_height method.
8308 * tui/tui-data.h (struct tui_win_info)
8309 (struct tui_source_window_base, struct tui_data_window)
8310 <set_new_height>: New method.
8311
1825f487
TT
83122019-06-25 Tom Tromey <tom@tromey.com>
8313
8314 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8315 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8316 tui_refresh_data_win.
8317 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8318 method.
8319 (tui_refresh_all_win): Call the refresh_all method.
8320 (tui_set_focus): Likewise.
8321 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8322 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8323 Likewise.
8324
ad54d15b
TT
83252019-06-25 Tom Tromey <tom@tromey.com>
8326
8327 * tui/tui-winsource.h (tui_refill_source_window)
8328 (tui_set_is_exec_point_at): Don't declare.
8329 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8330 (tui_source_window_base::refill): Rename from
8331 tui_refill_source_window.
8332 (tui_source_window_base::do_scroll_horizontal): Update.
8333 (tui_source_window_base::set_is_exec_point_at): Rename from
8334 tui_set_is_exec_point_at.
8335 (tui_update_all_breakpoint_info): Update.
8336 * tui/tui-stack.c (tui_show_frame_info): Update.
8337 * tui/tui-layout.c (show_data): Add cast.
8338 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8339 * tui/tui-data.h (struct tui_source_window_base) <refill,
8340 set_is_exec_point_at>: New methods.
8341 (tui_source_windows, tui_add_to_source_windows): Update types.
8342 (tui_add_to_source_windows): Remove redundant declaration.
8343 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8344 (tui_source_windows): Change return type.
8345 (tui_clear_source_windows_detail): Update.
8346 (tui_add_to_source_windows): Change type of parameter.
8347 (tui_free_all_source_wins_content): Update.
8348
2042b506
TT
83492019-06-25 Tom Tromey <tom@tromey.com>
8350
8351 * tui/tui-wingeneral.c (tui_win_info::refresh)
8352 (tui_source_window_base::refresh): New methods.
8353 (tui_refresh_all): Call the refresh method.
8354 * tui/tui-data.h (struct tui_win_info)
8355 (struct tui_source_window_base) <refresh>: New method.
8356
56122977
TT
83572019-06-25 Tom Tromey <tom@tromey.com>
8358
8359 * tui/tui.h (tui_is_window_visible): Return bool.
8360 * tui/tui.c (tui_is_window_visible): Return bool.
8361 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8362 (tui_make_visible, tui_make_invisible)
8363 (tui_win_info::make_visible)
8364 (tui_source_window_base::make_visible, make_all_visible)
8365 (tui_make_all_visible, tui_make_all_invisible): Update.
8366 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8367 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8368 bool.
8369 (struct tui_win_info, struct tui_source_window_base)
8370 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8371 * tui/tui-data.c (tui_init_generic_part): Update.
8372
cda37efb
TT
83732019-06-25 Tom Tromey <tom@tromey.com>
8374
8375 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8376 (tui_source_window_base::make_visible): New methods.
8377 (make_all_visible): Make method call.
8378 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8379 (struct tui_source_window_base, struct tui_cmd_window): Override
8380 make_visible.
8381 (tui_win_is_source_type): Don't declare.
8382 * tui/tui-data.c (tui_win_is_source_type): Remove.
8383
6a0ee02c
TT
83842019-06-25 Tom Tromey <tom@tromey.com>
8385
8386 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8387 NULL check.
8388
63901aec
TT
83892019-06-25 Tom Tromey <tom@tromey.com>
8390
8391 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8392 Inline constructor. Add initializers for members.
8393 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8394 constructors; now inline in class.
8395
ceb13a13
TT
83962019-06-25 Tom Tromey <tom@tromey.com>
8397
8398 * tui/tui-regs.c (tui_show_registers): Update.
8399 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8400 bool.
8401 * tui/tui-data.c (tui_data_window::clear_detail)
8402 (tui_data_window): Update.
8403
238eb706
TT
84042019-06-25 Tom Tromey <tom@tromey.com>
8405
8406 * tui/tui-windata.c (tui_display_all_data)
8407 (tui_display_data_from_line, tui_display_data_from)
8408 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8409 Update.
8410 * tui/tui-regs.c (tui_last_regs_line_no)
8411 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8412 (tui_show_registers, tui_show_register_group)
8413 (tui_display_registers_from, tui_display_reg_element_at_line)
8414 (tui_display_registers_from_line, tui_check_register_values)
8415 (tui_reg_next, tui_reg_prev): Update.
8416 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8417 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8418 tui_data_window.
8419 (struct tui_win_info) <detail>: Remove. Add new fields from
8420 tui_data_info.
8421 (TUI_DATA_WIN): Add cast.
8422 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8423 (~tui_data_window): Simplify.
8424
81491aa0
TT
84252019-06-25 Tom Tromey <tom@tromey.com>
8426
8427 * tui/tui-layout.c (show_source_disasm_command)
8428 (show_source_or_disasm_and_command): Update.
8429 * tui/tui-io.c (update_cmdwin_start_line)
8430 (tui_redisplay_readline): Update.
8431 * tui/tui-data.h (struct tui_command_info): Remove.
8432 (struct tui_win_info) <detail>: Remove command_info member.
8433 (struct tui_data_window) <start_line>: New member, from
8434 tui_command_info.
8435 (TUI_CMD_WIN): Add casts.
8436
e6e41501
TT
84372019-06-25 Tom Tromey <tom@tromey.com>
8438
8439 * tui/tui-winsource.c (tui_update_source_window)
8440 (tui_refill_source_window)
8441 (tui_source_window_base::do_scroll_horizontal)
8442 (tui_update_breakpoint_info, tui_set_exec_info_content)
8443 (tui_show_exec_info_content, tui_erase_exec_info_content)
8444 (tui_clear_exec_info_content): Update.
8445 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8446 Update.
8447 * tui/tui-win.c (make_invisible_and_set_new_height)
8448 (make_visible_with_new_height): Update.
8449 * tui/tui-source.c (tui_set_source_content)
8450 (tui_show_symtab_source): Update.
8451 * tui/tui-layout.c (extract_display_start_addr)
8452 (show_source_disasm_command, show_data)
8453 (make_source_or_disasm_window)
8454 (show_source_or_disasm_and_command): Update.
8455 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8456 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8457 "gdbarch".
8458 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8459 to tui_source_window_base.
8460 (struct tui_win_info) <detail>: Remove source_info member.
8461 (struct tui_source_window_base) <has_locator>: Inline.
8462 Move contents from tui_source_info; rename has_locator member to
8463 m_has_locator.
8464 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8465 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8466 header file.
8467 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8468 Simplify.
8469 (tui_free_all_source_wins_content): Cast to
8470 tui_source_window_base.
8471
44f0e208
TT
84722019-06-25 Tom Tromey <tom@tromey.com>
8473
8474 * tui/tui-win.c (make_invisible_and_set_new_height)
8475 (make_visible_with_new_height): Call has_locator method.
8476 * tui/tui-layout.c (show_source_disasm_command, show_data)
8477 (show_source_or_disasm_and_command): Update for bool change.
8478 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8479 (tui_win_info) <has_locator>: New method.
8480 (struct tui_source_window_base) <has_locator>: New method.
8481 (tui_win_has_locator): Don't declare.
8482 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8483 from tui_win_has_locator.
8484 (tui_source_window_base): Use false, not FALSE.
8485
7778b912
TT
84862019-06-25 Tom Tromey <tom@tromey.com>
8487
8488 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8489 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8490 clear_detail method directly.
8491 (tui_clear_win_detail): Remove.
8492
f83d391c
TT
84932019-06-25 Tom Tromey <tom@tromey.com>
8494
8495 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8496 "this", not TUI_DISASM_WIN.
8497
13446e05
TT
84982019-06-25 Tom Tromey <tom@tromey.com>
8499
8500 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8501 declare.
8502 * tui/tui-winsource.c
8503 (tui_source_window_base::do_scroll_horizontal): Rename from
8504 tui_horizontal_source_scroll.
8505 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8506 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8507 from tui_vertical_data_scroll.
8508 * tui/tui-win.h (tui_scroll): Don't declare.
8509 * tui/tui-win.c (tui_win_info::forward_scroll)
8510 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8511 (tui_win_info::right_scroll): Rename and update.
8512 (tui_scroll_forward_command, tui_scroll_backward_command)
8513 (tui_scroll_left_command, tui_scroll_right_command): Update.
8514 (tui_scroll): Remove.
8515 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8516 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8517 from tui_vertical_source_scroll.
8518 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8519 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8520 from tui_vertical_disassem_scroll.
8521 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8522 do_scroll_horizontal>: New methods.
8523 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8524 Likewise.
8525 (struct tui_source_window_base): Add do_scroll_horizontal.
8526 (struct tui_source_window, struct tui_disasm_window): Add
8527 do_scroll_vertical.
8528 (struct tui_data_window, struct tui_cmd_window): Add
8529 do_scroll_horizontal and do_scroll_vertical.
8530 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8531
5cf82909
TT
85322019-06-25 Tom Tromey <tom@tromey.com>
8533
8534 * tui/tui-data.h (struct tui_source_window_base): New struct.
8535 (struct tui_source_window): Derive from tui_source_window_base.
8536 (struct tui_disasm_window): New struct.
8537 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8538 from tui_source_window::clear_detail.
8539 (tui_source_window_base): Rename from tui_source_window.
8540 (~tui_source_window_base): Rename from ~tui_source_window.
8541 (tui_alloc_win_info): Create a tui_disasm_window.
8542
ee1d42d6
TT
85432019-06-25 Tom Tromey <tom@tromey.com>
8544
8545 * tui/tui-data.h (struct tui_source_window)
8546 (struct tui_data_window): Declare destructors.
8547 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8548 destructors.
8549 (tui_win_info): Simplify.
8550
b4eb2452
TT
85512019-06-25 Tom Tromey <tom@tromey.com>
8552
8553 * tui/tui-winsource.c (tui_display_main)
8554 (tui_update_source_windows_with_addr)
8555 (tui_update_all_breakpoint_info): Update.
8556 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8557 (new_height_ok, parse_scrolling_args): Update.
8558 * tui/tui-stack.c (tui_show_frame_info): Update.
8559 * tui/tui-data.h (struct tui_list): Remove.
8560 (tui_source_windows): Return a reference to a std::vector.
8561 * tui/tui-data.c (source_windows): Now a std::vector.
8562 (tui_source_windows): Change return type.
8563 (tui_clear_source_windows): Rewrite.
8564 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8565 (tui_free_all_source_wins_content): Rewrite.
8566
8761a91b
TT
85672019-06-25 Tom Tromey <tom@tromey.com>
8568
8569 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8570 (struct tui_data_window, struct tui_cmd_window): Declare
8571 clear_detail method.
8572 * tui/tui-data.c (tui_source_window::clear_detail)
8573 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8574 methods.
8575 (tui_clear_win_detail): Simplify.
8576
0ed69eda
TT
85772019-06-25 Tom Tromey <tom@tromey.com>
8578
8579 * tui/tui-layout.c (make_source_window, make_disasm_window)
8580 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8581 Return the new window.
8582 (show_source_disasm_command, show_data)
8583 (show_source_or_disasm_and_command): Update.
8584
82432e10
TT
85852019-06-25 Tom Tromey <tom@tromey.com>
8586
8587 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8588 parameter. Return the new window.
8589 (show_source_disasm_command): Update and remove NULL check.
8590 (show_source_or_disasm_and_command): Update.
8591
ec328aa5
TT
85922019-06-25 Tom Tromey <tom@tromey.com>
8593
8594 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8595
33b906ab
TT
85962019-06-25 Tom Tromey <tom@tromey.com>
8597
8598 * tui/tui-data.h (struct tui_win_info): Make constructor
8599 protected. Make destructor virtual. Add initializers.
8600 (tui_source_window, tui_data_window, tui_cmd_window): New
8601 classes.
8602 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8603 constructor. Add "type" parameter.
8604 (tui_source_window, tui_data_window, tui_cmd_window): New
8605 constructors.
8606 (tui_alloc_win_info): Instantiate the appropriate subclass.
8607
e7e11af4
TT
86082019-06-25 Tom Tromey <tom@tromey.com>
8609
8610 * tui/tui-win.c (tui_resize_all): Use delete.
8611 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8612 destructor.
8613 (tui_free_window): Don't declare.
8614 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8615 Update.
8616
6792b55e
TT
86172019-06-25 Tom Tromey <tom@tromey.com>
8618
8619 * tui/tui-data.h (struct tui_win_info): Add constructor.
8620 * tui/tui-data.c (tui_alloc_win_info): Use new.
8621 (tui_free_window): Use delete.
8622
f95675e1
TT
86232019-06-22 Tom Tromey <tom@tromey.com>
8624
8625 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8626 declare.
8627 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8628
5bff081c
TT
86292019-06-22 Tom Tromey <tom@tromey.com>
8630
8631 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8632 declare.
8633 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8634
47e3f474
TV
86352019-06-22 Tom de Vries <tdevries@suse.de>
8636
8637 * dwarf2read.c (create_addrmap_from_aranges)
8638 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8639 instead of '%zu'.
8640
fd5866f6
SM
86412019-06-21 Simon Marchi <simon.marchi@efficios.com>
8642
8643 * dwarf2read.h (dwarf2_section_info_def): Remove.
8644 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8645 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8646 std::vector<dwarf2_section_info>.
8647 (struct dwo_file) <~dwo_file>: Remove.
8648 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8649 types field.
8650 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8651 (dwarf2_read_debug_names): Likewise.
8652 (create_debug_types_hash_table): Change parameter type to
8653 array_view, adjust code accordingly.
8654 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8655 (partial_die_info::fixup): Likewise.
8656 (determine_prefix): Likewise.
8657 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8658
fb1eb2f9
SM
86592019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8660
8661 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8662 gdb_bfd_ref_ptr.
8663 <~dwo_file>: Remove call to gdb_bfd_unref.
8664 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8665 gdb_bfd_ref_ptr::get.
8666
51ac9db5
SM
86672019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8668
8669 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8670 type to htab_up.
8671 * dwarf2read.c (struct dwo_file): Initialize fields.
8672 <~dwo_file>: New.
8673 (free_dwo_file): Remove, move content to ~dwo_file.
8674 (struct dwo_file_deleter): Remove.
8675 (dwo_file_up>: Remove custom deleter.
8676 (free_dwo_files): Remove.
8677 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8678 dwo_files.
8679 (process_skeletonless_type_units): Call unique_ptr::get.
8680 (allocate_dwo_file_hash_table): Add deleter to created hash
8681 table. Change return type to htab_up.
8682 (lookup_dwo_file_slot): Don't memset dwo_file, call
8683 unique_ptr::get.
8684 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8685 (create_dwo_unit_in_dwp_v2): Likewise.
8686 (open_and_init_dwo_file): Likewise.
8687 (free_dwo_file_from_slot): Remove.
8688
dc4ccb6f
SM
86892019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8690
8691 * dwarf2read.h (struct dwarf2_section_info) <readin,
8692 is_virtual>: Change type to bool.
8693 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8694 true instead of 1.
8695
e6a1c5cb
TT
86962019-06-19 Tom Tromey <tom@tromey.com>
8697
8698 * tui/tui-data.h (tui_init_content_element): Don't declare.
8699
6f6ffbeb
TT
87002019-06-19 Tom Tromey <tom@tromey.com>
8701
8702 * tui/tui-data.h (tui_init_win_info): Don't declare.
8703
f23f598e
TV
87042019-06-19 Tom de Vries <tdevries@suse.de>
8705
8706 * dwarf2read.h (abstract_to_concrete): Change type to
8707 std::unordered_map<sect_offset, std::vector<sect_offset>,
8708 gdb::hash_enum<sect_offset>>.
8709
680e1bee
TT
87102019-06-19 Tom Tromey <tromey@adacore.com>
8711
8712 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8713 EVAL_AVOID_SIDE_EFFECTS specially.
8714
dcf37923
TT
87152019-06-19 Tom Tromey <tromey@adacore.com>
8716
8717 * source-cache.c (highlighter): New global.
8718 (source_cache::get_source_lines): Create a highlighter on demand.
8719
494986d5
AB
87202019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8721
8722 * defs.h (deprecated_interactive_hook): Delete declaration.
8723 * interps.c (clear_interpreter_hooks): Remove use of
8724 deprecated_interactive_hook.
8725 * top.c (deprecated_interactive_hook): Delete definition.
8726 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8727
3360b6e7
TV
87282019-06-18 Tom de Vries <tdevries@suse.de>
8729
8730 PR gdb/24515
8731 * dwarf2read.h (abstract_to_concrete): Change type from
8732 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8733 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8734 * dwarf2read.c (read_variable): Update.
8735 (dwarf2_fetch_die_loc_sect_off): Update.
8736
310b3441
TV
87372019-06-17 Tom de Vries <tdevries@suse.de>
8738
8739 PR gdb/24617
8740 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8741 accessing parent[parent_len - 1].
8742
ba9777be
PP
87432019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8744
8745 PR gdb/24364
8746 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8747 call dtrace_process_dof with NULL dof.
8748
2b9f6e89
TV
87492019-06-16 Tom de Vries <tdevries@suse.de>
8750
8751 PR gdb/24445
8752 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8753
431b3ead
TT
87542019-06-16 Tom Tromey <tom@tromey.com>
8755
8756 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8757 (make_all_visible): Use address of member.
8758
d04b44a1
TT
87592019-06-16 Tom Tromey <tom@tromey.com>
8760
8761 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8762 (tui_free_window, free_content, free_content_elements): Remove
8763 unnecessary cast.
8764 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8765 cast.
8766 * tui/tui-regs.c (tui_show_register_group)
8767 (tui_display_registers_from, tui_display_reg_element_at_line):
8768 Remove unnecessary cast.
8769
bf5142e7
AB
87702019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8771
8772 * linux-nat.c (normal_mask): Delete.
8773 (_initialize_linux_nat): Don't initialise normal_mask.
8774
c4973306
SM
87752019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8776
8777 PR gdb/24445
8778 * dwarf-index-write.h (write_psymtabs_to_index): Add
8779 dwz_basename parameter.
8780 * dwarf-index-write.c (write_gdbindex): Move file writing to
8781 write_gdbindex_1. Change return type void.
8782 (assert_file_size): Move up, remove filename parameter.
8783 (write_gdbindex_1): New function.
8784 (write_debug_names): Change return type to void, call
8785 assert_file_size.
8786 (struct index_wip_file): New struct.
8787 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8788 file logic to index_wip_file. Write index for dwz file if
8789 needed.
8790 (save_gdb_index_command): Pass basename of dwz file, if present.
8791 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8792 build-id of dwz file, if present.
8793 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8794 (dwarf2_get_dwz_file): Likewise.
8795 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8796 (dwarf2_get_dwz_file): Likewise.
8797
395f9c91
TT
87982019-06-16 Tom Tromey <tom@tromey.com>
8799
8800 * coffread.c (process_coff_symbol): Use xstrdup.
8801 * value.c (create_internalvar): Use xstrdup.
8802
cafb3438
TT
88032019-06-16 Tom Tromey <tom@tromey.com>
8804
8805 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8806 * breakpoint.c (stopin_command, stopat_command)
8807 (until_break_command, decode_location_default): Remove unnecessary
8808 cast.
8809 * utils.c (subset_compare): Remove unnecessary cast.
8810 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8811 cast.
8812 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8813 cast.
8814 * infcmd.c (path_command): Remove unnecessary cast.
8815 * coffread.c (decode_type): Remove unnecessary cast.
8816 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8817 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8818 * tui/tui-stack.c (tui_show_locator_content)
8819 (tui_show_frame_info): Remove unnecessary cast.
8820 * tui/tui-win.c (tui_scroll_forward_command)
8821 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8822 (parse_scrolling_args): Remove unnecessary cast.
8823 * tui/tui-data.c (init_win_info, tui_del_window)
8824 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8825 (free_content_elements): Remove unnecessary cast.
8826 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8827 unnecessary cast.
8828 * tui/tui-source.c (tui_set_source_content)
8829 (tui_vertical_source_scroll): Remove unnecessary cast.
8830 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8831 cast.
8832 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8833 * tui/tui-regs.c (tui_display_registers_from)
8834 (tui_display_register): Remove unnecessary cast.
8835 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8836 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8837 (make_visible): Remove unnecessary cast.
8838 * tui/tui-winsource.c (tui_erase_source_content)
8839 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8840 unnecessary cast.
8841 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8842 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8843 * stabsread.c (read_type, read_array_type, read_range_type):
8844 Remove unnecessary cast.
8845 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8846 (parse_symbol, parse_type, upgrade_type, parse_external)
8847 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8848 unnecessary cast.
8849 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8850
730ead81
TT
88512019-06-16 Tom Tromey <tom@tromey.com>
8852
8853 * tui/tui-data.c (tui_alloc_generic_win_info)
8854 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8855 checks.
8856
584a927c
AB
88572019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8858 Andrew Burgess <andrew.burgess@embecosm.com>
8859
8860 * f-typeprint.c (f_print_type): Don't return early for not
8861 associated or not allocated types.
8862 (f_type_print_varspec_suffix): Add print_rank parameter and print
8863 ranks of array types in case they dangling.
8864 (f_type_print_base): Add print_rank parameter.
8865
30056ea0
AB
88662019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8867
8868 * NEWS: Mention new MI commands.
8869 * break-catch-throw.c (enum exception_event_kind): Move to
8870 breakpoint.h.
8871 (print_mention_exception_catchpoint): Output text as a single
8872 message.
8873 (catch_exception_command_1): Rename to...
8874 (catch_exception_event): ...this, make non-static, update header
8875 command, and change some parameter types.
8876 (catch_catch_command): Update for changes to
8877 catch_exception_command_1.
8878 (catch_throw_command): Likewise.
8879 (catch_rethrow_command): Likewise.
8880 * breakpoint.c (enum exception_event_kind): Delete.
8881 * breakpoint.h (enum exception_event_kind): Moved here from
8882 break-catch-throw.c.
8883 (catch_exception_event): Declare.
8884 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8885 (mi_cmd_catch_throw): New function.
8886 (mi_cmd_catch_rethrow): New function.
8887 (mi_cmd_catch_catch): New function.
8888 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8889 'catch-catch' entries.
8890 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8891 (mi_cmd_catch_rethrow): Declare.
8892 (mi_cmd_catch_catch): Declare.
8893
ec8e2b6d
AB
88942019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8895
8896 * annotate.c (annotate_source_line): Change return type to void,
8897 update implementation to match.
8898 * annotate.h (annotate_source_line): Change return type to void,
8899 update header comment.
8900 * stack.c (print_frame_info): Don't change what frame information
8901 is printed based on whether annotations are on or not.
8902
0d3abd8c
AB
89032019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8904
8905 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8906 (annotate_source): Make static.
8907 (annotate_source_line): Moved from source.c and renamed from
8908 identify_source_line. Update the return type.
8909 * annotate.h (annotate_source): Delete declaration.
8910 (annotate_source_line): Declaration moved from source.h, and
8911 renamed from identify_source_line. Return type updated.
8912 * source.c (identify_source_line): Moved to annotate.c and renamed
8913 to annotate_source_line.
8914 (info_line_command): Remove check of annotation_level.
8915 * source.h (identify_source_line): Move declaration to annotate.h
8916 and rename to annotate_source_line.
8917 * stack.c: Add 'annotate.h' include.
8918 (print_frame_info): Remove check of annotation_level before
8919 calling annotate_source_line.
8920
00df30ae
AB
89212019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8922
8923 * source-cache.c (source_cache::get_plain_source_lines): Use
8924 open_source_file_with_line_charpos instead of just
8925 open_source_file, remove call to find_source_lines.
8926 (source_cache::get_source_lines): Likewise.
8927 * source.c (find_source_lines): Make static.
8928 (get_filename_and_charpos): Renamed into...
8929 (open_source_file_with_line_charpos): ..this along with changes to
8930 return a scoped_fd, and some other minor clean ups.
8931 (identify_source_line): Use open_source_file_with_line_charpos.
8932 (search_command_helper): Use open_source_file_with_line_charpos
8933 instead of just open_source_file, remove call to
8934 find_source_lines.
8935 * source.h (open_source_file_with_line_charpos): Declare new
8936 function.
8937 (find_source_lines): Delete declaration.
8938
afda45a2
AB
89392019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8940
8941 * source.c (get_filename_and_charpos): Remove fullname
8942 parameter.
8943 (identify_source_line): Update call to get_filename_and_charpos.
8944
0735b091
TT
89452019-06-14 Tom Tromey <tromey@adacore.com>
8946
8947 PR gdb/24502:
8948 * ui-style.h (skip_ansi_escape): Update comment.
8949 * ui-file.h (class no_terminal_escape_file): New class.
8950 * ui-file.c (no_terminal_escape_file::write)
8951 (no_terminal_escape_file::puts): New methods.
8952 * cli/cli-logging.c (handle_redirections): Use
8953 no_terminal_escape_file.
8954
52ce35e2
TT
89552019-06-14 Tom Tromey <tromey@adacore.com>
8956
8957 * NEWS: Move convenience variable news above Python news.
8958
73cc7272
TT
89592019-06-14 Tom Tromey <tom@tromey.com>
8960
8961 * gnulib: Move directory to top-level.
8962 * configure.ac: Don't configure gnulib.
8963 * configure: Rebuild.
8964 * common/common-defs.h: Use new path to gnulib.
8965 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8966 (GNULIB_H): Remove.
8967 (INCGNU): Look in new gnulib location.
8968 (HFILES_NO_SRCDIR): Remove gnulib files.
8969 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8970 (generated_files): Remove GNULIB_H.
8971 ($(LIBGNU), all-lib): Remove targets.
8972 (distclean): Don't mention GNULIB_BUILDDIR.
8973 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8974
f5686554
TT
89752019-06-14 Tom Tromey <tromey@adacore.com>
8976
8977 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8978 Warn if symbol file does not provide any symbols.
8979
a0c1ffed
TT
89802019-06-14 Tom Tromey <tromey@adacore.com>
8981
8982 * source.c (find_and_open_source): Respect basenames_may_differ.
8983
7c39e397
AB
89842019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8985
8986 * annotate.c (annotate_breakpoints_invalid): Make use of
8987 scoped_restore_terminal_state.
8988 (annotate_frames_invalid): Likewise.
8989
f411722c
TT
89902019-06-14 Tom Tromey <tromey@adacore.com>
8991
8992 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8993 allow assignment to an internalvar.
8994
4268ec18
TT
89952019-06-14 Tom Tromey <tromey@adacore.com>
8996
8997 * ada-lex.l: Allow "_" in attribute names.
8998
abdb711e
TT
89992019-06-14 Tom Tromey <tromey@adacore.com>
9000
9001 PR gdb/24653:
9002 * regcache.c (registers_changed): Don't call alloca.
9003 * top.c (execute_command): Don't call alloca.
9004
4c048731
PA
90052019-06-13 Pedro Alves <palves@redhat.com>
9006
9007 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9008 'expression'. When parsing an expression, error out if there's
9009 junk after "unlimited".
9010 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9011 (do_set_command): Adjust calls to is_unlimited_literal.
9012
66eb1ed3
PA
90132019-06-13 Pedro Alves <palves@redhat.com>
9014
9015 * compile/compile.c (make_compile_options_def_group): Add braces
9016 around array_view initializer.
9017 * thread.c (make_thread_apply_all_options_def_group)
9018 (make_thread_apply_all_options_def_group): Likewise.
9019
3345721a
PA
90202019-06-13 Pedro Alves <palves@redhat.com>
9021
9022 * NEWS (New commands): Mention "maint test-options
9023 require-delimiter", "maint test-options unknown-is-error", "maint
9024 test-options unknown-is-operand" and "maint show
9025 test-options-completion-result".
9026 (New command options, command completion): New section.
9027 (Completion improvements): New section.
9028 Mention that you can abbreviate "unlimited".
9029
6206060d
PA
90302019-06-13 Pedro Alves <palves@redhat.com>
9031
9032 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9033 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9034 * unittests/cli-utils-selftests.c (test_parse_flags)
9035 (test_parse_flags_qcs): Delete.
9036 (test_cli_utils): Don't call deleted functions.
9037
6665660a
PA
90382019-06-13 Pedro Alves <palves@redhat.com>
9039
9040 * thread.c: Include "cli/cli-option.h".
9041 (tp_array_compar_ascending): Global.
9042 (tp_array_compar): Delete function.
9043 (tp_array_compar_ascending, tp_array_compar_descending): New
9044 functions.
9045 (ascending_option_def, qcs_flag_option_def)
9046 (thr_qcs_flags_option_defs)
9047 (make_thread_apply_all_options_def_group)
9048 (make_thread_apply_options_def_group): New.
9049 (thread_apply_all_command): Use gdb::option::process_options.
9050 (thread_apply_command_completer)
9051 (thread_apply_all_command_completer): New.
9052 (thread_apply_command): Use gdb::option::process_options.
9053 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9054 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9055 to generate help text of "thread apply". Adjust "taas"'s help.
9056 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9057 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9058
f7e13587
PA
90592019-06-13 Pedro Alves <palves@redhat.com>
9060
9061 * thread.c (thread_apply_command): Check for invalid TID with
9062 isdigit instead of !isalpha.
9063
5d707134
PA
90642019-06-13 Pedro Alves <palves@redhat.com>
9065
9066 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9067 (validate_flags_qcs): New.
9068 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9069 (validate_flags_qcs): Declare.
9070 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9071 (make_frame_apply_options_def_group): New.
9072 (frame_apply_command_count): Process options with
9073 gdb::option::process_options.
9074 (frame_apply_completer): New.
9075 (frame_apply_level_completer, frame_apply_all_completer)
9076 (frame_apply_completer): New.
9077 (_initialize_stack): Update help of "frame apply", "frame apply
9078 level", "frame apply all" and "faas" to mention supported options
9079 and install command completers.
9080 * stack.h (frame_apply_all_completer): Declare.
9081 * thread.c: Include "stack.h".
9082 (tfaas_command): Add "--".
9083 (_initialize_thread): Update help "tfaas" to mention supported
9084 options and install command completer.
9085
272d4594
PA
90862019-06-13 Pedro Alves <palves@redhat.com>
9087
9088 * completer.c (complete_nested_command_line): New.
9089 (gdb_completion_word_break_characters_throw): Add assertion.
9090 * completer.h (complete_nested_command_line): Declare.
9091
90a1ef87
PA
90922019-06-13 Pedro Alves <palves@redhat.com>
9093
9094 * stack.c (parse_backtrace_qualifiers): New.
9095 (backtrace_command): Use it.
9096 (backtrace_command_completer): Complete on qualifiers.
9097
d4c16835
PA
90982019-06-13 Pedro Alves <palves@redhat.com>
9099
9100 * frame.c: Include "cli/cli-option.h.
9101 (user_set_backtrace_options): New.
9102 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9103 Delete.
9104 (get_prev_frame): Adjust.
9105 (boolean_option_def, uinteger_option_def)
9106 (set_backtrace_option_defs): New.
9107 (_initialize_frame): Adjust and use
9108 gdb::option::add_setshow_cmds_for_options to install "set
9109 backtrace past-main" and "set backtrace past-entry".
9110 * frame.h: Include "cli/cli-option.h".
9111 (struct frame_print_options): Forward declare.
9112 (print_frame_arguments_all, print_frame_arguments_scalars)
9113 (print_frame_arguments_none): Declare.
9114 (print_entry_values): Delete declaration.
9115 (struct frame_print_options, user_frame_print_options): New.
9116 (struct set_backtrace_options): New.
9117 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9118 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9119 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9120 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9121 (list_args_or_locals): Add frame_print_options parameter.
9122 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9123 * python/py-framefilter.c (enumerate_args): Pass down
9124 USER_FRAME_PRINT_OPTIONS.
9125 * stack.c: Include "cli/cli-option.h".
9126 (print_frame_arguments_all, print_frame_arguments_scalars)
9127 (print_frame_arguments_none): Declare.
9128 (print_raw_frame_arguments, print_entry_values): Delete.
9129 (user_frame_print_options): New.
9130 (boolean_option_def, enum_option_def, frame_print_option_defs):
9131 New.
9132 (struct backtrace_cmd_options): New.
9133 (bt_flag_option_def): New.
9134 (backtrace_command_option_defs): New.
9135 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9136 (print_frame_arg, read_frame_arg, print_frame_args)
9137 (print_frame_info, print_frame): Add frame_print_options parameter
9138 and use it.
9139 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9140 (backtrace_command_1): Add frame_print_options and
9141 backtrace_cmd_options parameters and use them.
9142 (make_backtrace_options_def_group): New.
9143 (backtrace_command): Process command options with
9144 gdb::option::process_options.
9145 (backtrace_command_completer): New.
9146 (_initialize_stack): Extend "backtrace"'s help to mention
9147 supported options. Install completer for "backtrace".
9148 Install some settings commands with add_setshow_cmds_for_options.
9149
2daf894e
PA
91502019-06-13 Pedro Alves <palves@redhat.com>
9151
9152 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9153 and that "set/show print raw frame-arguments" are now deprecated.
9154
9155 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9156 command.
9157 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9158 * stack.c (_initialize_stack): Install "set/show print
9159 raw-frame-arguments", and deprecate "set/show print raw
9160 frame-arguments".
9161 * valprint.c (_initialize_valprint): Deprecate "set/show print
9162 raw".
9163
e6ed716c
PA
91642019-06-13 Pedro Alves <palves@redhat.com>
9165
9166 * compile/compile.c (struct compile_options): New.
9167 (compile_flag_option_def, compile_command_option_defs)
9168 (make_compile_options_def_group): New.
9169 (compile_file_command): Handle options with
9170 gdb::option::process_options.
9171 (compile_file_command_completer): New function.
9172 (compile_code_command): Handle options with
9173 gdb::option::process_options.
9174 (compile_code_command_completer): New function.
9175 (_initialize_compiler): Install completers for "compile code" and
9176 "compile file". Mention available options in "compile code" and
9177 "compile code"'s help.
9178 * completer.c (advance_to_completion_word): New, factored out from
9179 ...
9180 (advance_to_expression_complete_word_point): ... this.
9181 (advance_to_filename_complete_word_point): New.
9182 * completer.h (advance_to_filename_complete_word_point): New
9183 declaration.
9184
7d8062de
PA
91852019-06-13 Pedro Alves <palves@redhat.com>
9186
9187 * compile/compile.c: Include "cli/cli-option.h".
9188 (compile_print_value): Scope data pointer is now a
9189 value_print_options pointer; adjust.
9190 (compile_print_command): Process options. Scope data pointer is
9191 now a value_print_options pointer; adjust.
9192 (_initialize_compile): Update "compile print"'s help to include
9193 supported options. Install a completer for "compile print".
9194 * cp-valprint.c (show_vtblprint, show_objectprint)
9195 (show_static_field_print): Delete.
9196 (_initialize_cp_valprint): Don't install "set print
9197 static-members", "set print vtbl", "set print object" here.
9198 * printcmd.c: Include "cli/cli-option.h" and
9199 "common/gdb_optional.h".
9200 (print_command_parse_format): Rework to fill in a
9201 value_print_options instead of a format_data.
9202 (print_value): Change parameter type from format_data pointer to
9203 value_print_options reference. Adjust.
9204 (print_command_1): Process options. Adjust to pass down a
9205 value_print_options.
9206 (print_command_completer): New.
9207 (_initialize_printcmd): Install print_command_completer as
9208 handle_brkchars completer for the "print" command. Update
9209 "print"'s help to include supported options.
9210 * valprint.c: Include "cli/cli-option.h".
9211 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9212 here from cp-valprint.c.
9213 (boolean_option_def, uinteger_option_def)
9214 (value_print_option_defs, make_value_print_options_def_group):
9215 New. Use gdb::option::add_setshow_cmds_for_options to install
9216 "set print elements", "set print null-stop", "set print repeats",
9217 "set print pretty", "set print union", "set print array", "set
9218 print address", "set print symbol", "set print array-indexes".
9219 * valprint.h: Include <string> and "cli/cli-option.h".
9220 (make_value_print_options_def_group): Declare.
9221 (print_value): Change parameter type from format_data pointer to
9222 value_print_options reference.
9223 (print_command_completer): Declare.
9224
9d0faba9
PA
92252019-06-13 Pedro Alves <palves@redhat.com>
9226
9227 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9228 (COMMON_SFILES): Add maint-test-settings.c.
9229 * cli/cli-decode.c (boolean_enums): New global, factored out from
9230 ...
9231 (add_setshow_boolean_cmd): ... here.
9232 * cli/cli-decode.h (boolean_enums): Declare.
9233 * cli/cli-option.c: New file.
9234 * cli/cli-option.h: New file.
9235 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9236 factored out from ...
9237 (parse_cli_boolean_value(const char *)): ... this.
9238 (is_unlimited_literal): Change parameter type to pointer to
9239 pointer. Adjust and advance ARG pointer.
9240 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9241 (parse_cli_var_enum): New, factored out from ...
9242 (do_set_command): ... this. Adjust.
9243 * cli/cli-setshow.h (parse_cli_boolean_value)
9244 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9245 (parse_cli_var_enum): Declare.
9246 * cli/cli-utils.c: Include "cli/cli-option.h".
9247 (get_ulongest): New.
9248 * cli/cli-utils.h (get_ulongest): Declare.
9249 (check_for_argument): New overloads.
9250 * maint-test-options.c: New file.
9251
2c722807
PA
92522019-06-13 Pedro Alves <palves@redhat.com>
9253
9254 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9255 parse a range if "-" is at the end of the string.
9256
dee7b4c8
PA
92572019-06-13 Pedro Alves <palves@redhat.com>
9258
9259 * cli/cli-setshow.c (parse_auto_binary_operation)
9260 (parse_cli_boolean_value): Don't allow "o".
9261
dca0f6c0
PA
92622019-06-13 Pedro Alves <palves@redhat.com>
9263
9264 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9265 * NEWS: Mention maint test-settings KIND.
9266 * maint-test-settings.c: New file.
9267
597bf39d
PA
92682019-06-13 Pedro Alves <palves@redhat.com>
9269
9270 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9271 completer.
9272 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9273 "set" completers.
9274
48c410fb
PA
92752019-06-13 Pedro Alves <palves@redhat.com>
9276
9277 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9278 after item.
9279
93bcb043
PA
92802019-06-13 Pedro Alves <palves@redhat.com>
9281
9282 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9283
cbba3ecd
PA
92842019-06-13 Pedro Alves <palves@redhat.com>
9285
9286 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9287 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9288 call.
9289 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9290 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9291 calls.
9292 (check_for_argument): Skip spaces after argument.
9293
b9a3f842
PA
92942019-06-13 Pedro Alves <palves@redhat.com>
9295
9296 * thread.c (thread_apply_command): Adjust TID parsing.
9297 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9298 detected before end of string.
9299 (tid_is_in_list): Error out if LIST is invalid.
9300
3844e605
PA
93012019-06-13 Pedro Alves <palves@redhat.com>
9302
9303 * completer.c (complete_line_internal_1): Rewind completion word
9304 point.
9305 (completion_tracker::advance_custom_word_point_by): Change
9306 parameter type to int.
9307 * completer.h (completion_tracker::advance_custom_word_point_by):
9308 Likewise.
9309
00b56dbe
PA
93102019-06-13 Pedro Alves <palves@redhat.com>
9311
9312 * completer.c (advance_to_completion_word): Handle delimiters.
9313
d106773e
PA
93142019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9315
9316 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9317
08f10e02
TT
93182019-06-11 Tom Tromey <tom@tromey.com>
9319
9320 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9321 (xmalloc_failed): Move to alloc.c.
9322 * alloc.c: New file.
9323 * Makefile.in (COMMON_SFILES): Add alloc.c.
9324
1c7fe951
TT
93252019-06-11 Tom Tromey <tom@tromey.com>
9326
9327 * nat/linux-waitpid.c: Don't include server.h.
9328 (linux_debug): Remove.
9329 (my_waitpid): Update.
9330
89549d7f
TT
93312019-06-11 Tom Tromey <tromey@adacore.com>
9332
9333 * infcall.c (_initialize_infcall): Remove trailing newline from
9334 help.
9335 * user-regs.c (_initialize_user_regs): Remove trailing newline
9336 from help.
9337 * typeprint.c (_initialize_typeprint): Remove trailing newline
9338 from help.
9339 * reverse.c (_initialize_reverse): Remove trailing newlines from
9340 help.
9341 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9342 from help.
9343 * language.c (add_set_language_command): Remove trailing newline
9344 from help.
9345 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9346 help.
9347 * disasm.c (_initialize_disasm): Remove trailing newline from
9348 help.
9349 * top.c (init_main): Remove trailing newline from help.
9350 * interps.c (_initialize_interpreter): Remove trailing newline
9351 from help.
9352 * btrace.c (_initialize_btrace): Remove trailing newlines from
9353 help.
9354 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9355 from help.
9356 * python/python.c (_initialize_python): Remove trailing newline
9357 from help.
9358 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9359 help.
9360 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9361 from help. Reformat some text.
9362 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9363 from help.
9364 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9365 newline from help.
9366
86108c13
TT
93672019-06-11 Tom Tromey <tromey@adacore.com>
9368
9369 * darwin-nat.c (darwin_decode_exception_message)
9370 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9371
a7067863
AB
93722019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9373
9374 * valops.c (value_slice): Check for not allocated or not
9375 associated values.
9376
9ab08412
TV
93772019-06-10 Tom de Vries <tdevries@suse.de>
9378
9379 PR gdb/24618
9380 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9381 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9382 invalid.
9383
f19e22e9
TV
93842019-06-10 Tom de Vries <tdevries@suse.de>
9385
9386 PR gdb/24611
9387 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9388 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9389
e99f9db0
TV
93902019-06-10 Tom de Vries <tdevries@suse.de>
9391
9392 PR symtab/24545
9393 * symtab.c (struct demangled_name_entry): Add language field.
9394 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9395 static minimal symbol". Set and use language field.
9396
9bf7038b
TT
93972019-06-10 Tom Tromey <tromey@adacore.com>
9398
9399 * ada-lang.c (_initialize_ada_language): Update help text.
9400
422186a9
TT
94012019-06-10 Tom Tromey <tromey@adacore.com>
9402
9403 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9404 with a newline.
9405 * guile/guile.c (handle_boot_error): Don't end warning with a
9406 newline.
9407 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9408 warning with a newline.
9409 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9410 newline.
9411 (s12z_frame_cache): Likewise.
9412 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9413 a newline.
9414 * solib-svr4.c (disable_probes_interface): Don't end warning with
9415 a newline.
9416 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9417 newline.
9418 * python/python.c (do_finish_initialization): Don't end warning
9419 with a newline.
9420
25ce02ee
TT
94212019-06-10 Tom Tromey <tom@tromey.com>
9422
9423 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9424 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9425 gdbpy_enter.
9426
caa429d8
TT
94272019-06-10 Tom Tromey <tromey@adacore.com>
9428
9429 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9430 data.
9431 (elf_new_init): Don't call stabsread_new_init.
9432 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9433 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9434 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9435
81873cc8
TV
94362019-06-10 Tom de Vries <tdevries@suse.de>
9437
9438 PR symtab/16264
9439 PR symtab/24517
9440 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9441
4fa0265e
РИ
94422019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9443
9444 * source.c (find_and_open_source): Also rewrite relative file
9445 names.
9446
1a3da2cd
AB
94472019-04-26 Amos Bird <amosbird@gmail.com>
9448
9449 * annotate.c (annotate_thread_exited): Add "thread-exited"
9450 annotation.
9451
3847a7bf
TT
94522019-06-06 Tom Tromey <tromey@adacore.com>
9453
9454 * maint.h (class scoped_command_stats): Use
9455 DISABLE_COPY_AND_ASSIGN.
9456 <print_time>: New method.
9457 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9458 print_time.
9459 (scoped_command_stats::print_time): New method.
9460
312617a3
AB
94612019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9462
9463 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9464 instructions of lengths 6 or 8 bytes.
9465
b02f78f9
PA
94662019-06-04 Pedro Alves <palves@redhat.com>
9467
9468 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9469
9470 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9471 * breakpoint.c (condition_completer): Likewise.
9472 * cli/cli-dump.c (scan_expression): Likewise.
9473 * common/filestuff.c (mkdir_recursive): Likewise.
9474 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9475 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9476 (gdb_abspath): Likewise.
9477 * compile/compile-cplus-types.c
9478 (compile_cplus_instance::decl_name): Likewise.
9479 * completer.c (complete_explicit_location):
9480 (signal_completer, reg_or_group_completer_1): Likewise.
9481 * cp-support.c (cp_remove_params_if_any): Likewise.
9482 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9483 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9484 * infcmd.c (strip_bg_char): Likewise.
9485 * linespec.c (copy_token_string): Likewise.
9486 * mi/mi-main.c (output_cores): Likewise.
9487 * psymtab.c (psymtab_search_name):
9488 * symfile.c (test_set_ext_lang_command): Likewise.
9489 * target.c (target_fileio_read_stralloc): Likewise.
9490 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9491 * value.c (complete_internalvar): Likewise.
9492
e1f2e1a2
CB
94932019-06-04 Christian Biesinger <cbiesinger@google.com>
9494
9495 Add objfile property to gdb.Type.
d3238f7d
PA
9496 * NEWS: Mention Python API addition.
9497 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9498
e664d728
PW
94992019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9500
9501 * NEWS: Mention the new set|show style [title|highlight].
9502 Mention changes to "show style", "help" and "apropos".
9503
66d8c862
PW
95042019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9505
9506 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9507 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9508 instead of print_help_for_command.
9509 (print_doc_of_command): New function.
9510 (help_list): Add 'apropos -v word' suggestion.
9511 (print_help_for_command): Style the command name using title style.
9512 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9513 (_initialize_cli_cmds): Describe -v in apropos_command help.
9514
9303eb2f
PW
95152019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9516
9517 * cli/cli-style.h (cli_style_option): Add name in constructor,
9518 add m_name class member, add constructor with intensity,
9519 add name class function.
9520 (cli_style_option::add_setshow_commands): Remove name argument.
9521 (highlight_style, title_style): New styles.
9522 * cli/cli-style.c (do_show): New function that shows a style
9523 characteristic styling the style name with itself.
9524 (set_style_name): New function.
9525 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9526 Update all callers according to the changes in cli/cli-style.h.
9527 * utils.h (fputs_highlighted): New function.
9528 * utils.c (fputs_highlighted): Likewise.
9529
e2c52041
PW
95302019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9531
9532 * NEWS: Mention new pipe command and new convenience variables.
9533
947d3946
PW
95342019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9535
9536 * cli/cli-cmds.c (pipe_command): New function.
9537 (_initialize_cli_cmds): Call add_com for pipe_command.
9538 Define | as an alias for pipe.
9539 (exit_status_set_internal_vars): New function.
9540 (shell_escape): Call exit_status_set_internal_vars.
9541 cli/cli-decode.c (find_command_name_length): Recognize | as
9542 a single character command.
9543
b8fd0918
PW
95442019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9545
9546 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9547 top.c (execute_command_to_ui_file): New function, mostly a copy
9548 of execute_command_to_string.
9549 (execute_command_to_string): Implement by calling
9550 execute_command_to_ui_file.
9551
68bb5386
PW
95522019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9553
9554 * top.h (saved_command_line): Remove declaration.
9555 * top.c (previous_saved_command_line, previous_repeat_arguments):
9556 New variables.
9557 (saved_command_line): Make static, define together with other
9558 'repeat variables'.
9559 (dont_repeat): Clear repeat_arguments.
9560 (repeat_previous, get_saved_command_line, save_command_line):
9561 New functions.
9562 (gdb_init): Initialize saved_command_line
9563 and previous_saved_command_line.
9564 * main.c (captured_main_1): Remove saved_command_line initialization.
9565 * event-top.c (handle_line_of_input): Update to use
9566 the new 'repeat' related functions instead of direct access to
9567 saved_command_line.
9568 * command.h (repeat_previous, get_saved_command_line,
9569 save_command_line): New declarations.
9570 (dont_repeat): Add comment.
9571
bfcdb852
TT
95722019-05-30 Tom Tromey <tromey@adacore.com>
9573
9574 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9575 Fix comment.
9576 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9577
0ef209f2
JV
95782019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9579
9580 PR cli/24587
9581 * completer.c (complete): Initialize variable word.
9582
955b06fa
SDJ
95832019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9584
9585 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9586 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9587 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9588 'body' is NULL to the outter 'if', protecting the '!is_define'
9589 situation as well.
9590
fa9c3fa0
TT
95912019-05-29 Tom Tromey <tromey@adacore.com>
9592
9593 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9594 (dwarf_unknown): New function.
9595 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9596 (dwarf_type_encoding_name): Use dwarf_unknown.
9597
4330d61d
TT
95982019-05-29 Tom Tromey <tromey@adacore.com>
9599
9600 PR c++/20020:
9601 * cp-valprint.c (cp_print_value_fields): Call
9602 cp_print_static_field inside "try".
9603
33a6bc35
TT
96042019-05-29 Tom Tromey <tromey@adacore.com>
9605
9606 * inflow.c (struct terminal_info): Add default operator=.
9607 * configure: Rebuild.
9608 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9609 -Wdeprecated-copy-dtor, -Wredundant-move.
9610
000439d5
TT
96112019-05-29 Tom Tromey <tromey@adacore.com>
9612
9613 * NEWS: Add entry.
9614 * infcmd.c (print_return_value_1): Handle finish_print
9615 option.
9616 (show_print_finish): New function.
9617 (_initialize_infcmd): Add "set/show print finish" commands.
9618 * valprint.c (user_print_options): Initialize new member.
9619 * valprint.h (struct value_print_options) <finish_print>: New
9620 member.
9621
c0e70c62
TT
96222019-05-28 Tom Tromey <tromey@adacore.com>
9623
9624 * ada-lang.c (ada_remove_Xbn_suffix)
9625 (find_old_style_renaming_symbol)
9626 (parse_old_style_renaming): Remove.
9627 (ada_find_renaming_symbol): Don't call
9628 find_old_style_renaming_symbol.
9629 (ada_is_renaming_symbol): Rename from
9630 ada_find_renaming_symbol. Remove "block" parameter. Return
9631 bool. Now static.
9632 (ada_read_var_value): Update and simplify.
9633 * ada-exp.y (write_var_or_type): Remove old code.
9634
766f8836
AH
96352019-05-28 Alan Hayward <alan.hayward@arm.com>
9636
68255adc 9637 PR gdb/25010
766f8836
AH
9638 * event-top.c: Remove include comment.
9639 * inflow.c (class scoped_ignore_sigttou): Move from here...
9640 * inflow.h (class scoped_ignore_sigttou): ...to here.
9641 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9642 * top.c: Remove include comment.
9643
eb41253a
TT
96442019-05-27 Tom Tromey <tom@tromey.com>
9645
9646 * NEWS: Fix typo.
9647
4ca51187
TT
96482019-05-22 Tom Tromey <tromey@adacore.com>
9649
9650 * target.c (target_follow_exec): Constify parameter.
9651 * target-delegates.c: Rebuild.
9652 * remote.c (remote_target::follow_exec): Constify parameter.
9653 * infrun.c (follow_exec): Constify parameter.
9654 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9655 (target_follow_exec): Likewise.
9656
8fca4da0
AH
96572019-05-22 Alan Hayward <alan.hayward@arm.com>
9658
9659 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9660 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9661
b7060614
AH
96622019-05-22 Alan Hayward <alan.hayward@arm.com>
9663
9664 * NEWS: Add debugredirect and testsuite sections.
9665
0a5954bd
SC
96662019-05-22 Simon Cook <simon.cook@embecosm.com>
9667
9668 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9669 target descriptions using exclusively floating point register name
9670 aliases.
9671
dc42e902
AB
96722019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9673
9674 PR gdb/18644:
9675 * f-lang.c (build_fortran_types): Handle the case where
9676 gdbarch_floatformat_for_type returns a nullptr.
9677
fb7806c7
TV
96782019-05-21 Tom de Vries <tdevries@suse.de>
9679
9680 PR cli/24587
9681 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9682
34d11c68
AB
96832019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9684
9685 PR gdb/18644:
9686 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9687 16-byte floats.
9688 * i386-tdep.c (i386_floatformat_for_type): Use
9689 floatformats_ia64_quad for the 16-byte floating point component
9690 within a fortran 32-byte complex number.
9691
122cf0f2
AB
96922019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9693
9694 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9695 delete default constructor.
9696 (find_partial_die): Update to return const struct.
9697 (partial_die_parent_scope): Move variable declaration into scope
9698 of its use and change its type to auto.
9699 (guess_partial_die_structure_name): Likewise.
9700 (partial_die_info::fixup): Likewise.
9701
33d0e35a
TT
97022019-05-17 Tom Tromey <tromey@adacore.com>
9703
9704 * source.c (find_and_open_source): Remove cast.
9705
a45575b0
TT
97062019-05-17 Tom Tromey <tromey@adacore.com>
9707
9708 * annotate.c (annotate_source): Make "filename" const.
9709 * annotate.h (annotate_source): Use const.
9710
81f47ac2
AH
97112019-05-17 Alan Hayward <alan.hayward@arm.com>
9712
9713 * disasm.c (set_disassembler_options): Send errors to stderr.
9714
ca1285d1
AH
97152019-05-17 Alan Hayward <alan.hayward@arm.com>
9716
9717 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9718 (cli_interp_base::set_logging): Check debug_redirect.
9719 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9720 * cli/cli-logging.c (debug_redirect): Add static variable.
9721 (pop_output_files): Add default param.
9722 (handle_redirections): Print debug setting.
9723 (show_logging_command): Likewise.
9724 (_initialize_cli_logging): Add debugredirect command.
9725 * interps.c (current_interp_set_logging): Add debug_redirect
9726 parameter.
9727 * interps.h (set_logging): Add debug_redirect parameter.
9728 (current_interp_set_logging): Likewise.
9729 * mi/mi-common.h: Likewise.
9730 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9731
97322019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9733 Tom Tromey <tromey@adacore.com>
9734
9735 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9736 directly.
9737 * cli/cli-interp.h (make_logging_output): Remove declaration.
9738 * cli/cli-logging.c (make_logging_output): Remove function.
9739 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9740 directly.
9741 * ui-file.c (tee_file::tee_file): Remove bools.
9742 (tee_file::~tee_file): Remove deletes.
9743 * ui-file.h (tee_file): Remove bools.
9744
26648588
JV
97452019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9746
9747 * mi/mi-cmds.h (mi_cmd_complete): New function.
9748 * mi/mi-main.c (mi_cmd_complete): Likewise.
9749 * mi/mi-cmds.c: Define new MI command -complete.
9750 * NEWS: Mention new -complete command.
9751
6e035501
JV
97522019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9753
9754 * completer.h (complete): New function.
9755 * completer.c (complete): Likewise.
9756 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9757 function defined in completer.h.
9758
7d0e2ece
JV
97592019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9760
e79be6e5 9761 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9762
fb816e8b
TV
97632019-05-17 Tom de Vries <tdevries@suse.de>
9764
9765 PR gdb/24094
9766 * dwarf2read.c (struct cu_partial_die_info): New struct.
9767 (find_partial_die): Return cu_partial_die_info.
9768 (partial_die_parent_scope, guess_partial_die_structure_name)
9769 (partial_die_info::fixup): Handle new return type of find_partial_die.
9770
677052f2
SDJ
97712019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9772
a1726c38 9773 PR breakpoints/24541
677052f2
SDJ
9774 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9775 "std::string", simplifying the algorithm.
9776
f3da9116
SDJ
97772019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9778
9779 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9780 (stap_static_probe_ops::get_probes): Likewise.
9781
f1bb75ab
SDJ
97822019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9783
9784 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9785 '-')" and "else if".
9786 (stap_parse_single_operand): Join checks for
9787 "gdbarch_stap_parse_special_token_p" and
9788 "gdbarch_stap_parse_special_token" in the same "if" statement.
9789 Invert check when verifying for operation on register
9790 displacement.
9791
3ca58cde
SDJ
97922019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9793
9794 * stap-probe.c (stap_get_opcode): Update comment.
9795 (stap_get_expected_argument_type): Likewise.
9796 (handle_stap_probe): Likewise.
9797
af2d9bee
SDJ
97982019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9799
9800 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9801 return type to 'bool'. Adjust comment. Use 'bool' when
9802 appropriate.
9803 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9804 * stap-probe.c (stap_parse_argument_1): Likewise.
9805 (stap_is_operator): Likewise.
9806 (stap_is_generic_prefix): Likewise.
9807 (stap_is_register_prefix): Likewise.
9808 (stap_is_register_indirection_prefix): Likewise.
9809 (stap_is_integer_prefix): Likewise.
9810 (stap_generic_check_suffix): Likewise.
9811 (stap_check_integer_suffix): Likewise.
9812 (stap_check_register_suffix): Likewise.
9813 (stap_check_register_indirection_suffix): Likewise.
9814 (stap_parse_register_operand): Likewise.
9815 (stap_parse_single_operand): Likewise.
9816 (stap_parse_argument_1): Likewise.
9817 (stap_probe::get_argument_count): Likewise.
9818 (stap_is_operator): Likewise.
9819
61c9c421
TT
98202019-05-16 Tom Tromey <tromey@adacore.com>
9821
9822 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9823 keyword to foreach.
9824
9ddc1af1
SM
98252019-05-15 Simon Marchi <simon.marchi@efficios.com>
9826
9827 * linux-thread-db.c (try_thread_db_load_1): Change return type
9828 to bool.
9829 (try_thread_db_load): Likewise.
9830 (try_thread_db_load_from_pdir_1): Likewise.
9831 (try_thread_db_load_from_pdir): Likewise.
9832 (try_thread_db_load_from_sdir): Likewise.
9833 (try_thread_db_load_from_dir): Likewise.
9834 (thread_db_load_search): Likewise.
9835 (has_libpthread): Likewise.
9836 (thread_db_load): Likewise.
9837
7bede828
SDJ
98382019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9839
9840 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9841 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9842 NULL, and complain/return if that's the case.
9843
c5358db4
JD
98442019-05-15 John Darrington <john@darrington.wattle.id.au>
9845
9846 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9847 (advance, posn, abstract_read_memory): New functions.
9848 [struct mem_read_abstraction]: New struct.
9849 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9850
c408a94f
TT
98512019-05-14 Tom Tromey <tromey@adacore.com>
9852
9853 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9854 value is not lval_memory.
9855
e7bd7fba
TT
98562019-05-14 Tom Tromey <tromey@adacore.com>
9857
9858 * solib.c (info_sharedlibrary_command): Style the file name.
9859
a6d0f249
AH
98602019-05-14 Alan Hayward <alan.hayward@arm.com>
9861
9862 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9863 (aarch64_vnv_type): Likewise.
9864 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9865 * common/tdesc.c: Likewise.
9866 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9867 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9868 * features/aarch64-fpu.xml: Add ieee half view.
9869 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9870 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9871 * gdbtypes.h (struct builtin_type): Likewise.
9872 (struct objfile_type): Likewise.
9873
66b8bb74
SM
98742019-05-12 Paul Naert <paul.naert@polymtl.ca>
9875
9876 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9877 typo.
9878 * location.h (string_to_event_location): Likewise.
9879
21c219fd
JB
98802019-05-11 Joel Brobecker <brobecker@adacore.com>
9881
9882 GDB 8.3 released.
9883
13674803
SM
98842019-05-10 Simon Marchi <simon.marchi@efficios.com>
9885
9886 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9887 New variable declaration.
9888 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9889 New variable.
9890 (print_one_breakpoint): Use ui_out::test_flags and new global
9891 variable to compute use_fixed_output.
9892 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9893 Remove.
9894 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9895 (mi_multi_location_breakpoint_output_fixed): Remove.
9896 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9897 new variable.
9898 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9899 fix_multi_location_breakpoint_output flag if version >= 3.
9900 * ui-out.h (enum ui_out_flag)
9901 <fix_multi_location_breakpoint_output>: New enumerator.
9902
a9eac7f9
SM
99032019-05-10 Simon Marchi <simon.marchi@efficios.com>
9904
9905 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9906
71bed2db
TT
99072019-05-10 Tom Tromey <tromey@adacore.com>
9908
9909 * ada-lang.c (catch_ada_completer): New function.
9910 (_initialize_ada_language): Use it.
9911
24c54127
TT
99122019-05-10 Tom Tromey <tromey@adacore.com>
9913
9914 * thread.c (print_thread_info): Make "requested_threads" const.
9915 * gdbthread.h (print_thread_info): Make "requested_threads"
9916 const.
9917 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9918 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9919
7a102139
TT
99202019-05-08 Tom Tromey <tom@tromey.com>
9921
9922 * gdbtypes.c (objfile_type_data): Change type.
9923 (objfile_type, _initialize_gdbtypes): Update.
9924
924d79e2
TT
99252019-05-08 Tom Tromey <tom@tromey.com>
9926
9927 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9928 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9929 (_initialize_dwarf2_frame): Update.
9930
4c58e337
TT
99312019-05-08 Tom Tromey <tom@tromey.com>
9932
9933 * objc-lang.c (objc_objfile_data): Change type.
9934 (find_methods): Update.
9935 (_initialize_objc_lang): Remove.
9936
d772d2ab
TT
99372019-05-08 Tom Tromey <tom@tromey.com>
9938
9939 * stabsread.c (rs6000_builtin_type_data): Change type.
9940 (rs6000_builtin_type, _initialize_stabsread): Update.
9941
d11d83f4
TT
99422019-05-08 Tom Tromey <tom@tromey.com>
9943
9944 * mips-tdep.c (mips_pdr_data): Remove.
9945 (_initialize_mips_tdep): Update.
9946
9a73f0ad
TT
99472019-05-08 Tom Tromey <tom@tromey.com>
9948
9949 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9950 (hppa_init_objfile_priv_data, read_unwind_info)
9951 (find_unwind_entry, _initialize_hppa_tdep): Update.
9952
8127a2fa
TT
99532019-05-08 Tom Tromey <tom@tromey.com>
9954
9955 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9956 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9957 on obstack.
9958 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9959
91d3055d
TT
99602019-05-08 Tom Tromey <tom@tromey.com>
9961
9962 * mdebugread.c (basic_type_data): Change type.
9963 (basic_type, _initialize_mdebugread): Update.
9964
31930bd3
TT
99652019-05-08 Tom Tromey <tom@tromey.com>
9966
9967 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9968
bdb3ed9e
TT
99692019-05-08 Tom Tromey <tom@tromey.com>
9970
9971 * nto-tdep.c (nto_inferior_data_reg): Change type.
9972 (nto_inferior_data): Update.
9973 (nto_inferior_data_cleanup, nto_new_inferior_data)
9974 (_initialize_nto_tdep): Remove.
9975 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9976
f37b313d
TT
99772019-05-08 Tom Tromey <tom@tromey.com>
9978
9979 * ada-lang.c (struct ada_inferior_data): Add initializers.
9980 (ada_inferior_data): Change type.
9981 (ada_inferior_data_cleanup): Remove.
9982 (get_ada_inferior_data, ada_inferior_exit)
9983 (struct ada_pspace_data): Add initializers, destructor.
9984 (ada_pspace_data_handle): Change type.
9985 (get_ada_pspace_data): Update.
9986 (ada_pspace_data_cleanup): Remove.
9987
24699405
TT
99882019-05-08 Tom Tromey <tom@tromey.com>
9989
9990 * coffread.c (struct coff_symfile_info): Add initializers.
9991 (coff_objfile_data_key): Move lower. Change type.
9992 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9993 Update.
9994 (coff_free_info): Remove.
9995
d4e05d2f
TT
99962019-05-08 Tom Tromey <tom@tromey.com>
9997
9998 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9999 (fbsd_pspace_data_handle): Move lower. Change type.
10000 (get_fbsd_pspace_data): Update.
10001 (fbsd_pspace_data_cleanup): Remove.
10002 (_initialize_fbsd_tdep): Update.
10003
14ef6690
TT
100042019-05-08 Tom Tromey <tom@tromey.com>
10005
10006 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10007 (get_ada_tasks_pspace_data): Update.
10008 (ada_tasks_pspace_data_cleanup): Remove.
10009 (_initialize_tasks): Update.
10010 (ada_tasks_inferior_data_handle): Change type.
10011 (get_ada_tasks_inferior_data): Update.
10012 (ada_tasks_inferior_data_cleanup): Remove.
10013 (struct ada_tasks_pspace_data): Add initializers.
10014
814cf43a
TT
100152019-05-08 Tom Tromey <tom@tromey.com>
10016
10017 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10018 * symfile-debug.c (debug_sym_get_probes): Change type.
10019 * stap-probe.c (handle_stap_probe):
10020 (stap_static_probe_ops::get_probes): Change type.
10021 * probe.h (class static_probe_ops) <get_probes>: Change type.
10022 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10023 (parse_probes_in_pspace): Update.
10024 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10025 Update.
10026 (any_static_probe_ops::get_probes): Change type.
10027 * elfread.c (elfread_data): New typedef.
10028 (probe_key): Change type.
10029 (elf_get_probes): Likewise. Update.
10030 (probe_key_free): Remove.
10031 (_initialize_elfread): Update.
10032 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10033 Change type.
10034 (dtrace_process_dof_probe, dtrace_process_dof)
10035 (dtrace_static_probe_ops::get_probe): Change type.
10036
02dc647e
TT
100372019-05-08 Tom Tromey <tom@tromey.com>
10038
10039 * xcoffread.c (struct xcoff_symfile_info): Rename from
10040 coff_symfile_info. Add initializers.
10041 (xcoff_objfile_data_key): Move lower. Change type.
10042 (XCOFF_DATA): Rewrite.
10043 (xcoff_free_info): Remove.
10044 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10045 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10046 (xcoff_initial_scan): Update.
10047
09232438
TT
100482019-05-08 Tom Tromey <tom@tromey.com>
10049
10050 * solib-svr4.c (struct svr4_info): Add initializers and
10051 destructor.
10052 <probes_table>: Now an htab_up.
10053 (solib_svr4_pspace_data): Change type.
10054 (free_probes_table): Simplify.
10055 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10056 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10057 (probes_table_remove_objfile_probes, register_solib_event_probe)
10058 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10059 (_initialize_svr4_solib): Update.
10060
7b4a314f
TT
100612019-05-08 Tom Tromey <tom@tromey.com>
10062
10063 * remote.c (remote_pspace_data): Change type.
10064 (remote_pspace_data_cleanup): Remove.
10065 (get_remote_exec_file, set_pspace_remote_exec_file)
10066 (_initialize_remote): Update.
10067
51d3063a
TT
100682019-05-08 Tom Tromey <tom@tromey.com>
10069
10070 * breakpoint.c (breakpoint_objfile_key): Change type.
10071 (get_breakpoint_objfile_data): Update.
10072 (free_breakpoint_objfile_data): Remove.
10073 (_initialize_breakpoint): Update.
10074
89fb8848
TT
100752019-05-08 Tom Tromey <tom@tromey.com>
10076
10077 * linux-tdep.c (struct linux_info): Add initializers.
10078 (linux_inferior_data): Move. Change type.
10079 (invalidate_linux_cache_inf): Update.
10080 (linux_inferior_data_cleanup): Remove.
10081 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10082
e9b89e2d
TT
100832019-05-08 Tom Tromey <tom@tromey.com>
10084
10085 * auxv.c (auxv_inferior_data): Move. Change type.
10086 (auxv_inferior_data_cleanup): Remove.
10087 (invalidate_auxv_cache_inf): Rewrite.
10088 (get_auxv_inferior_data, _initialize_auxv): Update.
10089
8c42777c
TT
100902019-05-08 Tom Tromey <tom@tromey.com>
10091
10092 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10093 (symfile_debug_objfile_data_key): Change type.
10094 (symfile_debug_installed, debug_qf_has_symbols)
10095 (debug_qf_find_last_source_symtab)
10096 (debug_qf_forget_cached_source_info)
10097 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10098 (debug_qf_print_stats, debug_qf_dump)
10099 (debug_qf_expand_symtabs_for_function)
10100 (debug_qf_expand_all_symtabs)
10101 (debug_qf_expand_symtabs_with_fullname)
10102 (debug_qf_map_matching_symbols)
10103 (debug_qf_expand_symtabs_matching)
10104 (debug_qf_find_pc_sect_compunit_symtab)
10105 (debug_qf_map_symbol_filenames)
10106 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10107 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10108 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10109 (debug_sym_read_linetable, debug_sym_relocate): Update.
10110 (symfile_debug_free_objfile): Remove.
10111 (install_symfile_debug_logging, _initialize_symfile_debug):
10112 Update.
10113
5bfd760d
TT
101142019-05-08 Tom Tromey <tom@tromey.com>
10115
10116 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10117 allocate_on_obstack.
10118 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10119 (get_dwarf2_per_objfile): Update.
10120 (set_dwarf2_per_objfile): Remove.
10121 (dwarf2_has_info, dwarf2_get_section_info): Update.
10122 (dwarf2_free_objfile): Remove.
10123 (_initialize_dwarf2_read): Update.
10124
e85e19b4
TT
101252019-05-08 Tom Tromey <tom@tromey.com>
10126
10127 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10128 initializers.
10129 <unsupported_script_warning_printed,
10130 script_not_found_warning_printed>: Now bool.
10131 (auto_load_pspace_data): Change type.
10132 (~auto_load_pspace_info): Rename from
10133 auto_load_pspace_data_cleanup.
10134 (get_auto_load_pspace_data, init_loaded_scripts_info)
10135 (clear_section_scripts, maybe_print_unsupported_script_warning)
10136 (maybe_print_script_not_found_warning, _initialize_auto_load):
10137 Update.
10138
f6aa7436
TT
101392019-05-08 Tom Tromey <tom@tromey.com>
10140
10141 * objfiles.c (objfile_pspace_info): Add destructor and
10142 initializers.
10143 (objfiles_pspace_data): Change type.
10144 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10145 (get_objfile_pspace_data): Update.
10146 (objfiles_bfd_data): Change type.
10147 (get_objfile_bfd_data): Update.
10148 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10149
6ae614f6
TT
101502019-05-08 Tom Tromey <tom@tromey.com>
10151
10152 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10153 Change type.
10154 (get_catch_syscall_inferior_data): Update.
10155 (catch_syscall_inferior_data_cleanup): Remove.
10156 (_initialize_break_catch_syscall): Update.
10157
6509b8eb
TT
101582019-05-08 Tom Tromey <tom@tromey.com>
10159
10160 * inflow.c (struct terminal_info): Add destructor and
10161 initializers.
10162 (inflow_inferior_data): Change type.
10163 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10164 (get_inflow_inferior_data, inflow_inferior_exit)
10165 (swap_terminal_info, _initialize_inflow): Update.
10166
35632941
TT
101672019-05-08 Tom Tromey <tom@tromey.com>
10168
10169 * target-dcache.c (target_dcache_cleanup): Remove.
10170 (target_dcache_aspace_key): Change type.
10171 (target_dcache_init_p, target_dcache_invalidate)
10172 (target_dcache_get, target_dcache_get_or_init)
10173 (_initialize_target_dcache): Update.
10174 * dcache.h (struct dcache_deleter): New.
10175
3017b94d
TT
101762019-05-08 Tom Tromey <tom@tromey.com>
10177
10178 * symtab.c (struct symbol_cache): Add destructor and
10179 initializers.
10180 (symbol_cache_key): Move. Change type.
10181 (make_symbol_cache, free_symbol_cache): Remove.
10182 (get_symbol_cache): Update.
10183 (symbol_cache_cleanup): Remove.
10184 (ALL_PSPACES, symbol_cache_flush)
10185 (maintenance_print_symbol_cache)
10186 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10187 Update.
10188
a32ad8c5
TT
101892019-05-08 Tom Tromey <tom@tromey.com>
10190
10191 * symtab.c (struct main_info): Add destructor and initializers.
10192 (main_progspace_key): Move. Change type.
10193 (get_main_info): Update.
10194 (main_info_cleanup): Remove.
10195 (_initialize_symtab): Update.
10196
5f6e90a0
TT
101972019-05-08 Tom Tromey <tom@tromey.com>
10198
10199 * registry.h (DECLARE_REGISTRY): Define the _key class.
10200
1bd0c6e4
AB
102012019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10202
10203 * NEWS: Merge two 'New commands' sections.
10204
2228ef77
XR
102052019-05-08 Joel Brobecker <brobecker@adacore.com>
10206
10207 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10208 parameter and use Ada language definition instead.
10209 (ada_val_print_ptr): Remove unused language parameter.
10210 (ada_val_print_num): Remove language parameter and use Ada language
10211 definition instead.
10212 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10213 parameter.
10214 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10215 parameter and use Ada language definition instead.
10216 (ada_val_print_1): Update all ada_val_print_xxx calls.
10217 Remove language parameter.
10218 (ada_val_print): Update ada_val_print_1 call.
10219
60fcc1c3
TT
102202019-05-08 Tom Tromey <tromey@adacore.com>
10221
10222 * remote.c (remote_hw_watchpoint_limit)
10223 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10224 Now static.
10225
ed2b7c17
TT
102262019-05-08 Tom Tromey <tromey@adacore.com>
10227
10228 * maint.c (_initialize_maint_cmds): Move initialization code to
10229 remote.c.
10230 (watchdog, show_watchdog): Move to remote.c.
10231 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10232 "watchdog" static.
10233 (_initialize_remote): Move initialization code from maint.c.
10234 * defs.h (watchdog): Don't declare.
10235
b0be6c91
TT
102362019-05-08 Tom Tromey <tromey@adacore.com>
10237
10238 * tui/tui-interp.c: Include main.h.
10239 * interps.c: Include main.h.
10240 * main.h (interpreter_p): Declare.
10241 * defs.h (interpreter_p): Don't declare.
10242
587ee17b
TT
102432019-05-08 Tom Tromey <tromey@adacore.com>
10244
10245 * dwarf2loc.c: Include dwarf2read.h.
10246 * defs.h (read_unsigned_leb128): Don't declare.
10247 * dwarf2read.h (read_unsigned_leb128): Declare.
10248
ca1df239
TT
102492019-05-08 Tom Tromey <tromey@adacore.com>
10250
10251 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10252 method.
10253
99f20f08
TT
102542019-05-08 Tom Tromey <tromey@adacore.com>
10255
10256 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10257 when no wrap column is set.
10258
80e55b13
TT
102592019-05-08 Tom Tromey <tromey@adacore.com>
10260
10261 * c-lang.c (c_get_string): Handle non-C-style arrays.
10262
9d3421af
TT
102632019-05-08 Tom Tromey <tromey@adacore.com>
10264
10265 * typeprint.c (print_offset_data::update): Print the bit offset,
10266 not the number of bits remaining.
10267
844333e2
TT
102682019-05-08 Tom Tromey <tromey@adacore.com>
10269
10270 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10271 padding at end of comment.
10272
988915ee
TT
102732019-05-08 Tom Tromey <tromey@adacore.com>
10274
10275 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10276 Compare main types.
10277
26bfd823
TT
102782019-05-06 Tom Tromey <tom@tromey.com>
10279
10280 * common/scoped_mmap.c: Include common-defs.h.
10281 * common/scoped_mmap.h: Don't include config.h.
10282
89055eaa
TT
102832019-05-04 Tom Tromey <tom@tromey.com>
10284
10285 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10286 (struct aarch64_call_info): Add initializers.
10287 <si>: Now a std::vector.
10288 (pass_on_stack, aarch64_push_dummy_call): Update.
10289
5da01df5
TT
102902019-05-04 Simon Marchi <simon.marchi@efficios.com>
10291 Tom Tromey <tom@tromey.com>
10292
10293 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10294 (ppc_threads): Now a std::vector. Now static.
10295 (hwdebug_find_thread_points_by_tid)
10296 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10297 Update.
10298
fbdf05a1
TT
102992019-05-04 Tom Tromey <tom@tromey.com>
10300
10301 * arc-tdep.c (arc_tdesc_init): Return bool.
10302
06d16ec9
TT
103032019-05-04 Tom Tromey <tom@tromey.com>
10304
10305 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10306 Use gdb_assert_not_reached.
10307
9c056022
TT
103082019-05-04 Tom Tromey <tom@tromey.com>
10309
10310 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10311 "false".
10312
fa9c2a59
TT
103132019-05-04 Tom Tromey <tom@tromey.com>
10314
10315 * arc-tdep.c (arc_tdesc_init): Use bool.
10316
e2eb806a
TT
103172019-05-04 Tom Tromey <tom@tromey.com>
10318
10319 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10320
6fe87677
TT
103212019-05-04 Tom Tromey <tom@tromey.com>
10322
10323 * cli/cli-cmds.c (valid_command_p): Return bool.
10324
7f008c9e
TT
103252019-05-04 Tom Tromey <tom@tromey.com>
10326
10327 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10328 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10329
b6484282
RT
103302019-05-04 Raul Tambre <raul@tambre.ee>
10331
10332 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10333 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10334 operator for comparison.
10335
af97b416
TT
103362019-05-04 Tom Tromey <tom@tromey.com>
10337
10338 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10339 (lookup_partial_symbol, print_partial_symbols)
10340 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10341 (psymbol_compare): Update.
10342 (add_psymbol_to_bcache): Clear the entire psymbol.
10343 (maintenance_check_psymtabs): Update.
10344 * psympriv.h (struct partial_symbol): Don't derive from
10345 general_symbol_info.
10346 <obj_section, unrelocated_address, address,
10347 set_unrelocated_address>: Update.
10348 <ginfo>: New member.
10349 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10350 (debug_names::write_psymbols): Update.
10351
9d6d4be8
TV
103522019-05-04 Tom de Vries <tdevries@suse.de>
10353
10354 * contrib/cc-with-tweaks.sh: Support -n arg.
10355
66452beb
PW
103562019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10357
10358 * corelow.c (core_target::detach): Ensure frame cache and
10359 register caches are cleared.
10360 inferior.c (exit_inferior_1): Likewise.
10361
bde09ab7
TT
103622019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10363 Tom Tromey <tom@tromey.com>
10364
10365 * dictionary.c (collate_pending_symbols_by_language): Remove
10366 "struct" from foreach.
10367 * symtab.c (lookup_global_symbol_from_objfile)
10368 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10369 foreach.
10370 * ser-tcp.c (net_open): Remove "struct" from foreach.
10371 * objfiles.c (objfile_relocate, objfile_rebase)
10372 (objfile_has_symbols): Remove "struct" from foreach.
10373 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10374 from foreach.
10375 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10376 foreach.
10377 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10378 "struct" from foreach.
10379 * ada-lang.c (create_excep_cond_exprs)
10380 (ada_exception_catchpoint_cond_string): Remove "struct" from
10381 foreach.
10382
222a8d25
TT
103832019-05-03 Tom Tromey <tromey@adacore.com>
10384
10385 * ada-exp.y (convert_char_literal): Check suffix of each
10386 enumerator.
10387
fcd60b84
DP
103882019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10389
10390 PR ada/21406:
10391 * ada-exp.y (yywrap): Don't define.
10392 * ada-lex.l (%option): Add noyywrap
10393 (yywrap): Remove.
10394
5f2459c2
EZ
103952019-05-03 Eli Zaretskii <eliz@gnu.org>
10396
353ea2d1
EZ
10397 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10398 _WIN32_WINNT to the XP level, unless already defined to a higher
10399 level.
10400
10401 * unittests/parse-connection-spec-selftests.c:
10402 * ser-tcp.c:
10403 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10404 override.
10405
5f2459c2
EZ
10406 * symfile.c (find_separate_debug_file): Remove colon from the
10407 drive spec of DOS/Windows file names of the target, so that the
10408 file name produced from DEBUGDIR and the target's directory will
10409 be valid on DOS/Windows systems.
10410
80062eb9
AB
104112019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10412
10413 * rust-lang.c (val_print_struct): Handle printing structures
10414 containing strings.
10415
b8c05e85
TT
104162019-05-02 Tom Tromey <tromey@adacore.com>
10417
10418 * valarith.c (_initialize_valarith): Remove.
10419
4504bbde
TT
104202019-05-01 Tom Tromey <tromey@adacore.com>
10421
10422 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10423 bitfields.
10424
d48e62f4
TT
104252019-05-01 Tom Tromey <tromey@adacore.com>
10426
10427 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10428 for big-endian copies.
10429
15f18d14
AT
104302019-04-30 Ali Tamur <tamur@google.com>
10431 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10432 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10433 (read_3_bytes): New function.
10434
ab4ee614
JB
104352019-04-30 Joel Brobecker <brobecker@adacore.com>
10436
10437 * windows-nat.c (main_thread_id): Delete.
10438 (handle_output_debug_string): Replace main_thread_id by
10439 current_event.dwThreadId.
10440 (fake_create_process): Likewise.
10441 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10442 Do not set main_thread_id.
10443 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10444 current_event.dwThreadId.
10445 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10446
8ed5b76e
JB
104472019-04-30 Joel Brobecker <brobecker@adacore.com>
10448
10449 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10450 Use current_event.dwThreadId instead of main_thread_id.
10451
2ff0a947
TT
104522019-04-30 Tom Tromey <tromey@adacore.com>
10453
10454 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10455 (create_excep_cond_exprs): Iterate over program spaces.
10456 (ada_exception_catchpoint_cond_string): Examine all minimal
10457 symbols for exception types.
10458
a776957c
TT
104592019-04-30 Tom Tromey <tromey@adacore.com>
10460
10461 PR c++/24470:
10462 * dwarf2read.c (process_structure_scope): Handle case where type
10463 has template parameters but no symbol was created.
10464
bc68014d
AB
104652019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10466 Chris January <chris.january@arm.com>
10467
10468 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10469 qualifier.
10470 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10471
f1fdc960
AB
104722019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10473
10474 * f-typeprint.c (f_print_type): Update rules for printing
10475 whitespace.
10476 (f_type_print_varspec_suffix): Likewise.
10477
bf7a4de1
AB
104782019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10479 Chris January <chris.january@arm.com>
10480
10481 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10482 function arguments.
10483
bbe75b9d
AB
104842019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10485
10486 * f-lang.c (build_fortran_types): Change name of void type to
10487 lower case.
10488 * f-typeprint.c (f_type_print_base): Print the name of the void
10489 type, rather than a fixed string.
10490 * f-valprint.c (f_decorations): Use lower case void string.
10491
1db455a7
AB
104922019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10493 Chris January <chris.january@arm.com>
10494
10495 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10496 types for Fortran.
10497
b6d03bb2
AB
104982019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10499 Chris January <chris.january@arm.com>
10500 David Lecomber <david.lecomber@arm.com>
10501
10502 * f-exp.y (BINOP_INTRINSIC): New token.
10503 (exp): New parser rule handling BINOP_INTRINSIC.
10504 (f77_keywords): Add new builtin procedures.
10505 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10506 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10507 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10508 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10509 (print_unop_subexp_f): New function.
10510 (print_binop_subexp_f): New function.
10511 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10512 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10513 (dump_subexp_body_f): Likewise.
10514 (operator_check_f): Likewise.
10515 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10516 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10517
83228e93
AB
105182019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10519
10520 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10521 UNOP_KIND.
10522 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10523 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10524 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10525 (operator_length_f): New fuction.
10526 (print_subexp_f): New function.
10527 (op_name_f): New function.
10528 (dump_subexp_body_f): New function.
10529 (operator_check_f): New function.
10530 (exp_descriptor_f): Replace standard expression handling functions
10531 with new functions.
10532 * gdb/fortran-operator.def: New file.
10533 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10534 * gdb/std-operator.def: Remove UNOP_KIND.
10535
6fdcd7cc
AB
105362019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10537
10538 * std-operator.def: Remove unbalanced, stray double quote
10539 character.
10540
2e62ab40
AB
105412019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10542 Chris January <chris.january@arm.com>
10543 Daniel Everett <daniel.everett@arm.com>
10544 Nick Forrington <nick.forrington@arm.com>
10545 Richard Bunt <richard.bunt@arm.com>
10546
10547 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10548 of depth when printing anonymous structs or unions.
10549 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10550 Don't print either the top-level value, or the children if the
10551 max-depth is exceeded.
10552 (ppscm_print_children): When printing the key of a map, allow one
10553 extra level of depth.
10554 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10555 print either the top-level value, or the children if the max-depth
10556 is exceeded.
10557 (print_children): When printing the key of a map, allow one extra
10558 level of depth.
10559 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10560 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10561 (user_print_options): Initialise max_depth field.
10562 (val_print_scalar_or_string_type_p): New function.
10563 (val_print): Check to see if the max depth has been reached.
10564 (val_print_check_max_depth): Define new function.
10565 (show_print_max_depth): New function.
10566 (_initialize_valprint): Add 'print max-depth' option.
10567 * valprint.h (struct value_print_options) <max_depth>: New field.
10568 (val_print_check_max_depth): Declare new function.
10569 * NEWS: Document new feature.
10570
4be290b2
AB
105712019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10572
10573 * ada-lang.c (ada_language_defn): Initialise new field.
10574 * c-lang.c (c_is_string_type_p): New function.
10575 (c_language_defn): Initialise new field.
10576 (cplus_language_defn): Initialise new field.
10577 (asm_language_defn): Initialise new field.
10578 (minimal_language_defn): Initialise new field.
10579 * c-lang.h (c_is_string_type_p): Declare new function.
10580 * d-lang.c (d_language_defn): Initialise new field.
10581 * f-lang.c (f_is_string_type_p): New function.
10582 (f_language_defn): Initialise new field.
10583 * go-lang.c (go_is_string_type_p): New function.
10584 (go_language_defn): Initialise new field.
10585 * language.c (default_is_string_type_p): New function.
10586 (unknown_language_defn): Initialise new field.
10587 (auto_language_defn): Initialise new field.
10588 * language.h (struct language_defn) <la_is_string_type_p>: New
10589 member variable.
10590 (default_is_string_type_p): Declare new function.
10591 * m2-lang.c (m2_language_defn): Initialise new field.
10592 * objc-lang.c (objc_language_defn): Initialise new field.
10593 * opencl-lang.c (opencl_language_defn): Initialise new field.
10594 * p-lang.c (pascal_is_string_type_p): New function.
10595 (pascal_language_defn): Initialise new field.
10596 * rust-lang.c (rust_is_string_type_p): New function.
10597 (rust_language_defn): Initialise new field.
10598
721b08c6
AB
105992019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10600
10601 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10602 New field.
10603 * ada-lang.c (ada_language_defn): Initialise new field.
10604 * c-lang.c (c_language_defn): Likewise.
10605 (cplus_language_defn): Likewise.
10606 (asm_language_defn): Likewise.
10607 (minimal_language_defn): Likewise.
10608 * d-lang.c (d_language_defn): Likewise.
10609 * f-lang.c (f_language_defn): Likewise.
10610 * go-lang.c (go_language_defn): Likewise.
10611 * language.c (unknown_language_defn): Likewise.
10612 (auto_language_defn): Likewise.
10613 * m2-lang.c (m2_language_defn): Likewise.
10614 * objc-lang.c (objc_language_defn): Likewise.
10615 * opencl-lang.c (opencl_language_defn): Likewise.
10616 * p-lang.c (pascal_language_defn): Likewise.
10617 * rust-lang.c (rust_language_defn): Likewise.
10618
fc913e53
AB
106192019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10620
10621 * ada-lang.c (ada_is_character_type): Change return type to bool.
10622 (ada_is_string_type): Likewise.
10623 * ada-lang.h (ada_is_character_type): Update declaration
10624 (ada_is_string_type): Likewise.
10625
fa731fa0
PW
106262019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10627
10628 Support style in 'frame|thread apply'
10629
10630 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10631 * record.c (record_start, record_stop): Update callers of
10632 execute_command_to_string with false.
10633 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10634 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10635 methods.
10636 (class string_file): New constructor with term_out parameter.
10637 Override methods term_out and can_emit_style_escape. New member
10638 term_out.
10639 (class stdio_file): Override can_emit_style_escape.
10640 (class tee_file): Override term_out and can_emit_style_escape.
10641 * utils.h (can_emit_style_escape): Remove.
10642 * utils.c (can_emit_style_escape): Likewise.
10643 Update all callers of can_emit_style_escape (SOMESTREAM) to
10644 SOMESTREAM->can_emit_style_escape.
10645 * source-cache.c (source_cache::get_source_lines): Likewise.
10646 * stack.c (frame_apply_command_count): Call execute_command_to_string
10647 passing the term_out characteristic of the current gdb_stdout.
10648 * thread.c (thr_try_catch_cmd): Likewise.
10649 * top.c (execute_command_to_string): pass term_out parameter
10650 to construct the string_file for the command output.
10651 * ui-file.c (term_cli_styling): New function (most code moved
10652 from utils.c can_emit_style_escape).
10653 (string_file::string_file, string_file::can_emit_style_escape,
10654 stdio_file::can_emit_style_escape, tee_file::term_out,
10655 tee_file::can_emit_style_escape): New functions.
10656
136afab8
PW
106572019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10658
10659 * NEWS: Mention the new set|show may-call-functions.
10660 * infcall.c (may_call_functions_p): New variable.
10661 (show_may_call_functions_p): New function.
10662 (call_function_by_hand_dummy): Throws an error if not
10663 may-call-functions.
10664 (_initialize_infcall): Call add_setshow_boolean_cmd for
10665 may-call-functions.
10666
725cbb63
KS
106672019-04-25 Keith Seitz <keiths@redhat.com>
10668
10669 PR c++/24367
10670 * cp-support.c (inspect_type): Don't attempt substitutions
10671 of symbol with the same name.
10672
3d1cbb78
TT
106732019-04-25 Tom Tromey <tromey@adacore.com>
10674
10675 PR gdb/24475:
10676 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10677 static.
10678
94aeb44b
TT
106792019-04-25 Tom Tromey <tromey@adacore.com>
10680
10681 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10682 rvalue reference.
10683 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10684 (gdb_xml_parser::parse): Use std::move.
10685 * python/python-internal.h (gdbpy_convert_exception): Take a const
10686 reference.
10687 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10688 std::move.
10689 * python/py-utils.c (gdbpy_convert_exception): Take a const
10690 reference.
10691 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10692 Use std::move.
10693 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10694 Use std::move.
10695 * mi/mi-main.c (mi_print_exception): Take a const reference.
10696 * main.c (handle_command_errors): Take a const reference.
10697 * linespec.c (parse_linespec): Use std::move.
10698 * infcall.c (run_inferior_call): Use std::move.
10699 (call_function_by_hand_dummy): Use std::move.
10700 * exec.c (try_open_exec_file): Use std::move.
10701 * exceptions.h (exception_print, exception_fprintf)
10702 (exception_print_same): Update.
10703 * exceptions.c (print_exception, exception_print)
10704 (exception_fprintf, exception_print_same): Change parameters to
10705 const reference.
10706 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10707 * common/new-op.c: Use std::move.
10708 * common/common-exceptions.h (struct gdb_exception): Add move
10709 constructor.
10710 (struct gdb_exception_error, struct gdb_exception_quit, struct
10711 gdb_quit_bad_alloc): Change constructor to move constructor.
10712 (throw_exception): Change parameter to rvalue reference.
10713 * common/common-exceptions.c (throw_exception): Take rvalue
10714 reference.
10715 * cli/cli-interp.c (safe_execute_command): Use std::move.
10716 * breakpoint.c (insert_bp_location, location_to_sals): Use
10717 std::move.
10718
680d7fd5
TT
107192019-04-25 Tom Tromey <tromey@adacore.com>
10720
10721 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10722 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10723 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10724 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10725 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10726 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10727 guile/scm-value.c: Use unpack.
10728 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10729 gdbscm_gdb_exception.
10730 (gdbscm_throw_gdb_exception): Likewise.
10731 (struct gdbscm_gdb_exception): New.
10732 (unpack): New function.
10733 (gdbscm_wrap): Use unpack.
10734
c6fdd8b2
TT
107352019-04-25 Tom Tromey <tromey@adacore.com>
10736
10737 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10738 (gdb_rl_callback_handler): Use std::move.
10739 * common/common-exceptions.h (struct gdb_exception): Add move
10740 assignment operator.
10741 (throw_exception_sjlj): Change "exception" to const reference.
10742 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10743 (throw_exception_sjlj): Change "exception" to const reference.
10744
cc06b668
TT
107452019-04-25 Tom Tromey <tromey@adacore.com>
10746
10747 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10748 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10749 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10750 Update.
10751 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10752 Update.
10753 * mi/mi-interp.c (mi_interp::exec): Update.
10754 * linespec.c (parse_linespec): Update.
10755 * infcall.c (run_inferior_call): Update.
10756 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10757 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10758 (gdbscm_lookup_global_symbol): Update.
10759 * guile/scm-param.c (gdbscm_parameter_value): Update.
10760 * guile/scm-frame.c (gdbscm_frame_read_register)
10761 (gdbscm_frame_read_var): Update.
10762 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10763 * exec.c (try_open_exec_file): Update.
10764 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10765 (gdb_rl_callback_handler): Update.
10766 * common/common-exceptions.h (exception_none): Don't declare.
10767 * common/common-exceptions.c (exception_none): Don't define.
10768 (struct catcher) <exception>: Update.
10769 * cli/cli-interp.c (safe_execute_command): Update.
10770 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10771
cf532bd1
AT
107722019-04-25 Ali Tamur <tamur@google.com>
10773
10774 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10775 (read_attribute_value): Likewise.
10776 (dwarf2_read_addr_index): Update comment.
10777 (read_str_index): Add DW_FORM_strx.
10778 (dwarf2_string_attr): Likewise.
10779 (dwarf2_const_value_attr): Likewise.
10780 (dump_die_shallow): Likewise.
10781 (dwarf2_fetch_constant_bytes): Likewise.
10782 (skip_form_bytes): Likewise.
10783 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10784
82433e3e
SDJ
107852019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10786
10787 PR corefiles/11608
10788 PR corefiles/18187
10789 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10790 OFFSET. Verify if current mapping contains an ELF header.
10791 (linux_find_memory_regions_full): Adjust call to
10792 dump_mapping_p.
10793
723adb65
SL
107942019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10795 Kang Li <kanglictf@gmail.com>
10796
10797 PR gdb/21600
10798
10799 * dwarf2-frame.c (read_initial_length): Be consistent about using
10800 unsigned representation of length.
10801 (decode_frame_entry_1): Likewise. Check for wraparound of
10802 end pointer as well as buffer overflow.
10803
596179f7
SDJ
108042019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10805
10806 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10807 "vq".
10808
a59240a4
TT
108092019-04-24 Tom Tromey <tromey@adacore.com>
10810
10811 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10812
f872fdbb
AB
108132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10814
10815 * s12z-tdep.c (s12z_unwind_pc): Delete.
10816 (s12z_unwind_sp): Delete.
10817 (s12z_gdbarch_init): Don't register deleted functions with
10818 gdbarch.
10819
b614e6f3
AB
108202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10821
10822 * rl78-tdep.c (rl78_unwind_sp): Delete.
10823 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10824
14faed38
AB
108252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10826
10827 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10828 (xstormy16_unwind_pc): Delete.
10829 (xstormy16_dummy_id): Delete.
10830 (xstormy16_gdbarch_init): Don't register deleted functions with
10831 gdbarch.
10832
541aad8a
AB
108332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10834
10835 * vax-tdep.c (vax_unwind_pc): Delete.
10836 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10837
29222070
AB
108382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10839
10840 * v850-tdep.c (v850_unwind_sp): Delete.
10841 (v850_unwind_pc): Delete.
10842 (v850_dummy_id): Delete.
10843 (v850_gdbarch_init): Don't register deleted functions with
10844 gdbarch.
10845
0f534d76
AB
108462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10847
10848 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10849 (tilegx_unwind_pc): Delete.
10850 (tilegx_unwind_dummy_id): Delete.
10851 (tilegx_gdbarch_init): Don't register deleted functions with
10852 gdbarch.
10853
1ba7b7f9
AB
108542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10855
10856 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10857 (tic6x_dummy_id): Delete.
10858 (tic6x_gdbarch_init): Don't register deleted functions with
10859 gdbarch.
10860
d31f262c
AB
108612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10862
10863 * sparc-tdep.c (sparc_unwind_pc): Delete.
10864 (sparc32_gdbarch_init): Don't register deleted function with
10865 gdbarch.
10866
6d14d64d
AB
108672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10868
10869 * sh-tdep.c (sh_unwind_sp): Delete.
10870 (sh_unwind_pc): Delete.
10871 (sh_dummy_id): Delete.
10872 (sh_gdbarch_init): Don't register deleted functions with
10873 gdbarch.
10874
a40dde9d
AB
108752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10876
10877 * score-tdep.c (score_unwind_sp): Delete.
10878 (score_unwind_pc): Delete.
10879 (score_dummy_id): Delete.
10880 (score_gdbarch_init): Don't register deleted functions with
10881 gdbarch.
10882
47c47d69
AB
108832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10884
10885 * rx-tdep.c (rx_unwind_pc): Delete.
10886 (rx_unwind_sp): Delete.
10887 (rx_dummy_id): Delete.
10888 (rx_gdbarch_init): Don't register deleted functions with
10889 gdbarch. Update comment.
10890
833a4480
AB
108912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10892
10893 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10894 (rs6000_dummy_id): Delete.
10895 (rs6000_gdbarch_init): Don't register deleted functions with
10896 gdbarch.
10897
3f2cef49
AB
108982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10899
10900 * or1k-tdep.c (or1k_dummy_id): Delete.
10901 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10902
96acf884
AB
109032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10904
10905 * nios2-tdep.c (nios2_dummy_id): Delete.
10906 (nios2_unwind_sp): Delete.
10907 (nios2_gdbarch_init): Don't register deleted functions with
10908 gdbarch.
10909
ca0ab0aa
AB
109102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10911
10912 * nds32-tdep.c (nds32_dummy_id): Delete.
10913 (nds32_unwind_pc): Delete.
10914 (nds32_unwind_sp): Delete.
10915 (nds32_gdbarch_init): Don't register deleted functions with
10916 gdbarch.
10917
c8259044
AB
109182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10919
10920 * msp430-tdep.c (msp430_unwind_pc): Delete.
10921 (msp430_unwind_sp): Delete.
10922 (msp430_dummy_id): Delete.
10923 (msp430_gdbarch_init): Don't register deleted functions with
10924 gdbarch.
10925
27f113c8
AB
109262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10927
10928 * moxie-tdep.c (moxie_unwind_sp): Delete.
10929 (moxie_unwind_pc): Delete.
10930 (moxie_dummy_id): Delete.
10931 (moxie_gdbarch_init): Don't register deleted functions with
10932 gdbarch.
10933
aee6c3cd
AB
109342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10935
10936 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10937 (mn10300_unwind_pc): Delete.
10938 (mn10300_unwind_sp): Delete.
10939 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10940 mn10300_unwind_sp.
10941 (mn10300_frame_unwind_init): Don't register deleted functions with
10942 gdbarch.
10943
8e2b5aea
AB
109442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10945
10946 * mep-tdep.c (mep_unwind_pc): Delete.
10947 (mep_unwind_sp): Delete.
10948 (mep_dummy_id): Delete.
10949 (mep_gdbarch_init): Don't register deleted functions with
10950 gdbarch.
10951
43cf3ede
AB
109522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10953
10954 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10955 (m68hc11_unwind_sp): Delete.
10956 (m68hc11_gdbarch_init): Don't register deleted functions with
10957 gdbarch.
10958
5e79b7bb
AB
109592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10960
10961 * m32r-tdep.c (m32r_unwind_sp): Delete.
10962 (m32r_unwind_pc): Delete.
10963 (m32r_dummy_id): Delete.
10964 (m32r_gdbarch_init): Don't register deleted functions with
10965 gdbarch.
10966
89b268d8
AB
109672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10968
10969 * m32c-tdep.c (m32c_unwind_pc): Delete.
10970 (m32c_unwind_sp): Delete.
10971 (m32c_dummy_id): Delete.
10972 (m32c_gdbarch_init): Don't register deleted functions with
10973 gdbarch.
10974
946c28d2
AB
109752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10976
10977 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10978 (lm32_unwind_pc): Delete.
10979 (lm32_dummy_id): Delete.
10980 (lm32_gdbarch_init): Don't register deleted functions with
10981 gdbarch.
10982
bf12844a
AB
109832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10984
10985 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10986 (iq2000_unwind_pc): Delete.
10987 (iq2000_dummy_id): Delete.
10988 (iq2000_gdbarch_init): Don't register deleted functions with
10989 gdbarch.
10990
ecbc06d2
AB
109912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10992
10993 * nds32-tdep.c (nds32_type_align): Delete.
10994 (nds32_push_dummy_call): Use type_align instead.
10995
030197b4
AB
109962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10997
10998 * arm-tdep.c (arm_type_align): Only handle vector override case.
10999 (arm_push_dummy_call): Use type_align.
11000 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11001
b907456c
AB
110022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11003
11004 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11005 case.
11006 (pass_on_stack): Use type_align.
11007 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11008 function.
11009
9e97ba43
TT
110102019-04-23 Tom Tromey <tromey@adacore.com>
11011
11012 * dwarf2read.c (line_header::file_name_at): Remove unused
11013 overload.
11014
6892f601
TV
110152019-04-23 Tom de Vries <tdevries@suse.de>
11016
11017 PR gdb/24438
11018 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11019 invocation.
11020
336d760d
AT
11021
110222019-03-27 Ali Tamur <tamur@google.com>
11023
11024 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11025 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11026 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11027 (dwarf_expr_context::get_addr_index): Likewise
11028 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11029 (symbol_needs_eval_context::get_addr_index): Likewise
11030 (disassemble_dwarf_expression): Add DW_OP_addrx
11031 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11032 (read_cutu_die_from_dwo): Update comment
11033 (skip_one_die): Add DW_FORM_addrx
11034 (read_attribute_value): Likewise
11035 (var_decode_location): Add DW_OP_addrx
11036 (dwarf2_const_value_attr): Add DW_FORM_addrx
11037 (dump_die_shallow): Likewise
11038 (dwarf2_fetch_constant_bytes): Likewise
11039 (decode_locdesc): Add DW_OP_addrx
11040 (skip_form_bytes): Add DW_FORM_addrx
11041
ad9d13f8
AT
110422019-04-22 Ali Tamur <tamur@google.com>
11043
11044 * MAINTAINERS (Write After Approval): Add self.
11045
d70cc3ba
SM
110462019-04-22 Simon Marchi <simon.marchi@efficios.com>
11047
11048 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11049 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11050 (open_symbol_file_object): Likewise.
11051 (svr4_default_sos): Add info parameter.
11052 (svr4_read_so_list): Likewise.
11053 (svr4_current_sos_direct): Adjust functions calls to pass down
11054 info.
11055 (svr4_current_sos_1): Add info parameter.
11056 (svr4_current_sos): Call get_svr4_info, pass info down to
11057 svr4_current_sos_1.
11058 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11059 get_svr4_info.
11060 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11061 get_svr4_info.
11062 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11063 to get_svr4_info.
11064 (probes_table_remove_objfile_probes): Likewise.
11065 (register_solib_event_probe): Add info parameter.
11066 (solist_update_incremental): Pass info parameter down to
11067 svr4_read_so_list.
11068 (disable_probes_interface): Add info parameter.
11069 (svr4_handle_solib_event): Pass current_program_space to
11070 get_svr4_info. Adjust disable_probes_interface cleanup.
11071 (svr4_create_probe_breakpoints): Add info parameter, pass it
11072 down to register_solib_event_probe.
11073 (svr4_create_solib_event_breakpoints): Add info parameter,
11074 pass it down to svr4_create_probe_breakpoints.
11075 (enable_break): Pass info down to
11076 svr4_create_solib_event_breakpoints.
11077 (svr4_solib_create_inferior_hook): Pass current_program_space to
11078 get_svr4_info.
11079 (svr4_clear_solib): Likewise.
11080
7905fc35
PA
110812019-04-22 Pedro Alves <palves@redhat.com>
11082
11083 * solib-svr4.c (svr4_free_objfile_observer): New.
11084 (probe_and_action::objfile): New field.
11085 (probes_table_htab_remove_objfile_probes)
11086 (probes_table_remove_objfile_probes): New functions.
11087 (register_solib_event_probe): Add 'objfile' parameter. Store it
11088 in the new probe_and_action. Don't store the probe in 'lookup'.
11089 (svr4_create_probe_breakpoints): Pass objfile to
11090 register_solib_event_probe.
11091 (_initialize_svr4_solib): Register a free_objfile observer.
11092
fb881986
TT
110932019-04-19 Tom Tromey <tom@tromey.com>
11094
11095 * common/queue.h: Remove.
11096
8732db6c
TT
110972019-04-19 Tom Tromey <tom@tromey.com>
11098
11099 * event-loop.c: Don't include "common/queue.h".
11100
97dfbadd
TT
111012019-04-19 Tom Tromey <tom@tromey.com>
11102
11103 * remote.c (remote_target): Use delete.
11104 * remote-notif.h: Include <list>, not "common/queue.h".
11105 (notif_client_p): Remove typedef.
11106 (remote_notif_state): Add constructor, destructor, initializer.
11107 <notif_queue>: Now a std::list.
11108 (remote_notif_state_xfree): Don't declare.
11109 * remote-notif.c (remote_notif_process, handle_notification)
11110 (remote_notif_state_allocate): Update.
11111 (~remote_notif_state): Rename from remote_notif_state_xfree.
11112
cf250e36
TT
111132019-04-19 Tom Tromey <tom@tromey.com>
11114
11115 * symfile.c (reread_symbols): Update.
11116 * objfiles.c (objfile_register_static_link)
11117 (objfile_lookup_static_link): Update
11118 (~objfile) Don't delete static_links.
11119 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11120
61f4b350
TT
111212019-04-19 Tom Tromey <tom@tromey.com>
11122
11123 * type-stack.h (struct type_stack) <insert>: Constify string.
11124 * type-stack.c (type_stack::insert): Constify string.
11125 * gdbtypes.h (lookup_template_type): Update.
11126 (address_space_name_to_int): Update.
11127 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11128 const.
11129 (lookup_template_type): Make name const.
11130 * c-exp.y: Update rules.
11131 (lex_one_token, classify_name, classify_inner_name)
11132 (c_print_token): Update.
11133 * p-exp.y: Update rules.
11134 (yylex): Update.
11135 * f-exp.y: Update rules.
11136 (yylex): Update.
11137 * d-exp.y: Update rules.
11138 (lex_one_token, classify_name, classify_inner_name): Update.
11139 * parse.c (write_dollar_variable, copy_name): Return std::string.
11140 * parser-defs.h (copy_name): Change return type.
11141 * m2-exp.y: Update rules.
11142 (yylex): Update.
11143 * go-exp.y (lex_one_token): Update.
11144 Update rules.
11145 (classify_unsafe_function, classify_packaged_name)
11146 (classify_name, yylex): Update.
11147
189b8c2e
ST
111482019-04-19 Sergei Trofimovich <siarheit@google.com>
11149
11150 * configure.ac: add --enable-source-highlight switch.
11151 * configure: Regenerate.
11152 * top.c (print_gdb_version): plumb --enable-source-highlight
11153 status to "show configuration".
11154
8ecb59f8
TT
111552019-04-19 Tom Tromey <tromey@adacore.com>
11156
11157 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11158 Check ADA_TYPE_P.
11159 (empty_record, ada_template_to_fixed_record_type_1)
11160 (template_to_static_fixed_type)
11161 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11162 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11163 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11164 macros.
11165
62160ec9
TT
111662019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11167
11168 PR symtab/24423:
11169 * source.c (print_source_lines_base): Advance "iter" when a
11170 control character is seen.
11171
f2ae8bc8
PW
111722019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11173
11174 * inferior.h (struct infcall_suspend_state_deleter):
11175 Catch exception in destructor to avoid crash.
11176
d563b953
PW
111772019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11178
11179 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11180 close to the add_com "shell".
11181
dc34c897
TT
111822019-04-18 Tom Tromey <tromey@adacore.com>
11183
11184 * process-stratum-target.h (class process_stratum_target)
11185 <stratum>: Add "final".
11186
a12e5744
TT
111872019-04-17 Tom Tromey <tromey@adacore.com>
11188
11189 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11190 against nullptr before use.
11191
a7e559cc
AH
111922019-04-17 Alan Hayward <alan.hayward@arm.com>
11193
11194 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11195
c01660c6
AB
111962019-04-17 Jim Wilson <jimw@sifive.com>
11197 Andrew Burgess <andrew.burgess@embecosm.com>
11198
11199 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11200 code read might fail, assume 4-byte breakpoint in that case.
11201
4aa866af
LS
112022019-04-15 Leszek Swirski <leszeks@google.com>
11203
11204 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11205 rather than a hand-rolled POD check when checking for forced MEMORY
11206 classification.
11207
48574d91
AH
112082019-04-15 Alan Hayward <alan.hayward@arm.com>
11209
11210 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11211 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11212 function.
11213 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11214 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11215 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11216 declaration.
11217
4da037ef
AH
112182019-04-15 Alan Hayward <alan.hayward@arm.com>
11219
11220 * aarch64-linux-nat.c
11221 (aarch64_linux_nat_target::thread_architecture): Add override.
11222 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11223 each VQ.
11224
ccb8d7e8
AH
112252019-04-15 Alan Hayward <alan.hayward@arm.com>
11226
11227 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11228
35add35e
AB
112292019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11230
11231 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11232 target types of size 96-bits, add some additional comments, and
11233 check that the builtin type we found was the correct size.
11234
51196bbc
EZ
112352019-04-12 Eli Zaretskii <eliz@gnu.org>
11236
11237 * utils.c (prompt_for_continue): Don't restore the styling at the
11238 end, as applied_style has the wrong value. This fixes styling in
11239 long lists of file names that are interrupted by the "Continue?"
11240 prompt.
11241
62253a61
AB
112422019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11243
11244 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11245 * c-lang.c (c_language_defn): Likewise.
11246 (cplus_language_defn): Likewise.
11247 (asm_language_defn): Likewise.
11248 (minimal_language_defn): Likewise.
11249 * d-lang.c (d_language_defn): Likewise.
11250 * f-lang.c (f_language_defn): Likewise.
11251 * go-lang.c (go_language_defn): Likewise.
11252 * language.c (unknown_language_defn): Likewise.
11253 (auto_language_defn): Likewise.
11254 * language.h (struct language_defn): Remove la_magic field.
11255 (LANG_MAGIC): Delete.
11256 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11257 * objc-lang.c (objc_language_defn): Likewise.
11258 * opencl-lang.c (opencl_language_defn): Likewise.
11259 * p-lang.c (pascal_language_defn): Likewise.
11260 * rust-lang.c (rust_language_defn): Likewise.
11261
a9158a86
AB
112622019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11263
11264 * riscv-tdep.c (riscv_type_align): New function.
11265 (riscv_type_alignment): Delete.
11266 (riscv_arg_location): Use 'type_align'.
11267 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11268
41077b66
AB
112692019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11270
11271 * gdbtypes.c (type_align): A struct with no non-static fields also
11272 has alignment of 1.
11273
9f0272f8
AB
112742019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11275
11276 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11277 component to 0.
11278 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11279 member.
11280 (riscv_struct_info::analyse): New implementation using new
11281 analyse_inner member function.
11282 (riscv_struct_info::field_offset): New member function.
11283 (riscv_struct_info::m_offsets): New member variable.
11284 (riscv_struct_info::analyse_inner): New private member function,
11285 takes the old implementation of riscv_struct_info::analyse but
11286 extended to track field offsets.
11287 (riscv_call_arg_struct): Update the struct folding special cases
11288 to handle cases where empty C++ structs, which are non-zero
11289 length, are found.
11290 (riscv_arg_location): Initialise the length of each location, a
11291 non-zero length now indicates the location is in use.
11292 (riscv_push_dummy_call): Allow for the first location having a
11293 non-zero offset when setting up arguments.
11294 (riscv_return_value): Likewise, but for return values.
11295
02cf60c7
TT
112962019-04-11 Tom Tromey <tromey@adacore.com>
11297
11298 * utils.c (internal_vproblem): Make "msg" const.
11299
68811f8f
AH
113002019-04-11 Alan Hayward <alan.hayward@arm.com>
11301
11302 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11303 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11304 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11305 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11306
3f52fdbc
KB
113072019-04-10 Kevin Buettner <kevinb@redhat.com>
11308
11309 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11310 function.
11311 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11312 of amd64_collect_native_gregset.
11313 (amd64_linux_nat_target::store_registers): Likewise.
11314
e9ad22ee
TT
113152019-04-10 Tom Tromey <tom@tromey.com>
11316
11317 * symtab.c (lookup_global_symbol_from_objfile)
11318 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11319 * objfiles.h (class separate_debug_iterator): New.
11320 (class separate_debug_range): New.
11321 (struct objfile) <separate_debug_objfiles>: New method.
11322 (objfile_separate_debug_iterate): Don't declare.
11323 * objfiles.c (separate_debug_iterator::operator++): Rename from
11324 objfile_separate_debug_iterate.
11325 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11326 iterator.
11327 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11328 iterator.
11329
ee371134
TT
113302019-04-10 Tom Tromey <tom@tromey.com>
11331
11332 * symfile.c (reread_symbols): Remove old comment.
11333 * objfiles.c (free_all_objfiles): Fix a typo.
11334
bf227d61
TT
113352019-04-10 Tom Tromey <tom@tromey.com>
11336
11337 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11338 * minsyms.c (lookup_minimal_symbol): Use foreach.
11339 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11340 (lookup_minimal_symbol_solib_trampoline): Likewise.
11341 * symfile.c (reread_symbols): Use foreach.
11342
8dc433a0
TT
113432019-04-09 Ivan Begert <ivanbegert@gmail.com>
11344 Tom Tromey <tromey@adacore.com>
11345
11346 PR rust/24414:
11347 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11348 (rust_lex_int_test): Change "value" to be LONGEST.
11349 (rust_lex_tests): Add test for long integer literal.
11350
9ab8741a
TT
113512019-04-09 Tom Tromey <tromey@adacore.com>
11352
11353 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11354 to bool.
11355 (extended_remote_target::attach): Update.
11356 (remote_target::remote_notice_new_inferior): Update.
11357 (remote_target::add_current_inferior_and_thread): Update.
11358 * inferior.c (exit_inferior_1): Use "false".
11359 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11360
e242fd12
SM
113612019-04-09 Simon Marchi <simon.marchi@efficios.com>
11362
9ca1957f 11363 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11364 the "start" command.
11365
2b0c8b01
KB
113662019-04-08 Kevin Buettner <kevinb@redhat.com>
11367
11368 * python/py-inferior.c (infpy_thread_from_thread_handle):
11369 Adjust comments to reflect renaming of thread_from_thread_handle
11370 to thread_from_handle. Adjust keywords. Fix type error message.
11371 (inferior_object_methods): Add thread_from_handle. Retain
11372 thread_from_thread_handle, but mark it as deprecated.
11373
50a82723
KB
113742019-04-08 Kevin Buettner <kevinb@redhat.com>
11375
11376 * gdbthread.h (find_thread_by_handle): Revise declaration.
11377 * thread.c (find_thread_by_handle): Likewise. Adjust
11378 implementation too.
11379 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11380 support for buffer objects as handles.
11381
cf63b016
KB
113822019-04-08 Kevin Buettner <kevinb@redhat.com>
11383
11384 * python/py-infthread.c (thpy_thread_handle): New function.
11385 (thread_object_methods): Register thpy_thread_handle.
11386
3d6c6204
KB
113872019-04-08 Kevin Buettner <kevinb@redhat.com>
11388
11389 * gdbthread.h (thread_to_thread_handle): Declare.
11390 * thread.c (gdbtypes.h): Include.
11391 (thread_to_thread_handle): New function.
11392
11393 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11394 (target_thread_info_to_thread_handle): Declare.
11395 * target.c (target_thread_info_to_thread_handle): New function.
11396 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11397 * target-delegates.c: Regenerate.
11398
11399 * linux-thread-db.c (class thread_db_target): Add method
11400 thread_info_to_thread_handle.
11401 (thread_db_target::thread_info_to_thread_handle): Define.
11402 * remote.c (class remote_target): Add new method
11403 thread_info_to_thread_handle.
11404 (remote_target::thread_info_to_thread_handle): Define.
11405
56be6ea8
PA
114062019-04-08 Pedro Alves <palves@redhat.com>
11407
11408 * common/common-exceptions.c (throw_exception): Don't create
11409 named object to throw; throw directly.
11410 (throw_it): Likewise. Don't initialize gdb_exception::message
11411 here, with new; pass FMT and AP to the ctor instead.
11412 * common/common-exceptions.h: Include <string>.
11413 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11414 const char *, va_list)): New ctor. Use std::make_shared.
11415 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11416 errors)): Delete.
11417 (gdb_exception_error::gdb_exception_error(enum errors, const char
11418 *, va_list)): New.
11419 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11420 Add assertion.
11421 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11422 errors)): Delete.
11423 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11424 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11425 Add assertion.
11426
eedc3f4f
TT
114272019-04-08 Tom Tromey <tom@tromey.com>
11428
11429 * valops.c (value_rtti_indirect_type): Replace throw_exception
11430 with throw.
11431 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11432 with throw.
11433 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11434 throw.
11435 * target.c (target_translate_tls_address): Replace throw_exception
11436 with throw.
11437 * stack.c (frame_apply_command_count): Replace throw_exception
11438 with throw.
11439 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11440 throw.
11441 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11442 with throw.
11443 * rs6000-tdep.c (rs6000_frame_cache)
11444 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11445 * remote.c: Replace throw_exception with throw.
11446 * record-full.c (record_full_message, record_full_wait_1)
11447 (record_full_restore): Replace throw_exception with throw.
11448 * record-btrace.c:
11449 (get_thread_current_frame_id, record_btrace_start_replaying)
11450 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11451 (cmd_record_btrace_start): Replace throw_exception with throw.
11452 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11453 throw.
11454 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11455 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11456 * linespec.c:
11457 (find_linespec_symbols): Replace throw_exception with throw.
11458 * infrun.c (displaced_step_prepare, resume): Replace
11459 throw_exception with throw.
11460 * infcmd.c (post_create_inferior): Replace throw_exception with
11461 throw.
11462 * inf-loop.c (inferior_event_handler): Replace throw_exception
11463 with throw.
11464 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11465 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11466 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11467 (get_prev_frame_always, get_frame_pc_if_available)
11468 (get_frame_address_in_block_if_available, get_frame_language):
11469 Replace throw_exception with throw.
11470 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11471 throw_exception with throw.
11472 * eval.c (fetch_subexp_value, evaluate_var_value)
11473 (evaluate_funcall, evaluate_subexp_standard): Replace
11474 throw_exception with throw.
11475 * dwarf2loc.c (call_site_find_chain)
11476 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11477 Replace throw_exception with throw.
11478 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11479 with throw.
11480 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11481 throw.
11482 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11483 * completer.c (complete_line_internal): Replace throw_exception
11484 with throw.
11485 * compile/compile-object-run.c (compile_object_run): Replace
11486 throw_exception with throw.
11487 * cli/cli-script.c (process_next_line): Replace throw_exception
11488 with throw.
11489 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11490 (btrace_enable, btrace_maint_update_pt_packets): Replace
11491 throw_exception with throw.
11492 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11493 throw_exception with throw.
11494 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11495 throw_exception with throw.
11496 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11497 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11498 * aarch64-tdep.c (aarch64_make_prologue_cache)
11499 (aarch64_make_stub_cache): Replace throw_exception with throw.
11500
26003a20
TT
115012019-04-08 Tom Tromey <tom@tromey.com>
11502
11503 * common/common-exceptions.c (throw_exception): Rename from
11504 throw_exception_cxx. Remove old copy. Make argument const.
11505 (throw_it): Create and throw exception objects directly.
11506 * common/common-exceptions.h (throw_exception): Make argument
11507 const.
11508 (struct gdb_exception_error): Add constructor.
11509 (struct gdb_exception_quit): Add constructor.
11510
d272eb37
TT
115112019-04-08 Tom Tromey <tom@tromey.com>
11512
11513 * common/common-exceptions.h (exception_rethrow): Don't declare.
11514 (TRY_SJLJ): Update comment.
11515 (TRY, CATCH, END_CATCH): Remove.
11516 * common/common-exceptions.c (exception_rethrow): Remove.
11517
230d2906
TT
115182019-04-08 Tom Tromey <tom@tromey.com>
11519
11520 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11521 Remove.
11522 (gdb_exception_error): Rename from
11523 gdb_exception_RETURN_MASK_ERROR.
11524 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11525 (gdb_quit_bad_alloc): Update.
11526 * aarch64-tdep.c: Update.
11527 * ada-lang.c: Update.
11528 * ada-typeprint.c: Update.
11529 * ada-valprint.c: Update.
11530 * amd64-tdep.c: Update.
11531 * arch-utils.c: Update.
11532 * break-catch-throw.c: Update.
11533 * breakpoint.c: Update.
11534 * btrace.c: Update.
11535 * c-varobj.c: Update.
11536 * cli/cli-cmds.c: Update.
11537 * cli/cli-interp.c: Update.
11538 * cli/cli-script.c: Update.
11539 * common/common-exceptions.c: Update.
11540 * common/new-op.c: Update.
11541 * common/selftest.c: Update.
11542 * compile/compile-c-symbols.c: Update.
11543 * compile/compile-cplus-symbols.c: Update.
11544 * compile/compile-object-load.c: Update.
11545 * compile/compile-object-run.c: Update.
11546 * completer.c: Update.
11547 * corelow.c: Update.
11548 * cp-abi.c: Update.
11549 * cp-support.c: Update.
11550 * cp-valprint.c: Update.
11551 * darwin-nat.c: Update.
11552 * disasm-selftests.c: Update.
11553 * dtrace-probe.c: Update.
11554 * dwarf-index-cache.c: Update.
11555 * dwarf-index-write.c: Update.
11556 * dwarf2-frame-tailcall.c: Update.
11557 * dwarf2-frame.c: Update.
11558 * dwarf2loc.c: Update.
11559 * dwarf2read.c: Update.
11560 * eval.c: Update.
11561 * event-loop.c: Update.
11562 * event-top.c: Update.
11563 * exec.c: Update.
11564 * f-valprint.c: Update.
11565 * fbsd-tdep.c: Update.
11566 * frame-unwind.c: Update.
11567 * frame.c: Update.
11568 * gdbtypes.c: Update.
11569 * gnu-v3-abi.c: Update.
11570 * guile/guile-internal.h: Update.
11571 * guile/scm-block.c: Update.
11572 * guile/scm-breakpoint.c: Update.
11573 * guile/scm-cmd.c: Update.
11574 * guile/scm-disasm.c: Update.
11575 * guile/scm-frame.c: Update.
11576 * guile/scm-lazy-string.c: Update.
11577 * guile/scm-math.c: Update.
11578 * guile/scm-param.c: Update.
11579 * guile/scm-ports.c: Update.
11580 * guile/scm-pretty-print.c: Update.
11581 * guile/scm-symbol.c: Update.
11582 * guile/scm-symtab.c: Update.
11583 * guile/scm-type.c: Update.
11584 * guile/scm-value.c: Update.
11585 * i386-linux-tdep.c: Update.
11586 * i386-tdep.c: Update.
11587 * inf-loop.c: Update.
11588 * infcall.c: Update.
11589 * infcmd.c: Update.
11590 * infrun.c: Update.
11591 * jit.c: Update.
11592 * language.c: Update.
11593 * linespec.c: Update.
11594 * linux-fork.c: Update.
11595 * linux-nat.c: Update.
11596 * linux-tdep.c: Update.
11597 * linux-thread-db.c: Update.
11598 * main.c: Update.
11599 * mi/mi-cmd-break.c: Update.
11600 * mi/mi-cmd-stack.c: Update.
11601 * mi/mi-interp.c: Update.
11602 * mi/mi-main.c: Update.
11603 * objc-lang.c: Update.
11604 * p-valprint.c: Update.
11605 * parse.c: Update.
11606 * ppc-linux-tdep.c: Update.
11607 * printcmd.c: Update.
11608 * python/py-arch.c: Update.
11609 * python/py-breakpoint.c: Update.
11610 * python/py-cmd.c: Update.
11611 * python/py-finishbreakpoint.c: Update.
11612 * python/py-frame.c: Update.
11613 * python/py-framefilter.c: Update.
11614 * python/py-gdb-readline.c: Update.
11615 * python/py-inferior.c: Update.
11616 * python/py-infthread.c: Update.
11617 * python/py-lazy-string.c: Update.
11618 * python/py-linetable.c: Update.
11619 * python/py-objfile.c: Update.
11620 * python/py-param.c: Update.
11621 * python/py-prettyprint.c: Update.
11622 * python/py-progspace.c: Update.
11623 * python/py-record-btrace.c: Update.
11624 * python/py-record.c: Update.
11625 * python/py-symbol.c: Update.
11626 * python/py-type.c: Update.
11627 * python/py-unwind.c: Update.
11628 * python/py-utils.c: Update.
11629 * python/py-value.c: Update.
11630 * python/python.c: Update.
11631 * record-btrace.c: Update.
11632 * record-full.c: Update.
11633 * remote-fileio.c: Update.
11634 * remote.c: Update.
11635 * riscv-tdep.c: Update.
11636 * rs6000-aix-tdep.c: Update.
11637 * rs6000-tdep.c: Update.
11638 * rust-exp.y: Update.
11639 * rust-lang.c: Update.
11640 * s390-tdep.c: Update.
11641 * selftest-arch.c: Update.
11642 * solib-dsbt.c: Update.
11643 * solib-frv.c: Update.
11644 * solib-spu.c: Update.
11645 * solib-svr4.c: Update.
11646 * solib.c: Update.
11647 * sparc64-linux-tdep.c: Update.
11648 * stack.c: Update.
11649 * symfile-mem.c: Update.
11650 * symmisc.c: Update.
11651 * target.c: Update.
11652 * thread.c: Update.
11653 * top.c: Update.
11654 * tracefile-tfile.c: Update.
11655 * tui/tui.c: Update.
11656 * typeprint.c: Update.
11657 * unittests/cli-utils-selftests.c: Update.
11658 * unittests/parse-connection-spec-selftests.c: Update.
11659 * valops.c: Update.
11660 * valprint.c: Update.
11661 * value.c: Update.
11662 * varobj.c: Update.
11663 * windows-nat.c: Update.
11664 * x86-linux-nat.c: Update.
11665 * xml-support.c: Update.
11666
a70b8144
TT
116672019-04-08 Tom Tromey <tom@tromey.com>
11668
11669 * xml-support.c: Use C++ exception handling.
11670 * x86-linux-nat.c: Use C++ exception handling.
11671 * windows-nat.c: Use C++ exception handling.
11672 * varobj.c: Use C++ exception handling.
11673 * value.c: Use C++ exception handling.
11674 * valprint.c: Use C++ exception handling.
11675 * valops.c: Use C++ exception handling.
11676 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11677 handling.
11678 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11679 * typeprint.c: Use C++ exception handling.
11680 * tui/tui.c: Use C++ exception handling.
11681 * tracefile-tfile.c: Use C++ exception handling.
11682 * top.c: Use C++ exception handling.
11683 * thread.c: Use C++ exception handling.
11684 * target.c: Use C++ exception handling.
11685 * symmisc.c: Use C++ exception handling.
11686 * symfile-mem.c: Use C++ exception handling.
11687 * stack.c: Use C++ exception handling.
11688 * sparc64-linux-tdep.c: Use C++ exception handling.
11689 * solib.c: Use C++ exception handling.
11690 * solib-svr4.c: Use C++ exception handling.
11691 * solib-spu.c: Use C++ exception handling.
11692 * solib-frv.c: Use C++ exception handling.
11693 * solib-dsbt.c: Use C++ exception handling.
11694 * selftest-arch.c: Use C++ exception handling.
11695 * s390-tdep.c: Use C++ exception handling.
11696 * rust-lang.c: Use C++ exception handling.
11697 * rust-exp.y: Use C++ exception handling.
11698 * rs6000-tdep.c: Use C++ exception handling.
11699 * rs6000-aix-tdep.c: Use C++ exception handling.
11700 * riscv-tdep.c: Use C++ exception handling.
11701 * remote.c: Use C++ exception handling.
11702 * remote-fileio.c: Use C++ exception handling.
11703 * record-full.c: Use C++ exception handling.
11704 * record-btrace.c: Use C++ exception handling.
11705 * python/python.c: Use C++ exception handling.
11706 * python/py-value.c: Use C++ exception handling.
11707 * python/py-utils.c: Use C++ exception handling.
11708 * python/py-unwind.c: Use C++ exception handling.
11709 * python/py-type.c: Use C++ exception handling.
11710 * python/py-symbol.c: Use C++ exception handling.
11711 * python/py-record.c: Use C++ exception handling.
11712 * python/py-record-btrace.c: Use C++ exception handling.
11713 * python/py-progspace.c: Use C++ exception handling.
11714 * python/py-prettyprint.c: Use C++ exception handling.
11715 * python/py-param.c: Use C++ exception handling.
11716 * python/py-objfile.c: Use C++ exception handling.
11717 * python/py-linetable.c: Use C++ exception handling.
11718 * python/py-lazy-string.c: Use C++ exception handling.
11719 * python/py-infthread.c: Use C++ exception handling.
11720 * python/py-inferior.c: Use C++ exception handling.
11721 * python/py-gdb-readline.c: Use C++ exception handling.
11722 * python/py-framefilter.c: Use C++ exception handling.
11723 * python/py-frame.c: Use C++ exception handling.
11724 * python/py-finishbreakpoint.c: Use C++ exception handling.
11725 * python/py-cmd.c: Use C++ exception handling.
11726 * python/py-breakpoint.c: Use C++ exception handling.
11727 * python/py-arch.c: Use C++ exception handling.
11728 * printcmd.c: Use C++ exception handling.
11729 * ppc-linux-tdep.c: Use C++ exception handling.
11730 * parse.c: Use C++ exception handling.
11731 * p-valprint.c: Use C++ exception handling.
11732 * objc-lang.c: Use C++ exception handling.
11733 * mi/mi-main.c: Use C++ exception handling.
11734 * mi/mi-interp.c: Use C++ exception handling.
11735 * mi/mi-cmd-stack.c: Use C++ exception handling.
11736 * mi/mi-cmd-break.c: Use C++ exception handling.
11737 * main.c: Use C++ exception handling.
11738 * linux-thread-db.c: Use C++ exception handling.
11739 * linux-tdep.c: Use C++ exception handling.
11740 * linux-nat.c: Use C++ exception handling.
11741 * linux-fork.c: Use C++ exception handling.
11742 * linespec.c: Use C++ exception handling.
11743 * language.c: Use C++ exception handling.
11744 * jit.c: Use C++ exception handling.
11745 * infrun.c: Use C++ exception handling.
11746 * infcmd.c: Use C++ exception handling.
11747 * infcall.c: Use C++ exception handling.
11748 * inf-loop.c: Use C++ exception handling.
11749 * i386-tdep.c: Use C++ exception handling.
11750 * i386-linux-tdep.c: Use C++ exception handling.
11751 * guile/scm-value.c: Use C++ exception handling.
11752 * guile/scm-type.c: Use C++ exception handling.
11753 * guile/scm-symtab.c: Use C++ exception handling.
11754 * guile/scm-symbol.c: Use C++ exception handling.
11755 * guile/scm-pretty-print.c: Use C++ exception handling.
11756 * guile/scm-ports.c: Use C++ exception handling.
11757 * guile/scm-param.c: Use C++ exception handling.
11758 * guile/scm-math.c: Use C++ exception handling.
11759 * guile/scm-lazy-string.c: Use C++ exception handling.
11760 * guile/scm-frame.c: Use C++ exception handling.
11761 * guile/scm-disasm.c: Use C++ exception handling.
11762 * guile/scm-cmd.c: Use C++ exception handling.
11763 * guile/scm-breakpoint.c: Use C++ exception handling.
11764 * guile/scm-block.c: Use C++ exception handling.
11765 * guile/guile-internal.h: Use C++ exception handling.
11766 * gnu-v3-abi.c: Use C++ exception handling.
11767 * gdbtypes.c: Use C++ exception handling.
11768 * frame.c: Use C++ exception handling.
11769 * frame-unwind.c: Use C++ exception handling.
11770 * fbsd-tdep.c: Use C++ exception handling.
11771 * f-valprint.c: Use C++ exception handling.
11772 * exec.c: Use C++ exception handling.
11773 * event-top.c: Use C++ exception handling.
11774 * event-loop.c: Use C++ exception handling.
11775 * eval.c: Use C++ exception handling.
11776 * dwarf2read.c: Use C++ exception handling.
11777 * dwarf2loc.c: Use C++ exception handling.
11778 * dwarf2-frame.c: Use C++ exception handling.
11779 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11780 * dwarf-index-write.c: Use C++ exception handling.
11781 * dwarf-index-cache.c: Use C++ exception handling.
11782 * dtrace-probe.c: Use C++ exception handling.
11783 * disasm-selftests.c: Use C++ exception handling.
11784 * darwin-nat.c: Use C++ exception handling.
11785 * cp-valprint.c: Use C++ exception handling.
11786 * cp-support.c: Use C++ exception handling.
11787 * cp-abi.c: Use C++ exception handling.
11788 * corelow.c: Use C++ exception handling.
11789 * completer.c: Use C++ exception handling.
11790 * compile/compile-object-run.c: Use C++ exception handling.
11791 * compile/compile-object-load.c: Use C++ exception handling.
11792 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11793 * compile/compile-c-symbols.c: Use C++ exception handling.
11794 * common/selftest.c: Use C++ exception handling.
11795 * common/new-op.c: Use C++ exception handling.
11796 * cli/cli-script.c: Use C++ exception handling.
11797 * cli/cli-interp.c: Use C++ exception handling.
11798 * cli/cli-cmds.c: Use C++ exception handling.
11799 * c-varobj.c: Use C++ exception handling.
11800 * btrace.c: Use C++ exception handling.
11801 * breakpoint.c: Use C++ exception handling.
11802 * break-catch-throw.c: Use C++ exception handling.
11803 * arch-utils.c: Use C++ exception handling.
11804 * amd64-tdep.c: Use C++ exception handling.
11805 * ada-valprint.c: Use C++ exception handling.
11806 * ada-typeprint.c: Use C++ exception handling.
11807 * ada-lang.c: Use C++ exception handling.
11808 * aarch64-tdep.c: Use C++ exception handling.
11809
3d6e9d23
TT
118102019-04-08 Tom Tromey <tom@tromey.com>
11811
11812 * xml-support.c (gdb_xml_parser::parse): Update.
11813 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11814 * value.c (show_convenience): Update.
11815 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11816 (test_parse_flags_qcs): Update.
11817 * thread.c (thr_try_catch_cmd): Update.
11818 * target.c (target_translate_tls_address): Update.
11819 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11820 (info_frame_command_core, frame_apply_command_count): Update.
11821 * rust-exp.y (rust_lex_exception_test): Update.
11822 * riscv-tdep.c (riscv_print_one_register_info): Update.
11823 * remote.c (remote_target::enable_btrace): Update.
11824 * record-btrace.c (record_btrace_enable_warn): Update.
11825 * python/py-utils.c (gdbpy_convert_exception): Update.
11826 * printcmd.c (do_one_display, print_variable_and_value): Update.
11827 * mi/mi-main.c (mi_print_exception): Update.
11828 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11829 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11830 * linux-nat.c (linux_nat_target::attach): Update.
11831 * linux-fork.c (class scoped_switch_fork_info): Update.
11832 * infrun.c (displaced_step_prepare): Update.
11833 * infcall.c (call_function_by_hand_dummy): Update.
11834 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11835 * gnu-v3-abi.c (print_one_vtable): Update.
11836 * frame.c (get_prev_frame_always): Update.
11837 * f-valprint.c (info_common_command_for_block): Update.
11838 * exec.c (try_open_exec_file): Update.
11839 * exceptions.c (print_exception, exception_print)
11840 (exception_fprintf, exception_print_same): Update.
11841 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11842 * dwarf-index-cache.c (index_cache::store)
11843 (index_cache::lookup_gdb_index): Update.
11844 * darwin-nat.c (maybe_cache_shell): Update.
11845 * cp-valprint.c (cp_print_value_fields): Update.
11846 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11847 (gcc_cplus_symbol_address): Update.
11848 * compile/compile-c-symbols.c (gcc_convert_symbol)
11849 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11850 * common/selftest.c: Update.
11851 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11852 a std::string.
11853 (exception_try_scope_entry, exception_try_scope_exit): Don't
11854 declare.
11855 (struct exception_try_scope): Remove.
11856 (TRY): Don't use exception_try_scope.
11857 (struct gdb_exception): Add constructor, operator=.
11858 <what>: New method.
11859 (struct gdb_exception_RETURN_MASK_ALL)
11860 (struct gdb_exception_RETURN_MASK_ERROR)
11861 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11862 (struct gdb_quit_bad_alloc): Update.
11863 * common/common-exceptions.c (exception_none): Change
11864 initializer.
11865 (struct catcher) <state, exception>: Initialize inline.
11866 <prev>: Remove member.
11867 (current_catcher): Remove.
11868 (catchers): New global.
11869 (exceptions_state_mc_init): Simplify.
11870 (catcher_pop): Remove.
11871 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11872 (try_scope_depth, exception_try_scope_entry)
11873 (exception_try_scope_exit): Remove.
11874 (throw_exception_sjlj): Update.
11875 (exception_messages, exception_messages_size): Remove.
11876 (throw_it): Simplify.
11877 (gdb_exception_sliced_copy): Remove.
11878 (throw_exception_cxx): Update.
11879 * cli/cli-script.c (script_from_file): Update.
11880 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11881 Update.
11882 * ada-valprint.c (ada_val_print): Update.
11883 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11884 (create_excep_cond_exprs): Update.
11885
c5c10118
TT
118862019-04-08 Tom Tromey <tom@tromey.com>
11887
11888 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11889 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11890 (TRY, CATCH, END_CATCH): Remove some definitions.
11891 * common/common-exceptions.c: Don't use GDB_XCPT.
11892 (catcher_list_size): Remove.
11893 (throw_exception, throw_it): Simplify.
11894
4de283e4
TT
118952019-04-05 Tom Tromey <tom@tromey.com>
11896
11897 Revert the header-sorting patch.
11898 * ft32-tdep.c: Revert.
11899 * frv-tdep.c: Revert.
11900 * frv-linux-tdep.c: Revert.
11901 * frame.c: Revert.
11902 * frame-unwind.c: Revert.
11903 * frame-base.c: Revert.
11904 * fork-child.c: Revert.
11905 * findvar.c: Revert.
11906 * findcmd.c: Revert.
11907 * filesystem.c: Revert.
11908 * filename-seen-cache.h: Revert.
11909 * filename-seen-cache.c: Revert.
11910 * fbsd-tdep.c: Revert.
11911 * fbsd-nat.h: Revert.
11912 * fbsd-nat.c: Revert.
11913 * f-valprint.c: Revert.
11914 * f-typeprint.c: Revert.
11915 * f-lang.c: Revert.
11916 * extension.h: Revert.
11917 * extension.c: Revert.
11918 * extension-priv.h: Revert.
11919 * expprint.c: Revert.
11920 * exec.h: Revert.
11921 * exec.c: Revert.
11922 * exceptions.c: Revert.
11923 * event-top.c: Revert.
11924 * event-loop.c: Revert.
11925 * eval.c: Revert.
11926 * elfread.c: Revert.
11927 * dwarf2read.h: Revert.
11928 * dwarf2read.c: Revert.
11929 * dwarf2loc.c: Revert.
11930 * dwarf2expr.h: Revert.
11931 * dwarf2expr.c: Revert.
11932 * dwarf2-frame.c: Revert.
11933 * dwarf2-frame-tailcall.c: Revert.
11934 * dwarf-index-write.h: Revert.
11935 * dwarf-index-write.c: Revert.
11936 * dwarf-index-common.c: Revert.
11937 * dwarf-index-cache.h: Revert.
11938 * dwarf-index-cache.c: Revert.
11939 * dummy-frame.c: Revert.
11940 * dtrace-probe.c: Revert.
11941 * disasm.h: Revert.
11942 * disasm.c: Revert.
11943 * disasm-selftests.c: Revert.
11944 * dictionary.c: Revert.
11945 * dicos-tdep.c: Revert.
11946 * demangle.c: Revert.
11947 * dcache.h: Revert.
11948 * dcache.c: Revert.
11949 * darwin-nat.h: Revert.
11950 * darwin-nat.c: Revert.
11951 * darwin-nat-info.c: Revert.
11952 * d-valprint.c: Revert.
11953 * d-namespace.c: Revert.
11954 * d-lang.c: Revert.
11955 * ctf.c: Revert.
11956 * csky-tdep.c: Revert.
11957 * csky-linux-tdep.c: Revert.
11958 * cris-tdep.c: Revert.
11959 * cris-linux-tdep.c: Revert.
11960 * cp-valprint.c: Revert.
11961 * cp-support.c: Revert.
11962 * cp-namespace.c: Revert.
11963 * cp-abi.c: Revert.
11964 * corelow.c: Revert.
11965 * corefile.c: Revert.
11966 * continuations.c: Revert.
11967 * completer.h: Revert.
11968 * completer.c: Revert.
11969 * complaints.c: Revert.
11970 * coffread.c: Revert.
11971 * coff-pe-read.c: Revert.
11972 * cli-out.h: Revert.
11973 * cli-out.c: Revert.
11974 * charset.c: Revert.
11975 * c-varobj.c: Revert.
11976 * c-valprint.c: Revert.
11977 * c-typeprint.c: Revert.
11978 * c-lang.c: Revert.
11979 * buildsym.c: Revert.
11980 * buildsym-legacy.c: Revert.
11981 * build-id.h: Revert.
11982 * build-id.c: Revert.
11983 * btrace.c: Revert.
11984 * bsd-uthread.c: Revert.
11985 * breakpoint.h: Revert.
11986 * breakpoint.c: Revert.
11987 * break-catch-throw.c: Revert.
11988 * break-catch-syscall.c: Revert.
11989 * break-catch-sig.c: Revert.
11990 * blockframe.c: Revert.
11991 * block.c: Revert.
11992 * bfin-tdep.c: Revert.
11993 * bfin-linux-tdep.c: Revert.
11994 * bfd-target.c: Revert.
11995 * bcache.c: Revert.
11996 * ax-general.c: Revert.
11997 * ax-gdb.h: Revert.
11998 * ax-gdb.c: Revert.
11999 * avr-tdep.c: Revert.
12000 * auxv.c: Revert.
12001 * auto-load.c: Revert.
12002 * arm-wince-tdep.c: Revert.
12003 * arm-tdep.c: Revert.
12004 * arm-symbian-tdep.c: Revert.
12005 * arm-pikeos-tdep.c: Revert.
12006 * arm-obsd-tdep.c: Revert.
12007 * arm-nbsd-tdep.c: Revert.
12008 * arm-nbsd-nat.c: Revert.
12009 * arm-linux-tdep.c: Revert.
12010 * arm-linux-nat.c: Revert.
12011 * arm-fbsd-tdep.c: Revert.
12012 * arm-fbsd-nat.c: Revert.
12013 * arm-bsd-tdep.c: Revert.
12014 * arch-utils.c: Revert.
12015 * arc-tdep.c: Revert.
12016 * arc-newlib-tdep.c: Revert.
12017 * annotate.h: Revert.
12018 * annotate.c: Revert.
12019 * amd64-windows-tdep.c: Revert.
12020 * amd64-windows-nat.c: Revert.
12021 * amd64-tdep.c: Revert.
12022 * amd64-sol2-tdep.c: Revert.
12023 * amd64-obsd-tdep.c: Revert.
12024 * amd64-obsd-nat.c: Revert.
12025 * amd64-nbsd-tdep.c: Revert.
12026 * amd64-nbsd-nat.c: Revert.
12027 * amd64-nat.c: Revert.
12028 * amd64-linux-tdep.c: Revert.
12029 * amd64-linux-nat.c: Revert.
12030 * amd64-fbsd-tdep.c: Revert.
12031 * amd64-fbsd-nat.c: Revert.
12032 * amd64-dicos-tdep.c: Revert.
12033 * amd64-darwin-tdep.c: Revert.
12034 * amd64-bsd-nat.c: Revert.
12035 * alpha-tdep.c: Revert.
12036 * alpha-obsd-tdep.c: Revert.
12037 * alpha-nbsd-tdep.c: Revert.
12038 * alpha-mdebug-tdep.c: Revert.
12039 * alpha-linux-tdep.c: Revert.
12040 * alpha-linux-nat.c: Revert.
12041 * alpha-bsd-tdep.c: Revert.
12042 * alpha-bsd-nat.c: Revert.
12043 * aix-thread.c: Revert.
12044 * agent.c: Revert.
12045 * addrmap.c: Revert.
12046 * ada-varobj.c: Revert.
12047 * ada-valprint.c: Revert.
12048 * ada-typeprint.c: Revert.
12049 * ada-tasks.c: Revert.
12050 * ada-lang.c: Revert.
12051 * aarch64-tdep.c: Revert.
12052 * aarch64-ravenscar-thread.c: Revert.
12053 * aarch64-newlib-tdep.c: Revert.
12054 * aarch64-linux-tdep.c: Revert.
12055 * aarch64-linux-nat.c: Revert.
12056 * aarch64-fbsd-tdep.c: Revert.
12057 * aarch64-fbsd-nat.c: Revert.
12058 * aarch32-linux-nat.c: Revert.
12059
d55e5aa6
TT
120602019-04-05 Tom Tromey <tom@tromey.com>
12061
12062 * ft32-tdep.c: Sort headers.
12063 * frv-tdep.c: Sort headers.
12064 * frv-linux-tdep.c: Sort headers.
12065 * frame.c: Sort headers.
12066 * frame-unwind.c: Sort headers.
12067 * frame-base.c: Sort headers.
12068 * fork-child.c: Sort headers.
12069 * findvar.c: Sort headers.
12070 * findcmd.c: Sort headers.
12071 * filesystem.c: Sort headers.
12072 * filename-seen-cache.h: Sort headers.
12073 * filename-seen-cache.c: Sort headers.
12074 * fbsd-tdep.c: Sort headers.
12075 * fbsd-nat.h: Sort headers.
12076 * fbsd-nat.c: Sort headers.
12077 * f-valprint.c: Sort headers.
12078 * f-typeprint.c: Sort headers.
12079 * f-lang.c: Sort headers.
12080 * extension.h: Sort headers.
12081 * extension.c: Sort headers.
12082 * extension-priv.h: Sort headers.
12083 * expprint.c: Sort headers.
12084 * exec.h: Sort headers.
12085 * exec.c: Sort headers.
12086 * exceptions.c: Sort headers.
12087 * event-top.c: Sort headers.
12088 * event-loop.c: Sort headers.
12089 * eval.c: Sort headers.
12090 * elfread.c: Sort headers.
12091 * dwarf2read.h: Sort headers.
12092 * dwarf2read.c: Sort headers.
12093 * dwarf2loc.c: Sort headers.
12094 * dwarf2expr.h: Sort headers.
12095 * dwarf2expr.c: Sort headers.
12096 * dwarf2-frame.c: Sort headers.
12097 * dwarf2-frame-tailcall.c: Sort headers.
12098 * dwarf-index-write.h: Sort headers.
12099 * dwarf-index-write.c: Sort headers.
12100 * dwarf-index-common.c: Sort headers.
12101 * dwarf-index-cache.h: Sort headers.
12102 * dwarf-index-cache.c: Sort headers.
12103 * dummy-frame.c: Sort headers.
12104 * dtrace-probe.c: Sort headers.
12105 * disasm.h: Sort headers.
12106 * disasm.c: Sort headers.
12107 * disasm-selftests.c: Sort headers.
12108 * dictionary.c: Sort headers.
12109 * dicos-tdep.c: Sort headers.
12110 * demangle.c: Sort headers.
12111 * dcache.h: Sort headers.
12112 * dcache.c: Sort headers.
12113 * darwin-nat.h: Sort headers.
12114 * darwin-nat.c: Sort headers.
12115 * darwin-nat-info.c: Sort headers.
12116 * d-valprint.c: Sort headers.
12117 * d-namespace.c: Sort headers.
12118 * d-lang.c: Sort headers.
12119 * ctf.c: Sort headers.
12120 * csky-tdep.c: Sort headers.
12121 * csky-linux-tdep.c: Sort headers.
12122 * cris-tdep.c: Sort headers.
12123 * cris-linux-tdep.c: Sort headers.
12124 * cp-valprint.c: Sort headers.
12125 * cp-support.c: Sort headers.
12126 * cp-namespace.c: Sort headers.
12127 * cp-abi.c: Sort headers.
12128 * corelow.c: Sort headers.
12129 * corefile.c: Sort headers.
12130 * continuations.c: Sort headers.
12131 * completer.h: Sort headers.
12132 * completer.c: Sort headers.
12133 * complaints.c: Sort headers.
12134 * coffread.c: Sort headers.
12135 * coff-pe-read.c: Sort headers.
12136 * cli-out.h: Sort headers.
12137 * cli-out.c: Sort headers.
12138 * charset.c: Sort headers.
12139 * c-varobj.c: Sort headers.
12140 * c-valprint.c: Sort headers.
12141 * c-typeprint.c: Sort headers.
12142 * c-lang.c: Sort headers.
12143 * buildsym.c: Sort headers.
12144 * buildsym-legacy.c: Sort headers.
12145 * build-id.h: Sort headers.
12146 * build-id.c: Sort headers.
12147 * btrace.c: Sort headers.
12148 * bsd-uthread.c: Sort headers.
12149 * breakpoint.h: Sort headers.
12150 * breakpoint.c: Sort headers.
12151 * break-catch-throw.c: Sort headers.
12152 * break-catch-syscall.c: Sort headers.
12153 * break-catch-sig.c: Sort headers.
12154 * blockframe.c: Sort headers.
12155 * block.c: Sort headers.
12156 * bfin-tdep.c: Sort headers.
12157 * bfin-linux-tdep.c: Sort headers.
12158 * bfd-target.c: Sort headers.
12159 * bcache.c: Sort headers.
12160 * ax-general.c: Sort headers.
12161 * ax-gdb.h: Sort headers.
12162 * ax-gdb.c: Sort headers.
12163 * avr-tdep.c: Sort headers.
12164 * auxv.c: Sort headers.
12165 * auto-load.c: Sort headers.
12166 * arm-wince-tdep.c: Sort headers.
12167 * arm-tdep.c: Sort headers.
12168 * arm-symbian-tdep.c: Sort headers.
12169 * arm-pikeos-tdep.c: Sort headers.
12170 * arm-obsd-tdep.c: Sort headers.
12171 * arm-nbsd-tdep.c: Sort headers.
12172 * arm-nbsd-nat.c: Sort headers.
12173 * arm-linux-tdep.c: Sort headers.
12174 * arm-linux-nat.c: Sort headers.
12175 * arm-fbsd-tdep.c: Sort headers.
12176 * arm-fbsd-nat.c: Sort headers.
12177 * arm-bsd-tdep.c: Sort headers.
12178 * arch-utils.c: Sort headers.
12179 * arc-tdep.c: Sort headers.
12180 * arc-newlib-tdep.c: Sort headers.
12181 * annotate.h: Sort headers.
12182 * annotate.c: Sort headers.
12183 * amd64-windows-tdep.c: Sort headers.
12184 * amd64-windows-nat.c: Sort headers.
12185 * amd64-tdep.c: Sort headers.
12186 * amd64-sol2-tdep.c: Sort headers.
12187 * amd64-obsd-tdep.c: Sort headers.
12188 * amd64-obsd-nat.c: Sort headers.
12189 * amd64-nbsd-tdep.c: Sort headers.
12190 * amd64-nbsd-nat.c: Sort headers.
12191 * amd64-nat.c: Sort headers.
12192 * amd64-linux-tdep.c: Sort headers.
12193 * amd64-linux-nat.c: Sort headers.
12194 * amd64-fbsd-tdep.c: Sort headers.
12195 * amd64-fbsd-nat.c: Sort headers.
12196 * amd64-dicos-tdep.c: Sort headers.
12197 * amd64-darwin-tdep.c: Sort headers.
12198 * amd64-bsd-nat.c: Sort headers.
12199 * alpha-tdep.c: Sort headers.
12200 * alpha-obsd-tdep.c: Sort headers.
12201 * alpha-nbsd-tdep.c: Sort headers.
12202 * alpha-mdebug-tdep.c: Sort headers.
12203 * alpha-linux-tdep.c: Sort headers.
12204 * alpha-linux-nat.c: Sort headers.
12205 * alpha-bsd-tdep.c: Sort headers.
12206 * alpha-bsd-nat.c: Sort headers.
12207 * aix-thread.c: Sort headers.
12208 * agent.c: Sort headers.
12209 * addrmap.c: Sort headers.
12210 * ada-varobj.c: Sort headers.
12211 * ada-valprint.c: Sort headers.
12212 * ada-typeprint.c: Sort headers.
12213 * ada-tasks.c: Sort headers.
12214 * ada-lang.c: Sort headers.
12215 * aarch64-tdep.c: Sort headers.
12216 * aarch64-ravenscar-thread.c: Sort headers.
12217 * aarch64-newlib-tdep.c: Sort headers.
12218 * aarch64-linux-tdep.c: Sort headers.
12219 * aarch64-linux-nat.c: Sort headers.
12220 * aarch64-fbsd-tdep.c: Sort headers.
12221 * aarch64-fbsd-nat.c: Sort headers.
12222 * aarch32-linux-nat.c: Sort headers.
12223
699bd4cf
TT
122242019-04-04 Tom Tromey <tom@tromey.com>
12225
12226 * varobj.c (varobj_create): Update.
12227 * rust-exp.y (struct rust_parser) <update_innermost_block,
12228 lookup_symbol>: New methods.
12229 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12230 Rename.
12231 (rust_parser::rust_lookup_type)
12232 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12233 * printcmd.c (display_command, do_one_display): Update.
12234 * parser-defs.h (struct parser_state) <parser_state>: Add
12235 "tracker" parameter.
12236 (block_tracker): New member.
12237 (class innermost_block_tracker) <innermost_block_tracker>: Add
12238 "types" parameter.
12239 <reset>: Remove method.
12240 (innermost_block): Don't declare.
12241 (null_post_parser): Update.
12242 * parse.c (innermost_block): Remove global.
12243 (write_dollar_variable): Update.
12244 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12245 Remove "tracker_types" parameter.
12246 (parse_expression): Add "tracker" parameter.
12247 (parse_expression_for_completion): Update.
12248 (null_post_parser): Add "tracker" parameter.
12249 * p-exp.y: Update rules.
12250 * m2-exp.y: Update rules.
12251 * language.h (struct language_defn) <la_post_parser>: Add
12252 "tracker" parameter.
12253 * go-exp.y: Update rules.
12254 * f-exp.y: Update rules.
12255 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12256 parameter.
12257 * d-exp.y: Update rules.
12258 * c-exp.y: Update rules.
12259 * breakpoint.c (set_breakpoint_condition): Create an
12260 innermost_block_tracker.
12261 (watch_command_1): Likewise.
12262 * ada-lang.c (resolve): Add "tracker" parameter.
12263 (resolve_subexp): Likewise.
12264 * ada-exp.y (write_var_from_sym): Update.
12265
dac43e32
TT
122662019-04-04 Tom Tromey <tom@tromey.com>
12267
12268 * type-stack.h: New file.
12269 * type-stack.c: New file.
12270 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12271 type-stack.h.
12272 (insert_into_type_stack, insert_type, push_type, push_type_int)
12273 (insert_type_address_space, pop_type, pop_type_int)
12274 (pop_typelist, pop_type_stack, append_type_stack)
12275 (push_type_stack, get_type_stack, push_typelist)
12276 (follow_type_instance_flags, follow_types): Don't declare.
12277 * parse.c (type_stack): Remove global.
12278 (parse_exp_in_context): Update.
12279 (insert_into_type_stack, insert_type, push_type, push_type_int)
12280 (insert_type_address_space, pop_type, pop_type_int)
12281 (pop_typelist, pop_type_stack, append_type_stack)
12282 (push_type_stack, get_type_stack, push_typelist)
12283 (follow_type_instance_flags, follow_types): Remove (moved to
12284 type-stack.c).
12285 * f-exp.y (type_stack): New global.
12286 Update rules.
12287 (push_kind_type, f_parse): Update.
12288 * d-exp.y (type_stack): New global.
12289 Update rules.
12290 (d_parse): Update.
12291 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12292 Update rules.
12293 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12294 (HFILES_NO_SRCDIR): Add type-stack.h.
12295
2a612529
TT
122962019-04-04 Tom Tromey <tom@tromey.com>
12297
12298 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12299 (rust_parser::convert_ast_to_expression, rust_parse)
12300 (rust_lex_test_completion, rust_lex_tests): Update.
12301 * parser-defs.h (struct expr_completion_state): New.
12302 (struct parser_state) <parser_state>: Add completion parameter.
12303 <mark_struct_expression, mark_completion_tag>: New methods.
12304 <parse_completion, m_completion_state>: New members.
12305 (prefixify_expression, null_post_parser): Update.
12306 (mark_struct_expression, mark_completion_tag): Don't declare.
12307 * parse.c (parse_completion, expout_last_struct)
12308 (expout_tag_completion_type, expout_completion_name): Remove
12309 globals.
12310 (parser_state::mark_struct_expression)
12311 (parser_state::mark_completion_tag): Now methods.
12312 (prefixify_expression): Add last_struct parameter.
12313 (prefixify_subexp): Likewise.
12314 (parse_exp_1): Update.
12315 (parse_exp_in_context): Add cstate parameter. Update.
12316 (parse_expression_for_completion): Create an
12317 expr_completion_state.
12318 (null_post_parser): Add "completion" parameter.
12319 * p-exp.y: Update rules.
12320 (yylex): Update.
12321 * language.h (struct language_defn) <la_post_parser>: Add
12322 "completing" parameter.
12323 * go-exp.y: Update rules.
12324 (lex_one_token): Update.
12325 * expression.h (parse_completion): Don't declare.
12326 * d-exp.y: Update rules.
12327 (lex_one_token): Update rules.
12328 * c-exp.y: Update rules.
12329 (lex_one_token): Update.
12330 * ada-lang.c (resolve): Add "parse_completion" parameter.
12331 (resolve_subexp): Likewise.
12332 (ada_resolve_function): Likewise.
12333
43476f0b
TT
123342019-04-04 Tom Tromey <tom@tromey.com>
12335
12336 * parser-defs.h (struct parser_state) <start_arglist,
12337 end_arglist>: New methods.
12338 <arglist_len, m_funcall_chain>: New members.
12339 (arglist_len, start_arglist, end_arglist): Don't declare.
12340 * parse.c (arglist_len, funcall_chain): Remove global.
12341 (start_arglist, end_arglist): Remove functions.
12342 (parse_exp_in_context): Update.
12343 * p-exp.y: Update rules.
12344 * m2-exp.y: Update rules.
12345 * go-exp.y: Update rules.
12346 * f-exp.y: Update rules.
12347 * d-exp.y: Update rules.
12348 * c-exp.y: Update rules.
12349
5776fca3
TT
123502019-04-04 Tom Tromey <tom@tromey.com>
12351
12352 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12353 lex_operator, push_back>: New methods.
12354 Update all rules.
12355 (rust_parser::lex_hex, lex_escape): Rename and update.
12356 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12357 (rust_parser::lex_operator): Rename and update.
12358 (rust_parser::lex_number, rustyylex, rustyyerror)
12359 (rust_lex_test_init, rust_lex_test_sequence)
12360 (rust_lex_test_push_back, rust_lex_tests): Update.
12361 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12362 parameter.
12363 <lexptr, prev_lexptr>: New members.
12364 (lexptr, prev_lexptr): Don't declare.
12365 * parse.c (lexptr, prev_lexptr): Remove globals.
12366 (parse_exp_in_context): Update.
12367 * p-exp.y (yylex, yyerror): Update.
12368 * m2-exp.y (parse_number, yylex, yyerror): Update.
12369 * go-exp.y (lex_one_token, yyerror): Update.
12370 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12371 * d-exp.y (lex_one_token, yyerror): Update.
12372 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12373 (lex_one_token, yyerror): Update.
12374 * ada-lex.l (YY_INPUT): Update.
12375 (rewind_to_char): Update.
12376 * ada-exp.y (yyerror): Update.
12377
8621b685
TT
123782019-04-04 Tom Tromey <tom@tromey.com>
12379
12380 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12381 * parser-defs.h (struct parser_state) <parser_state>: Add new
12382 parameter.
12383 <comma_terminates>: New member.
12384 (comma_terminates): Don't declare global.
12385 * parse.c (comma_terminates): Remove global.
12386 (parse_exp_in_context): Update.
12387 * p-exp.y (yylex): Update.
12388 * m2-exp.y (yylex): Update.
12389 * go-exp.y (lex_one_token): Update.
12390 * f-exp.y (yylex): Update.
12391 * d-exp.y (lex_one_token): Update.
12392 * c-exp.y (lex_one_token): Update.
12393 * ada-lex.l: Update.
12394
28aaf3fd
TT
123952019-04-04 Tom Tromey <tom@tromey.com>
12396
12397 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12398 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12399 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12400 * parser-defs.h (paren_depth): Don't declare.
12401 * parse.c (paren_depth): Remove global.
12402 (parse_exp_in_context): Update.
12403 * p-exp.y (paren_depth): New global.
12404 (pascal_parse): Initialize it.
12405 * m2-exp.y (paren_depth): New global.
12406 (m2_parse): Initialize it.
12407 * go-exp.y (paren_depth): New global.
12408 (go_parse): Initialize it.
12409 * f-exp.y (paren_depth): New global.
12410 (f_parse): Initialize it.
12411 * d-exp.y (paren_depth): New global.
12412 (d_parse): Initialize it.
12413 * c-exp.y (paren_depth): New global.
12414 (c_parse): Initialize it.
12415 * ada-lex.l (paren_depth): New global.
12416 (lexer_init): Initialize it.
12417
1e58a4a4
TT
124182019-04-04 Tom Tromey <tom@tromey.com>
12419
12420 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12421 (rust_parser::convert_ast_to_type)
12422 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12423 * parser-defs.h (struct parser_state) <parser_state>: Add
12424 parameters. Initialize new members.
12425 <expression_context_block, expression_context_pc>: New members.
12426 * parse.c (expression_context_block, expression_context_pc):
12427 Remove globals.
12428 (parse_exp_in_context): Update.
12429 * p-exp.y: Update all rules.
12430 (yylex): Update.
12431 * m2-exp.y: Update all rules.
12432 (yylex): Update.
12433 * go-exp.y (yylex): Update.
12434 * f-exp.y (yylex): Update.
12435 * d-exp.y: Update all rules.
12436 (yylex): Update.
12437 * c-exp.y: Update all rules.
12438 (lex_one_token, classify_name, yylex, c_parse): Update.
12439 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12440
37eedb39
TT
124412019-04-04 Tom Tromey <tom@tromey.com>
12442
12443 * gdbarch.h, gdbarch.c: Rebuild.
12444 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12445 * stap-probe.h:
12446 (struct stap_parse_info): Replace "parser_state" with
12447 "expr_builder".
12448 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12449 (parser_state): New class.
12450 * parse.c (expr_builder): Rename.
12451 (expr_builder::release): Rename.
12452 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12453 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12454 (write_exp_elt_longcst, write_exp_elt_floatcst)
12455 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12456 (write_exp_string_vector, write_exp_bitstring)
12457 (write_exp_msymbol, mark_struct_expression)
12458 (write_dollar_variable)
12459 (insert_type_address_space, increase_expout_size): Replace
12460 "parser_state" with "expr_builder".
12461 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12462 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12463 "parser_state" with "expr_builder".
12464
73923d7e
TT
124652019-04-04 Tom Tromey <tom@tromey.com>
12466
12467 * rust-exp.y: Replace "parse_language" with method call.
12468 * p-exp.y:
12469 (yylex): Replace "parse_language" with method call.
12470 * m2-exp.y:
12471 (yylex): Replace "parse_language" with method call.
12472 * go-exp.y (classify_name): Replace "parse_language" with method
12473 call.
12474 * f-exp.y (yylex): Replace "parse_language" with method call.
12475 * d-exp.y (lex_one_token): Replace "parse_language" with method
12476 call.
12477 * c-exp.y:
12478 (lex_one_token, classify_name, yylex): Replace "parse_language"
12479 with method call.
12480 * ada-exp.y (find_primitive_type, type_char)
12481 (type_system_address): Replace "parse_language" with method call.
12482
fa9f5be6
TT
124832019-04-04 Tom Tromey <tom@tromey.com>
12484
12485 * rust-exp.y: Replace "parse_gdbarch" with method call.
12486 * parse.c (write_dollar_variable, insert_type_address_space):
12487 Replace "parse_gdbarch" with method call.
12488 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12489 call.
12490 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12491 call.
12492 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12493 "parse_gdbarch" with method call.
12494 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12495 with method call.
12496 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12497 "parse_gdbarch" with method call.
12498 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12499 "parse_gdbarch" with method call.
12500 * c-exp.y (parse_type, parse_number, classify_name): Replace
12501 "parse_gdbarch" with method call.
12502 * ada-lex.l: Replace "parse_gdbarch" with method call.
12503 * ada-exp.y (parse_type, find_primitive_type, type_char)
12504 (type_system_address): Replace "parse_gdbarch" with method call.
12505
1201a264
TT
125062019-04-04 Tom Tromey <tom@tromey.com>
12507
12508 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12509 * stap-probe.c (stap_parse_argument): Update.
12510 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12511 initial_size parameter.
12512 * rust-exp.y (rust_lex_tests): Update.
12513 * parse.c (parser_state): Update.
12514 (parse_exp_in_context): Update.
12515 * parser-defs.h (struct parser_state) <parser_state>: Remove
12516 "initial_size" parameter.
12517
e3980ce2
TT
125182019-04-04 Tom Tromey <tom@tromey.com>
12519
12520 * parser-defs.h (increase_expout_size): Don't declare.
12521 * parse.c (increase_expout_size): Now static.
12522
e9f8e3f1
TS
125232019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12524
12525 * gnu-nat.c (gnu_nat_target::wait): Fix
12526 target_waitstatus_to_string call.
12527
d7df6549
AB
125282019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12529
12530 * eval.c (evaluate_subexp_standard): Handle internal functions
12531 during Fortran function call handling.
12532
8bdc1658
AB
125332019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12534
12535 * NEWS: Mention new internal functions.
12536 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12537 (read_base_type): Use dwarf2_init_complex_target_type.
12538 * value.c (creal_internal_fn): New function.
12539 (cimag_internal_fn): New function.
12540 (_initialize_values): Register new internal functions.
12541
c29705b7
PW
125422019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12543
12544 * infrun.c (stop_all_threads): If debug_infrun, always
12545 trace the wait status after wait_one, using
12546 target_waitstatus_to_string and target_pid_to_str.
12547 (handle_inferior_event): Replace various trace of
12548 wait status kind by a single trace.
12549 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12550 wait status kind image by target_waitstatus_to_string.
12551 * target/waitstatus.c (target_waitstatus_to_string): Fix
12552 obsolete comment.
12553
05caa1d2
TT
125542019-04-01 Tom Tromey <tromey@adacore.com>
12555
12556 PR symtab/23331:
12557 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12558
9d1447e0
SDJ
125592019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12560 Pedro Alves <palves@redhat.com>
12561
12562 * top.c (quit_force): Call 'finalize_values'.
12563 * value.c (finalize_values): New function.
12564 * value.h (finalize_values): Declare.
12565
7734102d
EZ
125662019-03-30 Eli Zaretskii <eliz@gnu.org>
12567
12568 * NEWS: Announce $_gdb_major and $_gdb_minor.
12569
12570 * top.c (init_gdb_version_vars): New function.
12571 (gdb_init): Call init_gdb_version_vars.
12572
188e1fa9
TT
125732019-03-29 Tom Tromey <tromey@adacore.com>
12574
12575 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12576 help text. Remove dead code.
12577
2880242d
KS
125782019-03-29 Keith Seitz <keiths@redhat.com>
12579
12580 From Siddhesh Poyarekar:
12581 * f-lang.h (f77_get_upperbound): Return LONGEST.
12582 (f77_get_lowerbound): Likewise.
12583 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12584 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12585 print them.
12586 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12587 plongest to format print it.
12588 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12589 (f77_get_upperbound): Likewise.
12590 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12591 LOWER_BOUND to LONGEST.
12592 (f77_create_arrayprint_offset_tbl): Likewise.
12593
cc1defb1
KS
125942019-03-29 Keith Seitz <keiths@redhat.com>
12595
12596 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12597 %s/pulongest for TYPE_LENGTH instead of %d in format
12598 strings.
12599 * ada-typerint.c (ada_print_type): Likewise.
12600 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12601 * compile/compile-c-support.c (generate_register_struct): Likewise.
12602 * gdbtypes.c (recursive_dump_type): Likewise.
12603 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12604 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12605 instead of %d in format strings.
12606 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12607 to std::min to ULONGEST.
12608 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12609 instead of %d in format strings.
12610 * tracepoint.c (info_scope_command): Likewise.
12611 * typeprint.c (print_offset_data::update)
12612 (print_offset_data::finish): Likewise.
12613 * xtensa-tdep.c (xtensa_store_return_value)
12614 (xtensa_push_dummy_call): Likewise.
12615
e432ccf1
JT
126162019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12617
12618 * windows-nat.c (display_selector): Fixed format specifications
12619 for 64-bit Cygwin.
12620
65d2b333
PW
126212019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12622
12623 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12624
f489207e
SL
126252019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12626
12627 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12628 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12629 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12630 (nios2_linux_init_abi): Install it.
12631
bffa1015
AH
126322019-03-28 Alan Hayward <alan.hayward@arm.com>
12633
12634 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12635
fc96163a
AH
126362019-03-28 Alan Hayward <alan.hayward@arm.com>
12637
12638 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12639
20dc7e9b
PW
126402019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12641 Tom Tromey <tromey@adacore.com>
12642
12643 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12644
7f5331a8
JB
126452019-03-26 Joel Brobecker <brobecker@adacore.com>
12646
12647 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12648 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12649 method to compute the bounds of range types. Also print "[evaluated]"
12650 if the bounds' values come from a dynamic evaluation.
12651
18c77628
AB
126522019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12653
12654 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12655 whitespace when pretty printing is on.
12656
53c973f2
AH
126572019-03-26 Alan Hayward <alan.hayward@arm.com>
12658
e79be6e5 12659 * ppc-linux-nat.c: Add include.
53c973f2 12660
d851aa71
AH
126612019-03-26 Alan Hayward <alan.hayward@arm.com>
12662
e79be6e5 12663 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12664
2fe7bab7
AH
126652019-03-26 Alan Hayward <alan.hayward@arm.com>
12666
e79be6e5 12667 * arm-linux-nat.c: Add include.
2fe7bab7 12668
068ef30e
SM
126692019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12670
12671 * source-cache.c (source_cache::get_source_lines): Re-read
12672 fullname after calling open_source_file.
12673
81a24d04
JB
126742019-03-25 John Baldwin <jhb@FreeBSD.org>
12675
12676 * NEWS: Mention TLS support for FreeBSD.
12677
79e7ae11
TT
126782019-03-25 Tom Tromey <tromey@adacore.com>
12679
12680 * minsyms.c (BUNCH_SIZE): Update comment.
12681 (~minimal_symbol_reader): Remove old comment.
12682 (compact_minimal_symbols): Update comment.
12683 (minimal_symbol_reader::install): Remove old comment. Update
12684 other comments.
12685
d45963c2
AH
126862019-03-25 Alan Hayward <alan.hayward@arm.com>
12687
12688 * s390-linux-nat.c: Add include.
12689
0f83012e
AH
126902019-03-25 Alan Hayward <alan.hayward@arm.com>
12691
12692 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12693 Call linux_get_hwcap.
12694 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12695 Likewise.
12696 (aarch64_linux_get_hwcap): Remove function.
12697 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12698 declaration.
12699 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12700 linux_get_hwcap.
12701 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12702 * linux-tdep.c (linux_get_hwcap): Add function.
12703 (linux_get_hwcap2): Likewise.
12704 * linux-tdep.h (linux_get_hwcap): Add declaration.
12705 (linux_get_hwcap2): Likewise.
12706 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12707 (ppc_linux_get_hwcap2): Likewise.
12708 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12709 linux_get_hwcap.
12710 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12711 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12712 (ppc_linux_nat_target::read_description): Likewise.
12713 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12714 * s390-linux-nat.c: Likewise.
12715 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12716
6640a367
TT
127172019-03-24 Tom Tromey <tom@tromey.com>
12718
12719 * ada-lang.c (standard_lookup): Simplify initialization.
12720 (ada_lookup_symbol_nonlocal): Simplify return.
12721 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12722 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12723 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12724 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12725 initialization.
12726 * solib.c (solib_global_lookup): Simplify.
12727 * symtab.c (null_block_symbol): Remove.
12728 (symbol_cache_lookup): Simplify returns.
12729 (lookup_language_this): Simplify returns.
12730 (lookup_symbol_aux): Simplify return.
12731 (lookup_local_symbol): Simplify returns.
12732 (lookup_global_symbol_from_objfile): Simplify return.
12733 (lookup_symbol_in_objfile_symtabs)
12734 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12735 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12736 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12737 * cp-namespace.c (cp_lookup_bare_symbol)
12738 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12739 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12740 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12741 (cp_lookup_symbol_via_imports): Simplify initialization.
12742 (find_symbol_in_baseclass): Likewise.
12743 * symtab.h (null_block_symbol): Remove.
12744 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12745 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12746 (d_lookup_symbol_module): Likewise.
12747 (find_symbol_in_baseclass): Simplify initialization.
12748
a930ebcd
TT
127492019-03-24 Tom Tromey <tom@tromey.com>
12750
12751 * expression.h: Don't include symtab.h.
12752 (struct block): Forward declare.
12753
582942f4
TT
127542019-03-24 Tom Tromey <tom@tromey.com>
12755
12756 * c-exp.y (typebase): Remove casts.
12757 * gdbtypes.c (lookup_unsigned_typename, )
12758 (lookup_signed_typename): Remove cast.
12759 * eval.c (parse_to_comma_and_eval): Remove cast.
12760 * parse.c (write_dollar_variable): Remove cast.
12761 * block.h (struct block) <superblock>: Now const.
12762 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12763 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12764 (map_block): Make "block" const.
12765 * symfile.h (struct quick_symbol_functions)
12766 <map_matching_symbols>: Constify block argument to "callback".
12767 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12768 const.
12769 (find_pc_sect_compunit_symtab): Make "b" const.
12770 (find_symbol_at_address): Likewise.
12771 (search_symbols): Likewise.
12772 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12773 (dw2_debug_names_lookup_symbol): Likewise.
12774 (dw2_map_matching_symbols): Update.
12775 * p-valprint.c (pascal_val_print): Remove "block".
12776 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12777 (aux_add_nonlocal_symbols): Make "block" const.
12778 (resolve_subexp): Remove cast.
12779 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12780 const.
12781 (iterate_over_file_blocks): Likewise.
12782 * f-exp.y (%union) <bval>: Remove.
12783 * coffread.c (patch_opaque_types): Make "b" const.
12784 * spu-tdep.c (spu_catch_start): Make "block" const.
12785 * c-valprint.c (print_unpacked_pointer): Remove "block".
12786 * symmisc.c (dump_symtab_1): Make "b" const.
12787 (block_depth): Make "block" const.
12788 * d-exp.y (%union) <bval>: Remove.
12789 * cp-support.h (cp_lookup_rtti_type): Update.
12790 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12791 * psymtab.c (psym_lookup_symbol): Make "block" const.
12792 (maintenance_check_psymtabs): Make "b" const.
12793 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12794 (enumerate_locals, enumerate_args): Update.
12795 * python/py-symtab.c (stpy_global_block): Make "block" const.
12796 (stpy_static_block): Likewise.
12797 * inline-frame.c (block_starting_point_at): Make "new_block"
12798 const.
12799 * block.c (find_block_in_blockvector): Make return type const.
12800 (blockvector_for_pc_sect): Make "b" const.
12801 (find_block_in_blockvector): Make "b" const.
12802
7ad417dd
TT
128032019-03-23 Tom Tromey <tom@tromey.com>
12804
12805 * varobj.c (varobj_create): Update.
12806 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12807 * printcmd.c (display_command, do_one_display): Don't reset
12808 innermost_block.
12809 * parser-defs.h (enum innermost_block_tracker_type): Move to
12810 expression.h.
12811 (innermost_block): Update comment.
12812 * parse.c (parse_exp_1): Add tracker_types parameter.
12813 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12814 tracker_types parameter. Reset innermost_block.
12815 (parse_exp_in_context): Remove.
12816 (parse_expression_for_completion): Update.
12817 * objfiles.c (~objfile): Don't reset expression_context_block or
12818 innermost_block.
12819 * expression.h (enum innermost_block_tracker_type): Move from
12820 parser-defs.h.
12821 (parse_exp_1): Add tracker_types parameter.
12822 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12823 reset innermost_block.
12824
b366c208
TT
128252019-03-23 Tom Tromey <tom@tromey.com>
12826
12827 * objfiles.h: Include bcache.h.
12828
9bb9b2f9
TT
128292019-03-23 Tom Tromey <tom@tromey.com>
12830
12831 * linespec.c (get_current_search_block): Use
12832 scoped_restore_current_language.
12833 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12834
59c28372
AH
128352019-03-22 Alan Hayward <alan.hayward@arm.com>
12836 Jiong Wang <jiong.wang@arm.com>
12837
12838 * aarch64-linux-tdep.c
12839 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12840 section.
12841 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12842
17e116a7
AH
128432019-03-22 Alan Hayward <alan.hayward@arm.com>
12844 Jiong Wang <jiong.wang@arm.com>
12845
12846 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12847 instructions.
12848 (aarch64_analyze_prologue_test): Add PACIASP test.
12849 (aarch64_prologue_prev_register): Unmask PC value.
12850
11e1b75f
AH
128512019-03-22 Alan Hayward <alan.hayward@arm.com>
12852 Jiong Wang <jiong.wang@arm.com>
12853
12854 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12855 (aarch64_dwarf2_prev_register): Unmask PC value.
12856 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12857 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12858 DW_CFA_AARCH64_negate_ra_state.
12859 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12860
34dcc7cf
AH
128612019-03-22 Alan Hayward <alan.hayward@arm.com>
12862 Jiong Wang <jiong.wang@arm.com>
12863
12864 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12865 registers.
12866 (aarch64_pseudo_register_name): Likewise.
12867 (aarch64_pseudo_register_type): Likewise.
12868 (aarch64_pseudo_register_reggroup_p): Likewise.
12869 (aarch64_gdbarch_init): Add pauth registers.
12870 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12871 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12872 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12873 (struct gdbarch_tdep): Add regnum for ra_state.
12874
1ef53e6b
AH
128752019-03-22 Alan Hayward <alan.hayward@arm.com>
12876 Jiong Wang <jiong.wang@arm.com>
12877
12878 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12879
76bed0fd
AH
128802019-03-22 Alan Hayward <alan.hayward@arm.com>
12881 Jiong Wang <jiong.wang@arm.com>
12882
12883 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12884 function.
12885 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12886 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12887 (aarch64_gdbarch_init): Add puth registers.
12888 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12889 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12890 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12891
ee4fbcfa
AH
128922019-03-22 Alan Hayward <alan.hayward@arm.com>
12893 Jiong Wang <jiong.wang@arm.com>
12894
12895 * aarch64-linux-nat.c
12896 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12897 * aarch64-linux-tdep.c
12898 (aarch64_linux_core_read_description): Likewise.
12899 (aarch64_linux_get_hwcap): New function.
12900 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12901 (aarch64_linux_get_hwcap): New declaration.
12902
6dc0ebde
AH
129032019-03-22 Alan Hayward <alan.hayward@arm.com>
12904 Jiong Wang <jiong.wang@arm.com>
12905
12906 * aarch64-linux-nat.c
12907 (aarch64_linux_nat_target::read_description): Add pauth param.
12908 * aarch64-linux-tdep.c
12909 (aarch64_linux_core_read_description): Likewise.
12910 * aarch64-tdep.c (struct target_desc): Add in pauth.
12911 (aarch64_read_description): Add pauth param.
12912 (aarch64_gdbarch_init): Likewise.
12913 * aarch64-tdep.h (aarch64_read_description): Likewise.
12914 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12915 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12916 * features/Makefile: Add new files.
12917 * features/aarch64-pauth.c: New file.
12918 * features/aarch64-pauth.xml: New file.
12919
595915c1
TT
129202019-03-20 Tom Tromey <tromey@adacore.com>
12921
12922 * infrun.c (handle_inferior_event): Rename from
12923 handle_inferior_event_1. Create a scoped_value_mark.
12924 (handle_inferior_event): Remove.
12925
4c7d57e7
TT
129262019-03-19 Tom Tromey <tromey@adacore.com>
12927
12928 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12929 * infrun.h (print_stop_event): Add "displays" parameter.
12930 * infrun.c (print_stop_event): Add "displays" parameter.
12931
cb246234
PA
129322019-03-19 Pedro Alves <palves@redhat.com>
12933
12934 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12935 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12936 to -1. Fix TABs vs spaces.
12937 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12938 * tui/tui-out.h (tui_ui_out) Add intro comments.
12939 <m_line, m_start_of_line>: In-class initialize, and add describing
12940 comment.
12941
3a0e45b2
AH
129422019-03-18 Alan Hayward <alan.hayward@arm.com>
12943
12944 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12945 variable names.
12946 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12947
5371b850
PA
129482019-03-18 Pedro Alves <palves@redhat.com>
12949 Eli Zaretskii <eliz@gnu.org>
12950
12951 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12952 m_line and m_start_of_line.
12953
b17c4cd0
EZ
129542019-03-18 Eli Zaretskii <eliz@gnu.org>
12955
12956 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12957 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12958 it returns a newline. This fixes a regression in TU mode, whereby
12959 the next line is output on the same screen line as the user input.
12960
4bd56d18
TT
129612019-03-18 Tom Tromey <tromey@adacore.com>
12962
12963 * minsyms.c (minimal_symbol_reader::install): Remove call to
12964 obstack_blank.
12965
55c10aca
PA
129662019-03-18 Pedro Alves <palves@redhat.com>
12967
12968 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12969 New globals.
12970 (apply_style): New, factored out from ...
12971 (apply_ansi_escape): ... this. Handle reverse video mode.
12972 (tui_set_reverse_mode): New function.
12973 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12974 * tui/tui-winsource.c (tui_show_source_line): Use
12975 tui_set_reverse_mode instead of setting A_STANDOUT.
12976 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12977 New setter methods.
12978
647bb750
HD
129792019-03-18 Hannes Domani <ssbssa@yahoo.de>
12980
12981 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12982 Handle tabs.
12983
bff8c71f
TT
129842019-03-18 Tom Tromey <tromey@adacore.com>
12985
12986 * ada-lang.c (empty_array): Add "high" parameter.
12987 (ada_evaluate_subexp): Update.
12988
58785d98
ST
129892019-03-17 Sergei Trofimovich <siarheit@google.com>
12990
12991 * unittests/string_view-selftests.c: Define
12992 _initialize_string_view_selftests unconditionally.
12993
d4cbef22
ВМ
129942019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12995
12996 PR gdb/24350
12997 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12998
fce4c071
ВМ
129992019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13000
13001 PR gdb/24351
13002 * windows-nat.c (display_selector): Fix format specifiers.
13003
f7f0a123
EZ
130042019-03-17 Eli Zaretskii <eliz@gnu.org>
13005
13006 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13007 tui_refill_source_window instead of tui_refresh_win, to update the
13008 current execution line. This fixes redisplay of the current line
13009 when stepping through the code with "next" or "step".
13010
ab42892f
EZ
130112019-03-16 Eli Zaretskii <eliz@gnu.org>
13012
13013 * source-cache.c (source_cache::get_source_lines): Call
13014 find_source_lines to initialize s->nlines. This fixes vertical
13015 scrolling of TUI source window when the DOWN arrow is pressed.
13016
8d8c087f
PW
130172019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13018
13019 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13020 linux-thread-db.c (_initialize_thread_db): Likewise.
13021
798e1c30
EZ
130222019-03-16 Eli Zaretskii <eliz@gnu.org>
13023
13024 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13025 wclrtoeol in tui_show_source_line". This reverts changes made in
13026 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13027
eefba3da
TT
130282019-03-15 Tom Tromey <tom@tromey.com>
13029
13030 * symtab.h (struct minimal_symbol): Derive from
13031 general_symbol_info.
13032 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13033 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13034 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13035 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13036 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13037 (MSYMBOL_SEARCH_NAME): Update.
13038 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13039 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13040 * minsyms.c (minimal_symbol_reader::record_full): Update.
13041
0de2420c
TT
130422019-03-15 Tom Tromey <tom@tromey.com>
13043
13044 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13045
042d75e4
TT
130462019-03-15 Tom Tromey <tom@tromey.com>
13047
13048 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13049 unique_xmalloc_ptr.
13050 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13051 Update.
13052 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13053 (build_minimal_symbol_hash_tables)
13054 (minimal_symbol_reader::install): Update.
13055
db92718b
TT
130562019-03-15 Tom Tromey <tom@tromey.com>
13057
13058 * symtab.c (create_demangled_names_hash): Update.
13059 (symbol_set_names): Update.
13060 * objfiles.h (struct objfile_per_bfd_storage)
13061 <demangled_names_hash>: Now an htab_up.
13062 * objfiles.c (objfile_per_bfd_storage): Simplify.
13063
d6797f46
TT
130642019-03-15 Tom Tromey <tom@tromey.com>
13065
13066 * objfiles.h (struct objfile_per_bfd_storage): Declare
13067 destructor.
13068 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13069 New.
13070 (get_objfile_bfd_data): Use new. Don't initialize
13071 language_of_main.
13072 (free_objfile_per_bfd_storage): Remove.
13073 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13074
741d7538
TT
130752019-03-15 Tom Tromey <tom@tromey.com>
13076
13077 * symfile.c (reread_symbols): Update.
13078 * objfiles.c (objfile::objfile): Update.
13079 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13080 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13081 comment.
13082 (minimal_symbol_reader::install): Update.
13083 (terminate_minimal_symbol_table): Remove.
13084 * jit.c (jit_object_close_impl): Update.
13085
788c80d1
TT
130862019-03-15 Tom Tromey <tom@tromey.com>
13087
13088 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13089 initializations.
13090
1b7a07cb
TT
130912019-03-15 Tom Tromey <tom@tromey.com>
13092
13093 * objfiles.h (struct objfile_per_bfd_storage)
13094 <demangled_hash_languages>: Now a bitset.
13095 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13096 (lookup_minimal_symbol): Update.
13097
3db066bc
TT
130982019-03-15 Tom Tromey <tom@tromey.com>
13099
13100 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13101 Don't return the symbol.
13102 * coffread.c (record_minimal_symbol): Use record_full.
13103
3fff2c37
EZ
131042019-03-14 Eli Zaretskii <eliz@gnu.org>
13105
13106 The MS-Windows port of ncurses fails to switch to a color pair if
13107 one or both of the colors are the implicit default colors. This
13108 change records the default colors when TUI is initialized, and
13109 then specifies them explicitly when a color pair uses the default
13110 colors. This allows color styling in TUI mode on MS-Windows.
13111
13112 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13113 ncurses_norm_attr.
13114 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13115 colors in ncurses_norm_attr.
13116 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13117 "none", replace it with the default color recorded in
13118 ncurses_norm_attr.
13119
3b336828
TT
131202019-03-14 Tom Tromey <tromey@adacore.com>
13121
13122 * source-cache.h (class source_cache) <get_source_lines>: Return
13123 std::string.
13124 * source-cache.c (source_cache::extract_lines): Handle case where
13125 first_pos==npos. Return std::string.
13126 (source_cache::get_source_lines): Update.
13127
d085f989
TT
131282019-03-14 Tom Tromey <tromey@adacore.com>
13129
13130 * NEWS: Add item for "style sources" commands.
13131 * source-cache.c (source_cache::get_source_lines): Check
13132 source_styling.
13133 * cli/cli-style.c (source_styling): New global.
13134 (_initialize_cli_style): Add "style sources" commands.
13135 (show_style_sources): New function.
13136 * cli/cli-style.h (source_styling): Declare.
13137
6f11e682
TT
131382019-03-14 Pedro Alves <palves@redhat.com>
13139 Tom Tromey <tromey@adacore.com>
13140
13141 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13142 * tui/tui-winsource.c (tui_refill_source_window): New function,
13143 from...
13144 (tui_horizontal_source_scroll): ... here. Move some logic.
13145 * cli/cli-style.c (set_style_enabled): Notify new observable.
13146 * tui/tui-hooks.c (tui_redisplay_source): New function.
13147 (tui_attach_detach_observers): Attach or detach
13148 tui_redisplay_source.
13149 * observable.h (source_styling_changed): New observable.
13150 * observable.c: Define source_styling_changed observable.
13151
a068643d
TT
131522019-03-13 Tom Tromey <tromey@adacore.com>
13153
13154 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13155 (i386_gnu_nat_target::store_registers): Update.
13156 * target-debug.h (target_debug_print_std_string): New macro.
13157 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13158 * windows-tdep.c (display_one_tib): Update.
13159 * tui/tui-stack.c (tui_make_status_line): Update.
13160 * top.c (print_inferior_quit_action): Update.
13161 * thread.c (thr_try_catch_cmd): Update.
13162 (add_thread_with_info): Update.
13163 (thread_target_id_str): Update.
13164 (thr_try_catch_cmd): Update.
13165 (thread_command): Update.
13166 (thread_find_command): Update.
13167 * record-btrace.c (record_btrace_target::info_record)
13168 (record_btrace_resume_thread, record_btrace_target::resume)
13169 (record_btrace_cancel_resume, record_btrace_step_thread)
13170 (record_btrace_target::wait, record_btrace_target::wait)
13171 (record_btrace_target::wait, record_btrace_target::stop): Update.
13172 * progspace.c (print_program_space): Update.
13173 * process-stratum-target.c
13174 (process_stratum_target::thread_address_space): Update.
13175 * linux-fork.c (linux_fork_mourn_inferior)
13176 (detach_checkpoint_command, info_checkpoints_command)
13177 (linux_fork_context): Update.
13178 (linux_fork_detach): Update.
13179 (class scoped_switch_fork_info): Update.
13180 (delete_checkpoint_command): Update.
13181 * infrun.c (follow_fork_inferior): Update.
13182 (follow_fork_inferior): Update.
13183 (proceed_after_vfork_done): Update.
13184 (handle_vfork_child_exec_or_exit): Update.
13185 (follow_exec): Update.
13186 (displaced_step_prepare_throw): Update.
13187 (displaced_step_restore): Update.
13188 (start_step_over): Update.
13189 (resume_1): Update.
13190 (clear_proceed_status_thread): Update.
13191 (proceed): Update.
13192 (print_target_wait_results): Update.
13193 (do_target_wait): Update.
13194 (context_switch): Update.
13195 (stop_all_threads): Update.
13196 (restart_threads): Update.
13197 (finish_step_over): Update.
13198 (handle_signal_stop): Update.
13199 (switch_back_to_stepped_thread): Update.
13200 (keep_going_pass_signal): Update.
13201 (print_exited_reason): Update.
13202 (normal_stop): Update.
13203 * inferior.c (inferior_pid_to_str): Change return type.
13204 (print_selected_inferior): Update.
13205 (add_inferior): Update.
13206 (detach_inferior): Update.
13207 * dummy-frame.c (fprint_dummy_frames): Update.
13208 * dcache.c (dcache_info_1): Update.
13209 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13210 (btrace_fetch, btrace_clear): Update.
13211 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13212 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13213 type.
13214 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13215 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13216 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13217 * gdbarch.c, gdbarch.h: Rebuild.
13218 * gdbarch.sh (core_pid_to_str): Change return type.
13219 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13220 return type.
13221 (windows_nat_target::pid_to_str): Change return type.
13222 (windows_delete_thread): Update.
13223 (windows_nat_target::attach): Update.
13224 (windows_nat_target::files_info): Update.
13225 * target-delegates.c: Rebuild.
13226 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13227 return type.
13228 (sol_thread_target::pid_to_str): Change return type.
13229 * remote.c (class remote_target) <pid_to_str>: Change return
13230 type.
13231 (remote_target::pid_to_str): Change return type.
13232 (extended_remote_target::attach, remote_target::remote_stop_ns)
13233 (remote_target::remote_notif_remove_queued_reply)
13234 (remote_target::push_stop_reply, remote_target::disable_btrace):
13235 Update.
13236 (extended_remote_target::attach): Update.
13237 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13238 type.
13239 (gdbsim_target::pid_to_str): Change return type.
13240 * ravenscar-thread.c (struct ravenscar_thread_target)
13241 <pid_to_str>: Change return type.
13242 (ravenscar_thread_target::pid_to_str): Change return type.
13243 * procfs.c (class procfs_target) <pid_to_str>: Change return
13244 type.
13245 (procfs_target::pid_to_str): Change return type.
13246 (procfs_target::attach): Update.
13247 (procfs_target::detach): Update.
13248 (procfs_target::fetch_registers): Update.
13249 (procfs_target::store_registers): Update.
13250 (procfs_target::wait): Update.
13251 (procfs_target::files_info): Update.
13252 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13253 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13254 return type.
13255 (nto_procfs_target::pid_to_str): Change return type.
13256 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13257 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13258 return type.
13259 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13260 (exit_lwp): Update.
13261 (attach_proc_task_lwp_callback, get_detach_signal)
13262 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13263 (linux_nat_target::resume, wait_lwp, stop_callback)
13264 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13265 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13266 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13267 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13268 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13269 type.
13270 (inf_ptrace_target::attach): Update.
13271 (inf_ptrace_target::files_info): Update.
13272 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13273 type.
13274 (go32_nat_target::pid_to_str): Change return type.
13275 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13276 (gnu_nat_target::wait): Update.
13277 (gnu_nat_target::wait): Update.
13278 (gnu_nat_target::resume): Update.
13279 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13280 (fbsd_nat_target::wait): Update.
13281 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13282 type.
13283 (darwin_nat_target::attach): Update.
13284 * corelow.c (class core_target) <pid_to_str>: Change return type.
13285 (core_target::pid_to_str): Change return type.
13286 * target.c (normal_pid_to_str): Change return type.
13287 (default_pid_to_str): Likewise.
13288 (target_pid_to_str): Change return type.
13289 (target_translate_tls_address): Update.
13290 (target_announce_detach): Update.
13291 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13292 return type.
13293 (bsd_uthread_target::pid_to_str): Change return type.
13294 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13295 type.
13296 (bsd_kvm_target::pid_to_str): Change return type.
13297 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13298 return type.
13299 (aix_thread_target::pid_to_str): Change return type.
13300 * target.h (struct target_ops) <pid_to_str>: Change return type.
13301 (target_pid_to_str, normal_pid_to_str): Likewise.
13302 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13303 type.
13304 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13305 type.
13306 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13307 return type.
13308 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13309 type.
13310 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13311 type.
13312 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13313 return type.
13314
b4be1b06
SM
133152019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13316
13317 * NEWS: Mention that the new default MI version is 3. Mention
13318 changes to the output of commands and events that deal with
13319 multi-location breakpoints.
13320 * breakpoint.c: Include "mi/mi-out.h".
13321 (print_one_breakpoint): Change output syntax if using MI version
13322 >= 3.
13323 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13324 New.
13325 (mi_multi_location_breakpoint_output_fixed): New.
13326 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13327 (mi_cmd_fix_multi_location_breakpoint_output): New.
13328 (mi_multi_location_breakpoint_output_fixed): New.
13329 * mi/mi-cmds.c (mi_cmds): Register command
13330 -fix-multi-location-breakpoint-output.
13331 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13332 interpreter "mi".
13333
8e5e5494
SM
133342019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13335
13336 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13337 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13338 instantiate mi_ui_out based on interpreter name.
13339 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13340 * mi/mi-main.c (mi_load_progress): Likewise.
13341
197df35e
JB
133422019-03-12 John Baldwin <jhb@FreeBSD.org>
13343
13344 * NEWS: Combine separate "New targets" sections for 8.3.
13345
8399425f
JB
133462019-03-12 John Baldwin <jhb@FreeBSD.org>
13347
13348 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13349 (ppcfbsd_init_abi): Install gdbarch
13350 "fetch_tls_load_module_address" and "get_thread_local_address"
13351 methods.
13352
b0f87ed0
JB
133532019-03-12 John Baldwin <jhb@FreeBSD.org>
13354
13355 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13356 (riscv_fbsd_init_abi): Install gdbarch
13357 "fetch_tls_load_module_address" and "get_thread_local_address"
13358 methods.
13359
ce25aa57
JB
133602019-03-12 John Baldwin <jhb@FreeBSD.org>
13361
13362 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13363 (i386fbsd_init_abi): Install gdbarch
13364 "fetch_tls_load_module_address" and "get_thread_local_address"
13365 methods.
13366
f5424cfa
JB
133672019-03-12 John Baldwin <jhb@FreeBSD.org>
13368
13369 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13370 (amd64fbsd_init_abi): Install gdbarch
13371 "fetch_tls_load_module_address" and "get_thread_local_address"
13372 methods.
13373
945f3901
JB
133742019-03-12 John Baldwin <jhb@FreeBSD.org>
13375
13376 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13377 (struct fbsd_pspace_data): New type.
13378 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13379 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13380 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13381 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13382 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13383
ef0bd204
JB
133842019-03-12 John Baldwin <jhb@FreeBSD.org>
13385
13386 * gdbtypes.c (lookup_struct_elt): New function.
13387 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13388 * gdbtypes.h (struct struct_elt): New type.
13389 (lookup_struct_elt): New prototype.
13390
36c53a02
JB
133912019-03-12 John Baldwin <jhb@FreeBSD.org>
13392
13393 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13394 remove disabled code block.
13395
6e056c81
JB
133962019-03-12 John Baldwin <jhb@FreeBSD.org>
13397
13398 * gdbarch.sh (get_thread_local_address): New method.
13399 * gdbarch.h, gdbarch.c: Regenerate.
13400 * target.c (target_translate_tls_address): Use
13401 gdbarch_get_thread_local_address if present instead of
13402 target::get_thread_local_address.
13403
cd250a18
JB
134042019-03-12 John Baldwin <jhb@FreeBSD.org>
13405
13406 * target.h (target::get_thread_local_address): Update comment.
13407
df22c1e5
JB
134082019-03-12 John Baldwin <jhb@FreeBSD.org>
13409
13410 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13411 objfile->separate_debug_objfile_backlink if not NULL.
13412
dd6876c9
JB
134132019-03-12 John Baldwin <jhb@FreeBSD.org>
13414
13415 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13416 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13417 (amd64bsd_store_inferior_registers): Likewise.
13418 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13419 Enable segment base registers.
13420 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13421 PT_GETFSBASE and PT_GETGSBASE.
13422 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13423 PT_SETGSBASE.
13424 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13425 segment base registers.
13426 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13427
1163a4b7
JB
134282019-03-12 John Baldwin <jhb@FreeBSD.org>
13429
13430 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13431 Update calls to i386_target_description to add 'segments'
13432 parameter.
13433 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13434 add segment base registers.
13435 * arch/i386.c (i386_create_target_description): Add 'segments'
13436 parameter to enable segment base registers.
13437 * arch/i386.h (i386_create_target_description): Likewise.
13438 * features/i386/32bit-segments.xml: New file.
13439 * features/i386/32bit-segments.c: Generate.
13440 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13441 call to i386_target_description to add 'segments' parameter.
13442 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13443 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13444 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13445 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13446 if feature is present.
13447 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13448 Add 'segments' parameter to call to i386_target_description.
13449 (i386_target_description): Add 'segments' parameter to enable
13450 segment base registers.
13451 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13452 to call to i386_target_description.
13453 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13454 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13455 Define I386_NUM_REGS.
13456 (i386_target_description): Add 'segments' parameter to enable
13457 segment base registers.
13458
3a350822
EZ
134592019-03-12 Eli Zaretskii <eliz@gnu.org>
13460
13461 PR/24325
13462 * source-cache.c: #undef open and close, to avoid unresolved
13463 externals during linking.
13464
ffdd69cf
TT
134652019-03-12 Tom Tromey <tromey@adacore.com>
13466
13467 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13468 const. Add initializers.
13469 (_initialize_remote): Don't initialize ptid globals.
13470
ec148c57
PA
134712019-03-12 Pedro Alves <palves@redhat.com>
13472
13473 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13474
32764270
PA
134752019-03-12 Pedro Alves <palves@redhat.com>
13476
13477 * cp-name-parser.y (main): Remove unused 'len' variable.
13478
17547186
TT
134792019-03-12 Tom Tromey <tromey@adacore.com>
13480
13481 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13482 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13483
d3a70e03
TT
134842019-03-12 Tom Tromey <tromey@adacore.com>
13485
13486 * linux-nat.c (iterate_over_lwps): Update.
13487 (stop_callback): Remove parameter.
13488 (stop_wait_callback, detach_callback, resume_set_callback)
13489 (select_singlestep_lwp_callback, set_ignore_sigint)
13490 (status_callback, resumed_callback, resume_clear_callback)
13491 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13492 data parameter.
13493 (linux_nat_target::detach, linux_nat_target::resume)
13494 (linux_stop_and_wait_all_lwps, select_event_lwp)
13495 (linux_nat_filter_event, linux_nat_wait_1)
13496 (linux_nat_target::kill, linux_nat_target::stop)
13497 (linux_nat_target::stop): Update.
13498 (linux_nat_resume_callback): Change type.
13499 (resume_stopped_resumed_lwps, count_events_callback)
13500 (select_event_lwp_callback): Likewise.
13501 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13502 * arm-linux-nat.c (struct update_registers_data): Remove.
13503 (update_registers_callback): Change type.
13504 (arm_linux_insert_hw_breakpoint1): Update.
13505 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13506 parameter.
13507 (x86_linux_dr_set_addr): Update.
13508 (x86_linux_dr_set_control): Update.
13509 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13510 (iterate_over_lwps): Use gdb::function_view.
13511 * nat/aarch64-linux-hw-point.c (struct
13512 aarch64_dr_update_callback_param): Remove.
13513 (debug_reg_change_callback): Change type.
13514 (aarch64_notify_debug_reg_change): Update.
13515 * s390-linux-nat.c (s390_refresh_per_info): Update.
13516
82cb27ff
TT
135172019-03-11 Tom Tromey <tromey@adacore.com>
13518
13519 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13520 redundant assignment to "this_cu".
13521
568c0683
SM
135222019-03-08 Simon Marchi <simon.marchi@efficios.com>
13523
13524 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13525
f09ce22d
SM
135262019-03-08 Simon Marchi <simon.marchi@efficios.com>
13527
13528 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13529 from...
13530 (rank_one_type): ... this.
13531
595f96a9
SM
135322019-03-08 Simon Marchi <simon.marchi@efficios.com>
13533
13534 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13535 from...
13536 (rank_one_type): ... this.
13537
2598a94b
SM
135382019-03-08 Simon Marchi <simon.marchi@efficios.com>
13539
13540 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13541 from...
13542 (rank_one_type): ... this.
13543
7f17b20d
SM
135442019-03-08 Simon Marchi <simon.marchi@efficios.com>
13545
13546 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13547 from...
13548 (rank_one_type): ... this.
13549
2c509035
SM
135502019-03-08 Simon Marchi <simon.marchi@efficios.com>
13551
13552 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13553 from...
13554 (rank_one_type): ... this.
13555
0dd322dc
SM
135562019-03-08 Simon Marchi <simon.marchi@efficios.com>
13557
13558 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13559 from...
13560 (rank_one_type): ... this.
13561
41ea4728
SM
135622019-03-08 Simon Marchi <simon.marchi@efficios.com>
13563
13564 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13565 from...
13566 (rank_one_type): ... this.
13567
793cd1d2
SM
135682019-03-08 Simon Marchi <simon.marchi@efficios.com>
13569
13570 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13571 from...
13572 (rank_one_type): ... this.
13573
34910087
SM
135742019-03-08 Simon Marchi <simon.marchi@efficios.com>
13575
13576 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13577 from...
13578 (rank_one_type): ... this.
13579
f1f832d6
SM
135802019-03-08 Simon Marchi <simon.marchi@efficios.com>
13581
13582 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13583 from...
13584 (rank_one_type): ... this.
13585
b9f4512f
SM
135862019-03-08 Simon Marchi <simon.marchi@efficios.com>
13587
13588 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13589 from...
13590 (rank_one_type): ... this.
13591
9293fc63
SM
135922019-03-08 Simon Marchi <simon.marchi@efficios.com>
13593
13594 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13595 from...
13596 (rank_one_type): ... this.
13597
e3abbe7e
PW
135982019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13599
13600 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13601 inferior-events' shows the example events.
13602
e4adb939
EZ
136032019-03-08 Eli Zaretskii <eliz@gnu.org>
13604
13605 Support styling on native MS-Windows console
13606
13607 PR/24315
13608 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13609 on MS-Windows if $TERM is not defined.
13610
13611 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13612
13613 * posix-hdep.c (gdb_console_fputs):
13614 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13615 functions.
13616 * ui-file.h (gdb_console_fputs): Add prototype.
13617
13618 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13619 back to fputs only if the former returns zero.
13620
25629dfd
TT
136212019-03-07 Tom Tromey <tom@tromey.com>
13622
13623 * symmisc.c (print_symbol_bcache_statistics): Update.
13624 (print_objfile_statistics): Update.
13625 * symfile.c (allocate_symtab): Update.
13626 * stabsread.c: Don't include bcache.h.
13627 * psymtab.h (struct psymbol_bcache): Don't declare.
13628 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13629 (psymbol_bcache_init, psymbol_bcache_free)
13630 (psymbol_bcache_get_bcache): Don't declare.
13631 * psymtab.c (struct psymbol_bcache): Remove.
13632 (psymtab_storage::psymtab_storage): Update.
13633 (psymtab_storage::~psymtab_storage): Update.
13634 (psymbol_bcache_init, psymbol_bcache_free)
13635 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13636 (add_psymbol_to_bcache): Update.
13637 (allocate_psymtab): Update.
13638 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13639 macro_cache>: No longer pointers.
13640 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13641 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13642 * macrotab.c (macro_bcache): Update.
13643 * macroexp.c: Don't include bcache.h.
13644 * gdbtypes.c (check_types_worklist): Update.
13645 (types_deeply_equal): Remove TRY/CATCH. Update.
13646 * elfread.c (elf_symtab_read): Update.
13647 * dwarf2read.c: Don't include bcache.h.
13648 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13649 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13650 (print_bcache_statistics, bcache_memory_used): Don't declare.
13651 (struct bcache): Move from bcache.c. Add constructor, destructor,
13652 methods. Rename all data members.
13653 * bcache.c (struct bcache): Move to bcache.h.
13654 (bcache::expand_hash_table): Rename from expand_hash_table.
13655 (bcache): Remove.
13656 (bcache::insert): Rename from bcache_full.
13657 (bcache::compare): Rename from bcache_compare.
13658 (bcache_xmalloc): Remove.
13659 (bcache::~bcache): Rename from bcache_xfree.
13660 (bcache::print_statistics): Rename from print_bcache_statistics.
13661 (bcache::memory_used): Rename from bcache_memory_used.
13662
fe726667
PA
136632019-03-07 Pedro Alves <palves@redhat.com>
13664
13665 * infrun.c (normal_stop): Also check for
13666 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13667
7584bb30
AB
136682019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13669
13670 * f-lang.c (value_from_host_double): Moved to...
13671 * value.c (value_from_host_double): ...here.
13672 * value.h (value_from_host_double): Declare.
13673 * guile/scm-math.c (vlscm_convert_typed_number): Use
13674 value_from_host_double.
13675 (vlscm_convert_number): Likewise.
13676 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13677 * python/py-value.c (convert_value_from_python): Likewise.
13678
a7b1986e
TT
136792019-03-06 Tom Tromey <tom@tromey.com>
13680
13681 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13682
0ccf4211
TT
136832019-03-06 Tom Tromey <tom@tromey.com>
13684
13685 * utils.h (free_current_contents): Don't declare.
13686 * utils.c (free_current_contents): Remove.
13687
fe7b42e5
TT
136882019-03-06 Tom Tromey <tom@tromey.com>
13689
13690 * top.c (quit_force): Update.
13691 * main.c (captured_command_loop): Update.
13692 * common/new-op.c (operator new): Update.
13693 * common/common-exceptions.c (struct catcher)
13694 <save_cleanup_chain>: Remove member.
13695 (exceptions_state_mc_init): Update.
13696 (exception_try_scope_entry): Return nullptr.
13697 (exception_try_scope_exit, exception_rethrow)
13698 (throw_exception_sjlj, throw_exception_cxx): Update.
13699 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13700 (all_cleanups, do_cleanups, discard_cleanups)
13701 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13702 (restore_cleanups, restore_final_cleanups): Don't declare.
13703 (do_final_cleanups): Remove parameter.
13704 * common/cleanups.c (cleanup_chain, make_cleanup)
13705 (make_cleanup_dtor, all_cleanups, do_cleanups)
13706 (discard_my_cleanups, discard_cleanups)
13707 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13708 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13709 (null_cleanup): Remove.
13710 (do_final_cleanups): Remove parameter.
13711
c6321f19
TT
137122019-03-06 Tom Tromey <tom@tromey.com>
13713
13714 * remote.c (remote_target::remote_parse_stop_reply): Use
13715 unique_xmalloc_ptr.
13716
61b30099
TT
137172019-03-06 Tom Tromey <tom@tromey.com>
13718
13719 * stabsread.c (struct stabs_field_info): Rename from field_info.
13720 <list, fnlist>: Add initializers.
13721 <obstack>: New member.
13722 (read_member_functions, read_struct_fields, read_baseclasses):
13723 Allocate on obstack. Don't use cleanups.
13724 (read_one_struct_field, read_member_functions, read_struct_fields)
13725 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13726 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13727 (read_struct_type): Update.
13728
6cceac94
TT
137292019-03-06 Tom Tromey <tom@tromey.com>
13730
13731 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13732 * common/filestuff.h (make_cleanup_close): Don't declare.
13733 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13734 Remove.
13735
72412762
TT
137362019-03-06 Tom Tromey <tom@tromey.com>
13737
13738 * solib-aix.c: Use make_scope_exit.
13739
2b6ff1c0
TT
137402019-03-06 Tom Tromey <tom@tromey.com>
13741
13742 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13743 Use make_scope_exit.
13744
d01c5877
TT
137452019-03-06 Tom Tromey <tom@tromey.com>
13746
13747 * solib-svr4.c (disable_probes_interface): Remove parameter.
13748 (svr4_handle_solib_event): Use make_scope_exit.
13749
32603266
TT
137502019-03-06 Tom Tromey <tom@tromey.com>
13751
13752 * remote.c (struct stop_reply_deleter): Remove.
13753 (stop_reply_up): Update.
13754 (struct stop_reply): Derive from notif_event. Don't typedef.
13755 <regcache>: Now a std::vector.
13756 (stop_reply_xfree): Remove.
13757 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13758 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13759 (remote_target::discard_pending_stop_replies): Use delete.
13760 (remote_target::remote_parse_stop_reply): Update.
13761 (remote_target::process_stop_reply): Update.
13762 * remote-notif.h (struct notif_event): Add virtual destructor.
13763 Remove "dtr" member.
13764 (struct notif_client) <alloc_event>: Return a unique_ptr.
13765 (notif_event_xfree): Don't declare.
13766 (notif_event_up): New typedef.
13767 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13768 (notif_event_xfree, do_notif_event_xfree): Remove.
13769 (remote_notif_state_xfree): Update.
13770
9799571e
TT
137712019-03-06 Tom Tromey <tom@tromey.com>
13772
13773 * infrun.c (displaced_step_clear_cleanup): Now a
13774 forward_scope_exit type.
13775 (displaced_step_prepare_throw): Update.
13776 (displaced_step_fixup): Update.
13777
09e3c4ca
TT
137782019-03-06 Tom Tromey <tom@tromey.com>
13779
13780 * inferior.h (class inferior): Update comment.
13781 * gdbthread.h (class thread_info): Update comment.
13782
e2a03548
TT
137832019-03-06 Joel Brobecker <brobecker@adacore.com>
13784 Tom Tromey <tom@tromey.com>
13785
13786 * stabsread.h (struct stab_section_list): Remove.
13787 (coffstab_build_psymtabs): Update.
13788 * dbxread.c (symbuf_sections): Now a std::vector.
13789 (sect_idx): New global.
13790 (fill_symbuf): Update.
13791 (coffstab_build_psymtabs): Change type of stabsects parameter.
13792 Update.
13793 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13794 std::vector.
13795 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13796 (coff_locate_sections): Update.
13797 (coff_symfile_read): Remove cleanups. Update.
13798 (init_stringtab): Add storage parameter.
13799 (free_stringtab, free_stringtab_cleanup): Remove.
13800 (init_lineno): Add storage parameter.
13801 (free_linetab, free_linetab_cleanup): Remove.
13802
b7e60d85
PA
138032019-03-06 Pedro Alves <palves@redhat.com>
13804
13805 * linux-fork.c (fork_info::clobber_regs): Delete.
13806 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13807 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13808 comment. Adjust.
13809 (scoped_switch_fork_info::scoped_switch_fork_info)
13810 (checkpoint_command, linux_fork_context): Adjust
13811 fork_save_infrun_state calls.
13812
e52c971f
PA
138132019-03-06 Pedro Alves <palves@redhat.com>
13814
13815 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13816 (inf_has_multiple_threads): Return 'bool' and rewrite using
13817 inferior_info::threads().
13818
06974e6c
PA
138192019-03-06 Pedro Alves <palves@redhat.com>
13820
13821 * linux-fork.c: Include <list>.
13822 (fork_list): Now a std::list instance.
13823 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13824 (forks_exist_p, find_last_fork): Adjust.
13825 (new_fork): Delete.
13826 (one_fork_p): New.
13827 (add_fork): Adjust.
13828 (free_fork): Delete, folded into fork_info::~fork_info().
13829 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13830 Adjust.
13831 (init_fork_list): Delete.
13832 (linux_fork_killall, linux_fork_mourn_inferior)
13833 (linux_fork_detach, info_checkpoints_command): Adjust.
13834 (_initialize_linux_fork): No longer call init_fork_list.
13835
72f31aea
PA
138362019-03-06 Pedro Alves <palves@redhat.com>
13837
13838 * linux-fork.c (new_fork): New, split out of ...
13839 (add_fork): ... this. Return void. Move "first fork" special
13840 case from here, to ...
13841 (checkpoint_command): ... here.
13842 * linux-linux.h (add_fork): Return void.
13843
efbecbc1
AB
138442019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13845
13846 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13847
0841c79a
AB
138482019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13849 Chris January <chris.january@arm.com>
13850 David Lecomber <david.lecomber@arm.com>
13851
13852 * f-exp.y: New token, UNOP_INTRINSIC.
13853 (exp): New pattern using UNOP_INTRINSIC token.
13854 (f77_keywords): Add 'abs' keyword.
13855 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13856 (value_from_host_double): New function.
13857 (evaluate_subexp_f): Support UNOP_ABS.
13858
4a270568
AB
138592019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13860
13861 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13862 types.
13863
067630bd
AB
138642019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13865
13866 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13867 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13868 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13869
3be47f7a
AB
138702019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13871
13872 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13873
4d00f5d8
AB
138742019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13875 Chris January <chris.january@arm.com>
13876
13877 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13878 * f-exp.y: Define 'KIND' token.
13879 (exp): New pattern for KIND expressions.
13880 (ptype): Handle types with a kind extension.
13881 (direct_abs_decl): Extend to spot kind extensions.
13882 (f77_keywords): Add 'kind' to the list.
13883 (push_kind_type): New function.
13884 (convert_to_kind_type): New function.
13885 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13886 * parse.c (operator_length_standard): Likewise.
13887 * parser-defs.h (enum type_pieces): Add tp_kind.
13888 * std-operator.def: Add UNOP_KIND.
13889
e454224f
AB
138902019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13891
13892 * f-exp.y (f_parse): Set yydebug.
13893
9dad4a58
AB
138942019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13895
13896 * f-lang.c (evaluate_subexp_f): New function.
13897 (exp_descriptor_f): New global.
13898 (f_language_defn): Use exp_descriptor_f instead of
13899 exp_descriptor_standard.
13900
c8f91604
AB
139012019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13902
13903 * f-exp.y (struct token): Add comments.
13904 (dot_ops): Remove uppercase versions and the end marker.
13905 (f77_keywords): Likewise.
13906 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13907 entries in the dot_ops array are case insensitive, and use
13908 strncasecmp to compare strings. Also some whitespace cleanup in
13909 this area. Similar for the f77_keywords array, except entries in
13910 this list might be case sensitive.
13911
dd9f2c76
AB
139122019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13913
13914 * f-exp.y (struct f77_boolean_val): Add comments.
13915 (boolean_values): Remove uppercase versions, and end marker.
13916 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13917 and use strncasecmp to achieve case insensitivity. Additionally,
13918 perform whitespace cleanup around this code.
13919
67a3048c
TT
139202019-03-06 Tom Tromey <tromey@adacore.com>
13921
13922 * remote-sim.c (gdbsim_target_open): Use result of
13923 gdb_argv::release.
13924
aa3cfbda
RB
139252019-03-06 Richard Bunt <richard.bunt@arm.com>
13926 Dirk Schubert <dirk.schubert@arm.com>
13927 Chris January <chris.january@arm.com>
13928
13929 * eval.c (evaluate_subexp_standard): Call Fortran argument
13930 wrapping logic.
13931 * f-lang.c (struct value): A value which can be passed into a
13932 Fortran function call.
13933 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13934 where appropriate.
13935 (struct type): Value ready for a Fortran function call.
13936 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13937 is needed.
13938 * f-lang.h (fortran_argument_convert): Declaration.
13939 (fortran_preserve_arg_pointer): Declaration.
13940 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13941
ea38e5df
TT
139422019-03-05 Tom Tromey <tromey@adacore.com>
13943
13944 * python/py-prettyprint.c (print_string_repr): Remove #if.
13945 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13946
06b5b831
TT
139472019-03-05 Tom Tromey <tromey@adacore.com>
13948
13949 * target.c (the_dummy_target): Move later. Change type to
13950 "dummy_target".
13951 (initialize_targets): Don't initialize the_dummy_target.
13952
edbd9e45
TT
139532019-03-05 Tom Tromey <tromey@adacore.com>
13954
13955 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13956 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13957
c119e040
TT
139582019-03-05 Tom Tromey <tromey@adacore.com>
13959
13960 * windows-nat.c (windows_nat_target::attach)
13961 (windows_nat_target::detach): Don't call gdb_flush.
13962 * valprint.c (generic_val_print, val_print, val_print_string):
13963 Don't call gdb_flush.
13964 * utils.c (defaulted_query): Don't call gdb_flush.
13965 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13966 * target.c (target_announce_detach): Don't call gdb_flush.
13967 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13968 * remote.c (extended_remote_target::attach): Don't call
13969 gdb_flush.
13970 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13971 * printcmd.c (do_examine): Don't call gdb_flush.
13972 (info_display_command): Don't call gdb_flush.
13973 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13974 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13975 * memattr.c (info_mem_command): Don't call gdb_flush.
13976 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13977 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13978 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13979 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13980 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13981 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13982 (gnu_nat_target::detach): Don't call gdb_flush.
13983 * f-valprint.c (f_val_print): Don't call gdb_flush.
13984 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13985 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13986 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13987 gdb_flush.
13988 * c-valprint.c (c_val_print): Don't call gdb_flush.
13989 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13990
895dafa6
TT
139912019-03-05 Tom Tromey <tromey@adacore.com>
13992
13993 * varobj.c (update_dynamic_varobj_children): Update.
13994 (install_default_visualizer): Use reset, not release.
13995 * value.c (set_internalvar): Update.
13996 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13997 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13998 ATTRIBUTE_UNUSED_RESULT.
13999
88a774b9
TT
140002019-03-05 Tom Tromey <tromey@adacore.com>
14001
14002 * remote.c (class scoped_remote_fd) <release>: Add
14003 ATTRIBUTE_UNUSED_RESULT.
14004
4e4a8b93
TT
140052019-03-05 Tom Tromey <tromey@adacore.com>
14006
14007 * macroexp.c (struct macro_buffer) <release>: Add
14008 ATTRIBUTE_UNUSED_RESULT.
14009
083eef1f
TT
140102019-03-05 Tom Tromey <tromey@adacore.com>
14011
14012 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14013 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14014 ATTRIBUTE_UNUSED_RESULT.
14015
3cabd438
TT
140162019-03-05 Tom Tromey <tromey@adacore.com>
14017
14018 * common/scoped_fd.h (class scoped_fd) <release>: Add
14019 ATTRIBUTE_UNUSED_RESULT.
14020
41e3300a
TT
140212019-03-05 Tom Tromey <tromey@adacore.com>
14022
14023 * parser-defs.h (struct parser_state) <release>: Add
14024 ATTRIBUTE_UNUSED_RESULT.
14025
18cb7c9f
TT
140262019-03-05 Tom Tromey <tromey@adacore.com>
14027
14028 * utils.h (class gdb_argv) <release>: Add
14029 ATTRIBUTE_UNUSED_RESULT.
14030 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14031
41fa577f
EZ
140322019-03-02 Eli Zaretskii <eliz@gnu.org>
14033
a6a4b2c6
EZ
14034 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14035 for-loop range, to avoid compiler warnings.
14036
14037 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14038 avoid compiler warnings about unused variables.
14039
742a7df5
EZ
14040 * NEWS: Mention end of support for native debugging on MS-Windows
14041 before XP.
14042
41fa577f
EZ
14043 PR gdb/24292
14044 * common/netstuff.c:
14045 * gdbserver/gdbreplay.c
14046 * gdbserver/remote-utils.c:
14047 * ser-tcp.c:
14048 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14049 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14050 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14051 'getaddrinfo' and 'freeaddrinfo' were not available before
14052 Windows XP, and mingw.org's MinGW headers by default define
14053 _WIN32_WINNT to 0x500.
14054
827f438f
GB
140552019-03-01 Gary Benson <gbenson@redhat.com>
14056
14057 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14058
92137da0
RO
140592019-02-28 Brian Vandenberg <phantall@gmail.com>
14060 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14061
14062 PR gdb/8527
14063 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14064 set_sigint_trap, clear_sigint_trap.
14065
799efbe8
PW
140662019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14067
14068 * target.c (target_detach): Clear the regcache and the
14069 frame cache.
14070
8ed25214
PA
140712019-02-27 Pedro Alves <palves@redhat.com>
14072
14073 * utils.c (set_screen_size): When we cap the height/width sizes,
14074 tweak the corresponding command variable to show "unlimited":
14075
23031e31
SJ
140762019-02-27 Saagar Jha <saagar@saagarjha.com>
14077 Pedro Alves <palves@redhat.com>
14078
14079 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14080 before calling rl_set_screen_size.
14081
6c28e44a
TT
140822019-02-27 Tom Tromey <tromey@adacore.com>
14083
14084 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14085 define.
14086 * python/py-value.c: Remove Python 2.4 workaround.
14087 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14088 workaround.
14089 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14090 Python 2.4 workaround.
14091 * python/python-internal.h: Remove Python 2.4 comment.
14092 (Py_ssize_t): Don't define.
14093 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14094 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14095 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14096 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14097 * python/python.c (do_start_initialization): Remove Python 2.4
14098 workaround.
14099 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14100 (print_children): Remove Python 2.4 workaround.
14101 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14102 workaround.
14103 (CHARBUFFERPROC_NAME): Remove.
14104 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14105 Python 2.4 workaround.
14106
2c3fc25d 141072019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 14108
2c3fc25d
KB
14109 * NEWS: Note minimum Python version.
14110
6ca62222
KB
141112019-02-27 Kevin Buettner <kevinb@redhat.com>
14112
14113 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14114 code from these functions. Remove corresponding ifdefs. Use
14115 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14116 Remove gotos and target of gotos.
14117 (infpy_search_memory): Likewise.
14118
f4bc7d2c
AB
141192019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14120
14121 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14122 (hppa_gdbarch_init): Don't register deleted functions with
14123 gdbarch.
14124
9734a586
AB
141252019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14126
14127 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14128 (h8300_unwind_sp): Delete.
14129 (h8300_dummy_id): Delete.
14130 (h8300_gdbarch_init): Don't register deleted functions with
14131 gdbarch.
14132
68b867f3
AB
141332019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14134
14135 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14136 (ft32_unwind_pc): Delete.
14137 (ft32_unwind_sp): Delete.
14138 (ft32_gdbarch_init): Don't register deleted functions with
14139 gdbarch.
14140
2fbe7ad0
AB
141412019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14142
14143 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14144 (frv_unwind_pc): Delete.
14145 (frv_unwind_sp): Delete.
14146 (frv_gdbarch_init): Don't register deleted functions with
14147 gdbarch.
14148
76055cbe
AB
141492019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14150
14151 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14152 (riscv_unwind_pc): Delete.
14153 (riscv_unwind_sp): Delete.
14154 (riscv_gdbarch_init): Don't register deleted functions with
14155 gdbarch.
14156
4133e5a1
AB
141572019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14158
14159 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14160 (csky_unwind_pc): Delete.
14161 (csky_unwind_sp): Delete.
14162 (csky_gdbarch_init): Don't register deleted functions with
14163 gdbarch.
14164
8010f576
AB
141652019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14166
14167 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14168 (cris_unwind_pc): Delete.
14169 (cris_unwind_sp): Delete.
14170 (cris_gdbarch_init): Don't register deleted functions with
14171 gdbarch.
14172
b56bf084
AB
141732019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14174
14175 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14176 (bfin_unwind_pc): Delete.
14177 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14178
a19a650f
AB
141792019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14180
14181 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14182 (arm_unwind_pc): Delete.
14183 (arm_unwind_sp): Delete.
14184 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14185
f8278c3c
AB
141862019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14187
14188 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14189 (arc_unwind_pc): Delete.
14190 (arc_unwind_sp): Delete.
14191 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14192
480e46cf
AB
141932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14194
14195 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14196 (alpha_unwind_pc): Delete.
14197 (alpha_gdbarch_init): Don't register deleted functions with
14198 gdbarch.
14199
7a995095
AB
142002019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14201
14202 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14203 (aarch64_unwind_pc): Delete.
14204 (aarch64_unwind_sp): Delete.
14205 (aarch64_gdbarch_init): Don't register deleted functions with
14206 gdbarch.
14207
bf9a735e
AB
142082019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14209
14210 * gdbtypes.c (type_align): Don't consider static members when
14211 computing structure alignment.
14212
5561fc30
AB
142132019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14214
14215 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14216 return 0 for other types.
14217 * arch-utils.c (default_type_align): Always return 0.
14218 * gdbarch.h: Regenerate.
14219 * gdbarch.sh (type_align): Extend comment.
14220 * gdbtypes.c (type_align): Add additional comments, always call
14221 gdbarch_type_align before applying the default rules.
14222 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14223 generic code will then apply a suitable default.
14224 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14225 types, return 0 for other types.
14226
9335e75a
JB
142272019-02-27 Joel Brobecker <brobecker@adacore.com>
14228
14229 * NEWS: Create a new section for the next release branch.
14230 Rename the section of the current branch, now that it has
14231 been cut.
14232
3d34d8de
JB
142332019-02-27 Joel Brobecker <brobecker@adacore.com>
14234
14235 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14236 * version.in: Bump version to 8.3.50.DATE-git.
14237
143420fb
SM
142382019-02-26 Simon Marchi <simon.marchi@efficios.com>
14239
14240 * aix-thread.c (ptid_cmp): Remove unused variable.
14241 (get_signaled_thread): Likewise.
14242 (store_regs_user_thread): Likewise.
14243 (store_regs_kernel_thread): Likewise.
14244 (fetch_regs_kernel_thread): Remove shadowed variable.
14245
172fb711
AB
142462019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14247
14248 * features/riscv/32bit-cpu.xml: Add register numbers.
14249 * features/riscv/32bit-fpu.c: Regenerate.
14250 * features/riscv/32bit-fpu.xml: Add register numbers.
14251 * features/riscv/64bit-cpu.xml: Add register numbers.
14252 * features/riscv/64bit-fpu.c: Regenerate.
14253 * features/riscv/64bit-fpu.xml: Add register numbers.
14254
26c89782
KB
142552019-02-26 Kevin Buettner <kevinb@redhat.com>
14256
af54ade9 14257 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14258 * python/py-value.c (convert_buffer_and_type_to_value): New
14259 function.
14260 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14261 Add support for handling an optional second argument. Call
14262 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14263 * python/python-internal.h (Py_buffer_deleter): New struct.
14264 (Py_buffer_up): New typedef.
14265
0f58c9e8
JB
142662019-02-25 John Baldwin <jhb@FreeBSD.org>
14267
14268 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14269 instead of releasing ownership.
14270
0a0f4c01
JR
142712019-02-25 Jordan Rupprecht <rupprecht@google.com>
14272
14273 * dwarf2read.c (open_and_init_dwp_file): Call
14274 elf_numsections instead of bfd_count_sections to initialize
14275 dwp_file->num_sections.
14276
cd5a152c
TT
142772019-02-25 Tom Tromey <tromey@adacore.com>
14278
14279 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14280
8a6a8513
SDJ
142812019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14282
14283 * gcore.in: Add '--readnever' option when invoking GDB.
14284
04dcda9c
SM
142852019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14286
14287 * MAINTAINERS: Update my email address.
14288
07bc701d
SM
142892019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14290
14291 * build-id.c (build_id_to_debug_bfd_1): New function.
14292 (build_id_to_debug_bfd): Look for separate debug file in
14293 sysroot.
14294
c6f4a5d0
AB
142952019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14296
14297 * gdbarch.sh: Update the copyright year range that is placed into
14298 generated files.
14299
9600246d
KS
143002019-02-22 Keith Seitz <keiths@redhat.com>
14301
14302 PR symtab/23853
14303 * linespec.c (create_sals_line_offset): Search for the default
14304 symtab's filename instead of its fullname.
14305
7557a514
AH
143062019-02-21 Alan Hayward <alan.hayward@arm.com>
14307
14308 * NEWS: Update style defaults.
14309
ee2bcb0c
AH
143102019-02-21 Alan Hayward <alan.hayward@arm.com>
14311
14312 * main.c (captured_main_1): Disable styling in batch mode.
14313
0c95f9ed
TT
143142019-02-20 Tom Tromey <tom@tromey.com>
14315
14316 * symtab.c (symtab_symbol_info): Fix typos.
14317
c763b894
TT
143182019-02-20 Tom Tromey <tromey@adacore.com>
14319
14320 * findcmd.c (_initialize_mem_search): Use upper case for
14321 metasyntactic variables.
14322
0ef8a082
AH
143232019-02-20 Alan Hayward <alan.hayward@arm.com>
14324
14325 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14326 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14327
6caa91b6
SM
143282019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14329
14330 * top.h (source_file_name): Change to std::string.
14331 * top.c (source_file_name): Likewise.
14332 (command_line_input): Adjust.
14333 * cli/cli-script.c (script_from_file): Adjust.
14334
98814c6c
TT
143352019-02-19 Tom Tromey <tromey@adacore.com>
14336
14337 * ravenscar-thread.c
14338 (ravenscar_thread_target::update_thread_list): Don't call
14339 ada_build_task_list.
14340 * ada-lang.h (ada_build_task_list): Don't declare.
14341 * ada-tasks.c (struct ada_tasks_inferior_data)
14342 <task_list_valid_p>: Now bool.
14343 (read_known_tasks, ada_task_list_changed)
14344 (ada_tasks_invalidate_inferior_data): Update.
14345 (read_known_tasks_array): Return bool.
14346 (read_known_tasks_list): Likewise.
14347 (read_known_tasks): Return void.
14348 (ada_build_task_list): Now static.
14349
70cd633e
AB
143502019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14351
14352 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14353 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14354
040b3e95
PW
143552019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14356
14357 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14358 variant for ada_tasks_pspace_data_handle and
14359 ada_tasks_inferior_data_handle.
14360 (ada_tasks_pspace_data_cleanup): New function.
14361 (ada_tasks_inferior_data_cleanup): New function.
14362
9409233b
TT
143632019-02-17 Tom Tromey <tom@tromey.com>
14364
14365 * macrotab.h (macro_source_fullname): Return a std::string.
14366 * macrotab.c (macro_include, check_for_redefinition)
14367 (macro_undef, macro_lookup_definition, foreach_macro)
14368 (foreach_macro_in_scope): Update.
14369 (macro_source_fullname): Return a std::string.
14370 * macrocmd.c (show_pp_source_pos): Update.
14371
6506371f
TT
143722019-02-17 Tom Tromey <tom@tromey.com>
14373
14374 * macrocmd.c (show_pp_source_pos): Style the file names.
14375
0c820d67
TT
143762019-02-17 Tom Tromey <tom@tromey.com>
14377
14378 PR tui/24197:
14379 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14380
a0087920
TT
143812019-02-17 Tom Tromey <tom@tromey.com>
14382
14383 * ada-lang.c (user_select_syms): Use filtered printing.
14384 * utils.c (wrap_style): New global.
14385 (desired_style): Remove.
14386 (emit_style_escape): Add stream parameter.
14387 (set_output_style, reset_terminal_style, prompt_for_continue):
14388 Update.
14389 (flush_wrap_buffer): Only flush gdb_stdout.
14390 (wrap_here): Set wrap_style.
14391 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14392 treat escape sequences as a character. Change when wrap buffer is
14393 flushed.
14394 (fputs_styled): Do not set the output style when the default is
14395 requested.
14396 * ui-style.h (struct ui_file_style) <is_default>: New method.
14397 * source.c (print_source_lines_base): Emit escape sequences in one
14398 piece.
14399
75ba10dc
JB
144002019-02-17 Joel Brobecker <brobecker@adacore.com>
14401
14402 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14403 integers and enumeration types.
14404
a2cd4f14
JB
144052019-02-17 Joel Brobecker <brobecker@adacore.com>
14406
14407 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14408 instead of lookup_symbol_in_language
14409 (do_exact_match): New function.
14410 (ada_get_symbol_name_matcher): Return do_exact_match when
14411 doing a verbatim match.
14412
485b851b
TT
144132019-02-15 Tom Tromey <tromey@adacore.com>
14414
14415 * ravenscar-thread.c (ravenscar_thread_target::resume)
14416 (ravenscar_thread_target::wait): Special case wildcard requests.
14417
0b790b1e
TT
144182019-02-15 Tom Tromey <tromey@adacore.com>
14419
14420 * ravenscar-thread.c (base_ptid): Remove.
14421 (struct ravenscar_thread_target) <close>: New method.
14422 <m_base_ptid>: New member.
14423 <update_inferior_ptid, active_task, task_is_currently_active,
14424 runtime_initialized>: Declare methods.
14425 <ravenscar_thread_target>: Add constructor.
14426 (ravenscar_thread_target::task_is_currently_active)
14427 (ravenscar_thread_target::update_inferior_ptid)
14428 (ravenscar_runtime_initialized): Rename. Now methods.
14429 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14430 (ravenscar_thread_target::update_thread_list): Update.
14431 (ravenscar_thread_target::active_task): Now method.
14432 (ravenscar_thread_target::store_registers)
14433 (ravenscar_thread_target::prepare_to_store)
14434 (ravenscar_thread_target::prepare_to_store)
14435 (ravenscar_thread_target::mourn_inferior): Update.
14436 (ravenscar_inferior_created): Use "new" to create target.
14437 (ravenscar_thread_target::get_ada_task_ptid): Update.
14438 (_initialize_ravenscar): Don't initialize base_ptid.
14439 (ravenscar_ops): Remove global.
14440
dea57a62
TT
144412019-02-15 Tom Tromey <tromey@adacore.com>
14442
14443 * target.h (push_target): Declare new overload.
14444 * target.c (push_target): New overload, taking an rvalue reference.
14445 * remote.c (remote_target::open_1): Use push_target overload.
14446 * corelow.c (core_target_open): Use push_target overload.
14447
989f3c58
TT
144482019-02-15 Tom Tromey <tromey@adacore.com>
14449
14450 * ravenscar-thread.c (is_ravenscar_task)
14451 (ravenscar_task_is_currently_active): Return bool.
14452 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14453 (_initialize_ravenscar): Remove "(void)".
14454 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14455 Return bool.
14456
6cbcc006
TT
144572019-02-15 Tom Tromey <tromey@adacore.com>
14458
14459 * ravenscar-thread.c (ravenscar_runtime_initializer)
14460 (has_ravenscar_runtime, get_running_thread_id)
14461 (ravenscar_thread_target::resume): Fix indentation.
14462
7657f14d
TT
144632019-02-15 Tom Tromey <tromey@adacore.com>
14464
14465 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14466 from ravenscar_arch_ops.
14467 (sparc_ravenscar_ops::fetch_registers)
14468 (sparc_ravenscar_ops::store_registers): Now methods.
14469 (sparc_ravenscar_prepare_to_store): Remove.
14470 (sparc_ravenscar_ops): Redefine.
14471 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14472 methods and destructor. Remove members.
14473 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14474 (ravenscar_thread_target::store_registers)
14475 (ravenscar_thread_target::prepare_to_store): Update.
14476 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14477 Remove.
14478 (struct ppc_ravenscar_powerpc_ops): Derive from
14479 ravenscar_arch_ops.
14480 (ppc_ravenscar_powerpc_ops::fetch_registers)
14481 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14482 (ppc_ravenscar_powerpc_ops): Redefine.
14483 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14484 (ppc_ravenscar_e500_ops::fetch_registers)
14485 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14486 (ppc_ravenscar_e500_ops): Redefine.
14487 * aarch64-ravenscar-thread.c
14488 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14489 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14490 (aarch64_ravenscar_fetch_registers)
14491 (aarch64_ravenscar_store_registers): Now methods.
14492 (aarch64_ravenscar_ops): Redefine.
14493
5b6ea500
TT
144942019-02-15 Tom Tromey <tromey@adacore.com>
14495
14496 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14497 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14498 (ravenscar_thread_target::stopped_by_watchpoint)
14499 (ravenscar_thread_target::stopped_data_address)
14500 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14501
e397fd39
TT
145022019-02-15 Tom Tromey <tromey@adacore.com>
14503
14504 * ravenscar-thread.c: Fix some typos.
14505
cc12f4a8
TT
145062019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14507 Tom Tromey <tromey@adacore.com>
14508
14509 * ada-lang.c (ada_exception_sal): Change addr_string to a
14510 std::string.
14511 (create_ada_exception_catchpoint): Update.
14512
5f486660
TT
145132019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14514 Tom Tromey <tromey@adacore.com>
14515
14516 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14517 (bp_location_ops): Remove.
14518 (base_breakpoint_allocate_location): Update.
14519 (free_bp_location): Update.
14520 * ada-lang.c (class ada_catchpoint_location)
14521 <ada_catchpoint_location>: Remove ops parameter.
14522 (ada_catchpoint_location_dtor): Remove.
14523 (ada_catchpoint_location_ops): Remove.
14524 (allocate_location_exception): Update.
14525 * breakpoint.h (struct bp_location_ops): Remove.
14526 (class bp_location) <bp_location>: Remove bp_location_ops
14527 parameter.
14528 <~bp_location>: Add destructor.
14529 <ops>: Remove.
14530
b671c7fb
TS
145312019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14532 Pedro Alves <palves@redhat.com>
14533
14534 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14535 'PATH_MAX'.
14536
8071c5ce
DM
145372019-02-14 David Michael <fedora.dm0@gmail.com>
14538 Samuel Thibault <samuel.thibault@gnu.org>
14539 Thomas Schwinge <thomas@codesourcery.com>
14540
14541 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14542 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14543
b1041ae0
TS
145442019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14545
924514e1
TS
14546 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14547 (check_empty): Use "const char *".
14548
c29ee8d4
TS
14549 * gnu-nat.c (gnu_nat_target::detach): Instead of
14550 'detach_inferior (pid)' call
14551 'detach_inferior (find_inferior_pid (pid))'.
14552
6c6ef69f
TS
14553 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14554 'nat/fork-inferior.o'.
14555 * gnu-nat.c: #include "nat/fork-inferior.h".
14556
2d0a338c
TS
14557 * gnu-nat.c (gnu_nat_target::detach): Instead of
14558 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14559 * gnu-nat.h: #include "inf-child.h".
14560 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14561 'i386_gnu_nat_target::fetch_registers'.
14562 (gnu_store_registers): Rename/move to
14563 'i386_gnu_nat_target::store_registers'.
14564
cabb5f06
TS
14565 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14566 * gnu-nat.h (mach_thread_info): New function.
14567 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14568
b1041ae0
TS
14569 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14570
2988d01e
KF
145712019-02-14 Frederic Konrad <konrad@adacore.com>
14572
14573 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14574
c559d709
JB
145752019-02-14 Joel Brobecker <brobecker@adacore.com>
14576
14577 * windows-nat.c (windows_add_thread): Add new parameter
14578 "main_thread_p" with default value set to false. Update
14579 function documentation as well as all callers.
14580 (windows_delete_thread): Likewise.
14581 (fake_create_process): Update call to windows_add_thread.
14582 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14583 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14584 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14585 call to windows_delete_thread.
14586
007024cc
SM
145872019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14588
14589 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14590
f62318e9
JB
145912019-02-12 John Baldwin <jhb@FreeBSD.org>
14592
14593 * symfile.c (find_separate_debug_file): Use canonical path of
14594 sysroot with child_path instead of gdb_sysroot if it is valid.
14595
cd4b7848
JB
145962019-02-12 John Baldwin <jhb@FreeBSD.org>
14597
14598 * symfile.c (find_separate_debug_file): Use child_path to
14599 determine if an object file is under a sysroot.
14600
efac4bfe
JB
146012019-02-12 John Baldwin <jhb@FreeBSD.org>
14602
14603 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14604 unittests/child-path-selftests.c.
14605 * common/pathstuff.c (child_path): New function.
14606 * common/pathstuff.h (child_path): New prototype.
14607 * unittests/child-path-selftests.c: New file.
14608
402d2bfe
JB
146092019-02-12 John Baldwin <jhb@FreeBSD.org>
14610
14611 * symfile.c (find_separate_debug_file): Look for separate debug
14612 files in debug directories under the sysroot.
14613
1ed9f74e
PW
146142019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14615
14616 * symtab.h (struct minimal_symbol data_p): New const method.
14617 (struct minimal_symbol text_p): Likewise.
14618 * symtab.c (output_source_filename): Use file name style
14619 to print file name.
14620 (print_symbol_info): Likewise.
14621 (print_msymbol_info): Use address style to print addresses.
14622 Use function name style to print executable text symbols.
14623 (expand_symtab_containing_pc): Use data_p.
14624 (find_pc_sect_compunit_symtab): Likewise.
14625
2636d81d
PW
146262019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14627
14628 * breakpoint.c (describe_other_breakpoints): Use address style
14629 to print addresses.
14630 (say_where): Likewise.
14631
ac8c53cc
PW
146322019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14633
14634 * ada-typeprint.c (print_func_type): Print function name
14635 style to print function name.
14636 * c-typeprint.c (c_print_type_1): Likewise.
14637
ea638c43
AH
146382019-02-11 Alan Hayward <alan.hayward@arm.com>
14639
14640 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14641 for execve.
14642
ab759ca8
PW
146432019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14644
14645 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14646 type_stack.
14647
aff29d1c
JB
146482019-02-10 Joel Brobecker <brobecker@adacore.com>
14649
14650 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14651 TYPE_CODE_REF types.
14652
617126bc
JW
146532019-02-08 Jim Wilson <jimw@sifive.com>
14654
14655 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14656 (riscv_linux_fregset): New.
14657 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14658
46e3ed7f
TT
146592019-02-07 Tom Tromey <tom@tromey.com>
14660
14661 * thread.c (thread_cancel_execution_command): Update.
14662 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14663 methods.
14664 (struct thread_fsm_ops): Remove.
14665 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14666 (thread_fsm_should_stop, thread_fsm_return_value)
14667 (thread_fsm_set_finished, thread_fsm_finished_p)
14668 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14669 Don't declare.
14670 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14671 * infrun.c (clear_proceed_status_thread)
14672 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14673 (print_stop_event): Update.
14674 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14675 Add constructor.
14676 (step_command_fsm_ops): Remove.
14677 (new_step_command_fsm): Remove.
14678 (step_1): Update.
14679 (step_command_fsm::should_stop): Rename from
14680 step_command_fsm_should_stop.
14681 (step_command_fsm::clean_up): Rename from
14682 step_command_fsm_clean_up.
14683 (step_command_fsm::do_async_reply_reason): Rename from
14684 step_command_fsm_async_reply_reason.
14685 (struct until_next_fsm): Inherit from thread_fsm. Add
14686 constructor.
14687 (until_next_fsm_ops): Remove.
14688 (new_until_next_fsm): Remove.
14689 (until_next_fsm::should_stop): Rename from
14690 until_next_fsm_should_stop.
14691 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14692 (until_next_fsm::do_async_reply_reason): Rename from
14693 until_next_fsm_async_reply_reason.
14694 (struct finish_command_fsm): Inherit from thread_fsm. Add
14695 constructor. Change type of breakpoint.
14696 (finish_command_fsm_ops): Remove.
14697 (new_finish_command_fsm): Remove.
14698 (finish_command_fsm::should_stop): Rename from
14699 finish_command_fsm_should_stop.
14700 (finish_command_fsm::clean_up): Rename from
14701 finish_command_fsm_clean_up.
14702 (finish_command_fsm::return_value): Rename from
14703 finish_command_fsm_return_value.
14704 (finish_command_fsm::do_async_reply_reason): Rename from
14705 finish_command_fsm_async_reply_reason.
14706 (finish_command): Update.
14707 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14708 Add constructor.
14709 (call_thread_fsm_ops): Remove.
14710 (call_thread_fsm::call_thread_fsm): Rename from
14711 new_call_thread_fsm.
14712 (call_thread_fsm::should_stop): Rename from
14713 call_thread_fsm_should_stop.
14714 (call_thread_fsm::should_notify_stop): Rename from
14715 call_thread_fsm_should_notify_stop.
14716 (run_inferior_call, call_function_by_hand_dummy): Update.
14717 * cli/cli-interp.c (should_print_stop_to_console): Update.
14718 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14719 Add constructor. Change type of location_breakpoint,
14720 caller_breakpoint.
14721 (until_break_fsm_ops): Remove.
14722 (new_until_break_fsm): Remove.
14723 (until_break_fsm::should_stop): Rename from
14724 until_break_fsm_should_stop.
14725 (until_break_fsm::clean_up): Rename from
14726 until_break_fsm_clean_up.
14727 (until_break_fsm::do_async_reply_reason): Rename from
14728 until_break_fsm_async_reply_reason.
14729 (until_break_command): Update.
14730 * thread-fsm.c: Remove.
14731 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14732
1a5c2598
TT
147332019-02-07 Tom Tromey <tom@tromey.com>
14734
14735 * yy-remap.h: Add include guard.
14736 * xtensa-tdep.h: Add include guard.
14737 * xcoffread.h: Rename include guard.
14738 * varobj-iter.h: Add include guard.
14739 * tui/tui.h: Rename include guard.
14740 * tui/tui-winsource.h: Rename include guard.
14741 * tui/tui-wingeneral.h: Rename include guard.
14742 * tui/tui-windata.h: Rename include guard.
14743 * tui/tui-win.h: Rename include guard.
14744 * tui/tui-stack.h: Rename include guard.
14745 * tui/tui-source.h: Rename include guard.
14746 * tui/tui-regs.h: Rename include guard.
14747 * tui/tui-out.h: Rename include guard.
14748 * tui/tui-layout.h: Rename include guard.
14749 * tui/tui-io.h: Rename include guard.
14750 * tui/tui-hooks.h: Rename include guard.
14751 * tui/tui-file.h: Rename include guard.
14752 * tui/tui-disasm.h: Rename include guard.
14753 * tui/tui-data.h: Rename include guard.
14754 * tui/tui-command.h: Rename include guard.
14755 * tic6x-tdep.h: Add include guard.
14756 * target/waitstatus.h: Rename include guard.
14757 * target/wait.h: Rename include guard.
14758 * target/target.h: Rename include guard.
14759 * target/resume.h: Rename include guard.
14760 * target-float.h: Rename include guard.
14761 * stabsread.h: Add include guard.
14762 * rs6000-tdep.h: Add include guard.
14763 * riscv-fbsd-tdep.h: Add include guard.
14764 * regformats/regdef.h: Rename include guard.
14765 * record.h: Rename include guard.
14766 * python/python.h: Rename include guard.
14767 * python/python-internal.h: Rename include guard.
14768 * python/py-stopevent.h: Rename include guard.
14769 * python/py-ref.h: Rename include guard.
14770 * python/py-record.h: Rename include guard.
14771 * python/py-record-full.h: Rename include guard.
14772 * python/py-record-btrace.h: Rename include guard.
14773 * python/py-instruction.h: Rename include guard.
14774 * python/py-events.h: Rename include guard.
14775 * python/py-event.h: Rename include guard.
14776 * procfs.h: Add include guard.
14777 * proc-utils.h: Add include guard.
14778 * p-lang.h: Add include guard.
14779 * or1k-tdep.h: Rename include guard.
14780 * observable.h: Rename include guard.
14781 * nto-tdep.h: Rename include guard.
14782 * nat/x86-linux.h: Rename include guard.
14783 * nat/x86-linux-dregs.h: Rename include guard.
14784 * nat/x86-gcc-cpuid.h: Add include guard.
14785 * nat/x86-dregs.h: Rename include guard.
14786 * nat/x86-cpuid.h: Rename include guard.
14787 * nat/ppc-linux.h: Rename include guard.
14788 * nat/mips-linux-watch.h: Rename include guard.
14789 * nat/linux-waitpid.h: Rename include guard.
14790 * nat/linux-ptrace.h: Rename include guard.
14791 * nat/linux-procfs.h: Rename include guard.
14792 * nat/linux-osdata.h: Rename include guard.
14793 * nat/linux-nat.h: Rename include guard.
14794 * nat/linux-namespaces.h: Rename include guard.
14795 * nat/linux-btrace.h: Rename include guard.
14796 * nat/glibc_thread_db.h: Rename include guard.
14797 * nat/gdb_thread_db.h: Rename include guard.
14798 * nat/gdb_ptrace.h: Rename include guard.
14799 * nat/fork-inferior.h: Rename include guard.
14800 * nat/amd64-linux-siginfo.h: Rename include guard.
14801 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14802 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14803 * nat/aarch64-linux.h: Rename include guard.
14804 * nat/aarch64-linux-hw-point.h: Rename include guard.
14805 * mn10300-tdep.h: Add include guard.
14806 * mips-linux-tdep.h: Add include guard.
14807 * mi/mi-parse.h: Rename include guard.
14808 * mi/mi-out.h: Rename include guard.
14809 * mi/mi-main.h: Rename include guard.
14810 * mi/mi-interp.h: Rename include guard.
14811 * mi/mi-getopt.h: Rename include guard.
14812 * mi/mi-console.h: Rename include guard.
14813 * mi/mi-common.h: Rename include guard.
14814 * mi/mi-cmds.h: Rename include guard.
14815 * mi/mi-cmd-break.h: Rename include guard.
14816 * m2-lang.h: Add include guard.
14817 * location.h: Rename include guard.
14818 * linux-record.h: Rename include guard.
14819 * linux-nat.h: Add include guard.
14820 * linux-fork.h: Add include guard.
14821 * i386-darwin-tdep.h: Rename include guard.
14822 * hppa-linux-offsets.h: Add include guard.
14823 * guile/guile.h: Rename include guard.
14824 * guile/guile-internal.h: Rename include guard.
14825 * gnu-nat.h: Rename include guard.
14826 * gdb-stabs.h: Rename include guard.
14827 * frv-tdep.h: Add include guard.
14828 * f-lang.h: Add include guard.
14829 * event-loop.h: Add include guard.
14830 * darwin-nat.h: Rename include guard.
14831 * cp-abi.h: Rename include guard.
14832 * config/sparc/nm-sol2.h: Rename include guard.
14833 * config/nm-nto.h: Rename include guard.
14834 * config/nm-linux.h: Add include guard.
14835 * config/i386/nm-i386gnu.h: Rename include guard.
14836 * config/djgpp/nl_types.h: Rename include guard.
14837 * config/djgpp/langinfo.h: Rename include guard.
14838 * compile/gcc-cp-plugin.h: Add include guard.
14839 * compile/gcc-c-plugin.h: Add include guard.
14840 * compile/compile.h: Rename include guard.
14841 * compile/compile-object-run.h: Rename include guard.
14842 * compile/compile-object-load.h: Rename include guard.
14843 * compile/compile-internal.h: Rename include guard.
14844 * compile/compile-cplus.h: Rename include guard.
14845 * compile/compile-c.h: Rename include guard.
14846 * common/xml-utils.h: Rename include guard.
14847 * common/x86-xstate.h: Rename include guard.
14848 * common/version.h: Rename include guard.
14849 * common/vec.h: Rename include guard.
14850 * common/tdesc.h: Rename include guard.
14851 * common/selftest.h: Rename include guard.
14852 * common/scoped_restore.h: Rename include guard.
14853 * common/scoped_mmap.h: Rename include guard.
14854 * common/scoped_fd.h: Rename include guard.
14855 * common/safe-iterator.h: Rename include guard.
14856 * common/run-time-clock.h: Rename include guard.
14857 * common/refcounted-object.h: Rename include guard.
14858 * common/queue.h: Rename include guard.
14859 * common/ptid.h: Rename include guard.
14860 * common/print-utils.h: Rename include guard.
14861 * common/preprocessor.h: Rename include guard.
14862 * common/pathstuff.h: Rename include guard.
14863 * common/observable.h: Rename include guard.
14864 * common/netstuff.h: Rename include guard.
14865 * common/job-control.h: Rename include guard.
14866 * common/host-defs.h: Rename include guard.
14867 * common/gdb_wait.h: Rename include guard.
14868 * common/gdb_vecs.h: Rename include guard.
14869 * common/gdb_unlinker.h: Rename include guard.
14870 * common/gdb_unique_ptr.h: Rename include guard.
14871 * common/gdb_tilde_expand.h: Rename include guard.
14872 * common/gdb_sys_time.h: Rename include guard.
14873 * common/gdb_string_view.h: Rename include guard.
14874 * common/gdb_splay_tree.h: Rename include guard.
14875 * common/gdb_setjmp.h: Rename include guard.
14876 * common/gdb_ref_ptr.h: Rename include guard.
14877 * common/gdb_optional.h: Rename include guard.
14878 * common/gdb_locale.h: Rename include guard.
14879 * common/gdb_assert.h: Rename include guard.
14880 * common/filtered-iterator.h: Rename include guard.
14881 * common/filestuff.h: Rename include guard.
14882 * common/fileio.h: Rename include guard.
14883 * common/environ.h: Rename include guard.
14884 * common/common-utils.h: Rename include guard.
14885 * common/common-types.h: Rename include guard.
14886 * common/common-regcache.h: Rename include guard.
14887 * common/common-inferior.h: Rename include guard.
14888 * common/common-gdbthread.h: Rename include guard.
14889 * common/common-exceptions.h: Rename include guard.
14890 * common/common-defs.h: Rename include guard.
14891 * common/common-debug.h: Rename include guard.
14892 * common/cleanups.h: Rename include guard.
14893 * common/buffer.h: Rename include guard.
14894 * common/btrace-common.h: Rename include guard.
14895 * common/break-common.h: Rename include guard.
14896 * cli/cli-utils.h: Rename include guard.
14897 * cli/cli-style.h: Rename include guard.
14898 * cli/cli-setshow.h: Rename include guard.
14899 * cli/cli-script.h: Rename include guard.
14900 * cli/cli-interp.h: Rename include guard.
14901 * cli/cli-decode.h: Rename include guard.
14902 * cli/cli-cmds.h: Rename include guard.
14903 * charset-list.h: Add include guard.
14904 * buildsym-legacy.h: Rename include guard.
14905 * bfin-tdep.h: Add include guard.
14906 * ax.h: Rename include guard.
14907 * arm-linux-tdep.h: Add include guard.
14908 * arm-fbsd-tdep.h: Add include guard.
14909 * arch/xtensa.h: Rename include guard.
14910 * arch/tic6x.h: Add include guard.
14911 * arch/i386.h: Add include guard.
14912 * arch/arm.h: Rename include guard.
14913 * arch/arm-linux.h: Rename include guard.
14914 * arch/arm-get-next-pcs.h: Rename include guard.
14915 * arch/amd64.h: Add include guard.
14916 * arch/aarch64-insn.h: Rename include guard.
14917 * arch-utils.h: Rename include guard.
14918 * annotate.h: Add include guard.
14919 * amd64-darwin-tdep.h: Rename include guard.
14920 * aarch64-linux-tdep.h: Add include guard.
14921 * aarch64-fbsd-tdep.h: Add include guard.
14922 * aarch32-linux-nat.h: Add include guard.
14923
ab9268d2
PW
149242019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14925
14926 * macrotab.c (macro_define_internal): New function that
14927 factorizes macro_define_object_internal and macro_define_function
14928 code.
14929 (macro_define_object_internal): Use macro_define_internal.
14930 (macro_define_function): Likewise.
14931
bb0da2b4
PW
149322019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14933
14934 * macrocmd.c (extract_identifier): Return
14935 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14936 callers.
14937
424eb552
JB
149382019-02-06 John Baldwin <jhb@FreeBSD.org>
14939
14940 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14941
1688cb29
TT
149422019-02-05 Tom Tromey <tom@tromey.com>
14943
14944 * target.c (target_stack::unpush): Move assertion earlier.
14945
b5eba2d8
TT
149462019-01-30 Tom Tromey <tom@tromey.com>
14947
14948 PR python/23615:
14949 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14950 (gdbpy_parse_and_eval): Likewise.
14951 * python/python-internal.h (gdbpy_allow_threads): New class.
14952
7054e2ff
JB
149532019-01-28 John Baldwin <jhb@FreeBSD.org>
14954
14955 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14956 (aarch64_fbsd_fpregmap): Move earlier.
14957 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14958 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14959 instead of individual calls to trad_frame_set_reg_addr.
14960 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14961 earlier.
14962 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14963 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14964 instead of individual calls to trad_frame_set_reg_addr.
14965
36c25ffa
AH
149662019-01-28 Alan Hayward <alan.hayward@arm.com>
14967
14968 * CONTRIBUTE: Replace contribution list with wiki link.
14969
a0707f3c
TT
149702019-01-25 Tom Tromey <tom@tromey.com>
14971
14972 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14973
0747795c
TT
149742019-01-25 Tom Tromey <tom@tromey.com>
14975
14976 * xtensa-linux-nat.c: Fix common/ includes.
14977 * xml-support.h: Fix common/ includes.
14978 * xml-support.c: Fix common/ includes.
14979 * x86-linux-nat.c: Fix common/ includes.
14980 * windows-nat.c: Fix common/ includes.
14981 * varobj.h: Fix common/ includes.
14982 * varobj.c: Fix common/ includes.
14983 * value.c: Fix common/ includes.
14984 * valops.c: Fix common/ includes.
14985 * utils.c: Fix common/ includes.
14986 * unittests/xml-utils-selftests.c: Fix common/ includes.
14987 * unittests/utils-selftests.c: Fix common/ includes.
14988 * unittests/unpack-selftests.c: Fix common/ includes.
14989 * unittests/tracepoint-selftests.c: Fix common/ includes.
14990 * unittests/style-selftests.c: Fix common/ includes.
14991 * unittests/string_view-selftests.c: Fix common/ includes.
14992 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14993 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14994 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14995 * unittests/rsp-low-selftests.c: Fix common/ includes.
14996 * unittests/parse-connection-spec-selftests.c: Fix common/
14997 includes.
14998 * unittests/optional-selftests.c: Fix common/ includes.
14999 * unittests/offset-type-selftests.c: Fix common/ includes.
15000 * unittests/observable-selftests.c: Fix common/ includes.
15001 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15002 * unittests/memrange-selftests.c: Fix common/ includes.
15003 * unittests/memory-map-selftests.c: Fix common/ includes.
15004 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15005 * unittests/function-view-selftests.c: Fix common/ includes.
15006 * unittests/environ-selftests.c: Fix common/ includes.
15007 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15008 * unittests/common-utils-selftests.c: Fix common/ includes.
15009 * unittests/cli-utils-selftests.c: Fix common/ includes.
15010 * unittests/array-view-selftests.c: Fix common/ includes.
15011 * ui-file.c: Fix common/ includes.
15012 * tui/tui-io.c: Fix common/ includes.
15013 * tracepoint.h: Fix common/ includes.
15014 * tracepoint.c: Fix common/ includes.
15015 * tracefile-tfile.c: Fix common/ includes.
15016 * top.h: Fix common/ includes.
15017 * top.c: Fix common/ includes.
15018 * thread.c: Fix common/ includes.
15019 * target/waitstatus.h: Fix common/ includes.
15020 * target/waitstatus.c: Fix common/ includes.
15021 * target.h: Fix common/ includes.
15022 * target.c: Fix common/ includes.
15023 * target-memory.c: Fix common/ includes.
15024 * target-descriptions.c: Fix common/ includes.
15025 * symtab.h: Fix common/ includes.
15026 * symfile.c: Fix common/ includes.
15027 * stap-probe.c: Fix common/ includes.
15028 * spu-linux-nat.c: Fix common/ includes.
15029 * sparc-nat.c: Fix common/ includes.
15030 * source.c: Fix common/ includes.
15031 * solib.c: Fix common/ includes.
15032 * solib-target.c: Fix common/ includes.
15033 * ser-unix.c: Fix common/ includes.
15034 * ser-tcp.c: Fix common/ includes.
15035 * ser-pipe.c: Fix common/ includes.
15036 * ser-base.c: Fix common/ includes.
15037 * selftest-arch.c: Fix common/ includes.
15038 * s12z-tdep.c: Fix common/ includes.
15039 * rust-exp.y: Fix common/ includes.
15040 * rs6000-aix-tdep.c: Fix common/ includes.
15041 * riscv-tdep.c: Fix common/ includes.
15042 * remote.c: Fix common/ includes.
15043 * remote-notif.h: Fix common/ includes.
15044 * remote-fileio.h: Fix common/ includes.
15045 * remote-fileio.c: Fix common/ includes.
15046 * regcache.h: Fix common/ includes.
15047 * regcache.c: Fix common/ includes.
15048 * record-btrace.c: Fix common/ includes.
15049 * python/python.c: Fix common/ includes.
15050 * python/py-type.c: Fix common/ includes.
15051 * python/py-inferior.c: Fix common/ includes.
15052 * progspace.h: Fix common/ includes.
15053 * producer.c: Fix common/ includes.
15054 * procfs.c: Fix common/ includes.
15055 * proc-api.c: Fix common/ includes.
15056 * printcmd.c: Fix common/ includes.
15057 * ppc-linux-nat.c: Fix common/ includes.
15058 * parser-defs.h: Fix common/ includes.
15059 * osdata.c: Fix common/ includes.
15060 * obsd-nat.c: Fix common/ includes.
15061 * nat/x86-linux.c: Fix common/ includes.
15062 * nat/x86-linux-dregs.c: Fix common/ includes.
15063 * nat/x86-dregs.h: Fix common/ includes.
15064 * nat/x86-dregs.c: Fix common/ includes.
15065 * nat/ppc-linux.c: Fix common/ includes.
15066 * nat/mips-linux-watch.h: Fix common/ includes.
15067 * nat/mips-linux-watch.c: Fix common/ includes.
15068 * nat/linux-waitpid.c: Fix common/ includes.
15069 * nat/linux-ptrace.h: Fix common/ includes.
15070 * nat/linux-ptrace.c: Fix common/ includes.
15071 * nat/linux-procfs.c: Fix common/ includes.
15072 * nat/linux-personality.c: Fix common/ includes.
15073 * nat/linux-osdata.c: Fix common/ includes.
15074 * nat/linux-namespaces.c: Fix common/ includes.
15075 * nat/linux-btrace.h: Fix common/ includes.
15076 * nat/linux-btrace.c: Fix common/ includes.
15077 * nat/fork-inferior.c: Fix common/ includes.
15078 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15079 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15080 * nat/aarch64-linux.c: Fix common/ includes.
15081 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15082 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15083 * namespace.h: Fix common/ includes.
15084 * mips-linux-tdep.c: Fix common/ includes.
15085 * minsyms.c: Fix common/ includes.
15086 * mi/mi-parse.h: Fix common/ includes.
15087 * mi/mi-main.c: Fix common/ includes.
15088 * mi/mi-cmd-env.c: Fix common/ includes.
15089 * memrange.h: Fix common/ includes.
15090 * memattr.c: Fix common/ includes.
15091 * maint.h: Fix common/ includes.
15092 * maint.c: Fix common/ includes.
15093 * main.c: Fix common/ includes.
15094 * machoread.c: Fix common/ includes.
15095 * location.c: Fix common/ includes.
15096 * linux-thread-db.c: Fix common/ includes.
15097 * linux-nat.c: Fix common/ includes.
15098 * linux-fork.c: Fix common/ includes.
15099 * inline-frame.c: Fix common/ includes.
15100 * infrun.c: Fix common/ includes.
15101 * inflow.c: Fix common/ includes.
15102 * inferior.h: Fix common/ includes.
15103 * inferior.c: Fix common/ includes.
15104 * infcmd.c: Fix common/ includes.
15105 * inf-ptrace.c: Fix common/ includes.
15106 * inf-child.c: Fix common/ includes.
15107 * ia64-linux-nat.c: Fix common/ includes.
15108 * i387-tdep.c: Fix common/ includes.
15109 * i386-tdep.c: Fix common/ includes.
15110 * i386-linux-tdep.c: Fix common/ includes.
15111 * i386-linux-nat.c: Fix common/ includes.
15112 * i386-go32-tdep.c: Fix common/ includes.
15113 * i386-fbsd-tdep.c: Fix common/ includes.
15114 * i386-fbsd-nat.c: Fix common/ includes.
15115 * guile/scm-type.c: Fix common/ includes.
15116 * guile/guile.c: Fix common/ includes.
15117 * go32-nat.c: Fix common/ includes.
15118 * gnu-nat.c: Fix common/ includes.
15119 * gdbthread.h: Fix common/ includes.
15120 * gdbarch-selftests.c: Fix common/ includes.
15121 * gdb_usleep.c: Fix common/ includes.
15122 * gdb_select.h: Fix common/ includes.
15123 * gdb_bfd.c: Fix common/ includes.
15124 * gcore.c: Fix common/ includes.
15125 * fork-child.c: Fix common/ includes.
15126 * findvar.c: Fix common/ includes.
15127 * fbsd-nat.c: Fix common/ includes.
15128 * event-top.c: Fix common/ includes.
15129 * event-loop.c: Fix common/ includes.
15130 * dwarf2read.c: Fix common/ includes.
15131 * dwarf2loc.c: Fix common/ includes.
15132 * dwarf2-frame.c: Fix common/ includes.
15133 * dwarf-index-cache.c: Fix common/ includes.
15134 * dtrace-probe.c: Fix common/ includes.
15135 * disasm-selftests.c: Fix common/ includes.
15136 * defs.h: Fix common/ includes.
15137 * csky-tdep.c: Fix common/ includes.
15138 * cp-valprint.c: Fix common/ includes.
15139 * cp-support.h: Fix common/ includes.
15140 * cp-support.c: Fix common/ includes.
15141 * corelow.c: Fix common/ includes.
15142 * completer.h: Fix common/ includes.
15143 * completer.c: Fix common/ includes.
15144 * compile/compile.c: Fix common/ includes.
15145 * compile/compile-loc2c.c: Fix common/ includes.
15146 * compile/compile-cplus-types.c: Fix common/ includes.
15147 * compile/compile-cplus-symbols.c: Fix common/ includes.
15148 * command.h: Fix common/ includes.
15149 * cli/cli-dump.c: Fix common/ includes.
15150 * cli/cli-cmds.c: Fix common/ includes.
15151 * charset.c: Fix common/ includes.
15152 * build-id.c: Fix common/ includes.
15153 * btrace.h: Fix common/ includes.
15154 * btrace.c: Fix common/ includes.
15155 * breakpoint.h: Fix common/ includes.
15156 * breakpoint.c: Fix common/ includes.
15157 * ax.h:
15158 (enum agent_op): Fix common/ includes.
15159 * ax-general.c (struct aop_map): Fix common/ includes.
15160 * ax-gdb.c: Fix common/ includes.
15161 * auxv.c: Fix common/ includes.
15162 * auto-load.c: Fix common/ includes.
15163 * arm-tdep.c: Fix common/ includes.
15164 * arch/riscv.c: Fix common/ includes.
15165 * arch/ppc-linux-common.c: Fix common/ includes.
15166 * arch/i386.c: Fix common/ includes.
15167 * arch/arm.c: Fix common/ includes.
15168 * arch/arm-linux.c: Fix common/ includes.
15169 * arch/arm-get-next-pcs.c: Fix common/ includes.
15170 * arch/amd64.c: Fix common/ includes.
15171 * arch/aarch64.c: Fix common/ includes.
15172 * arch/aarch64-insn.c: Fix common/ includes.
15173 * arch-utils.c: Fix common/ includes.
15174 * amd64-windows-tdep.c: Fix common/ includes.
15175 * amd64-tdep.c: Fix common/ includes.
15176 * amd64-sol2-tdep.c: Fix common/ includes.
15177 * amd64-obsd-tdep.c: Fix common/ includes.
15178 * amd64-nbsd-tdep.c: Fix common/ includes.
15179 * amd64-linux-tdep.c: Fix common/ includes.
15180 * amd64-linux-nat.c: Fix common/ includes.
15181 * amd64-fbsd-tdep.c: Fix common/ includes.
15182 * amd64-fbsd-nat.c: Fix common/ includes.
15183 * amd64-dicos-tdep.c: Fix common/ includes.
15184 * amd64-darwin-tdep.c: Fix common/ includes.
15185 * agent.c: Fix common/ includes.
15186 * ada-lang.h: Fix common/ includes.
15187 * ada-lang.c: Fix common/ includes.
15188 * aarch64-tdep.c: Fix common/ includes.
15189
2f5c153e
TT
151902019-01-25 Tom Tromey <tom@tromey.com>
15191
15192 * common/create-version.sh: Use common/version.h.
15193
adc6a863
PA
151942019-01-24 Pedro Alves <palves@redhat.com>
15195
15196 * infrun.c (signal_stop, signal_print, signal_program)
15197 (signal_catch, signal_pass): Now arrays instead of pointers.
15198 (update_signals_program_target, do_target_resume)
15199 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15200 * linux-nat.c (linux_nat_target::pass_signals)
15201 (linux_nat_target::create_inferior, linux_nat_target::attach):
15202 Adjust.
15203 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15204 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15205 * procfs.c (procfs_target::pass_signals): Adjust.
15206 * record-full.c (record_full_target::resume): Adjust.
15207 * remote.c (remote_target::pass_signals)
15208 (remote_target::program_signals): Adjust.
15209 * target-debug.h (target_debug_print_signals): Now takes a
15210 gdb::array_view as parameter. Adjust.
15211 * target.h (target_ops) <pass_signals, program_signals>: Replace
15212 pointer and length parameters with gdb::array_view.
15213 (target_pass_signals, target_program_signals): Likewise.
15214 * target-delegates.c: Regenerate.
15215
3046d67a
PA
152162019-01-24 Pedro Alves <palves@redhat.com>
15217
15218 * common/forward-scope-exit.h
15219 (forward_scope_exit::forward_scope_exit): Pass arguments to
15220 m_bind_function directly, instead of creating a std::bind and
15221 copying that.
15222
353229bf
AH
152232019-01-24 Alan Hayward <alan.hayward@arm.com>
15224
15225 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15226 for static members.
15227 (pass_in_v_vfp_candidate): Likewise.
15228
311dc83a
TT
152292019-01-23 Tom Tromey <tom@tromey.com>
15230 Pedro Alves <palves@redhat.com>
15231
15232 * regcache.c (class regcache_invalidator): Remove.
15233 (regcache::raw_write): Use make_scope_exit.
15234
296bd123
TT
152352019-01-23 Tom Tromey <tom@tromey.com>
15236
15237 * ui-out.h (class ui_out_emit_type): Update comment.
15238
979a0d13
TT
152392019-01-23 Tom Tromey <tom@tromey.com>
15240
15241 * infrun.c (fetch_inferior_event): Update comment.
15242
d238133d
TT
152432019-01-23 Tom Tromey <tom@tromey.com>
15244 Pedro Alves <palves@redhat.com>
15245
15246 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15247 parameter.
15248 (fetch_inferior_event): Use SCOPE_EXIT.
15249
15250
9885e6bb
TT
152512019-01-23 Tom Tromey <tom@tromey.com>
15252 Pedro Alves <palves@redhat.com>
15253
15254 * infrun.c (disable_thread_events): Delete.
15255 (stop_all_threads): Use SCOPE_EXIT.
15256
286526c1
TT
152572019-01-23 Tom Tromey <tom@tromey.com>
15258 Pedro Alves <palves@redhat.com>
15259
15260 * symfile.c: Include forward-scope-exit.h.
15261 (clear_symtab_users_cleanup): Replace forward declaration with
15262 a FORWARD_SCOPE_EXIT.
15263 (syms_from_objfile_1): Use the forward_scope_exit and
15264 gdb::optional instead of cleanup_function.
15265 (reread_symbols): Use the forward_scope_exit instead of
15266 cleanup_function.
15267 (clear_symtab_users_cleanup): Remove function.
15268
1db93f14
TT
152692019-01-23 Tom Tromey <tom@tromey.com>
15270 Pedro Alves <palves@redhat.com>
15271
15272 * linux-nat.c: Include scope-exit.h.
15273 (cleanup_target_stop): Remove.
15274 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15275 SCOPE_EXIT.
15276
2cc83d1e
TT
152772019-01-23 Tom Tromey <tom@tromey.com>
15278 Pedro Alves <palves@redhat.com>
15279
15280 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15281 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15282
694c6bf5
TT
152832019-01-23 Tom Tromey <tom@tromey.com>
15284 Andrew Burgess <andrew.burgess@embecosm.com>
15285 Pedro Alves <palves@redhat.com>
15286
15287 * infrun.c (fetch_inferior_event): Use scope_exit.
15288 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15289 * top.c (execute_command): Use scope_exit.
15290 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15291 * utils.c (do_bpstat_clear_actions_cleanup)
15292 (make_bpstat_clear_actions_cleanup): Remove.
15293
4c41382a
TT
152942019-01-23 Tom Tromey <tom@tromey.com>
15295 Pedro Alves <palves@redhat.com>
15296
15297 * infrun.c: Include "common/scope-exit.h"
15298 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15299 (wait_for_inferior): Use SCOPE_EXIT.
15300 (fetch_inferior_event): Use scope_exit.
15301
89f8fb50
TT
153022019-01-23 Tom Tromey <tom@tromey.com>
15303 Pedro Alves <palves@redhat.com>
15304
15305 * breakpoint.c (create_breakpoint): Remove cleanup.
15306
5419bdae
TT
153072019-01-23 Tom Tromey <tom@tromey.com>
15308 Andrew Burgess <andrew.burgess@embecosm.com>
15309 Pedro Alves <palves@redhat.com>
15310
e587ef42
PA
153112019-01-23 Pedro Alves <palves@redhat.com>
15312
15313 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15314
77f0e74c
PA
153152019-01-23 Pedro Alves <palves@redhat.com>
15316 Andrew Burgess <andrew.burgess@embecosm.com>
15317
15318 * gdbthread.h: Include "common/forward-scope-exit.h".
15319 (scoped_finish_thread_state): Redefine custom class in terms of
15320 forward_scope_exit.
15321
5b9b3e53
PA
153222019-01-23 Pedro Alves <palves@redhat.com>
15323 Andrew Burgess <andrew.burgess@embecosm.com>
15324
15325 * common/forward-scope-exit.h: New file.
15326
54b65c9b
PA
153272019-01-23 Pedro Alves <palves@redhat.com>
15328 Andrew Burgess <andrew.burgess@embecosm.com>
15329 Tom Tromey <tom@tromey.com>
15330
15331 * common/scope-exit.h: New file.
15332
cf08fb29
PA
153332019-01-23 Pedro Alves <palves@redhat.com>
15334
15335 * common/preprocessor.h (ESC): Rename to ...
15336 (ESC_PARENS): ... this.
15337 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15338 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15339
ae73e2e2
TT
153402019-01-23 Tom Tromey <tom@tromey.com>
15341
15342 * language.h (class scoped_switch_to_sym_language_if_auto):
15343 Initialize m_lang in both cases.
15344
6594e122
AH
153452019-01-23 Alan Hayward <alan.hayward@arm.com>
15346
15347 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15348 with XCNEW.
15349
a7c9855d
TT
153502019-01-22 Tom Tromey <tom@tromey.com>
15351
15352 * corelow.c: Do not include sys/file.h.
15353
93cc1d53
TT
153542019-01-22 Tom Tromey <tom@tromey.com>
15355
15356 * tui/tui-wingeneral.h: Include gdb_curses.h.
15357
38561778
TT
153582019-01-22 Tom Tromey <tom@tromey.com>
15359
15360 * source-cache.h (class source_cache) <get_source_lines,
15361 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15362
37b3ab5b
TT
153632019-01-22 Tom Tromey <tom@tromey.com>
15364
15365 * remote-fileio.h (struct remote_target): Declare.
15366
3fabc016
TT
153672019-01-22 Tom Tromey <tom@tromey.com>
15368
15369 * python/py-arch.c: Do not include py-ref.h.
15370 * python/py-bpevent.c: Do not include py-ref.h.
15371 * python/py-cmd.c: Do not include py-ref.h.
15372 * python/py-continueevent.c: Do not include py-ref.h.
15373 * python/py-event.h: Do not include py-ref.h.
15374 * python/py-evtregistry.c: Do not include py-ref.h.
15375 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15376 * python/py-frame.c: Do not include py-ref.h.
15377 * python/py-framefilter.c: Do not include py-ref.h.
15378 * python/py-function.c: Do not include py-ref.h.
15379 * python/py-infevents.c: Do not include py-ref.h.
15380 * python/py-linetable.c: Do not include py-ref.h.
15381 * python/py-objfile.c: Do not include py-ref.h.
15382 * python/py-param.c: Do not include py-ref.h.
15383 * python/py-prettyprint.c: Do not include py-ref.h.
15384 * python/py-progspace.c: Do not include py-ref.h.
15385 * python/py-symbol.c: Do not include py-ref.h.
15386 * python/py-symtab.c: Do not include py-ref.h.
15387 * python/py-type.c: Do not include py-ref.h.
15388 * python/py-unwind.c: Do not include py-ref.h.
15389 * python/py-utils.c: Do not include py-ref.h.
15390 * python/py-value.c: Do not include py-ref.h.
15391 * python/py-varobj.c: Do not include py-ref.h.
15392 * python/py-xmethods.c: Do not include py-ref.h.
15393 * python/python.c: Do not include py-ref.h.
15394 * varobj.c: Do not include py-ref.h.
15395
6b4d7774
TT
153962019-01-22 Tom Tromey <tom@tromey.com>
15397
15398 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15399 keyword for bcache.
15400
7af7e9b5
TT
154012019-01-22 Tom Tromey <tom@tromey.com>
15402
15403 * compile/compile-cplus-types.c: Remove a comment by #include.
15404
951d1049
TT
154052019-01-22 Tom Tromey <tom@tromey.com>
15406
15407 * compile/gcc-c-plugin.h: Include compile-internal.h.
15408
d65d5705
TT
154092019-01-22 Tom Tromey <tom@tromey.com>
15410
15411 * stabsread.c (EXTERN): Do not define.
15412 (symnum, next_symbol_text_func, processing_gcc_compilation)
15413 (within_function, global_sym_chain, global_stabs)
15414 (previous_stab_code, this_object_header_files)
15415 (n_this_object_header_files)
15416 (n_allocated_this_object_header_files): Define.
15417 * stabsread.h (EXTERN): Never define. Use "extern".
15418
b6fb1ee5
PW
154192019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15420
15421 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15422 history_value.
15423
be6d4f74
TT
154242019-01-21 Tom Tromey <tom@tromey.com>
15425
15426 * ui-out.c: Fix includes.
15427 * tui/tui-source.c: Fix includes.
15428 * target.c: Fix includes.
15429 * remote.c: Fix includes.
15430 * regcache.c: Fix includes.
15431 * python/py-block.c: Fix includes.
15432 * printcmd.c: Fix includes.
15433 * or1k-tdep.c: Fix includes.
15434 * mi/mi-main.c: Fix includes.
15435 * m32r-tdep.c: Fix includes.
15436 * csky-tdep.c: Fix includes.
15437 * compile/compile-cplus-types.c: Fix includes.
15438 * cli/cli-interp.c: Fix includes.
15439
73021deb
AH
154402019-01-21 Alan Hayward <alan.hayward@arm.com>
15441
15442 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15443 for padding.
15444
7932255d
TT
154452019-01-16 Tom Tromey <tom@tromey.com>
15446
15447 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15448 earlier.
15449 (struct objfile) <msymbols_range>: Move from top level.
15450 <msymbols>: New method.
15451 (class objfile_msymbols): Remove.
15452 * symtab.c (default_collect_symbol_completion_matches_break_on):
15453 Update.
15454 * symmisc.c (dump_msymbols): Update.
15455 * stabsread.c (scan_file_globals): Update.
15456 * objc-lang.c (info_selectors_command, info_classes_command)
15457 (find_methods): Update.
15458 * minsyms.c (find_solib_trampoline_target): Update.
15459 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15460 * coffread.c (coff_symfile_read): Update.
15461 * ada-lang.c (ada_lookup_simple_minsym)
15462 (ada_collect_symbol_completion_matches): Update.
15463
604b1bfb
TT
154642019-01-16 Tom Tromey <tom@tromey.com>
15465
15466 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15467 type. Remove no-argument constructor.
15468 <iterator::operator++>: Simplify.
15469 <begin>: Update.
15470 <end>: Use minimal_symbol_count.
15471
f252c6d5
TT
154722019-01-16 Tom Tromey <tom@tromey.com>
15473
15474 * objfiles.h (struct objfile) <psymtabs>: New method.
15475 (class objfile_psymtabs): Remove.
15476 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15477 typedef.
15478 <range>: New method.
15479 (require_partial_symbols): Change return type.
15480 * psymtab.c (require_partial_symbols)
15481 (psym_expand_symtabs_matching): Update.
15482 * mdebugread.c (parse_partial_symbols): Update.
15483 * dbxread.c (dbx_end_psymtab): Update.
15484
b669c953
TT
154852019-01-15 Tom Tromey <tom@tromey.com>
15486
15487 * symtab.c (lookup_objfile_from_block)
15488 (lookup_symbol_in_objfile_symtabs)
15489 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15490 (find_line_symtab, info_sources_command)
15491 (default_collect_symbol_completion_matches_break_on)
15492 (make_source_files_completion_list): Update.
15493 * symmisc.c (print_objfile_statistics, dump_objfile)
15494 (maintenance_print_symbols, maintenance_info_symtabs)
15495 (maintenance_check_symtabs, maintenance_info_line_tables):
15496 Update.
15497 * source.c (select_source_symtab)
15498 (forget_cached_source_info_for_objfile): Update.
15499 * objfiles.h (class objfile_compunits): Remove.
15500 (struct objfile) <compunits_range>: New typedef.
15501 (compunits): New method.
15502 * objfiles.c (objfile_relocate1): Update.
15503 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15504 * maint.c (count_symtabs_and_blocks): Update.
15505 * linespec.c (iterate_over_all_matching_symtabs): Update.
15506 * cp-support.c (add_symbol_overload_list_qualified): Update.
15507 * coffread.c (coff_symtab_read): Update.
15508 * ada-lang.c (add_nonlocal_symbols)
15509 (ada_collect_symbol_completion_matches)
15510 (ada_add_global_exceptions): Update.
15511
7e955d83
TT
155122019-01-15 Tom Tromey <tom@tromey.com>
15513
15514 * progspace.h (program_space) <objfiles_safe_range>: New
15515 typedef.
15516 <objfiles_safe>: New method.
15517 * objfiles.h (class all_objfiles_safe): Remove.
15518 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15519 * jit.c (jit_inferior_exit_hook): Update.
15520
2030c079
TT
155212019-01-17 Tom Tromey <tom@tromey.com>
15522
15523 * progspace.h (program_space) <objfiles_range>: New typedef.
15524 <objfiles>: New method.
15525 <objfiles_head>: Rename from objfiles.
15526 (object_files): Update.
15527 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15528 * guile/scm-pretty-print.c
15529 (ppscm_find_pretty_printer_from_objfiles): Update.
15530 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15531 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15532 Update.
15533 * python/py-progspace.c (pspy_get_objfiles): Update.
15534 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15535 Update.
15536 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15537 (objfpy_lookup_objfile_by_build_id): Update.
15538 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15539 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15540 Update.
15541 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15542 (expand_symtab_containing_pc, lookup_objfile_from_block)
15543 (lookup_static_symbol, basic_lookup_transparent_type)
15544 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15545 (find_line_symtab, info_sources_command)
15546 (default_collect_symbol_completion_matches_break_on)
15547 (make_source_files_completion_list, find_main_name): Update.
15548 * symmisc.c (print_symbol_bcache_statistics)
15549 (print_objfile_statistics, maintenance_print_symbols)
15550 (maintenance_print_msymbols, maintenance_print_objfiles)
15551 (maintenance_info_symtabs, maintenance_check_symtabs)
15552 (maintenance_expand_symtabs, maintenance_info_line_tables):
15553 Update.
15554 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15555 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15556 (map_overlay_command, unmap_overlay_command)
15557 (simple_overlay_update, expand_symtabs_matching)
15558 (map_symbol_filenames): Update.
15559 * symfile-debug.c (set_debug_symfile): Update.
15560 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15561 Update.
15562 * source.c (select_source_symtab, forget_cached_source_info):
15563 Update.
15564 * solib.c (solib_read_symbols): Update.
15565 * solib-spu.c (append_ocl_sos): Update.
15566 * psymtab.c (maintenance_print_psymbols)
15567 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15568 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15569 * printcmd.c (info_symbol_command): Update.
15570 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15571 Update.
15572 * objfiles.h (class all_objfiles): Remove.
15573 * objfiles.c (have_partial_symbols, have_full_symbols)
15574 (have_minimal_symbols, qsort_cmp, update_section_map)
15575 (shared_objfile_contains_address_p)
15576 (default_iterate_over_objfiles_in_search_order): Update.
15577 * objc-lang.c (info_selectors_command, info_classes_command)
15578 (find_methods): Update.
15579 * minsyms.c (find_solib_trampoline_target): Update.
15580 * maint.c (maintenance_info_sections)
15581 (maintenance_translate_address, count_symtabs_and_blocks):
15582 Update.
15583 * main.c (captured_main_1): Update.
15584 * linux-thread-db.c (try_thread_db_load_from_pdir)
15585 (has_libpthread): Update.
15586 * linespec.c (iterate_over_all_matching_symtabs)
15587 (search_minsyms_for_name): Update.
15588 * jit.c (jit_find_objf_with_entry_addr): Update.
15589 * hppa-tdep.c (find_unwind_entry)
15590 (hppa_lookup_stub_minimal_symbol): Update.
15591 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15592 Update.
15593 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15594 (elf_gnu_ifunc_resolve_by_got): Update.
15595 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15596 * dwarf-index-write.c (save_gdb_index_command): Update.
15597 * cp-support.c (add_symbol_overload_list_qualified): Update.
15598 * breakpoint.c (create_overlay_event_breakpoint)
15599 (create_longjmp_master_breakpoint)
15600 (create_std_terminate_master_breakpoint)
15601 (create_exception_master_breakpoint): Update.
15602 * blockframe.c (find_pc_partial_function): Update.
15603 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15604 (ada_collect_symbol_completion_matches)
15605 (ada_add_global_exceptions): Update.
15606
776489e0
TT
156072019-01-17 Tom Tromey <tom@tromey.com>
15608
15609 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15610 declare VEC.
15611 (solib_target_parse_libraries): Change return type.
15612 (library_list_start_segment, library_list_start_section)
15613 (library_list_end_library, library_list_start_library); Update.
15614 (solib_target_free_library_list): Remove.
15615 (solib_target_parse_libraries): Remove cleanup. Change return
15616 type.
15617 (solib_target_current_sos): Update.
15618
6471e7d2
TT
156192019-01-17 Tom Tromey <tromey@bapiya>
15620
15621 * valprint.c: Replace "the the" with "the".
15622 * symtab.c: Replace "the the" with "the".
15623 * solib.c: Replace "the the" with "the".
15624 * solib-dsbt.c: Replace "the the" with "the".
15625 * linespec.c: Replace "the the" with "the".
15626 * dwarf2loc.h: Replace "the the" with "the".
15627 * amd64-windows-tdep.c: Replace "the the" with "the".
15628 * aarch64-tdep.c: Replace "the the" with "the".
15629
c24bdb02
KS
156302019-01-16 Keith Seitz <keiths@redhat.com>
15631
15632 PR gdb/23773
15633 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15634 <builder>: Rename to ..
15635 <m_builder>: ... this and make private.
15636 (dwarf2_cu::get_builder): New method. Change all users of
15637 `builder' to use this method.
15638 (dwarf2_start_symtab): Move to ...
15639 (dwarf2_cu::start_symtab): ... here. Update all callers
15640 (setup_type_unit_groups): Move to ...
15641 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15642 callers.
15643 (dwarf2_cu::reset_builder): New method.
15644 (process_full_compunit, process_full_type_unit): Use
15645 dwarf2_cu::reset_builder.
15646 (follow_die_offset): Record the ancestor CU if it is different
15647 from the followed DIE's CU.
15648 (follow_die_sig_1): Likewise.
15649
8d64371b
TT
156502019-01-15 Tom Tromey <tom@tromey.com>
15651
15652 * remote.c (class remote_state) <buf>: Now a char_vector.
15653 <buf_size>: Remove.
15654 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15655 parameter.
15656 (remote_target::getpkt_or_notif_sane_1)
15657 (remote_target::getpkt_sane)
15658 (remote_target::getpkt_or_notif_sane): Likewise.
15659 (class remote_target) <putpkt>: New overload.
15660 (remote_target::read_frame): Change type of "buf_p". Remove
15661 sizeof_p parameter.
15662 (packet_ok): New overload.
15663 (packet_check_result): New overload.
15664 Update all uses.
15665
bb277751
TT
156662019-01-14 Tom Tromey <tom@tromey.com>
15667
15668 * remote-notif.c (handle_notification, remote_notif_ack)
15669 (remote_notif_parse): Make "buf" const.
15670 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15671 const.
15672 (remote_notif_parse, remote_notif_ack, handle_notification):
15673 Likewise.
15674 * remote.c (remote_notif_stop_parse): Make "buf" const.
15675 (remote_target::remote_parse_stop_reply): Make "buf" const.
15676 (remote_notif_stop_ack): Make "buf" const.
15677
05be00a8
TT
156782019-01-14 Tom Tromey <tom@tromey.com>
15679
15680 * remote.c (remote_console_output): Make parameter const.
15681
491adeca
TT
156822019-01-14 Tom Tromey <tom@tromey.com>
15683
15684 * target-debug.h (target_debug_print_signals): Constify.
15685 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15686 * procfs.c (procfs_target::pass_signals): Update.
15687 * linux-nat.c (linux_nat_target::pass_signals): Update.
15688 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15689 * target-delegates.c: Rebuild.
15690 * remote.c (remote_target::program_signals): Update.
15691 (remote_target::pass_signals): Update.
15692 * target.c (target_pass_signals): Constify argument.
15693 (target_program_signals): Likewise.
15694 * target.h (struct target_ops) <pass_signals, program_signals>:
15695 Constify argument.
15696 (target_pass_signals, target_program_signals): Constify argument.
15697
bbd94648
TT
156982019-01-14 Tom Tromey <tom@tromey.com>
15699
15700 PR tui/28819:
15701 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15702
6f072a10
PFC
157032019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15704
15705 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15706 field.
15707 * rs6000-tdep.c: Include reggroups.h.
15708 (IS_V_ALIAS_PSEUDOREG): Define.
15709 (rs6000_register_name): Return names for the "vX" aliases.
15710 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15711 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15712 aliases. Call default_register_reggroup_p for all other
15713 pseudo-registers.
15714 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15715 New functions.
15716 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15717 Handle "vX" aliases.
15718 (v_alias_pseudo_register_collect): New function.
15719 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15720 (rs6000_gdbarch_init): Initialize "vX" aliases as
15721 pseudo-registers. Restore registration of
15722 rs6000_pseudo_register_reggroup_p with
15723 set_tdesc_pseudo_register_reggroup_p.
15724
1a782351
MF
157252019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15726
15727 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15728 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15729 set_gdbarch_num_pseudo_regs.
15730
d73cff18
PW
157312019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15732
15733 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15734 Remove arg prefixname, add do_set and do_show.
15735 Add member functions set_list and show_list.
15736 * cli/cli-style.c (class cli_style_option): Update accordingly.
15737 (style_set_list): Move to file scope.
15738 (style_show_list): Likewise.
15739 (set_style): Call help_list.
15740 (show_style): Call cmd_show_list.
15741 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15742 Update to use the new macro.
15743
60a90376
JB
157442019-10-12 Joel Brobecker <brobecker@adacore.com>
15745
15746 * ada-lang.c (_initialize_ada_language): Expand the help text
15747 for the "catch exception" command.
15748
9d7c67bf
PW
157492019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15750
15751 * symtab.c (matching_obj_sections): Initialize obj,
15752 declare it closer to its usage.
15753
7cf47dc4
TT
157542019-01-10 Tom Tromey <tom@tromey.com>
15755
15756 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15757 (basic_inf_threads_range): Remove.
15758 (inf_threads_range, inf_non_exited_threads_range)
15759 (safe_inf_threads_range): Use next_adapter.
15760
d3cb6808
KS
157612019-01-10 Keith Seitz <keiths@redhat.com>
15762
15763 PR gdb/23712
15764 PR symtab/23010
15765 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15766 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15767
63a20375
KS
157682019-01-10 Keith Seitz <keiths@redhat.com>
15769
15770 PR gdb/23712
15771 PR symtab/23010
15772 * dictionary.c (pending_to_vector): Remove.
15773 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15774 Remove _1 suffix, replacing functions of the same name. Update
15775 all callers.
15776 (dict_create_hashed, dict_create_hashed_expandable)
15777 (dict_create_linear, dict_create_linear_expandable, dict_free)
15778 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15779 Make functions static.
15780
b026f593
KS
157812019-01-10 Keith Seitz <keiths@redhat.com>
15782
15783 PR gdb/23712
15784 PR symtab/23010
15785 * dictionary.h (struct dictionary): Replace declaration with
15786 multidictionary.
15787 (dict_create_hashed, dict_create_hashed_expandable)
15788 (dict_create_linear, dict_create_linear_expandable)
15789 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15790 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15791 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15792 taking multidictionary argument.
15793 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15794 * block.h (struct block) <dict>: Change to multidictionary
15795 and rename `multidict'.
15796 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15797 symmisc.c: Update all dictionary references to multidictionary.
15798
c7748ee9
KS
157992019-01-10 Keith Seitz <keiths@redhat.com>
15800
15801 PR gdb/23712
15802 PR symtab/23010
15803 * dictionary.c: Include unordered_map.
15804 (pending_to_vector): New function.
15805 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15806 Rewrite the non-"_1" functions to take vector instead
15807 of linked list.
15808 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15809 "new" _1 versions of the same name.
15810 (multidictionary): Define.
15811 (std::hash<enum language): New definition.
15812 (collate_pending_symbols_by_language, mdict_create_hashed)
15813 (mdict_create_hashed_expandable, mdict_create_linear)
15814 (mdict_create_linear_expandable, mdict_free)
15815 (find_language_dictionary, create_new_language_dictionary)
15816 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15817 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15818 (mdict_size, mdict_empty): New functions.
15819 * dictionary.h (mdict_iterator): Define.
15820
67aa1f3c
PA
158212019-01-10 Pedro Alves <palves@redhat.com>
15822
15823 * breakpoint.c (read_uploaded_action)
15824 (create_tracepoint_from_upload): Adjust to use
15825 gdb::unique_xmalloc_ptr.
15826 * ctf.c (ctf_write_uploaded_tp):
15827 (SET_ARRAY_FIELD): Use emplace_back.
15828 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15829 * tracefile-tfile.c (tfile_write_uploaded_tp):
15830 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15831 gdb::unique_xmalloc_ptr.
15832 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15833 at_string, cond_string, cmd_strings>: Replace char pointers
15834 with gdb::unique_xmalloc_ptr.
15835
2f667667
PA
158362019-01-10 Pedro Alves <palves@redhat.com>
15837
15838 * solib-target.c (library_list_start_library): Don't xstrdup name.
15839
36cb7237
PA
158402019-01-10 Pedro Alves <palves@redhat.com>
15841
15842 * mdebugread.c (parse_partial_symbols): Use
15843 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15844
da584958
AB
158452019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15846
15847 * linux-fork.c (scoped_switch_fork_info)
15848 <~scoped_switch_fork_info>: Fix incorrect variable name.
15849
1ef8573c
AB
158502019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15851
15852 * linux-fork.c (scoped_switch_fork_info)
15853 <scoped_switch_fork_info>: Make explicit.
15854 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15855
8d7bcccb
TT
158562019-01-10 Tom Tromey <tom@tromey.com>
15857
15858 * objfiles.h (objfile::reset_psymtabs): Update.
15859 * objfiles.c (objfile::objfile): Update.
15860 * psymtab.h (psymtab_storage::obstack): Update.
15861 (psymtab_storage::m_obstack): Use gdb::optional.
15862 (class psymtab_storage): Update comment. Remove objfile
15863 parameter.
15864 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15865
b596a3c7
TT
158662019-01-10 Tom Tromey <tom@tromey.com>
15867
15868 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15869 <free_psymtabs>: Now private.
15870 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15871 (allocate_psymtab): Use new method.
15872
a9342b62
TT
158732019-01-10 Tom Tromey <tom@tromey.com>
15874
15875 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15876 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15877 * mdebugread.c (parse_partial_symbols): Use
15878 allocate_dependencies.
15879 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15880 allocate_dependencies.
15881 (process_psymtab_comp_unit_reader)
15882 (build_type_psymtab_dependencies): Likewise.
15883 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15884
5af70966
TT
158852019-01-10 Tom Tromey <tom@tromey.com>
15886
15887 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15888 PSYMBOL_SET_LANGUAGE.
15889 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15890
5923a04c
TT
158912019-01-10 Tom Tromey <tom@tromey.com>
15892
15893 * psymtab.h (psymtab_storage::obstack): New method.
15894 <m_obstack>: Rename from obstack; now private.
15895 * psymtab.c (psymtab_storage): Update.
15896 * dwarf2read.c (create_addrmap_from_index)
15897 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15898 Update.
15899
6d6a12bf
TT
159002019-01-10 Tom Tromey <tom@tromey.com>
15901
15902 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15903 * objfiles.h (objfile::reset_psymtabs): New method.
15904
d320c2b5
TT
159052019-01-10 Tom Tromey <tom@tromey.com>
15906
15907 * symmisc.c (print_symbol_bcache_statistics): Update.
15908 (print_objfile_statistics): Update.
15909 * symfile.c (reread_symbols): Update.
15910 * psymtab.h (class psymtab_storage): New.
15911 * psymtab.c (psymtab_storage): New constructor.
15912 (~psymtab_storage): New destructor.
15913 (require_partial_symbols): Update.
15914 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15915 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15916 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15917 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15918 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15919 (start_psymtab_common, end_psymtab_common)
15920 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15921 (allocate_psymtab): Update.
15922 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15923 Update.
15924 (dump_psymtab_addrmap, maintenance_print_psymbols)
15925 (maintenance_check_psymtabs): Update.
15926 (class objfile_psymtabs): Move to objfiles.h.
15927 * psympriv.h (discard_psymtab): Now inline.
15928 (psymtab_discarder::psymtab_discarder): Update.
15929 (psymtab_discarder::~psymtab_discarder): Update.
15930 (ALL_OBJFILE_PSYMTABS): Rewrite.
15931 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15932 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15933 Remove fields.
15934 <partial_symtabs>: New field.
15935 (class objfile_psymtabs): Move from psymtab.h. Update.
15936 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15937 psymbol_cache.
15938 (objfile::~objfile): Don't destroy psymbol_cache.
15939 * mdebugread.c (parse_partial_symbols): Update.
15940 * dwarf2read.c (create_addrmap_from_index)
15941 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15942 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15943 (add_partial_subprogram, dwarf2_ranges_read): Update.
15944 * dwarf-index-write.c (write_address_map)
15945 (write_one_signatured_type, recursively_write_psymbols)
15946 (class debug_names, class debug_names, write_psymtabs_to_index):
15947 Update.
15948
1d94a5a3
TT
159492019-01-10 Tom Tromey <tom@tromey.com>
15950
15951 * symtab.h (SYMBOL_SET_NAMES): Update.
15952 (symbol_set_names): Update.
15953 (MSYMBOL_SET_NAMES): Update.
15954 * symtab.c (symbol_set_names): Change argument to be an
15955 objfile_per_bfd_storage.
15956 * psymtab.c (add_psymbol_to_bcache): Update.
15957 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15958
0f14768a
TT
159592019-01-10 Tom Tromey <tom@tromey.com>
15960
15961 * symtab.c (create_demangled_names_hash): Change argument to be an
15962 objfile_per_bfd_storage.
15963 (symbol_set_names): Update.
15964
6eee24ce
TT
159652019-01-10 Tom Tromey <tom@tromey.com>
15966
15967 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15968 init_psymbol_list.
15969 * psymtab.c (init_psymbol_list): Do nothing if already called.
15970 * psympriv.h (init_psymbol_list): Add comment.
15971 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15972 init_psymbol_list.
15973 * dbxread.c (dbx_symfile_read): Unconditionally call
15974 init_psymbol_list.
15975
75aedd27
TT
159762019-01-10 Tom Tromey <tom@tromey.com>
15977
15978 * xcoffread.c (scan_xcoff_symtab): Update.
15979 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15980 "where".
15981 * mdebugread.c (parse_partial_symbols)
15982 (handle_psymbol_enumerators): Update.
15983 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15984 * dbxread.c (read_dbx_symtab): Update.
15985 * psympriv.h (psymbol_placement): New enum.
15986 (add_psymbol_to_list): Update.
15987
939652a5
TT
159882019-01-10 Tom Tromey <tom@tromey.com>
15989
15990 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15991 static_psymbols parameters.
15992 (scan_xcoff_symtab): Update.
15993 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15994 static_psymbols parameters.
15995 * psympriv.h (start_psymtab_common): Update.
15996 * mdebugread.c (parse_partial_symbols): Update.
15997 * dwarf2read.c (create_partial_symtab): Update.
15998 * dbxread.c (read_dbx_symtab): Update.
15999 (start_psymtab): Remove global_psymbols and static_psymbols
16000 parameters.
16001
baa62830
TT
160022019-01-10 Tom Tromey <tom@tromey.com>
16003
16004 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16005 * psymtab.c (allocate_psymtab): Add comment.
16006 * psympriv.h (allocate_psymtab): Add comment.
16007 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16008 initializations.
16009 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16010
0e8f53ba
TT
160112019-01-10 Tom Tromey <tom@tromey.com>
16012
16013 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16014 Don't declare.
16015 * mipsread.c: Include mdebugread.h.
16016 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16017 Declare.
16018 * elfread.c: Include mdebugread.h.
16019
b22a7c6a
TT
160202019-01-09 Tom Tromey <tom@tromey.com>
16021
16022 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16023 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16024 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16025 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16026 (psym_lookup_symbol, psym_find_last_source_symtab)
16027 (psym_forget_cached_source_info, psym_print_stats)
16028 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16029 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16030 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16031 (psym_find_compunit_symtab_by_address)
16032 (maintenance_print_psymbols, maintenance_info_psymtabs)
16033 (maintenance_check_psymtabs): Use ranged for.
16034 * psymtab.h (class objfile_psymtabs): New.
16035 (require_partial_symbols): Return objfile_psymtabs.
16036 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16037
3b9d3ac2
TT
160382019-01-09 Tom Tromey <tom@tromey.com>
16039
16040 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16041 (find_pc_mapped_section, list_overlays_command)
16042 (map_overlay_command, unmap_overlay_command)
16043 (simple_overlay_update): Use all_objfiles.
16044 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16045 * printcmd.c (info_symbol_command): Use all_objfiles.
16046 * objfiles.h (ALL_OBJSECTIONS): Remove.
16047 * maint.c (maintenance_translate_address): Use all_objfiles.
16048 * gcore.c (gcore_create_callback): Use all_objfiles.
16049 (objfile_find_memory_regions): Likewise.
16050
8b31193a
TT
160512019-01-09 Tom Tromey <tom@tromey.com>
16052
16053 * symtab.c (find_line_symtab, info_sources_command)
16054 (make_source_files_completion_list): Use objfile_compunits.
16055 * source.c (select_source_symtab): Use objfile_compunits.
16056 * objfiles.h (struct objfile): Update comment.
16057 (ALL_OBJFILES): Remove.
16058 (ALL_FILETABS): Remove.
16059 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16060 objfile_compunits.
16061
d5da8b3c
TT
160622019-01-09 Tom Tromey <tom@tromey.com>
16063
16064 * symmisc.c (print_objfile_statistics, dump_objfile)
16065 (maintenance_print_symbols): Use compunit_filetabs.
16066 * source.c (forget_cached_source_info_for_objfile): Use
16067 compunit_filetabs.
16068 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16069 (ALL_FILETABS): Use compunit_filetabs.
16070 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16071 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16072
5accd1a0
TT
160732019-01-09 Tom Tromey <tom@tromey.com>
16074
16075 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16076 (compunit_filetabs): New.
16077 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16078 compunit_filetabs.
16079 (info_sources_command, make_source_files_completion_list): Remove
16080 declaration.
16081 * symmisc.c (print_objfile_statistics, dump_objfile)
16082 (maintenance_print_symbols): Remove declaration.
16083 (maintenance_info_symtabs): Use compunit_filetabs.
16084 (maintenance_info_line_tables): Likewise.
16085 * source.c (select_source_symtab): Change local variable name.
16086 (forget_cached_source_info_for_objfile): Remove declaration.
16087 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16088 * objfiles.c (objfile_relocate1): Remove declaration.
16089 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16090 declaration.
16091 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16092 * coffread.c (coff_symtab_read): Remove declaration.
16093 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16094 compunit_filetabs.
16095
d8aeb77f
TT
160962019-01-09 Tom Tromey <tom@tromey.com>
16097
16098 * symtab.c (lookup_objfile_from_block)
16099 (find_pc_sect_compunit_symtab, search_symbols)
16100 (default_collect_symbol_completion_matches_break_on): Use
16101 objfile_compunits.
16102 * objfiles.h (ALL_COMPUNITS): Remove.
16103 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16104 * cp-support.c (add_symbol_overload_list_qualified): Use
16105 objfile_compunits.
16106 * ada-lang.c (ada_collect_symbol_completion_matches)
16107 (ada_add_global_exceptions): Use objfile_compunits.
16108
592553c4
TT
161092019-01-09 Tom Tromey <tom@tromey.com>
16110
16111 * source.c (select_source_symtab)
16112 (forget_cached_source_info_for_objfile): Remove declaration.
16113 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16114 declaration.
16115 * maint.c (count_symtabs_and_blocks): Remove declaration.
16116 * cp-support.c (add_symbol_overload_list_qualified): Remove
16117 declaration.
16118 * coffread.c (coff_symtab_read): Remove declaration.
16119 * symtab.c (lookup_symbol_in_objfile_symtabs)
16120 (basic_lookup_transparent_type_1): Use objfile_compunits.
16121 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16122 (info_sources_command, search_symbols)
16123 (default_collect_symbol_completion_matches_break_on)
16124 (make_source_files_completion_list): Remove declaration.
16125 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16126 (ada_collect_symbol_completion_matches)
16127 (ada_add_global_exceptions): Remove declaration.
16128 * linespec.c (iterate_over_all_matching_symtabs): Use
16129 objfile_compunits.
16130 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16131 (class objfile_compunits): New.
16132 (ALL_COMPUNITS): Use objfile_compunits.
16133 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16134 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16135 objfile_compunits.
16136 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16137
5325b9bf
TT
161382019-01-09 Tom Tromey <tom@tromey.com>
16139
16140 * symtab.c (search_symbols)
16141 (default_collect_symbol_completion_matches_break_on): Use
16142 objfile_msymbols.
16143 * ada-lang.c (ada_lookup_simple_minsym)
16144 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16145 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16146 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16147 objfile_msymbols.
16148 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16149 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16150 * objc-lang.c (find_methods): Use objfile_msymbols.
16151 (info_selectors_command, info_classes_command): Likewise.
16152 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16153 * objfiles.h (class objfile_msymbols): New.
16154 (ALL_OBJFILE_MSYMBOLS): Remove.
16155 (ALL_MSYMBOLS): Remove.
16156
cac85af2
TT
161572019-01-09 Tom Tromey <tom@tromey.com>
16158
16159 * common/next-iterator.h (next_adapter): Add Iterator template
16160 parameter.
16161 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16162 (class all_objfiles_safe): New.
16163 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16164 * objfiles.c (put_objfile_before): Update comment.
16165 (add_separate_debug_objfile): Likewise.
16166 (free_all_objfiles): Use all_objfiles_safe.
16167 (objfile_purge_solibs): Likewise.
16168
aed57c53
TT
161692019-01-09 Tom Tromey <tom@tromey.com>
16170
16171 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16172 (expand_symtab_containing_pc, lookup_static_symbol)
16173 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16174 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16175 all_objfiles.
16176 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16177 * breakpoint.c (create_overlay_event_breakpoint)
16178 (create_longjmp_master_breakpoint)
16179 (create_std_terminate_master_breakpoint)
16180 (create_exception_master_breakpoint): Use all_objfiles.
16181 * linux-thread-db.c (try_thread_db_load_from_pdir)
16182 (has_libpthread): Use all_objfiles.
16183 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16184 * linespec.c (iterate_over_all_matching_symtabs)
16185 (search_minsyms_for_name): Use all_objfiles.
16186 * maint.c (maintenance_info_sections): Use all_objfiles.
16187 * main.c (captured_main_1): Use all_objfiles.
16188 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16189 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16190 * guile/scm-pretty-print.c
16191 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16192 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16193 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16194 (maintenance_print_msymbols): Use all_objfiles.
16195 * source.c (select_source_symtab): Use all_objfiles.
16196 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16197 * symfile.c (remove_symbol_file_command)
16198 (expand_symtabs_matching, map_symbol_filenames): Use
16199 all_objfiles.
16200 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16201 all_objfiles.
16202 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16203 * objc-lang.c (find_methods): Use all_objfiles.
16204 * objfiles.c (have_partial_symbols, have_full_symbols)
16205 (have_minimal_symbols, qsort_cmp)
16206 (default_iterate_over_objfiles_in_search_order): Use
16207 all_objfiles.
16208 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16209 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16210 (maintenance_check_psymtabs): Use all_objfiles.
16211 (ALL_PSYMTABS): Remove.
16212 * compile/compile-object-run.c (do_module_cleanup): Use
16213 all_objfiles.
16214 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16215 * cp-support.c (add_symbol_overload_list_qualified): Use
16216 all_objfiles.
16217 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16218 Use all_objfiles.
16219 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16220 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16221 all_objfiles.
16222 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16223 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16224 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16225 Uses all_objfiles.
16226 * solib.c (solib_read_symbols): Use all_objfiles
16227
99d89cde
TT
162282019-01-09 Tom Tromey <tom@tromey.com>
16229
16230 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16231 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16232 all_objfiles.
16233 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16234 * symmisc.c (print_symbol_bcache_statistics)
16235 (print_objfile_statistics, maintenance_print_objfiles)
16236 (maintenance_info_symtabs, maintenance_check_symtabs)
16237 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16238 all_objfiles.
16239 * source.c (forget_cached_source_info): Use all_objfiles.
16240 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16241 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16242 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16243 * objfiles.c (update_section_map): Use all_objfiles.
16244 (shared_objfile_contains_address_p): Likewise.
16245 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16246 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16247
21708325
TT
162482019-01-09 Tom Tromey <tom@tromey.com>
16249
16250 * common/next-iterator.h: New file.
16251 * objfiles.h (class all_objfiles): New.
16252 (struct objfile_iterator): New.
16253
669e09f6
PW
162542019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16255
16256 * NEWS: Move the description of the changed "frame", "select-frame",
16257 and "info frame" commands to the Changed commands section.
16258
041be526
SM
162592019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16260
16261 * gdbtypes.c (check_stub_method_group): Remove handling of old
16262 mangling schemes.
16263 * linespec.c (find_methods): Likewise.
16264 * stabsread.c (read_member_functions): Likewise.
16265 * valops.c (search_struct_method): Likewise.
16266 (value_struct_elt_for_reference): Likewise.
16267 * NEWS: Mention this change.
16268
0e2a2133
AB
162692019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16270
16271 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16272 print_source_lines.
16273 * source.c (print_source_lines_base): Update line number check.
16274 (print_source_lines): New function.
16275 (source_lines_range::source_lines_range): New function.
16276 * source.h (class source_lines_range): New class.
16277 (print_source_lines): New declaration.
16278
1055a3b4
PW
162792019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16280
16281 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16282
cfeadda5
TT
162832019-01-08 Tom Tromey <tom@tromey.com>
16284 Simon Marchi <simon.marchi@ericsson.com>
16285
16286 PR gdb/24060
16287 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16288 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16289 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16290 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16291 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16292 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16293
583068ca
AB
162942019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16295
16296 * source.c (select_source_symtab): Move header comment to
16297 declaration in source.h.
16298 (forget_cached_source_info_for_objfile): Likewise.
16299 (forget_cached_source_info): Likewise.
16300 (identify_source_line): Likewise.
16301 * source.h (identify_source_line): Move declaration from symtab.h
16302 and add comment from source.c
16303 (print_source_lines): Likewise.
16304 (forget_cached_source_info_for_objfile): Likewise.
16305 (forget_cached_source_info): Likewise.
16306 (select_source_symtab): Likewise.
16307 (enum print_source_lines_flag): Move definition from symtab.h.
16308 * symtab.h (identify_source_line): Move declaration to source.h.
16309 (print_source_lines): Likewise.
16310 (forget_cached_source_info_for_objfile): Likewise.
16311 (forget_cached_source_info): Likewise.
16312 (select_source_symtab): Likewise.
16313 (enum print_source_lines_flag): Move definition to source.h.
16314 * tui/tui-hooks.c: Add 'source.h' include.
16315
ec98a4ad
AB
163162019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16317
16318 * source.c (print_source_lines_base): Handle requests to print
16319 reverse line number sequences, and guard against empty lines
16320 string.
16321
62ea19c1
AB
163222019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16323
16324 * source.c (print_source_lines_base): Fix skip of '\r' if next
16325 character is '\n'.
16326
9d30e1fd
TT
163272019-01-06 Tom Tromey <tom@tromey.com>
16328
16329 * c-exp.y (struct c_parse_state) <macro_original_text,
16330 expansion_obstack>: New member.
16331 (macro_original_text, expansion_obstack): Remove globals.
16332 (scan_macro_expansion, scanning_macro_expansion)
16333 (finished_macro_expansion): Update.
16334 (scan_macro_cleanup): Remove.
16335 (yylex, c_parse): Update.
16336
c65bac38
TT
163372019-01-06 Tom Tromey <tom@tromey.com>
16338
16339 * c-exp.y (struct c_parse_state) <strings>: New member.
16340 (operator_stoken): Update.
16341
02e12e38
TT
163422019-01-06 Tom Tromey <tom@tromey.com>
16343
16344 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16345 (union type_stack_elt) <typelist_val>: Now a pointer to
16346 std::vector.
16347 (type_stack_cleanup): Don't declare.
16348 (push_typelist): Update.
16349 * parse.c (pop_typelist): Return a std::vector.
16350 (push_typelist): Take a std::vector.
16351 (follow_types): Update. Do not free args.
16352 (type_stack_cleanup): Remove.
16353 * c-exp.y (struct c_parse_state): New.
16354 (cpstate): New global.
16355 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16356 (nonempty_typelist): Update.
16357 (func_mod): Create a new vector.
16358 (c_parse): Create a c_parse_state.
16359 (check_parameter_typelist): Do not delete params.
16360 (function_method): Update. Do not delete type_list.
16361
f097f5ad
TT
163622019-01-06 Tom Tromey <tom@tromey.com>
16363
16364 PR gdb/28155:
16365 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16366 check_typedef.
16367 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16368 (print_return_value): Likewise.
16369
d2adf9f1
TT
163702019-01-05 Tom Tromey <tom@tromey.com>
16371
16372 * contrib/cleanup_check.py: Remove.
16373 * contrib/gcc-with-excheck: Remove.
16374 * contrib/exsummary.py: Remove.
16375 * contrib/excheck.py: Remove.
16376
2eab46b1
JB
163772019-01-05 Joel Brobecker <brobecker@adacore.com>
16378
16379 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16380 NULL. Initialize tpprev to NULL instead of assigning it
16381 to NULL on the next statement.
16382 * windows-nat.c (windows_delete_thread): Remove check for
16383 main_thread_id before printing thread exit notifications.
16384 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16385 Remove thread ID check against main_thread_id.
16386 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16387 windows_delete_thread.
16388 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16389
48c5e7e2
TT
163902019-01-04 Tom Tromey <tom@tromey.com>
16391
16392 * compile/compile.c (_initialize_compile): Use upper case for
16393 metasyntactic variables.
16394 * symmisc.c (_initialize_symmisc): Use upper case for
16395 metasyntactic variables.
16396 * psymtab.c (_initialize_psymtab): Use upper case for
16397 metasyntactic variables.
16398 * demangle.c (demangle_command): Use upper case for metasyntactic
16399 variables.
16400 (_initialize_demangler): Likewise.
16401 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16402 variables.
16403
986041cd
TT
164042019-01-03 Tom Tromey <tom@tromey.com>
16405
16406 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16407
7c711119
TT
164082019-01-03 Tom Tromey <tom@tromey.com>
16409
16410 * python/py-symtab.c (salpy_str): Update.
16411 (struct salpy_sal_object) <symtab>: Now a PyObject.
16412 (salpy_dealloc): Update.
16413 (del_objfile_sal): Use gdbpy_ref.
16414
1b20edf0
TT
164152019-01-03 Tom Tromey <tom@tromey.com>
16416
16417 * python/py-type.c (convert_field): Use new_reference. Return
16418 gdbpy_ref.
16419 (make_fielditem): Return gdbpy_ref.
16420 (typy_fields): Update.
16421 (typy_getitem): Update.
16422 (field_name): Return gdbpy_ref. Use new_reference.
16423 (typy_iterator_iternext): Update.
16424
ea41325b
TT
164252019-01-03 Tom Tromey <tom@tromey.com>
16426
16427 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16428
2a3c71d6
TT
164292019-01-03 Tom Tromey <tom@tromey.com>
16430
16431 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16432 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16433 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16434 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16435 (pspy_set_type_printers): Likewise.
16436 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16437 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16438 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16439 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16440 (objfpy_set_type_printers): Likewise.
16441
5c329e6a
TT
164422019-01-03 Tom Tromey <tom@tromey.com>
16443
16444 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16445 (gdbpy_print_stack): Use gdbpy_err_fetch.
16446 * python/python-internal.h (class gdbpy_err_fetch): New class.
16447 (class gdbpy_enter) <m_error_type, m_error_value,
16448 m_error_traceback>: Remove.
16449 <m_error>: New member.
16450 (gdbpy_exception_to_string): Don't declare.
16451 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16452 * python/py-value.c (convert_value_from_python): Use
16453 gdbpy_err_fetch.
16454 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16455 gdbpy_exception_to_string.
16456 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16457 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16458 gdbpy_err_fetch.
16459
169bb27b
AB
164602019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16461
16462 * linux-nat.c (delete_lwp_cleanup): Delete.
16463 (struct lwp_deleter): New struct.
16464 (lwp_info_up): New typedef.
16465 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16466 lwp_info_up.
16467
a07c8880
AB
164682019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16469
16470 * linux-fork.c (class scoped_switch_fork_info): New class.
16471 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16472
26089c49
AB
164732019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16474
16475 * valops.c (find_overload_match): Remove use of null_cleanup, and
16476 calls to do_cleanups.
16477
06d3e5b0
AB
164782019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16479
16480 * compile/compile-cplus-types.c
16481 (compile_cplus_instance::decl_name): Handle changes to
16482 cp_func_name.
16483 * cp-support.c (cp_func_name): Update header comment, update
16484 return type.
16485 * cp-support.h (cp_func_name): Update return type in declaration.
16486 * valops.c (find_overload_match): Move temp_func local to top
16487 level of function and change its type. Use temp_func to hold and
16488 delete temporary string obtained from cp_func_name.
16489
66644cd3
AB
164902019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16491
16492 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16493 gdb::char_vector, remove cleanup, and update uses of `msg`.
16494
592d8c0a
JW
164952019-01-03 Jim Wilson <jimw@sifive.com>
16496
16497 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16498
c55d06ec
TT
164992019-01-02 Tom Tromey <tom@tromey.com>
16500
16501 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16502 (tdesc_parse_xml): Remove cleanups.
16503 * target-descriptions.h (make_cleanup_free_target_description):
16504 Don't declare.
16505 (target_desc_deleter): New struct.
16506 (target_desc_up): New typedef.
16507 * target-descriptions.c (target_desc_deleter::operator()): Rename
16508 from free_target_description.
16509 (make_cleanup_free_target_description): Remove.
16510
3a6ae42d
TT
165112019-01-02 Tom Tromey <tom@tromey.com>
16512
16513 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16514 constructor, destructor.
16515 (linespec_parser): Remove typedef.
16516 (~linespec_parser): Rename from linespec_parser_delete.
16517 (linespec_lex_to_end, linespec_complete_label)
16518 (linespec_complete): Update.
16519 (decode_line_full): Remove cleanups.
16520 (decode_line_1): Update.
16521
61fd3e73
TT
165222019-01-02 Tom Tromey <tom@tromey.com>
16523
16524 * python/python-internal.h (inferior_to_inferior_object): Change
16525 return type.
16526 * python/py-exitedevent.c (create_exited_event_object): Update.
16527 * python/py-inferior.c (inferior_to_inferior_object): Return
16528 gdbpy_ref.
16529 (python_new_inferior, python_inferior_deleted)
16530 (thread_to_thread_object, delete_thread_object)
16531 (build_inferior_list, gdbpy_selected_inferior): Update.
16532 * python/py-infthread.c (create_thread_object): Update. Also fail
16533 if inferior_to_inferior_object fails.
16534
d20172fc
SM
165352019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16536
16537 * inferior.h (class inferior) <displaced_step_state>: New field.
16538 * infrun.h (struct displaced_step_state): Move here from
16539 infrun.c. Initialize fields, add constructor.
16540 <inf>: Remove field.
16541 <reset>: New method.
16542 * infrun.c (struct displaced_step_inferior_state): Move to
16543 infrun.h.
16544 (displaced_step_inferior_states): Remove.
16545 (get_displaced_stepping_state): Adust.
16546 (displaced_step_in_progress_any_inferior): Adjust.
16547 (displaced_step_in_progress_thread): Adjust.
16548 (displaced_step_in_progress): Adjust.
16549 (add_displaced_stepping_state): Remove.
16550 (get_displaced_step_closure_by_addr): Adjust.
16551 (remove_displaced_stepping_state): Remove.
16552 (infrun_inferior_exit): Call displaced_step_state.reset.
16553 (use_displaced_stepping): Don't check for NULL.
16554 (displaced_step_prepare_throw): Call
16555 get_displaced_stepping_state.
16556 (displaced_step_fixup): Don't check for NULL.
16557 (prepare_for_detach): Don't check for NULL.
16558
e3319240
PW
165592019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16560
16561 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16562 in case of call that did not complete.
16563
5d36dfb9
AU
165642019-01-02 Andrey Utkin <autkin@undo.io>
16565
16566 * symfile.c (find_separate_debug_file): Fix search of debug files for
16567 remote debuggee.
16568
8833fbf0
TT
165692019-01-02 Tom Tromey <tom@tromey.com>
16570
16571 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16572 indentation.
16573 * python/py-frame.c (frapy_older): Remove cast.
16574 (frapy_newer): Likewise.
16575 * python/py-breakpoint.c (local_setattro): Remove cast.
16576 * python/py-arch.c (archpy_name): Remove local variable.
16577 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16578
4ada3dfd
JB
165792019-01-02 Joel Brobecker <brobecker@adacore.com>
16580
16581 * unittests/basic_string_view/element_access/char/empty.cc:
16582 Fix year range in copyright header.
16583
113b7b81
AB
165842019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16585
16586 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16587 Delete.
16588 <operator==>: Update with for removed field.
16589 <hash>: Likewise.
16590 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16591 <isa_features>: ...this.
16592 <abi_features>: New field.
16593 (riscv_isa_flen): Update comment.
16594 (riscv_abi_xlen): New declaration.
16595 (riscv_abi_flen): New declaration.
16596 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16597 isa_features.
16598 (riscv_abi_xlen): New function.
16599 (riscv_isa_flen): Update to get answer from isa_features.
16600 (riscv_abi_flen): New function.
16601 (riscv_has_fp_abi): Update to get answer from abi_features.
16602 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16603 xlen and flen.
16604 (riscv_call_info) <xlen, flen>: Update comment.
16605 (riscv_call_arg_struct): Remove invalid assertions
16606 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16607 is removed.
16608 (riscv_gdbarch_init): Gather isa features and abi features
16609 separately, ensure both match on the gdbarch when reusing an old
16610 gdbarch. Relax an error check to allow 32-bit abi float to run on
16611 a target with 64-bit float hardware.
16612
b18ca514
PW
166132019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16614
16615 * source.c (search_command_helper): Stop reverse search
16616 when line 1 has been searched.
16617
ec70d8db
PW
166182019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16619
16620 * record-full.c (record_full_base_target::close): Rewrite
16621 record_full_core_buf_list free logic.
16622
5b38f9c1
PW
166232019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16624
16625 * break-catch-syscall.c (print_one_catch_syscall): xfree
16626 the last text.
16627
66d91b39
JB
166282019-01-01 Joel Brobecker <brobecker@adacore.com>
16629
16630 * top.c (print_gdb_version): Update Copyright year in version
16631 message.
16632
42a4f53d
JB
166332019-01-01 Joel Brobecker <brobecker@adacore.com>
16634
16635 Update copyright year range in all GDB files.
16636
7e955d83 166372019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16638
5bbd631d 16639 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16640
5bbd631d 16641For older changes see ChangeLog-2018.
c906108c
SS
16642\f
16643Local Variables:
16644mode: change-log
16645left-margin: 8
16646fill-column: 74
16647version-control: never
57da7796 16648coding: utf-8
c906108c 16649End:
5bbd631d 16650
This page took 3.020158 seconds and 4 git commands to generate.