Don't define _FORTIFY_SOURCE on MinGW
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
975292a9
CB
12020-01-10 Christian Biesinger <cbiesinger@google.com>
2
3 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
4
3c473fad
TT
52020-01-07 Tom Tromey <tromey@adacore.com>
6
7 PR build/24937:
8 * stap-probe.c (class stap_static_probe_ops): Add constructor.
9
f7da8e5b
AB
102020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11
12 * stack.c (print_frame_info): Move disassemble_next_line code
13 inside source_print block.
14
b8e46eb9
JB
152020-01-01 Joel Brobecker <brobecker@adacore.com>
16
17 * gdbarch.sh: Update copyright year range of generated files.
18
11bc5fe4
JB
192020-01-01 Joel Brobecker <brobecker@adacore.com>
20
21 Update copyright year range in all the GDB files automatically
22 handled by our copyright.py script.
23
8b371634
JB
242020-01-01 Joel Brobecker <brobecker@adacore.com>
25
26 * copyright.py: Convert to Python 3.
27
a292f79f
JB
282020-01-01 Joel Brobecker <brobecker@adacore.com>
29
30 * copyright.py: Adapt after move of gnulib directory from gdb
31 directory to toplevel directory.
32
1458b0f3
JB
332020-01-01 Joel Brobecker <brobecker@adacore.com>
34
35 * copyright.py (main): Exit if run from the wrong directory.
36
e9de78be
JB
372020-01-01 Joel Brobecker <brobecker@adacore.com>
38
39 * top.c (print_gdb_version): Change copyright year to 2020.
40
c0716f3e
CB
412019-12-26 Christian Biesinger <cbiesinger@google.com>
42
43 * configure: Regenerate.
44 * configure.ac: Quote variable arguments of test.
45 * gdbsupport/common.m4: Likewise.
46
527178f7
EZ
472019-12-21 Eli Zaretskii <eliz@gnu.org>
48
49 * top.c (print_gdb_configuration): Print "--with-xxhash" or
50 "--without-xxhash" according to HAVE_LIBXXHASH.
51
4ae7258e
TT
522019-12-18 Tom Tromey <tromey@adacore.com>
53
54 PR build/25268:
55 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
56 type on macOS. Add comment.
57
1c66314d
TT
582019-12-18 Tom Tromey <tromey@adacore.com>
59
60 PR build/25250:
61 * ui-out.c (ui_out::vmessage): Update.
62 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
63 Rename.
64 (string_field): Update.
65 (signed_field): Update.
66
be19b699
SM
672019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
68
69 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
70
3f434671
JB
712019-12-11 Joel Brobecker <brobecker@adacore.com>
72
73 * version.in: Set GDB version number to 9.0.90.DATE-git.
74
07d5aa38
JB
752019-12-11 Joel Brobecker <brobecker@adacore.com>
76
77 GDB 9.0.90 released.
78
b06b5486
JB
792019-12-11 Joel Brobecker <brobecker@adacore.com>
80
81 * version.in: Set GDB version number to 9.0.90.
82
41ec388b
JB
832019-12-11 Joel Brobecker <brobecker@adacore.com>
84
85 * NEWS: Change "Changes since GDB 8.3" into "Changes in GDB 9".
86
c87abc50
JB
872019-12-11 Joel Brobecker <brobecker@adacore.com>
88
89 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
90 * version.in: Bump version to 9.0.90.DATE-git.
91
2e744276
TT
922019-12-11 Tom Tromey <tromey@adacore.com>
93
94 PR build/25268:
95 * gdbsupport/thread-pool.c (set_thread_name): New function.
96 (thread_pool::set_thread_count): Don't call pthread_setname_np.
97 (thread_pool::thread_function): Call set_thread_name.
98
aac4760f
TT
992019-12-11 Tom Tromey <tromey@adacore.com>
100
101 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
102 bfd_get_signed_8.
103
d8edc8b7
PW
1042019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
105
106 * NEWS: Document -raw-values option and the related setting commands.
107 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
108 only set it on when /r is given.
109 * valprint.c (value_print_option_defs): New element raw-values.
110 * Makefile.in: Add the new file.
111
cb511130
CB
1122019-12-10 Christian Biesinger <cbiesinger@google.com>
113
114 * gdbsupport/safe-strerror.c: Supress the unused function warning
115 for select_strerror_r.
116
ab7d13f0
CB
1172019-12-10 Christian Biesinger <cbiesinger@google.com>
118
119 * config.in: Regenerate.
120 * configure: Regenerate.
121 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
122 safe_strerror instead of strerror.
123 * gdbsupport/common.m4: Don't check for strerror.
124 * gdbsupport/safe-strerror.c: Support both the glibc version
125 of strerror_r and the XSI version.
126
6c71eb7d
TT
1272019-12-10 Tom Tromey <tromey@adacore.com>
128
129 * ada-typeprint.c (print_choices): Use a single "?".
130 (print_variant_part): Print "?" if the discriminant name
131 is not known.
132
bac7c5cf
GB
1332019-12-10 George Barrett <bob@bob131.so>
134
135 Fix scripted probe breakpoints.
136 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
137 declaration forward.
138 (breakpoint_ops_for_event_location_type)
139 (breakpoint_ops_for_event_location): Add function definitions.
140 (break_command_1, trace_command): Use
141 breakpoint_ops_for_event_location.
142 * breakpoint.h (breakpoint_ops_for_event_location): Add function
143 declarations.
144 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
145 breakpoint_ops_for_event_location.
146 * python/py-breakpoint.c (bppy_init): Use
147 breakpoint_ops_for_event_location.
148
330f1d38
TBA
1492019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
150
151 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
152 when ranking an lvalue argument for an rvalue parameter.
153
b1f0c0b9
WA
1542019-12-08 Wataru Ashihara <wataash@wataash.com>
155
156 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
157 template argument for scoped_restore_tmpl from bool to int.
158
aa2d5a42
KS
1592019-12-07 Keith Seitz <keiths@redhat.com>
160
161 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
162 (build_id_to_debug_bfd): Make static, rewriting to use
163 build_id_to_bfd_suffix.
164 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
165 adding `suffix' parameter. Append SUFFIX to file names
166 when searching for matching files.
167 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
168 (build_id_to_exec_bfd): Likewise.
169 * build-id.h (build_id_to_debug_bfd): Clarify that function
170 searches for BFD of debug info file.
171 (build_id_to_exec_bfd): Declare.
172 * corelow.c: Include build-id.h.
173 (locate_exec_from_corefile_build_id): New function.
174 (core_target_open): If no executable BFD is found,
175 search for a core file BFD using build-id.
176
dfb65191
CB
1772019-12-06 Christian Biesinger <cbiesinger@google.com>
178
179 * bcache.c: Put in namespace gdb.
180 * bcache.h: Likewise.
181 * gdbtypes.c (check_types_worklist): Update.
182 (types_deeply_equal): Update.
183 * macrotab.c (struct macro_table) <bcache>: Update.
184 (new_macro_table): Update.
185 * macrotab.h (struct bcache): Put this forward declaration
186 inside namespace gdb.
187 (new_macro_table): Update.
188 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
189 Update.
190 <macro_cache>: Update.
191 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
192
93e55f0a
TV
1932019-12-06 Tom de Vries <tdevries@suse.de>
194
195 PR symtab/24971
196 * block.c (best_symbol, better_symbol): New function.
197 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
198 decl.
199
06acc08f
TBA
2002019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
201
202 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
203 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
204 for ranking see-through reference cases.
205
e0fad1ea
PW
2062019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
207 * stack.c (faas_command): Check a command is provided.
208 * thread.c (taas_command, tfaas_command): Likewise.
209
908641f5
PW
2102019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
211 * inferior.c (prune_inferiors): Only call delete_inferior,
212 Do not modify the inferior list.
213
b858499d
SM
2142019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
215
216 * c-exp.y: Update calls to lookup_typename,
217 lookup_signed_typename and lookup_unsigned_typename.
218 * c-lang.c (evaluate_subexp_c): Likewise.
219 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
220 Likewise.
221 * eval.c (binop_promote): Likewise.
222 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
223 (lookup_unsigned_typename): Likewise.
224 (lookup_signed_typename): Likewise.
225 * gdbtypes.h (lookup_unsigned_typename): Likewise.
226 (lookup_signed_typename): Likewise.
227 (lookup_typename): Likewise.
228 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
229 lookup_typename, lookup_signed_typename,
230 lookup_unsigned_typename.
231 * m2-exp.y: Likewise.
232 * printcmd.c (printf_wide_c_string): Likewise.
233 (ui_printf): Likewise.
234 * python/py-type.c (typy_lookup_typename): Likewise.
235 * python/py-xmethods.c (python_xmethod_worker::invoke):
236 Likewise.
237 * rust-exp.y: Likewise.
238
3a8fa228
CB
2392019-12-04 Christian Biesinger <cbiesinger@google.com>
240
241 * configure.nat (obsd64): Add missing files x86-nat.o and
242 nat/x86-dregs.o.
243
2dbc041e
TT
2442019-12-04 Tom Tromey <tom@tromey.com>
245
246 * valprint.c (val_print_string): Use metadata_style.
247 * go-valprint.c (print_go_string): Use metadata style.
248 * p-valprint.c (pascal_object_print_static_field): Use metadata
249 style.
250 * cp-valprint.c (cp_print_static_field): Use metadata style.
251
36c8fb93
AB
2522019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
253 Chris January <chris.january@arm.com>
254
255 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
256 tokens.
257 (typebase): New patterns for complex, single/double precision, and
258 single/double complex.
259 (f77_keywords): Change token for complex keyword, and add single,
260 double, and precision keywords.
261
c6170c2c
SM
2622019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
263
264 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
265 "info io_registers".
266
894ecaf4
SM
2672019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
268
269 * regcache.c (cooked_read_test): Initialize thread list of
270 mock_inferior.
271
be155ebb
SM
2722019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
273
274 * aarch64-linux-tdep.c: Remove includes.
275
c577cdd7
SM
2762019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
277
278 * aarch64-tdep.c: Remove includes.
279
610cfd61
SM
2802019-12-04 Simon Marchi <simon.marchi@efficios.com>
281
282 * filtered-iterator.h (filtered_iterator) <operator==,
283 operator!=>: Compare wrapped iterators, not wrapped pointers.
284 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
285 unittests/filtered_iterator-selftests.c.
286 * unittests/filtered_iterator-selftests.c: New file.
287
a05cf17a
TT
2882019-12-04 Tom Tromey <tromey@adacore.com>
289
290 * gdbtypes.c (create_range_type): Inherit endianity
291 from base type.
292
d5a22e77
TT
2932019-12-04 Tom Tromey <tromey@adacore.com>
294
295 * ada-lang.c (decode_constrained_packed_array)
296 (ada_value_assign, value_assign_to_component): Update.
297 * dwarf2loc.c (rw_pieced_value, access_memory)
298 (dwarf2_compile_expr_to_ax): Update.
299 * dwarf2read.c (dwarf2_add_field): Update.
300 * eval.c (evaluate_subexp_standard): Update.
301 * gdbarch.c, gdbarch.h: Rebuild.
302 * gdbarch.sh (bits_big_endian): Remove.
303 * gdbtypes.h (union field_location): Update comment.
304 * target-descriptions.c (make_gdb_type): Update.
305 * valarith.c (value_bit_index): Update.
306 * value.c (struct value) <bitpos>: Update comment.
307 (unpack_bits_as_long, modify_field): Update.
308 * value.h (value_bitpos): Update comment.
309
7ab4a236
TT
3102019-12-04 Tom Tromey <tromey@adacore.com>
311
312 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
313 endian-ness.
314
103a685e
TT
3152019-12-04 Tom Tromey <tromey@adacore.com>
316
317 * dwarf2read.c (dwarf2_init_float_type)
318 (dwarf2_init_complex_target_type): Add byte_order parameter.
319 (read_base_type): Compute byte order earlier.
320 * gdbtypes.c (init_float_type): Add byte_order parameter.
321 * gdbtypes.h (init_float_type): Add byte_order parameter.
322
7a9e9f9f
TT
3232019-12-04 Tom Tromey <tromey@adacore.com>
324
325 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
326
feee869b
TT
3272019-12-04 Tom Tromey <tromey@adacore.com>
328
329 * dwarf2read.c (process_structure_scope): Initialize
330 "discr_offset".
331
c2512106
AB
3322019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
333
334 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
335 add it into the search spec.
336 (parse_max_results_option): New function.
337 (mi_info_functions_or_variables): Parse -max-results flag and pass
338 it to mi_symbol_info.
339 (mi_cmd_symbol_info_modules): Likewise.
340 (mi_cmd_symbol_info_types): Likewise.
341 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
342 return type to bool, change result container into a set, and don't
343 add new results if we have enough already.
344 (global_symbol_searcher::add_matching_msymbols): Change return
345 type to bool, and don't add new results if we have enough already.
346 (sort_search_symbols_remove_dups): Delete.
347 (global_symbol_searcher::search): Early exit from search loop when
348 we have enough results. Use a std::set to collect the results
349 from calling add_matching_symbols.
350 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
351 member function.
352 (global_symbol_searcher) <m_max_search_results>: New member
353 variable.
354 (global_symbol_searcher) <add_matching_symbols>: Update header
355 comment and change return type to bool.
356 (global_symbol_searcher) <add_matching_msymbols>: Update header
357 comment and change return type to bool.
358
f97a63c5
AB
3592019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
360
361 * symtab.c (symbol_search::compare_search_syms): Update header
362 comment.
363 (global_symbol_searcher::is_suitable_msymbol): New function.
364 (global_symbol_searcher::expand_symtabs): New function.
365 (global_symbol_searcher::add_matching_symbols): New function.
366 (global_symbol_searcher::add_matching_msymbols): New function.
367 (global_symbol_searcher::search): Move most of the content
368 into the new functions above, and call them as needed.
369 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
370 function.
371 (global_symbol_searcher) <add_matching_symbols>: New member
372 function.
373 (global_symbol_searcher) <add_matching_msymbols>: New member
374 function.
375 (global_symbol_searcher) <is_suitable_msymbol>: New member
376 function.
377
293b38d6
AB
3782019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
379
380 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
381 -symbol-info-module-variables entries.
382 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
383 (mi_cmd_symbol_info_module_variables): Declare.
384 * mi/mi-symbol-cmds.c
385 (module_symbol_search_iterator): New typedef.
386 (output_module_symbols_in_single_module_and_file): New function.
387 (output_module_symbols_in_single_module): New function.
388 (mi_info_module_functions_or_variables): New function.
389 (mi_cmd_symbol_info_module_functions): New function.
390 (mi_cmd_symbol_info_module_variables): New function.
391 * NEWS: Mention new MI command.
392
4cbd39b2
CB
3932019-12-03 Christian Biesinger <cbiesinger@google.com>
394
395 * bcache.c (hash): Remove.
396 (hash_continue): Remove.
397 * bcache.h (hash): Remove.
398 (hash_continue): Remove.
399 (struct bcache) <ctor>: Update.
400 * psymtab.c (psymbol_hash): Update.
401 * stabsread.c (hashname): Update.
402 * utils.h (fast_hash): Add an argument for a start value,
403 defaulting to zero.
404
82f910ea
PW
4052019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
406 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
407 (destroy_block_symbol_cache): New function.
408 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
409 (resize_symbol_cache): Likewise.
410
de2396d0
TT
4112019-12-02 Tom Tromey <tom@tromey.com>
412
413 * unittests/tui-selftests.c (run_tests): Make conditional.
414 (_initialize_tui_selftest): Make conditional.
415
638d85bc
CB
4162019-12-02 Christian Biesinger <cbiesinger@google.com>
417
418 * aix-thread.c (debug_aix_thread): Change type to bool.
419
7532a164
LM
4202019-12-02 Luis Machado <luis.machado@linaro.org>
421
422 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
423
216a7e6b
AB
4242019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
425
426 * dwarf2read.c (read_tag_string_type): Read the fields required to
427 make a dynamic string, and possibly create a dynamic range for the
428 string.
429 (attr_to_dynamic_prop): Setup is_reference based on the type of
430 attribute being processed.
431 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
432 (resolve_dynamic_array): Rename to...
433 (resolve_dynamic_array_or_string): ...this, update header comment,
434 and accept TYPE_CODE_STRING.
435 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
436
11a8b164
AB
4372019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
438
439 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
440 of its implementation from...
441 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
442 the new function.
443
5bbd8269
AB
4442019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
445
446 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
447 create a range with stride where appropriate.
448 * f-valprint.c: Include 'gdbarch.h'.
449 (f77_print_array_1): Take the stride into account when walking the
450 array. Also convert the stride into addressable units.
451 * gdbtypes.c (create_range_type): Initialise the stride to
452 constant zero.
453 (create_range_type_with_stride): New function, initialise the
454 range as normal, and then setup the stride.
455 (has_static_range): Include the stride here. Also change the
456 return type to bool.
457 (create_array_type_with_stride): Consider the range stride if the
458 array isn't given its own stride.
459 (resolve_dynamic_range): Resolve the stride if needed.
460 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
461 (struct range_bounds) <flag_is_byte_stride>: New member variable.
462 (TYPE_BIT_STRIDE): Define.
463 (TYPE_ARRAY_BIT_STRIDE): Define.
464 (create_range_type_with_stride): Declare.
465 * valarith.c (value_subscripted_rvalue): Take range stride into
466 account when walking the array.
467
82e3b564
TT
4682019-12-01 Tom Tromey <tom@tromey.com>
469
470 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
471 specially.
472
517d261d
TT
4732019-12-01 Tom Tromey <tom@tromey.com>
474
475 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
476 \0.
477 * unittests/tui-selftests.c: New file.
478 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
479
484c9b64
TT
4802019-12-01 Tom Tromey <tom@tromey.com>
481
482 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
483
a2a7af0c
TT
4842019-12-01 Tom Tromey <tom@tromey.com>
485
486 * NEWS: Document new settings.
487 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
488 * tui/tui-win.c (_initialize_tui_win): Add border style
489 observers.
490 * tui/tui-io.h (tui_apply_style): Declare.
491 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
492 longer static.
493 (apply_ansi_escape, tui_set_reverse_mode): Update.
494 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
495 Add "skip_intensity" parameter.
496 <changed>: New member.
497 <do_set_value>: Declare.
498 (tui_border_style, tui_active_border_style): Declare.
499 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
500 globals.
501 (cli_style_option): Initialize "changed".
502 (cli_style_option::do_set_value): New function.
503 (cli_style_option::add_setshow_commands): Add "skip_intensity"
504 parameter. Update.
505 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
506 (_initialize_cli_style): Update. Create TUI border style
507 commands.
508
d1da6b01
TT
5092019-12-01 Tom Tromey <tom@tromey.com>
510
511 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
512 parameter.
513 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
514 parameter.
515 * tui/tui-win.h (compact_source): Declare.
516 * tui/tui-win.c (compact_source): New global.
517 (tui_set_compact_source, tui_show_compact_source): New functions.
518 (_initialize_tui_win): Add "compact-source" setting.
519 * tui/tui-source.c (tui_source_window::set_contents): Handle
520 compact_source setting.
521 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
522 * NEWS: Document new setting.
523
489dbda6
TT
5242019-11-30 Tom Tromey <tom@tromey.com>
525
526 * dwarf2read.c (dwarf2_add_field): Include field offset when
527 computing variant part length.
528
bf498525
PW
5292019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
530 * NEWS: Mention define-prefix. Tell that command names can now
531 contain a . character.
532
be09caf1
PW
5332019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
534
535 * command.h (valid_cmd_char_p): Declare.
536 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
537 the check of valid command char.
538 (find_command_name_length, valid_user_defined_cmd_name_p): Use
539 valid_cmd_char_p.
540 * cli/cli-script.c (validate_comname): Likewise.
541 * completer.c (gdb_completer_command_word_break_characters):
542 Do not remove . from the word break char, update comments.
543 (complete_line_internal_1): Use valid_cmd_char_p.
544 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
545 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
546
c6ac7fc9
PW
5472019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
548
549 * cli/cli-script.c (do_define_command): Ensure a redefined
550 prefix command is kept as a prefix command.
551 (define_prefix_command): New function.
552 (show_user_1): Report user defined prefixes.
553 (_initialize_cli_script): Create the new 'define-prefix' command.
554 Add completers for 'define' and 'document'.
555 * top.c (execute_command): If command is a user-defined prefix only
556 command, report the list of commands for this prefix command.
557
a992a3b0
TBA
5582019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
559
560 * valops.c (find_oload_champ): Improve debug output.
561
e9194a1a
TBA
5622019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
563
564 * valops.c (find_oload_champ): Print part of debug messages
565 before the badness vector is std::move'd.
566
53a008a6
TT
5672019-11-28 Tom Tromey <tom@tromey.com>
568
569 * value.c (creal_internal_fn): Fix comment.
570
bab05c83
TT
5712019-11-28 Tom Tromey <tom@tromey.com>
572
573 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
574 flag_bound_evaluated>: Now unsigned.
575
2522f049
TT
5762019-11-28 Tom Tromey <tom@tromey.com>
577
578 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
579 declare.
580
38b49e22
MS
5812019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
582
583 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
584 debug output.
585 * jit.c (jit_unregister_code): Add debug print to match
586 `jit_register_code`.
587
35125921
CB
5882019-11-27 Christian Biesinger <cbiesinger@google.com>
589
590 * NEWS: Mention the new multithreaded symbol loading.
591
62e77f56
CB
5922019-11-27 Christian Biesinger <cbiesinger@google.com>
593
594 * maint.c (n_worker_threads): Default to 0.
595 (worker_threads_disabled): New function.
596 * maint.h (worker_threads_disabled): New function.
597 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
598 here if worker_threads_disabled () is true.
599 (minimal_symbol_reader::install): Skip all threading if
600 worker_threads_disabled () is true.
601
f29d7f6b
CB
6022019-11-27 Christian Biesinger <cbiesinger@google.com>
603
604 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
605 hash code if possible.
606 (add_minsym_to_demangled_hash_table): Likewise.
607 (minimal_symbol_reader::install): Compute the hash codes for msymbol
608 on the background thread.
609 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
610 Add these fields.
611
e76b2246
CB
6122019-11-27 Christian Biesinger <cbiesinger@google.com>
613
614 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
615 of the mangled name on the background thread.
616 * symtab.c (symbol_set_names): Allow passing in the hash of the
617 linkage_name.
618 * symtab.h (symbol_set_names): Likewise.
619
8d9a2568
KB
6202019-11-27 Kevin Buettner <kevinb@redhat.com>
621
622 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
623 physnames are computed for inherited DIEs.
624
fad03f6e
TT
6252019-11-27 Tom Tromey <tromey@adacore.com>
626
627 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
628 backslashes.
629 * cp-support.c: Remove unnecessary backslashes.
630
43678b0a
CB
6312019-11-27 Christian Biesinger <cbiesinger@google.com>
632
633 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
634 with sym->set_linkage_name.
635 * coffread.c (coff_read_enum_type): Likewise.
636 * mdebugread.c (parse_symbol): Likewise.
637 * stabsread.c (patch_block_stabs): Likewise.
638 (define_symbol): Likewise.
639 (read_enum_type): Likewise.
640 (common_block_end): Likewise.
641 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
642 function.
643 (SYMBOL_SET_LINKAGE_NAME): Remove.
644 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
645 with sym->set_linkage_name.
646
db5960b4
AB
6472019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
648
649 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
650 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
651 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
652 * NEWS: Mention new MI command.
653
7dc42066
AB
6542019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
655
656 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
657 '-symbol-info-types', and '-symbol-info-variables'.
658 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
659 (mi_cmd_symbol_info_types): Declare.
660 (mi_cmd_symbol_info_variables): Declare.
661 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
662 (output_debug_symbol): New function.
663 (output_nondebug_symbol): New function.
664 (mi_symbol_info): New function.
665 (mi_info_functions_or_variables): New function.
666 (mi_cmd_symbol_info_functions): New function.
667 (mi_cmd_symbol_info_types): New function.
668 (mi_cmd_symbol_info_variables): New function.
669 * NEWS: Mention new commands.
670
5f512a7d
AB
6712019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
672
673 * symtab.c (symbol_to_info_string): New function, most content
674 moved from print_symbol_info, but updated to return a std::string.
675 (print_symbol_info): Update to use symbol_to_info_string and print
676 returned string.
677 * symtab.h (symbol_to_info_string): Declare new function.
678
470c0b1c
AB
6792019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
680
681 * python/python.c (gdbpy_rbreak): Convert to using
682 global_symbol_searcher.
683 * symtab.c (file_matches): Convert return type to bool, change
684 file list to std::vector, update header comment.
685 (search_symbols): Rename to...
686 (global_symbol_searcher::search): ...this and update now its
687 a member function of global_symbol_searcher. Take account of the
688 changes to file_matches.
689 (symtab_symbol_info): Convert to using global_symbol_searcher.
690 (rbreak_command): Likewise.
691 (search_module_symbols): Likewise.
692 * symtab.h (enum symbol_search): Update comment.
693 (search_symbols): Remove declaration.
694 (class global_symbol_searcher): New class.
695
57357d9d
TT
6962019-11-26 Tom Tromey <tromey@adacore.com>
697
698 * cp-support.c (_initialize_cp_support): Conditionally initialize
699 gdb_demangle_attempt_core_dump.
700
3ea16160
TT
7012019-11-26 Tom Tromey <tom@tromey.com>
702
703 * python/py-function.c (fnpy_init): Update.
704 * value.h (add_internal_function): Adjust declaration.
705 * value.c (function_destroyer): Remove.
706 (do_add_internal_function): Don't set destroyer or copy name.
707 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
708 Set name_allocated.
709 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
710 (cmdpy_init): Set name_allocated.
711 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
712 member.
713 (~cmd_list_element): Free "name" if needed.
714
1a6d41c6
TT
7152019-11-26 Tom Tromey <tom@tromey.com>
716
717 * value.h (add_internal_function): Add new overload. Move
718 documentation from value.h.
719 * value.c (do_add_internal_function): New function.
720 (add_internal_function): Use it. Add new overload.
721 (function_destroyer): Don't free doc.
722 * python/py-function.c (fnpy_init): Update.
723
8318f3c3
TT
7242019-11-26 Tom Tromey <tom@tromey.com>
725
726 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
727 (cmdpy_init): Set "doc_allocated".
728
4da8c3a8
TT
7292019-11-26 Tom Tromey <tom@tromey.com>
730
731 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
732 name of worker thread.
733 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
734 pthread_setname_np.
735 * configure, config.in: Rebuild.
736
971db5e2
TT
7372019-11-26 Tom Tromey <tom@tromey.com>
738
739 * python/python.c (class gdbpy_gil): New.
740 (struct gdbpy_event): Add constructor, destructor, operator().
741 (gdbpy_post_event): Use run_on_main_thread.
742 (gdbpy_initialize_events): Remove.
743 (do_start_initialization): Update.
744
22138db6
TT
7452019-11-26 Tom Tromey <tom@tromey.com>
746
747 * NEWS: Add entry.
748 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
749 commands. Call update_thread_pool_size.
750 (update_thread_pool_size, maintenance_set_worker_threads): New
751 functions.
752 (n_worker_threads): New global.
753
d55c9a68
TT
7542019-11-26 Christian Biesinger <cbiesinger@google.com>
755 Tom Tromey <tom@tromey.com>
756
757 * minsyms.c (minimal_symbol_reader::install): Use
758 parallel_for_each.
759 * gdbsupport/parallel-for.h: New file.
760 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
761
a0b57563
CB
7622019-11-26 Christian Biesinger <cbiesinger@google.com>
763 Tom Tromey <tom@tromey.com>
764
765 * gdbsupport/thread-pool.h: New file.
766 * gdbsupport/thread-pool.c: New file.
767 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
768 (HFILES_NO_SRCDIR): Add thread-pool.h.
769
3b3978bc
TT
7702019-11-26 Tom Tromey <tom@tromey.com>
771
772 * event-top.h (thread_local_segv_handler): Declare.
773 * event-top.c (thread_local_segv_handler): New global.
774 (install_handle_sigsegv, handle_sigsegv): New functions.
775 (async_init_signals): Install SIGSEGV handler.
776 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
777 thread-local.
778 (report_failed_demangle): New function.
779 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
780 handler-setting code, instead use segv_handler. Run warning code
781 on main thread.
782
9411c49e
TT
7832019-11-26 Tom Tromey <tom@tromey.com>
784
785 * run-on-main-thread.c: New file.
786 * run-on-main-thread.h: New file.
787 * unittests/main-thread-selftests.c: New file.
788 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
789 main-thread-selftests.c.
790 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
791 (COMMON_SFILES): Add run-on-main-thread.c.
792
c3efb965
TT
7932019-11-26 Tom Tromey <tom@tromey.com>
794
795 * main.c (setup_alternate_signal_stack): Remove.
796 (captured_main_1): Use gdb::alternate_signal_stack.
797 * gdbsupport/alt-stack.h: New file.
798
21987b9c
TT
7992019-11-26 Tom Tromey <tom@tromey.com>
800
801 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
802 Remove comment.
803 (save_original_signals_state, restore_original_signals_state): Use
804 gdb_sigmask.
805 * linux-nat.c (block_child_signals, restore_child_signals_mask)
806 (_initialize_linux_nat): Use gdb_sigmask.
807 * guile/guile.c (_initialize_guile): Use block_signals.
808 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
809 * gdbsupport/gdb-sigmask.h: New file.
810 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
811 * cp-support.c (gdb_demangle): Use gdb_sigmask.
812 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
813 pthread_sigmask.
814 * configure, config.in: Rebuild.
815 * gdbsupport/block-signals.h: New file.
816
5e030278
TT
8172019-11-26 Tom Tromey <tom@tromey.com>
818
819 * acinclude.m4: Include ax_pthread.m4.
820 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
821 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
822 (CLIBS): Use PTHREAD_LIBS.
823 (aclocal_m4_deps): Add ax_pthread.m4.
824 * config.in, configure: Rebuild.
825 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
826
5a79c107
TT
8272019-11-26 Tom Tromey <tom@tromey.com>
828
829 * symtab.h (struct minimal_symbol) <name_set>: New member.
830 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
831 Don't call symbol_set_names.
832 (minimal_symbol_reader::install): Call symbol_set_names.
833
aa369509
PW
8342019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
835
836 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
837 restore_active_ext_lang, as GIL is needed for (indirectly)
838 called PyOS_InterruptOccurred.
839
cadc9cb8
SM
8402019-11-26 Simon Marchi <simon.marchi@efficios.com>
841
842 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
843 definition.
844
d04afd58
SM
8452019-11-26 Simon Marchi <simon.marchi@efficios.com>
846
847 * remote-sim.c (simulator_command): Make static, remove
848 declaration.
849
dd694d77
SM
8502019-11-26 Simon Marchi <simon.marchi@efficios.com>
851
852 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
853 static.
854 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
855 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
856 (main): Likewise.
857 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
858 (main): Likewise.
859 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
860 (main): Likewise.
861 * unittests/basic_string_view/element_access/char/1.cc (test01):
862 Likewise.
863 (main): Likewise.
864 * unittests/basic_string_view/element_access/char/empty.cc (main):
865 Likewise.
866 * unittests/basic_string_view/element_access/char/front_back.cc
867 (test01): Likewise.
868 (main): Likewise.
869 * unittests/basic_string_view/inserters/char/2.cc (test05):
870 Likewise.
871 (main): Likewise.
872 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
873 (test01): Likewise.
874 (main): Likewise.
875 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
876 (test01): Likewise.
877 (main): Likewise.
878 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
879 Likewise.
880 * unittests/basic_string_view/operations/compare/char/1.cc
881 (test01): Likewise.
882 (main): Likewise.
883 * unittests/basic_string_view/operations/compare/char/13650.cc
884 (test01): Likewise.
885 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
886 Likewise.
887 (main): Likewise.
888 * unittests/basic_string_view/operations/data/char/1.cc (test01):
889 Likewise.
890 (main): Likewise.
891 * unittests/basic_string_view/operations/find/char/1.cc (test01):
892 Likewise.
893 (main): Likewise.
894 * unittests/basic_string_view/operations/find/char/2.cc (test02):
895 Likewise.
896 (main): Likewise.
897 * unittests/basic_string_view/operations/find/char/3.cc (test03):
898 Likewise.
899 (main): Likewise.
900 * unittests/basic_string_view/operations/find/char/4.cc (main):
901 Likewise.
902 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
903 Likewise.
904 (main): Likewise.
905 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
906 Likewise.
907 (main): Likewise.
908 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
909 Likewise.
910 (main): Likewise.
911 * unittests/basic_string_view/operations/substr/char/1.cc
912 (test01): Likewise.
913 (main): Likewise.
914 * unittests/basic_string_view/operators/char/2.cc (main):
915 Likewise.
916 * unittests/optional/assignment/1.cc (test): Likewise.
917 * unittests/optional/assignment/2.cc (test): Likewise.
918 * unittests/optional/assignment/3.cc (test): Likewise.
919 * unittests/optional/assignment/4.cc (test): Likewise.
920 * unittests/optional/assignment/5.cc (test): Likewise.
921 * unittests/optional/assignment/6.cc (test): Likewise.
922 * unittests/optional/assignment/7.cc (test): Likewise.
923 * unittests/optional/cons/copy.cc (test): Likewise.
924 * unittests/optional/cons/default.cc (test): Likewise.
925 * unittests/optional/cons/move.cc (test): Likewise.
926 * unittests/optional/cons/value.cc (test): Likewise.
927 * unittests/optional/in_place.cc (test): Likewise.
928 * unittests/optional/observers/1.cc (test): Likewise.
929 * unittests/optional/observers/2.cc (test): Likewise.
930
3b5c1d49
SM
9312019-11-26 Simon Marchi <simon.marchi@efficios.com>
932
933 * tui-win.h (tui_set_var_cmd): Remove.
934 * tui-win.c (tui_set_var_cmd): Make static.
935
adce99fe
SM
9362019-11-26 Simon Marchi <simon.marchi@efficios.com>
937
938 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
939 rbreak_command_wrapper): Remove.
940 * symtab.c (rbreak_command_wrapper): Remove.
941
fe3adccf
SM
9422019-11-26 Simon Marchi <simon.marchi@efficios.com>
943
944 * inferior.h (info_terminal_command): Remove declaration.
945 * inflow.c (info_terminal_command): Make static.
946
b926335f
SM
9472019-11-26 Simon Marchi <simon.marchi@efficios.com>
948
949 * inferior.c (exit_inferior_silent): Remove.
950
b62f6f54
SM
9512019-11-26 Simon Marchi <simon.marchi@efficios.com>
952
953 * dictionary.c (dict_empty, mdict_empty): Remove.
954 * dictionary.c (mdict_empty): Remove.
955
cb8c24b6
SM
9562019-11-26 Simon Marchi <simon.marchi@efficios.com>
957
958 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
959 (arc_insn_get_memory_offset): Likewise.
960 (arc_insn_dump): Likewise.
961 * cp-support.c (test_cp_symbol_name_matches): Likewise.
962 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
963 * dictionary.c (dict_iterator_next): Likewise.
964 (dict_iter_match_first): Likewise.
965 (dict_iter_match_next): Likewise.
966 * f-lang.c (evaluate_subexp_f): Likewise.
967 * hppa-tdep.c (hppa_read_pc): Likewise.
968 * i386-tdep.c (i386_floatformat_for_type): Likewise.
969 * parse.c (write_exp_elt_msym): Likewise.
970 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
971 * remote.c (remote_packet_size): Likewise.
972 (remote_notif_stop_parse): Likewise.
973 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
974 * s12z-tdep.c (s12z_disassemble_info): Likewise.
975 * source.c (prepare_path_for_appending): Likewise.
976 * sparc64-linux-tdep.c
977 (sparc64_linux_handle_segmentation_fault); Likewise.
978 * stack.c (frame_selection_by_function_completer): Likewise.
979
781597ff
SM
9802019-11-26 Simon Marchi <simon.marchi@efficios.com>
981
982 * completer.c (set_gdb_completion_word_break_characters):
983 Remove.
984
23baa4cc
SM
9852019-11-26 Simon Marchi <simon.marchi@efficios.com>
986
987 * dwarf-index-write.c: Include dwarf-index-write.h.
988 * mi/mi-interp.c: Include mi/mi-interp.h.
989
23767560
SM
9902019-11-26 Simon Marchi <simon.marchi@efficios.com>
991
992 * aarch32-tdep.c: Include aarch32-tdep.h.
993 * aarch32-tdep.h: Forward-declare struct target_desc.
994
6d91ce9a
CB
9952019-11-26 Christian Biesinger <cbiesinger@google.com>
996
997 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
998 strerror.
999 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1000 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1001
3cf2f237
TV
10022019-11-25 Tom de Vries <tdevries@suse.de>
1003
1004 * contrib/words.sh: Add -c option.
1005
5b89c67a
CB
10062019-11-25 Christian Biesinger <cbiesinger@google.com>
1007
1008 * solib.c (solib_find_1): Change int to bool.
1009 (exec_file_find): Change int to bool.
1010 (solib_find): Change int to bool.
1011 (solib_read_symbols): Change int to bool.
1012 (solib_used): Change int to bool.
1013 (solib_add): Change int to bool.
1014 (info_sharedlibrary_command): Change int to bool.
1015 (solib_contains_address_p): Change int to bool.
1016 (solib_keep_data_in_core): Change int to bool.
1017 (in_solib_dynsym_resolve_code): Change int to bool.
1018 (reload_shared_libraries_1): Change int to bool.
1019 (gdb_sysroot_changed): Change int to bool.
1020 * solib.h (solib_read_symbols): Change int to bool.
1021 (solib_contains_address_p): Change int to bool.
1022 (solib_keep_data_in_core): Change int to bool.
1023 (in_solib_dynsym_resolve_code): Change int to bool.
1024 (libpthread_name_p): Change int to bool.
1025
6cc8564b
LM
10262019-11-25 Luis Machado <luis.machado@linaro.org>
1027
1028 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1029 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1030 (remote_packet_max_chars): New static global.
1031 (show_remote_packet_max_chars): New function.
1032 (remote_target::putpkt_binary): Adjust to use new
1033 remote_packet_max_chars option.
1034 (remote_target::getpkt_or_notif_sane_1): Likewise.
1035 (_initialize_remote): Register new remote-packet-max-chars option.
1036
a7cdaa91
SM
10372019-11-24 Simon Marchi <simon.marchi@efficios.com>
1038
1039 * m68k-linux-nat.c: Include gdbarch.h.
1040
26abc753
TT
10412019-11-24 Tom Tromey <tom@tromey.com>
1042
1043 * symfile.c (read_symbols): Update.
1044 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1045 bool.
1046 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1047 (psym_lookup_symbol, psym_find_last_source_symtab)
1048 (psym_forget_cached_source_info, psym_print_stats)
1049 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1050 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1051 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1052 (psym_find_compunit_symtab_by_address)
1053 (maintenance_print_psymbols, maintenance_info_psymtabs)
1054 (maintenance_check_psymtabs): Update.
1055 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1056 bool.
1057
012fc909
TT
10582019-11-22 Tom Tromey <tom@tromey.com>
1059
1060 * observable.h: Update comments.
1061
c83d8d32
TT
10622019-11-22 Tom Tromey <tromey@adacore.com>
1063
1064 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1065 (print_ada_task_info): Don't try to fetch thread id if task is not
1066 alive.
1067
987012b8
CB
10682019-11-22 Christian Biesinger <cbiesinger@google.com>
1069
1070 * ada-exp.y: Update.
1071 * ada-lang.c (sort_choices): Update.
1072 (ada_print_symbol_signature): Update.
1073 (resolve_subexp): Update.
1074 (ada_parse_renaming): Update.
1075 (ada_read_renaming_var_value): Update.
1076 (lesseq_defined_than): Update.
1077 (remove_extra_symbols): Update.
1078 (remove_irrelevant_renamings): Update.
1079 (ada_add_block_symbols): Update.
1080 (ada_collect_symbol_completion_matches): Update.
1081 (ada_is_renaming_symbol): Update.
1082 (aggregate_assign_from_choices): Update.
1083 (ada_evaluate_subexp): Update.
1084 (ada_has_this_exception_support): Update.
1085 (ada_is_non_standard_exception_sym): Update.
1086 (ada_add_exceptions_from_frame): Update.
1087 (ada_add_global_exceptions): Update.
1088 (ada_print_subexp): Update.
1089 * ax-gdb.c (gen_var_ref): Update.
1090 (gen_maybe_namespace_elt): Update.
1091 (gen_expr_for_cast): Update.
1092 (gen_expr): Update.
1093 * block.h: Update.
1094 * blockframe.c (find_pc_partial_function): Update.
1095 * breakpoint.c (print_breakpoint_location): Update.
1096 (update_static_tracepoint): Update.
1097 * btrace.c (ftrace_print_function_name): Update.
1098 (ftrace_function_switched): Update.
1099 * buildsym.c (find_symbol_in_list): Update.
1100 * c-exp.y: Update.
1101 * c-typeprint.c (c_print_typedef): Update.
1102 (c_type_print_template_args): Update.
1103 * cli/cli-cmds.c (edit_command): Update.
1104 (list_command): Update.
1105 (print_sal_location): Update.
1106 * coffread.c (patch_opaque_types): Update.
1107 (process_coff_symbol): Update.
1108 (coff_read_enum_type): Update.
1109 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1110 (convert_one_symbol): Update.
1111 (hash_symname): Update.
1112 (eq_symname): Update.
1113 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1114 * compile/compile-cplus-types.c (debug_print_scope): Update.
1115 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1116 * compile/compile-object-load.c (get_out_value_type): Update.
1117 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1118 (search_symbol_list): Update.
1119 (cp_lookup_symbol_imports_or_template): Update.
1120 * cp-support.c (overload_list_add_symbol): Update.
1121 * ctfread.c (psymtab_to_symtab): Update.
1122 * dbxread.c (cp_set_block_scope): Update.
1123 * dictionary.c (iter_match_first_hashed): Update.
1124 (iter_match_next_hashed): Update.
1125 (insert_symbol_hashed): Update.
1126 (iter_match_next_linear): Update.
1127 * dictionary.h: Update.
1128 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1129 (locexpr_describe_location_piece): Update.
1130 (locexpr_describe_location_1): Update.
1131 (locexpr_generate_c_location): Update.
1132 (loclist_describe_location): Update.
1133 (loclist_generate_c_location): Update.
1134 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1135 (read_func_scope): Update.
1136 (process_enumeration_scope): Update.
1137 (new_symbol): Update.
1138 (dwarf2_const_value): Update.
1139 (dwarf2_symbol_mark_computed): Update.
1140 * eval.c (evaluate_funcall): Update.
1141 (evaluate_subexp_standard): Update.
1142 * expprint.c (print_subexp_standard): Update.
1143 (dump_subexp_body_standard): Update.
1144 * f-valprint.c (info_common_command_for_block): Update.
1145 * findvar.c (get_hosting_frame): Update.
1146 (default_read_var_value): Update.
1147 * go-lang.c (go_symbol_package_name): Update.
1148 * guile/scm-block.c (bkscm_print_block_smob): Update.
1149 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1150 (gdbscm_symbol_name): Update.
1151 (gdbscm_symbol_linkage_name): Update.
1152 (gdbscm_symbol_print_name): Update.
1153 * infcall.c (get_function_name): Update.
1154 * infcmd.c (jump_command): Update.
1155 (finish_command): Update.
1156 * infrun.c (insert_exception_resume_breakpoint): Update.
1157 * linespec.c (canonicalize_linespec): Update.
1158 (create_sals_line_offset): Update.
1159 (convert_linespec_to_sals): Update.
1160 (complete_label): Update.
1161 (find_label_symbols_in_block): Update.
1162 * m2-typeprint.c (m2_print_typedef): Update.
1163 * mdebugread.c (mdebug_reg_to_regnum): Update.
1164 (parse_symbol): Update.
1165 (mylookup_symbol): Update.
1166 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1167 (list_args_or_locals): Update.
1168 * objc-lang.c (compare_selectors): Update.
1169 (info_selectors_command): Update.
1170 (compare_classes): Update.
1171 (info_classes_command): Update.
1172 (find_imps): Update.
1173 * p-typeprint.c (pascal_print_typedef): Update.
1174 * printcmd.c (build_address_symbolic): Update.
1175 (info_address_command): Update.
1176 (print_variable_and_value): Update.
1177 * python/py-framefilter.c (extract_sym): Update.
1178 (py_print_single_arg): Update.
1179 * python/py-symbol.c (sympy_str): Update.
1180 (sympy_get_name): Update.
1181 (sympy_get_linkage_name): Update.
1182 * python/python.c (gdbpy_rbreak): Update.
1183 * record-btrace.c (btrace_get_bfun_name): Update.
1184 (btrace_call_history): Update.
1185 * rust-lang.c (rust_print_typedef): Update.
1186 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1187 * stabsread.c (stab_reg_to_regnum): Update.
1188 (define_symbol): Update.
1189 (read_enum_type): Update.
1190 (common_block_end): Update.
1191 (cleanup_undefined_types_1): Update.
1192 (scan_file_globals): Update.
1193 * stack.c (print_frame_arg): Update.
1194 (print_frame_args): Update.
1195 (find_frame_funname): Update.
1196 (info_frame_command_core): Update.
1197 (iterate_over_block_locals): Update.
1198 (print_block_frame_labels): Update.
1199 (do_print_variable_and_value): Update.
1200 (iterate_over_block_arg_vars): Update.
1201 (return_command): Update.
1202 * symmisc.c (dump_symtab_1): Update.
1203 (print_symbol): Update.
1204 * symtab.c (eq_symbol_entry): Update.
1205 (symbol_cache_dump): Update.
1206 (lookup_language_this): Update.
1207 (find_pc_sect_line): Update.
1208 (skip_prologue_sal): Update.
1209 (symbol_search::compare_search_syms): Update.
1210 (treg_matches_sym_type_name): Update.
1211 (search_symbols): Update.
1212 (print_symbol_info): Update.
1213 (rbreak_command): Update.
1214 (completion_list_add_symbol): Update.
1215 (find_gnu_ifunc): Update.
1216 (get_symbol_address): Update.
1217 (search_module_symbols): Update.
1218 (info_module_subcommand): Update.
1219 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1220 (SYMBOL_LINKAGE_NAME): Remove.
1221 (SYMBOL_DEMANGLED_NAME): Remove.
1222 (SYMBOL_PRINT_NAME): Remove.
1223 (SYMBOL_SEARCH_NAME): Remove.
1224 * tracepoint.c (set_traceframe_context): Update.
1225 (validate_actionline): Update.
1226 (collection_list::collect_symbol): Update.
1227 (encode_actions_1): Update.
1228 (info_scope_command): Update.
1229 (print_one_static_tracepoint_marker): Update.
1230 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1231 * valops.c (address_of_variable): Update.
1232 (find_overload_match): Update.
1233 (find_oload_champ): Update.
1234
c9d95fa3
CB
12352019-11-22 Christian Biesinger <cbiesinger@google.com>
1236
1237 * ada-lang.c (ada_lookup_simple_minsym): Update.
1238 (ada_collect_symbol_completion_matches): Update.
1239 * ada-tasks.c (read_atcb): Update.
1240 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1241 (amd64_windows_skip_trampoline_code): Update.
1242 * arm-tdep.c (skip_prologue_function): Update.
1243 (arm_skip_stack_protector): Update.
1244 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1245 (arm_wince_skip_main_prologue): Update.
1246 * ax-gdb.c (gen_expr): Update.
1247 * block.c (call_site_for_pc): Update.
1248 * blockframe.c (find_pc_partial_function): Update.
1249 * breakpoint.c (set_breakpoint_location_function): Update.
1250 * btrace.c (ftrace_print_function_name): Update.
1251 (ftrace_function_switched): Update.
1252 * c-valprint.c (print_unpacked_pointer): Update.
1253 * coffread.c (coff_symfile_read): Update.
1254 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1255 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1256 * dwarf-index-write.c (write_psymbols): Update.
1257 * dwarf2loc.c (call_site_to_target_addr): Update.
1258 (func_verify_no_selftailcall): Update.
1259 (tailcall_dump): Update.
1260 (call_site_find_chain_1): Update.
1261 (dwarf_expr_reg_to_entry_parameter): Update.
1262 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1263 * eval.c (evaluate_funcall): Update.
1264 (evaluate_subexp_standard): Update.
1265 (evaluate_subexp_for_sizeof): Update.
1266 * expprint.c (print_subexp_standard): Update.
1267 (dump_subexp_body_standard): Update.
1268 * frame.c (get_prev_frame_always_1): Update.
1269 * frv-tdep.c (frv_skip_main_prologue): Update.
1270 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1271 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1272 (gnuv3_get_typename_from_type_info): Update.
1273 (gnuv3_skip_trampoline): Update.
1274 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1275 * i386-tdep.c (i386_skip_main_prologue): Update.
1276 (i386_pe_skip_trampoline_code): Update.
1277 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1278 * infcall.c (get_function_name): Update.
1279 * linespec.c (minsym_found): Update.
1280 * linux-fork.c (info_checkpoints_command): Update.
1281 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1282 (m32c_m16c_pointer_to_address): Update.
1283 * maint.c (maintenance_translate_address): Update.
1284 * minsyms.c (add_minsym_to_hash_table): Update.
1285 (add_minsym_to_demangled_hash_table): Update.
1286 (lookup_minimal_symbol_mangled): Update.
1287 (lookup_minimal_symbol_demangled): Update.
1288 (lookup_minimal_symbol_linkage): Update.
1289 (lookup_minimal_symbol_text): Update.
1290 (lookup_minimal_symbol_by_pc_name): Update.
1291 (minimal_symbol_is_less_than): Update.
1292 (compact_minimal_symbols): Update.
1293 (build_minimal_symbol_hash_tables): Update.
1294 (find_solib_trampoline_target): Update.
1295 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1296 (mips_skip_pic_trampoline_code): Update.
1297 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1298 * objc-lang.c (info_selectors_command): Update.
1299 (info_classes_command): Update.
1300 (find_methods): Update.
1301 (find_imps): Update.
1302 * p-valprint.c (pascal_val_print): Update.
1303 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1304 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1305 * printcmd.c (build_address_symbolic): Update.
1306 (info_symbol_command): Update.
1307 * psymtab.c (psymbol_name_matches): Update.
1308 (match_partial_symbol): Update.
1309 (lookup_partial_symbol): Update.
1310 (print_partial_symbols): Update.
1311 (sort_pst_symbols): Update.
1312 (maintenance_check_psymtabs): Update.
1313 * python/py-framefilter.c (py_print_frame): Update.
1314 * python/python.c (gdbpy_rbreak): Update.
1315 * record-btrace.c (btrace_get_bfun_name): Update.
1316 (btrace_call_history): Update.
1317 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1318 (rs6000_skip_trampoline_code): Update.
1319 * sol-thread.c (info_cb): Update.
1320 * stabsread.c (scan_file_globals): Update.
1321 * stack.c (find_frame_funname): Update.
1322 (info_frame_command_core): Update.
1323 * symmisc.c (dump_msymbols): Update.
1324 * symtab.c (symbol_natural_name): Rename to..,
1325 (general_symbol_info::natural_name): ...this.
1326 (symbol_demangled_name): Rename to...
1327 (general_symbol_info::demangled_name): ...this.
1328 (symbol_search_name): Rename to...
1329 (general_symbol_info::search_name): ...this.
1330 (symbol_matches_search_name): Update.
1331 (find_pc_sect_line): Update.
1332 (skip_prologue_sal): Update.
1333 (search_symbols): Update.
1334 (print_msymbol_info): Update.
1335 (rbreak_command): Update.
1336 (completion_list_add_msymbol): Update.
1337 (completion_list_objc_symbol): Update.
1338 (get_msymbol_address): Update.
1339 * symtab.h (struct general_symbol_info): Add member functions
1340 natural_name (), linkage_name (), print_name (), demangled_name (),
1341 and search_name ().
1342 (SYMBOL_NATURAL_NAME): Update.
1343 (symbol_natural_name): Move to a member function on general_symbol_info.
1344 (SYMBOL_DEMANGLED_NAME): Update.
1345 (symbol_demangled_name): Move to a member function on
1346 general_symbol_info.
1347 (SYMBOL_SEARCH_NAME): Update.
1348 (symbol_search_name): Move to a member function on general_symbol_info.
1349 (MSYMBOL_NATURAL_NAME): Remove.
1350 (MSYMBOL_LINKAGE_NAME): Remove.
1351 (MSYMBOL_PRINT_NAME): Remove.
1352 (MSYMBOL_DEMANGLED_NAME): Remove.
1353 (MSYMBOL_SEARCH_NAME): Remove.
1354 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1355
f8bab2d6
CB
13562019-11-22 Christian Biesinger <cbiesinger@google.com>
1357
1358 * symtab.c (create_demangled_names_hash): Use per_bfd->
1359 minimal_symbol_count for computing the initial size, if greater
1360 than our default size.
1361
85e7588d
TV
13622019-11-22 Tom de Vries <tdevries@suse.de>
1363
1364 * contrib/words.sh: Improve words extraction.
1365
f6180073
TV
13662019-11-22 Tom de Vries <tdevries@suse.de>
1367
1368 * contrib/words.sh: Combine sed invocations.
1369
f10ffa41
CB
13702019-11-21 Christian Biesinger <cbiesinger@google.com>
1371
1372 * Makefile.in: Update.
1373 * demangle.c: Rename to...
1374 * gdb-demangle.c: ..this.
1375 (is_cplus_marker): Change return type to bool.
1376 (_initialize_demangler): Rename to...
1377 (_initialize_gdb_demangle): ...this.
1378 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1379 * symtab.h (demangle): Remove declaration; instead include
1380 gdb-demangle.h.
1381
6ba18521
TT
13822019-11-21 Tom Tromey <tromey@adacore.com>
1383
1384 * gdbsupport/format.c (format_pieces): Parse %I64d.
1385 * unittests/format_pieces-selftests.c (test_windows_formats): New
1386 function.
1387 (run_tests): Call it.
1388
34877895
PJ
13892019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1390
1391 Byte reverse display of variables with DW_END_big, DW_END_little
1392 (DW_AT_endianity) dwarf attributes if different than the native
1393 byte order.
1394 * ada-lang.c (ada_value_binop):
1395 Use type_byte_order instead of gdbarch_byte_order.
1396 * ada-valprint.c (printstr):
1397 (ada_val_print_string):
1398 * ada-lang.c (value_pointer):
1399 (ada_value_binop):
1400 Use type_byte_order instead of gdbarch_byte_order.
1401 * c-lang.c (c_get_string):
1402 Use type_byte_order instead of gdbarch_byte_order.
1403 * c-valprint.c (c_val_print_array):
1404 Use type_byte_order instead of gdbarch_byte_order.
1405 * cp-valprint.c (cp_print_class_member):
1406 Use type_byte_order instead of gdbarch_byte_order.
1407 * dwarf2loc.c (rw_pieced_value):
1408 Use type_byte_order instead of gdbarch_byte_order.
1409 * dwarf2read.c (read_base_type): Handle DW_END_big,
1410 DW_END_little
1411 * f-lang.c (f_get_encoding):
1412 Use type_byte_order instead of gdbarch_byte_order.
1413 * findvar.c (default_read_var_value):
1414 Use type_byte_order instead of gdbarch_byte_order.
1415 * gdbtypes.c (check_types_equal):
1416 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1417 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1418 and TYPE_ENDIANITY_LITTLE if set.
1419 (type_byte_order): new function.
1420 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1421 (struct main_type) <flag_endianity_not_default>:
1422 New field.
1423 (type_byte_order): New function.
1424 * infcmd.c (default_print_one_register_info):
1425 Use type_byte_order instead of gdbarch_byte_order.
1426 * p-lang.c (pascal_printstr):
1427 Use type_byte_order instead of gdbarch_byte_order.
1428 * p-valprint.c (pascal_val_print):
1429 Use type_byte_order instead of gdbarch_byte_order.
1430 * printcmd.c (print_scalar_formatted):
1431 Use type_byte_order instead of gdbarch_byte_order.
1432 * solib-darwin.c (darwin_current_sos):
1433 Use type_byte_order instead of gdbarch_byte_order.
1434 * solib-svr4.c (solib_svr4_r_ldsomap):
1435 Use type_byte_order instead of gdbarch_byte_order.
1436 * stap-probe.c (stap_modify_semaphore):
1437 Use type_byte_order instead of gdbarch_byte_order.
1438 * target-float.c (target_float_same_format_p):
1439 Use type_byte_order instead of gdbarch_byte_order.
1440 * valarith.c (scalar_binop):
1441 (value_bit_index):
1442 Use type_byte_order instead of gdbarch_byte_order.
1443 * valops.c (value_cast):
1444 Use type_byte_order instead of gdbarch_byte_order.
1445 * valprint.c (generic_emit_char):
1446 (generic_printstr):
1447 (val_print_string):
1448 Use type_byte_order instead of gdbarch_byte_order.
1449 * value.c (unpack_long):
1450 (unpack_bits_as_long):
1451 (unpack_value_bitfield):
1452 (modify_field):
1453 (pack_long):
1454 (pack_unsigned_long):
1455 Use type_byte_order instead of gdbarch_byte_order.
1456 * findvar.c (unsigned_pointer_to_address):
1457 (signed_pointer_to_address):
1458 (unsigned_address_to_pointer):
1459 (address_to_signed_pointer):
1460 (default_read_var_value):
1461 (default_value_from_register):
1462 Use type_byte_order instead of gdbarch_byte_order.
1463 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1464 Use type_byte_order instead of gdbarch_byte_order.
1465 * riscv-tdep.c (riscv_print_one_register_info):
1466 Use type_byte_order instead of gdbarch_byte_order.
1467
87fb00ea
SM
14682019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1469
1470 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1471 (current_ui_gdb_stdin_ptr): Likewise.
1472 (current_ui_gdb_stderr_ptr): Likewise.
1473 (current_ui_gdb_stdlog_ptr): Likewise.
1474 (current_ui_current_uiout_ptr): Likewise.
1475 (gen_ret_current_ui_field_ptr): Remove.
1476
65d1cd5f
TV
14772019-11-21 Tom de Vries <tdevries@suse.de>
1478
1479 PR gdb/24956
1480 * cli/cli-script.c (execute_control_command): Only switch to
1481 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1482
9f6ad286
TT
14832019-11-19 Tom Tromey <tom@tromey.com>
1484
1485 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1486 Now static. Change type of "name".
1487 (tui_set_win_height_command): Don't copy "arg".
1488 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1489 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1490
435d3d88
AT
14912019-11-19 Ali Tamur <tamur@google.com>
1492
1493 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1494 "if (attr != nullptr)".
1495 (dwarf2_find_base_address): Likewise.
1496 (dwarf2_build_include_psymtabs): Likewise.
1497 (read_cutu_die_from_dwo): Likewise.
1498 (read_func_scope): Likewise.
1499 (read_call_site_scope): Likewise.
1500 (dwarf2_get_pc_bounds): Likewise.
1501 (dwarf2_record_block_ranges): Likewise.
1502 (dwarf2_add_field): Likewise.
1503 (dwarf2_add_member_fn): Likewise.
1504 (read_structure_type): Likewise.
1505 (read_enumeration_type): Likewise.
1506 (read_array_type): Likewise.
1507 (read_array_order): Likewise.
1508 (read_set_type): Likewise.
1509 (read_common_block): Likewise.
1510 (read_tag_reference_type): Likewise.
1511 (read_tag_string_type): Likewise.
1512 (read_subroutine_type): Likewise.
1513 (read_base_type): Likewise.
1514 (read_subrange_type): Likewise.
1515 (new_symbol): Likewise.
1516 (prepare_one_comp_unit): Likewise.
1517
c9739b6a
TT
15182019-11-19 Tom Tromey <tromey@adacore.com>
1519
1520 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1521 result in error when DebugActiveProcess fails.
1522
494409bb
SDJ
15232019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1524 Pedro Alves <palves@redhat.com>
1525
1526 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1527 * target.c (target_stack::push): Call 'unpush' if there's a
1528 target on top of the stack.
1529
2e953aca
PW
15302019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1531
1532 * python/py-block.c (blpy_dealloc): Call tp_free.
1533 (blpy_block_syms_dealloc): Likewise.
1534 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1535 * python/py-inferior.c (infpy_dealloc): Likewise.
1536 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1537 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1538 * python/py-symbol.c (sympy_dealloc): Likewise.
1539 * python/py-symtab.c (stpy_dealloc): Likewise.
1540 * python/py-type.c (typy_iterator_dealloc): Likewise.
1541
6edc43ec
CB
15422019-11-18 Christian Biesinger <cbiesinger@google.com>
1543
1544 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1545 constructor instead of using a class initializer.
1546
cd850b40
CB
15472019-11-15 Christian Biesinger <cbiesinger@google.com>
1548
1549 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1550 * configure: Regenerate.
1551 * configure.ac: Don't source common.host.
1552 * gdbsupport/common.host: Remove.
1553 * gdbsupport/mingw-strerror.c: Remove.
1554 * gdbsupport/posix-strerror.c: Rename to...
1555 * gdbsupport/safe-strerror.c: ...this.
1556
53fea9c7
CB
15572019-11-15 Christian Biesinger <cbiesinger@google.com>
1558
1559 * maint.c (scoped_command_stats::print_time): Use localtime_r
1560 instead of localtime (provided through gnulib if necessary).
1561 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1562 of ctime.
1563
f8e27d88
CB
15642019-11-15 Christian Biesinger <cbiesinger@google.com>
1565
1566 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1567 avoid compile errors.
1568
5abebf3c
CB
15692019-11-15 Christian Biesinger <cbiesinger@google.com>
1570
1571 * config.in: Regenerate.
1572 * configure: Regenerate.
1573 * gdbsupport/common.m4: No longer check for strerror_r.
1574 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1575 POSIX version of strerror_r, now that gnulib provides it if
1576 necessary.
1577
9a351667
CB
15782019-11-14 Christian Biesinger <cbiesinger@google.com>
1579
1580 * README (`configure' options): Update.
1581
55708e99
TT
15822019-11-14 Tom Tromey <tromey@adacore.com>
1583
1584 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1585 expected type for the RHS if the LHS is a convenience variable.
1586
4b09bb2e
SM
15872019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1588
1589 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1590 Provide explicit default and copy constructor.
1591
bd454f8b
PW
15922019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1593
1594 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1595 only call Py_INCREF (newbp) in the bppy_pending_object case.
1596
d1aa3cf0
TT
15972019-11-13 Tom Tromey <tromey@adacore.com>
1598
1599 PR build/25182:
1600 * psympriv.h (partial_symbol): Remove static assert.
1601 * symtab.h (general_symbol_info, symbol): Remove static assert.
1602
e06f3d6e
AB
16032019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1604
1605 * gdbsupport/format.c (format_pieces::format_pieces): Support
1606 printf 'z' size modifier.
1607 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1608 * printcmd.c (ui_printf): Handle size_t_arg.
1609 * ui-out.c (ui_out::vmessage): Likewise.
1610 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1611 function.
1612 (run_tests): Call test_format_int_sizes.
1613
468c0cbb
CB
16142019-11-12 Christian Biesinger <cbiesinger@google.com>
1615
1616 * ada-exp.y (write_ambiguous_var): Update.
1617 * buildsym.c (add_symbol_to_list): Update.
1618 * dwarf2read.c (read_variable): Update.
1619 (new_symbol): Update.
1620 * jit.c (finalize_symtab): Update.
1621 * language.c (language_alloc_type_symbol): Update.
1622 * symtab.c (fixup_symbol_section): Update.
1623 (initialize_objfile_symbol_1): Move code to...
1624 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1625 (allocate_symbol): Update.
1626 (allocate_template_symbol): Update.
1627 (get_symbol_address): Update.
1628 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1629 of having as a field, and add a constructor.
1630 (SYMBOL_VALUE): Update.
1631 (SYMBOL_VALUE_ADDRESS): Update.
1632 (SET_SYMBOL_VALUE_ADDRESS): Update.
1633 (SYMBOL_VALUE_BYTES): Update.
1634 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1635 (SYMBOL_BLOCK_VALUE): Update.
1636 (SYMBOL_VALUE_CHAIN): Update.
1637 (SYMBOL_LANGUAGE): Update.
1638 (SYMBOL_SECTION): Update.
1639 (SYMBOL_OBJ_SECTION): Update.
1640 (SYMBOL_SET_LANGUAGE): Update.
1641 (SYMBOL_SET_LINKAGE_NAME): Update.
1642 (SYMBOL_SET_NAMES): Update.
1643 (SYMBOL_NATURAL_NAME): Update.
1644 (SYMBOL_LINKAGE_NAME): Update.
1645 (SYMBOL_DEMANGLED_NAME): Update.
1646 (SYMBOL_SEARCH_NAME): Update.
1647 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1648 (struct symbol): Update.
1649 (struct template_symbol): Update.
1650 (struct rust_vtable_symbol): Update.
1651 * xcoffread.c (SYMBOL_DUP): Update.
1652
ed2c82c3
TT
16532019-11-12 Tom Tromey <tom@tromey.com>
1654
1655 * tui/tui-layout.c (show_layout): Set current_layout.
1656 (show_source_disasm_command, show_data)
1657 (show_source_or_disasm_and_command): Don't set current_layout.
1658
d9fcefd5
TT
16592019-11-12 Tom Tromey <tom@tromey.com>
1660
1661 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1662
45e42163
TT
16632019-11-12 Tom Tromey <tom@tromey.com>
1664
1665 * tui/tui-win.c (resize_message): New global.
1666 (show_tui_resize_message): New function.
1667 (tui_async_resize_screen): Print message if requested.
1668 (_initialize_tui_win): Add tui-resize-message setting.
1669 * NEWS: Add entry for new commands.
1670
c86d74cc
TT
16712019-11-11 Tom Tromey <tom@tromey.com>
1672
1673 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1674 functions.
1675
7b7b9424
CB
16762019-11-11 Christian Biesinger <cbiesinger@google.com>
1677
1678 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1679
086baaf1
AB
16802019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1681
1682 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1683 function.
1684 * python/python-internal.h (gdbpy_lookup_static_symbols):
1685 Declare new function.
1686 * python/python.c (python_GdbMethods): Add
1687 gdb.lookup_static_symbols method.
1688 * NEWS: Mention gdb.lookup_static_symbols.
1689
09ff83af
AB
16902019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1691
1692 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1693 static block of current object file first. Also fix typo in
1694 header comment.
1695
eb2dd8df
AB
16962019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1697
1698 * stack.c (set_last_displayed_sal): Delete.
1699 (last_displayed_sal_valid): Delete.
1700 (last_displayed_pspace): Delete.
1701 (last_displayed_addr): Delete.
1702 (last_displayed_symtab): Delete.
1703 (last_displayed_line): Delete.
1704 (class last_displayed_symtab_info_type): New.
1705 (last_displayed_symtab_info): New static global variable.
1706 (print_frame_info): Call methods on last_displayed_symtab_info.
1707 (clear_last_displayed_sal): Update header comment, and make use of
1708 last_displayed_symtab_info.
1709 (last_displayed_sal_is_valid): Likewise.
1710 (get_last_displayed_pspace): Likewise.
1711 (get_last_displayed_addr): Likewise.
1712 (get_last_displayed_symtab): Likewise.
1713 (get_last_displayed_line): Likewise.
1714 (get_last_displayed_sal): Likewise.
1715 * stack.h (clear_last_displayed_sal): Update header comment.
1716 (last_displayed_sal_is_valid): Likewise.
1717 (get_last_displayed_pspace): Likewise.
1718 (get_last_displayed_addr): Likewise.
1719 (get_last_displayed_symtab): Likewise.
1720 (get_last_displayed_line): Likewise.
1721 (get_last_displayed_sal): Likewise.
1722
62137775
AB
17232019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1724
1725 * stack.c (frame_show_address): Convert return type to bool.
1726 * stack.h (frame_show_address): Likewise, and update header
1727 comment.
1728
cf57ad6d
AB
17292019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1730
1731 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1732 * unittests/vec-utils-selftests.c: New file.
1733 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1734
0b026263
TT
17352019-11-10 Tom Tromey <tom@tromey.com>
1736
1737 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1738 (tui_highlight_win): Likewise.
1739 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1740 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1741 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1742 Don't set can_highlight.
1743
b049ce2d
TT
17442019-11-10 Tom Tromey <tom@tromey.com>
1745
1746 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1747 Remove unused declaration.
1748
992a7040
TT
17492019-11-08 Tom Tromey <tromey@adacore.com>
1750
1751 * top.c (read_command_file): Update.
1752 (command_line_input): Make return type const.
1753 * python/py-gdb-readline.c: Update.
1754 * linespec.c (decode_line_2): Update.
1755 * defs.h (command_line_input): Make return type const.
1756 * cli/cli-script.c (read_next_line): Make return type const.
1757 * ada-lang.c (get_selections): Update.
1758
ca3a04f6
CB
17592019-11-06 Christian Biesinger <cbiesinger@google.com>
1760
1761 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1762 * mi/mi-main.c (output_cores): Likewise.
1763 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1764 (linux_xfer_osdata_modules): Likewise.
1765 * remote.c (register_remote_support_xml): Likewise.
1766 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1767 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1768
e0eac551
TT
17692019-11-06 Tom Tromey <tom@tromey.com>
1770
1771 * tui/tui-interp.c: Don't include readline.h.
1772 * tui/tui-hooks.c: Don't include readline.h.
1773 * symmisc.c: Include tilde.h, not readline.h.
1774 * symfile.c: Include tilde.h, not readline.h.
1775 * source.c: Include tilde.h, not readline.h.
1776 * solib.c: Include tilde.h, not readline.h.
1777 * psymtab.c: Include tilde.h, not readline.h.
1778 * exec.c: Include tilde.h, not readline.h.
1779 * corelow.c: Include tilde.h, not readline.h.
1780 * cli/cli-dump.c: Include tilde.h, not readline.h.
1781 * cli/cli-cmds.c: Don't include readline.h.
1782
825165c5
TT
17832019-11-05 Tom Tromey <tom@tromey.com>
1784
1785 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1786 (tui_disassemble): Set addr_size.
1787 (tui_disasm_window::set_contents): Use addr_size.
1788
91ae903f
TT
17892019-11-05 Tom Tromey <tom@tromey.com>
1790
1791 * rust-lang.c (rust_language_defn): Update.
1792 * python/py-value.c (valpy_string): Call c_get_string.
1793 * p-lang.c (pascal_language_defn): Update.
1794 * opencl-lang.c (opencl_language_defn): Update.
1795 * objc-lang.c (objc_language_defn): Update.
1796 * m2-lang.c (m2_language_defn): Update.
1797 * language.c (unknown_language_defn, auto_language_defn): Update.
1798 (default_get_string): Remove.
1799 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1800 * go-lang.c (go_language_defn): Update.
1801 * f-lang.c (f_language_defn): Update.
1802 * d-lang.c (d_language_defn): Update.
1803 * c-lang.c (c_language_defn, cplus_language_defn)
1804 (asm_language_defn, minimal_language_defn): Update.
1805 * ada-lang.c (ada_language_defn): Update.
1806 * language.h (struct language_defn) <la_get_string>: Remove.
1807 (LA_GET_STRING): Remove.
1808 (default_get_string): Don't declare.
1809
1df2f9ef
TT
18102019-11-05 Tom Tromey <tom@tromey.com>
1811
1812 * tui/tui-source.h (struct tui_source_window): Inline
1813 constructor. Remove destructor.
1814 <style_changed, m_observable>: Move to superclass.
1815 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1816 (struct tui_source_window_base): Move private members to end.
1817 <style_changed, m_observable>: Move from tui_source_window.
1818 * tui/tui-winsource.c (tui_copy_source_line): Move from
1819 tui-source.c. Rename from copy_source_line. Add special handling
1820 for negative line number.
1821 (tui_source_window_base::style_changed): Move from
1822 tui_source_window.
1823 (tui_source_window_base): Register observer.
1824 (~tui_source_window_base): New.
1825 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1826 rename.
1827 (tui_source_window::set_contents): Use tui_copy_source_line.
1828 (tui_source_window::tui_source_window): Move to tui-source.h.
1829 (tui_source_window::~tui_source_window): Remove.
1830 (tui_source_window::style_changed): Move to superclass.
1831 * tui/tui-disasm.c (tui_disassemble): Create string file with
1832 styling, when possible. Add "addr_size" parameter.
1833 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1834 Don't compute maximum size.
1835 (len_without_escapes): New function
1836
5d051055
TT
18372019-11-05 Tom Tromey <tom@tromey.com>
1838
1839 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1840 std::string.
1841 * tui/tui-winsource.c (tui_show_source_line): Update.
1842 * tui/tui-source.c (tui_source_window::set_contents): Update.
1843 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1844
ade7beea
CB
18452019-11-05 Christian Biesinger <cbiesinger@google.com>
1846
1847 * symtab.h (gdb_static_assert): Put && operator at the beginning
1848 of the line instead of the end.
1849
3573abe1
CB
18502019-11-04 Christian Biesinger <cbiesinger@google.com>
1851
1852 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1853 and sizeof (symbol).
1854 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1855
dae8b3eb
RO
18562019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1857
1858 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1859 * configure.host: Mark *-*-solaris2.10* obsolete.
1860 * configure.tgt: Mark Solaris < 11 obsolete.
1861 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1862 Update target triplet.
1863
5df96a4e
TT
18642019-11-01 Tom Tromey <tromey@adacore.com>
1865
1866 * utils.c (print_sys_errmsg): Simplify.
1867
b7481649
TT
18682019-11-01 Tom Tromey <tromey@adacore.com>
1869
1870 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1871
e48f6033
CB
18722019-11-01 Christian Biesinger <cbiesinger@google.com>
1873
1874 * configure: Regenerate.
1875 * configure.ac: Remove check for strerror_r.
1876 * gdbsupport/common.m4: Check for strerror_r.
1877
bd5766ec
LM
18782019-11-01 Luis Machado <luis.machado@linaro.org>
1879
1880 PR gdb/25124
1881
1882 * arm-tdep.c (arm_per_objfile): Rename to ...
1883 (arm_per_bfd): ... this.
1884 (arm_objfile_data_key): Rename to ...
1885 (arm_bfd_data_key): ... this.
1886 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1887 data.
1888 (arm_record_special_symbol): Likewise.
1889
e1709896
AB
18902019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1891
1892 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1893 end.
1894 * c-typeprint.c (c_print_typedef): Likewise.
1895 * f-typeprint.c (f_print_typedef): Likewise.
1896 * m2-typeprint.c (m2_print_typedef): Likewise.
1897 * p-typeprint.c (pascal_print_typedef): Likewise.
1898 * rust-lang.c (rust_print_typedef): Likewise.
1899 * symtab.c (print_symbol_info): Print a newline after calling
1900 typedef_print.
1901
165f8965
AB
19022019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1903
1904 * symtab.c (info_module_cmdlist): New variable.
1905 (info_module_command): New function.
1906 (search_module_symbols): New function.
1907 (info_module_subcommand): New function.
1908 (struct info_modules_var_func_options): New struct.
1909 (info_modules_var_func_options_defs): New variable.
1910 (make_info_modules_var_func_options_def_group): New function.
1911 (info_module_functions_command): New function.
1912 (info_module_variables_command): New function.
1913 (info_module_var_func_command_completer): New function.
1914 (_initialize_symtab): Register new 'info module functions' and
1915 'info module variables' commands.
1916 * symtab.h (typedef symbol_search_in_module): New typedef.
1917 (search_module_symbols): Declare new function.
1918 * NEWS: Mention new commands.
1919
59c35742
AB
19202019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1921
1922 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1923 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1924 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1925 MODULES_DOMAIN.
1926 (scan_partial_symbols): Only create partial module symbols for non
1927 declarations.
1928 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1929 and MODULES_DOMAIN.
1930 * symtab.c (search_domain_name): Likewise.
1931 (search_symbols): Likewise.
1932 (print_symbol_info): Likewise.
1933 (symtab_symbol_info): Likewise.
1934 (info_modules_command): New function.
1935 (_initialize_symtab): Register 'info modules' command.
1936 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1937 * NEWS: Mention new 'info modules' command.
1938
aed61d02
PW
19392019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1940
1941 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1942 and $_gdb_maint_setting_str.
1943
9ad9b77d
PW
19442019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1945
1946 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1947 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1948 (str_value_from_setting, gdb_setting_str_internal_fn)
1949 (gdb_maint_setting_str_internal_fn): New functions.
1950 (_initialize_cli_cmds): Define the new convenience functions.
1951 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1952 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1953
8d6efaa2
CB
19542019-10-31 Christian Biesinger <cbiesinger@google.com>
1955
1956 * agent.c (set_can_use_agent): When the setting is turned on,
1957 look up agent symbols if we don't have them yet.
1958 (agent_new_objfile): Don't look up agent symbols when the agent
1959 setting is off.
1960
33cb1647
CB
19612019-10-31 Christian Biesinger <cbiesinger@google.com>
1962
1963 * config.in: Regenerate.
1964
b231e86a
CB
19652019-10-31 Christian Biesinger <cbiesinger@google.com>
1966
1967 * configure: Regenerate.
1968 * configure.ac: Check for strerror_r.
1969 * gdbsupport/common-utils.h (safe_strerror): Change return value
1970 to const char * and document that this function is now threadsafe.
1971 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1972 thread_local and call strerror_r, if available.
1973 * utils.c (perror_string): Update.
1974 (print_sys_errmsg): Update.
1975
a2726d4f
LM
19762019-10-31 Luis Machado <luis.machado@linaro.org>
1977
1978 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1979 objfile_key.
1980 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1981 objfile to fetch per-bfd data.
1982 (arm_find_exidx_entry): Likewise.
1983
75cafaa6
CB
19842019-10-31 Christian Biesinger <cbiesinger@google.com>
1985
1986 * gdbsupport/agent.c (debug_agent): Change type to bool.
1987 (use_agent): Likewise.
1988 (all_agent_symbols_look_up): Likewise.
1989 (agent_loaded_p): Change return value to bool.
1990 (agent_look_up_symbols): Update.
1991 (agent_capability_check): Change return value to bool.
1992 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1993 (debug_agent): Change type to bool.
1994 (use_agent): Likewise.
1995 (agent_capability_check): Change return value to bool.
1996
808590ec
CB
19972019-10-30 Christian Biesinger <cbiesinger@google.com>
1998
1999 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2000 (build_minimal_symbol_hash_tables): Code to clear the table moved
2001 to clear_minimal_symbol_hash_tables.
2002 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2003 when needed.
2004
f18ad8a1
SM
20052019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2006
2007 * infcmd.c: Remove includes.
2008 * infrun.c: Remove includes.
2009
de93309a
SM
20102019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2011
2012 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2013 (grow_vect): Remove declaration.
2014 (ada_type_of_array): Remove declaration.
2015 (ada_update_initial_language): Remove declaration.
2016 (ada_fold_name): Remove declaration.
2017 (ada_fill_in_ada_prototype): Remove declaration.
2018 (user_select_syms): Remove declaration.
2019 (get_selections): Remove declaration.
2020 (ada_tag_type): Remove declaration.
2021 (ada_value_tag): Remove declaration.
2022 (ada_is_others_clause): Remove declaration.
2023 (ada_in_variant): Remove declaration.
2024 (ada_value_struct_elt): Remove declaration.
2025 (ada_attribute_name): Remove declaration.
2026 (ada_system_address_type): Remove declaration.
2027 * ada-lang.c (ada_watch_location_expression): Make static.
2028 (GROW_VECT): Move here from ada-lang.h.
2029 (grow_vect): Make static.
2030 (ada_update_initial_language): Make static.
2031 (ada_fold_name): Make static.
2032 (ada_type_of_array): Make static.
2033 (encoded_ordered_before): Move up.
2034 (sort_choices): Move up.
2035 (print_signatures): Move up.
2036 (ada_print_symbol_signature): Move up.
2037 (get_selections): Move up and make static.
2038 (user_select_syms): Move up and make static.
2039 (ada_value_struct_elt): Move up and make static.
2040 (ada_tag_type): Make static.
2041 (ada_value_tag): Make static.
2042 (ada_is_others_clause): Make static.
2043 (ada_in_variant): Make static.
2044 (ada_attribute_name): Make static.
2045
cdc46a9f
SM
20462019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2047
2048 * ada-lang.c: Remove includes.
2049 * ada-typeprint.c: Remove includes.
2050 * ada-valprint.c: Remove includes.
2051
90421c56
SM
20522019-10-29 Simon Marchi <simon.marchi@efficios.com>
2053
2054 * addrmap.c: Add static assertions of type size, moved from
2055 _initialize_addrmap.
2056 (_initialize_addrmap): Remove.
2057
31edb802
CB
20582019-10-29 Christian Biesinger <cbiesinger@google.com>
2059
2060 * coffread.c (record_minimal_symbol): Update.
2061 (process_coff_symbol): Update.
2062 * dbxread.c (read_dbx_symtab): Update.
2063 * dwarf2read.c (add_partial_symbol): Update.
2064 (fixup_go_packaging): Update.
2065 (load_partial_dies): Update.
2066 (new_symbol): Update.
2067 * elfread.c (record_minimal_symbol): Change signature to use
2068 gdb::string_view instead of name+len.
2069 (elf_symtab_read): Update.
2070 (elf_rel_plt_read): Update.
2071 * mdebugread.c (parse_partial_symbols): Update.
2072 (handle_psymbol_enumerators): Update.
2073 (new_symbol): Update.
2074 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2075 to use gdb::string_view instead of name+len.
2076 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2077 * psympriv.h (add_psymbol_to_list): Likewise.
2078 * psymtab.c (add_psymbol_to_bcache): Likewise.
2079 (add_psymbol_to_list): Likewise.
2080 * stabsread.c (define_symbol): Update.
2081 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2082 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2083 (symbol_set_names): Likewise.
2084 * xcoffread.c (scan_xcoff_symtab): Update.
2085
0c921b21
CB
20862019-10-29 Christian Biesinger <cbiesinger@google.com>
2087
2088 * symtab.h (symbol_set_names): Document that copy_name must be
2089 set to true for non-nullterminated strings.
2090 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2091 linkage_name if the entry was not found and we need to demangle.
2092
35e65c49
CB
20932019-10-29 Christian Biesinger <cbiesinger@google.com>
2094
2095 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2096 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2097 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2098 * gdbsupport/gdb_binary_search.h: New file.
2099
ed2a2229
CB
21002019-10-29 Christian Biesinger <cbiesinger@google.com>
2101
2102 * NEWS: Mention new --with-system-gdbinit-dir option.
2103 * config.in: Regenerate.
2104 * configure: Regenerate.
2105 * configure.ac: Add new option --with-system-gdbinit-dir.
2106 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2107 for a ".gdb" suffix.
2108 * main.c (get_init_files): Change system_gdbinit argument to
2109 a vector and return the files in SYSTEM_GDBINIT_DIR in
2110 addition to SYSTEM_GDBINIT.
2111 (captured_main_1): Update.
2112 (print_gdb_help): Update.
2113 * top.c (print_gdb_configuration): Also print the value of
2114 SYSTEM_GDBINIT_DIR.
2115
87f34879
CB
21162019-10-28 Christian Biesinger <cbiesinger@google.com>
2117
2118 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2119 that takes gdb::string_view arguments.
2120
30baf67b
TV
21212019-10-26 Tom de Vries <tdevries@suse.de>
2122
2123 * aarch64-linux-tdep.c: Fix typos in comments.
2124 * aarch64-tdep.c: Same.
2125 * ada-lang.c: Same.
2126 * amd64-nat.c: Same.
2127 * arc-tdep.c: Same.
2128 * arch/aarch64-insn.c: Same.
2129 * block.c: Same.
2130 * breakpoint.h: Same.
2131 * btrace.h: Same.
2132 * c-varobj.c: Same.
2133 * cli/cli-decode.c: Same.
2134 * cli/cli-script.c: Same.
2135 * cli/cli-utils.h: Same.
2136 * coff-pe-read.c: Same.
2137 * coffread.c: Same.
2138 * compile/compile-cplus-symbols.c: Same.
2139 * compile/compile-object-run.c: Same.
2140 * completer.c: Same.
2141 * corelow.c: Same.
2142 * cp-support.c: Same.
2143 * demangle.c: Same.
2144 * dwarf-index-write.c: Same.
2145 * dwarf2-frame.c: Same.
2146 * dwarf2-frame.h: Same.
2147 * eval.c: Same.
2148 * frame-base.h: Same.
2149 * frame.h: Same.
2150 * gdbcmd.h: Same.
2151 * gdbtypes.h: Same.
2152 * gnu-nat.c: Same.
2153 * guile/scm-objfile.c: Same.
2154 * i386-tdep.c: Same.
2155 * i386-tdep.h: Same.
2156 * infcall.c: Same.
2157 * infcall.h: Same.
2158 * linux-nat.c: Same.
2159 * m68k-tdep.c: Same.
2160 * macroexp.c: Same.
2161 * memattr.c: Same.
2162 * mi/mi-cmd-disas.c: Same.
2163 * mi/mi-getopt.h: Same.
2164 * mi/mi-main.c: Same.
2165 * minsyms.c: Same.
2166 * nat/aarch64-sve-linux-sigcontext.h: Same.
2167 * objfiles.h: Same.
2168 * ppc-linux-nat.c: Same.
2169 * ppc-linux-tdep.c: Same.
2170 * ppc-tdep.h: Same.
2171 * progspace.h: Same.
2172 * prologue-value.h: Same.
2173 * python/py-evtregistry.c: Same.
2174 * python/py-instruction.h: Same.
2175 * record-btrace.c: Same.
2176 * record-full.c: Same.
2177 * remote.c: Same.
2178 * rs6000-tdep.c: Same.
2179 * ser-tcp.c: Same.
2180 * sol-thread.c: Same.
2181 * sparc-sol2-tdep.c: Same.
2182 * sparc64-tdep.c: Same.
2183 * stabsread.c: Same.
2184 * symfile.c: Same.
2185 * symtab.h: Same.
2186 * target.c: Same.
2187 * tracepoint.c: Same.
2188 * tui/tui-data.h: Same.
2189 * tui/tui-io.c: Same.
2190 * tui/tui-win.c: Same.
2191 * tui/tui.c: Same.
2192 * unittests/rsp-low-selftests.c: Same.
2193 * user-regs.h: Same.
2194 * utils.c: Same.
2195 * utils.h: Same.
2196 * valarith.c: Same.
2197 * valops.c: Same.
2198 * valprint.c: Same.
2199 * valprint.h: Same.
2200 * value.c: Same.
2201 * value.h: Same.
2202 * varobj.c: Same.
2203 * x86-nat.h: Same.
2204 * xtensa-tdep.c: Same.
2205
1834d45f
AT
22062019-10-25 Ali Tamur <tamur@google.com>
2207
2208 * charset.c (find_charset_names): Reflect API change.
2209
5396ae17
CB
22102019-10-25 Christian Biesinger <cbiesinger@google.com>
2211
2212 * symtab.c (struct demangled_name_entry): Change demangled name
2213 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2214 part of the struct anymore.
2215 (symbol_set_names): No longer obstack allocate + copy the demangled
2216 name, just store the allocated name from bfd.
2217
93878f47
TT
22182019-10-25 Tom Tromey <tromey@adacore.com>
2219
2220 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2221 (bsearch_cie_cmp, add_cie): Remove.
2222 (find_cie): Reimplement.
2223 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2224 (dwarf2_build_frame_info): Update.
2225
7b71fc97
L
22262019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2227
2228 PR gdb/25126
2229 * symfile.c (reread_symbols): Call forget_cached_source_info to
2230 clear the stale source cache.
2231
cbb5a2ea
CB
22322019-10-24 Christian Biesinger <cbiesinger@google.com>
2233
2234 * configure: Regenerate.
2235 * configure.ac: Remove code that sets python_has_threads.
2236
71737c43
CB
22372019-10-24 Christian Biesinger <cbiesinger@google.com>
2238
2239 * config.in: Regenerate.
2240 * configure: Regenerate.
2241 * configure.ac: Remove the code that uses sed to get the python
2242 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2243
33d569b7
AB
22442019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2245
2246 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2247 error paths.
2248
f16f7b7c
TT
22492019-10-23 Tom Tromey <tom@tromey.com>
2250
2251 * arc-tdep.c: Remove ".." from include.
2252 * frv-tdep.c: Remove ".." from include.
2253 * lm32-tdep.c: Remove ".." from include.
2254 * microblaze-tdep.c: Remove ".." from include.
2255 * or1k-tdep.h: Remove ".." from include.
2256 * s12z-tdep.c: Remove ".." from include.
2257 * Makefile.in (OPCODES_CFLAGS): Add comment.
2258 (TOP_CFLAGS): New variable.
2259 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2260
6999161a
TT
22612019-10-23 Tom Tromey <tom@tromey.com>
2262
2263 * Makefile.in (READLINE_DIR): Update.
2264
12e7c35e
TBA
22652019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2266
2267 * infcall.c (call_function_by_hand_dummy): Fix the function
2268 comment. And extract out a code section into...
2269 (reserve_stack_space): ...this new function.
2270
37055cad
TBA
22712019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2272
2273 * infcall.c (value_arg_coerce): Remove an unused parameter.
2274 (call_function_by_hand_dummy): Update the call to
2275 'value_arg_coerce'.
2276
39bcc47c
TBA
22772019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2278
2279 * infcall.c (call_function_by_hand_dummy): Refactor.
2280
bd888c0f
TBA
22812019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2282
2283 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2284
c12d372d
TT
22852019-10-23 Tom Tromey <tom@tromey.com>
2286
2287 * configure: Rebuild.
2288 * configure.ac: Don't check for sigprocmask.
2289 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2290
4d0b984b
TT
22912019-10-23 Tom Tromey <tom@tromey.com>
2292
2293 * configure: Rebuild.
2294 * acinclude.m4: Use m4_include, not sinclude.
2295
7e785608
TV
22962019-10-23 Tom de Vries <tdevries@suse.de>
2297
2298 PR breakpoints/24687
2299 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2300
403772ef
CB
23012019-10-22 Christian Biesinger <cbiesinger@google.com>
2302
2303 * symtab.c (struct demangled_name_entry) <language>: Change from
2304 bitfield to regular variable.
2305
3a494279
CB
23062019-10-22 Christian Biesinger <cbiesinger@google.com>
2307
2308 * symtab.c (struct demangled_name_entry): Add a constructor.
2309 (free_demangled_name_entry): New function to call the destructor
2310 for demangled_name_entry.
2311 (create_demangled_names_hash): Pass free_demangled_name_entry to
2312 htab_create_alloc.
2313 (symbol_set_names): Call placement new for demangled_name_entry.
2314 * utils.c: No longer include xxhash.h here, now that fast_hash
2315 is inlined in the header.
2316 * utils.h: Instead, include it here.
2317
ccb1ba62
CB
23182019-10-22 Christian Biesinger <cbiesinger@google.com>
2319
2320 * Makefile.in: Link with libxxhash.
2321 * config.in: Regenerate.
2322 * configure: Regenerate.
2323 * configure.ac: Search for libxxhash.
2324 * utils.c (fast_hash): Use xxhash if present.
2325
1a6ff1a9
CB
23262019-10-22 Christian Biesinger <cbiesinger@google.com>
2327
2328 * utils.h (fast_hash): New function.
2329 * symtab.c (hash_demangled_name_entry): Call new function
2330 fast_hash.
2331
7bb43059
CB
23322019-10-22 Christian Biesinger <cbiesinger@google.com>
2333
2334 * symtab.c (struct demangled_name_entry): Change type of mangled
2335 to gdb::string_view. Also adds a constructor that takes the
2336 mangled name.
2337 (hash_demangled_name_entry): Update.
2338 (eq_demangled_name_entry): Update.
2339 (free_demangled_name_entry): New function to call the destructor
2340 now that this is not a POD anymore.
2341 (create_demangled_names_hash): Pass free_demangled_name_entry to
2342 htab_create_alloc.
2343 (symbol_set_names): Update.
2344
7ba99d21
AT
23452019-10-21 Ali Tamur <tamu@google.com>
2346
2347 * dwarf2read.c (dir_index): Change type.
2348 (file_name_index): Likewise.
2349 (line_header::include_dir_at): Change comment and implementation on
2350 whether it is DWARF 5.
2351 (line_header::is_valid_file_index): New function.
2352 (line_header::file_name_at): Change comment and implementation on
2353 whether it is DWARF 5.
2354 (line_header::file_names): Change to private field renamed as
2355 m_file_names and introduce a new accessor method.
2356 (line_header::file_names_size): New method.
2357 (line_header::include_dirs): Change to private field and rename as
2358 m_include_dirs.
2359 (dw2_get_file_names_reader): Define local var at a smaller scope and
2360 reflect API change.
2361 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2362 (process_structure_scope): Likewise.
2363 (line_header::add_include_dir): Change message and reflect renaming.
2364 (line_header::add_file_name): Likewise.
2365 (read_formatted_entries): Handle DW_FORM_data16.
2366 (dwarf_decode_line_header): Fix line header length calculation.
2367 (psymtab_include_file_name): Change comment and API.
2368 (lnp_state_machine::m_file): Update comment and reflect type change.
2369 (lnp_state_machine::record_line): Reflect type change.
2370 (dwarf_decode_lines): Reflect API change.
2371 (file_file_name): Likewise.
2372 (file_full_name): Likewise.
2373
45f47c3a
AB
23742019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2375
2376 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2377
e5f3c0e3
TT
23782019-10-21 Tom Tromey <tom@tromey.com>
2379
2380 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2381
a0a461e5
TT
23822019-10-21 Tom Tromey <tom@tromey.com>
2383
2384 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2385 NM_H. Use AC_CONFIG_LINKS.
2386 * configure: Rebuild.
2387 * Makefile.in (NM_H): New variable.
2388 (generated_files): Add NM_H. Remove gcore.
2389 (nm.h, stamp-nmh): New targets.
2390
54d83b8d
TT
23912019-10-20 Tom Tromey <tom@tromey.com>
2392
2393 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2394 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2395 obsolete comment.
2396 (put_objfile_before): Now static.
2397
23771117
SM
23982019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2399
2400 * gdbsupport/common-utils.h (startswith): Change return type to
2401 bool.
2402
39ef2f62
CB
24032019-10-19 Christian Biesinger <cbiesinger@google.com>
2404
2405 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2406 * breakpoint.c (bp_locations_compare): Rename to...
2407 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2408 (update_global_location_list): Use std::sort instead of qsort.
2409 * buildsym.c (compare_line_numbers): Rename to...
2410 (lte_is_less_than): ...this, and change to std::sort semantics.
2411 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2412 instead of qsort.
2413 * disasm.c (compare_lines): Rename to...
2414 (line_is_less_than): ...this, and change to std::sort semantics.
2415 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2416 of qsort.
2417 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2418 (fde_is_less_than): ...this, and change to std::sort semantics.
2419 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2420 * mdebugread.c (compare_blocks):
2421 (block_is_less_than): ...this, and change to std::sort semantics.
2422 (sort_blocks): Call std::sort instead of qsort.
2423 * objfiles.c (qsort_cmp): Rename to...
2424 (sort_cmp): ...this, and change to std::sort semantics.
2425 (update_section_map): Call std::sort instead of qsort.
2426 * remote.c (compare_pnums): Remove.
2427 (map_regcache_remote_table): Call std::sort instead of qsort.
2428 * utils.c (compare_positive_ints): Remove.
2429 * utils.h (compare_positive_ints): Remove.
2430 * xcoffread.c (compare_lte): Remove.
2431 (arrange_linetable): Call std::sort instead of qsort.
2432
f71433ee
SDJ
24332019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2434
2435 * symfile.c (init_entry_point_info): Fix typo.
2436 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2437
85102364
TV
24382019-10-18 Tom de Vries <tdevries@suse.de>
2439
2440 * aarch64-tdep.c: Fix typos in comments.
2441 * ada-lang.c: Same.
2442 * ada-tasks.c: Same.
2443 * alpha-tdep.c: Same.
2444 * alpha-tdep.h: Same.
2445 * amd64-nat.c: Same.
2446 * amd64-windows-tdep.c: Same.
2447 * arc-tdep.c: Same.
2448 * arc-tdep.h: Same.
2449 * arch-utils.c: Same.
2450 * arm-nbsd-tdep.c: Same.
2451 * arm-tdep.c: Same.
2452 * ax-gdb.c: Same.
2453 * blockframe.c: Same.
2454 * btrace.c: Same.
2455 * c-varobj.c: Same.
2456 * coff-pe-read.c: Same.
2457 * coffread.c: Same.
2458 * cris-tdep.c: Same.
2459 * darwin-nat.c: Same.
2460 * dbxread.c: Same.
2461 * dcache.c: Same.
2462 * disasm.c: Same.
2463 * dtrace-probe.c: Same.
2464 * dwarf-index-write.c: Same.
2465 * dwarf2-frame-tailcall.c: Same.
2466 * dwarf2-frame.c: Same.
2467 * dwarf2read.c: Same.
2468 * eval.c: Same.
2469 * exceptions.c: Same.
2470 * fbsd-tdep.c: Same.
2471 * findvar.c: Same.
2472 * frame.c: Same.
2473 * frv-tdep.c: Same.
2474 * gnu-v3-abi.c: Same.
2475 * go32-nat.c: Same.
2476 * h8300-tdep.c: Same.
2477 * hppa-tdep.c: Same.
2478 * i386-linux-tdep.c: Same.
2479 * i386-tdep.c: Same.
2480 * ia64-libunwind-tdep.c: Same.
2481 * ia64-tdep.c: Same.
2482 * infcmd.c: Same.
2483 * infrun.c: Same.
2484 * linespec.c: Same.
2485 * linux-nat.c: Same.
2486 * linux-thread-db.c: Same.
2487 * machoread.c: Same.
2488 * mdebugread.c: Same.
2489 * mep-tdep.c: Same.
2490 * mn10300-tdep.c: Same.
2491 * namespace.c: Same.
2492 * objfiles.c: Same.
2493 * opencl-lang.c: Same.
2494 * or1k-tdep.c: Same.
2495 * osabi.c: Same.
2496 * ppc-linux-nat.c: Same.
2497 * ppc-linux-tdep.c: Same.
2498 * ppc-sysv-tdep.c: Same.
2499 * printcmd.c: Same.
2500 * procfs.c: Same.
2501 * record-btrace.c: Same.
2502 * record-full.c: Same.
2503 * remote-fileio.c: Same.
2504 * remote.c: Same.
2505 * rs6000-tdep.c: Same.
2506 * s12z-tdep.c: Same.
2507 * score-tdep.c: Same.
2508 * ser-base.c: Same.
2509 * ser-go32.c: Same.
2510 * skip.c: Same.
2511 * sol-thread.c: Same.
2512 * solib-svr4.c: Same.
2513 * solib.c: Same.
2514 * source.c: Same.
2515 * sparc-nat.c: Same.
2516 * sparc-sol2-tdep.c: Same.
2517 * sparc-tdep.c: Same.
2518 * sparc64-tdep.c: Same.
2519 * stabsread.c: Same.
2520 * stack.c: Same.
2521 * symfile.c: Same.
2522 * symtab.c: Same.
2523 * target-descriptions.c: Same.
2524 * target-float.c: Same.
2525 * thread.c: Same.
2526 * utils.c: Same.
2527 * valops.c: Same.
2528 * valprint.c: Same.
2529 * value.c: Same.
2530 * varobj.c: Same.
2531 * windows-nat.c: Same.
2532 * xcoffread.c: Same.
2533 * xstormy16-tdep.c: Same.
2534 * xtensa-tdep.c: Same.
2535
c5adaa19
TT
25362019-10-17 Tom Tromey <tromey@adacore.com>
2537
2538 * configure: Rebuild.
2539 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2540 in AC_CONFIG_FILES invocation.
2541 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2542 new-style config.status invocation.
2543
405feb71
TV
25442019-10-17 Tom de Vries <tdevries@suse.de>
2545
2546 * arm-nbsd-nat.c: Fix typos in comments.
2547 * arm-tdep.c: Same.
2548 * darwin-nat-info.c: Same.
2549 * dwarf2read.c: Same.
2550 * elfread.c: Same.
2551 * event-top.c: Same.
2552 * findvar.c: Same.
2553 * gdbtypes.c: Same.
2554 * hppa-tdep.c: Same.
2555 * i386-tdep.c: Same.
2556 * jit.c: Same.
2557 * main.c: Same.
2558 * mdebugread.c: Same.
2559 * moxie-tdep.c: Same.
2560 * nto-procfs.c: Same.
2561 * osabi.c: Same.
2562 * ppc-linux-tdep.c: Same.
2563 * remote.c: Same.
2564 * riscv-tdep.c: Same.
2565 * s390-tdep.c: Same.
2566 * sh-tdep.c: Same.
2567 * sparc-linux-tdep.c: Same.
2568 * sparc-nat.c: Same.
2569 * stack.c: Same.
2570 * target-descriptions.c: Same.
2571 * top.c: Same.
2572 * varobj.c: Same.
2573
befcd486
TT
25742019-10-16 Tom Tromey <tom@tromey.com>
2575
2576 * objfiles.h (struct objfile) <original_name>: Now const.
2577
17bfe554
CB
25782019-10-16 Christian Biesinger <cbiesinger@google.com>
2579
2580 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2581 pass on to sigsetjmp's second argument.
2582 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2583
950b7495
KS
25842019-10-16 Keith Seitz <keiths@redhat.com>
2585
2586 PR gdb/23567
2587 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2588 sections whose size is greater than the file size.
2589
ff371ec9
JW
25902019-10-16 Jim Wilson <jimw@sifive.com>
2591
2592 * riscv-tdep.c (riscv_gcc_target_options): New.
2593 (riscv_gnu_triplet_regexp): New.
2594 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2595 set_gdbarch_gnu_triplet_regexp.
2596
fec4e896
CB
25972019-10-16 Christian Biesinger <cbiesinger@google.com>
2598
2599 * Makefile.in: Add xml-builtin.h.
2600 * features/feature_to_c.sh: Add an include for xml-builtin.h
2601 to ensure that the compiler checks that the types match.
2602 * xml-builtin.h: New file.
2603 * xml-support.c (fetch_xml_builtin): Add missing const.
2604 * xml-support.h: Remove declaration of xml_builtins.
2605
d10eccaa
TV
26062019-10-16 Tom de Vries <tdevries@suse.de>
2607
2608 PR tdep/25096
2609 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2610 (amd64_classify_aggregate): ... here.
2611 (amd64_classify_aggregate_field): Handled fiels of nested structs
2612 recursively.
2613
745ff14e
TV
26142019-10-16 Tom de Vries <tdevries@suse.de>
2615
2616 PR tdep/24104
2617 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2618 that handles 'theclass'.
2619
791b7405
AB
26202019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2621
2622 * linespec.c (decode_digits_ordinary): Update comment.
2623 * make-target-delegates: No longer need to handle VEC case.
2624 * memrange.c (normalize_mem_ranges): Update comment.
2625 * namespace.c (add_using_directive): Update comment.
2626 * objc-lang.c (uniquify_strings): Update comment.
2627 * ppc-linux-nat.c (struct thread_points): Update comment.
2628 * probe.h (find_probes_in_objfile): Update comment.
2629 * target.h (enum flash_preserve_mode): Update comment.
2630 * varobj.c (varobj_restrict_range): Update comment.
2631 * varobj.h (varobj_list_children): Update comment.
2632
0dc32745
AB
26332019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2634
2635 * Makefile.in: Remove references to vec.h and vec.c.
2636 * aarch64-tdep.c: No longer include vec.h.
2637 * ada-lang.c: Likewise.
2638 * ada-lang.h: Likewise.
2639 * arm-tdep.c: Likewise.
2640 * ax.h: Likewise.
2641 * breakpoint.h: Likewise.
2642 * charset.c: Likewise.
2643 * cp-support.h: Likewise.
2644 * dtrace-probe.c: Likewise.
2645 * dwarf2read.c: Likewise.
2646 * extension.h: Likewise.
2647 * gdb_bfd.c: Likewise.
2648 * gdbsupport/gdb_vecs.h: Likewise.
2649 * gdbsupport/vec.c: Remove.
2650 * gdbsupport/vec.h: Remove.
2651 * gdbthread.h: Likewise.
2652 * guile/scm-type.c: Likewise.
2653 * inline-frame.c: Likewise.
2654 * machoread.c: Likewise.
2655 * memattr.c: Likewise.
2656 * memrange.h: Likewise.
2657 * namespace.h: Likewise.
2658 * nat/linux-btrace.h: Likewise.
2659 * osdata.c: Likewise.
2660 * parser-defs.h: Likewise.
2661 * progspace.h: Likewise.
2662 * python/py-type.c: Likewise.
2663 * record-btrace.c: Likewise.
2664 * rust-exp.y: Likewise.
2665 * solib-target.c: Likewise.
2666 * stap-probe.c: Likewise.
2667 * target-descriptions.c: Likewise.
2668 * target-memory.c: Likewise.
2669 * target.h: Likewise.
2670 * varobj.c: Likewise.
2671 * varobj.h: Likewise.
2672 * xml-support.h: Likewise.
2673
ae640021
AB
26742019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2675
2676 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2677 Update for new std::vector based implementation.
2678 (process_psymtab_comp_unit_reader): Likewise.
2679 (scan_partial_symbols): Likewise.
2680 (recursively_compute_inclusions): Likewise.
2681 (compute_compunit_symtab_includes): Likewise.
2682 (process_imported_unit_die): Likewise.
2683 (queue_and_load_dwo_tu): Likewise.
2684 (follow_die_sig_1): Likewise.
2685 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2686 (typedef dwarf2_per_cu_ptr): Remove.
2687 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2688 function.
2689 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2690 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2691 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2692 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2693 std::vector.
2694
55dfc88f
TT
26952019-10-15 Tom Tromey <tromey@adacore.com>
2696
2697 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2698 TID.
2699
96b49c5e
TT
27002019-10-15 Tom Tromey <tromey@adacore.com>
2701
2702 * windows-nat.c (windows_nat_target::fetch_registers)
2703 (windows_nat_target::store_registers): Rename "pid" to "tid".
2704
953cff56
TT
27052019-10-15 Tom Tromey <tromey@adacore.com>
2706
2707 * gdbarch.h, gdbarch.c: Rebuild.
2708 * gdbarch.sh (gcc_target_options): Change return type to
2709 std::string.
2710 * compile/compile.c (get_args): Update.
2711 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2712 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2713 std::string.
2714 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2715 std::string.
2716 * arch-utils.c (default_gcc_target_options): Return std::string.
2717 * arch-utils.h (default_gcc_target_options): Return std::string.
2718 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2719
81e6b8eb
CB
27202019-10-15 Christian Biesinger <cbiesinger@google.com>
2721
2722 * breakpoint.c (breakpoint_chain): Make static.
2723 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2724 of accessing breakpoint_chain.
2725
95da600f
CB
27262019-10-15 Christian Biesinger <cbiesinger@google.com>
2727
2728 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2729 to a gdb::function_view and return value to bool.
2730 * breakpoint.h (iterate_over_breakpoints): Likewise.
2731 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2732 (pop_dummy_frame): Update.
2733 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2734 (gdbscm_breakpoints): Update.
2735 * python/py-breakpoint.c (build_bp_list): Update.
2736 (gdbpy_breakpoints): Update.
2737 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2738 Update.
2739 (bpfinishpy_handle_stop): Update.
2740 (bpfinishpy_handle_exit): Update.
2741 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2742 (svr4_update_solib_event_breakpoints): Update.
2743
ba18312d
AA
27442019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2745
2746 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2747 when unwrapping single-field structs.
2748
6acc1a0b
SM
27492019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2750
2751 * dwarf2read.c: Remove includes.
2752
284782de
SM
27532019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2754
2755 * ui-out.c (ui_out::call_do_message): Silence
2756 -Wformat-nonliteral warning.
2757
073bbbb0
SM
27582019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2759
2760 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2761 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2762 include: readline/tilde.h.
2763
7b9a15e1
CB
27642019-10-12 Christian Biesinger <cbiesinger@google.com>
2765
2766 * remote.c (remote_target::get_trace_status): Remove declaration of
2767 trace_regblock_size.
2768
cc8dee1f
CB
27692019-10-12 Christian Biesinger <cbiesinger@google.com>
2770
2771 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2772 (show_user): Remove declaration of cmdlist.
2773 * cli/cli-cmds.h (max_user_call_depth): Declare.
2774 * cli/cli-script.c (execute_user_command): Remove declaration
2775 of max_user_call_depth.
2776
a83d4ef6
JW
27772019-10-11 Jim Wilson <jimw@sifive.com>
2778
5f93c5a6
JW
2779 * gdbsupport/print-utils.h (pulongest): Fix comment.
2780 (plongest): Likewise.
2781 (phex): Add missing comment, mention leading zeros.
2782 (phex_nz): Add mention of no leading zeros to comment.
2783
a83d4ef6
JW
2784 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2785 plongest instead of unsigned long long cast.
2786
26344e0c
CB
27872019-10-10 Christian Biesinger <cbiesinger@google.com>
2788
2789 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2790 for external_editor_command and gdbtk_test.
2791
c2c440a9
CB
27922019-10-10 Christian Biesinger <cbiesinger@google.com>
2793
2794 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2795 * varobj.c (varobjdebug): Move comment to...
2796 * varobj.h (varobjdebug): ...here, and declare.
2797
a31bff9d
TT
27982019-10-09 Tom Tromey <tom@tromey.com>
2799
2800 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2801 erase_data_content.
2802
7523da63
TT
28032019-10-09 Tom Tromey <tom@tromey.com>
2804
2805 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2806 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2807 * tui/tui-command.c (tui_cmd_window::resize)
2808 (tui_refresh_cmd_win): Update.
2809 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2810 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2811 * tui/tui-data.c (~tui_gen_win_info): Remove.
2812 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2813 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2814 (tui_redisplay_readline, tui_mld_flush)
2815 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2816 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2817 (tui_data_window::erase_data_content)
2818 (tui_data_item_window::rerender)
2819 (tui_data_item_window::refresh_window): Update.
2820 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2821 (box_win, tui_gen_win_info::make_window)
2822 (tui_gen_win_info::make_visible): Update.
2823 (tui_delete_win): Remove.
2824 * tui/tui-winsource.c
2825 (tui_source_window_base::do_erase_source_content): Update.
2826 (tui_show_source_line, tui_source_window_base::update_tab_width)
2827 (tui_source_window_base::update_exec_info): Update.
2828 * tui/tui-data.h (struct curses_deleter): New.
2829 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2830 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2831
a7798e7f
TT
28322019-10-09 Tom Tromey <tom@tromey.com>
2833
2834 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2835
5c45899e
TT
28362019-10-09 Tom Tromey <tom@tromey.com>
2837
2838 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2839 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2840
6d7fd9aa
TT
28412019-10-09 Tom Tromey <tom@tromey.com>
2842
2843 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2844 window height directly.
2845 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2846 declare.
2847 * tui/tui-layout.c (tui_default_win_height): Remove.
2848 (tui_default_win_viewport_height): Remove.
2849
d2dd1084
TT
28502019-10-09 Tom Tromey <tom@tromey.com>
2851
2852 * tui/tui.h: Remove comments.
2853
cff32449
TV
28542019-10-09 Tom de Vries <tdevries@suse.de>
2855
2856 * python/lib/gdb/printer/bound_registers.py: Use
2857 '^builtin_type_bound128' as regexp argument for
2858 add_builtin_pretty_printer.
2859
6a25e8a2
CB
28602019-10-09 Christian Biesinger <cbiesinger@google.com>
2861
2862 * guile/guile.c (guile_extension_script_ops): Remove forward
2863 declaration and mark as static.
2864 (guile_script_ops): Likewise.
2865 (extension_language_guile): Move further down in the file so
2866 it can reference the definitions for guile_{extension_,}script_ops.
2867
6d9d6da4
AA
28682019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2869
2870 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2871 except SORTL, DFLTCC, and KDSA.
2872
3abea05d
TT
28732019-10-08 Tom Tromey <tromey@adacore.com>
2874
2875 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2876 (struct safe_symbol_file_add_args): Remove.
2877
dde996e2
TT
28782019-10-08 Tom Tromey <tromey@adacore.com>
2879
2880 * windows-nat.c: Don't include buildsym-legacy.h.
2881
cd6fdaa1
TT
28822019-10-08 Tom Tromey <tromey@adacore.com>
2883
2884 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2885
79bb1944
CB
28862019-10-08 Christian Biesinger <cbiesinger@google.com>
2887
2888 * gdbtypes.c (overload_debug): Move comment to header.
2889 * gdbtypes.h (overload_debug): Declare.
2890 * valops.c: Remove declaration of overload_debug, instead
2891 include gdbtypes.h.
2892
34916edc
CB
28932019-10-08 Christian Biesinger <cbiesinger@google.com>
2894
2895 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2896 through _().
2897 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2898 move comment...
2899 * language.h (lang_frame_mismatch_warn): ... here. Also add
2900 declaration.
2901 * top.c (lang_frame_mismatch_warn): Remove declaration.
2902 (check_frame_language_change): Pass lang_frame_mismatch_warn
2903 through _().
2904
bad5c026
CB
29052019-10-07 Christian Biesinger <cbiesinger@google.com>
2906
2907 * c-lang.h (vtbl_ptr_name): Declare.
2908 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2909 it from the header.
2910 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2911
51f1fdc3
CB
29122019-10-07 Christian Biesinger <cbiesinger@google.com>
2913
2914 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2915 gdb_static_assert.
2916
30d1f018
WP
29172019-10-07 Weimin Pan <weimin.pan@oracle.com>
2918
606813d5
WP
2919 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2920 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2921 * ctfread.c: New file.
2922 * ctfread.h: New file.
2923 * elfread.c: Include ctfread.h.
2924 (struct elfinfo text_p): New member ctfsect.
2925 (elf_locate_sections): Mark CTF section.
2926 (elf_symfile_read): Call elfctf_build_psymtabs.
2927 * Makefile.in (LIBCTF): Add.
2928 (CLIBS): Use it.
2929 (CDEPS): Likewise.
2930 (DIST): Add ctfread.c.
606813d5
WP
2931
29322019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2933
2934 * ctfread.c (struct nextfield): Renamed to ...
2935 (struct ctf_nextfield): ... this.
2936 (struct field_info): Renamed to ...
2937 (strut ctf_field_info): ... this.
2938 (attach_fields_to_type): Update for renamed structures.
2939 (ctf_add_member_cb): Likewise.
2940 (ctf_add_enum_member_cb): Likewise.
2941 (process_struct_members): Likewise.
2942 (process_enum_type): Likewise.
30d1f018 2943
518fe38c
WP
29442019-10-07 Weimin Pan <weimin.pan@oracle.com>
2945
2946 * tracectf.h: Rename, was ctf.h.
2947 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2948 * tracefile.c: Likewise.
2949 * tracepoint.c: Remove unused include ctf.h.
2950 * mi/mi-main.c: Likewise.
2951 * Makefile.in Replace ctf.c with tracectf.c.
2952
225f296a
JB
29532019-10-06 Joel Brobecker <brobecker@adacore.com>
2954
2955 * version.in: Change version number to "9.0.50.DATE-git".
2956
77c2dba3
TT
29572019-10-03 Tom Tromey <tom@tromey.com>
2958
2959 PR rust/24976:
2960 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2961
179aed7f
AB
29622019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2963
2964 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2965 cp_search_name_hash.
2966 * NEWS: Add entry about nested function support.
2967
0a4b0913
AB
29682019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2969 Andrew Burgess <andrew.burgess@embecosm.com>
2970
2971 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2972 for nested static variables when searchin VAR_DOMAIN.
2973 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2974 global scope, update comment.
2975 (add_partial_subprogram): Call add_partial_subprogram recursively
2976 for nested subroutines when processinng Fortran.
2977 (load_partial_dies): Process the child entities of a subprogram
2978 when processing Fortran.
2979 (partial_die_parent_scope): Handle building scope
2980 for Fortran nested functions.
2981 (process_die): Record that nested functions have a scope.
2982 (new_symbol): Always record Fortran subprograms on the global
2983 symbol list.
2984 (determine_prefix): How to build the prefix for Fortran
2985 subprograms.
2986
d8c06f22
AB
29872019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2988
2989 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2990 have just sent the thread a SIGSTOP and are waiting for it to
2991 arrive.
2992
a8b3b8e9
AB
29932019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2994
2995 * btrace.c (btrace_add_pc): Remove whitespace before the template
2996 parameter in 'std::vector <...>'.
2997 (parse_xml_btrace_block): Likewise.
2998 (btrace_maint_decode_pt): Likewise.
2999 (btrace_maint_update_packets): Likewise.
3000 (btrace_maint_print_packets): Likewise.
3001 * btrace.h (struct btrace_maint_info): Likewise.
3002 * dwarf2read.c (struct type_unit_group): Likewise.
3003 (build_type_psymtabs_reader): Likewise.
3004 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3005 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3006 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3007
4d825eab
TV
30082019-10-03 Tom de Vries <tdevries@suse.de>
3009
3010 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3011 the first line of the help text for set/show style metadata.
3012
80fd2826
TT
30132019-10-02 Tom Tromey <tromey@adacore.com>
3014
3015 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3016 * gdbsupport/common-inferior.c: New file.
3017 * infcmd.c (startup_with_shell): Don't define.
3018 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3019 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3020 * inferior.h (startup_with_shell): Don't declare.
3021
70054538
CB
30222019-10-02 Christian Biesinger <cbiesinger@google.com>
3023
3024 * gdbsupport/gdb_assert.h: Include errors.h.
3025 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3026
37f6a7f4
TT
30272019-10-02 Tom Tromey <tromey@adacore.com>
3028
3029 * NEWS: Add $_ada_exception entry.
3030 * ada-lang.c (struct ada_catchpoint): Add constructor.
3031 <m_kind>: New member.
3032 (allocate_location_exception, re_set_exception): Remove
3033 "ex" parameter.
3034 (should_stop_exception): Compute $_ada_exception.
3035 (check_status_exception, print_it_exception)
3036 (print_one_exception, print_mention_exception): Remove
3037 "ex" parameter.
3038 (allocate_location_catch_exception, re_set_catch_exception)
3039 (check_status_exception, print_it_catch_exception)
3040 (print_one_catch_exception, print_mention_catch_exception)
3041 (print_recreate_catch_exception)
3042 (allocate_location_catch_exception_unhandled)
3043 (re_set_catch_exception_unhandled)
3044 (check_status_exception, print_it_catch_exception_unhandled)
3045 (print_one_catch_exception_unhandled)
3046 (print_mention_catch_exception_unhandled)
3047 (print_recreate_catch_exception_unhandled)
3048 (allocate_location_catch_assert, re_set_catch_assert)
3049 (check_status_assert, print_it_catch_assert)
3050 (print_one_catch_assert, print_mention_catch_assert)
3051 (print_recreate_catch_assert)
3052 (allocate_location_catch_handlers, re_set_catch_handlers)
3053 (check_status_handlers, print_it_catch_handlers)
3054 (print_one_catch_handlers, print_mention_catch_handlers)
3055 (print_recreate_catch_handlers): Remove.
3056 (create_ada_exception_catchpoint): Update.
3057 (initialize_ada_catchpoint_ops): Update.
3058
fccf9de1
TT
30592019-10-02 Tom Tromey <tromey@adacore.com>
3060
3061 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3062 (create_excep_cond_exprs): Simplify exception string computation.
3063 (ada_exception_catchpoint_cond_string): Likewise.
3064
4b610737
TT
30652019-10-02 Tom Tromey <tromey@adacore.com>
3066
3067 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3068 * ada-lang.c (lesseq_defined_than): Handle
3069 LOC_STATIC.
3070 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3071 parameter.
3072 (dwarf2_has_info): Likewise.
3073 (new_symbol): Set maybe_copied on symbol when
3074 appropriate.
3075 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3076 parameter.
3077 <can_copy>: New member.
3078 * elfread.c (record_minimal_symbol): Set maybe_copied
3079 on symbol when appropriate.
3080 (elf_symfile_read): Update call to dwarf2_has_info.
3081 * minsyms.c (lookup_minimal_symbol_linkage): New
3082 function.
3083 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3084 * symtab.c (get_symbol_address, get_msymbol_address):
3085 New functions.
3086 * symtab.h (get_symbol_address, get_msymbol_address):
3087 Declare.
3088 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3089 maybe_copied.
3090 (struct symbol, struct minimal_symbol) <maybe_copied>:
3091 New member.
3092
1dd58850
TT
30932019-10-02 Tom Tromey <tromey@adacore.com>
3094
3095 * source.c (struct current_source_location): New.
3096 (current_source_key): New global.
3097 (current_source_symtab, current_source_line)
3098 (current_source_pspace): Remove.
3099 (get_source_location): New function.
3100 (get_current_source_symtab_and_line)
3101 (set_default_source_symtab_and_line)
3102 (set_current_source_symtab_and_line)
3103 (clear_current_source_symtab_and_line, select_source_symtab)
3104 (info_source_command, print_source_lines_base)
3105 (info_line_command, search_command_helper, _initialize_source):
3106 Update.
3107
5c281dbb
TT
31082019-10-02 Tom Tromey <tromey@adacore.com>
3109
3110 * source.c (select_source_symtab): Don't call
3111 decode_line_with_current_source.
3112
d3d32391
AB
31132019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3114
3115 * symtab.c (lookup_global_symbol): Search global block.
3116
38583298
TT
31172019-10-02 Tom Tromey <tromey@adacore.com>
3118
3119 * coffread.c (process_coff_symbol): Update.
3120 * dwarf2read.c (var_decode_location, new_symbol): Update.
3121 * mdebugread.c (parse_symbol): Update.
3122 * objfiles.c (relocate_one_symbol): Update.
3123 * stabsread.c (define_symbol, fix_common_block)
3124 (scan_file_globals): Update.
3125 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3126 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3127 * xcoffread.c (process_xcoff_symbol): Update.
3128
9344c18f
AA
31292019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3130
3131 * MAINTAINERS: Update my email address.
3132
df07e2c7
AB
31332019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3134
3135 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3136 std::vector.
3137 (build_type_psymtabs_reader): Update for std::vector.
3138 (build_type_psymtab_dependencies): Likewise.
3139 * dwarf2read.h: Remove use of DEF_VEC_P.
3140 (typedef sig_type_ptr): Delete.
3141
554ac434
AB
31422019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3143
3144 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3145 to std::vector.
3146 (btrace_maint_decode_pt): Likewise, and move allocation of the
3147 vector outside of the loop.
3148 (btrace_maint_update_packets): Update to handle change from VEC to
3149 std::vector.
3150 (btrace_maint_print_packets): Likewise.
3151 (maint_info_btrace_cmd): Likewise.
3152 * btrace.h: Remove use of DEF_VEC_O.
3153 (typedef btrace_pt_packet_s): Delete.
3154 (struct btrace_maint_info) <packets>: Change fromm VEC to
3155 std::vector.
3156 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3157
46f29a9a
AB
31582019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3159
3160 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3161 make accesses into the vector constant references.
3162 (btrace_add_pc): Update for std::vector.
3163 (btrace_stitch_bts): Likewise.
3164 (parse_xml_btrace_block): Likewise.
3165 (btrace_maint_update_packets): Likewise.
3166 (btrace_maint_print_packets): Likewise.
3167 (maint_info_btrace_cmd): Likewise.
3168 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3169 std::vector.
3170 (btrace_data::empty): Likewise.
3171 (btrace_data_append): Likewise.
3172 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3173 (typedef btrace_block_s): Delete.
3174 (struct btrace_block): Add constructor.
3175 (struct btrace_data_bts) <blocks>: Change to std::vector.
3176 * nat/linux-btrace.c (perf_event_read_bts): Update for
3177 std::vector.
3178 (linux_read_bts): Likewise.
3179
d770d56f
TT
31802019-10-01 Tom Tromey <tom@tromey.com>
3181
3182 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3183
9d636d67
TT
31842019-10-01 Tom Tromey <tom@tromey.com>
3185
3186 * stack.c (print_frame, info_frame_command_core): Use
3187 styled_string.
3188 * linux-thread-db.c (try_thread_db_load_1)
3189 (try_thread_db_load_from_pdir_1): Use styled_string.
3190 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3191 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3192 (maybe_print_unsupported_script_warning)
3193 (maybe_print_script_not_found_warning): Use styled_string.
3194 * ada-lang.c (user_select_syms): Use styled_string.
3195
7f6aba03
TT
31962019-10-01 Tom Tromey <tom@tromey.com>
3197
3198 * p-lang.c (pascal_printstr): Use metadata style.
3199 * value.c (show_convenience): Use metadata style.
3200 * valprint.c (valprint_check_validity, val_print_optimized_out)
3201 (val_print_not_saved, val_print_unavailable)
3202 (val_print_invalid_address, generic_val_print, val_print)
3203 (value_check_printable, val_print_array_elements): Use metadata
3204 style.
3205 * ui-out.h (class ui_out) <field_fmt>: New overload.
3206 <do_field_fmt>: Add style parameter.
3207 * ui-out.c (ui_out::field_fmt): New overload.
3208 * typeprint.c (type_print_unknown_return_type)
3209 (val_print_not_allocated, val_print_not_associated): Use metadata
3210 style.
3211 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3212 parameter.
3213 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3214 * tracepoint.c (tvariables_info_1): Use metadata style.
3215 * stack.c (print_frame_arg, print_frame_info, print_frame)
3216 (info_frame_command_core): Use metadata style.
3217 * skip.c (info_skip_command): Use metadata style.
3218 * rust-lang.c (rust_print_enum): Use metadata style.
3219 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3220 metadata style.
3221 * python/py-framefilter.c (py_print_single_arg): Use metadata
3222 style.
3223 * printcmd.c (do_one_display, print_variable_and_value): Use
3224 metadata style.
3225 * p-valprint.c (pascal_val_print)
3226 (pascal_object_print_value_fields): Use metadata style.
3227 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3228 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3229 parameter.
3230 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3231 * m2-valprint.c (m2_print_long_set): Use metadata style.
3232 * m2-typeprint.c (m2_print_type): Use metadata style.
3233 * infcmd.c (print_return_value_1): Use metadata style.
3234 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3235 * f-valprint.c (info_common_command_for_block): Use metadata
3236 style.
3237 * f-typeprint.c (f_type_print_base): Use metadata style.
3238 * expprint.c (print_subexp_standard): Use metadata style.
3239 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3240 * cli/cli-style.h (class cli_style_option): Add constructor.
3241 (metadata_style): Declare.
3242 * cli/cli-style.c (metadata_style): New global.
3243 (_initialize_cli_style): Register metadata style.
3244 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3245 parameter.
3246 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3247 * c-typeprint.c (c_type_print_base_struct_union)
3248 (c_type_print_base_1): Use metadata style.
3249 * breakpoint.c (watchpoint_value_print)
3250 (print_one_breakpoint_location): Use metadata style.
3251 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3252 style.
3253 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3254 style.
3255 * ada-valprint.c (val_print_packed_array_elements, printstr)
3256 (print_field_values, ada_val_print_ref, ada_val_print): Use
3257 metadata style.
3258 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3259 style.
3260 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3261 style.
3262 * ada-lang.c (user_select_syms): Use metadata style.
3263
14309bb6
TT
32642019-10-01 Tom Tromey <tom@tromey.com>
3265
3266 * cli/cli-cmds.c (pwd_command): Style output.
3267
6a831f06
PA
32682019-10-01 Pedro Alves <palves@redhat.com>
3269 Tom Tromey <tom@tromey.com>
3270
3271 * symtab.c (print_symbol_info): Use %ps.
3272 (print_msymbol_info): Use %ps.
3273 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3274 * printcmd.c (print_variable_and_value): Use %ps.
3275 * macrocmd.c (show_pp_source_pos): Use %ps.
3276 * infrun.c (print_exited_reason): Use ui_out::message.
3277 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3278 (describe_other_breakpoints): Use ui_out::message and new
3279 formats.
3280 (say_where): Use new formats.
3281 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3282 and new formats.
3283
2a3c1174
PA
32842019-10-01 Pedro Alves <palves@redhat.com>
3285 Tom Tromey <tom@tromey.com>
3286
3287 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3288 (test_gdb_formats): New function.
3289 (run_tests): Call it.
3290 (test_format_specifier): Update.
3291 * utils.h (fputs_filtered): Update comment.
3292 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3293 (fputs_styled_unfiltered): Declare.
3294 * utils.c (fputs_styled_unfiltered): New function.
3295 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3296 (vfprintf_filtered): Update.
3297 (vfprintf_unfiltered, vprintf_filtered): Update.
3298 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3299 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3300 disallow_ui_out_field>: New constants.
3301 (enum class field_kind): New.
3302 (struct base_field_s, struct signed_field_s): New.
3303 (signed_field): New function.
3304 (struct string_field_s): New.
3305 (string_field): New function.
3306 (struct styled_string_s): New.
3307 (styled_string): New function.
3308 (class ui_out) <message>: Add comment.
3309 <vmessage, call_do_message>: New methods.
3310 <do_message>: Add style parameter.
3311 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3312 methods.
3313 (ui_out::message): Rewrite.
3314 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3315 parameter.
3316 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3317 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3318 gdb_extensions parameter.
3319 (class format_piece): Add parameter to constructor.
3320 (n_int_args): New field.
3321 * gdbsupport/format.c (format_pieces::format_pieces): Add
3322 gdb_extensions parameter. Handle '*'.
3323 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3324 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3325 vfprintf_styled_no_gdbfmt.
3326 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3327 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3328 unfiltered output.
3329 * ui-style.h (struct ui_file_style) <ptr>: New method.
3330
0dfe5bfb
TT
33312019-10-01 Tom Tromey <tom@tromey.com>
3332
3333 * unittests/format_pieces-selftests.c: Update. Add final format.
3334 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3335 empty literal pieces.
3336
e43b10e1
TT
33372019-10-01 Tom Tromey <tom@tromey.com>
3338
3339 * ui-out.h (enum class ui_out_style_kind): Remove.
3340 (class ui_out) <field_string, field_stsream, do_field_string>:
3341 Change type of "style".
3342 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3343 (ui_out::field_string): Update.
3344 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3345 of "style".
3346 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3347 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3348 * stack.c (print_frame_arg, print_frame_info, print_frame):
3349 Update.
3350 * source.c (print_source_lines_base): Update.
3351 * solib.c (info_sharedlibrary_command): Update.
3352 * skip.c (info_skip_command): Update.
3353 * record-btrace.c (btrace_call_history_src_line)
3354 (btrace_call_history): Update.
3355 * python/py-framefilter.c (py_print_frame): Update.
3356 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3357 "style".
3358 * mi/mi-out.c (mi_ui_out::do_table_header)
3359 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3360 (mi_ui_out::do_field_string): Update.
3361 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3362 Update.
3363 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3364 "style".
3365 * cli-out.c (cli_ui_out::do_table_header)
3366 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3367 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3368 (cli_ui_out::do_field_fmt): Update.
3369 * breakpoint.c (print_breakpoint_location): Update.
3370 (update_static_tracepoint): Update.
3371
cd7c32c3
PW
33722019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3373
3374 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3375 conversion of gdb_datadir.
3376 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3377 remove not needed c_str ().
3378
8fe0f950
AT
33792019-09-30 Ali Tamur <tamur@google.com>
3380
3381 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3382 (dwarf2_string_attr): Likewise.
3383
5f48f8f3
AT
33842019-09-30 Ali Tamur <tamur@google.com>
3385
3386 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3387 (process_full_type_unit): Likewise.
3388 (dump_die_shallow): Likewise.
3389 (cu_debug_loc_section): Likewise.
3390
6fb08628
CB
33912019-09-28 Christian Biesinger <cbiesinger@google.com>
3392
3393 * minsyms.c (compare_minimal_symbols): Rename to...
3394 (minimal_symbol_is_less_than): ...this, and adjust to STL
3395 conventions (return bool, take arguments as references)
3396 (minimal_symbol_reader::install): Call std::sort instead
3397 of qsort.
3398
c7ee338a
CB
33992019-09-29 Christian Biesinger <cbiesinger@google.com>
3400
3401 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3402 hash and why.
3403 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3404 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3405
703a86c2
SM
34062019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3407
3408 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3409 * psympriv.h (add_psymbol_to_list): Move comment here and update
3410 it.
3411
0df0352a
TV
34122019-09-29 Tom de Vries <tdevries@suse.de>
3413
3414 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3415 Use $tmpdir/$(basename "$output_file").dwz instead of
3416 "${output_file}.dwz".
3417
ad75efa6
SM
34182019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3419
3420 PR gdb/25045
3421 * hppa-linux-nat.c: Include gdbarch.h.
3422
ececd218
CB
34232019-09-26 Christian Biesinger <cbiesinger@google.com>
3424
3425 * blockframe.c (find_pc_partial_function): Change return type to bool.
3426 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3427 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3428 (stub_gnu_ifunc_resolve_name): Likewise.
3429 * symtab.c (compare_filenames_for_search): Likewise.
3430 (compare_glob_filenames_for_search): Likewise.
3431 (matching_obj_sections): Likewise.
3432 (symbol_matches_domain): Likewise.
3433 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3434 (find_line_pc): Change return type to bool.
3435 (find_line_pc_range): Likewise.
3436 (producer_is_realview): Likewise.
3437 * symtab.h (symbol_matches_domain): Likewise.
3438 (find_pc_partial_function): Likewise.
3439 (find_pc_line_pc_range): Likewise.
3440 (in_gnu_ifunc_stub): Likewise.
3441 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3442 (find_line_pc): Likewise.
3443 (find_line_pc_range): Likewise.
3444 (matching_obj_sections): Likewise.
3445 (find_line_symtab): Change out parameter to bool.
3446 (producer_is_realview): Change return type to bool.
3447 (compare_filenames_for_search): Likewise.
3448 (compare_glob_filenames_for_search): Likewise.
3449
27a900b8
TT
34502019-09-26 Tom Tromey <tom@tromey.com>
3451
3452 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3453 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3454 * gdb_usleep.h: Remove.
3455 * gdb_usleep.c: Remove.
3456 * utils.c: Don't include gdb_usleep.h.
3457
5d63b30a
TT
34582019-09-26 Tom Tromey <tromey@adacore.com>
3459
3460 * python/py-type.c (type_to_type_object): Call check_typedef
3461 for stub types.
3462
12904d37
TT
34632019-09-26 Tom Tromey <tom@tromey.com>
3464
3465 * utils.h (initialize_utils): Don't declare.
3466 * top.c (gdb_init): Don't call initialize_utils.
3467 * utils.c (initialize_utils): Remove. Move contents...
3468 (_initialize_utils): ... here.
3469
858f25f0
TT
34702019-09-25 Tom Tromey <tom@tromey.com>
3471
3472 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3473 * utils.h (make_hex_string): Don't declare.
3474 * utils.c (make_hex_string): Remove.
3475
3d435220
TV
34762019-09-24 Tom de Vries <tdevries@suse.de>
3477
3478 PR gdb/23815
3479 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3480 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3481
ddd44b70
DD
34822019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3483
3484 * NEWS: Mention new simulator port for PRU.
3485
f945dedf
CB
34862019-09-23 Christian Biesinger <cbiesinger@google.com>
3487
3488 * ada-exp.y (write_object_remaining): Update.
3489 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3490 and eliminate the static buffer.
3491 (ada_decode_symbol): Update.
3492 (ada_la_decode): Update.
3493 (ada_sniff_from_mangled_name): Update.
3494 (is_valid_name_for_wild_match): Update.
3495 (ada_lookup_name_info::matches): Update and simplify.
3496 (name_matches_regex): Update.
3497 (ada_add_global_exceptions): Update.
3498 * ada-lang.h (ada_decode): Update signature.
3499 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3500 * dwarf-index-write.c (debug_names::insert): Update.
3501
7ab78ccb
SM
35022019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3503
3504 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3505 formatting.
3506
9252448b
SM
35072019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3508
3509 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3510 Change "nonzero" to "true" in documentation.
3511
626ca2c0
CB
35122019-09-20 Christian Biesinger <cbiesinger@google.com>
3513
3514 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3515 (_initialize_darwin_solib): Don't set
3516 darwin_so_ops.lookup_lib_global_symbol.
3517 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3518 set_gdbarch_iterate_over_objfiles_in_search_order.
3519 (elf_lookup_lib_symbol): Rename to...
3520 (svr4_iterate_over_objfiles_in_search_order): this, and update
3521 to iterate semantics.
3522 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3523 * solib.c (solib_global_lookup): Remove.
3524 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3525 (solib_global_lookup): Remove.
3526 * symtab.c (lookup_global_or_static_symbol): Remove call to
3527 solib_global_lookup.
3528
5a3a0d63
JB
35292019-09-20 Joel Brobecker <brobecker@adacore.com>
3530
3531 * NEWS: Move entries about default MI version now being
3532 version 3, and about the GDB/MI fix for multi-location
3533 breakpoints to the "since GDB 8.3" section.
3534
ffea1427
JB
35352019-09-20 Joel Brobecker <brobecker@adacore.com>
3536
3537 GDB 8.3.1 released.
3538
abf516c6
UW
35392019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3540
3541 * NEWS: Mention that Cell/B.E. debugging support was removed.
3542 * MAINTAINERS: Remove spu target.
3543
3544 * config/djgpp/fnchange.lst: Remove entries for removed files.
3545
3546 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3547 spu-multiarch.o, and spu-tdep.o.
3548 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3549 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3550 spu-multiarch.c, and spu-tdep.c.
3551 * spu-linux-nat.c: Remove file.
3552 * spu-multiarch.c: Remove file.
3553 * spu-tdep.c: Remove file.
3554 * spu-tdep.h: Remove file.
3555 * solib-spu.c: Remove file.
3556 * solib-spu.h: Remove file.
3557
3558 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3559 * configure.nat (spu-linux): Remove.
3560 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3561 solib-multiarch.o from gdb_target_obs.
3562 (spu*-*-*): Remove.
3563
3564 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3565 feature flag.
3566 (ppc_linux_no_features): Update.
3567 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3568 Cell/B.E. support.
3569 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3570 (tdesc_powerpc_cell64l): Likewise.
3571 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3572 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3573 Cell/B.E. support.
3574 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3575 Do not include "features/rs6000/powerpc-cell32l.c" or
3576 "features/rs6000/powerpc-cell64l.c".
3577 (ppc_linux_spu_section): Remove.
3578 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3579 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3580 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3581 (ppc_linux_spe_context_lookup): Remove.
3582 (ppc_linux_spe_context_inferior_created): Remove.
3583 (ppc_linux_spe_context_solib_loaded): Remove.
3584 (ppc_linux_spe_context_solib_unloaded): Remove.
3585 (ppc_linux_spe_context): Remove.
3586 (struct ppu2spu_cache): Remove.
3587 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3588 (struct ppu2spu_data): Remove.
3589 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3590 ppu2spu_unwind): Remove.
3591 (ppc_linux_init_abi): Remove Cell/B.E. support.
3592 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3593
3594 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3595 (rs6000/powerpc-cell64l-expedite): Likewise
3596 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3597 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3598 rs6000/powerpc-cell64l.xml.
3599 * features/rs6000/powerpc-cell32l.xml: Remove.
3600 * features/rs6000/powerpc-cell64l.xml: Likewise.
3601 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3602 * features/rs6000/powerpc-cell64l.c: Likewise.
3603 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3604 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3605 * regformats/reg-spu.dat: Remove.
3606
3607 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3608 * corelow.c (struct spuid_list): Remove.
3609 (add_to_spuid_list): Remove.
3610 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3611 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3612 (remote_protocol_features): Remove associated entries.
3613 (_initialize_remote): No longer initialize them.
3614 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3615 * linux-nat.c (SPUFS_MAGIC): Remove.
3616 (linux_proc_xfer_spu): Remove.
3617 (spu_enumerate_spu_ids): Remove.
3618 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3619 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3620 (linux_make_corefile_notes): No longer call it.
3621
3622 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3623 (cooked_write_test): Likewise.
3624
78e8cb91
TT
36252019-09-20 Tom Tromey <tom@tromey.com>
3626
3627 * NEWS: Mention case-sensitivity of TUI commands.
3628 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3629 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3630 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3631
f074b67e
TT
36322019-09-20 Tom Tromey <tom@tromey.com>
3633
3634 * tui/tui-source.c (tui_source_window::set_contents): Use
3635 make_unique_xstrdup.
3636 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3637 make_unique_xstrdup.
3638
63c4bf19
TT
36392019-09-20 Tom Tromey <tom@tromey.com>
3640
3641 * tui/tui-data.c: Remove separator comments.
3642 * tui/tui-layout.c: Remove separator comments.
3643 * tui/tui-win.c: Remove separator comments.
3644 * tui/tui-wingeneral.c: Remove separator comments.
3645
43df9b2f
TT
36462019-09-20 Tom Tromey <tom@tromey.com>
3647
3648 * tui/tui.h (strcat_to_buf): Don't declare.
3649 * tui/tui.c (strcat_to_buf): Remove.
3650
7226433c
TT
36512019-09-20 Tom Tromey <tom@tromey.com>
3652
3653 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3654 from "fullname".
3655 * tui/tui-source.c (tui_source_window::set_contents)
3656 (tui_source_window::location_matches_p)
3657 (tui_source_window::maybe_update): Update.
3658
80df3337
TT
36592019-09-20 Tom Tromey <tom@tromey.com>
3660
3661 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3662 Update.
3663 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3664 prefix.
3665 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3666 (tui_data_window::line_from_reg_element_no)
3667 (tui_data_window::first_reg_element_no_inline)
3668 (tui_data_window::show_registers)
3669 (tui_data_window::show_register_group)
3670 (tui_data_window::display_registers_from)
3671 (tui_data_window::display_registers_from_line)
3672 (tui_data_window::first_data_item_displayed)
3673 (tui_data_window::delete_data_content_windows)
3674 (tui_data_window::erase_data_content)
3675 (tui_data_window::do_scroll_vertical)
3676 (tui_data_window::refresh_window)
3677 (tui_data_window::check_register_values): Update.
3678
9923f347
TT
36792019-09-20 Tom Tromey <tom@tromey.com>
3680
3681 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3682 (struct tui_locator_window) <full_name, proc_name>: Now
3683 std::string.
3684 * tui/tui-stack.c (tui_locator_window::make_status_line)
3685 (tui_locator_window::set_locator_fullname)
3686 (tui_locator_window::set_locator_info): Update.
3687 * tui/tui-source.c (tui_source_window::set_contents)
3688 (tui_source_window::showing_source_p): Update.
3689
b76251ab
TT
36902019-09-20 Tom Tromey <tom@tromey.com>
3691
3692 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3693 Don't call tui_locator_win_info_ptr.
3694
0891be08
TT
36952019-09-20 Tom Tromey <tom@tromey.com>
3696
3697 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3698
1b935acf
TT
36992019-09-20 Tom Tromey <tom@tromey.com>
3700
3701 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3702 height for locator.
3703 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3704 * tui/tui-layout.c (show_source_disasm_command, show_data)
3705 (show_source_or_disasm_and_command): Use 1 as height for locator.
3706
9abd8a65
TT
37072019-09-20 Tom Tromey <tom@tromey.com>
3708
3709 * tui/tui.c (tui_enable): Update.
3710 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3711 Update.
3712 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3713 Update.
3714 * tui/tui-data.c (win_resized): Now bool.
3715 (tui_win_resized): Return bool.
3716 (tui_set_win_resized_to): Accept a bool.
3717
b5457826
TT
37182019-09-20 Tom Tromey <tom@tromey.com>
3719
3720 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3721 Change type of "refresh_values_only".
3722 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3723 type of "refresh_values_only".
3724
6b915f7d
TT
37252019-09-20 Tom Tromey <tom@tromey.com>
3726
3727 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3728 std::string.
3729 (tui_disassemble): Add "pos" parameter.
3730 (tui_disasm_window::set_contents): Simplify.
3731
2ad52f6f
TT
37322019-09-20 Tom Tromey <tom@tromey.com>
3733
3734 * tui/tui-winsource.h (struct tui_source_window_base)
3735 <show_source_content>: Now private.
3736 * tui/tui-winsource.c
3737 (tui_source_window_base::show_source_content): Don't handle empty
3738 content case.
3739
b3b1bde6
TT
37402019-09-20 Tom Tromey <tom@tromey.com>
3741
3742 * tui/tui-layout.c (show_source_disasm_command)
3743 (show_source_or_disasm_and_command): Don't call
3744 show_source_content.
3745
71a25ed2
TT
37462019-09-20 Tom Tromey <tom@tromey.com>
3747
3748 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3749 Declare.
3750 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3751 from tui_make_status_line.
3752 (tui_locator_window::rerender): Update.
3753
f8532154
TT
37542019-09-20 Tom Tromey <tom@tromey.com>
3755
3756 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3757 (tui_locator_window::rerender): Update.
3758
2d81b349
TT
37592019-09-20 Tom Tromey <tom@tromey.com>
3760
3761 * tui/tui-winsource.h (struct tui_source_window_base)
3762 <~tui_source_window_base>: Don't declare.
3763 <fullname>: Remove.
3764 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3765 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3766 member.
3767 * tui/tui-source.c (tui_source_window::set_contents): Update.
3768 (tui_source_window::location_matches_p)
3769 (tui_source_window::maybe_update): Update.
3770
f14bec58
TT
37712019-09-20 Tom Tromey <tom@tromey.com>
3772
3773 * tui/tui-winsource.h (~tui_source_element): Remove.
3774 (tui_source_element): Update.
3775 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3776 * tui/tui-winsource.c (tui_show_source_line): Update.
3777 * tui/tui-source.c (tui_source_window::set_contents): Update.
3778 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3779
78d5933a
TT
37802019-09-20 Tom Tromey <tom@tromey.com>
3781
3782 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3783 declare.
3784 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3785 tui_clear_source_windows_detail.
3786 * tui/tui-winsource.h (struct tui_source_window_base)
3787 <clear_detail>: Don't declare.
3788 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3789 Remove.
3790 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3791
d4207696
TT
37922019-09-20 Tom Tromey <tromey@adacore.com>
3793
3794 PR ada/24919:
3795 * block.c (contained_in): Fix final return value.
3796
00f93c44
AM
37972019-09-20 Alan Modra <amodra@gmail.com>
3798
3799 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3800 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3801 (read_indirect_string_from_dwz): Use bfd accessor.
3802 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3803 * machoread.c (macho_symfile_read_all_oso): Likewise.
3804 * solib.c (solib_bfd_open): Likewise.
3805
e4153ae6
CB
38062019-09-19 Christian Biesinger <cbiesinger@google.com>
3807
3808 * eval.c: Move declaration of overload_resolution to...
3809 * value.h: ...here.
3810
c7ae7675
CB
38112019-09-19 Christian Biesinger <cbiesinger@google.com>
3812
3813 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3814 * arm-linux-tdep.c: Likewise.
3815 * arm-nbsd-nat.c: Likewise.
3816 * arm-tdep.h: Declare arm_apcs_32.
3817 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3818
e86f08d2
CB
38192019-09-19 Christian Biesinger <cbiesinger@google.com>
3820
3821 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3822 * dwarf2read.h: Declare dwarf_always_disassemble.
3823
f64e2f40
TV
38242019-09-19 Tom de Vries <tdevries@suse.de>
3825
3826 PR gdb/25009
3827 * source-cache.c (source_cache::ensure): Catch exception thrown during
3828 construction of the highlighter.
3829
fd361982
AM
38302019-09-18 Alan Modra <amodra@gmail.com>
3831
3832 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3833 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3834 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3835 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3836 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3837 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3838 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3839 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3840 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3841 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3842 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3843 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3844 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3845 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3846 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3847 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3848 * mi/mi-interp.c: Update throughout for bfd section macro and
3849 function changes.
3850 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3851 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3852
11061048
TT
38532019-09-18 Tom Tromey <tom@tromey.com>
3854
3855 * NEWS: Add entry.
3856 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3857 call rl_initialize.
3858 (tui_enable): Do not call rl_initialize.
3859
7a27b85f
CG
38602019-09-18 Christian Groessler <chris@groessler.org>
3861
3862 * alpha-linux-nat.c: Include gdbarch.h.
3863
f64eea3a
SM
38642019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3865
3866 * ui-file.c: Include cli/cli-style.h.
3867 (term_cli_styling): Remove cli_styling declaration.
3868
e6f7f6d1
AM
38692019-09-18 Alan Modra <amodra@gmail.com>
3870
3871 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3872 to bfd_asymbol_section.
3873
1d38e9d1
AM
38742019-09-18 Alan Modra <amodra@gmail.com>
3875
3876 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3877 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3878 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3879
90d92a63
AM
38802019-09-18 Alan Modra <amodra@gmail.com>
3881
3882 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3883 * spu-linux-nat.c (spu_bfd_open): Likewise.
3884
a3d181d2
CB
38852019-09-18 Christian Biesinger <cbiesinger@google.com>
3886
3887 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3888 to bool to match definition in dwarf2read.c.
3889
491144b5
CB
38902019-09-17 Christian Biesinger <cbiesinger@google.com>
3891
3892 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3893 (print_signatures): Likewise.
3894 (trust_pad_over_xvs): Likewise.
3895 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3896 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3897 * arm-linux-nat.c (arm_apcs_32): Likewise.
3898 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3899 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3900 * arm-tdep.c (arm_debug): Likewise.
3901 (arm_apcs_32): Likewise.
3902 * auto-load.c (debug_auto_load): Likewise.
3903 (auto_load_gdb_scripts): Likewise.
3904 (global_auto_load): Likewise.
3905 (auto_load_local_gdbinit): Likewise.
3906 (auto_load_local_gdbinit_loaded): Likewise.
3907 * auto-load.h (global_auto_load): Likewise.
3908 (auto_load_local_gdbinit): Likewise.
3909 (auto_load_local_gdbinit_loaded): Likewise.
3910 * breakpoint.c (disconnected_dprintf): Likewise.
3911 (breakpoint_proceeded): Likewise.
3912 (automatic_hardware_breakpoints): Likewise.
3913 (always_inserted_mode): Likewise.
3914 (target_exact_watchpoints): Likewise.
3915 (_initialize_breakpoint): Update.
3916 * breakpoint.h (target_exact_watchpoints): Change to bool.
3917 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3918 * cli/cli-cmds.c (trace_commands): Likewise.
3919 * cli/cli-cmds.h (trace_commands): Likewise.
3920 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3921 to bool*.
3922 * cli/cli-logging.c (logging_overwrite): Change to bool.
3923 (logging_redirect): Likewise.
3924 (debug_redirect): Likewise.
3925 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3926 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3927 to bool.
3928 <boolean_option_def>: Update.
3929 (struct flag_option_def): Change default type of Context to bool
3930 from int.
3931 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3932 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3933 (get_setshow_command_value_string): Likewise.
3934 * cli/cli-style.c (cli_styling): Change to bool.
3935 (source_styling): Likewise.
3936 * cli/cli-style.h (source_styling): Likewise.
3937 (cli_styling): Likewise.
3938 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3939 to bool.
3940 * command.h (var_types): Update comment.
3941 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3942 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3943 bool.
3944 (debug_compile_cplus_scopes): Likewise.
3945 * compile/compile-internal.h (compile_debug): Likewise.
3946 * compile/compile.c (compile_debug): Likewise.
3947 (struct compile_options) <raw>: Likewise.
3948 * cp-support.c (catch_demangler_crashes): Likewise.
3949 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3950 (usr_cmd_cris_dwarf2_cfi): Likewise.
3951 * csky-tdep.c (csky_debug): Likewise.
3952 * darwin-nat.c (enable_mach_exceptions): Likewise.
3953 * dcache.c (dcache_enabled_p): Likewise.
3954 * defs.h (info_verbose): Likewise.
3955 * demangle.c (demangle): Likewise.
3956 (asm_demangle): Likewise.
3957 * dwarf-index-cache.c (debug_index_cache): Likewise.
3958 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3959 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3960 * dwarf2read.c (check_physname): Likewise.
3961 (use_deprecated_index_sections): Likewise.
3962 (dwarf_always_disassemble): Likewise.
3963 * eval.c (overload_resolution): Likewise.
3964 * event-top.c (set_editing_cmd_var): Likewise.
3965 (exec_done_display_p): Likewise.
3966 * event-top.h (set_editing_cmd_var): Likewise.
3967 (exec_done_display_p): Likewise.
3968 * exec.c (write_files): Likewise.
3969 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3970 (debug_fbsd_nat): Likewise.
3971 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3972 Likewise.
3973 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3974 <backtrace_past_entry> Likewise.
3975 * gdb-demangle.h (demangle): Likewise.
3976 (asm_demangle): Likewise.
3977 * gdb_bfd.c (bfd_sharing): Likewise.
3978 * gdbcore.h (write_files): Likewise.
3979 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3980 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3981 * gdbthread.h (print_thread_events): Likewise.
3982 * gdbtypes.c (opaque_type_resolution): Likewise.
3983 (strict_type_checking): Likewise.
3984 * gnu-nat.c (gnu_debug_flag): Likewise.
3985 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3986 * guile/scm-param.c (pascm_variable): Add boolval.
3987 (add_setshow_generic): Update.
3988 (pascm_param_value): Update.
3989 (pascm_set_param_value_x): Update.
3990 * hppa-tdep.c (hppa_debug): Change to bool..
3991 * infcall.c (may_call_functions_p): Likewise.
3992 (coerce_float_to_double_p): Likewise.
3993 (unwind_on_signal_p): Likewise.
3994 (unwind_on_terminating_exception_p): Likewise.
3995 * infcmd.c (startup_with_shell): Likewise.
3996 * inferior.c (print_inferior_events): Likewise.
3997 * inferior.h (startup_with_shell): Likewise.
3998 (print_inferior_events): Likewise.
3999 * infrun.c (step_stop_if_no_debug): Likewise.
4000 (detach_fork): Likewise.
4001 (debug_displaced): Likewise.
4002 (disable_randomization): Likewise.
4003 (non_stop): Likewise.
4004 (non_stop_1): Likewise.
4005 (observer_mode): Likewise.
4006 (observer_mode_1): Likewise.
4007 (set_observer_mode): Update.
4008 (sched_multi): Change to bool.
4009 * infrun.h (debug_displaced): Likewise.
4010 (sched_multi): Likewise.
4011 (step_stop_if_no_debug): Likewise.
4012 (non_stop): Likewise.
4013 (disable_randomization): Likewise.
4014 * linux-tdep.c (use_coredump_filter): Likewise.
4015 (dump_excluded_mappings): Likewise.
4016 * linux-thread-db.c (auto_load_thread_db): Likewise.
4017 (check_thread_db_on_load): Likewise.
4018 * main.c (captured_main_1): Update.
4019 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4020 xx2_opt, boolean_opt>: Change to bool.
4021 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4022 * maint.c (maintenance_profile_p): Likewise.
4023 (per_command_time): Likewise.
4024 (per_command_space): Likewise.
4025 (per_command_symtab): Likewise.
4026 * memattr.c (inaccessible_by_default): Likewise.
4027 * mi/mi-main.c (mi_async): Likewise.
4028 (mi_async_1): Likewise.
4029 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4030 * nat/fork-inferior.h (startup_with_shell): Likewise.
4031 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4032 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4033 * nios2-tdep.c (nios2_debug): Likewise.
4034 * or1k-tdep.c (or1k_debug): Likewise.
4035 * parse.c (parser_debug): Likewise.
4036 * parser-defs.h (parser_debug): Likewise.
4037 * printcmd.c (print_symbol_filename): Likewise.
4038 * proc-api.c (procfs_trace): Likewise.
4039 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4040 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4041 (set_parameter_value): Update.
4042 (add_setshow_generic): Update.
4043 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4044 to bool*.
4045 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4046 int*.
4047 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4048 * record-btrace.c (record_btrace_target::store_registers): Update.
4049 * record-full.c (record_full_memory_query): Change to bool.
4050 (record_full_stop_at_limit): Likewise.
4051 * record-full.h (record_full_memory_query): Likewise.
4052 * remote-notif.c (notif_debug): Likewise.
4053 * remote-notif.h (notif_debug): Likewise.
4054 * remote.c (use_range_stepping): Likewise.
4055 (interrupt_on_connect): Likewise.
4056 (remote_break): Likewise.
4057 * ser-tcp.c (tcp_auto_retry): Likewise.
4058 * ser-unix.c (serial_hwflow): Likewise.
4059 * skip.c (debug_skip): Likewise.
4060 * solib-aix.c (solib_aix_debug): Likewise.
4061 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4062 (spu_auto_flush_cache_p): Likewise.
4063 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4064 Likewise.
4065 (struct info_print_options) <quiet>: Likewise.
4066 * symfile-debug.c (debug_symfile): Likewise.
4067 * symfile.c (auto_solib_add): Likewise.
4068 (separate_debug_file_debug): Likewise.
4069 * symfile.h (auto_solib_add): Likewise.
4070 (separate_debug_file_debug): Likewise.
4071 * symtab.c (basenames_may_differ): Likewise.
4072 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4073 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4074 (struct info_types_options) <quiet>: Likewise.
4075 * symtab.h (demangle): Likewise.
4076 (basenames_may_differ): Likewise.
4077 * target-dcache.c (stack_cache_enabled_1): Likewise.
4078 (code_cache_enabled_1): Likewise.
4079 * target.c (trust_readonly): Likewise.
4080 (may_write_registers): Likewise.
4081 (may_write_memory): Likewise.
4082 (may_insert_breakpoints): Likewise.
4083 (may_insert_tracepoints): Likewise.
4084 (may_insert_fast_tracepoints): Likewise.
4085 (may_stop): Likewise.
4086 (auto_connect_native_target): Likewise.
4087 (target_stop_and_wait): Update.
4088 (target_async_permitted): Change to bool.
4089 (target_async_permitted_1): Likewise.
4090 (may_write_registers_1): Likewise.
4091 (may_write_memory_1): Likewise.
4092 (may_insert_breakpoints_1): Likewise.
4093 (may_insert_tracepoints_1): Likewise.
4094 (may_insert_fast_tracepoints_1): Likewise.
4095 (may_stop_1): Likewise.
4096 * target.h (target_async_permitted): Likewise.
4097 (may_write_registers): Likewise.
4098 (may_write_memory): Likewise.
4099 (may_insert_breakpoints): Likewise.
4100 (may_insert_tracepoints): Likewise.
4101 (may_insert_fast_tracepoints): Likewise.
4102 (may_stop): Likewise.
4103 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4104 (make_thread_apply_all_options_def_group): Change argument from int*
4105 to bool*.
4106 (thread_apply_all_command): Update.
4107 (print_thread_events): Change to bool.
4108 * top.c (confirm): Likewise.
4109 (command_editing_p): Likewise.
4110 (history_expansion_p): Likewise.
4111 (write_history_p): Likewise.
4112 (info_verbose): Likewise.
4113 * top.h (confirm): Likewise.
4114 (history_expansion_p): Likewise.
4115 * tracepoint.c (disconnected_tracing): Likewise.
4116 (circular_trace_buffer): Likewise.
4117 * typeprint.c (print_methods): Likewise.
4118 (print_typedefs): Likewise.
4119 * utils.c (debug_timestamp): Likewise.
4120 (sevenbit_strings): Likewise.
4121 (pagination_enabled): Likewise.
4122 * utils.h (sevenbit_strings): Likewise.
4123 (pagination_enabled): Likewise.
4124 * valops.c (overload_resolution): Likewise.
4125 * valprint.h (struct value_print_options) <prettyformat_arrays,
4126 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4127 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4128 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4129 Likewise.
4130 * windows-nat.c (new_console): Likewise.
4131 (cygwin_exceptions): Likewise.
4132 (new_group): Likewise.
4133 (debug_exec): Likewise.
4134 (debug_events): Likewise.
4135 (debug_memory): Likewise.
4136 (debug_exceptions): Likewise.
4137 (useshell): Likewise.
4138 * windows-tdep.c (maint_display_all_tib): Likewise.
4139 * xml-support.c (debug_xml): Likewise.
4140
f1b620e9
MG
41412019-09-17 Mike Gulick <mgulick@mathworks.com>
4142
4143 * source.c (prepare_path_for_appending): New function.
4144 (openp): Make use of new function.
4145 (find_and_open_source): Search for the compilation directory and
4146 source file as a relative path beneath the directory search path.
4147
67f3ed6a
AB
41482019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4149
4150 * source-cache.c (source_cache::get_line_charpos): Catch
4151 exceptions and return false, this matches the behaviour documented
4152 in the header file.
4153
74332189
JB
41542019-09-17 Joel Brobecker <brobecker@adacore.com>
4155
4156 * ada-tasks.c (info_task): Remove quoting of the task's name.
4157
f2f24aa9
CB
41582019-09-16 Christian Biesinger <cbiesinger@google.com>
4159
4160 * symfile.c (auto_solib_add): Replace comment with a reference
4161 to the header file.
4162
6a062a93
CB
41632019-09-14 Christian Biesinger <cbiesinger@google.com>
4164
4165 * NEWS: Mention that gdb can now be compiled with Python 3
4166 on Windows.
4167
ec6c8338
AB
41682019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4169
4170 * maint.c (maint_print_section_data::maint_print_section_data):
4171 Force use of 'float log10 (float)' by casting the argument to
4172 float.
4173
aa17805f
AB
41742019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4175
4176 * maint.c: Add 'cmath' include.
4177 (struct maint_print_section_data): New structure.
4178 (print_section_index): New function.
4179 (print_bfd_section_info): Add header comment, small whitespace
4180 cleanup, and update to call new print_section_index function.
4181 (print_objfile_section_info): Likewise.
4182 (maint_obj_section_from_bfd_section): New function.
4183 (print_bfd_section_info_maybe_relocated): New function.
4184 (maintenance_info_sections): Add header comment, always use
4185 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4186
3dd9bb46
AB
41872019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4188
4189 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4190 inner scope, add check that the objfile has psymtabs before
4191 checking psymtabs_addrmap.
4192 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4193
4993045d
PW
41942019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4195
4196 * NEWS: Announce that Ada task names are now shown at more places,
4197 and between quotes (except in info task output).
4198 * gdb/ada-tasks.c (task_to_str): New function.
4199 (display_current_task_id): Call task_to_str.
4200 (task_command_1): Likewise.
4201 (print_ada_task_info): In non-mi mode, Properly align headers and data
4202 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4203
7a289707
RO
42042019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4205
4206 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4207 prstatus.pr_lwp.pr_info instead of making it up.
4208
f2aec7f6
CB
42092019-09-11 Christian Biesinger <cbiesinger@google.com>
4210
4211 * auto-load.c (auto_load_expand_dir_vars): Update.
4212 * defs.h (gdb_datadir): Change to std::string.
4213 (python_libdir): Likewise.
4214 (relocate_gdb_directory): Change return type to std::string.
4215 * guile/guile.c (gdbscm_data_directory): Update.
4216 (initialize_scheme_side): Update.
4217 * jit.c (jit_reader_dir): Change to std::string.
4218 (jit_reader_load_command): Update.
4219 * main.c (gdb_datadir): Change to std::string.
4220 (python_libdir): Likewise.
4221 (set_gdb_data_directory): Update.
4222 (relocate_path): Change to return std::string.
4223 (relocate_gdb_directory): Change to return std::string.
4224 (relocate_gdbinit_path_maybe_in_datadir): Update.
4225 (captured_main_1): Update.
4226 * python/python.c (do_start_initialization): Update.
4227 * top.c (show_gdb_datadir): Update.
4228 * xml-syscall.c (xml_init_syscalls_info): Update.
4229 (init_syscalls_info): Update.
4230
9224a013
CB
42312019-09-11 Christian Biesinger <cbiesinger@google.com>
4232
4233 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4234 out of get_init_files.
4235 (get_init_files): Update.
4236
f48cd836
CB
42372019-09-11 Christian Biesinger <cbiesinger@google.com>
4238
4239 * main.c (get_init_files): Change to use std::string.
4240 (captured_main_1): Update.
4241 (print_gdb_help): Update.
4242
9cab7ecd
AT
42432019-09-11 Ali Tamur <tamur@google.com>
4244
4245 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4246 implementation.
4247
67547d89
CB
42482019-09-11 Christian Biesinger <cbiesinger@google.com>
4249
4250 * dbxread.c (read_dbx_symtab): Update.
4251 * dwarf2read.c (load_partial_dies): Update.
4252 * mdebugread.c (parse_partial_symbols): Update.
4253 (handle_psymbol_enumerators): Update.
4254 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4255 * psymtab.c (add_psymbol_to_bcache): Likewise.
4256 (add_psymbol_to_list): Likewise.
4257 * symtab.c (symbol_set_names): Likewise.
4258 * symtab.h (symbol_set_names): Likewise.
4259 * xcoffread.c (scan_xcoff_symtab): Update.
4260
64b2d4a0
TT
42612019-09-11 Tom Tromey <tom@tromey.com>
4262
4263 * symfile-mem.c (symbol_file_add_from_memory): Use
4264 bfd_set_filename.
4265 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4266 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4267
3b00ef10
TT
42682019-09-10 Tom Tromey <tromey@adacore.com>
4269
4270 * dwarf-index-write.c (write_psymbols): Extend error message.
4271 (debug_names::insert): Add Ada code.
4272 (debug_names::write_psymbols): Remove Ada check.
4273 (debug_names) <m_string_obstack>: New member.
4274 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4275 (gdb_index_symbol_name_matcher::matches): Remove.
4276 (mapped_index_base::find_name_components_bounds): Add "lang"
4277 parameter.
4278 (mapped_index_base::build_name_components): Also split names
4279 according to Ada syntax.
4280 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4281 type of "match_callback".
4282 (check_match, check_find_bounds_finds)
4283 (dw2_expand_symtabs_matching): Update.
4284 (dw2_debug_names_iterator): Add new constructor.
4285 (dw2_debug_names_map_matching_symbols): New function.
4286 (dw2_debug_names_expand_symtabs_matching): Update.
4287 (dwarf2_debug_names_functions): Use
4288 dw2_debug_names_map_matching_symbols.
4289
aa391654
TT
42902019-09-10 Tom Tromey <tromey@adacore.com>
4291
4292 * dwarf2read.c (dw2_get_file_names_reader): Add the
4293 CU's file name to the results.
4294
b054970d
TT
42952019-09-10 Tom Tromey <tromey@adacore.com>
4296
4297 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4298 map_matching_symbols. Update.
4299 * dwarf2read.c (dw2_map_matching_symbols): Update.
4300 * psymtab.c (match_partial_symbol): Change type; update.
4301 (psym_map_matching_symbols): Likewise.
4302 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4303 type; update.
4304 * symfile.h (struct quick_symbol_functions)
4305 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4306 Remove "match".
4307
6a3dbf1b
TT
43082019-09-10 Tom Tromey <tromey@adacore.com>
4309
4310 * psymtab.c (map_block): Remove.
4311 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4312 * symtab.c (iterate_over_symbols_terminated): New function.
4313 * symtab.c (iterate_over_symbols_terminated): Declare.
4314
6969f124
TT
43152019-09-10 Tom Tromey <tromey@adacore.com>
4316
4317 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4318 * language.h (struct language_defn) <la_iterate_over_symbols>:
4319 Return bool.
4320 * symtab.c (iterate_over_symbols): Return bool.
4321 * symtab.h (iterate_over_symbols): Return bool.
4322
199b4314
TT
43232019-09-10 Tom Tromey <tromey@adacore.com>
4324
4325 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4326 (add_nonlocal_symbols): Update.
4327 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4328 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4329 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4330 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4331 Change type of "callback". Remove "data".
4332
a084a2a6
AT
4333
43342019-09-09 Ali Tamur <tamur@google.com>
4335
4336 * dwarf2read.c (comp_unit_head): Update comment.
4337 (dwarf2_dwo_name): New function declaration.
4338 (dwarf_unit_type_name): New function declaration.
4339 (read_comp_unit_head): Add support for new compilation units,
4340 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4341 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4342 (currently named as "signature") in their header. Also clarify error
4343 messages.
4344 (lookup_dwo_id): New function. Returns the dwo id of the given
4345 compile unit.
4346 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4347 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4348 functions.
4349 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4350 (dwarf2_dwo_name): Get the dwo name if present.
4351 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4352 purposes.
4353
25a2915e
TT
43542019-09-09 Tom Tromey <tom@tromey.com>
4355
4356 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4357
e4df0874
PW
43582019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4359
4360 * python/python.c (do_start_initialization): Make progname_copy static,
4361 to avoid a leak report.
4362
8634b462
TT
43632019-09-08 Tom Tromey <tom@tromey.com>
4364
4365 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4366
c7f839cb
SM
43672019-09-07 Simon Marchi <simon.marchi@efficios.com>
4368
4369 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4370 Change type to gdb::optional<block_enum>.
4371 (dw2_symtab_iter_init): Change block_index parameter type
4372 to gdb::optional<block_enum>.
4373 (dw2_lookup_symbol): Change block_index parameter
4374 type to block_enum.c
4375 (dw2_debug_names_lookup_symbol): Likewise.
4376 * psymtab.c (psym_lookup_symbol): Likewise.
4377 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4378 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4379 Likewise.
4380
ead0e69a
CB
43812019-09-06 Christian Biesinger <cbiesinger@google.com>
4382
4383 * defs.h (relocate_gdb_directory): Change int to bool in
4384 signature and rename flag to relocatable.
4385 * main.c (relocate_path): Likewise.
4386 (relocate_gdb_directory): Likewise.
4387
b16c44de
AM
43882019-09-06 Alan Modra <amodra@gmail.com>
4389
4390 * coffread.c (coff_symfile_read): Constify filename variable.
4391 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4392 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4393 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4394 * solib.c (reload_shared_libraries_1): Likewise.
4395 * symfile.c (reread_symbols): Likewise.
4396 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4397 * solib-darwin.c (darwin_bfd_open): Likewise.
4398 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4399
06ff036e
AB
44002019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4401
4402 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4403 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4404
4e962e74
TT
44052019-09-03 Tom Tromey <tromey@adacore.com>
4406
4407 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4408 types.
4409 (has_negatives): Unbias a range type bound.
4410 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4411 * gdbtypes.c (operator==): Handle new field.
4412 (create_range_type): Add "bias" parameter.
4413 (create_static_range_type, resolve_dynamic_range): Update.
4414 * gdbtypes.h (struct range_bounds) <bias>: New member.
4415 (create_range_type): Add bias parameter.
4416 * printcmd.c (print_scalar_formatted): Unbias range types.
4417 * value.c (unpack_long): Unbias range types.
4418 (pack_long): Bias range types.
4419
d90b8f26
AH
44202019-09-02 Alan Hayward <alan.hayward@arm.com>
4421
4422 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4423 probe arguments.
4424
fe01123e
AH
44252019-09-02 Alan Hayward <alan.hayward@arm.com>
4426
4427 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4428 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4429 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4430 (compile_probe_arg): Likewise.
4431 * probe.h (get_argument_count): Likewise.
4432 * solib-svr4.c (solib_event_probe_action): Likewise.
4433 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4434
e661ef01
AH
44352019-09-02 Alan Hayward <alan.hayward@arm.com>
4436
4437 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4438 code to here...
4439 (svr4_create_solib_event_breakpoints): ...from here.
4440
47a536d9
SDJ
44412019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4442
4443 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4444 suffix from warning message.
4445
d6a00eba
TT
44462019-08-30 Tom Tromey <tom@tromey.com>
4447
4448 * tui/tui-winsource.h (struct tui_source_window_base)
4449 <refresh_all>: Don't declare.
4450 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4451 Remove.
4452 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4453 tui_show_locator_content.
4454 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4455 declare.
4456 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4457 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4458 declare.
4459
55b2657b
TT
44602019-08-30 Tom Tromey <tom@tromey.com>
4461
4462 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4463
12a8555a
TT
44642019-08-30 Tom Tromey <tom@tromey.com>
4465
4466 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4467 Remove unnecessary forward declarations.
4468
900ac242
TT
44692019-08-30 Tom Tromey <tom@tromey.com>
4470
4471 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4472 rerender.
4473 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4474 tui_show_locator_content.
4475
99ab33fb
TT
44762019-08-30 Tom Tromey <tom@tromey.com>
4477
4478 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4479 (tui_locator_window::rerender): Rewrite using body of previous
4480 tui_show_locator_content.
4481
e594a5d1
TT
44822019-08-30 Tom Tromey <tom@tromey.com>
4483
4484 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4485 set_locator_fullname>: New methods.
4486 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4487 Rename from tui_set_locator_fullname.
4488 (tui_locator_window::set_locator_info): Rename from
4489 tui_set_locator_info. Return bool.
4490 (tui_update_locator_fullname, tui_show_frame_info): Update.
4491
715bb467
TT
44922019-08-30 Tom Tromey <tom@tromey.com>
4493
4494 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4495
772f3f03
TT
44962019-08-30 Tom Tromey <tom@tromey.com>
4497
4498 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4499 call touchwin.
4500
108e13ab
TT
45012019-08-30 Tom Tromey <tom@tromey.com>
4502
4503 * tui/tui-wingeneral.c (box_win): Assume win_info and
4504 win_info->handle cannot be NULL.
4505
cdaa6eb4
TT
45062019-08-30 Tom Tromey <tom@tromey.com>
4507
4508 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4509 refresh_window>: Declare.
4510 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4511 resize.
4512 (tui_data_item_window::rerender): Rename from
4513 tui_display_register.
4514 (tui_data_item_window::refresh_window): New method.
4515 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4516 no-op.
4517
89df7f90
TT
45182019-08-30 Tom Tromey <tom@tromey.com>
4519
4520 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4521 regs_column_count, current_group>: Move later. Now private.
4522 <get_current_group>: New method.
4523 * tui/tui-regs.c (tui_reg_command): Update.
4524 * tui/tui-layout.c (tui_set_layout): Update.
4525
1bf2866a
TT
45262019-08-30 Tom Tromey <tom@tromey.com>
4527
4528 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4529 (tui_data_window::rerender): Don't call
4530 check_and_display_highlight_if_needed.
4531 (tui_data_window::refresh_all): Remove call to
4532 erase_data_content.
4533
0670413d
TT
45342019-08-30 Tom Tromey <tom@tromey.com>
4535
4536 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4537 (tui_data_window::display_registers_from)
4538 (tui_data_window::display_reg_element_at_line)
4539 (tui_data_window::display_registers_from_line): Remove checks of
4540 "empty".
4541
18bb55c7
TT
45422019-08-30 Tom Tromey <tom@tromey.com>
4543
4544 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4545 Don't declare.
4546 * tui/tui-regs.c (tui_data_window::show_registers): Call
4547 rerender.
4548 (tui_data_window::rerender): Rename from display_all_data.
4549 (tui_data_window::rerender): Remove old implementation.
4550
1f6d2f10
TT
45512019-08-30 Tom Tromey <tom@tromey.com>
4552
4553 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4554 text.
4555 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4556
16d01f9c
BW
45572019-08-29 Bernhard Wodok <barto@gmx.net>
4558 Sergio Durigan Junior <sergiodj@redhat.com>
4559
4560 PR win32/24284
4561 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4562
d8f27c60
AB
45632019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4564
4565 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4566 when searching for types.
4567
1f20c35e
AB
45682019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4569
4570 * f-lang.c (f_language_defn): Use f_print_typedef.
4571 * f-lang.h (f_print_typedef): Declare.
4572 * f-typeprint.c (f_print_typedef): Define.
4573
550105b7
CB
45742019-08-27 Christian Biesinger <cbiesinger@google.com>
4575
4576 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4577
4acfdd20
AB
45782019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4579
4580 * cli/cli-utils.c (info_print_options_defs): Delete.
4581 (make_info_print_options_def_group): Delete.
4582 (extract_info_print_options): Delete.
4583 (info_print_command_completer): Delete.
4584 (info_print_args_help): Add extra parameter, and optionally
4585 include text about -n flag.
4586 * cli/cli-utils.h (struct info_print_options): Delete.
4587 (extract_info_print_options): Delete declaration.
4588 (info_print_command_completer): Delete declaration.
4589 (info_print_args_help): Add extra parameter, extend header
4590 comment.
4591 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4592 search_symbols.
4593 * stack.c (struct info_print_options): New type.
4594 (info_print_options_defs): New file scoped variable.
4595 (make_info_print_options_def_group): New static function.
4596 (info_print_command_completer): New static function.
4597 (info_locals_command): Update to use new local functions.
4598 (info_args_command): Likewise.
4599 (_initialize_stack): Add extra parameter to calls to
4600 info_print_args_help.
4601 * symtab.c (search_symbols): Add extra parameter, use this to
4602 possibly excluse non-debug symbols.
4603 (symtab_symbol_info): Add extra parameter, which is passed on to
4604 search_symbols.
4605 (struct info_print_options): New type.
4606 (info_print_options_defs): New file scoped variable.
4607 (make_info_print_options_def_group): New static function.
4608 (info_print_command_completer): New static function.
4609 (info_variables_command): Update to use local functions, and pass
4610 extra parameter through to symtab_symbol_info.
4611 (info_functions_command): Likewise.
4612 (info_types_command): Pass additional argument through to
4613 symtab_symbol_info.
4614 (rbreak_command): Pass extra argument to search_symbols.
4615 (_initialize_symtab): Add extra arguments for calls to
4616 info_print_args_help, and update help text for 'info variables',
4617 'whereis', and 'info functions' commands.
4618 * symtab.h (search_symbols): Add extra argument to declaration.
4619 * NEWS: Mention new flags.
4620
9aa55206
CB
46212019-08-26 Christian Biesinger <cbiesinger@google.com>
4622
4623 * symtab.c (lookup_static_symbol): Call the new function (and move
4624 it down to be next to lookup_global_symbol).
4625 (struct global_sym_lookup_data): Add block_enum member and rename to...
4626 (struct global_or_static_sym_lookup_data): ...this.
4627 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4628 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4629 (lookup_symbol_global_or_static_iterator_cb): ...this.
4630 (lookup_global_or_static_symbol): New function.
4631 (lookup_global_symbol): Call new function.
4632
5c31b358
TV
46332019-08-26 Tom de Vries <tdevries@suse.de>
4634
4635 PR c++/24852
4636 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4637 when pc_probe.prob == NULL.
4638
23c13d42
SM
46392019-08-25 Simon Marchi <simon.marchi@efficios.com>
4640
4641 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4642 variable symbol_linkage to symbol_linkage_.
4643
beadd3e8
SM
46442019-08-25 Simon Marchi <simon.marchi@efficios.com>
4645
4646 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4647 represent whether the symbol is static, dynamic, or we don't
4648 know.
4649
e3ec872f
YS
46502019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4651
4652 * gdb/rx-tdep.c (rx_register_names): New.
4653 (rx_register_name): Delete.
4654 (rx_psw_type): Delete.
4655 (rx_fpsw_type): Delete.
4656 (rx_register_type): Delete.
4657 (rx_gdbarch_init): Convert target-descriptions.
4658 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4659 * gdb/features/Makefile: Add rx.xml.
4660 * gdb/features/rx.xml: New.
4661 * gdb/features/rx.c: Generated.
4662 * gdb/NEWS: Mention target description support.
4663
d0509ba4
CB
46642019-08-22 Christian Biesinger <cbiesinger@google.com>
4665
4666 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4667 *slot_ptr.
4668
2d41fa11
SDJ
46692019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4670
4671 * configure.ac: Don't check for 'dlfcn.h' (moved to
4672 gdbsupport/common.m4).
4673 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4674 'gdbsupport/'.
4675 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4676 * compile/compile-c-support.c: Include
4677 'gdbsupport/gdb-dlfcn.h'.
4678 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4679 * gdb-dlfcn.c: Move to...
4680 * gdbsupport/gdb-dlfcn.c: ... here.
4681 * gdb-dlfcn.h: Move to...
4682 * gdbsupport/gdb-dlfcn.h: ... here.
4683
de8af808
SL
46842019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4685
4686 * nios2-tdep.c (struct reg_value): Improve comments. Make
4687 the offset field signed.
4688
27204489
CB
46892019-08-22 Christian Biesinger <cbiesinger@google.com>
4690
4691 * python/lib/gdb/__init__.py (_execute_file): New function.
4692 * python/python.c (python_run_simple_file): Call gdb._execute_file
4693 on Windows.
4694
43771869
AB
46952019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4696
4697 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4698 all uses as this was never set to anything but a zero value.
4699
26c957f1
PA
47002019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4701
4702 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4703
c07aae6e
CB
47042019-08-21 Christian Biesinger <cbiesinger@google.com>
4705
4706 * tui/tui-data.h (tui_gen_win_info): Add an =default
4707 move constructor, required by some GCC versions.
4708
3960cb7a
JF
47092019-08-21 Jinke Fan <fanjinke51@yeah.net>
4710
4711 * go32-nat.c (go32_sysinfo): Add hygon_p.
4712
04c72a68
TT
47132019-08-20 Tom Tromey <tom@tromey.com>
4714
4715 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4716 line_from_reg_element_no, first_reg_element_no_inline,
4717 display_all_data, delete_data_content_windows,
4718 erase_data_content>: Now private.
4719
072272ce
TT
47202019-08-20 Tom Tromey <tom@tromey.com>
4721
4722 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4723 (tui_unhighlight_win, tui_highlight_win)
4724 (tui_win_info::make_window): Update.
4725 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4726
973961bd
TT
47272019-08-20 Tom Tromey <tom@tromey.com>
4728
4729 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4730 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4731 (MAX_PID_WIDTH): Move to tui-stack.c.
4732 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4733 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4734 (MAX_PID_WIDTH): Move from tui-data.h.
4735
ab0e1f1a
TT
47362019-08-20 Tom Tromey <tom@tromey.com>
4737
4738 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4739 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4740 (box_win): Update.
4741 (tui_gen_win_info::make_window): Rename from tui_make_window.
4742 (tui_win_info::make_window): New method.
4743 (tui_gen_win_info::make_visible): Update.
4744 * tui/tui-source.c (tui_source_window::set_contents): Update.
4745 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4746 (tui_data_window::display_registers_from): Update.
4747 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4748 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4749 Declare.
4750 <can_box>: Remove.
4751 <title>: Remove.
4752 (struct tui_win_info) <make_window>: Declare.
4753 <can_box>: Now virtual.
4754 <title>: New member.
4755 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4756 * tui/tui-command.c (tui_cmd_window::resize): Update.
4757
100c2bf3
TT
47582019-08-20 Tom Tromey <tom@tromey.com>
4759
4760 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4761 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4762 (tui_data_window::check_register_values): Update.
4763
fa4dc567
TT
47642019-08-20 Tom Tromey <tom@tromey.com>
4765
4766 * tui/tui-regs.h (struct tui_data_window): Use
4767 DISABLE_COPY_AND_ASSIGN.
4768 <regs_content>: Change type, removing unique_ptr.
4769 <tui_data_window>: Add move constructor.
4770 * tui/tui-regs.c (tui_data_window::show_registers)
4771 (tui_data_window::show_register_group)
4772 (tui_data_window::display_registers_from)
4773 (tui_data_window::display_registers_from)
4774 (tui_data_window::first_data_item_displayed)
4775 (tui_data_window::delete_data_content_windows)
4776 (tui_data_window::rerender, tui_data_window::refresh_window)
4777 (tui_data_window::check_register_values): Update.
4778
ca02d7c8
TT
47792019-08-20 Tom Tromey <tom@tromey.com>
4780
4781 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4782 show_register_group>: Declare.
4783 (tui_show_register_group): Don't declare.
4784 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4785 tui_show_registers.
4786 (tui_data_window::show_register_group): Rename from
4787 tui_show_register_group.
4788 (tui_data_window::check_register_values, tui_reg_command):
4789 Update.
4790 * tui/tui-layout.c (tui_set_layout): Update.
4791
63356bfd
TT
47922019-08-20 Tom Tromey <tom@tromey.com>
4793
4794 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4795 Declare.
4796 (tui_check_register_values): Don't declare.
4797 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4798 from tui_check_register_values.
4799 * tui/tui-hooks.c (tui_register_changed): Update.
4800
42cc14a7
TT
48012019-08-20 Tom Tromey <tom@tromey.com>
4802
4803 * tui/tui-regs.c (tui_reg_layout): Move later.
4804 (tui_show_registers): Don't enable TUI mode or change layout.
4805
b9ad3686
TT
48062019-08-20 Tom Tromey <tom@tromey.com>
4807
4808 * tui/tui-regs.h (struct tui_data_item_window)
4809 <~tui_data_item_window>: Remove.
4810 <content>: Now a unique_xmalloc_ptr.
4811 * tui/tui-regs.c (tui_register_format): Return a
4812 unique_xmalloc_ptr.
4813 (tui_get_register): Update.
4814 (~tui_data_item_window): Remove.
4815 (tui_data_window::display_registers_from, tui_display_register):
4816 Update.
4817 * tui/tui-io.h (tui_expand_tabs): Update.
4818 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4819 Remove "col" parameter.
4820
8e114aab
TT
48212019-08-20 Tom Tromey <tom@tromey.com>
4822
4823 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4824 field.
4825 * tui/tui-regs.c (~tui_data_item_window): Update.
4826
1a4f81dd
TT
48272019-08-20 Tom Tromey <tom@tromey.com>
4828
4829 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4830 earlier.
4831
0f8d8876
TT
48322019-08-20 Tom Tromey <tom@tromey.com>
4833
4834 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4835
605dc2c2
TT
48362019-08-20 Tom Tromey <tom@tromey.com>
4837
4838 * tui/tui-source.h (struct tui_source_window): Update.
4839 * tui/tui-regs.c (tui_show_registers): Update.
4840 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4841 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4842 (NO_REGS_STRING): Remove defines.
4843
aedbe3bb
CM
48442019-08-20 Conrad Meyer <cem@FreeBSD.org>
4845
4846 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4847 unnecessary thread walk if remote doesn't support the packet.
4848
7ce8f214
TT
48492019-08-19 Tom Tromey <tromey@adacore.com>
4850
4851 * python/py-value.c (value_has_field): Fix indentation.
4852
f21c2bd7
TT
48532019-08-19 Tom Tromey <tromey@adacore.com>
4854
4855 * printcmd.c (do_one_display, info_display_command): Update.
4856 * block.h (contained_in): Return bool. Add allow_nested
4857 parameter.
4858 * block.c (contained_in): Return bool. Add allow_nested
4859 parameter.
4860
d806ea2d
TT
48612019-08-19 Tom Tromey <tom@tromey.com>
4862
4863 * configure: Rebuild.
4864 * configure.ac: Disallow the combination of -static-libstdc++ and
4865 source highlight.
4866 * source-cache.c (get_language_name): Handle rust.
4867 (source_cache::get_source_lines): Ignore highlighting exceptions.
4868
398fdd60
TT
48692019-08-16 Tom Tromey <tom@tromey.com>
4870
4871 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4872 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4873 (struct tui_source_window_base) <make_visible, refresh_window,
4874 resize>: Remove methods.
4875 <execution_info>: Remove field.
4876 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4877 (tui_show_source_line, tui_source_window_base)
4878 (~tui_source_window_base): Update.
4879 (tui_source_window_base::resize)
4880 (tui_source_window_base::make_visible)
4881 (tui_source_window_base::refresh_window): Remove.
4882 (tui_source_window_base::update_exec_info): Update.
4883 * tui/tui-source.c (tui_source_window::set_contents): Update.
4884 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4885
e699d331
TT
48862019-08-16 Tom Tromey <tom@tromey.com>
4887
4888 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4889 deprecated_query_hook.
4890
bb01dbfc
TT
48912019-08-16 Tom Tromey <tom@tromey.com>
4892
4893 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4894 (tui_update_source_windows_with_line): Update.
4895 * tui/tui-source.h (struct tui_source_window)
4896 <show_symtab_source>: Declare.
4897 (tui_show_symtab_source): Don't declare.
4898 * tui/tui-source.c (tui_show_symtab_source): Rename from
4899 tui_show_symtab_source.
4900
81c82c4b
TT
49012019-08-16 Tom Tromey <tom@tromey.com>
4902
4903 * tui/tui-winsource.h (struct tui_source_window_base)
4904 <set_contents>: Declare.
4905 * tui/tui-winsource.c
4906 (tui_source_window_base::update_source_window_as_is): Update.
4907 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4908 Declare.
4909 (tui_set_source_content): Don't declare.
4910 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4911 tui_set_source_content.
4912 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4913 Declare.
4914 (tui_set_disassem_content): Don't declare.
4915 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4916 tui_set_disassem_content.
4917
2ddaf614
TT
49182019-08-16 Tom Tromey <tom@tromey.com>
4919
4920 * tui/tui-winsource.h (struct tui_source_window_base)
4921 <update_breakpoint_info>: Declare.
4922 (tui_update_breakpoint_info): Don't declare.
4923 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4924 (tui_update_all_breakpoint_info): Update.
4925 (tui_source_window_base::update_breakpoint_info): Rename from
4926 tui_update_breakpoint_info.
4927 (tui_source_window_base::update_exec_info): Update.
4928
017f9828
TT
49292019-08-16 Tom Tromey <tom@tromey.com>
4930
4931 * tui/tui-winsource.h (struct tui_source_window_base)
4932 <update_source_window>: Declare.
4933 (tui_update_source_window): Don't declare.
4934 * tui/tui-winsource.c
4935 (tui_source_window_base::update_source_window): Rename from
4936 tui_update_source_window.
4937 (tui_source_window_base::rerender): Update.
4938 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4939 * tui/tui-disasm.c (tui_show_disassem)
4940 (tui_show_disassem_and_update_source)
4941 (tui_disasm_window::maybe_update): Update.
4942
ed8358e9
TT
49432019-08-16 Tom Tromey <tom@tromey.com>
4944
4945 * tui/tui-winsource.h (struct tui_source_window_base)
4946 <update_source_window_as_is>: Declare.
4947 (tui_update_source_window_as_is): Don't declare.
4948 * tui/tui-winsource.c (tui_update_source_window): Update
4949 (tui_source_window_base::update_source_window_as_is): Rename from
4950 tui_update_source_window_as_is.
4951 (tui_source_window_base::refill): Update.
4952 * tui/tui-source.c (tui_show_symtab_source): Update.
4953 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4954 Update.
4955
20149b6b
TT
49562019-08-16 Tom Tromey <tom@tromey.com>
4957
4958 * tui/tui-winsource.h (tui_update_source_window)
4959 (tui_update_source_window_as_is): Remove "noerror" parameter.
4960 * tui/tui-winsource.c (tui_update_source_window)
4961 (tui_update_source_window_as_is): Remove "noerror" parameter.
4962 (tui_update_source_windows_with_addr)
4963 (tui_update_source_windows_with_line)
4964 (tui_source_window_base::rerender)
4965 (tui_source_window_base::refill): Update.
4966 * tui/tui-source.h (tui_set_source_content)
4967 (tui_show_symtab_source): Remove "noerror" parameter.
4968 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4969 parameter.
4970 (tui_show_symtab_source): Likewise.
4971 (tui_source_window::maybe_update): Update.
4972 * tui/tui-disasm.c (tui_show_disassem)
4973 (tui_show_disassem_and_update_source)
4974 (tui_disasm_window::do_scroll_vertical)
4975 (tui_disasm_window::maybe_update): Update.
4976
2d83e710
TT
49772019-08-16 Tom Tromey <tom@tromey.com>
4978
4979 * tui/tui.c (tui_is_window_visible): Update.
4980 * tui/tui-wingeneral.c (tui_make_window)
4981 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4982 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4983 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4984 (tui_set_win_height_command, parse_scrolling_args): Update.
4985 * tui/tui-source.c (tui_source_window::style_changed): Update.
4986 * tui/tui-regs.c (tui_show_registers)
4987 (tui_data_window::first_data_item_displayed)
4988 (tui_data_window::delete_data_content_windows)
4989 (tui_check_register_values, tui_reg_command): Update.
4990 * tui/tui-disasm.c (tui_show_disassem): Update.
4991 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4992 method.
4993 <is_visible>: Remove field.
4994 * tui/tui-data.c (tui_next_win, tui_prev_win)
4995 (tui_delete_invisible_windows): Update.
4996
d4ab829a
TT
49972019-08-16 Tom Tromey <tom@tromey.com>
4998
4999 * tui/tui-winsource.h (struct tui_source_window_base)
5000 <m_has_locator>: Remove.
5001 * tui/tui-layout.c (show_source_disasm_command, show_data)
5002 (show_source_or_disasm_and_command): Update.
5003
aa7ca1bb
AH
50042019-08-16 Alan Hayward <alan.hayward@arm.com>
5005
5006 * NEWS (Other MI changes): New subsection.
5007 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5008 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5009 * arch-utils.c (default_get_pc_address_flags): New function.
5010 * arch-utils.h (default_get_pc_address_flags): New declaration.
5011 * gdbarch.sh: Add get_pc_address_flags.
5012 * gdbarch.c: Regenerate.
5013 * gdbarch.h: Likewise.
5014 * stack.c (print_pc): New function.
5015 (print_frame_info) (print_frame): Call print_pc.
5016
6eac171f
TV
50172019-08-16 Tom de Vries <tdevries@suse.de>
5018
5019 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5020 print_objfile_section_info.
5021
3df505f6
TT
50222019-08-15 Tom Tromey <tom@tromey.com>
5023
5024 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5025 calling update_cmdwin_start_line.
5026 * tui/tui-winsource.h (struct tui_source_window_base)
5027 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5028 <rerender>: Declare.
5029 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5030 Call rerender.
5031 (tui_source_window_base::set_new_height): Remove.
5032 (tui_source_window_base::rerender): Rename from
5033 do_make_visible_with_new_height.
5034 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5035 resize method.
5036 (tui_win_info::make_invisible_and_set_new_height)
5037 (tui_win_info::make_visible_with_new_height): Remove.
5038 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5039 Declare.
5040 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5041 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5042 do_make_visible_with_new_height>: Don't declare.
5043 <rerender>: Declare.
5044 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5045 set_new_height.
5046 (tui_data_window::do_make_visible_with_new_height): Remove.
5047 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5048 call tui_show_locator_content.
5049 (tui_gen_win_info::resize): Call rerender.
5050 (show_source_or_disasm_and_command): Don't call
5051 tui_show_locator_content.
5052 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5053 method.
5054 (struct tui_win_info) <rerender>: Declare.
5055 <set_new_height, make_invisible_and_set_new_height,
5056 make_visible_with_new_height>: Don't declare.
5057 * tui/tui-data.c (tui_win_list::rerender): New method.
5058 * tui/tui-command.h (struct tui_cmd_window)
5059 <do_make_visible_with_new_height>: Don't declare.
5060 * tui/tui-command.c
5061 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5062
272560b5
TT
50632019-08-15 Tom Tromey <tromey@adacore.com>
5064
5065 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5066 * ada-lang.c (ada_enum_name): Likewise.
5067
08235187
CB
50682019-08-15 Christian Biesinger <cbiesinger@google.com>
5069
5070 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5071 leading underscore.
5072 (GdbOutputErrorFile): Likewise.
5073 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5074 accordingly.
5075 (execute_unwinders): Rename to have a leading underscore.
5076 (auto_load_packages): Likewise.
5077 (global scope): Adjust call to auto_load_packages accordingly.
5078 (GdbSetPythonDirectory): Likewise.
5079 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5080 instead of execute_unwinders.
5081
db502012
TT
50822019-08-15 Tom Tromey <tom@tromey.com>
5083
5084 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5085 (show_data): Don't change window visibility.
5086 (tui_gen_win_info::resize): Remove special case for command
5087 window. Use wresize, when available.
5088 (show_source_or_disasm_and_command): Don't change window
5089 visibility.
5090 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5091 <make_visible>: New method.
5092 * tui/tui-command.c (tui_cmd_window::resize): New method.
5093
3891b65e
TT
50942019-08-15 Tom Tromey <tom@tromey.com>
5095
5096 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5097 (struct tui_source_windows): New.
5098 * tui/tui-winsource.c (tui_display_main): Update.
5099 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5100 (new_height_ok, parse_scrolling_args): Update.
5101 * tui/tui-layout.c (show_layout, show_data): Update.
5102 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5103 (tui_add_to_source_windows): Don't declare.
5104 * tui/tui-data.c (source_windows, tui_source_windows)
5105 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5106
ee556432
TT
51072019-08-15 Tom Tromey <tom@tromey.com>
5108
5109 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5110 Rename from reset.
5111 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5112 * tui/tui-layout.c (show_source_disasm_command, show_data):
5113 Update.
5114 (tui_gen_win_info::resize): Rename.
5115 (show_source_or_disasm_and_command): Update.
5116 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5117 reset.
5118
46f438e3
TT
51192019-08-15 Tom Tromey <tom@tromey.com>
5120
5121 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5122 * tui/tui-interp.c (tui_interp::init): Don't call
5123 tui_initialize_static_data.
5124 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5125
f4ce562c
TT
51262019-08-15 Tom Tromey <tom@tromey.com>
5127
5128 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5129 examine tui_win_list.
5130
c398c3d0
TT
51312019-08-15 Tom Tromey <tom@tromey.com>
5132
5133 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5134 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5135 tui_clear_source_content.
5136 (tui_clear_source_content): Remove.
5137 (tui_source_window_base::do_erase_source_content): Hoist call to
5138 content.clear().
5139 * tui/tui-stack.c (tui_show_frame_info): Don't call
5140 tui_clear_source_content.
5141
e25d2004
TT
51422019-08-15 Tom Tromey <tom@tromey.com>
5143
5144 * tui/tui-winsource.h (struct tui_source_window_base)
5145 <do_erase_source_content>: New method.
5146 <erase_source_content>: New method.
5147 (tui_erase_source_content): Don't declare.
5148 * tui/tui-winsource.c (tui_clear_source_content): Update.
5149 (tui_source_window_base::do_erase_source_content): Rename from
5150 tui_erase_source_content.
5151 (tui_source_window_base::show_source_content): Update.
5152 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5153 * tui/tui-source.h (struct tui_source_window)
5154 <erase_source_content>: New method.
5155 * tui/tui-disasm.h (struct tui_disasm_window)
5156 <erase_source_content>: New method.
5157
002f15c2
TT
51582019-08-15 Tom Tromey <tom@tromey.com>
5159
5160 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5161 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5162 constructor.
5163 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5164 * tui/tui-source.c (tui_set_source_content): Update.
5165 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5166
c9033fe8
TT
51672019-08-15 Tom Tromey <tom@tromey.com>
5168
5169 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5170 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5171 tui-source.c.
5172 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5173 Declare.
5174 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5175 method.
5176 (tui_source_window::maybe_update): Update.
5177
088f37dd
TT
51782019-08-15 Tom Tromey <tom@tromey.com>
5179
5180 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5181 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5182 tui-disasm.c.
5183 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5184 Declare.
5185 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5186 method.
5187 (tui_disasm_window::maybe_update): Update.
5188
a54700c6
TT
51892019-08-15 Tom Tromey <tom@tromey.com>
5190
5191 * tui/tui-winsource.h (struct tui_source_window_base)
5192 <maybe_update>: Declare.
5193 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5194 method.
5195 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5196 Declare.
5197 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5198 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5199 Declare.
5200 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5201
e2a678a5
TT
52022019-08-15 Tom Tromey <tom@tromey.com>
5203
5204 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5205
f2dda477
TT
52062019-08-15 Tom Tromey <tom@tromey.com>
5207
5208 * tui/tui-wingeneral.c: Include tui-stack.h.
5209 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5210 (struct tui_locator_window): Move from tui-data.h.
5211 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5212 (tui_initialize_static_data): Move from tui-data.c.
5213 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5214 (struct tui_locator_window): Move to tui-stack.c.
5215 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5216 (tui_initialize_static_data): Move to tui-stack.c.
5217
ed4a1084
TT
52182019-08-15 Tom Tromey <tom@tromey.com>
5219
5220 * tui/tui-layout.c (show_source_disasm_command)
5221 (show_source_or_disasm_and_command): Use make_visible method, not
5222 tui_make_window.
5223 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5224 Remove.
5225
65962b20
TT
52262019-08-15 Tom Tromey <tom@tromey.com>
5227
5228 * tui/tui-wingeneral.h (tui_make_window): Update.
5229 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5230 parameter.
5231 (tui_gen_win_info::make_visible): Update.
5232 * tui/tui-regs.c (tui_data_window::display_registers_from):
5233 Update.
5234 * tui/tui-layout.c (show_source_disasm_command)
5235 (show_source_or_disasm_and_command): Update.
5236 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5237 (enum tui_box): Remove.
5238 (struct tui_win_info) <can_box>: New method.
5239 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5240 method.
5241
2208ee91
TV
52422019-08-15 Tom de Vries <tdevries@suse.de>
5243
5244 * linux-nat-trad.c: Include gdbarch.h.
5245
75faf5c4
AH
52462019-08-14 Alan Hayward <alan.hayward@arm.com>
5247
5248 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5249 register sizes.
5250
b1c896b3
TT
52512019-08-14 Tom Tromey <tromey@adacore.com>
5252
5253 * darwin-nat.c: Include gdbarch.h.
5254 * darwin-nat-info.c: Include gdbarch.h.
5255
6405cd73
TT
52562019-08-13 Tom Tromey <tom@tromey.com>
5257
5258 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5259 Remove.
5260 * tui/tui-data.c (tui_initialize_static_data): Update.
5261
5216580d
TT
52622019-08-13 Tom Tromey <tom@tromey.com>
5263
5264 * tui/tui-winsource.h (struct tui_exec_info_window)
5265 <~tui_exec_info_window, maybe_allocate_content, get_content,
5266 m_content>: Remove.
5267 (struct tui_source_window_base) <set_exec_info_content,
5268 show_exec_info_content>: Don't declare.
5269 * tui/tui-winsource.c
5270 (tui_exec_info_window::maybe_allocate_content): Remove.
5271 (tui_source_window_base::update_exec_info): Rename from
5272 set_exec_info_content.
5273 (tui_source_window_base::show_exec_info_content)
5274 (tui_source_window_base::update_exec_info): Remove.
5275
93858ad3
TT
52762019-08-13 Tom Tromey <tom@tromey.com>
5277
5278 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5279 declare.
5280 * tui/tui-winsource.c (tui_update_source_window_as_is)
5281 (tui_update_source_windows_with_addr, tui_erase_source_content):
5282 Update.
5283 (tui_clear_exec_info_content): Remove.
5284
e321e7ce
TT
52852019-08-13 Tom Tromey <tom@tromey.com>
5286
5287 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5288 declare.
5289 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5290 call tui_erase_exec_info_content.
5291 (tui_clear_exec_info_content): Rename from
5292 tui_erase_exec_info_content.
5293 (tui_clear_exec_info_content): Delete.
5294
8270ac62
TT
52952019-08-13 Tom Tromey <tom@tromey.com>
5296
5297 * tui/tui-winsource.h (struct tui_source_window_base)
5298 <show_exec_info_content>: Declare.
5299 (tui_show_exec_info_content): Don't declare.
5300 * tui/tui-winsource.c
5301 (tui_source_window_base::show_exec_info_content): Rename from
5302 tui_show_exec_info_content.
5303 (tui_source_window_base::update_exec_info): Update.
5304
7b56485d
TT
53052019-08-13 Tom Tromey <tom@tromey.com>
5306
5307 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5308 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5309 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5310 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5311 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5312 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5313 ... here.
5314
7ba913dc
TT
53152019-08-13 Tom Tromey <tom@tromey.com>
5316
5317 * tui/tui-winsource.h (struct tui_source_window_base)
5318 <update_exec_info>: Declare.
5319 (tui_update_exec_info): Don't declare.
5320 * tui/tui-winsource.c (tui_update_source_window_as_is)
5321 (tui_source_window_base::refresh_all)
5322 (tui_update_all_breakpoint_info): Update.
5323 (tui_source_window_base::update_exec_info): Rename from
5324 tui_update_exec_info.
5325 * tui/tui-stack.c (tui_show_frame_info): Update.
5326
37a4a131
TT
53272019-08-13 Tom Tromey <tom@tromey.com>
5328
5329 * tui/tui-winsource.h (struct tui_source_window_base)
5330 <set_exec_info_content>: Declare.
5331 (tui_set_exec_info_content): Don't declare.
5332 * tui/tui-winsource.c
5333 (tui_source_window_base::set_exec_info_content): Rename from
5334 tui_set_exec_info_content.
5335 (tui_update_exec_info): Update.
5336
0bd27e07
TT
53372019-08-13 Tom Tromey <tom@tromey.com>
5338
5339 * tui/tui-winsource.h (struct tui_source_window_base)
5340 <show_source_content>: Declare.
5341 (tui_show_source_content): Don't declare.
5342 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5343 (tui_source_window_base::show_source_content): Rename from
5344 tui_show_source_content.
5345 (tui_source_window_base::refresh_all): Update.
5346 * tui/tui-layout.c (show_source_disasm_command)
5347 (show_source_or_disasm_and_command): Update.
5348
b4ef5aeb
TT
53492019-08-13 Tom Tromey <tom@tromey.com>
5350
5351 * tui/tui-winsource.c (tui_erase_source_content)
5352 (tui_show_source_content, tui_source_window_base::refresh_all):
5353 Update.
5354 * tui/tui-wingeneral.h
5355 (tui_check_and_display_highlight_if_needed): Don't declare.
5356 * tui/tui-wingeneral.c
5357 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5358 check_and_display_highlight_if_needed.
5359 * tui/tui-win.c (tui_rehighlight_all)
5360 (tui_win_info::make_visible_with_new_height): Update.
5361 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5362 (tui_data_window::erase_data_content)
5363 (tui_data_window::display_all_data): Update.
5364 * tui/tui-data.h (struct tui_win_info)
5365 <check_and_display_highlight_if_needed>: Declare.
5366
fede5273
TT
53672019-08-13 Tom Tromey <tom@tromey.com>
5368
5369 * tui/tui-win.c (tui_resize_all): Call
5370 tui_delete_invisible_windows.
5371 * tui/tui-layout.c (show_layout): Call
5372 tui_delete_invisible_windows.
5373 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5374 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5375
22c3f490
TT
53762019-08-13 Tom Tromey <tom@tromey.com>
5377
5378 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5379 tui_add_win_to_layout.
5380
16cb7910
TT
53812019-08-13 Tom Tromey <tom@tromey.com>
5382
5383 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5384 * tui/tui-layout.c (tui_default_win_height): Now static.
5385
cc0c3ffb
TT
53862019-08-13 Tom Tromey <tom@tromey.com>
5387
5388 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5389 single switch.
5390 (show_source_disasm_command, show_source_or_disasm_and_command):
5391 Don't check current layout.
5392
3f3ffe54
TT
53932019-08-13 Tom Tromey <tom@tromey.com>
5394
5395 * tui/tui-wingeneral.c (make_all_visible): Remove.
5396 (tui_make_all_invisible): Simplify.
5397 * tui/tui-layout.c (tui_make_all_invisible): Move from
5398 tui-wingeneral.c; simplify.
5399 (show_layout): Hoist call to tui_make_all_invisible.
5400 (show_data): Don't call tui_make_all_invisible.
5401
69258091
TT
54022019-08-13 Tom Tromey <tom@tromey.com>
5403
5404 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5405 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5406
62cf57fe
TT
54072019-08-13 Tom Tromey <tom@tromey.com>
5408
5409 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5410 tui-data.c.
5411 (show_source_disasm_command, show_data)
5412 (show_source_or_disasm_and_command): Don't use
5413 tui_set_current_layout_to.
5414 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5415 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5416 tui-layout.c.
5417 (tui_set_current_layout_to): Remove.
5418
2afade5d
TT
54192019-08-13 Tom Tromey <tom@tromey.com>
5420
5421 * tui/tui-layout.c (tui_set_layout): Update.
5422 * tui/tui-data.h (struct tui_layout_def): Remove.
5423 (tui_layout_def): Don't declare.
5424 * tui/tui-data.c (layout_def): Remove.
5425 (tui_layout_def): Remove.
5426
a3504e96
TT
54272019-08-13 Tom Tromey <tom@tromey.com>
5428
5429 * tui/tui-winsource.h (struct tui_source_window_base)
5430 <clear_detail>: No longer "override".
5431 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5432 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5433 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5434 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5435 Remove.
5436 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5437
29c92911
TT
54382019-08-13 Tom Tromey <tromey@adacore.com>
5439
5440 * tracepoint.c: Don't include readline.h or history.h.
5441
86c6b807
TT
54422019-08-12 Tom Tromey <tom@tromey.com>
5443
5444 * configure: Rebuild.
5445 * configure.ac: Check for readline 7.
5446 * NEWS: Mention readline 7 requirement.
5447 * README: Update.
5448
5db2718c
TT
54492019-08-12 Tom Tromey <tom@tromey.com>
5450
5451 * mingw-hdep.c (gdb_select): Remove readline hack.
5452
dac36daf
PFC
54532019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5454
5455 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5456 when the function fails.
5457
1022c627
AA
54582019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5459
5460 * s390-tdep.c (s390_type_align): New function.
5461 (s390_gdbarch_init): Set it as type_align gdbarch method.
5462
eba4caf2
TV
54632019-08-09 Tom de Vries <tdevries@suse.de>
5464
5465 PR gdb/24591
5466 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5467 pc_low with relocation offset.
5468
123cd851
TT
54692019-08-07 Tom Tromey <tromey@adacore.com>
5470
5471 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5472 (print_frame_args): Update.
5473 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5474 Update.
5475 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5476 * frame.h (struct frame_arg): Add initializers.
5477 <error>: Now a unique_xmalloc_ptr.
5478
3d31bc39
AH
54792019-08-07 Alan Hayward <alan.hayward@arm.com>
5480
5481 * NEWS: Expand the Pointer Authentication entry.
5482 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5483 (aarch64_frame_unmask_lr): ... to this.
5484 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5485 Call aarch64_frame_unmask_lr.
5486 * frame.c (struct frame_info): Add "masked" variable.
5487 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5488 (fprint_frame): Check for masked pc.
5489 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5490 declarations.
5491 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5492 * stack.c (print_frame): Check for masked pc.
5493
0cf9feb9
TT
54942019-08-06 Tom Tromey <tom@tromey.com>
5495
5496 * stabsread.c (patch_block_stabs, read_one_struct_field)
5497 (read_enum_type): Use obstack_strndup.
5498 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5499 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5500 * dwarf2read.c (guess_full_die_structure_name)
5501 (anonymous_struct_prefix): Use obstack_strndup.
5502 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5503 * c-exp.y (yylex): Use obstack_strndup.
5504 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5505 (write_var_or_type): Use obstack_strndup.
5506
efba19b0
TT
55072019-08-06 Tom Tromey <tom@tromey.com>
5508
5509 * symfile.c (reread_symbols): Use obstack_strdup.
5510 * stabsread.c (read_type): Use obstack_strdup.
5511 * gdb_obstack.h (obstack_strdup): New overload.
5512 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5513 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5514 (dwarf2_canonicalize_name): Use obstack_strdup.
5515 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5516 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5517 Use obstack_strdup.
5518
f25102f7
TT
55192019-08-06 Tom Tromey <tom@tromey.com>
5520
5521 * gdb_obstack.h (obstack_strdup): Define.
5522 * gdb_obstack.c (obstack_strdup): Don't define.
5523
021887d8
TT
55242019-08-06 Tom Tromey <tom@tromey.com>
5525
5526 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5527 obstack_strdup.
5528 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5529 obstack_strdup.
5530 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5531 * stabsread.c (common_block_start): Use obstack_strdup.
5532 * objfiles.c (set_objfile_main_name, objfile): Use
5533 obstack_strdup.
5534 * namespace.c (add_using_directive): Use obstack_strdup.
5535 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5536 * jit.c (finalize_symtab): Use obstack_strdup.
5537 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5538 (guess_partial_die_structure_name, partial_die_info::fixup)
5539 (dwarf2_name): Use obstack_strdup.
5540 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5541 obstack_strdup.
5542 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5543 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5544 obstack_strdup.
5545 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5546
d2834edc
PW
55472019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5548
5549 * unittests/help-doc-selftests.c: New file.
5550 * Makefile.in: Add the new file.
5551
590042fc
PW
55522019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5553
5554 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5555 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5556 the full first line, except when FOR_VALUE_PREFIX. In this case,
5557 the trailing '.' is not output, and the first character is uppercased.
5558 (print_help_for_command): Update call to print_doc_line.
5559 (print_doc_of_command): Likewise.
5560 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5561 * cli/cli-option.c (append_indented_doc): Do not append newline.
5562 (build_help_option): Append newline after first appended_indented_doc
5563 only if a second call is done.
5564 (build_help): Append 2 new lines before each option, except the first
5565 one.
5566 * compile/compile.c (_initialize_compile): Add new lines after
5567 %OPTIONS%, when not at the end of the help.
5568 Change help doc or code
5569 producing the help doc to respect the invariants.
5570 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5571 Also removed the new line after 'Options:', as all other commands
5572 do not put an empty line between 'Options:' and the first option.
5573 * printcmd.c (_initialize_printcmd): Likewise.
5574 * stack.c (_initialize_stack): Likewise.
5575 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5576 incorrectly telling COMMAND is optional.
5577 * ada-lang.c (_initialize_ada_language): Change help doc or code
5578 producing the help doc to respect the invariants.
5579 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5580 * breakpoint.c (_initialize_breakpoint): Likewise.
5581 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5582 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5583 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5584 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5585 _initialize_cli_style): Likewise.
5586 * corelow.c (core_target_info): Likewise.
5587 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5588 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5589 * filesystem.c (_initialize_filesystem): Likewise.
5590 * frame.c (_initialize_frame): Likewise.
5591 * gnu-nat.c (add_task_commands): Likewise.
5592 * infcall.c (_initialize_infcall): Likewise.
5593 * infcmd.c (_initialize_infcmd): Likewise.
5594 * interps.c (_initialize_interpreter): Likewise.
5595 * language.c (_initialize_language): Likewise.
5596 * linux-fork.c (_initialize_linux_fork): Likewise.
5597 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5598 * maint.c (_initialize_maint_cmds): Likewise.
5599 * memattr.c (_initialize_mem): Likewise.
5600 * printcmd.c (_initialize_printcmd): Likewise.
5601 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5602 _RegEx): Likewise.
5603 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5604 * record-btrace.c (_initialize_record_btrace): Likewise.
5605 * record-full.c (_initialize_record_full): Likewise.
5606 * record.c (_initialize_record): Likewise.
5607 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5608 * regcache.c (_initialize_regcache): Likewise.
5609 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5610 _initialize_remote): Likewise.
5611 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5612 * serial.c (_initialize_serial): Likewise.
5613 * skip.c (_initialize_step_skip): Likewise.
5614 * source.c (_initialize_source): Likewise.
5615 * stack.c (_initialize_stack): Likewise.
5616 * symfile.c (_initialize_symfile): Likewise.
5617 * symtab.c (_initialize_symtab): Likewise.
5618 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5619 * top.c (init_main): Likewise.
5620 * tracefile-tfile.c (tfile_target_info): Likewise.
5621 * tracepoint.c (_initialize_tracepoint): Likewise.
5622 * tui/tui-win.c (_initialize_tui_win): Likewise.
5623 * utils.c (add_internal_problem_command): Likewise.
5624 * valprint.c (value_print_option_defs): Likewise.
5625
404f2902
FCE
56262019-08-06 Frank Ch. Eigler <fche@redhat.com>
5627
5628 PR build/24886
5629 * configure.ac: Drop enable-libmcheck support.
5630 * configure, config.in: Rebuild.
5631 * libmcheck.m4: Remove.
5632 * acinclude.m4: Don't include it.
5633 * Makefile.in: Don't distribute it.
5634 * top.c (print_gdb_configuration): Don't mention it.
5635
046bebe1
TT
56362019-08-06 Tom Tromey <tom@tromey.com>
5637
5638 * utils.c (set_output_style): Sometimes pass stream to
5639 emit_style_escape.
5640 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5641 * record-btrace.c (btrace_insn_history): Update.
5642 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5643 method.
5644 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5645 Update initializers.
5646 <m_uiout>: New field.
5647 <m_di>: Move lower.
5648 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5649 Remove "uiout" parameter.
5650 (dump_insns): Update.
5651 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5652 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5653
ddbcedf5
CB
56542019-08-06 Christian Biesinger <cbiesinger@google.com>
5655
5656 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5657 (error_in_psymtab_expansion): Likewise.
5658 (lookup_symbol_via_quick_fns): Likewise.
5659 (basic_lookup_transparent_type_quick): Likewise.
5660 (basic_lookup_transparent_type_1): Likewise.
5661
b08b16c8
TT
56622019-08-06 Tom Tromey <tromey@adacore.com>
5663
5664 * source.c (last_source_error): Now bool.
5665 (print_source_lines_base): Make "noprint" bool. Only open
5666 source file when last_source_visited changes.
5667
cb44333d
TT
56682019-08-06 Tom Tromey <tromey@adacore.com>
5669
5670 * annotate.c (annotate_source_line): Use g_source_cache.
5671 * source-cache.c (source_cache::get_plain_source_lines): Change
5672 parameters. Populate m_offset_cache.
5673 (source_cache::ensure): New method.
5674 (source_cache::get_line_charpos): New method.
5675 (extract_lines): Move lower. Change parameters.
5676 (source_cache::get_source_lines): Move lower.
5677 * source-cache.h (class source_cache): Update comment.
5678 <get_line_charpos>: New method.
5679 <get_source_lines>: Update comment.
5680 <clear>: Clear m_offset_cache.
5681 <get_plain_source_lines>: Change parameters.
5682 <ensure>: New method
5683 <m_offset_cache>: New member.
5684 * source.c (forget_cached_source_info_for_objfile): Update.
5685 (info_source_command): Use g_source_cache.
5686 (find_source_lines, open_source_file_with_line_charpos): Remove.
5687 (print_source_lines_base, search_command_helper): Use g_source_cache.
5688 * source.h (open_source_file_with_line_charpos): Don't declare.
5689 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5690 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5691 Use g_source_cache.
5692
872dceaa
TT
56932019-08-06 Tom Tromey <tromey@adacore.com>
5694
5695 * source-cache.c (source_cache::get_plain_source_lines):
5696 Remove "first_line" and "last_line" parameters.
5697 (source_cache::get_source_lines): Cache plain text.
5698 * source-cache.h (class source_cache)
5699 <get_plain_source_lines>: Update.
5700
269249d9
TT
57012019-08-06 Tom Tromey <tromey@adacore.com>
5702
5703 * source-cache.c (extract_lines): No longer a method.
5704 Changed type of parameter. Include final newline.
5705 (selftests::extract_lines_test): New function.
5706 (_initialize_source_cache): Likewise.
5707 * source-cache.h (class source_cache)
5708 <extract_lines>: Don't declare.
5709
c0e8dcd8
TT
57102019-08-06 Tom Tromey <tromey@adacore.com>
5711
5712 * breakpoint.c (init_breakpoint_sal): Update.
5713 (breakpoint): Update.
5714 * breakpoint.h (struct breakpoint) <filter>: Now a
5715 unique_xmalloc_ptr.
5716
0b27c27d
CB
57172019-08-05 Christian Biesinger <cbiesinger@google.com>
5718
5719 * NEWS: Mention dictionary access on blocks.
5720 * python/py-block.c (blpy_getitem): New function.
5721 (block_object_as_mapping): New struct.
5722 (block_object_type): Use new struct for tp_as_mapping field.
5723
4ee94178
CB
57242019-08-05 Christian Biesinger <cbiesinger@google.com>
5725
5726 * objfiles.h (objfile): Add a comment describing partial symbols.
5727
8abfcabc
TT
57282019-08-05 Tom Tromey <tromey@adacore.com>
5729
5730 * compile/compile.c (_initialize_compile): Use _(), not N_().
5731 * thread.c (_initialize_thread): Use _(), not N_().
5732 * stack.c (_initialize_stack): Use _(), not N_().
5733 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5734
2b79f376
SM
57352019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5736
5737 * dwarf2read.c (struct dw2_symtab_iterator):
5738 <want_specific_block>: Remove.
5739 <block_index>: Change type to gdb::optional.
5740 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5741 change type of BLOCK_INDEX parameter to gdb::optional.
5742 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5743 (dw2_lookup_symbol): Don't pass argument for
5744 WANT_SPECIFIC_BLOCK.
5745 (dw2_expand_symtabs_for_function): Don't pass argument for
5746 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5747 (class dw2_debug_names_iterator)
5748 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5749 parameter, change BLOCK_INDEX type to gdb::optional.
5750 <m_want_specific_block>: Remove.
5751 <m_block_index>: Change type to gdb::optional.
5752 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5753 gdb::optional. Re-write in function of gdb::optional.
5754 (dw2_debug_names_lookup_symbol): Don't pass argument for
5755 WANT_SPECIFIC_BLOCK.
5756 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5757 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5758 BLOCK_INDEX.
5759
ae60f04e
PW
57602019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5761
5762 * NEWS: Mention changes to "info sources" command.
5763
28cd9371
PW
57642019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5765
5766 * symtab.c (filename_partial_match_opts): New struct type.
5767 (struct output_source_filename_data): New members
5768 regexp, c_regexp, partial_match.
5769 (output_source_filename): Use new members to decide to print file.
5770 (info_sources_option_defs): New variable.
5771 (make_info_sources_options_def_group, print_info_sources_header,
5772 info_sources_command_completer):
5773 New functions.
5774 (info_sources_command): Read new optional arguments.
5775 (_initialize_symtab): Update info sources help.
5776
ca683e3a
AO
57772019-08-02 Alexandre Oliva <oliva@adacore.com>
5778
5779 * ada-lang.c (exception_support_info_v0): Renamed from...
5780 (default_exception_support_info): ... this. Create new
5781 definition for v1.
5782 (ada_has_this_exception_support): Look up catch_handlers_sym.
5783 (ada_exception_support_info_sniffer): Try v0 after default.
5784
f1264162
TT
57852019-08-01 Tom Tromey <tromey@adacore.com>
5786
5787 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5788 gdbarch.h.
5789
0a7b2485
CB
57902019-08-01 Christian Biesinger <cbiesinger@google.com>
5791
5792 * s12z-tdep.c: Fix include path for s12z-opc.h.
5793
c6bdbeb7
AH
57942019-08-01 Alan Hayward <alan.hayward@arm.com>
5795
5796 * NEWS: Require GNU make 3.82.
5797
a2bd7b82
TT
57982019-07-16 Tom Tromey <tom@tromey.com>
5799
5800 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5801 declare.
5802
aa3b6533
TT
58032019-07-30 Tom Tromey <tromey@adacore.com>
5804
5805 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5806
a1530dc7
KB
58072019-07-30 Kevin Buettner <kevinb@redhat.com>
5808
5809 * printcmd.c (print_address_symbolic): Print negative offsets.
5810 (build_address_symbolic): Force signed arithmetic when computing
5811 offset.
5812
2906593f
CB
58132019-07-30 Christian Biesinger <cbiesinger@google.com>
5814
5815 PR/24474: Add a function to lookup static variables.
5816 * NEWS: Mention this new function.
5817 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5818 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5819 * python/python.c (python_GdbMethods): Add new function.
5820
c620ed88
CB
58212019-07-29 Christian Biesinger <cbiesinger@google.com>
5822
5823 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5824 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5825 (objfpy_lookup_static_symbol): New function.
5826 (objfile_object_methods): Add new functions.
5827
bc4268a5
PW
58282019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5829
5830 * NEWS: Mention 'set|show print frame-info'. Mention new
5831 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5832 backtrace argument. Mention that python frame filtering code
5833 is now consistent with what 'backtrace' command prints.
5834
4b5e8d19
PW
58352019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5836
5837 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5838 comments.
5839 (print_frame_info_auto, print_frame_info_source_line,
5840 print_frame_info_location, print_frame_info_source_and_location,
5841 print_frame_info_location_and_address, print_frame_info_short_location):
5842 New declarations.
5843 (struct frame_print_options): New member print_frame_info.
5844 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5845 * stack.h (get_user_print_what_frame_info): New declaration.
5846 (frame_show_address): New declaration.
5847 * stack.c (print_frame_arguments_choices): New value 'presence'.
5848 (print_frame_info_auto, print_frame_info_source_line,
5849 print_frame_info_location, print_frame_info_source_and_location,
5850 print_frame_info_location_and_address, print_frame_info_short_location,
5851 print_frame_info_choices, print_frame_info_print_what): New definitions.
5852 (print_frame_args): Only print dots for args if print frame-arguments
5853 is 'presence'.
5854 (frame_print_option_defs): New element for "frame-info".
5855 (get_user_print_what_frame_info): New function.
5856 (frame_show_address): Make non static. Move comment to stack.h.
5857 (print_frame_info_to_print_what): New function.
5858 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5859 to decide what to print.
5860 (backtrace_command_1): Handle the new print_frame_arguments_presence
5861 value.
5862 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5863 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5864 (py_print_frame): In non-mi mode, use LOCATION as default for
5865 print_what, similarly to frame information printed directly by
5866 backtrace command. Handle frame-info user option in non MI mode.
5867
6bdfee81
KB
58682019-07-27 Kevin Buettner <kevinb@redhat.com>
5869
5870 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5871 Add case for debugging 32-bit target on 64-bit host. Revise
5872 comment.
5873
98a617f8
KB
58742019-07-27 Kevin Buettner <kevinb@redhat.com>
5875
5876 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5877 instead of find_function_entry_range_from_pc.
5878
567238c9
KB
58792019-07-27 Kevin Buettner <kevinb@redhat.com>
5880
5881 * stack.c (find_frame_funname): Remove code which preferred
5882 minsym over symtab sym in "certain pathological cases".
5883
2dc80cf8
KB
5884 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5885 parameter. Change type of "do_demangle" to bool.
5886 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5887 Pass suitable "prefer_sym_over_minsym" flag to
5888 build_address_symbolic(). Don't output "+" for negative offsets.
5889 * printcmd.c (print_address_symbolic): Update invocation of
5890 build_address_symbolic to include a "prefer_sym_over_minsym"
5891 flag.
5892 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5893 Restrict cases in which use of minimal symbol is preferred to that
5894 of a found symbol. Update comments.
5895
1aff7173
KB
5896 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5897 for entry pc when entry pc is out of range for that FDE.
5898
89b085ac
BC
58992019-07-26 Brian Callahan <bcallah@openbsd.org>
5900
5901 PR gdb/24839:
5902 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5903 type.
5904
f32feb4a
CB
59052019-07-25 Christian Biesinger <cbiesinger@google.com>
5906
5907 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5908 this function's Python signature.
5909
5910
59112019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5912
5913 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5914 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5915 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5916 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5917 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5918
5919
c54e4253
YS
59202019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5921
5922 * h8300-tdep.c (h8300_register_name_common): New.
5923 h8300_register_name): Use h8300_register_name_common.
5924 (h8300s_register_name): Likewise.
5925 (h8300sx_register_name): Likewise.
5926 (h8300h_register_nam): New.
5927 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5928
5929
40eadf04
SP
59302019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5931
5932 * arm-tdep.c (arm_skip_cmse_entry): New function.
5933 (arm_is_sgstubs_section): New function.
5934 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5935
bfa2a36d
TT
59362019-07-22 Tom Tromey <tom@tromey.com>
5937
5938 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5939 Don't self-assign.
5940
a8e9d247
AB
59412019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5942
5943 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5944 type_print.
5945
eb86c5e2
AB
59462019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5947
5948 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5949 so that GDB doesn't match any msymbols when searching in the
5950 TYPES_DOMAIN.
5951 (print_symbol_info): Print using typedef_print or type_print based
5952 on the type of the symbol. Add updated FIXME comment moved from...
5953 (_initialize_symtab): ... move and update FIXME comment to above.
5954
a8eab7c6
AB
59552019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5956
5957 * NEWS: Mention adding -q option to "info types".
5958 * symtab.c (struct info_types_options): New struct.
5959 (info_types_options_defs): New variable.
5960 (make_info_types_options_def_group): New function.
5961 (info_types_command): Use gdb::option framework to parse options.
5962 (info_types_command_completer): New function.
5963 (_initialize_symtab): Extend the help text on "info types" and
5964 register command completer.
5965
b4603c34
CB
59662019-07-21 Christian Biesinger <cbiesinger@google.com>
5967
5968 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5969 (lookup_symbol_in_objfile): Change int to block_enum and add a
5970 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5971
c8cdc1e0
CB
59722019-07-20 Christian Biesinger <cbiesinger@google.com>
5973
5974 * MAINTAINERS (Write After Approval): Add self.
5975
01e175fe
AB
59762019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5977
5978 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5979 instruction to the dummy code region.
5980
56f79b63
TT
59812019-07-19 Tom Tromey <tromey@adacore.com>
5982
5983 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5984 (ARGSUSED, PARAMS, __func__): Remove rules.
5985
4c5aa8e0
AH
59862019-07-19 Alan Hayward <alan.hayward@arm.com>
5987
5988 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5989 * features/arm/arm-with-iwmmxt.c: Remove.
5990 * features/arm/arm-with-iwmmxt.xml: Remove.
5991 * features/arm/arm-with-m-fpa-layout.c: Remove.
5992 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5993 * features/arm/arm-with-m-vfp-d16.c: Remove.
5994 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5995 * features/arm/arm-with-m.c: Remove.
5996 * features/arm/arm-with-m.xml: Remove.
5997 * features/arm/arm-with-neon.c: Remove.
5998 * features/arm/arm-with-neon.xml: Remove.
5999 * features/arm/arm-with-vfpv2.c: Remove.
6000 * features/arm/arm-with-vfpv2.xml: Remove.
6001 * features/arm/arm-with-vfpv3.c: Remove.
6002 * features/arm/arm-with-vfpv3.xml: Remove.
6003
f42b2617
AH
60042019-07-19 Alan Hayward <alan.hayward@arm.com>
6005
6006 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6007
f29ec966
AH
60082019-07-19 Alan Hayward <alan.hayward@arm.com>
6009
6010 * arch/aarch32.c (aarch32_create_target_description): Create
6011 target descriptions using features.
6012 * arch/arm.c (arm_create_target_description)
6013 (arm_create_mprofile_target_description): Likewise.
6014 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6015
d105cce5
AH
60162019-07-19 Alan Hayward <alan.hayward@arm.com>
6017
6018 * Makefile.in: Add new files.
6019 * aarch32-tdep.c: New file.
6020 * aarch32-tdep.h: New file.
6021 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6022 Call aarch32_read_description.
6023 * arch/aarch32.c: New file.
6024 * arch/aarch32.h: New file.
6025 * arch/arm.c (arm_create_target_description)
6026 (arm_create_mprofile_target_description): New function.
6027 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6028 (arm_create_target_description)
6029 (arm_create_mprofile_target_description): New declaration.
6030 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6031 read_description functions.
6032 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6033 Likewise.
6034 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6035 * arm-tdep.c (tdesc_arm_list): New variable.
6036 (arm_register_g_packet_guesses): Call create description functions.
6037 (arm_read_description) (arm_read_mprofile_description): New
6038 function.
6039 * arm-tdep.h (arm_read_description)
6040 (arm_read_mprofile_description): Add declaration.
6041 * configure.tgt: Add new files.
6042
afe09f0b
GL
60432019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6044
6045 * top.c (new_ui_command): Open specified terminal just once.
6046
cd215b2e
TT
60472019-07-18 Tom Tromey <tromey@adacore.com>
6048
6049 * symtab.c (main_name): Constify return type.
6050 * symfile.c (set_initial_language): Update.
6051 * symtab.h (main_name): Constify return type.
6052
d8f68fcb
TT
60532019-07-17 Tom Tromey <tom@tromey.com>
6054
6055 * tui/tui-winsource.c (tui_update_source_window)
6056 (tui_update_source_window_as_is)
6057 (tui_update_source_windows_with_line): Remove return.
6058 * tui/tui-disasm.c (tui_show_disassem)
6059 (tui_show_disassem_and_update_source): Remove return.
6060 * tui/tui.c (tui_reset): Remove return.
6061 * tui/tui-wingeneral.c
6062 (tui_check_and_display_highlight_if_needed): Remove return.
6063
ca5af91e
TT
60642019-07-17 Tom Tromey <tom@tromey.com>
6065
6066 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6067
5104fe36
TT
60682019-07-17 Tom Tromey <tom@tromey.com>
6069
6070 * tui/tui-winsource.h (struct tui_exec_info_window)
6071 (struct tui_source_window_base): Move from tui-data.h.
6072 * tui/tui-winsource.c: Move many method definitions from
6073 elsewhere. Remove "structuring" comments.
6074 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6075 (tui_source_window_base::refresh_window): Move to
6076 tui-winsource.c.
6077 * tui/tui-win.c (tui_source_window_base::refresh_all)
6078 (tui_source_window_base::update_tab_width)
6079 (tui_source_window_base::set_new_height)
6080 (tui_source_window_base::do_make_visible_with_new_height): Move to
6081 tui-winsource.c.
6082 * tui/tui-source.h: Update.
6083 * tui/tui-source.c (tui_source_window_base::reset): Move to
6084 tui-winsource.c.
6085 * tui/tui-disasm.h: Update.
6086 * tui/tui-data.h (struct tui_exec_info_window): Move to
6087 tui-winsource.h.
6088 (struct tui_source_window_base): Likewise.
6089 * tui/tui-data.c (tui_source_window_base::clear_detail)
6090 (tui_source_window_base, ~tui_source_window_base): Move to
6091 tui-winsource.c.
6092
daa15dde
TT
60932019-07-17 Tom Tromey <tom@tromey.com>
6094
6095 * tui/tui-win.c (tui_resize_all)
6096 (tui_source_window_base::update_tab_width)
6097 (tui_adjust_win_heights): Update.
6098 (tui_win_info::make_invisible_and_set_new_height): Rename from
6099 make_invisible_and_set_new_height.
6100 * tui/tui-data.h (struct tui_win_info)
6101 <make_invisible_and_set_new_height>: New method.
6102
bfad4537
TT
61032019-07-17 Tom Tromey <tom@tromey.com>
6104
6105 * tui/tui.c: Update.
6106 * tui/tui-source.h (struct tui_source_window): Move from
6107 tui-data.h.
6108 * tui/tui-layout.c: Update.
6109 * tui/tui-disasm.c: Update.
6110 * tui/tui-data.h (struct tui_source_window): Move to
6111 tui-source.h.
6112
88f7e873
TT
61132019-07-17 Tom Tromey <tom@tromey.com>
6114
6115 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6116 tui-data.h.
6117 * tui/tui-data.h (struct tui_disasm_window): Move to
6118 tui-disasm.h.
6119
96bd6233
TT
61202019-07-17 Tom Tromey <tom@tromey.com>
6121
6122 * tui/tui-regs.h (struct tui_data_item_window): Move from
6123 tui-data.h.
6124 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6125 * tui/tui-data.h (struct tui_data_item_window): Move to
6126 tui-regs.h.
6127 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6128
ce38393b
TT
61292019-07-17 Tom Tromey <tom@tromey.com>
6130
6131 * tui/tui.c: Update.
6132 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6133 (tui_cmd_window::max_height): Move to tui-command.c.
6134 * tui/tui-layout.c: Update.
6135 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6136 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6137 tui-command.c.
6138 * tui/tui-command.h (struct tui_cmd_window): Move from
6139 tui-data.h.
6140 * tui/tui-command.c: Remove "structuring" comments.
6141 (tui_cmd_window::clear_detail)
6142 (tui_cmd_window::do_make_visible_with_new_height)
6143 (tui_cmd_window::max_height): Move from elsewhere.
6144
2d8b51cb
TT
61452019-07-17 Tom Tromey <tom@tromey.com>
6146
6147 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6148 Now static.
6149 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6150 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6151
18ab23af
TT
61522019-07-17 Tom Tromey <tom@tromey.com>
6153
6154 * tui/tui.c: Update.
6155 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6156 tui-regs.c.
6157 * tui/tui-windata.h: Remove file.
6158 * tui/tui-windata.c: Remove file.
6159 * tui/tui-win.c (tui_data_window::set_new_height)
6160 (tui_data_window::do_make_visible_with_new_height): Move to
6161 tui-regs.c.
6162 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6163 * tui/tui-regs.c: Remove "structuring" comments.
6164 (tui_data_window::first_data_item_displayed)
6165 (tui_data_window::delete_data_content_windows)
6166 (tui_data_window::erase_data_content)
6167 (tui_data_window::display_all_data)
6168 (tui_data_window::refresh_all)
6169 (tui_data_window::do_scroll_vertical)
6170 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6171 (tui_data_window::do_make_visible_with_new_height)
6172 (tui_data_window::refresh_window): Move from elsewhere.
6173 (_initialize_tui_regs): Move to end of file.
6174 * tui/tui-layout.c: Update.
6175 * tui/tui-hooks.c: Update.
6176 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6177 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6178 tui-regs.c.
6179 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6180
88b7e7cc
TT
61812019-07-17 Tom Tromey <tom@tromey.com>
6182
6183 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6184 seen.
6185
0fcd3711
TT
61862019-07-17 Tom Tromey <tom@tromey.com>
6187
6188 * tui/tui-win.c (tui_source_window_base::set_new_height)
6189 (tui_source_window_base::do_make_visible_with_new_height): Use
6190 m_has_locator field directly.
6191 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6192 method.
6193 (struct tui_source_window_base) <has_locator>: Likewise.
6194
4a38112d
TT
61952019-07-17 Tom Tromey <tom@tromey.com>
6196
6197 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6198 Don't declare.
6199 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6200 Remove.
6201 * tui/tui-win.c (tui_source_window_base::set_new_height)
6202 (tui_source_window_base::set_new_height)
6203 (make_invisible_and_set_new_height)
6204 (tui_source_window_base::do_make_visible_with_new_height)
6205 (tui_source_window_base::do_make_visible_with_new_height):
6206 Update.
6207 * tui/tui-layout.c (show_source_disasm_command, show_data)
6208 (show_source_or_disasm_and_command): Update.
6209 * tui/tui-layout.c (show_layout): Update.
6210
09129226
TT
62112019-07-17 Tom Tromey <tom@tromey.com>
6212
6213 * tui/tui-layout.c (make_data_window): Remove.
6214 (show_data): Unify creation and re-initialization cases.
6215
4a8a5e84
TT
62162019-07-17 Tom Tromey <tom@tromey.com>
6217
6218 * tui/tui-layout.c (make_source_window, make_disasm_window):
6219 Remove.
6220 (show_data): Unify creation and re-initialization cases.
6221
76d2be8e
TT
62222019-07-17 Tom Tromey <tom@tromey.com>
6223
6224 * tui/tui-layout.c (make_command_window): Remove.
6225 (show_source_disasm_command, show_source_or_disasm_and_command):
6226 Unify creation and re-initialization cases.
6227
890b8bde
TT
62282019-07-17 Tom Tromey <tom@tromey.com>
6229
6230 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6231 creation and re-initialization cases.
6232
2cdfa113
TT
62332019-07-17 Tom Tromey <tom@tromey.com>
6234
6235 * tui/tui-regs.c (tui_get_register): Return void.
6236
8e3cfd09
TT
62372019-07-17 Tom Tromey <tom@tromey.com>
6238
6239 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6240 Simplify.
6241
f4e04977
TT
62422019-07-17 Tom Tromey <tom@tromey.com>
6243
6244 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6245 resetting.
6246
0379b883
TT
62472019-07-17 Tom Tromey <tom@tromey.com>
6248
6249 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6250 * tui/tui-regs.c (tui_reg_layout): New function.
6251 (tui_show_registers, tui_reg_command): Use it.
6252 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6253 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6254 parameters.
6255 (tui_layout_command): Remove.
6256
b7fbad91
TT
62572019-07-17 Tom Tromey <tom@tromey.com>
6258
6259 * tui/tui-layout.h (tui/tui-layout): Return void.
6260 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6261
4e1e56b9
TT
62622019-07-17 Tom Tromey <tom@tromey.com>
6263
6264 * tui/tui-layout.c (show_source_disasm_command, show_data):
6265 Update.
6266 (reset_locator): Remove.
6267 (show_source_or_disasm_and_command): Update.
6268
1e0c09ba
TT
62692019-07-17 Tom Tromey <tom@tromey.com>
6270
6271 * tui/tui-source.c (tui_source_window_base::reset): Remove
6272 win_type parameter.
6273 * tui/tui-layout.c (make_command_window, make_source_window)
6274 (make_disasm_window, make_data_window)
6275 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6276 (reset_locator, show_source_or_disasm_and_command): Update.
6277 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6278 win_type parameter.
6279 (struct tui_source_window_base) <reset>: Likewise.
6280
1bf605de
TT
62812019-07-17 Tom Tromey <tom@tromey.com>
6282
6283 * tui/tui-layout.c (show_source_disasm_command): Use
6284 reset_locator.
6285 (reset_locator): New function.
6286 (init_and_make_win): Remove.
6287 (show_source_or_disasm_and_command): Use reset_locator.
6288
098f9ed4
TT
62892019-07-17 Tom Tromey <tom@tromey.com>
6290
6291 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6292 condition.
6293 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6294 Remove condition.
6295 * tui/tui-source.c (tui_source_window_base::reset): New method.
6296 * tui/tui-layout.c (make_command_window): Don't call
6297 init_and_make_win.
6298 (make_source_window, make_disasm_window): Don't call
6299 make_source_or_disasm_window.
6300 (make_data_window): Don't call init_and_make_win. Change calling
6301 convention.
6302 (show_source_disasm_command, show_data): Simplify.
6303 (make_source_or_disasm_window): Remove.
6304 (show_source_or_disasm_and_command): Simplify.
6305 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6306 (struct tui_source_window_base) <reset>: Likewise.
6307 <execution_info>: Remove initializer.
6308 * tui/tui-data.c (tui_source_window_base): Initialize
6309 execution_info.
6310
80110957
TT
63112019-07-17 Tom Tromey <tom@tromey.com>
6312
6313 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6314 variable.
6315
cf82af05
TT
63162019-07-17 Tom Tromey <tom@tromey.com>
6317
6318 * tui/tui.c (tui_rl_other_window): Update.
6319 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6320 superclass method first. Always iterate over regs_content.
6321 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6322 method.
6323 * tui/tui-win.c (tui_set_focus_command): Update.
6324
01aeb396
TT
63252019-07-17 Tom Tromey <tom@tromey.com>
6326
6327 * tui/tui-win.c (tui_set_focus_command): Rename from
6328 tui_set_focus. Call tui_enable.
6329 (tui_set_focus_command): Remove.
6330
fd6c75ee
TT
63312019-07-17 Tom Tromey <tom@tromey.com>
6332
6333 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6334 refresh_window.
6335 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6336 touchwin.
6337 (tui_data_window::refresh_window): Call refresh_window on data
6338 items. Always call superclass refresh_window.
6339 (tui_win_info::refresh): Remove.
6340 (tui_source_window_base::refresh_window): Update.
6341 (tui_refresh_all): Update.
6342 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6343 refresh_window.
6344 (show_source_or_disasm_and_command): Likewise.
6345 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6346 (struct tui_source_window_base) <refresh>: Likewise.
6347
f6cc34a9
TT
63482019-07-17 Tom Tromey <tom@tromey.com>
6349
6350 * tui/tui-winsource.c (tui_clear_source_content)
6351 (tui_show_source_content): Update.
6352 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6353 whether content is empty.
6354 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6355 Remove.
6356
f31ec9af
TT
63572019-07-17 Tom Tromey <tom@tromey.com>
6358
6359 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6360 window's contents.
6361 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6362 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6363
d1b6f1e5
TT
63642019-07-17 Tom Tromey <tom@tromey.com>
6365
6366 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6367 (struct tui_data_item_window): Update.
6368
d9743a13
TT
63692019-07-17 Tom Tromey <tom@tromey.com>
6370
6371 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6372 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6373 defines.
6374
caf0bc4e
TT
63752019-07-17 Tom Tromey <tom@tromey.com>
6376
6377 * tui/tui-winsource.h (tui_erase_source_content)
6378 (tui_clear_source_content): Remove "display_prompt" parameter.
6379 * tui/tui-winsource.c (tui_update_source_window_as_is)
6380 (tui_update_source_windows_with_addr): Update.
6381 (tui_clear_source_content): Remove "display_prompt" parameter.
6382 (tui_erase_source_content): Likewise. Simplify.
6383 (tui_show_source_content): Update.
6384 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6385 * tui/tui-stack.c (tui_show_frame_info): Update.
6386 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6387 Remove defines.
6388
9d391078
TT
63892019-07-17 Tom Tromey <tom@tromey.com>
6390
6391 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6392 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6393 parameter.
6394 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6395 parameter.
6396
a38da35d
TT
63972019-07-17 Tom Tromey <tom@tromey.com>
6398
6399 * tui/tui-winsource.c (tui_clear_source_content)
6400 (tui_show_source_content, tui_show_exec_info_content)
6401 (tui_clear_exec_info_content): Update.
6402 * tui/tui-stack.c (tui_show_locator_content): Update.
6403 (tui_show_frame_info): Update.
6404 * tui/tui-source.h (tui_source_window): Don't declare.
6405 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6406 from tui_source_is_displayed.
6407 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6408 Remove field.
6409 (struct tui_source_window_base) <content_in_use>: New field. Now
6410 bool.
6411 (struct tui_source_window) <showing_source_p>: New method.
6412 (TUI_SRC_WIN): Change cast.
6413 * tui/tui-data.c (tui_initialize_static_data): Update.
6414
c2cd8994
TT
64152019-07-17 Tom Tromey <tom@tromey.com>
6416
6417 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6418 location_matches_p.
6419 * tui/tui-source.c (tui_source_window::location_matches_p): New
6420 method.
6421 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6422 method.
6423 * tui/tui-data.h (struct tui_source_window_base)
6424 <location_matches_p>: New method.
6425 (struct tui_source_window, struct tui_disasm_window)
6426 <location_matches_p>: Likewise.
6427
4dde7b34
TT
64282019-07-17 Tom Tromey <tom@tromey.com>
6429
6430 * tui/tui-win.c (tui_set_win_height_command): Rename from
6431 tui_set_win_height.
6432 (tui_set_win_height_command): Remove.
6433
b73dd877
TT
64342019-07-17 Tom Tromey <tom@tromey.com>
6435
6436 * tui/tui-source.c (tui_source_window): New constructor. Add
6437 observer.
6438 (~tui_source_window): New destructor.
6439 (tui_source_window::style_changed): New method.
6440 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6441 (tui_attach_detach_observers): Update.
6442 * tui/tui-data.h (struct tui_source_window): Make constructor not
6443 inline. Add destructor.
6444 (struct tui_source_window) <style_changed>: New method.
6445 <m_observable>: New member.
6446
ae2b5380
TT
64472019-07-17 Tom Tromey <tom@tromey.com>
6448
6449 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6450 * tui/tui-win.c (tui_resize_all): Fix typo.
6451
1ce3e844
TT
64522019-07-17 Tom Tromey <tom@tromey.com>
6453
6454 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6455 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6456 (tui_refresh_all): Remove "list" parameter. Use foreach.
6457 * tui/tui-win.c (window_name_completer): Use foreach.
6458 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6459 (update_tab_width): Likewise.
6460 * tui/tui-layout.c (show_layout): Update.
6461 * tui/tui-data.h (class tui_window_iterator): New.
6462 (struct all_tui_windows): New.
6463 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6464
fe3eaf1c
TT
64652019-07-17 Tom Tromey <tom@tromey.com>
6466
6467 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6468 parameter. Don't reference globals.
6469 (tui_reg_command): Update.
6470
368c1354
TT
64712019-07-17 Tom Tromey <tom@tromey.com>
6472
6473 * tui/tui-regs.c (tui_show_registers): Simplify.
6474
e80cd204
TT
64752019-07-17 Tom Tromey <tom@tromey.com>
6476
6477 * tui/tui-regs.c (tui_show_registers): Update.
6478 (tui_show_register_group): Add win_info parameter.
6479
aca2dd16
TT
64802019-07-17 Tom Tromey <tom@tromey.com>
6481
6482 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6483 Rename from tui_display_reg_element_at_line.
6484 (tui_data_window::display_registers_from_line): Update.
6485 * tui/tui-data.h (struct tui_data_window)
6486 <display_reg_element_at_line>: New method.
6487
517e9505
TT
64882019-07-17 Tom Tromey <tom@tromey.com>
6489
6490 * tui/tui-regs.h (tui_display_registers_from)
6491 (tui_display_registers_from_line): Don't declare.
6492 * tui/tui-windata.c (tui_data_window::display_all_data)
6493 (tui_data_window::refresh_all)
6494 (tui_data_window::do_scroll_vertical): Update.
6495 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6496 from tui_display_registers_from.
6497 (tui_display_reg_element_at_line): Update.
6498 (tui_data_window::display_registers_from_line): Rename from
6499 tui_display_registers_from_line.
6500 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6501 display_registers_from_line>: New methods.
6502
f76d8b19
TT
65032019-07-17 Tom Tromey <tom@tromey.com>
6504
6505 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6506 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6507 from tui_erase_data_content.
6508 (tui_data_window::display_all_data)
6509 (tui_data_window::refresh_all)
6510 (tui_data_window::do_scroll_vertical): Update.
6511 * tui/tui-regs.c (tui_show_registers): Update.
6512 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6513 New method.
6514
b4094625
TT
65152019-07-17 Tom Tromey <tom@tromey.com>
6516
6517 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6518 declare.
6519 * tui/tui-windata.c
6520 (tui_data_window::delete_data_content_windows): Rename from
6521 tui_delete_data_content_windows.
6522 (tui_data_window::display_all_data)
6523 (tui_data_window::do_scroll_vertical): Update.
6524 * tui/tui-data.h (struct tui_data_window)
6525 <delete_data_content_windows>: New method.
6526
c223a729
TT
65272019-07-17 Tom Tromey <tom@tromey.com>
6528
6529 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6530 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6531
50daf268
TT
65322019-07-17 Tom Tromey <tom@tromey.com>
6533
6534 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6535 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6536 from tui_display_all_data.
6537 * tui/tui-win.c
6538 (tui_data_window::do_make_visible_with_new_height): Update.
6539 * tui/tui-regs.c (tui_show_registers): Update.
6540 * tui/tui-layout.c (tui_set_layout): Update.
6541 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6542 method.
6543
df5f8cab
TT
65442019-07-17 Tom Tromey <tom@tromey.com>
6545
6546 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6547 * tui/tui-windata.c (tui_display_data_from): Remove.
6548 (tui_data_window::refresh_all): Update.
6549
80cb6c27
TT
65502019-07-17 Tom Tromey <tom@tromey.com>
6551
6552 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6553 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6554 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6555 tui_display_registers_from_line.
6556 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6557 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6558 "force_display" parameter.
6559
baff0c28
TT
65602019-07-17 Tom Tromey <tom@tromey.com>
6561
6562 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6563 declare.
6564 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6565 Rename from tui_first_reg_element_no_inline.
6566 (tui_display_reg_element_at_line)
6567 (tui_display_registers_from_line): Update.
6568 * tui/tui-data.h (struct tui_data_window)
6569 <first_reg_element_no_inline>: New method.
6570
3b23c5f2
TT
65712019-07-17 Tom Tromey <tom@tromey.com>
6572
6573 * tui/tui-windata.c (tui_display_data_from)
6574 (tui_data_window::do_scroll_vertical): Update.
6575 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6576 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6577 Rename from tui_line_from_reg_element_no.
6578 (tui_display_registers_from_line): Update.
6579 * tui/tui-data.h (struct tui_data_window)
6580 <line_from_reg_element_no>: New method.
6581
0b5ec218
TT
65822019-07-17 Tom Tromey <tom@tromey.com>
6583
6584 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6585 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6586 tui_last_regs_line_no.
6587 (tui_display_reg_element_at_line)
6588 (tui_display_registers_from_line): Update.
6589 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6590 method.
6591
0807ab7b
TT
65922019-07-17 Tom Tromey <tom@tromey.com>
6593
6594 PR tui/24722:
6595 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6596 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6597 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6598 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6599 (tui_update_breakpoint_info): Likewise.
6600 * tui/tui-hooks.c (tui_event_create_breakpoint)
6601 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6602 Update.
6603
9ad7fdef
TT
66042019-07-17 Tom Tromey <tom@tromey.com>
6605
6606 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6607
5813316f
TT
66082019-07-17 Tom Tromey <tom@tromey.com>
6609
6610 * tui/tui-winsource.c (tui_update_source_window_as_is)
6611 (tui_update_source_windows_with_addr): Update.
6612 * tui/tui-source.h (tui_set_source_content)
6613 (tui_show_symtab_source): Add "win_info" parameter.
6614 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6615 parameter.
6616 (tui_show_symtab_source): Likewise.
6617
00e264e7
TT
66182019-07-17 Tom Tromey <tom@tromey.com>
6619
6620 * tui/tui-wingeneral.c
6621 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6622
06210ce4
TT
66232019-07-17 Tom Tromey <tom@tromey.com>
6624
6625 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6626 (struct tui_cmd_window) <can_scroll>: New method.
6627 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6628 method.
6629
381befee
TT
66302019-07-17 Tom Tromey <tromey@adacore.com>
6631
6632 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6633 do_field_signed>: Rename. Change type of "value".
6634 * ui-out.c (ui_out::field_signed): Rename from field_int.
6635 Change type of "value".
6636 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6637 type of "value".
6638 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6639 do_field_int. Change type of "value".
6640 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6641 do_field_int. Change type of "value".
6642 * tracepoint.c (trace_status_mi, tfind_1)
6643 (print_one_static_tracepoint_marker): Update.
6644 * thread.c (print_thread_info_1, print_selected_thread_frame):
6645 Update.
6646 * stack.c (print_frame, print_frame_info): Update.
6647 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6648 Update.
6649 * source.c (print_source_lines_base): Update.
6650 * skip.c (info_skip_command): Update.
6651 * record-btrace.c (btrace_ui_out_decode_error)
6652 (btrace_call_history_src_line): Update.
6653 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6654 Update.
6655 * progspace.c (print_program_space): Update.
6656 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6657 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6658 do_field_int. Change type of "value".
6659 * mi/mi-out.c (mi_ui_out::do_table_begin)
6660 (mi_ui_out::do_table_header): Update.
6661 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6662 type of "value".
6663 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6664 (mi_cmd_data_list_changed_registers, output_register)
6665 (mi_cmd_data_read_memory, mi_load_progress)
6666 (mi_cmd_trace_frame_collected): Update.
6667 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6668 Update.
6669 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6670 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6671 (mi_cmd_var_list_children, varobj_update_one): Update.
6672 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6673 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6674 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6675 * inferior.c (print_inferior): Update.
6676 * gdb_bfd.c (print_one_bfd): Update.
6677 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6678 Update.
6679 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6680 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6681 do_field_int. Change type of "value".
6682 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6683 do_field_int. Change type of "value".
6684 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6685 (print_one_breakpoint_location, print_it_catch_fork)
6686 (print_one_catch_fork, print_it_catch_vfork)
6687 (print_one_catch_vfork, print_it_catch_solib)
6688 (print_it_catch_exec, print_it_ranged_breakpoint)
6689 (print_mention_watchpoint, print_mention_masked_watchpoint)
6690 (bkpt_print_it, update_static_tracepoint): Update.
6691 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6692 * break-catch-syscall.c (print_it_catch_syscall): Update.
6693 * ada-tasks.c (print_ada_task_info): Update.
6694 * ada-lang.c (print_it_exception, print_mention_exception):
6695 Update.
6696
6b78c3f8
AB
66972019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6698
6699 PR breakpoints/24541
6700 * gdbarch.c: Regenerate.
6701 * gdbarch.h: Regenerate.
6702 * gdbarch.sh: Adjust return type and parameter types for
6703 'stap_adjust_register'.
6704 (i386_stap_adjust_register): Adjust signature and return new
6705 register name.
6706 * stap-probe.c (stap_parse_register_operand): Adjust use of
6707 'gdbarch_stap_adjust_register'.
6708
d72a9b85
TT
67092019-07-17 Tom Tromey <tromey@adacore.com>
6710
6711 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6712 declare VEC.
6713 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6714 std::vector.
6715 (struct s390_process_info): Add initializers.
6716 (s390_add_process): Use new.
6717 (s390_linux_nat_target::low_forget_process): Use delete.
6718 (s390_linux_nat_target::low_new_fork)
6719 (s390_linux_nat_target::stopped_by_watchpoint)
6720 (s390_linux_nat_target::low_prepare_to_resume)
6721 (s390_linux_nat_target::insert_watchpoint)
6722 (s390_linux_nat_target::insert_hw_breakpoint)
6723 (s390_linux_nat_target::remove_watchpoint)
6724 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6725
206e6c58
JB
67262019-07-16 John Baldwin <jhb@FreeBSD.org>
6727
6728 * aarch64-fbsd-nat.c: Include regcache.h.
6729 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6730 argument.
6731 (aarch64_fbsd_nat_target::fetch_registers)
6732 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6733 variable.
6734 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6735
cbde90f2
JB
67362019-07-16 John Baldwin <jhb@FreeBSD.org>
6737
6738 * fbsd-nat.c: Include gdbarch.h.
6739
07128006
TT
67402019-07-15 Tom Tromey <tromey@adacore.com>
6741
6742 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6743
1f77b012
TT
67442019-07-15 Tom Tromey <tromey@adacore.com>
6745
6746 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6747 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6748 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6749 * cli-out.c (cli_ui_out::do_field_int): New method.
6750 * ui-out.c (ui_out::field_unsigned): New method.
6751 * symfile.c (generic_load): Use field_unsigned.
6752 (print_transfer_performance): Likewise.
6753 * record-btrace.c (ui_out_field_uint): Remove.
6754 (btrace_call_history_insn_range, btrace_call_history): Use
6755 field_unsigned.
6756 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6757 field_unsigned.
6758 * ui-out.h (class ui_out) <field_unsigned>: New method.
6759 <do_field_unsigned>: Likewise.
6760
33eca680
TT
67612019-07-15 Tom Tromey <tromey@adacore.com>
6762
6763 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6764 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6765 * target.c (flash_erase_command): Use field_string.
6766 * infrun.c (print_signal_received_reason): Use field_string.
6767 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6768 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6769 field_string.
6770 * ada-tasks.c (print_ada_task_info): Use field_string.
6771
ca8d69be
TT
67722019-07-15 Tom Tromey <tromey@adacore.com>
6773
6774 * target.c (flash_erase_command): Use field_core_addr.
6775 * symfile.c (generic_load): Use field_core_addr.
6776 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6777 Use field_core_addr.
6778 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6779 field_core_addr.
6780
0d4e84ed
AB
67812019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6782
6783 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6784 value if its desired type is smaller than a CORE_ADDR and signed.
6785
9a49df9d
AB
67862019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6787
6788 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6789 of changes to field names, and use new is_reference field to
6790 decide if a property is a reference or not.
6791 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6792 field.
6793 (struct dwarf2_property_baton): Update header comment, rename
6794 'referenced_type' to 'property_type' and update comments.
6795 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6796 default property type, store in property baton, update to take
6797 accound of renamed field.
6798 (read_func_scope): Update call to attr_to_dynamic_prop.
6799 (read_array_type): Likewise.
6800 (dwarf2_per_cu_addr_sized_int_type): New function.
6801 (read_subrange_index_type): Move type finding code to
6802 dwarf2_per_cu_addr_sized_int_type.
6803 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6804 (dwarf2_per_cu_addr_type): New function.
6805 (set_die_type): Update calls to attr_to_dynamic_prop.
6806
b86352cf
AB
68072019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6808
6809 * dwarf2read.c (read_subrange_index_type): New function.
6810 (read_subrange_type): Move code into new function and call it.
6811 * gdbtypes.c (create_range_type): Add some asserts.
6812
603490bf
AB
68132019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6814
6815 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6816 update return statements.
6817 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6818 declaration, and update comment to match.
6819 * gdbtypes.c (resolve_dynamic_array): Update call to
6820 dwarf2_evaluate_property to match new return type.
6821
592f9d27
AB
68222019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6823
6824 * valarith.c (value_subscripted_rvalue): Change lowerbound
6825 parameter type from int to LONGEST.
6826 * value.h (value_subscripted_rvalue): Likewise in declaration.
6827
60cfcb20
AB
68282019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6829
6830 * cli/cli-utils.c (info_print_command_completer): New function.
6831 * cli/cli-utils.h: Add 'completer.h' include, and forward
6832 declaration for 'struct cmd_list_element'.
6833 (info_print_command_completer): Declare.
6834 * stack.c (_initialize_stack): Add completer for 'info locals' and
6835 'info args'.
6836 * symtab.c (_initialize_symtab): Add completer for 'info
6837 variables' and 'info functions'.
6838 * NEWS: Mention completion for additional info commands.
6839
b16507e0
AB
68402019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6841
6842 * cli/cli-utils.c (extract_info_print_args): Delete.
6843 (extract_arg_maybe_quoted): Delete.
6844 (info_print_options_defs): New variable.
6845 (make_info_print_options_def_group): New function.
6846 (extract_info_print_options): Define new function.
6847 * cli/cli-utils.h (extract_info_print_args): Delete.
6848 (struct info_print_options): New structure.
6849 (extract_info_print_options): Declare new function.
6850 * stack.c (info_locals_command): Update to use new
6851 extract_info_print_options, also add a header comment.
6852 (info_args_command): Likewise.
6853 * symtab.c (info_variables_command): Likewise.
6854 (info_functions_command): Likewise.
6855
021d8588
AB
68562019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6857
6858 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6859 to extract string arguments.
6860 * common/common-utils.c (extract_string_maybe_quoted): New function.
6861 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6862
b777eb6d
TT
68632019-07-11 Tom Tromey <tromey@adacore.com>
6864
6865 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6866 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6867 * top.h (gdbinit): Don't declare.
6868 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6869 into...
6870 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6871 * top.c (gdb_init): Don't call init_cli_cmds.
6872 (gdbinit): Remove.
6873 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6874
72ee03ff
TT
68752019-07-11 Tom Tromey <tromey@adacore.com>
6876
6877 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6878 after it has been moved.
6879
00db9531
SM
68802019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6881
6882 * valops.c (value_must_coerce_to_target): Change return type to
6883 bool.
6884 * value.h (value_must_coerce_to_target): Likewise.
6885
f2478a7e
SM
68862019-07-10 Simon Marchi <simon.marchi@efficios.com>
6887
6888 * breakpoint.c (is_hardware_watchpoint): Remove
6889 forward-declaration.
6890 (is_masked_watchpoint): Change return type to bool.
6891 (is_tracepoint): Likewise.
6892 (is_breakpoint): Likewise.
6893 (is_hardware_watchpoint): Likewise.
6894 (is_watchpoint): Likewise.
6895 (is_no_memory_software_watchpoint): Likewise.
6896 (is_catchpoint): Likewise.
6897 (breakpoint_1): Make FILTER parameter's return type bool.
6898 is_masked_watchpoint): Change return type to bool.
6899 (save_breakpoints): Make FILTER parameter's return type bool.
6900 * breakpoint.h (is_breakpoint): Change return type to bool.
6901 (is_watchpoint): Likewise.
6902 (is_catchpoint): Likewise.
6903 (is_tracepoint): Likewise.
6904
0d12e84c
TT
69052019-07-10 Tom Tromey <tom@tromey.com>
6906
6907 * defs.h: Don't include gdbarch.h.
6908 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6909 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6910 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6911 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6912 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6913 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6914 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6915 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6916 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6917 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6918 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6919 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6920 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6921 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6922 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6923 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6924 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6925 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6926 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6927 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6928 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6929 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6930 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6931 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6932 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6933 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6934 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6935
f06f1252
TT
69362019-07-10 Tom Tromey <tromey@adacore.com>
6937
6938 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6939 * breakpoint.c (init_ada_exception_breakpoint): Register as
6940 bp_catchpoint.
6941 (print_one_breakpoint_location, print_one_breakpoint): Use
6942 is_ada_exception_catchpoint.
6943 * ada-lang.c (class ada_catchpoint_location): Pass
6944 bp_loc_software_breakpoint to bp_location constructor.
6945 (is_ada_exception_catchpoint): New function.
6946
7a5d944b
TT
69472019-07-10 Tom Tromey <tromey@adacore.com>
6948
6949 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6950 VEC.
6951 (struct arm_exidx_entry): New method operator<.
6952 (struct arm_exidx_data) <section_maps>: Change type.
6953 (arm_exidx_data_free): Remove.
6954 (arm_exidx_data_key): Change type. Move lower.
6955 (arm_exidx_new_objfile): Update.
6956 (arm_compare_exidx_entries): Remove.
6957 (arm_find_exidx_entry, _initialize_arm_tdep)
6958
48c66e1d
TT
69592019-07-10 Tom Tromey <tromey@adacore.com>
6960
6961 * solib-spu.c (ocl_program_data_key): Change type.
6962 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6963 Update.
6964
a269fbf1
TT
69652019-07-10 Tom Tromey <tromey@adacore.com>
6966
6967 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6968 (struct solib_aix_inferior_data) <library_list>: Change type.
6969 (solib_aix_inferior_data_handle): Change type.
6970 (get_solib_aix_inferior_data): Update.
6971 (solib_aix_free_library_list): Remove.
6972 (library_list_start_library): Update.
6973 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6974 return type.
6975 (solib_aix_get_library_list)
6976 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6977 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6978
c294730c
TT
69792019-07-10 Tom Tromey <tromey@adacore.com>
6980
6981 * solib-dsbt.c (struct dsbt_info): Add initializers.
6982 (solib_dsbt_pspace_data): Change type.
6983 (dsbt_pspace_data_cleanup): Remove.
6984 (get_dsbt_info, _initialize_dsbt_solib): Update.
6985
9d52077d
TT
69862019-07-10 Tom Tromey <tromey@adacore.com>
6987
6988 * spu-tdep.c (spu_overlay_data): Change type.
6989 (spu_get_overlay_table, spu_overlay_new_objfile)
6990 (_initialize_spu_tdep): Update.
6991
22a20dca
TT
69922019-07-10 Tom Tromey <tromey@adacore.com>
6993
6994 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6995 destructor.
6996 (dbx_objfile_data_key): Change type and declare later.
6997 (DBX_SYMFILE_INFO): Rewrite.
6998 * dbxread.c (dbx_objfile_data_key): Change type.
6999 (dbx_symfile_init): Update.
7000 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7001 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7002 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7003
cb60f420
TT
70042019-07-10 Tom Tromey <tromey@adacore.com>
7005
7006 * jit.c (jit_program_space_key): Change type. Move lower.
7007 (get_jit_program_space_data): Update.
7008 (jit_program_space_data_cleanup): Remove.
7009 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7010 Update.
7011 (struct jit_program_space_data): Add initializers.
7012
51df2ae3
TT
70132019-07-10 Tom Tromey <tromey@adacore.com>
7014
7015 * solib-darwin.c (struct darwin_info): Add initializers.
7016 (solib_darwin_pspace_data): Change type.
7017 (darwin_pspace_data_cleanup): Remove.
7018 (get_darwin_info, _initialize_darwin_solib): Update.
7019
18101a35
TT
70202019-07-10 Tom Tromey <tromey@adacore.com>
7021
7022 * remote-sim.c (struct sim_inferior_data): Add initializers,
7023 constructor, and destructor.
7024 (sim_inferior_data_key): Change type. Move lower.
7025 (check_for_duplicate_sim_descriptor): Update.
7026 (get_sim_inferior_data): Use new. Update.
7027 (~sim_inferior_data_cleanup): Rename from
7028 sim_inferior_data_cleanup. Simplify.
7029 (gdbsim_close_inferior, simulator_command)
7030 (sim_command_completer, _initialize_remote_sim): Update.
7031 (next_pid, INITIAL_PID): Move earlier.
7032
05b08ac1
TT
70332019-07-10 Tom Tromey <tromey@adacore.com>
7034
7035 * python/python-internal.h (create_thread_object): Return
7036 gdbpy_ref.
7037 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7038 * python/py-inferior.c (struct threadlist_entry): Add
7039 constructor.
7040 <thread_obj>: Now a gdbpy_ref.
7041 (thread_to_thread_object): Update.
7042 (add_thread_object): Use new.
7043 (delete_thread_object): Use delete.
7044 (infpy_threads): Update.
7045 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7046 GIL.
7047
32372d80
TT
70482019-07-10 Tom Tromey <tromey@adacore.com>
7049
7050 * valops.c (value_cast): Specialize error message for Ada.
7051
5c458ae8
SM
70522019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7053
7054 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7055
4c462cb0
SM
70562019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7057
7058 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7059 bpstat_should_step): Return bool, adjust comments.
7060 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7061 bpstat_should_step): Likewise.
7062
89abbcc2
AH
70632019-07-10 Alan Hayward <alan.hayward@arm.com>
7064
7065 * features/Makefile: Use feature target descriptions for Arm.
7066 * features/arm/arm-core.c: Generate new file.
7067 * features/arm/arm-fpa.c: Likewise.
7068 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7069 * features/arm/arm-m-profile.c: Likewise.
7070 * features/arm/arm-vfpv2.c: Likewise.
7071 * features/arm/arm-vfpv3.c: Likewise.
7072 * features/arm/xscale-iwmmxt.c: Likewise.
7073 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7074
166a82be
AH
70752019-07-10 Alan Hayward <alan.hayward@arm.com>
7076
7077 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7078 ptrace earlier.
7079
9fb4c7e9
AH
70802019-07-10 Alan Hayward <alan.hayward@arm.com>
7081
7082 * features/aarch64-pauth.c: Regenerate.
7083
e2d0f980
SM
70842019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7085
7086 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7087 bool.
7088 (bpstat_what): Use false instead of 0.
7089
a38118e5
PA
70902019-07-09 Pedro Alves <palves@redhat.com>
7091
7092 * break-catch-throw.c (is_exception_catchpoint): New.
7093 * breakpoint.c (print_one_breakpoint_location): New parameter
7094 'raw_loc'. Handle it. Use
7095 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7096 looking at the breakpoint's type.
7097 (print_one_breakpoint): If handling "maint info breakpoints", also
7098 print locations of exception catchpoints.
7099 * breakpoint.h (is_exception_catchpoint): Declare.
7100
cb1e4e32
PA
71012019-07-09 Pedro Alves <palves@redhat.com>
7102
7103 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7104 "addr" field.
7105 (allocate_location_exception_catchpoint): New.
7106 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7107 (initialize_throw_catchpoint_ops): Install
7108 allocate_location_exception_catchpoint as allocate_location
7109 method.
7110 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7111 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7112 bp_loc_other.
7113 (breakpoint_address_is_meaningful): Delete.
7114 (bl_address_is_meaningful): New.
7115 (breakpoint_locations_match): Adjust comment.
7116 (bp_location_from_bp_type): New, factored out of...
7117 (bp_location::bp_location(breakpoint *)): ... this.
7118 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7119 factored out of...
7120 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7121 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7122 breakpoint_address_is_meaningful.
7123 (bp_locations_compare): Adjust comment.
7124 (update_global_location_list): Use bl_address_is_meaningful
7125 instead of breakpoint_address_is_meaningful.
7126 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7127 explicit.
7128 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7129 * python/py-breakpoint.c (bppy_get_location): No longer check
7130 whether location is null.
7131
b58a68fe
PA
71322019-07-09 Pedro Alves <palves@redhat.com>
7133
7134 PR c++/15468
7135 * breakpoint.c (print_one_breakpoint_location): Remove
7136 single-location assert.
7137
268a13a5
TT
71382019-07-09 Tom Tromey <tom@tromey.com>
7139
7140 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7141 * configure: Rebuild.
7142 * configure.ac: Change common to gdbsupport.
7143 * gdbsupport: Rename from common.
7144 * acinclude.m4: Change common to gdbsupport.
7145 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7146 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7147 gdbsupport.
7148 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7149 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7150 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7151 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7152 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7153 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7154 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7155 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7156 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7157 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7158 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7159 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7160 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7161 coff-pe-read.c, command.h, compile/compile-c-support.c,
7162 compile/compile-c.h, compile/compile-cplus-symbols.c,
7163 compile/compile-cplus-types.c, compile/compile-cplus.h,
7164 compile/compile-loc2c.c, compile/compile.c, completer.c,
7165 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7166 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7167 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7168 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7169 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7170 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7171 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7172 features/aarch64-core.c, features/aarch64-fpu.c,
7173 features/aarch64-pauth.c, features/aarch64-sve.c,
7174 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7175 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7176 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7177 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7178 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7179 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7180 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7181 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7182 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7183 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7184 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7185 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7186 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7187 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7188 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7189 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7190 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7191 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7192 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7193 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7194 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7195 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7196 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7197 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7198 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7199 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7200 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7201 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7202 minsyms.c, mips-linux-tdep.c, namespace.h,
7203 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7204 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7205 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7206 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7207 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7208 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7209 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7210 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7211 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7212 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7213 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7214 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7215 procfs.c, producer.c, progspace.h, psymtab.h,
7216 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7217 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7218 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7219 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7220 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7221 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7222 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7223 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7224 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7225 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7226 target-memory.c, target.c, target.h, target/waitstatus.c,
7227 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7228 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7229 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7230 unittests/array-view-selftests.c,
7231 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7232 unittests/common-utils-selftests.c,
7233 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7234 unittests/format_pieces-selftests.c,
7235 unittests/function-view-selftests.c,
7236 unittests/lookup_name_info-selftests.c,
7237 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7238 unittests/mkdir-recursive-selftests.c,
7239 unittests/observable-selftests.c,
7240 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7241 unittests/parse-connection-spec-selftests.c,
7242 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7243 unittests/scoped_fd-selftests.c,
7244 unittests/scoped_mmap-selftests.c,
7245 unittests/scoped_restore-selftests.c,
7246 unittests/string_view-selftests.c, unittests/style-selftests.c,
7247 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7248 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7249 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7250 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7251 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7252 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7253
5b0e2db4
AB
72542019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7255
7256 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7257 bool value.
7258 (decode_digits_ordinary): Set explicit_line field in sal.
7259 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7260 symtab_and_line that was set on an explicit line number in
7261 assembler code. Do always update the recorded symtab and line if
7262 we do skip the prologue.
7263
0ba852ab
AB
72642019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7265
7266 * breakpoint.c (set_breakpoint_location_function): Remove
7267 explicit_loc parameter.
7268 (momentary_breakpoint_from_master): Update call to
7269 set_breakpoint_location_function.
7270 (add_location_to_breakpoint): Likewise.
7271
b3a7d171
AB
72722019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7273
7274 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7275 required features based on default bfd type when no specific bfd
7276 is present.
7277
1f6f6e21
PW
72782019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7279
7280 * NEWS: Mention that GDB printf and eval commands can now print
7281 C-style and Ada-style convenience var strings without
7282 calling the inferior.
7283 * printcmd.c (printf_c_string): Locally print GDB internal var
7284 instead of transiting via the inferior.
7285 (printf_wide_c_string): Likewise.
7286
72872019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7288
5862c886 7289 PR breakpoints/25011
ea142fbf
AH
7290 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7291
0598af48
TT
72922019-07-04 Tom Tromey <tom@tromey.com>
7293
7294 PR tui/24724:
7295 * tui/tui-winsource.c (tui_clear_source_content): Update.
7296 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7297 (tui_update_breakpoint_info): Update.
7298 (tui_set_exec_info_content): Update.
7299 * tui/tui-source.c (tui_set_source_content_nil): Update.
7300 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7301 has_break.
7302 * tui/tui-data.h (enum tui_bp_flag): New.
7303 (tui_bp_flags): New enum flags type.
7304 (struct tui_source_element) <break_mode>: Change type. Rename
7305 from has_break.
7306 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7307 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7308 constants.
7309 * tui/tui-winsource.h: Fix comment.
7310
350fab54
AH
73112019-07-04 Alan Hayward <alan.hayward@arm.com>
7312
7313 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7314 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7315 (store_fpregs_to_thread)
7316 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7317 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7318 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7319 (IWMMXT_REGS_SIZE): Add define.
7320 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7321 (fetch_vfp_regs, store_vfp_regs)
7322 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7323 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7324
f0452268
AH
73252019-07-04 Alan Hayward <alan.hayward@arm.com>
7326
7327 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7328 defines.
7329 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7330 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7331 (ARM_INT_REGISTER_SIZE): ...to this.
7332 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7333 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7334 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7335 (arm_linux_collect_gregset, supply_nwfpe_register)
7336 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7337 defines.
7338 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7339 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7340 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7341 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7342 (arm_return_in_memory, arm_store_return_value)
7343 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7344 (arm_record_ld_st_multiple): Likewise.
7345 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7346 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7347
e935475c
AH
73482019-07-04 Alan Hayward <alan.hayward@arm.com>
7349
7350 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7351 AARCH64_DISPLACED_MODIFIED_INSNS.
7352 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7353 (aarch64_displaced_step_copy_insn): Likewise.
7354 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7355 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7356 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7357 ARM_DISPLACED_MODIFIED_INSNS.
7358 * arm-tdep.c (arm_gdbarch_init): Likewise.
7359 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7360 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7361 (struct arm_displaced_step_closure): Use
7362 ARM_DISPLACED_MODIFIED_INSNS.
7363
df0bb381
AH
73642019-07-04 Alan Hayward <alan.hayward@arm.com>
7365
7366 * features/Makefile: Remove unused xml files.
7367 * features/aarch64.xml: Remove.
7368 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7369 * features/i386/amd64-avx-avx512.xml: Remove.
7370 * features/i386/amd64-avx-linux.xml: Remove.
7371 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7372 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7373 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7374 * features/i386/amd64-avx-mpx.xml: Remove.
7375 * features/i386/amd64-avx.xml: Remove.
7376 * features/i386/amd64-linux.xml: Remove.
7377 * features/i386/amd64-mpx-linux.xml: Remove.
7378 * features/i386/amd64-mpx.xml: Remove.
7379 * features/i386/amd64.xml: Remove.
7380 * features/i386/i386-avx-avx512-linux.xml: Remove.
7381 * features/i386/i386-avx-avx512.xml: Remove.
7382 * features/i386/i386-avx-linux.xml: Remove.
7383 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7384 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7385 * features/i386/i386-avx-mpx-linux.xml: Remove.
7386 * features/i386/i386-avx-mpx.xml: Remove.
7387 * features/i386/i386-avx.xml: Remove.
7388 * features/i386/i386-linux.xml: Remove.
7389 * features/i386/i386-mmx-linux.xml: Remove.
7390 * features/i386/i386-mmx.xml: Remove.
7391 * features/i386/i386-mpx-linux.xml: Remove.
7392 * features/i386/i386-mpx.xml: Remove.
7393 * features/i386/i386.xml: Remove.
7394 * features/i386/x32-avx-avx512-linux.xml: Remove.
7395 * features/i386/x32-avx-linux.xml: Remove.
7396 * features/i386/x32-linux.xml: Remove.
7397
edd6266a
AH
73982019-07-04 Alan Hayward <alan.hayward@arm.com>
7399
7400 * regformats/aarch64.dat: Remove.
7401 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7402 * regformats/i386/amd64-avx-linux.dat: Remove.
7403 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7404 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7405 * regformats/i386/amd64-linux.dat: Remove.
7406 * regformats/i386/amd64-mpx-linux.dat: Remove.
7407 * regformats/i386/amd64.dat: Remove.
7408 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7409 * regformats/i386/i386-avx-linux.dat: Remove.
7410 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7411 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7412 * regformats/i386/i386-linux.dat: Remove.
7413 * regformats/i386/i386-mmx-linux.dat: Remove.
7414 * regformats/i386/i386-mpx-linux.dat: Remove.
7415 * regformats/i386/i386.dat: Remove.
7416 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7417 * regformats/i386/x32-avx-linux.dat: Remove.
7418 * regformats/i386/x32-linux.dat: Remove.
7419
2b40fda7
AH
74202019-07-04 Alan Hayward <alan.hayward@arm.com>
7421
7422 * aarch64-tdep.c: Remove xml self tests.
7423 * amd64-linux-tdep.c: Likewise.
7424 * amd64-tdep.c: Likewise.
7425 * i386-linux-tdep.c: Likewise.
7426 * i386-tdep.c: Likewise.
7427
5f4ba3e7
PA
74282019-07-03 Pedro Alves <palves@redhat.com>
7429
7430 PR cli/24732
7431 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7432 (pipe_cmd_option_defs): New.
7433 (make_pipe_cmd_options_def_group): New.
7434 (pipe_command): Use gdb::option::process_options.
7435 (pipe_command_completer): New function.
7436 (_initialize_cli_cmds): Install completer for "pipe" command.
7437
3d9be6f5
PA
74382019-07-03 Pedro Alves <palves@redhat.com>
7439
7440 * cli/cli-option.c (union option_value) <string>: New field.
7441 (struct option_def_and_value): Add ctor, move ctor, dtor and
7442 use DISABLE_COPY_AND_ASSIGN.
7443 (option_def_and_value::clear_value): New.
7444 (parse_option, save_option_value_in_ctx, get_val_type_str)
7445 (add_setshow_cmds_for_options): Handle var_string.
7446 * cli-option.h (union option_def::var_address) <string>: New
7447 field.
7448 (struct string_option_def): New.
7449 * maint-test-options.c (struct test_options_opts): Add default
7450 ctor and use DISABLE_COPY_AND_ASSIGN.
7451 <string_opt>: New field.
7452 (test_options_opts::~test_options_opts): New.
7453 (test_options_opts::dump): Also dump "-string".
7454 (test_options_option_defs): Install "string.
7455
41fc454c
PA
74562019-07-03 Pedro Alves <palves@redhat.com>
7457
7458 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7459 option_value with a null enumeration.
7460 (complete_options): Save the option values in the context.
7461 (save_option_value_in_ctx): New, factored out from ...
7462 (process_options): ... here.
7463 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7464 of the function.
7465 * maint-test-options.c (test_options_opts::dump): New, factored
7466 out from ...
7467 (maintenance_test_options_command_mode): ... here.
7468 (maintenance_test_options_command_completion_result): Delete.
7469 (maintenance_test_options_command_completion_text): Update
7470 comment.
7471 (maintenance_show_test_options_completion_result): Change
7472 prototype. Just print
7473 maintenance_test_options_command_completion_text.
7474 (save_completion_result): New.
7475 (maintenance_test_options_completer_mode): Pass options context to
7476 complete_options, and then save a dump.
7477 (_initialize_maint_test_options): Use add_cmd to install "maint
7478 show test-options-completion-result".
7479
fdbc9870
PA
74802019-07-03 Pedro Alves <palves@redhat.com>
7481
7482 * NEWS (New commands): Mention "with" and "maint with".
7483 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7484 (with_command, with_command_completer): New.
7485 (pipe_command): Adjust to new repeat_previous
7486 interface.
7487 (_initialize_cli_cmds): Install the "with" command and its "w"
7488 alias.
7489 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7490 declarations.
7491 * cli/cli-setshow.c (parse_cli_var_uinteger)
7492 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7493 argument strings for all var_types.
7494 (get_setshow_command_value_string): New, factored out from ...
7495 (do_show_command): ... this.
7496 * cli/cli-setshow.h: Include <string>.
7497 (get_setshow_command_value_string): Declare.
7498 * command.h (repeat_previous): Now returns const char *. Adjust
7499 comment.
7500 * maint.c: Include "cli/cli-cmds.h".
7501 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7502 (_initialize_maint_cmds): Register the "maintenance with" command.
7503 * top.c (repeat_previous): Move bits from pipe_command here:
7504 Return the saved command line, if any; error out if there's no
7505 command to relaunch.
7506
c6ac8931
PA
75072019-07-03 Pedro Alves <palves@redhat.com>
7508
7509 * NEWS (New commands): Mention "maint set/show test-settings"
7510 instead of "maint test-settings".
7511 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7512 (maintenance_test_settings_set_list): Rename to ...
7513 (maintenance_set_test_settings_list): ... this.
7514 (maintenance_test_settings_show_list): Rename to ...
7515 (maintenance_show_test_settings_list): ... this.
7516 (maintenance_test_settings_cmd): Delete.
7517 (maintenance_test_settings_set_cmd): ...
7518 (maintenance_set_test_settings_cmd): ... this.
7519 (maintenance_test_settings_show_cmd): ...
7520 (maintenance_show_test_settings_cmd): ... this.
7521 (maintenance_test_settings_show_value_cmd):
7522 (maintenance_show_test_settings_value_cmd): ... this.
7523 (_initialize_maint_test_settings): No longer install the "maint
7524 test-settings" prefix command. Rename "maint test-settings set"
7525 to "maint set test-settings", and "maint test-settings show" to
7526 "maint show test-settings". Adjust all subcommands.
7527
d1fcf2fd
PA
75282019-07-03 Pedro Alves <palves@redhat.com>
7529
7530 * maint-test-settings.c: Fix file's intro comment. Replace all
7531 references to "test-options" with references to "test-settings",
7532 in comments.
7533
970f9d09
PA
75342019-07-03 Pedro Alves <palves@redhat.com>
7535
7536 * maint-test-settings.c (maintenance_test_settings_xxx)
7537 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7538 New.
7539 (maintenance_test_settings_enums): Use them.
7540 (maintenance_test_settings_enum): Default to
7541 maintenance_test_settings_xxx.
7542 (_initialize_maint_test_settings): Initialize
7543 MAINTENANCE_TEST_SETTINGS_FILENAME.
7544
f3869b1a
SM
75452019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7546
7547 * breakpoint.h (remove_breakpoints_inf): Change return type to
7548 void, move function documentation here.
7549 * breakpoint.c (remove_breakpoints_inf): Change return type to
7550 void, move function documentation to header.
7551
54d66006
PA
75522019-07-02 Pedro Alves <palves@redhat.com>
7553
7554 * NEWS (Completion improvements): Mention "info threads".
7555 * thread.c (struct info_threads_opts, info_threads_option_defs)
7556 (make_info_threads_options_def_group): New.
7557 (info_threads_command): Use gdb::option::process_options.
7558 (info_threads_command_completer): New.
7559 (_initialize_thread): Use gdb::option::build_help to build the
7560 help text for "info threads".
7561
854f6088
SM
75622019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7563
7564 * defs.h (generic_load): Move from here...
7565 * symfile.h (generic_load): ... to here. Rename name parameter
7566 to args.
7567 * symfile.c (generic_load): Add comment.
7568
54ee4252
TT
75692019-07-01 Tom Tromey <tromey@adacore.com>
7570
7571 * dwarf2read.c
7572 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7573 declaration of without_params. Fix formatting.
7574
65392b3e
TT
75752019-07-01 Tom Tromey <tromey@adacore.com>
7576
7577 * ada-exp.y (find_primitive_type): Update.
7578 * ada-lang.h (ada_lookup_symbol): Update.
7579 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7580 parameter.
7581 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7582
7d7571f0
SDJ
75832019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7584
7585 PR breakpoints/24541
7586 * gdbarch.c: Regenerate.
7587 * gdbarch.h: Regenerate.
7588 * gdbarch.sh: Add 'stap_adjust_register'.
7589 * i386-tdep.c: Include '<unordered_set>'.
7590 (i386_stap_adjust_register): New function.
7591 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7592 * stap-probe.c (stap_parse_register_operand): Call
7593 'gdbarch_stap_adjust_register'.
7594
5af5392a
SDJ
75952019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7596
7597 PR python/24742
7598 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7599 * python/python.c (do_start_initialization): Use 'xmalloc'
7600 instead of 'PyMem_Malloc'.
7601
10d06d82
TT
76022019-06-28 Tom Tromey <tromey@adacore.com>
7603
7604 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7605 for Ada.
7606
1b7f24cd
TT
76072019-06-27 Tom Tromey <tromey@adacore.com>
7608
7609 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7610 objfile_key.
7611 (arm_find_mapping_symbol, arm_record_special_symbol)
7612 (_initialize_arm_tdep): Update.
7613 (arm_objfile_data_free): Remove.
7614
3d507ff2
TT
76152019-06-27 Tom Tromey <tromey@adacore.com>
7616
7617 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7618 to cp_print_static_field.
7619
762c164d
TT
76202019-06-26 Tom Tromey <tromey@adacore.com>
7621
7622 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7623 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7624 declare.
7625
aa2f9bcf
AH
76262019-06-26 Alan Hayward <alan.hayward@arm.com>
7627
7628 * features/aarch64-core.c (create_feature_aarch64_core):
7629 Regenerate.
7630 * features/aarch64-core.xml: Add cpsr flags.
7631
3426ae57
AH
76322019-06-26 Alan Hayward <alan.hayward@arm.com>
7633
7634 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7635 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7636
4838e44c
SM
76372019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7638
7639 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7640 field.
7641 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7642 use.
7643 (arm_record_special_symbol): Don't insert new symbol in sorted
7644 position, push it at the end.
7645
54cc7474
SM
76462019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7647
7648 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7649 (arm_mapping_symbol_s): Remove.
7650 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7651 (arm_mapping_symbol_vec): New typedef.
7652 (struct arm_per_objfile): Add constructor.
7653 <section_maps>: Change type to
7654 std::unique_ptr<arm_mapping_symbol_vec[]>.
7655 (arm_compare_mapping_symbols): Remove.
7656 (arm_find_mapping_symbol): Adjust to section_maps type change.
7657 (arm_objfile_data_free): Call delete on arm_per_objfile.
7658 (arm_record_special_symbol): Adjust to section_maps type change.
7659 Allocate arm_per_objfile with new.
7660
b65b566c
PW
76612019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7662
7663 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7664 with the command prefix.
7665
c2fc64f5
TT
76662019-06-25 Tom Tromey <tom@tromey.com>
7667
7668 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7669 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7670
fb54fa76
TT
76712019-06-25 Tom Tromey <tom@tromey.com>
7672
7673 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7674 type.
7675 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7676 protected.
7677
f7952c57
TT
76782019-06-25 Tom Tromey <tom@tromey.com>
7679
7680 * tui/tui-winsource.c
7681 (tui_source_window_base::set_is_exec_point_at): Add check against
7682 LOA_ADDRESS.
7683
17568d78
TT
76842019-06-25 Tom Tromey <tom@tromey.com>
7685
7686 * tui/tui-source.c (tui_set_source_content): Don't check before
7687 xfree.
7688 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7689
53e7cdba
TT
76902019-06-25 Tom Tromey <tom@tromey.com>
7691
7692 * tui/tui-winsource.h (tui_update_source_window_as_is)
7693 (tui_alloc_source_buffer, tui_line_is_displayed)
7694 (tui_addr_is_displayed): Change type of win_info.
7695 * tui/tui-winsource.c (tui_update_source_window_as_is)
7696 (tui_clear_source_content, tui_show_source_line)
7697 (tui_show_source_content, tui_source_window_base::refill)
7698 (tui_source_window_base::set_is_exec_point_at)
7699 (tui_source_window_base::set_is_exec_point_at)
7700 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7701 (tui_alloc_source_buffer, tui_line_is_displayed)
7702 (tui_addr_is_displayed): Change type of win_info. Update.
7703 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7704 (tui_source_window_base::do_make_visible_with_new_height):
7705 Update.
7706 * tui/tui-source.c (tui_set_source_content)
7707 (tui_set_source_content_nil)
7708 (tui_source_window::do_scroll_vertical): Update.
7709 * tui/tui-layout.c (show_layout): Update.
7710 * tui/tui-disasm.c (tui_set_disassem_content)
7711 (tui_disasm_window::do_scroll_vertical): Update.
7712 * tui/tui-data.h (tui_win_content): Remove.
7713 (struct tui_gen_win_info) <content, content_size>: Remove.
7714 (struct tui_source_element): Add initializers and destructor.
7715 (union tui_which_element, struct tui_win_element): Remove.
7716 (struct tui_source_window_base) <content>: New field.
7717 (struct tui_data_window): Remove destructor.
7718 (tui_alloc_content, tui_free_win_content)
7719 (tui_free_all_source_wins_content): Don't declare.
7720 * tui/tui-data.c (tui_initialize_static_data): Update.
7721 (init_content_element, tui_alloc_content): Remove.
7722 (~tui_gen_win_info): Update.
7723 (~tui_data_window, tui_free_all_source_wins_content)
7724 (tui_free_win_content, free_content, free_content_elements):
7725 Remove.
7726
7908abbf
TT
77272019-06-25 Tom Tromey <tom@tromey.com>
7728
7729 * tui/tui-winsource.h (tui_clear_source_content)
7730 (tui_erase_source_content, tui_show_source_content): Change type
7731 of win_info.
7732 * tui/tui-winsource.c (tui_clear_source_content)
7733 (tui_erase_source_content, tui_show_source_content): Change type
7734 of win_info.
7735 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7736 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7737 win_info.
7738 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7739 win_info.
7740 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7741
02c28df0
TT
77422019-06-25 Tom Tromey <tom@tromey.com>
7743
7744 * tui/tui-winsource.c (tui_clear_source_content)
7745 (tui_source_window_base::set_is_exec_point_at): Update.
7746 * tui/tui-source.c (tui_set_source_content_nil): Update.
7747 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7748 a bool.
7749 * tui/tui-data.c (init_content_element): Update.
7750
6658b1bf
TT
77512019-06-25 Tom Tromey <tom@tromey.com>
7752
7753 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7754 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7755 * tui/tui-layout.c (init_and_make_win): Update.
7756 * tui/tui.h (enum tui_win_type): Update.
7757 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7758 tui_win_is_auxillary.
7759 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7760 tui_win_is_auxillary.
7761
21e1c91e
TT
77622019-06-25 Tom Tromey <tom@tromey.com>
7763
7764 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7765 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7766 (tui_delete_data_content_windows, tui_display_all_data)
7767 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7768 Update.
7769 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7770 * tui/tui-regs.c (tui_last_regs_line_no)
7771 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7772 (tui_show_registers): Update.
7773 (tui_show_register_group): Return void. Update.
7774 (tui_display_registers_from, tui_display_reg_element_at_line)
7775 (tui_display_registers_from_line, tui_check_register_values):
7776 Update.
7777 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7778 member.
7779 (struct tui_data_window) <regs_content>: Now a std::vector.
7780 <regs_content_count>: Remove.
7781 (tui_add_content_elements, tui_free_data_content): Don't declare.
7782 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7783 (init_content_element): Remove DATA_WIN case. Add assert.
7784 (tui_add_content_elements): Remove.
7785 (tui_data_window): Update.
7786 (tui_free_data_content): Remove.
7787 (free_content_elements): Remove DATA_WIN case.
7788
115ac53b
TT
77892019-06-25 Tom Tromey <tom@tromey.com>
7790
7791 * tui/tui-data.c (tui_data_item_window): Update.
7792 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7793 * tui/tui-windata.c (tui_display_all_data)
7794 (tui_display_data_from_line): Update.
7795 (tui_check_data_values): Remove.
7796 * tui/tui-regs.c (tui_show_register_group)
7797 (tui_display_reg_element_at_line): Update.
7798 * tui/tui-hooks.c (tui_register_changed)
7799 (tui_refresh_frame_and_register_information): Call
7800 tui_check_register_values.
7801 * tui/tui-data.h (struct tui_data_window) <data_content,
7802 data_content_count, data_type>: Remove.
7803 (enum tui_data_type): Remove.
7804
7805 * tui/tui-data.c (tui_data_window::clear_detail)
7806 (~tui_data_window): Update.
7807
eaf9738b
TT
78082019-06-25 Tom Tromey <tom@tromey.com>
7809
7810 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7811 declare.
7812 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7813 Rename from tui_first_data_item_displayed. Update.
7814 (tui_data_window::refresh_all)
7815 (tui_data_window::do_scroll_vertical): Update.
7816 * tui/tui-data.h (struct tui_data_window)
7817 <first_data_item_displayed>: Declare new method.
7818
31ca4723
TT
78192019-06-25 Tom Tromey <tom@tromey.com>
7820
7821 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7822 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7823 contents...
7824 (tui_initialize_static_data): ...here.
7825
41bcff7f
TT
78262019-06-25 Tom Tromey <tom@tromey.com>
7827
7828 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7829 (tui_display_registers_from, tui_check_register_values): Update.
7830 (tui_display_register): Remove win_info parameter; update.
7831 (tui_get_register): Change type of parameters.
7832 * tui/tui-data.h (struct tui_data_element): Remove.
7833 (union tui_which_element) <data>: Remove.
7834 <data_window>: Change type.
7835 (struct tui_data_item_window): New.
7836 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7837 case. Add assert.
7838 (~tui_data_item_window): New destructor.
7839 (free_content_elements): Remove DATA_ITEM_WIN case.
7840
d2802c33
TT
78412019-06-25 Tom Tromey <tom@tromey.com>
7842
7843 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7844 Remove.
7845
dd835f8b
TT
78462019-06-25 Tom Tromey <tom@tromey.com>
7847
7848 * tui/tui-data.h (struct tui_command_element): Remove.
7849 (union tui_which_element) <command>: Remove.
7850 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7851 assert.
7852 (free_content_elements): Remove CMD_WIN case.
7853
bd7db367
TT
78542019-06-25 Tom Tromey <tom@tromey.com>
7855
7856 * tui/tui-layout.c (tui_set_layout): Update.
7857 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7858 * tui/tui-data.c (layout_def): Update.
7859
3add462f
TT
78602019-06-25 Tom Tromey <tom@tromey.com>
7861
7862 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7863 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7864 (tui_source_window_base::set_new_height): Update.
7865 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7866 Update.
7867 (tui_set_locator_fullname, tui_set_locator_info)
7868 (tui_show_frame_info): Update.
7869 * tui/tui-source.c (tui_set_source_content)
7870 (tui_source_is_displayed): Update.
7871 * tui/tui-layout.c (show_source_disasm_command, show_data)
7872 (show_source_or_disasm_and_command): Update.
7873 * tui/tui-disasm.c (tui_set_disassem_content)
7874 (tui_get_begin_asm_address): Update.
7875 * tui/tui-data.h (struct tui_locator_element): Remove.
7876 (union tui_which_element) <locator>: Remove.
7877 (struct tui_locator_window): New.
7878 (tui_locator_win_info_ptr): Change return type.
7879 * tui/tui-data.c (_locator): Change type.
7880 (tui_locator_win_info_ptr): Change return type.
7881 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7882 (tui_alloc_content): Add assert.
7883
489e9d8b
TT
78842019-06-25 Tom Tromey <tom@tromey.com>
7885
7886 * tui/tui-winsource.c
7887 (tui_exec_info_window::maybe_allocate_content): New method.
7888 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7889 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7890 (make_source_or_disasm_window): Add cast.
7891 * tui/tui-data.h (union tui_which_element) <simple_string>:
7892 Remove.
7893 (struct tui_source_info): New.
7894 (struct tui_source_window_base) <execution_info>: Change type.
7895 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7896 case, and add assert.
7897 (tui_alloc_content): Add assert.
7898
c3fabb7d
TT
78992019-06-25 Tom Tromey <tom@tromey.com>
7900
7901 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7902 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7903 * tui/tui-data.c (tui_alloc_win_info): Remove.
7904
bbc228ee
TT
79052019-06-25 Tom Tromey <tom@tromey.com>
7906
7907 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7908 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7909 can_highlight.
7910
5fcee43a
TT
79112019-06-25 Tom Tromey <tom@tromey.com>
7912
7913 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7914 make_visible_with_new_height method.
7915 (tui_win_info::make_visible_with_new_height): New method.
7916 (tui_source_window_base::do_make_visible_with_new_height)
7917 (tui_data_window::do_make_visible_with_new_height)
7918 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7919 (make_visible_with_new_height): Remove.
7920 (tui_resize_all, tui_adjust_win_heights): Use
7921 make_visible_with_new_height method.
7922 * tui/tui-data.h (struct tui_win_info)
7923 <do_make_visible_with_new_height, make_visible_with_new_height>:
7924 New methods.
7925 (struct tui_source_window_base, struct tui_data_window)
7926 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7927 methods.
7928
d83f1fe6
TT
79292019-06-25 Tom Tromey <tom@tromey.com>
7930
7931 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7932 method.
7933 (update_tab_width): Call update_tab_width method.
7934 * tui/tui-data.h (struct tui_win_info)
7935 (struct tui_source_window_base) <update_tab_width>: New methods.
7936
17374de4
TT
79372019-06-25 Tom Tromey <tom@tromey.com>
7938
7939 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7940 parameter.
7941 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7942 parameter.
7943 (tui_gen_win_info::make_visible): Update.
7944 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7945 parameter.
7946 * tui/tui-data.h (enum tui_box): New enum.
7947 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7948
f936bca2
TT
79492019-06-25 Tom Tromey <tom@tromey.com>
7950
7951 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7952 init_and_make_win for EXEC_INFO_WIN.
7953 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7954 longer inline.
7955 (struct tui_win_info) <~tui_win_info>: Inline.
7956 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7957 Don't declare.
7958 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7959 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7960 Remove.
7961 (tui_initialize_static_data): Update.
7962 (~tui_gen_win_info): Handle more cleanup here.
7963 (~tui_source_window_base): Delete "execution_info".
7964 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7965
d6ba6a11
TT
79662019-06-25 Tom Tromey <tom@tromey.com>
7967
7968 * tui/tui-layout.c (make_command_window): Don't set
7969 can_highlight.
7970 (show_source_disasm_command): Call the reset method.
7971 (show_data): Don't set can_highlight. Call the reset method.
7972 (tui_gen_win_info::reset): Rename from init_gen_win_info
7973 (init_and_make_win): Simplify. Return tui_gen_win_info.
7974 (show_source_or_disasm_and_command): Call the reset method.
7975 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7976 (struct tui_cmd_window): Set can_highlight.
7977
48a3bd16
TT
79782019-06-25 Tom Tromey <tom@tromey.com>
7979
7980 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7981 from make_visible.
7982 (tui_make_visible, tui_make_invisible): Rewrite.
7983 (tui_win_info::make_visible): Remove.
7984 (tui_source_window_base::make_visible): Update.
7985 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7986 method. Moved from...
7987 (struct tui_win_info) <make_visible>: ...here.
7988
c3bd716f
TT
79892019-06-25 Tom Tromey <tom@tromey.com>
7990
7991 * tui/tui-winsource.c
7992 (tui_source_window_base::do_scroll_horizontal): Remove direction
7993 parameter.
7994 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7995 direction parameter.
7996 * tui/tui-win.c (tui_win_info::forward_scroll)
7997 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7998 (tui_win_info::right_scroll): Update.
7999 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8000 direction parameter.
8001 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8002 direction parameter.
8003 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8004 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8005 Remove direction parameter.
8006 (struct tui_source_window_base, struct tui_source_window)
8007 (struct tui_disasm_window, struct tui_data_window)
8008 (struct tui_cmd_window): Update.
8009
21c32dca
TT
80102019-06-25 Tom Tromey <tom@tromey.com>
8011
8012 * tui/tui-winsource.h (tui_set_exec_info_content)
8013 (tui_show_exec_info_content, tui_erase_exec_info_content)
8014 (tui_clear_exec_info_content, tui_update_exec_info): Change
8015 argument to tui_source_window_base.
8016 * tui/tui-winsource.c (tui_set_exec_info_content)
8017 (tui_show_exec_info_content, tui_erase_exec_info_content)
8018 (tui_clear_exec_info_content, tui_update_exec_info): Change
8019 argument to tui_source_window_base.
8020
73fbdc65
TT
80212019-06-25 Tom Tromey <tom@tromey.com>
8022
8023 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8024 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8025
33325343
TT
80262019-06-25 Tom Tromey <tom@tromey.com>
8027
8028 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8029 check.
8030
29d2c474
TT
80312019-06-25 Tom Tromey <tom@tromey.com>
8032
8033 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8034 type to void.
8035 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8036 type to void.
8037 * tui/tui-source.c (tui_set_source_content): Update.
8038 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8039
152f3f4b
TT
80402019-06-25 Tom Tromey <tom@tromey.com>
8041
8042 * tui/tui-win.c (window_name_completer, tui_set_focus)
8043 (tui_all_windows_info): Use name method.
8044 * tui/tui-data.h (struct tui_gen_win_info)
8045 (struct tui_source_window, struct tui_disasm_window)
8046 (struct tui_data_window, struct tui_cmd_window) <name>: New
8047 method.
8048 (tui_win_name): Don't declare.
8049 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8050 (tui_win_name): Remove.
8051
be4da588
TT
80522019-06-25 Tom Tromey <tom@tromey.com>
8053
8054 * tui/tui-winsource.h (tui_update_source_window)
8055 (tui_update_source_window_as_is): Change parameter type.
8056 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8057 to be a tui_source_window_base.
8058 (tui_update_source_window_as_is): Likewise.
8059 * tui/tui-win.c (make_visible_with_new_height): Update.
8060
5b81daba
TT
80612019-06-25 Tom Tromey <tom@tromey.com>
8062
8063 * tui/tui-winsource.c (tui_erase_source_content)
8064 (tui_show_source_content, tui_show_exec_info_content)
8065 (tui_erase_exec_info_content): Use refresh_window method.
8066 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8067 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8068 from tui_refresh_win.
8069 (tui_data_window::refresh_window): New method.
8070 (tui_win_info::refresh, tui_source_window_base::refresh)
8071 (tui_refresh_all): Use refresh_window method.
8072 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8073 method.
8074 * tui/tui-regs.c (tui_display_register): Call refresh_window
8075 method.
8076 * tui/tui-layout.c (show_source_disasm_command)
8077 (show_source_or_disasm_and_command): Call refresh_window method.
8078 * tui/tui-data.h (struct tui_gen_win_info)
8079 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8080 New method.
8081
cb2ce893
TT
80822019-06-25 Tom Tromey <tom@tromey.com>
8083
8084 * tui/tui.c (tui_rl_other_window, tui_enable)
8085 (tui_is_window_visible, tui_get_command_dimension): Update.
8086 * tui/tui-winsource.c (tui_update_source_window_as_is)
8087 (tui_clear_source_content, tui_erase_source_content)
8088 (tui_show_source_line, tui_source_window_base::refill)
8089 (tui_source_window_base::do_scroll_horizontal)
8090 (tui_source_window_base::set_is_exec_point_at)
8091 (tui_update_breakpoint_info, tui_set_exec_info_content)
8092 (tui_alloc_source_buffer, tui_line_is_displayed)
8093 (tui_addr_is_displayed): Update.
8094 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8095 (tui_check_and_display_highlight_if_needed)
8096 (tui_win_info::make_visible, tui_win_info::refresh)
8097 (tui_refresh_all): Update.
8098 * tui/tui-windata.c (tui_first_data_item_displayed)
8099 (tui_delete_data_content_windows, tui_erase_data_content)
8100 (tui_display_all_data, tui_data_window::refresh_all)
8101 (tui_check_data_values): Update.
8102 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8103 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8104 (tui_win_info::backward_scroll, tui_refresh_all_win)
8105 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8106 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8107 (tui_source_window_base::set_new_height)
8108 (tui_data_window::set_new_height)
8109 (make_invisible_and_set_new_height)
8110 (make_visible_with_new_height, new_height_ok)
8111 (parse_scrolling_args): Update.
8112 * tui/tui-stack.c (tui_show_frame_info): Update.
8113 * tui/tui-source.c (tui_set_source_content)
8114 (tui_set_source_content_nil, tui_source_is_displayed)
8115 (tui_source_window::do_scroll_vertical): Update.
8116 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8117 (tui_display_registers_from, tui_display_reg_element_at_line)
8118 (tui_check_register_values, tui_reg_command): Update.
8119 * tui/tui-layout.c (tui_default_win_height)
8120 (show_source_disasm_command, show_data, init_and_make_win)
8121 (show_source_or_disasm_and_command): Update.
8122 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8123 (tui_redisplay_readline, tui_mld_flush)
8124 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8125 (tui_getc): Update.
8126 * tui/tui-disasm.c (tui_set_disassem_content)
8127 (tui_disasm_window::do_scroll_vertical): Update.
8128 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8129 Now virtual.
8130 (struct tui_win_info): Derive from tui_gen_win_info.
8131 <~tui_win_info>: Mark as override.
8132 <generic>: Remove member.
8133 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8134 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8135 (~tui_data_window, ~tui_win_info)
8136 (tui_free_all_source_wins_content): Update.
8137 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8138
ab313b35
TT
81392019-06-25 Tom Tromey <tom@tromey.com>
8140
8141 * tui/tui-layout.c (init_and_make_win): Use new.
8142 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8143 destructor, initializers.
8144 (tui_alloc_generic_win_info): Don't declare.
8145 * tui/tui-data.c (_locator): Add argument to constructor.
8146 (source_win, disasm_win): New globals.
8147 (exec_info): Remove.
8148 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8149 Update.
8150 (tui_alloc_generic_win_info): Remove.
8151 (init_content_element): Use new.
8152 (tui_win_info::tui_win_info): Update.
8153 (free_content_elements) <case DATA_WIN>: Use delete.
8154
dc2c33e4
TT
81552019-06-25 Tom Tromey <tom@tromey.com>
8156
8157 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8158 * tui/tui-windata.c (tui_first_data_item_displayed)
8159 (tui_delete_data_content_windows): Update.
8160 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8161 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8162 (tui_display_registers_from, tui_check_register_values): Update.
8163 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8164 pointer.
8165 * tui/tui-data.c (init_content_element): Update. Allocate the new
8166 window.
8167 (tui_free_data_content): Update.
8168 (free_content_elements) <case DATA_WIN>: Free the window.
8169
214a5cbe
TT
81702019-06-25 Tom Tromey <tom@tromey.com>
8171
8172 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8173 Update.
8174 * tui/tui-layout.c (make_command_window)
8175 (show_source_disasm_command, show_data, init_and_make_win)
8176 (show_source_or_disasm_and_command): Update.
8177 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8178 method.
8179 <can_highight, is_highlighted>: Now bool.
8180 (tui_set_win_highlight): Don't declare.
8181 * tui/tui-data.c (tui_set_win_highlight): Remove.
8182
8e2daf15
TT
81832019-06-25 Tom Tromey <tom@tromey.com>
8184
8185 * tui/tui-wingeneral.c (make_visible): Remove check of window
8186 type.
8187
8903bd8a
TT
81882019-06-25 Tom Tromey <tom@tromey.com>
8189
8190 * tui/tui-win.c (tui_win_info::max_height)
8191 (tui_cmd_window::max_height): New methods.
8192 (new_height_ok): Call max_height.
8193 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8194 <max_height>: New method.
8195
3f02ce1e
TT
81962019-06-25 Tom Tromey <tom@tromey.com>
8197
8198 * tui/tui-win.c (tui_source_window_base::set_new_height)
8199 (tui_data_window::set_new_height): New methods.
8200 (make_invisible_and_set_new_height): Call set_new_height method.
8201 * tui/tui-data.h (struct tui_win_info)
8202 (struct tui_source_window_base, struct tui_data_window)
8203 <set_new_height>: New method.
8204
1825f487
TT
82052019-06-25 Tom Tromey <tom@tromey.com>
8206
8207 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8208 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8209 tui_refresh_data_win.
8210 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8211 method.
8212 (tui_refresh_all_win): Call the refresh_all method.
8213 (tui_set_focus): Likewise.
8214 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8215 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8216 Likewise.
8217
ad54d15b
TT
82182019-06-25 Tom Tromey <tom@tromey.com>
8219
8220 * tui/tui-winsource.h (tui_refill_source_window)
8221 (tui_set_is_exec_point_at): Don't declare.
8222 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8223 (tui_source_window_base::refill): Rename from
8224 tui_refill_source_window.
8225 (tui_source_window_base::do_scroll_horizontal): Update.
8226 (tui_source_window_base::set_is_exec_point_at): Rename from
8227 tui_set_is_exec_point_at.
8228 (tui_update_all_breakpoint_info): Update.
8229 * tui/tui-stack.c (tui_show_frame_info): Update.
8230 * tui/tui-layout.c (show_data): Add cast.
8231 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8232 * tui/tui-data.h (struct tui_source_window_base) <refill,
8233 set_is_exec_point_at>: New methods.
8234 (tui_source_windows, tui_add_to_source_windows): Update types.
8235 (tui_add_to_source_windows): Remove redundant declaration.
8236 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8237 (tui_source_windows): Change return type.
8238 (tui_clear_source_windows_detail): Update.
8239 (tui_add_to_source_windows): Change type of parameter.
8240 (tui_free_all_source_wins_content): Update.
8241
2042b506
TT
82422019-06-25 Tom Tromey <tom@tromey.com>
8243
8244 * tui/tui-wingeneral.c (tui_win_info::refresh)
8245 (tui_source_window_base::refresh): New methods.
8246 (tui_refresh_all): Call the refresh method.
8247 * tui/tui-data.h (struct tui_win_info)
8248 (struct tui_source_window_base) <refresh>: New method.
8249
56122977
TT
82502019-06-25 Tom Tromey <tom@tromey.com>
8251
8252 * tui/tui.h (tui_is_window_visible): Return bool.
8253 * tui/tui.c (tui_is_window_visible): Return bool.
8254 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8255 (tui_make_visible, tui_make_invisible)
8256 (tui_win_info::make_visible)
8257 (tui_source_window_base::make_visible, make_all_visible)
8258 (tui_make_all_visible, tui_make_all_invisible): Update.
8259 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8260 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8261 bool.
8262 (struct tui_win_info, struct tui_source_window_base)
8263 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8264 * tui/tui-data.c (tui_init_generic_part): Update.
8265
cda37efb
TT
82662019-06-25 Tom Tromey <tom@tromey.com>
8267
8268 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8269 (tui_source_window_base::make_visible): New methods.
8270 (make_all_visible): Make method call.
8271 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8272 (struct tui_source_window_base, struct tui_cmd_window): Override
8273 make_visible.
8274 (tui_win_is_source_type): Don't declare.
8275 * tui/tui-data.c (tui_win_is_source_type): Remove.
8276
6a0ee02c
TT
82772019-06-25 Tom Tromey <tom@tromey.com>
8278
8279 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8280 NULL check.
8281
63901aec
TT
82822019-06-25 Tom Tromey <tom@tromey.com>
8283
8284 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8285 Inline constructor. Add initializers for members.
8286 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8287 constructors; now inline in class.
8288
ceb13a13
TT
82892019-06-25 Tom Tromey <tom@tromey.com>
8290
8291 * tui/tui-regs.c (tui_show_registers): Update.
8292 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8293 bool.
8294 * tui/tui-data.c (tui_data_window::clear_detail)
8295 (tui_data_window): Update.
8296
238eb706
TT
82972019-06-25 Tom Tromey <tom@tromey.com>
8298
8299 * tui/tui-windata.c (tui_display_all_data)
8300 (tui_display_data_from_line, tui_display_data_from)
8301 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8302 Update.
8303 * tui/tui-regs.c (tui_last_regs_line_no)
8304 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8305 (tui_show_registers, tui_show_register_group)
8306 (tui_display_registers_from, tui_display_reg_element_at_line)
8307 (tui_display_registers_from_line, tui_check_register_values)
8308 (tui_reg_next, tui_reg_prev): Update.
8309 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8310 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8311 tui_data_window.
8312 (struct tui_win_info) <detail>: Remove. Add new fields from
8313 tui_data_info.
8314 (TUI_DATA_WIN): Add cast.
8315 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8316 (~tui_data_window): Simplify.
8317
81491aa0
TT
83182019-06-25 Tom Tromey <tom@tromey.com>
8319
8320 * tui/tui-layout.c (show_source_disasm_command)
8321 (show_source_or_disasm_and_command): Update.
8322 * tui/tui-io.c (update_cmdwin_start_line)
8323 (tui_redisplay_readline): Update.
8324 * tui/tui-data.h (struct tui_command_info): Remove.
8325 (struct tui_win_info) <detail>: Remove command_info member.
8326 (struct tui_data_window) <start_line>: New member, from
8327 tui_command_info.
8328 (TUI_CMD_WIN): Add casts.
8329
e6e41501
TT
83302019-06-25 Tom Tromey <tom@tromey.com>
8331
8332 * tui/tui-winsource.c (tui_update_source_window)
8333 (tui_refill_source_window)
8334 (tui_source_window_base::do_scroll_horizontal)
8335 (tui_update_breakpoint_info, tui_set_exec_info_content)
8336 (tui_show_exec_info_content, tui_erase_exec_info_content)
8337 (tui_clear_exec_info_content): Update.
8338 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8339 Update.
8340 * tui/tui-win.c (make_invisible_and_set_new_height)
8341 (make_visible_with_new_height): Update.
8342 * tui/tui-source.c (tui_set_source_content)
8343 (tui_show_symtab_source): Update.
8344 * tui/tui-layout.c (extract_display_start_addr)
8345 (show_source_disasm_command, show_data)
8346 (make_source_or_disasm_window)
8347 (show_source_or_disasm_and_command): Update.
8348 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8349 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8350 "gdbarch".
8351 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8352 to tui_source_window_base.
8353 (struct tui_win_info) <detail>: Remove source_info member.
8354 (struct tui_source_window_base) <has_locator>: Inline.
8355 Move contents from tui_source_info; rename has_locator member to
8356 m_has_locator.
8357 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8358 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8359 header file.
8360 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8361 Simplify.
8362 (tui_free_all_source_wins_content): Cast to
8363 tui_source_window_base.
8364
44f0e208
TT
83652019-06-25 Tom Tromey <tom@tromey.com>
8366
8367 * tui/tui-win.c (make_invisible_and_set_new_height)
8368 (make_visible_with_new_height): Call has_locator method.
8369 * tui/tui-layout.c (show_source_disasm_command, show_data)
8370 (show_source_or_disasm_and_command): Update for bool change.
8371 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8372 (tui_win_info) <has_locator>: New method.
8373 (struct tui_source_window_base) <has_locator>: New method.
8374 (tui_win_has_locator): Don't declare.
8375 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8376 from tui_win_has_locator.
8377 (tui_source_window_base): Use false, not FALSE.
8378
7778b912
TT
83792019-06-25 Tom Tromey <tom@tromey.com>
8380
8381 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8382 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8383 clear_detail method directly.
8384 (tui_clear_win_detail): Remove.
8385
f83d391c
TT
83862019-06-25 Tom Tromey <tom@tromey.com>
8387
8388 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8389 "this", not TUI_DISASM_WIN.
8390
13446e05
TT
83912019-06-25 Tom Tromey <tom@tromey.com>
8392
8393 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8394 declare.
8395 * tui/tui-winsource.c
8396 (tui_source_window_base::do_scroll_horizontal): Rename from
8397 tui_horizontal_source_scroll.
8398 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8399 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8400 from tui_vertical_data_scroll.
8401 * tui/tui-win.h (tui_scroll): Don't declare.
8402 * tui/tui-win.c (tui_win_info::forward_scroll)
8403 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8404 (tui_win_info::right_scroll): Rename and update.
8405 (tui_scroll_forward_command, tui_scroll_backward_command)
8406 (tui_scroll_left_command, tui_scroll_right_command): Update.
8407 (tui_scroll): Remove.
8408 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8409 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8410 from tui_vertical_source_scroll.
8411 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8412 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8413 from tui_vertical_disassem_scroll.
8414 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8415 do_scroll_horizontal>: New methods.
8416 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8417 Likewise.
8418 (struct tui_source_window_base): Add do_scroll_horizontal.
8419 (struct tui_source_window, struct tui_disasm_window): Add
8420 do_scroll_vertical.
8421 (struct tui_data_window, struct tui_cmd_window): Add
8422 do_scroll_horizontal and do_scroll_vertical.
8423 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8424
5cf82909
TT
84252019-06-25 Tom Tromey <tom@tromey.com>
8426
8427 * tui/tui-data.h (struct tui_source_window_base): New struct.
8428 (struct tui_source_window): Derive from tui_source_window_base.
8429 (struct tui_disasm_window): New struct.
8430 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8431 from tui_source_window::clear_detail.
8432 (tui_source_window_base): Rename from tui_source_window.
8433 (~tui_source_window_base): Rename from ~tui_source_window.
8434 (tui_alloc_win_info): Create a tui_disasm_window.
8435
ee1d42d6
TT
84362019-06-25 Tom Tromey <tom@tromey.com>
8437
8438 * tui/tui-data.h (struct tui_source_window)
8439 (struct tui_data_window): Declare destructors.
8440 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8441 destructors.
8442 (tui_win_info): Simplify.
8443
b4eb2452
TT
84442019-06-25 Tom Tromey <tom@tromey.com>
8445
8446 * tui/tui-winsource.c (tui_display_main)
8447 (tui_update_source_windows_with_addr)
8448 (tui_update_all_breakpoint_info): Update.
8449 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8450 (new_height_ok, parse_scrolling_args): Update.
8451 * tui/tui-stack.c (tui_show_frame_info): Update.
8452 * tui/tui-data.h (struct tui_list): Remove.
8453 (tui_source_windows): Return a reference to a std::vector.
8454 * tui/tui-data.c (source_windows): Now a std::vector.
8455 (tui_source_windows): Change return type.
8456 (tui_clear_source_windows): Rewrite.
8457 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8458 (tui_free_all_source_wins_content): Rewrite.
8459
8761a91b
TT
84602019-06-25 Tom Tromey <tom@tromey.com>
8461
8462 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8463 (struct tui_data_window, struct tui_cmd_window): Declare
8464 clear_detail method.
8465 * tui/tui-data.c (tui_source_window::clear_detail)
8466 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8467 methods.
8468 (tui_clear_win_detail): Simplify.
8469
0ed69eda
TT
84702019-06-25 Tom Tromey <tom@tromey.com>
8471
8472 * tui/tui-layout.c (make_source_window, make_disasm_window)
8473 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8474 Return the new window.
8475 (show_source_disasm_command, show_data)
8476 (show_source_or_disasm_and_command): Update.
8477
82432e10
TT
84782019-06-25 Tom Tromey <tom@tromey.com>
8479
8480 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8481 parameter. Return the new window.
8482 (show_source_disasm_command): Update and remove NULL check.
8483 (show_source_or_disasm_and_command): Update.
8484
ec328aa5
TT
84852019-06-25 Tom Tromey <tom@tromey.com>
8486
8487 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8488
33b906ab
TT
84892019-06-25 Tom Tromey <tom@tromey.com>
8490
8491 * tui/tui-data.h (struct tui_win_info): Make constructor
8492 protected. Make destructor virtual. Add initializers.
8493 (tui_source_window, tui_data_window, tui_cmd_window): New
8494 classes.
8495 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8496 constructor. Add "type" parameter.
8497 (tui_source_window, tui_data_window, tui_cmd_window): New
8498 constructors.
8499 (tui_alloc_win_info): Instantiate the appropriate subclass.
8500
e7e11af4
TT
85012019-06-25 Tom Tromey <tom@tromey.com>
8502
8503 * tui/tui-win.c (tui_resize_all): Use delete.
8504 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8505 destructor.
8506 (tui_free_window): Don't declare.
8507 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8508 Update.
8509
6792b55e
TT
85102019-06-25 Tom Tromey <tom@tromey.com>
8511
8512 * tui/tui-data.h (struct tui_win_info): Add constructor.
8513 * tui/tui-data.c (tui_alloc_win_info): Use new.
8514 (tui_free_window): Use delete.
8515
f95675e1
TT
85162019-06-22 Tom Tromey <tom@tromey.com>
8517
8518 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8519 declare.
8520 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8521
5bff081c
TT
85222019-06-22 Tom Tromey <tom@tromey.com>
8523
8524 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8525 declare.
8526 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8527
47e3f474
TV
85282019-06-22 Tom de Vries <tdevries@suse.de>
8529
8530 * dwarf2read.c (create_addrmap_from_aranges)
8531 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8532 instead of '%zu'.
8533
fd5866f6
SM
85342019-06-21 Simon Marchi <simon.marchi@efficios.com>
8535
8536 * dwarf2read.h (dwarf2_section_info_def): Remove.
8537 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8538 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8539 std::vector<dwarf2_section_info>.
8540 (struct dwo_file) <~dwo_file>: Remove.
8541 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8542 types field.
8543 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8544 (dwarf2_read_debug_names): Likewise.
8545 (create_debug_types_hash_table): Change parameter type to
8546 array_view, adjust code accordingly.
8547 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8548 (partial_die_info::fixup): Likewise.
8549 (determine_prefix): Likewise.
8550 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8551
fb1eb2f9
SM
85522019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8553
8554 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8555 gdb_bfd_ref_ptr.
8556 <~dwo_file>: Remove call to gdb_bfd_unref.
8557 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8558 gdb_bfd_ref_ptr::get.
8559
51ac9db5
SM
85602019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8561
8562 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8563 type to htab_up.
8564 * dwarf2read.c (struct dwo_file): Initialize fields.
8565 <~dwo_file>: New.
8566 (free_dwo_file): Remove, move content to ~dwo_file.
8567 (struct dwo_file_deleter): Remove.
8568 (dwo_file_up>: Remove custom deleter.
8569 (free_dwo_files): Remove.
8570 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8571 dwo_files.
8572 (process_skeletonless_type_units): Call unique_ptr::get.
8573 (allocate_dwo_file_hash_table): Add deleter to created hash
8574 table. Change return type to htab_up.
8575 (lookup_dwo_file_slot): Don't memset dwo_file, call
8576 unique_ptr::get.
8577 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8578 (create_dwo_unit_in_dwp_v2): Likewise.
8579 (open_and_init_dwo_file): Likewise.
8580 (free_dwo_file_from_slot): Remove.
8581
dc4ccb6f
SM
85822019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8583
8584 * dwarf2read.h (struct dwarf2_section_info) <readin,
8585 is_virtual>: Change type to bool.
8586 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8587 true instead of 1.
8588
e6a1c5cb
TT
85892019-06-19 Tom Tromey <tom@tromey.com>
8590
8591 * tui/tui-data.h (tui_init_content_element): Don't declare.
8592
6f6ffbeb
TT
85932019-06-19 Tom Tromey <tom@tromey.com>
8594
8595 * tui/tui-data.h (tui_init_win_info): Don't declare.
8596
f23f598e
TV
85972019-06-19 Tom de Vries <tdevries@suse.de>
8598
8599 * dwarf2read.h (abstract_to_concrete): Change type to
8600 std::unordered_map<sect_offset, std::vector<sect_offset>,
8601 gdb::hash_enum<sect_offset>>.
8602
680e1bee
TT
86032019-06-19 Tom Tromey <tromey@adacore.com>
8604
8605 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8606 EVAL_AVOID_SIDE_EFFECTS specially.
8607
dcf37923
TT
86082019-06-19 Tom Tromey <tromey@adacore.com>
8609
8610 * source-cache.c (highlighter): New global.
8611 (source_cache::get_source_lines): Create a highlighter on demand.
8612
494986d5
AB
86132019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8614
8615 * defs.h (deprecated_interactive_hook): Delete declaration.
8616 * interps.c (clear_interpreter_hooks): Remove use of
8617 deprecated_interactive_hook.
8618 * top.c (deprecated_interactive_hook): Delete definition.
8619 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8620
3360b6e7
TV
86212019-06-18 Tom de Vries <tdevries@suse.de>
8622
8623 PR gdb/24515
8624 * dwarf2read.h (abstract_to_concrete): Change type from
8625 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8626 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8627 * dwarf2read.c (read_variable): Update.
8628 (dwarf2_fetch_die_loc_sect_off): Update.
8629
310b3441
TV
86302019-06-17 Tom de Vries <tdevries@suse.de>
8631
8632 PR gdb/24617
8633 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8634 accessing parent[parent_len - 1].
8635
ba9777be
PP
86362019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8637
8638 PR gdb/24364
8639 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8640 call dtrace_process_dof with NULL dof.
8641
2b9f6e89
TV
86422019-06-16 Tom de Vries <tdevries@suse.de>
8643
8644 PR gdb/24445
8645 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8646
431b3ead
TT
86472019-06-16 Tom Tromey <tom@tromey.com>
8648
8649 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8650 (make_all_visible): Use address of member.
8651
d04b44a1
TT
86522019-06-16 Tom Tromey <tom@tromey.com>
8653
8654 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8655 (tui_free_window, free_content, free_content_elements): Remove
8656 unnecessary cast.
8657 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8658 cast.
8659 * tui/tui-regs.c (tui_show_register_group)
8660 (tui_display_registers_from, tui_display_reg_element_at_line):
8661 Remove unnecessary cast.
8662
bf5142e7
AB
86632019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8664
8665 * linux-nat.c (normal_mask): Delete.
8666 (_initialize_linux_nat): Don't initialise normal_mask.
8667
c4973306
SM
86682019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8669
8670 PR gdb/24445
8671 * dwarf-index-write.h (write_psymtabs_to_index): Add
8672 dwz_basename parameter.
8673 * dwarf-index-write.c (write_gdbindex): Move file writing to
8674 write_gdbindex_1. Change return type void.
8675 (assert_file_size): Move up, remove filename parameter.
8676 (write_gdbindex_1): New function.
8677 (write_debug_names): Change return type to void, call
8678 assert_file_size.
8679 (struct index_wip_file): New struct.
8680 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8681 file logic to index_wip_file. Write index for dwz file if
8682 needed.
8683 (save_gdb_index_command): Pass basename of dwz file, if present.
8684 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8685 build-id of dwz file, if present.
8686 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8687 (dwarf2_get_dwz_file): Likewise.
8688 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8689 (dwarf2_get_dwz_file): Likewise.
8690
395f9c91
TT
86912019-06-16 Tom Tromey <tom@tromey.com>
8692
8693 * coffread.c (process_coff_symbol): Use xstrdup.
8694 * value.c (create_internalvar): Use xstrdup.
8695
cafb3438
TT
86962019-06-16 Tom Tromey <tom@tromey.com>
8697
8698 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8699 * breakpoint.c (stopin_command, stopat_command)
8700 (until_break_command, decode_location_default): Remove unnecessary
8701 cast.
8702 * utils.c (subset_compare): Remove unnecessary cast.
8703 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8704 cast.
8705 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8706 cast.
8707 * infcmd.c (path_command): Remove unnecessary cast.
8708 * coffread.c (decode_type): Remove unnecessary cast.
8709 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8710 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8711 * tui/tui-stack.c (tui_show_locator_content)
8712 (tui_show_frame_info): Remove unnecessary cast.
8713 * tui/tui-win.c (tui_scroll_forward_command)
8714 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8715 (parse_scrolling_args): Remove unnecessary cast.
8716 * tui/tui-data.c (init_win_info, tui_del_window)
8717 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8718 (free_content_elements): Remove unnecessary cast.
8719 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8720 unnecessary cast.
8721 * tui/tui-source.c (tui_set_source_content)
8722 (tui_vertical_source_scroll): Remove unnecessary cast.
8723 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8724 cast.
8725 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8726 * tui/tui-regs.c (tui_display_registers_from)
8727 (tui_display_register): Remove unnecessary cast.
8728 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8729 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8730 (make_visible): Remove unnecessary cast.
8731 * tui/tui-winsource.c (tui_erase_source_content)
8732 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8733 unnecessary cast.
8734 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8735 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8736 * stabsread.c (read_type, read_array_type, read_range_type):
8737 Remove unnecessary cast.
8738 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8739 (parse_symbol, parse_type, upgrade_type, parse_external)
8740 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8741 unnecessary cast.
8742 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8743
730ead81
TT
87442019-06-16 Tom Tromey <tom@tromey.com>
8745
8746 * tui/tui-data.c (tui_alloc_generic_win_info)
8747 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8748 checks.
8749
584a927c
AB
87502019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8751 Andrew Burgess <andrew.burgess@embecosm.com>
8752
8753 * f-typeprint.c (f_print_type): Don't return early for not
8754 associated or not allocated types.
8755 (f_type_print_varspec_suffix): Add print_rank parameter and print
8756 ranks of array types in case they dangling.
8757 (f_type_print_base): Add print_rank parameter.
8758
30056ea0
AB
87592019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8760
8761 * NEWS: Mention new MI commands.
8762 * break-catch-throw.c (enum exception_event_kind): Move to
8763 breakpoint.h.
8764 (print_mention_exception_catchpoint): Output text as a single
8765 message.
8766 (catch_exception_command_1): Rename to...
8767 (catch_exception_event): ...this, make non-static, update header
8768 command, and change some parameter types.
8769 (catch_catch_command): Update for changes to
8770 catch_exception_command_1.
8771 (catch_throw_command): Likewise.
8772 (catch_rethrow_command): Likewise.
8773 * breakpoint.c (enum exception_event_kind): Delete.
8774 * breakpoint.h (enum exception_event_kind): Moved here from
8775 break-catch-throw.c.
8776 (catch_exception_event): Declare.
8777 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8778 (mi_cmd_catch_throw): New function.
8779 (mi_cmd_catch_rethrow): New function.
8780 (mi_cmd_catch_catch): New function.
8781 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8782 'catch-catch' entries.
8783 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8784 (mi_cmd_catch_rethrow): Declare.
8785 (mi_cmd_catch_catch): Declare.
8786
ec8e2b6d
AB
87872019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8788
8789 * annotate.c (annotate_source_line): Change return type to void,
8790 update implementation to match.
8791 * annotate.h (annotate_source_line): Change return type to void,
8792 update header comment.
8793 * stack.c (print_frame_info): Don't change what frame information
8794 is printed based on whether annotations are on or not.
8795
0d3abd8c
AB
87962019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8797
8798 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8799 (annotate_source): Make static.
8800 (annotate_source_line): Moved from source.c and renamed from
8801 identify_source_line. Update the return type.
8802 * annotate.h (annotate_source): Delete declaration.
8803 (annotate_source_line): Declaration moved from source.h, and
8804 renamed from identify_source_line. Return type updated.
8805 * source.c (identify_source_line): Moved to annotate.c and renamed
8806 to annotate_source_line.
8807 (info_line_command): Remove check of annotation_level.
8808 * source.h (identify_source_line): Move declaration to annotate.h
8809 and rename to annotate_source_line.
8810 * stack.c: Add 'annotate.h' include.
8811 (print_frame_info): Remove check of annotation_level before
8812 calling annotate_source_line.
8813
00df30ae
AB
88142019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8815
8816 * source-cache.c (source_cache::get_plain_source_lines): Use
8817 open_source_file_with_line_charpos instead of just
8818 open_source_file, remove call to find_source_lines.
8819 (source_cache::get_source_lines): Likewise.
8820 * source.c (find_source_lines): Make static.
8821 (get_filename_and_charpos): Renamed into...
8822 (open_source_file_with_line_charpos): ..this along with changes to
8823 return a scoped_fd, and some other minor clean ups.
8824 (identify_source_line): Use open_source_file_with_line_charpos.
8825 (search_command_helper): Use open_source_file_with_line_charpos
8826 instead of just open_source_file, remove call to
8827 find_source_lines.
8828 * source.h (open_source_file_with_line_charpos): Declare new
8829 function.
8830 (find_source_lines): Delete declaration.
8831
afda45a2
AB
88322019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8833
8834 * source.c (get_filename_and_charpos): Remove fullname
8835 parameter.
8836 (identify_source_line): Update call to get_filename_and_charpos.
8837
0735b091
TT
88382019-06-14 Tom Tromey <tromey@adacore.com>
8839
8840 PR gdb/24502:
8841 * ui-style.h (skip_ansi_escape): Update comment.
8842 * ui-file.h (class no_terminal_escape_file): New class.
8843 * ui-file.c (no_terminal_escape_file::write)
8844 (no_terminal_escape_file::puts): New methods.
8845 * cli/cli-logging.c (handle_redirections): Use
8846 no_terminal_escape_file.
8847
52ce35e2
TT
88482019-06-14 Tom Tromey <tromey@adacore.com>
8849
8850 * NEWS: Move convenience variable news above Python news.
8851
73cc7272
TT
88522019-06-14 Tom Tromey <tom@tromey.com>
8853
8854 * gnulib: Move directory to top-level.
8855 * configure.ac: Don't configure gnulib.
8856 * configure: Rebuild.
8857 * common/common-defs.h: Use new path to gnulib.
8858 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8859 (GNULIB_H): Remove.
8860 (INCGNU): Look in new gnulib location.
8861 (HFILES_NO_SRCDIR): Remove gnulib files.
8862 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8863 (generated_files): Remove GNULIB_H.
8864 ($(LIBGNU), all-lib): Remove targets.
8865 (distclean): Don't mention GNULIB_BUILDDIR.
8866 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8867
f5686554
TT
88682019-06-14 Tom Tromey <tromey@adacore.com>
8869
8870 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8871 Warn if symbol file does not provide any symbols.
8872
a0c1ffed
TT
88732019-06-14 Tom Tromey <tromey@adacore.com>
8874
8875 * source.c (find_and_open_source): Respect basenames_may_differ.
8876
7c39e397
AB
88772019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8878
8879 * annotate.c (annotate_breakpoints_invalid): Make use of
8880 scoped_restore_terminal_state.
8881 (annotate_frames_invalid): Likewise.
8882
f411722c
TT
88832019-06-14 Tom Tromey <tromey@adacore.com>
8884
8885 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8886 allow assignment to an internalvar.
8887
4268ec18
TT
88882019-06-14 Tom Tromey <tromey@adacore.com>
8889
8890 * ada-lex.l: Allow "_" in attribute names.
8891
abdb711e
TT
88922019-06-14 Tom Tromey <tromey@adacore.com>
8893
8894 PR gdb/24653:
8895 * regcache.c (registers_changed): Don't call alloca.
8896 * top.c (execute_command): Don't call alloca.
8897
4c048731
PA
88982019-06-13 Pedro Alves <palves@redhat.com>
8899
8900 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8901 'expression'. When parsing an expression, error out if there's
8902 junk after "unlimited".
8903 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8904 (do_set_command): Adjust calls to is_unlimited_literal.
8905
66eb1ed3
PA
89062019-06-13 Pedro Alves <palves@redhat.com>
8907
8908 * compile/compile.c (make_compile_options_def_group): Add braces
8909 around array_view initializer.
8910 * thread.c (make_thread_apply_all_options_def_group)
8911 (make_thread_apply_all_options_def_group): Likewise.
8912
3345721a
PA
89132019-06-13 Pedro Alves <palves@redhat.com>
8914
8915 * NEWS (New commands): Mention "maint test-options
8916 require-delimiter", "maint test-options unknown-is-error", "maint
8917 test-options unknown-is-operand" and "maint show
8918 test-options-completion-result".
8919 (New command options, command completion): New section.
8920 (Completion improvements): New section.
8921 Mention that you can abbreviate "unlimited".
8922
6206060d
PA
89232019-06-13 Pedro Alves <palves@redhat.com>
8924
8925 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8926 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8927 * unittests/cli-utils-selftests.c (test_parse_flags)
8928 (test_parse_flags_qcs): Delete.
8929 (test_cli_utils): Don't call deleted functions.
8930
6665660a
PA
89312019-06-13 Pedro Alves <palves@redhat.com>
8932
8933 * thread.c: Include "cli/cli-option.h".
8934 (tp_array_compar_ascending): Global.
8935 (tp_array_compar): Delete function.
8936 (tp_array_compar_ascending, tp_array_compar_descending): New
8937 functions.
8938 (ascending_option_def, qcs_flag_option_def)
8939 (thr_qcs_flags_option_defs)
8940 (make_thread_apply_all_options_def_group)
8941 (make_thread_apply_options_def_group): New.
8942 (thread_apply_all_command): Use gdb::option::process_options.
8943 (thread_apply_command_completer)
8944 (thread_apply_all_command_completer): New.
8945 (thread_apply_command): Use gdb::option::process_options.
8946 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8947 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8948 to generate help text of "thread apply". Adjust "taas"'s help.
8949 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8950 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8951
f7e13587
PA
89522019-06-13 Pedro Alves <palves@redhat.com>
8953
8954 * thread.c (thread_apply_command): Check for invalid TID with
8955 isdigit instead of !isalpha.
8956
5d707134
PA
89572019-06-13 Pedro Alves <palves@redhat.com>
8958
8959 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8960 (validate_flags_qcs): New.
8961 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8962 (validate_flags_qcs): Declare.
8963 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8964 (make_frame_apply_options_def_group): New.
8965 (frame_apply_command_count): Process options with
8966 gdb::option::process_options.
8967 (frame_apply_completer): New.
8968 (frame_apply_level_completer, frame_apply_all_completer)
8969 (frame_apply_completer): New.
8970 (_initialize_stack): Update help of "frame apply", "frame apply
8971 level", "frame apply all" and "faas" to mention supported options
8972 and install command completers.
8973 * stack.h (frame_apply_all_completer): Declare.
8974 * thread.c: Include "stack.h".
8975 (tfaas_command): Add "--".
8976 (_initialize_thread): Update help "tfaas" to mention supported
8977 options and install command completer.
8978
272d4594
PA
89792019-06-13 Pedro Alves <palves@redhat.com>
8980
8981 * completer.c (complete_nested_command_line): New.
8982 (gdb_completion_word_break_characters_throw): Add assertion.
8983 * completer.h (complete_nested_command_line): Declare.
8984
90a1ef87
PA
89852019-06-13 Pedro Alves <palves@redhat.com>
8986
8987 * stack.c (parse_backtrace_qualifiers): New.
8988 (backtrace_command): Use it.
8989 (backtrace_command_completer): Complete on qualifiers.
8990
d4c16835
PA
89912019-06-13 Pedro Alves <palves@redhat.com>
8992
8993 * frame.c: Include "cli/cli-option.h.
8994 (user_set_backtrace_options): New.
8995 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8996 Delete.
8997 (get_prev_frame): Adjust.
8998 (boolean_option_def, uinteger_option_def)
8999 (set_backtrace_option_defs): New.
9000 (_initialize_frame): Adjust and use
9001 gdb::option::add_setshow_cmds_for_options to install "set
9002 backtrace past-main" and "set backtrace past-entry".
9003 * frame.h: Include "cli/cli-option.h".
9004 (struct frame_print_options): Forward declare.
9005 (print_frame_arguments_all, print_frame_arguments_scalars)
9006 (print_frame_arguments_none): Declare.
9007 (print_entry_values): Delete declaration.
9008 (struct frame_print_options, user_frame_print_options): New.
9009 (struct set_backtrace_options): New.
9010 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9011 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9012 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9013 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9014 (list_args_or_locals): Add frame_print_options parameter.
9015 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9016 * python/py-framefilter.c (enumerate_args): Pass down
9017 USER_FRAME_PRINT_OPTIONS.
9018 * stack.c: Include "cli/cli-option.h".
9019 (print_frame_arguments_all, print_frame_arguments_scalars)
9020 (print_frame_arguments_none): Declare.
9021 (print_raw_frame_arguments, print_entry_values): Delete.
9022 (user_frame_print_options): New.
9023 (boolean_option_def, enum_option_def, frame_print_option_defs):
9024 New.
9025 (struct backtrace_cmd_options): New.
9026 (bt_flag_option_def): New.
9027 (backtrace_command_option_defs): New.
9028 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9029 (print_frame_arg, read_frame_arg, print_frame_args)
9030 (print_frame_info, print_frame): Add frame_print_options parameter
9031 and use it.
9032 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9033 (backtrace_command_1): Add frame_print_options and
9034 backtrace_cmd_options parameters and use them.
9035 (make_backtrace_options_def_group): New.
9036 (backtrace_command): Process command options with
9037 gdb::option::process_options.
9038 (backtrace_command_completer): New.
9039 (_initialize_stack): Extend "backtrace"'s help to mention
9040 supported options. Install completer for "backtrace".
9041 Install some settings commands with add_setshow_cmds_for_options.
9042
2daf894e
PA
90432019-06-13 Pedro Alves <palves@redhat.com>
9044
9045 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9046 and that "set/show print raw frame-arguments" are now deprecated.
9047
9048 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9049 command.
9050 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9051 * stack.c (_initialize_stack): Install "set/show print
9052 raw-frame-arguments", and deprecate "set/show print raw
9053 frame-arguments".
9054 * valprint.c (_initialize_valprint): Deprecate "set/show print
9055 raw".
9056
e6ed716c
PA
90572019-06-13 Pedro Alves <palves@redhat.com>
9058
9059 * compile/compile.c (struct compile_options): New.
9060 (compile_flag_option_def, compile_command_option_defs)
9061 (make_compile_options_def_group): New.
9062 (compile_file_command): Handle options with
9063 gdb::option::process_options.
9064 (compile_file_command_completer): New function.
9065 (compile_code_command): Handle options with
9066 gdb::option::process_options.
9067 (compile_code_command_completer): New function.
9068 (_initialize_compiler): Install completers for "compile code" and
9069 "compile file". Mention available options in "compile code" and
9070 "compile code"'s help.
9071 * completer.c (advance_to_completion_word): New, factored out from
9072 ...
9073 (advance_to_expression_complete_word_point): ... this.
9074 (advance_to_filename_complete_word_point): New.
9075 * completer.h (advance_to_filename_complete_word_point): New
9076 declaration.
9077
7d8062de
PA
90782019-06-13 Pedro Alves <palves@redhat.com>
9079
9080 * compile/compile.c: Include "cli/cli-option.h".
9081 (compile_print_value): Scope data pointer is now a
9082 value_print_options pointer; adjust.
9083 (compile_print_command): Process options. Scope data pointer is
9084 now a value_print_options pointer; adjust.
9085 (_initialize_compile): Update "compile print"'s help to include
9086 supported options. Install a completer for "compile print".
9087 * cp-valprint.c (show_vtblprint, show_objectprint)
9088 (show_static_field_print): Delete.
9089 (_initialize_cp_valprint): Don't install "set print
9090 static-members", "set print vtbl", "set print object" here.
9091 * printcmd.c: Include "cli/cli-option.h" and
9092 "common/gdb_optional.h".
9093 (print_command_parse_format): Rework to fill in a
9094 value_print_options instead of a format_data.
9095 (print_value): Change parameter type from format_data pointer to
9096 value_print_options reference. Adjust.
9097 (print_command_1): Process options. Adjust to pass down a
9098 value_print_options.
9099 (print_command_completer): New.
9100 (_initialize_printcmd): Install print_command_completer as
9101 handle_brkchars completer for the "print" command. Update
9102 "print"'s help to include supported options.
9103 * valprint.c: Include "cli/cli-option.h".
9104 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9105 here from cp-valprint.c.
9106 (boolean_option_def, uinteger_option_def)
9107 (value_print_option_defs, make_value_print_options_def_group):
9108 New. Use gdb::option::add_setshow_cmds_for_options to install
9109 "set print elements", "set print null-stop", "set print repeats",
9110 "set print pretty", "set print union", "set print array", "set
9111 print address", "set print symbol", "set print array-indexes".
9112 * valprint.h: Include <string> and "cli/cli-option.h".
9113 (make_value_print_options_def_group): Declare.
9114 (print_value): Change parameter type from format_data pointer to
9115 value_print_options reference.
9116 (print_command_completer): Declare.
9117
9d0faba9
PA
91182019-06-13 Pedro Alves <palves@redhat.com>
9119
9120 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9121 (COMMON_SFILES): Add maint-test-settings.c.
9122 * cli/cli-decode.c (boolean_enums): New global, factored out from
9123 ...
9124 (add_setshow_boolean_cmd): ... here.
9125 * cli/cli-decode.h (boolean_enums): Declare.
9126 * cli/cli-option.c: New file.
9127 * cli/cli-option.h: New file.
9128 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9129 factored out from ...
9130 (parse_cli_boolean_value(const char *)): ... this.
9131 (is_unlimited_literal): Change parameter type to pointer to
9132 pointer. Adjust and advance ARG pointer.
9133 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9134 (parse_cli_var_enum): New, factored out from ...
9135 (do_set_command): ... this. Adjust.
9136 * cli/cli-setshow.h (parse_cli_boolean_value)
9137 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9138 (parse_cli_var_enum): Declare.
9139 * cli/cli-utils.c: Include "cli/cli-option.h".
9140 (get_ulongest): New.
9141 * cli/cli-utils.h (get_ulongest): Declare.
9142 (check_for_argument): New overloads.
9143 * maint-test-options.c: New file.
9144
2c722807
PA
91452019-06-13 Pedro Alves <palves@redhat.com>
9146
9147 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9148 parse a range if "-" is at the end of the string.
9149
dee7b4c8
PA
91502019-06-13 Pedro Alves <palves@redhat.com>
9151
9152 * cli/cli-setshow.c (parse_auto_binary_operation)
9153 (parse_cli_boolean_value): Don't allow "o".
9154
dca0f6c0
PA
91552019-06-13 Pedro Alves <palves@redhat.com>
9156
9157 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9158 * NEWS: Mention maint test-settings KIND.
9159 * maint-test-settings.c: New file.
9160
597bf39d
PA
91612019-06-13 Pedro Alves <palves@redhat.com>
9162
9163 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9164 completer.
9165 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9166 "set" completers.
9167
48c410fb
PA
91682019-06-13 Pedro Alves <palves@redhat.com>
9169
9170 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9171 after item.
9172
93bcb043
PA
91732019-06-13 Pedro Alves <palves@redhat.com>
9174
9175 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9176
cbba3ecd
PA
91772019-06-13 Pedro Alves <palves@redhat.com>
9178
9179 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9180 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9181 call.
9182 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9183 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9184 calls.
9185 (check_for_argument): Skip spaces after argument.
9186
b9a3f842
PA
91872019-06-13 Pedro Alves <palves@redhat.com>
9188
9189 * thread.c (thread_apply_command): Adjust TID parsing.
9190 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9191 detected before end of string.
9192 (tid_is_in_list): Error out if LIST is invalid.
9193
3844e605
PA
91942019-06-13 Pedro Alves <palves@redhat.com>
9195
9196 * completer.c (complete_line_internal_1): Rewind completion word
9197 point.
9198 (completion_tracker::advance_custom_word_point_by): Change
9199 parameter type to int.
9200 * completer.h (completion_tracker::advance_custom_word_point_by):
9201 Likewise.
9202
00b56dbe
PA
92032019-06-13 Pedro Alves <palves@redhat.com>
9204
9205 * completer.c (advance_to_completion_word): Handle delimiters.
9206
d106773e
PA
92072019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9208
9209 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9210
08f10e02
TT
92112019-06-11 Tom Tromey <tom@tromey.com>
9212
9213 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9214 (xmalloc_failed): Move to alloc.c.
9215 * alloc.c: New file.
9216 * Makefile.in (COMMON_SFILES): Add alloc.c.
9217
1c7fe951
TT
92182019-06-11 Tom Tromey <tom@tromey.com>
9219
9220 * nat/linux-waitpid.c: Don't include server.h.
9221 (linux_debug): Remove.
9222 (my_waitpid): Update.
9223
89549d7f
TT
92242019-06-11 Tom Tromey <tromey@adacore.com>
9225
9226 * infcall.c (_initialize_infcall): Remove trailing newline from
9227 help.
9228 * user-regs.c (_initialize_user_regs): Remove trailing newline
9229 from help.
9230 * typeprint.c (_initialize_typeprint): Remove trailing newline
9231 from help.
9232 * reverse.c (_initialize_reverse): Remove trailing newlines from
9233 help.
9234 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9235 from help.
9236 * language.c (add_set_language_command): Remove trailing newline
9237 from help.
9238 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9239 help.
9240 * disasm.c (_initialize_disasm): Remove trailing newline from
9241 help.
9242 * top.c (init_main): Remove trailing newline from help.
9243 * interps.c (_initialize_interpreter): Remove trailing newline
9244 from help.
9245 * btrace.c (_initialize_btrace): Remove trailing newlines from
9246 help.
9247 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9248 from help.
9249 * python/python.c (_initialize_python): Remove trailing newline
9250 from help.
9251 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9252 help.
9253 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9254 from help. Reformat some text.
9255 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9256 from help.
9257 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9258 newline from help.
9259
86108c13
TT
92602019-06-11 Tom Tromey <tromey@adacore.com>
9261
9262 * darwin-nat.c (darwin_decode_exception_message)
9263 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9264
a7067863
AB
92652019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9266
9267 * valops.c (value_slice): Check for not allocated or not
9268 associated values.
9269
9ab08412
TV
92702019-06-10 Tom de Vries <tdevries@suse.de>
9271
9272 PR gdb/24618
9273 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9274 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9275 invalid.
9276
f19e22e9
TV
92772019-06-10 Tom de Vries <tdevries@suse.de>
9278
9279 PR gdb/24611
9280 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9281 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9282
e99f9db0
TV
92832019-06-10 Tom de Vries <tdevries@suse.de>
9284
9285 PR symtab/24545
9286 * symtab.c (struct demangled_name_entry): Add language field.
9287 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9288 static minimal symbol". Set and use language field.
9289
9bf7038b
TT
92902019-06-10 Tom Tromey <tromey@adacore.com>
9291
9292 * ada-lang.c (_initialize_ada_language): Update help text.
9293
422186a9
TT
92942019-06-10 Tom Tromey <tromey@adacore.com>
9295
9296 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9297 with a newline.
9298 * guile/guile.c (handle_boot_error): Don't end warning with a
9299 newline.
9300 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9301 warning with a newline.
9302 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9303 newline.
9304 (s12z_frame_cache): Likewise.
9305 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9306 a newline.
9307 * solib-svr4.c (disable_probes_interface): Don't end warning with
9308 a newline.
9309 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9310 newline.
9311 * python/python.c (do_finish_initialization): Don't end warning
9312 with a newline.
9313
25ce02ee
TT
93142019-06-10 Tom Tromey <tom@tromey.com>
9315
9316 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9317 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9318 gdbpy_enter.
9319
caa429d8
TT
93202019-06-10 Tom Tromey <tromey@adacore.com>
9321
9322 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9323 data.
9324 (elf_new_init): Don't call stabsread_new_init.
9325 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9326 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9327 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9328
81873cc8
TV
93292019-06-10 Tom de Vries <tdevries@suse.de>
9330
9331 PR symtab/16264
9332 PR symtab/24517
9333 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9334
4fa0265e
РИ
93352019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9336
9337 * source.c (find_and_open_source): Also rewrite relative file
9338 names.
9339
1a3da2cd
AB
93402019-04-26 Amos Bird <amosbird@gmail.com>
9341
9342 * annotate.c (annotate_thread_exited): Add "thread-exited"
9343 annotation.
9344
3847a7bf
TT
93452019-06-06 Tom Tromey <tromey@adacore.com>
9346
9347 * maint.h (class scoped_command_stats): Use
9348 DISABLE_COPY_AND_ASSIGN.
9349 <print_time>: New method.
9350 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9351 print_time.
9352 (scoped_command_stats::print_time): New method.
9353
312617a3
AB
93542019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9355
9356 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9357 instructions of lengths 6 or 8 bytes.
9358
b02f78f9
PA
93592019-06-04 Pedro Alves <palves@redhat.com>
9360
9361 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9362
9363 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9364 * breakpoint.c (condition_completer): Likewise.
9365 * cli/cli-dump.c (scan_expression): Likewise.
9366 * common/filestuff.c (mkdir_recursive): Likewise.
9367 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9368 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9369 (gdb_abspath): Likewise.
9370 * compile/compile-cplus-types.c
9371 (compile_cplus_instance::decl_name): Likewise.
9372 * completer.c (complete_explicit_location):
9373 (signal_completer, reg_or_group_completer_1): Likewise.
9374 * cp-support.c (cp_remove_params_if_any): Likewise.
9375 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9376 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9377 * infcmd.c (strip_bg_char): Likewise.
9378 * linespec.c (copy_token_string): Likewise.
9379 * mi/mi-main.c (output_cores): Likewise.
9380 * psymtab.c (psymtab_search_name):
9381 * symfile.c (test_set_ext_lang_command): Likewise.
9382 * target.c (target_fileio_read_stralloc): Likewise.
9383 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9384 * value.c (complete_internalvar): Likewise.
9385
e1f2e1a2
CB
93862019-06-04 Christian Biesinger <cbiesinger@google.com>
9387
9388 Add objfile property to gdb.Type.
d3238f7d
PA
9389 * NEWS: Mention Python API addition.
9390 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9391
e664d728
PW
93922019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9393
9394 * NEWS: Mention the new set|show style [title|highlight].
9395 Mention changes to "show style", "help" and "apropos".
9396
66d8c862
PW
93972019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9398
9399 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9400 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9401 instead of print_help_for_command.
9402 (print_doc_of_command): New function.
9403 (help_list): Add 'apropos -v word' suggestion.
9404 (print_help_for_command): Style the command name using title style.
9405 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9406 (_initialize_cli_cmds): Describe -v in apropos_command help.
9407
9303eb2f
PW
94082019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9409
9410 * cli/cli-style.h (cli_style_option): Add name in constructor,
9411 add m_name class member, add constructor with intensity,
9412 add name class function.
9413 (cli_style_option::add_setshow_commands): Remove name argument.
9414 (highlight_style, title_style): New styles.
9415 * cli/cli-style.c (do_show): New function that shows a style
9416 characteristic styling the style name with itself.
9417 (set_style_name): New function.
9418 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9419 Update all callers according to the changes in cli/cli-style.h.
9420 * utils.h (fputs_highlighted): New function.
9421 * utils.c (fputs_highlighted): Likewise.
9422
e2c52041
PW
94232019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9424
9425 * NEWS: Mention new pipe command and new convenience variables.
9426
947d3946
PW
94272019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9428
9429 * cli/cli-cmds.c (pipe_command): New function.
9430 (_initialize_cli_cmds): Call add_com for pipe_command.
9431 Define | as an alias for pipe.
9432 (exit_status_set_internal_vars): New function.
9433 (shell_escape): Call exit_status_set_internal_vars.
9434 cli/cli-decode.c (find_command_name_length): Recognize | as
9435 a single character command.
9436
b8fd0918
PW
94372019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9438
9439 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9440 top.c (execute_command_to_ui_file): New function, mostly a copy
9441 of execute_command_to_string.
9442 (execute_command_to_string): Implement by calling
9443 execute_command_to_ui_file.
9444
68bb5386
PW
94452019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9446
9447 * top.h (saved_command_line): Remove declaration.
9448 * top.c (previous_saved_command_line, previous_repeat_arguments):
9449 New variables.
9450 (saved_command_line): Make static, define together with other
9451 'repeat variables'.
9452 (dont_repeat): Clear repeat_arguments.
9453 (repeat_previous, get_saved_command_line, save_command_line):
9454 New functions.
9455 (gdb_init): Initialize saved_command_line
9456 and previous_saved_command_line.
9457 * main.c (captured_main_1): Remove saved_command_line initialization.
9458 * event-top.c (handle_line_of_input): Update to use
9459 the new 'repeat' related functions instead of direct access to
9460 saved_command_line.
9461 * command.h (repeat_previous, get_saved_command_line,
9462 save_command_line): New declarations.
9463 (dont_repeat): Add comment.
9464
bfcdb852
TT
94652019-05-30 Tom Tromey <tromey@adacore.com>
9466
9467 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9468 Fix comment.
9469 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9470
0ef209f2
JV
94712019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9472
9473 PR cli/24587
9474 * completer.c (complete): Initialize variable word.
9475
955b06fa
SDJ
94762019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9477
9478 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9479 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9480 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9481 'body' is NULL to the outter 'if', protecting the '!is_define'
9482 situation as well.
9483
fa9c3fa0
TT
94842019-05-29 Tom Tromey <tromey@adacore.com>
9485
9486 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9487 (dwarf_unknown): New function.
9488 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9489 (dwarf_type_encoding_name): Use dwarf_unknown.
9490
4330d61d
TT
94912019-05-29 Tom Tromey <tromey@adacore.com>
9492
9493 PR c++/20020:
9494 * cp-valprint.c (cp_print_value_fields): Call
9495 cp_print_static_field inside "try".
9496
33a6bc35
TT
94972019-05-29 Tom Tromey <tromey@adacore.com>
9498
9499 * inflow.c (struct terminal_info): Add default operator=.
9500 * configure: Rebuild.
9501 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9502 -Wdeprecated-copy-dtor, -Wredundant-move.
9503
000439d5
TT
95042019-05-29 Tom Tromey <tromey@adacore.com>
9505
9506 * NEWS: Add entry.
9507 * infcmd.c (print_return_value_1): Handle finish_print
9508 option.
9509 (show_print_finish): New function.
9510 (_initialize_infcmd): Add "set/show print finish" commands.
9511 * valprint.c (user_print_options): Initialize new member.
9512 * valprint.h (struct value_print_options) <finish_print>: New
9513 member.
9514
c0e70c62
TT
95152019-05-28 Tom Tromey <tromey@adacore.com>
9516
9517 * ada-lang.c (ada_remove_Xbn_suffix)
9518 (find_old_style_renaming_symbol)
9519 (parse_old_style_renaming): Remove.
9520 (ada_find_renaming_symbol): Don't call
9521 find_old_style_renaming_symbol.
9522 (ada_is_renaming_symbol): Rename from
9523 ada_find_renaming_symbol. Remove "block" parameter. Return
9524 bool. Now static.
9525 (ada_read_var_value): Update and simplify.
9526 * ada-exp.y (write_var_or_type): Remove old code.
9527
766f8836
AH
95282019-05-28 Alan Hayward <alan.hayward@arm.com>
9529
68255adc 9530 PR gdb/25010
766f8836
AH
9531 * event-top.c: Remove include comment.
9532 * inflow.c (class scoped_ignore_sigttou): Move from here...
9533 * inflow.h (class scoped_ignore_sigttou): ...to here.
9534 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9535 * top.c: Remove include comment.
9536
eb41253a
TT
95372019-05-27 Tom Tromey <tom@tromey.com>
9538
9539 * NEWS: Fix typo.
9540
4ca51187
TT
95412019-05-22 Tom Tromey <tromey@adacore.com>
9542
9543 * target.c (target_follow_exec): Constify parameter.
9544 * target-delegates.c: Rebuild.
9545 * remote.c (remote_target::follow_exec): Constify parameter.
9546 * infrun.c (follow_exec): Constify parameter.
9547 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9548 (target_follow_exec): Likewise.
9549
8fca4da0
AH
95502019-05-22 Alan Hayward <alan.hayward@arm.com>
9551
9552 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9553 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9554
b7060614
AH
95552019-05-22 Alan Hayward <alan.hayward@arm.com>
9556
9557 * NEWS: Add debugredirect and testsuite sections.
9558
0a5954bd
SC
95592019-05-22 Simon Cook <simon.cook@embecosm.com>
9560
9561 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9562 target descriptions using exclusively floating point register name
9563 aliases.
9564
dc42e902
AB
95652019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9566
9567 PR gdb/18644:
9568 * f-lang.c (build_fortran_types): Handle the case where
9569 gdbarch_floatformat_for_type returns a nullptr.
9570
fb7806c7
TV
95712019-05-21 Tom de Vries <tdevries@suse.de>
9572
9573 PR cli/24587
9574 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9575
34d11c68
AB
95762019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9577
9578 PR gdb/18644:
9579 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9580 16-byte floats.
9581 * i386-tdep.c (i386_floatformat_for_type): Use
9582 floatformats_ia64_quad for the 16-byte floating point component
9583 within a fortran 32-byte complex number.
9584
122cf0f2
AB
95852019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9586
9587 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9588 delete default constructor.
9589 (find_partial_die): Update to return const struct.
9590 (partial_die_parent_scope): Move variable declaration into scope
9591 of its use and change its type to auto.
9592 (guess_partial_die_structure_name): Likewise.
9593 (partial_die_info::fixup): Likewise.
9594
33d0e35a
TT
95952019-05-17 Tom Tromey <tromey@adacore.com>
9596
9597 * source.c (find_and_open_source): Remove cast.
9598
a45575b0
TT
95992019-05-17 Tom Tromey <tromey@adacore.com>
9600
9601 * annotate.c (annotate_source): Make "filename" const.
9602 * annotate.h (annotate_source): Use const.
9603
81f47ac2
AH
96042019-05-17 Alan Hayward <alan.hayward@arm.com>
9605
9606 * disasm.c (set_disassembler_options): Send errors to stderr.
9607
ca1285d1
AH
96082019-05-17 Alan Hayward <alan.hayward@arm.com>
9609
9610 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9611 (cli_interp_base::set_logging): Check debug_redirect.
9612 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9613 * cli/cli-logging.c (debug_redirect): Add static variable.
9614 (pop_output_files): Add default param.
9615 (handle_redirections): Print debug setting.
9616 (show_logging_command): Likewise.
9617 (_initialize_cli_logging): Add debugredirect command.
9618 * interps.c (current_interp_set_logging): Add debug_redirect
9619 parameter.
9620 * interps.h (set_logging): Add debug_redirect parameter.
9621 (current_interp_set_logging): Likewise.
9622 * mi/mi-common.h: Likewise.
9623 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9624
96252019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9626 Tom Tromey <tromey@adacore.com>
9627
9628 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9629 directly.
9630 * cli/cli-interp.h (make_logging_output): Remove declaration.
9631 * cli/cli-logging.c (make_logging_output): Remove function.
9632 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9633 directly.
9634 * ui-file.c (tee_file::tee_file): Remove bools.
9635 (tee_file::~tee_file): Remove deletes.
9636 * ui-file.h (tee_file): Remove bools.
9637
26648588
JV
96382019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9639
9640 * mi/mi-cmds.h (mi_cmd_complete): New function.
9641 * mi/mi-main.c (mi_cmd_complete): Likewise.
9642 * mi/mi-cmds.c: Define new MI command -complete.
9643 * NEWS: Mention new -complete command.
9644
6e035501
JV
96452019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9646
9647 * completer.h (complete): New function.
9648 * completer.c (complete): Likewise.
9649 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9650 function defined in completer.h.
9651
7d0e2ece
JV
96522019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9653
e79be6e5 9654 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9655
fb816e8b
TV
96562019-05-17 Tom de Vries <tdevries@suse.de>
9657
9658 PR gdb/24094
9659 * dwarf2read.c (struct cu_partial_die_info): New struct.
9660 (find_partial_die): Return cu_partial_die_info.
9661 (partial_die_parent_scope, guess_partial_die_structure_name)
9662 (partial_die_info::fixup): Handle new return type of find_partial_die.
9663
677052f2
SDJ
96642019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9665
a1726c38 9666 PR breakpoints/24541
677052f2
SDJ
9667 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9668 "std::string", simplifying the algorithm.
9669
f3da9116
SDJ
96702019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9671
9672 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9673 (stap_static_probe_ops::get_probes): Likewise.
9674
f1bb75ab
SDJ
96752019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9676
9677 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9678 '-')" and "else if".
9679 (stap_parse_single_operand): Join checks for
9680 "gdbarch_stap_parse_special_token_p" and
9681 "gdbarch_stap_parse_special_token" in the same "if" statement.
9682 Invert check when verifying for operation on register
9683 displacement.
9684
3ca58cde
SDJ
96852019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9686
9687 * stap-probe.c (stap_get_opcode): Update comment.
9688 (stap_get_expected_argument_type): Likewise.
9689 (handle_stap_probe): Likewise.
9690
af2d9bee
SDJ
96912019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9692
9693 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9694 return type to 'bool'. Adjust comment. Use 'bool' when
9695 appropriate.
9696 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9697 * stap-probe.c (stap_parse_argument_1): Likewise.
9698 (stap_is_operator): Likewise.
9699 (stap_is_generic_prefix): Likewise.
9700 (stap_is_register_prefix): Likewise.
9701 (stap_is_register_indirection_prefix): Likewise.
9702 (stap_is_integer_prefix): Likewise.
9703 (stap_generic_check_suffix): Likewise.
9704 (stap_check_integer_suffix): Likewise.
9705 (stap_check_register_suffix): Likewise.
9706 (stap_check_register_indirection_suffix): Likewise.
9707 (stap_parse_register_operand): Likewise.
9708 (stap_parse_single_operand): Likewise.
9709 (stap_parse_argument_1): Likewise.
9710 (stap_probe::get_argument_count): Likewise.
9711 (stap_is_operator): Likewise.
9712
61c9c421
TT
97132019-05-16 Tom Tromey <tromey@adacore.com>
9714
9715 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9716 keyword to foreach.
9717
9ddc1af1
SM
97182019-05-15 Simon Marchi <simon.marchi@efficios.com>
9719
9720 * linux-thread-db.c (try_thread_db_load_1): Change return type
9721 to bool.
9722 (try_thread_db_load): Likewise.
9723 (try_thread_db_load_from_pdir_1): Likewise.
9724 (try_thread_db_load_from_pdir): Likewise.
9725 (try_thread_db_load_from_sdir): Likewise.
9726 (try_thread_db_load_from_dir): Likewise.
9727 (thread_db_load_search): Likewise.
9728 (has_libpthread): Likewise.
9729 (thread_db_load): Likewise.
9730
7bede828
SDJ
97312019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9732
9733 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9734 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9735 NULL, and complain/return if that's the case.
9736
c5358db4
JD
97372019-05-15 John Darrington <john@darrington.wattle.id.au>
9738
9739 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9740 (advance, posn, abstract_read_memory): New functions.
9741 [struct mem_read_abstraction]: New struct.
9742 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9743
c408a94f
TT
97442019-05-14 Tom Tromey <tromey@adacore.com>
9745
9746 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9747 value is not lval_memory.
9748
e7bd7fba
TT
97492019-05-14 Tom Tromey <tromey@adacore.com>
9750
9751 * solib.c (info_sharedlibrary_command): Style the file name.
9752
a6d0f249
AH
97532019-05-14 Alan Hayward <alan.hayward@arm.com>
9754
9755 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9756 (aarch64_vnv_type): Likewise.
9757 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9758 * common/tdesc.c: Likewise.
9759 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9760 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9761 * features/aarch64-fpu.xml: Add ieee half view.
9762 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9763 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9764 * gdbtypes.h (struct builtin_type): Likewise.
9765 (struct objfile_type): Likewise.
9766
66b8bb74
SM
97672019-05-12 Paul Naert <paul.naert@polymtl.ca>
9768
9769 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9770 typo.
9771 * location.h (string_to_event_location): Likewise.
9772
21c219fd
JB
97732019-05-11 Joel Brobecker <brobecker@adacore.com>
9774
9775 GDB 8.3 released.
9776
13674803
SM
97772019-05-10 Simon Marchi <simon.marchi@efficios.com>
9778
9779 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9780 New variable declaration.
9781 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9782 New variable.
9783 (print_one_breakpoint): Use ui_out::test_flags and new global
9784 variable to compute use_fixed_output.
9785 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9786 Remove.
9787 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9788 (mi_multi_location_breakpoint_output_fixed): Remove.
9789 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9790 new variable.
9791 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9792 fix_multi_location_breakpoint_output flag if version >= 3.
9793 * ui-out.h (enum ui_out_flag)
9794 <fix_multi_location_breakpoint_output>: New enumerator.
9795
a9eac7f9
SM
97962019-05-10 Simon Marchi <simon.marchi@efficios.com>
9797
9798 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9799
71bed2db
TT
98002019-05-10 Tom Tromey <tromey@adacore.com>
9801
9802 * ada-lang.c (catch_ada_completer): New function.
9803 (_initialize_ada_language): Use it.
9804
24c54127
TT
98052019-05-10 Tom Tromey <tromey@adacore.com>
9806
9807 * thread.c (print_thread_info): Make "requested_threads" const.
9808 * gdbthread.h (print_thread_info): Make "requested_threads"
9809 const.
9810 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9811 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9812
7a102139
TT
98132019-05-08 Tom Tromey <tom@tromey.com>
9814
9815 * gdbtypes.c (objfile_type_data): Change type.
9816 (objfile_type, _initialize_gdbtypes): Update.
9817
924d79e2
TT
98182019-05-08 Tom Tromey <tom@tromey.com>
9819
9820 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9821 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9822 (_initialize_dwarf2_frame): Update.
9823
4c58e337
TT
98242019-05-08 Tom Tromey <tom@tromey.com>
9825
9826 * objc-lang.c (objc_objfile_data): Change type.
9827 (find_methods): Update.
9828 (_initialize_objc_lang): Remove.
9829
d772d2ab
TT
98302019-05-08 Tom Tromey <tom@tromey.com>
9831
9832 * stabsread.c (rs6000_builtin_type_data): Change type.
9833 (rs6000_builtin_type, _initialize_stabsread): Update.
9834
d11d83f4
TT
98352019-05-08 Tom Tromey <tom@tromey.com>
9836
9837 * mips-tdep.c (mips_pdr_data): Remove.
9838 (_initialize_mips_tdep): Update.
9839
9a73f0ad
TT
98402019-05-08 Tom Tromey <tom@tromey.com>
9841
9842 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9843 (hppa_init_objfile_priv_data, read_unwind_info)
9844 (find_unwind_entry, _initialize_hppa_tdep): Update.
9845
8127a2fa
TT
98462019-05-08 Tom Tromey <tom@tromey.com>
9847
9848 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9849 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9850 on obstack.
9851 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9852
91d3055d
TT
98532019-05-08 Tom Tromey <tom@tromey.com>
9854
9855 * mdebugread.c (basic_type_data): Change type.
9856 (basic_type, _initialize_mdebugread): Update.
9857
31930bd3
TT
98582019-05-08 Tom Tromey <tom@tromey.com>
9859
9860 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9861
bdb3ed9e
TT
98622019-05-08 Tom Tromey <tom@tromey.com>
9863
9864 * nto-tdep.c (nto_inferior_data_reg): Change type.
9865 (nto_inferior_data): Update.
9866 (nto_inferior_data_cleanup, nto_new_inferior_data)
9867 (_initialize_nto_tdep): Remove.
9868 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9869
f37b313d
TT
98702019-05-08 Tom Tromey <tom@tromey.com>
9871
9872 * ada-lang.c (struct ada_inferior_data): Add initializers.
9873 (ada_inferior_data): Change type.
9874 (ada_inferior_data_cleanup): Remove.
9875 (get_ada_inferior_data, ada_inferior_exit)
9876 (struct ada_pspace_data): Add initializers, destructor.
9877 (ada_pspace_data_handle): Change type.
9878 (get_ada_pspace_data): Update.
9879 (ada_pspace_data_cleanup): Remove.
9880
24699405
TT
98812019-05-08 Tom Tromey <tom@tromey.com>
9882
9883 * coffread.c (struct coff_symfile_info): Add initializers.
9884 (coff_objfile_data_key): Move lower. Change type.
9885 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9886 Update.
9887 (coff_free_info): Remove.
9888
d4e05d2f
TT
98892019-05-08 Tom Tromey <tom@tromey.com>
9890
9891 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9892 (fbsd_pspace_data_handle): Move lower. Change type.
9893 (get_fbsd_pspace_data): Update.
9894 (fbsd_pspace_data_cleanup): Remove.
9895 (_initialize_fbsd_tdep): Update.
9896
14ef6690
TT
98972019-05-08 Tom Tromey <tom@tromey.com>
9898
9899 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9900 (get_ada_tasks_pspace_data): Update.
9901 (ada_tasks_pspace_data_cleanup): Remove.
9902 (_initialize_tasks): Update.
9903 (ada_tasks_inferior_data_handle): Change type.
9904 (get_ada_tasks_inferior_data): Update.
9905 (ada_tasks_inferior_data_cleanup): Remove.
9906 (struct ada_tasks_pspace_data): Add initializers.
9907
814cf43a
TT
99082019-05-08 Tom Tromey <tom@tromey.com>
9909
9910 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9911 * symfile-debug.c (debug_sym_get_probes): Change type.
9912 * stap-probe.c (handle_stap_probe):
9913 (stap_static_probe_ops::get_probes): Change type.
9914 * probe.h (class static_probe_ops) <get_probes>: Change type.
9915 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9916 (parse_probes_in_pspace): Update.
9917 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9918 Update.
9919 (any_static_probe_ops::get_probes): Change type.
9920 * elfread.c (elfread_data): New typedef.
9921 (probe_key): Change type.
9922 (elf_get_probes): Likewise. Update.
9923 (probe_key_free): Remove.
9924 (_initialize_elfread): Update.
9925 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9926 Change type.
9927 (dtrace_process_dof_probe, dtrace_process_dof)
9928 (dtrace_static_probe_ops::get_probe): Change type.
9929
02dc647e
TT
99302019-05-08 Tom Tromey <tom@tromey.com>
9931
9932 * xcoffread.c (struct xcoff_symfile_info): Rename from
9933 coff_symfile_info. Add initializers.
9934 (xcoff_objfile_data_key): Move lower. Change type.
9935 (XCOFF_DATA): Rewrite.
9936 (xcoff_free_info): Remove.
9937 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9938 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9939 (xcoff_initial_scan): Update.
9940
09232438
TT
99412019-05-08 Tom Tromey <tom@tromey.com>
9942
9943 * solib-svr4.c (struct svr4_info): Add initializers and
9944 destructor.
9945 <probes_table>: Now an htab_up.
9946 (solib_svr4_pspace_data): Change type.
9947 (free_probes_table): Simplify.
9948 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9949 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9950 (probes_table_remove_objfile_probes, register_solib_event_probe)
9951 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9952 (_initialize_svr4_solib): Update.
9953
7b4a314f
TT
99542019-05-08 Tom Tromey <tom@tromey.com>
9955
9956 * remote.c (remote_pspace_data): Change type.
9957 (remote_pspace_data_cleanup): Remove.
9958 (get_remote_exec_file, set_pspace_remote_exec_file)
9959 (_initialize_remote): Update.
9960
51d3063a
TT
99612019-05-08 Tom Tromey <tom@tromey.com>
9962
9963 * breakpoint.c (breakpoint_objfile_key): Change type.
9964 (get_breakpoint_objfile_data): Update.
9965 (free_breakpoint_objfile_data): Remove.
9966 (_initialize_breakpoint): Update.
9967
89fb8848
TT
99682019-05-08 Tom Tromey <tom@tromey.com>
9969
9970 * linux-tdep.c (struct linux_info): Add initializers.
9971 (linux_inferior_data): Move. Change type.
9972 (invalidate_linux_cache_inf): Update.
9973 (linux_inferior_data_cleanup): Remove.
9974 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9975
e9b89e2d
TT
99762019-05-08 Tom Tromey <tom@tromey.com>
9977
9978 * auxv.c (auxv_inferior_data): Move. Change type.
9979 (auxv_inferior_data_cleanup): Remove.
9980 (invalidate_auxv_cache_inf): Rewrite.
9981 (get_auxv_inferior_data, _initialize_auxv): Update.
9982
8c42777c
TT
99832019-05-08 Tom Tromey <tom@tromey.com>
9984
9985 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9986 (symfile_debug_objfile_data_key): Change type.
9987 (symfile_debug_installed, debug_qf_has_symbols)
9988 (debug_qf_find_last_source_symtab)
9989 (debug_qf_forget_cached_source_info)
9990 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9991 (debug_qf_print_stats, debug_qf_dump)
9992 (debug_qf_expand_symtabs_for_function)
9993 (debug_qf_expand_all_symtabs)
9994 (debug_qf_expand_symtabs_with_fullname)
9995 (debug_qf_map_matching_symbols)
9996 (debug_qf_expand_symtabs_matching)
9997 (debug_qf_find_pc_sect_compunit_symtab)
9998 (debug_qf_map_symbol_filenames)
9999 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10000 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10001 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10002 (debug_sym_read_linetable, debug_sym_relocate): Update.
10003 (symfile_debug_free_objfile): Remove.
10004 (install_symfile_debug_logging, _initialize_symfile_debug):
10005 Update.
10006
5bfd760d
TT
100072019-05-08 Tom Tromey <tom@tromey.com>
10008
10009 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10010 allocate_on_obstack.
10011 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10012 (get_dwarf2_per_objfile): Update.
10013 (set_dwarf2_per_objfile): Remove.
10014 (dwarf2_has_info, dwarf2_get_section_info): Update.
10015 (dwarf2_free_objfile): Remove.
10016 (_initialize_dwarf2_read): Update.
10017
e85e19b4
TT
100182019-05-08 Tom Tromey <tom@tromey.com>
10019
10020 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10021 initializers.
10022 <unsupported_script_warning_printed,
10023 script_not_found_warning_printed>: Now bool.
10024 (auto_load_pspace_data): Change type.
10025 (~auto_load_pspace_info): Rename from
10026 auto_load_pspace_data_cleanup.
10027 (get_auto_load_pspace_data, init_loaded_scripts_info)
10028 (clear_section_scripts, maybe_print_unsupported_script_warning)
10029 (maybe_print_script_not_found_warning, _initialize_auto_load):
10030 Update.
10031
f6aa7436
TT
100322019-05-08 Tom Tromey <tom@tromey.com>
10033
10034 * objfiles.c (objfile_pspace_info): Add destructor and
10035 initializers.
10036 (objfiles_pspace_data): Change type.
10037 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10038 (get_objfile_pspace_data): Update.
10039 (objfiles_bfd_data): Change type.
10040 (get_objfile_bfd_data): Update.
10041 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10042
6ae614f6
TT
100432019-05-08 Tom Tromey <tom@tromey.com>
10044
10045 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10046 Change type.
10047 (get_catch_syscall_inferior_data): Update.
10048 (catch_syscall_inferior_data_cleanup): Remove.
10049 (_initialize_break_catch_syscall): Update.
10050
6509b8eb
TT
100512019-05-08 Tom Tromey <tom@tromey.com>
10052
10053 * inflow.c (struct terminal_info): Add destructor and
10054 initializers.
10055 (inflow_inferior_data): Change type.
10056 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10057 (get_inflow_inferior_data, inflow_inferior_exit)
10058 (swap_terminal_info, _initialize_inflow): Update.
10059
35632941
TT
100602019-05-08 Tom Tromey <tom@tromey.com>
10061
10062 * target-dcache.c (target_dcache_cleanup): Remove.
10063 (target_dcache_aspace_key): Change type.
10064 (target_dcache_init_p, target_dcache_invalidate)
10065 (target_dcache_get, target_dcache_get_or_init)
10066 (_initialize_target_dcache): Update.
10067 * dcache.h (struct dcache_deleter): New.
10068
3017b94d
TT
100692019-05-08 Tom Tromey <tom@tromey.com>
10070
10071 * symtab.c (struct symbol_cache): Add destructor and
10072 initializers.
10073 (symbol_cache_key): Move. Change type.
10074 (make_symbol_cache, free_symbol_cache): Remove.
10075 (get_symbol_cache): Update.
10076 (symbol_cache_cleanup): Remove.
10077 (ALL_PSPACES, symbol_cache_flush)
10078 (maintenance_print_symbol_cache)
10079 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10080 Update.
10081
a32ad8c5
TT
100822019-05-08 Tom Tromey <tom@tromey.com>
10083
10084 * symtab.c (struct main_info): Add destructor and initializers.
10085 (main_progspace_key): Move. Change type.
10086 (get_main_info): Update.
10087 (main_info_cleanup): Remove.
10088 (_initialize_symtab): Update.
10089
5f6e90a0
TT
100902019-05-08 Tom Tromey <tom@tromey.com>
10091
10092 * registry.h (DECLARE_REGISTRY): Define the _key class.
10093
1bd0c6e4
AB
100942019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10095
10096 * NEWS: Merge two 'New commands' sections.
10097
2228ef77
XR
100982019-05-08 Joel Brobecker <brobecker@adacore.com>
10099
10100 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10101 parameter and use Ada language definition instead.
10102 (ada_val_print_ptr): Remove unused language parameter.
10103 (ada_val_print_num): Remove language parameter and use Ada language
10104 definition instead.
10105 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10106 parameter.
10107 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10108 parameter and use Ada language definition instead.
10109 (ada_val_print_1): Update all ada_val_print_xxx calls.
10110 Remove language parameter.
10111 (ada_val_print): Update ada_val_print_1 call.
10112
60fcc1c3
TT
101132019-05-08 Tom Tromey <tromey@adacore.com>
10114
10115 * remote.c (remote_hw_watchpoint_limit)
10116 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10117 Now static.
10118
ed2b7c17
TT
101192019-05-08 Tom Tromey <tromey@adacore.com>
10120
10121 * maint.c (_initialize_maint_cmds): Move initialization code to
10122 remote.c.
10123 (watchdog, show_watchdog): Move to remote.c.
10124 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10125 "watchdog" static.
10126 (_initialize_remote): Move initialization code from maint.c.
10127 * defs.h (watchdog): Don't declare.
10128
b0be6c91
TT
101292019-05-08 Tom Tromey <tromey@adacore.com>
10130
10131 * tui/tui-interp.c: Include main.h.
10132 * interps.c: Include main.h.
10133 * main.h (interpreter_p): Declare.
10134 * defs.h (interpreter_p): Don't declare.
10135
587ee17b
TT
101362019-05-08 Tom Tromey <tromey@adacore.com>
10137
10138 * dwarf2loc.c: Include dwarf2read.h.
10139 * defs.h (read_unsigned_leb128): Don't declare.
10140 * dwarf2read.h (read_unsigned_leb128): Declare.
10141
ca1df239
TT
101422019-05-08 Tom Tromey <tromey@adacore.com>
10143
10144 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10145 method.
10146
99f20f08
TT
101472019-05-08 Tom Tromey <tromey@adacore.com>
10148
10149 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10150 when no wrap column is set.
10151
80e55b13
TT
101522019-05-08 Tom Tromey <tromey@adacore.com>
10153
10154 * c-lang.c (c_get_string): Handle non-C-style arrays.
10155
9d3421af
TT
101562019-05-08 Tom Tromey <tromey@adacore.com>
10157
10158 * typeprint.c (print_offset_data::update): Print the bit offset,
10159 not the number of bits remaining.
10160
844333e2
TT
101612019-05-08 Tom Tromey <tromey@adacore.com>
10162
10163 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10164 padding at end of comment.
10165
988915ee
TT
101662019-05-08 Tom Tromey <tromey@adacore.com>
10167
10168 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10169 Compare main types.
10170
26bfd823
TT
101712019-05-06 Tom Tromey <tom@tromey.com>
10172
10173 * common/scoped_mmap.c: Include common-defs.h.
10174 * common/scoped_mmap.h: Don't include config.h.
10175
89055eaa
TT
101762019-05-04 Tom Tromey <tom@tromey.com>
10177
10178 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10179 (struct aarch64_call_info): Add initializers.
10180 <si>: Now a std::vector.
10181 (pass_on_stack, aarch64_push_dummy_call): Update.
10182
5da01df5
TT
101832019-05-04 Simon Marchi <simon.marchi@efficios.com>
10184 Tom Tromey <tom@tromey.com>
10185
10186 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10187 (ppc_threads): Now a std::vector. Now static.
10188 (hwdebug_find_thread_points_by_tid)
10189 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10190 Update.
10191
fbdf05a1
TT
101922019-05-04 Tom Tromey <tom@tromey.com>
10193
10194 * arc-tdep.c (arc_tdesc_init): Return bool.
10195
06d16ec9
TT
101962019-05-04 Tom Tromey <tom@tromey.com>
10197
10198 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10199 Use gdb_assert_not_reached.
10200
9c056022
TT
102012019-05-04 Tom Tromey <tom@tromey.com>
10202
10203 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10204 "false".
10205
fa9c2a59
TT
102062019-05-04 Tom Tromey <tom@tromey.com>
10207
10208 * arc-tdep.c (arc_tdesc_init): Use bool.
10209
e2eb806a
TT
102102019-05-04 Tom Tromey <tom@tromey.com>
10211
10212 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10213
6fe87677
TT
102142019-05-04 Tom Tromey <tom@tromey.com>
10215
10216 * cli/cli-cmds.c (valid_command_p): Return bool.
10217
7f008c9e
TT
102182019-05-04 Tom Tromey <tom@tromey.com>
10219
10220 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10221 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10222
b6484282
RT
102232019-05-04 Raul Tambre <raul@tambre.ee>
10224
10225 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10226 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10227 operator for comparison.
10228
af97b416
TT
102292019-05-04 Tom Tromey <tom@tromey.com>
10230
10231 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10232 (lookup_partial_symbol, print_partial_symbols)
10233 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10234 (psymbol_compare): Update.
10235 (add_psymbol_to_bcache): Clear the entire psymbol.
10236 (maintenance_check_psymtabs): Update.
10237 * psympriv.h (struct partial_symbol): Don't derive from
10238 general_symbol_info.
10239 <obj_section, unrelocated_address, address,
10240 set_unrelocated_address>: Update.
10241 <ginfo>: New member.
10242 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10243 (debug_names::write_psymbols): Update.
10244
9d6d4be8
TV
102452019-05-04 Tom de Vries <tdevries@suse.de>
10246
10247 * contrib/cc-with-tweaks.sh: Support -n arg.
10248
66452beb
PW
102492019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10250
10251 * corelow.c (core_target::detach): Ensure frame cache and
10252 register caches are cleared.
10253 inferior.c (exit_inferior_1): Likewise.
10254
bde09ab7
TT
102552019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10256 Tom Tromey <tom@tromey.com>
10257
10258 * dictionary.c (collate_pending_symbols_by_language): Remove
10259 "struct" from foreach.
10260 * symtab.c (lookup_global_symbol_from_objfile)
10261 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10262 foreach.
10263 * ser-tcp.c (net_open): Remove "struct" from foreach.
10264 * objfiles.c (objfile_relocate, objfile_rebase)
10265 (objfile_has_symbols): Remove "struct" from foreach.
10266 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10267 from foreach.
10268 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10269 foreach.
10270 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10271 "struct" from foreach.
10272 * ada-lang.c (create_excep_cond_exprs)
10273 (ada_exception_catchpoint_cond_string): Remove "struct" from
10274 foreach.
10275
222a8d25
TT
102762019-05-03 Tom Tromey <tromey@adacore.com>
10277
10278 * ada-exp.y (convert_char_literal): Check suffix of each
10279 enumerator.
10280
fcd60b84
DP
102812019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10282
10283 PR ada/21406:
10284 * ada-exp.y (yywrap): Don't define.
10285 * ada-lex.l (%option): Add noyywrap
10286 (yywrap): Remove.
10287
5f2459c2
EZ
102882019-05-03 Eli Zaretskii <eliz@gnu.org>
10289
353ea2d1
EZ
10290 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10291 _WIN32_WINNT to the XP level, unless already defined to a higher
10292 level.
10293
10294 * unittests/parse-connection-spec-selftests.c:
10295 * ser-tcp.c:
10296 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10297 override.
10298
5f2459c2
EZ
10299 * symfile.c (find_separate_debug_file): Remove colon from the
10300 drive spec of DOS/Windows file names of the target, so that the
10301 file name produced from DEBUGDIR and the target's directory will
10302 be valid on DOS/Windows systems.
10303
80062eb9
AB
103042019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10305
10306 * rust-lang.c (val_print_struct): Handle printing structures
10307 containing strings.
10308
b8c05e85
TT
103092019-05-02 Tom Tromey <tromey@adacore.com>
10310
10311 * valarith.c (_initialize_valarith): Remove.
10312
4504bbde
TT
103132019-05-01 Tom Tromey <tromey@adacore.com>
10314
10315 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10316 bitfields.
10317
d48e62f4
TT
103182019-05-01 Tom Tromey <tromey@adacore.com>
10319
10320 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10321 for big-endian copies.
10322
15f18d14
AT
103232019-04-30 Ali Tamur <tamur@google.com>
10324 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10325 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10326 (read_3_bytes): New function.
10327
ab4ee614
JB
103282019-04-30 Joel Brobecker <brobecker@adacore.com>
10329
10330 * windows-nat.c (main_thread_id): Delete.
10331 (handle_output_debug_string): Replace main_thread_id by
10332 current_event.dwThreadId.
10333 (fake_create_process): Likewise.
10334 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10335 Do not set main_thread_id.
10336 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10337 current_event.dwThreadId.
10338 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10339
8ed5b76e
JB
103402019-04-30 Joel Brobecker <brobecker@adacore.com>
10341
10342 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10343 Use current_event.dwThreadId instead of main_thread_id.
10344
2ff0a947
TT
103452019-04-30 Tom Tromey <tromey@adacore.com>
10346
10347 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10348 (create_excep_cond_exprs): Iterate over program spaces.
10349 (ada_exception_catchpoint_cond_string): Examine all minimal
10350 symbols for exception types.
10351
a776957c
TT
103522019-04-30 Tom Tromey <tromey@adacore.com>
10353
10354 PR c++/24470:
10355 * dwarf2read.c (process_structure_scope): Handle case where type
10356 has template parameters but no symbol was created.
10357
bc68014d
AB
103582019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10359 Chris January <chris.january@arm.com>
10360
10361 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10362 qualifier.
10363 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10364
f1fdc960
AB
103652019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10366
10367 * f-typeprint.c (f_print_type): Update rules for printing
10368 whitespace.
10369 (f_type_print_varspec_suffix): Likewise.
10370
bf7a4de1
AB
103712019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10372 Chris January <chris.january@arm.com>
10373
10374 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10375 function arguments.
10376
bbe75b9d
AB
103772019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10378
10379 * f-lang.c (build_fortran_types): Change name of void type to
10380 lower case.
10381 * f-typeprint.c (f_type_print_base): Print the name of the void
10382 type, rather than a fixed string.
10383 * f-valprint.c (f_decorations): Use lower case void string.
10384
1db455a7
AB
103852019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10386 Chris January <chris.january@arm.com>
10387
10388 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10389 types for Fortran.
10390
b6d03bb2
AB
103912019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10392 Chris January <chris.january@arm.com>
10393 David Lecomber <david.lecomber@arm.com>
10394
10395 * f-exp.y (BINOP_INTRINSIC): New token.
10396 (exp): New parser rule handling BINOP_INTRINSIC.
10397 (f77_keywords): Add new builtin procedures.
10398 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10399 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10400 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10401 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10402 (print_unop_subexp_f): New function.
10403 (print_binop_subexp_f): New function.
10404 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10405 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10406 (dump_subexp_body_f): Likewise.
10407 (operator_check_f): Likewise.
10408 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10409 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10410
83228e93
AB
104112019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10412
10413 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10414 UNOP_KIND.
10415 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10416 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10417 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10418 (operator_length_f): New fuction.
10419 (print_subexp_f): New function.
10420 (op_name_f): New function.
10421 (dump_subexp_body_f): New function.
10422 (operator_check_f): New function.
10423 (exp_descriptor_f): Replace standard expression handling functions
10424 with new functions.
10425 * gdb/fortran-operator.def: New file.
10426 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10427 * gdb/std-operator.def: Remove UNOP_KIND.
10428
6fdcd7cc
AB
104292019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10430
10431 * std-operator.def: Remove unbalanced, stray double quote
10432 character.
10433
2e62ab40
AB
104342019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10435 Chris January <chris.january@arm.com>
10436 Daniel Everett <daniel.everett@arm.com>
10437 Nick Forrington <nick.forrington@arm.com>
10438 Richard Bunt <richard.bunt@arm.com>
10439
10440 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10441 of depth when printing anonymous structs or unions.
10442 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10443 Don't print either the top-level value, or the children if the
10444 max-depth is exceeded.
10445 (ppscm_print_children): When printing the key of a map, allow one
10446 extra level of depth.
10447 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10448 print either the top-level value, or the children if the max-depth
10449 is exceeded.
10450 (print_children): When printing the key of a map, allow one extra
10451 level of depth.
10452 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10453 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10454 (user_print_options): Initialise max_depth field.
10455 (val_print_scalar_or_string_type_p): New function.
10456 (val_print): Check to see if the max depth has been reached.
10457 (val_print_check_max_depth): Define new function.
10458 (show_print_max_depth): New function.
10459 (_initialize_valprint): Add 'print max-depth' option.
10460 * valprint.h (struct value_print_options) <max_depth>: New field.
10461 (val_print_check_max_depth): Declare new function.
10462 * NEWS: Document new feature.
10463
4be290b2
AB
104642019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10465
10466 * ada-lang.c (ada_language_defn): Initialise new field.
10467 * c-lang.c (c_is_string_type_p): New function.
10468 (c_language_defn): Initialise new field.
10469 (cplus_language_defn): Initialise new field.
10470 (asm_language_defn): Initialise new field.
10471 (minimal_language_defn): Initialise new field.
10472 * c-lang.h (c_is_string_type_p): Declare new function.
10473 * d-lang.c (d_language_defn): Initialise new field.
10474 * f-lang.c (f_is_string_type_p): New function.
10475 (f_language_defn): Initialise new field.
10476 * go-lang.c (go_is_string_type_p): New function.
10477 (go_language_defn): Initialise new field.
10478 * language.c (default_is_string_type_p): New function.
10479 (unknown_language_defn): Initialise new field.
10480 (auto_language_defn): Initialise new field.
10481 * language.h (struct language_defn) <la_is_string_type_p>: New
10482 member variable.
10483 (default_is_string_type_p): Declare new function.
10484 * m2-lang.c (m2_language_defn): Initialise new field.
10485 * objc-lang.c (objc_language_defn): Initialise new field.
10486 * opencl-lang.c (opencl_language_defn): Initialise new field.
10487 * p-lang.c (pascal_is_string_type_p): New function.
10488 (pascal_language_defn): Initialise new field.
10489 * rust-lang.c (rust_is_string_type_p): New function.
10490 (rust_language_defn): Initialise new field.
10491
721b08c6
AB
104922019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10493
10494 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10495 New field.
10496 * ada-lang.c (ada_language_defn): Initialise new field.
10497 * c-lang.c (c_language_defn): Likewise.
10498 (cplus_language_defn): Likewise.
10499 (asm_language_defn): Likewise.
10500 (minimal_language_defn): Likewise.
10501 * d-lang.c (d_language_defn): Likewise.
10502 * f-lang.c (f_language_defn): Likewise.
10503 * go-lang.c (go_language_defn): Likewise.
10504 * language.c (unknown_language_defn): Likewise.
10505 (auto_language_defn): Likewise.
10506 * m2-lang.c (m2_language_defn): Likewise.
10507 * objc-lang.c (objc_language_defn): Likewise.
10508 * opencl-lang.c (opencl_language_defn): Likewise.
10509 * p-lang.c (pascal_language_defn): Likewise.
10510 * rust-lang.c (rust_language_defn): Likewise.
10511
fc913e53
AB
105122019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10513
10514 * ada-lang.c (ada_is_character_type): Change return type to bool.
10515 (ada_is_string_type): Likewise.
10516 * ada-lang.h (ada_is_character_type): Update declaration
10517 (ada_is_string_type): Likewise.
10518
fa731fa0
PW
105192019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10520
10521 Support style in 'frame|thread apply'
10522
10523 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10524 * record.c (record_start, record_stop): Update callers of
10525 execute_command_to_string with false.
10526 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10527 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10528 methods.
10529 (class string_file): New constructor with term_out parameter.
10530 Override methods term_out and can_emit_style_escape. New member
10531 term_out.
10532 (class stdio_file): Override can_emit_style_escape.
10533 (class tee_file): Override term_out and can_emit_style_escape.
10534 * utils.h (can_emit_style_escape): Remove.
10535 * utils.c (can_emit_style_escape): Likewise.
10536 Update all callers of can_emit_style_escape (SOMESTREAM) to
10537 SOMESTREAM->can_emit_style_escape.
10538 * source-cache.c (source_cache::get_source_lines): Likewise.
10539 * stack.c (frame_apply_command_count): Call execute_command_to_string
10540 passing the term_out characteristic of the current gdb_stdout.
10541 * thread.c (thr_try_catch_cmd): Likewise.
10542 * top.c (execute_command_to_string): pass term_out parameter
10543 to construct the string_file for the command output.
10544 * ui-file.c (term_cli_styling): New function (most code moved
10545 from utils.c can_emit_style_escape).
10546 (string_file::string_file, string_file::can_emit_style_escape,
10547 stdio_file::can_emit_style_escape, tee_file::term_out,
10548 tee_file::can_emit_style_escape): New functions.
10549
136afab8
PW
105502019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10551
10552 * NEWS: Mention the new set|show may-call-functions.
10553 * infcall.c (may_call_functions_p): New variable.
10554 (show_may_call_functions_p): New function.
10555 (call_function_by_hand_dummy): Throws an error if not
10556 may-call-functions.
10557 (_initialize_infcall): Call add_setshow_boolean_cmd for
10558 may-call-functions.
10559
725cbb63
KS
105602019-04-25 Keith Seitz <keiths@redhat.com>
10561
10562 PR c++/24367
10563 * cp-support.c (inspect_type): Don't attempt substitutions
10564 of symbol with the same name.
10565
3d1cbb78
TT
105662019-04-25 Tom Tromey <tromey@adacore.com>
10567
10568 PR gdb/24475:
10569 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10570 static.
10571
94aeb44b
TT
105722019-04-25 Tom Tromey <tromey@adacore.com>
10573
10574 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10575 rvalue reference.
10576 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10577 (gdb_xml_parser::parse): Use std::move.
10578 * python/python-internal.h (gdbpy_convert_exception): Take a const
10579 reference.
10580 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10581 std::move.
10582 * python/py-utils.c (gdbpy_convert_exception): Take a const
10583 reference.
10584 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10585 Use std::move.
10586 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10587 Use std::move.
10588 * mi/mi-main.c (mi_print_exception): Take a const reference.
10589 * main.c (handle_command_errors): Take a const reference.
10590 * linespec.c (parse_linespec): Use std::move.
10591 * infcall.c (run_inferior_call): Use std::move.
10592 (call_function_by_hand_dummy): Use std::move.
10593 * exec.c (try_open_exec_file): Use std::move.
10594 * exceptions.h (exception_print, exception_fprintf)
10595 (exception_print_same): Update.
10596 * exceptions.c (print_exception, exception_print)
10597 (exception_fprintf, exception_print_same): Change parameters to
10598 const reference.
10599 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10600 * common/new-op.c: Use std::move.
10601 * common/common-exceptions.h (struct gdb_exception): Add move
10602 constructor.
10603 (struct gdb_exception_error, struct gdb_exception_quit, struct
10604 gdb_quit_bad_alloc): Change constructor to move constructor.
10605 (throw_exception): Change parameter to rvalue reference.
10606 * common/common-exceptions.c (throw_exception): Take rvalue
10607 reference.
10608 * cli/cli-interp.c (safe_execute_command): Use std::move.
10609 * breakpoint.c (insert_bp_location, location_to_sals): Use
10610 std::move.
10611
680d7fd5
TT
106122019-04-25 Tom Tromey <tromey@adacore.com>
10613
10614 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10615 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10616 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10617 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10618 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10619 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10620 guile/scm-value.c: Use unpack.
10621 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10622 gdbscm_gdb_exception.
10623 (gdbscm_throw_gdb_exception): Likewise.
10624 (struct gdbscm_gdb_exception): New.
10625 (unpack): New function.
10626 (gdbscm_wrap): Use unpack.
10627
c6fdd8b2
TT
106282019-04-25 Tom Tromey <tromey@adacore.com>
10629
10630 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10631 (gdb_rl_callback_handler): Use std::move.
10632 * common/common-exceptions.h (struct gdb_exception): Add move
10633 assignment operator.
10634 (throw_exception_sjlj): Change "exception" to const reference.
10635 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10636 (throw_exception_sjlj): Change "exception" to const reference.
10637
cc06b668
TT
106382019-04-25 Tom Tromey <tromey@adacore.com>
10639
10640 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10641 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10642 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10643 Update.
10644 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10645 Update.
10646 * mi/mi-interp.c (mi_interp::exec): Update.
10647 * linespec.c (parse_linespec): Update.
10648 * infcall.c (run_inferior_call): Update.
10649 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10650 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10651 (gdbscm_lookup_global_symbol): Update.
10652 * guile/scm-param.c (gdbscm_parameter_value): Update.
10653 * guile/scm-frame.c (gdbscm_frame_read_register)
10654 (gdbscm_frame_read_var): Update.
10655 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10656 * exec.c (try_open_exec_file): Update.
10657 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10658 (gdb_rl_callback_handler): Update.
10659 * common/common-exceptions.h (exception_none): Don't declare.
10660 * common/common-exceptions.c (exception_none): Don't define.
10661 (struct catcher) <exception>: Update.
10662 * cli/cli-interp.c (safe_execute_command): Update.
10663 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10664
cf532bd1
AT
106652019-04-25 Ali Tamur <tamur@google.com>
10666
10667 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10668 (read_attribute_value): Likewise.
10669 (dwarf2_read_addr_index): Update comment.
10670 (read_str_index): Add DW_FORM_strx.
10671 (dwarf2_string_attr): Likewise.
10672 (dwarf2_const_value_attr): Likewise.
10673 (dump_die_shallow): Likewise.
10674 (dwarf2_fetch_constant_bytes): Likewise.
10675 (skip_form_bytes): Likewise.
10676 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10677
82433e3e
SDJ
106782019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10679
10680 PR corefiles/11608
10681 PR corefiles/18187
10682 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10683 OFFSET. Verify if current mapping contains an ELF header.
10684 (linux_find_memory_regions_full): Adjust call to
10685 dump_mapping_p.
10686
723adb65
SL
106872019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10688 Kang Li <kanglictf@gmail.com>
10689
10690 PR gdb/21600
10691
10692 * dwarf2-frame.c (read_initial_length): Be consistent about using
10693 unsigned representation of length.
10694 (decode_frame_entry_1): Likewise. Check for wraparound of
10695 end pointer as well as buffer overflow.
10696
596179f7
SDJ
106972019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10698
10699 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10700 "vq".
10701
a59240a4
TT
107022019-04-24 Tom Tromey <tromey@adacore.com>
10703
10704 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10705
f872fdbb
AB
107062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10707
10708 * s12z-tdep.c (s12z_unwind_pc): Delete.
10709 (s12z_unwind_sp): Delete.
10710 (s12z_gdbarch_init): Don't register deleted functions with
10711 gdbarch.
10712
b614e6f3
AB
107132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10714
10715 * rl78-tdep.c (rl78_unwind_sp): Delete.
10716 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10717
14faed38
AB
107182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10719
10720 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10721 (xstormy16_unwind_pc): Delete.
10722 (xstormy16_dummy_id): Delete.
10723 (xstormy16_gdbarch_init): Don't register deleted functions with
10724 gdbarch.
10725
541aad8a
AB
107262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10727
10728 * vax-tdep.c (vax_unwind_pc): Delete.
10729 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10730
29222070
AB
107312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10732
10733 * v850-tdep.c (v850_unwind_sp): Delete.
10734 (v850_unwind_pc): Delete.
10735 (v850_dummy_id): Delete.
10736 (v850_gdbarch_init): Don't register deleted functions with
10737 gdbarch.
10738
0f534d76
AB
107392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10740
10741 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10742 (tilegx_unwind_pc): Delete.
10743 (tilegx_unwind_dummy_id): Delete.
10744 (tilegx_gdbarch_init): Don't register deleted functions with
10745 gdbarch.
10746
1ba7b7f9
AB
107472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10748
10749 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10750 (tic6x_dummy_id): Delete.
10751 (tic6x_gdbarch_init): Don't register deleted functions with
10752 gdbarch.
10753
d31f262c
AB
107542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10755
10756 * sparc-tdep.c (sparc_unwind_pc): Delete.
10757 (sparc32_gdbarch_init): Don't register deleted function with
10758 gdbarch.
10759
6d14d64d
AB
107602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10761
10762 * sh-tdep.c (sh_unwind_sp): Delete.
10763 (sh_unwind_pc): Delete.
10764 (sh_dummy_id): Delete.
10765 (sh_gdbarch_init): Don't register deleted functions with
10766 gdbarch.
10767
a40dde9d
AB
107682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10769
10770 * score-tdep.c (score_unwind_sp): Delete.
10771 (score_unwind_pc): Delete.
10772 (score_dummy_id): Delete.
10773 (score_gdbarch_init): Don't register deleted functions with
10774 gdbarch.
10775
47c47d69
AB
107762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10777
10778 * rx-tdep.c (rx_unwind_pc): Delete.
10779 (rx_unwind_sp): Delete.
10780 (rx_dummy_id): Delete.
10781 (rx_gdbarch_init): Don't register deleted functions with
10782 gdbarch. Update comment.
10783
833a4480
AB
107842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10785
10786 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10787 (rs6000_dummy_id): Delete.
10788 (rs6000_gdbarch_init): Don't register deleted functions with
10789 gdbarch.
10790
3f2cef49
AB
107912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10792
10793 * or1k-tdep.c (or1k_dummy_id): Delete.
10794 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10795
96acf884
AB
107962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10797
10798 * nios2-tdep.c (nios2_dummy_id): Delete.
10799 (nios2_unwind_sp): Delete.
10800 (nios2_gdbarch_init): Don't register deleted functions with
10801 gdbarch.
10802
ca0ab0aa
AB
108032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10804
10805 * nds32-tdep.c (nds32_dummy_id): Delete.
10806 (nds32_unwind_pc): Delete.
10807 (nds32_unwind_sp): Delete.
10808 (nds32_gdbarch_init): Don't register deleted functions with
10809 gdbarch.
10810
c8259044
AB
108112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10812
10813 * msp430-tdep.c (msp430_unwind_pc): Delete.
10814 (msp430_unwind_sp): Delete.
10815 (msp430_dummy_id): Delete.
10816 (msp430_gdbarch_init): Don't register deleted functions with
10817 gdbarch.
10818
27f113c8
AB
108192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10820
10821 * moxie-tdep.c (moxie_unwind_sp): Delete.
10822 (moxie_unwind_pc): Delete.
10823 (moxie_dummy_id): Delete.
10824 (moxie_gdbarch_init): Don't register deleted functions with
10825 gdbarch.
10826
aee6c3cd
AB
108272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10828
10829 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10830 (mn10300_unwind_pc): Delete.
10831 (mn10300_unwind_sp): Delete.
10832 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10833 mn10300_unwind_sp.
10834 (mn10300_frame_unwind_init): Don't register deleted functions with
10835 gdbarch.
10836
8e2b5aea
AB
108372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10838
10839 * mep-tdep.c (mep_unwind_pc): Delete.
10840 (mep_unwind_sp): Delete.
10841 (mep_dummy_id): Delete.
10842 (mep_gdbarch_init): Don't register deleted functions with
10843 gdbarch.
10844
43cf3ede
AB
108452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10846
10847 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10848 (m68hc11_unwind_sp): Delete.
10849 (m68hc11_gdbarch_init): Don't register deleted functions with
10850 gdbarch.
10851
5e79b7bb
AB
108522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10853
10854 * m32r-tdep.c (m32r_unwind_sp): Delete.
10855 (m32r_unwind_pc): Delete.
10856 (m32r_dummy_id): Delete.
10857 (m32r_gdbarch_init): Don't register deleted functions with
10858 gdbarch.
10859
89b268d8
AB
108602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10861
10862 * m32c-tdep.c (m32c_unwind_pc): Delete.
10863 (m32c_unwind_sp): Delete.
10864 (m32c_dummy_id): Delete.
10865 (m32c_gdbarch_init): Don't register deleted functions with
10866 gdbarch.
10867
946c28d2
AB
108682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10869
10870 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10871 (lm32_unwind_pc): Delete.
10872 (lm32_dummy_id): Delete.
10873 (lm32_gdbarch_init): Don't register deleted functions with
10874 gdbarch.
10875
bf12844a
AB
108762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10877
10878 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10879 (iq2000_unwind_pc): Delete.
10880 (iq2000_dummy_id): Delete.
10881 (iq2000_gdbarch_init): Don't register deleted functions with
10882 gdbarch.
10883
ecbc06d2
AB
108842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10885
10886 * nds32-tdep.c (nds32_type_align): Delete.
10887 (nds32_push_dummy_call): Use type_align instead.
10888
030197b4
AB
108892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10890
10891 * arm-tdep.c (arm_type_align): Only handle vector override case.
10892 (arm_push_dummy_call): Use type_align.
10893 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10894
b907456c
AB
108952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10896
10897 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10898 case.
10899 (pass_on_stack): Use type_align.
10900 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10901 function.
10902
9e97ba43
TT
109032019-04-23 Tom Tromey <tromey@adacore.com>
10904
10905 * dwarf2read.c (line_header::file_name_at): Remove unused
10906 overload.
10907
6892f601
TV
109082019-04-23 Tom de Vries <tdevries@suse.de>
10909
10910 PR gdb/24438
10911 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10912 invocation.
10913
336d760d
AT
10914
109152019-03-27 Ali Tamur <tamur@google.com>
10916
10917 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10918 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10919 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10920 (dwarf_expr_context::get_addr_index): Likewise
10921 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10922 (symbol_needs_eval_context::get_addr_index): Likewise
10923 (disassemble_dwarf_expression): Add DW_OP_addrx
10924 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10925 (read_cutu_die_from_dwo): Update comment
10926 (skip_one_die): Add DW_FORM_addrx
10927 (read_attribute_value): Likewise
10928 (var_decode_location): Add DW_OP_addrx
10929 (dwarf2_const_value_attr): Add DW_FORM_addrx
10930 (dump_die_shallow): Likewise
10931 (dwarf2_fetch_constant_bytes): Likewise
10932 (decode_locdesc): Add DW_OP_addrx
10933 (skip_form_bytes): Add DW_FORM_addrx
10934
ad9d13f8
AT
109352019-04-22 Ali Tamur <tamur@google.com>
10936
10937 * MAINTAINERS (Write After Approval): Add self.
10938
d70cc3ba
SM
109392019-04-22 Simon Marchi <simon.marchi@efficios.com>
10940
10941 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10942 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10943 (open_symbol_file_object): Likewise.
10944 (svr4_default_sos): Add info parameter.
10945 (svr4_read_so_list): Likewise.
10946 (svr4_current_sos_direct): Adjust functions calls to pass down
10947 info.
10948 (svr4_current_sos_1): Add info parameter.
10949 (svr4_current_sos): Call get_svr4_info, pass info down to
10950 svr4_current_sos_1.
10951 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10952 get_svr4_info.
10953 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10954 get_svr4_info.
10955 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10956 to get_svr4_info.
10957 (probes_table_remove_objfile_probes): Likewise.
10958 (register_solib_event_probe): Add info parameter.
10959 (solist_update_incremental): Pass info parameter down to
10960 svr4_read_so_list.
10961 (disable_probes_interface): Add info parameter.
10962 (svr4_handle_solib_event): Pass current_program_space to
10963 get_svr4_info. Adjust disable_probes_interface cleanup.
10964 (svr4_create_probe_breakpoints): Add info parameter, pass it
10965 down to register_solib_event_probe.
10966 (svr4_create_solib_event_breakpoints): Add info parameter,
10967 pass it down to svr4_create_probe_breakpoints.
10968 (enable_break): Pass info down to
10969 svr4_create_solib_event_breakpoints.
10970 (svr4_solib_create_inferior_hook): Pass current_program_space to
10971 get_svr4_info.
10972 (svr4_clear_solib): Likewise.
10973
7905fc35
PA
109742019-04-22 Pedro Alves <palves@redhat.com>
10975
10976 * solib-svr4.c (svr4_free_objfile_observer): New.
10977 (probe_and_action::objfile): New field.
10978 (probes_table_htab_remove_objfile_probes)
10979 (probes_table_remove_objfile_probes): New functions.
10980 (register_solib_event_probe): Add 'objfile' parameter. Store it
10981 in the new probe_and_action. Don't store the probe in 'lookup'.
10982 (svr4_create_probe_breakpoints): Pass objfile to
10983 register_solib_event_probe.
10984 (_initialize_svr4_solib): Register a free_objfile observer.
10985
fb881986
TT
109862019-04-19 Tom Tromey <tom@tromey.com>
10987
10988 * common/queue.h: Remove.
10989
8732db6c
TT
109902019-04-19 Tom Tromey <tom@tromey.com>
10991
10992 * event-loop.c: Don't include "common/queue.h".
10993
97dfbadd
TT
109942019-04-19 Tom Tromey <tom@tromey.com>
10995
10996 * remote.c (remote_target): Use delete.
10997 * remote-notif.h: Include <list>, not "common/queue.h".
10998 (notif_client_p): Remove typedef.
10999 (remote_notif_state): Add constructor, destructor, initializer.
11000 <notif_queue>: Now a std::list.
11001 (remote_notif_state_xfree): Don't declare.
11002 * remote-notif.c (remote_notif_process, handle_notification)
11003 (remote_notif_state_allocate): Update.
11004 (~remote_notif_state): Rename from remote_notif_state_xfree.
11005
cf250e36
TT
110062019-04-19 Tom Tromey <tom@tromey.com>
11007
11008 * symfile.c (reread_symbols): Update.
11009 * objfiles.c (objfile_register_static_link)
11010 (objfile_lookup_static_link): Update
11011 (~objfile) Don't delete static_links.
11012 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11013
61f4b350
TT
110142019-04-19 Tom Tromey <tom@tromey.com>
11015
11016 * type-stack.h (struct type_stack) <insert>: Constify string.
11017 * type-stack.c (type_stack::insert): Constify string.
11018 * gdbtypes.h (lookup_template_type): Update.
11019 (address_space_name_to_int): Update.
11020 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11021 const.
11022 (lookup_template_type): Make name const.
11023 * c-exp.y: Update rules.
11024 (lex_one_token, classify_name, classify_inner_name)
11025 (c_print_token): Update.
11026 * p-exp.y: Update rules.
11027 (yylex): Update.
11028 * f-exp.y: Update rules.
11029 (yylex): Update.
11030 * d-exp.y: Update rules.
11031 (lex_one_token, classify_name, classify_inner_name): Update.
11032 * parse.c (write_dollar_variable, copy_name): Return std::string.
11033 * parser-defs.h (copy_name): Change return type.
11034 * m2-exp.y: Update rules.
11035 (yylex): Update.
11036 * go-exp.y (lex_one_token): Update.
11037 Update rules.
11038 (classify_unsafe_function, classify_packaged_name)
11039 (classify_name, yylex): Update.
11040
189b8c2e
ST
110412019-04-19 Sergei Trofimovich <siarheit@google.com>
11042
11043 * configure.ac: add --enable-source-highlight switch.
11044 * configure: Regenerate.
11045 * top.c (print_gdb_version): plumb --enable-source-highlight
11046 status to "show configuration".
11047
8ecb59f8
TT
110482019-04-19 Tom Tromey <tromey@adacore.com>
11049
11050 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11051 Check ADA_TYPE_P.
11052 (empty_record, ada_template_to_fixed_record_type_1)
11053 (template_to_static_fixed_type)
11054 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11055 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11056 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11057 macros.
11058
62160ec9
TT
110592019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11060
11061 PR symtab/24423:
11062 * source.c (print_source_lines_base): Advance "iter" when a
11063 control character is seen.
11064
f2ae8bc8
PW
110652019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11066
11067 * inferior.h (struct infcall_suspend_state_deleter):
11068 Catch exception in destructor to avoid crash.
11069
d563b953
PW
110702019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11071
11072 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11073 close to the add_com "shell".
11074
dc34c897
TT
110752019-04-18 Tom Tromey <tromey@adacore.com>
11076
11077 * process-stratum-target.h (class process_stratum_target)
11078 <stratum>: Add "final".
11079
a12e5744
TT
110802019-04-17 Tom Tromey <tromey@adacore.com>
11081
11082 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11083 against nullptr before use.
11084
a7e559cc
AH
110852019-04-17 Alan Hayward <alan.hayward@arm.com>
11086
11087 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11088
c01660c6
AB
110892019-04-17 Jim Wilson <jimw@sifive.com>
11090 Andrew Burgess <andrew.burgess@embecosm.com>
11091
11092 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11093 code read might fail, assume 4-byte breakpoint in that case.
11094
4aa866af
LS
110952019-04-15 Leszek Swirski <leszeks@google.com>
11096
11097 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11098 rather than a hand-rolled POD check when checking for forced MEMORY
11099 classification.
11100
48574d91
AH
111012019-04-15 Alan Hayward <alan.hayward@arm.com>
11102
11103 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11104 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11105 function.
11106 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11107 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11108 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11109 declaration.
11110
4da037ef
AH
111112019-04-15 Alan Hayward <alan.hayward@arm.com>
11112
11113 * aarch64-linux-nat.c
11114 (aarch64_linux_nat_target::thread_architecture): Add override.
11115 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11116 each VQ.
11117
ccb8d7e8
AH
111182019-04-15 Alan Hayward <alan.hayward@arm.com>
11119
11120 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11121
35add35e
AB
111222019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11123
11124 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11125 target types of size 96-bits, add some additional comments, and
11126 check that the builtin type we found was the correct size.
11127
51196bbc
EZ
111282019-04-12 Eli Zaretskii <eliz@gnu.org>
11129
11130 * utils.c (prompt_for_continue): Don't restore the styling at the
11131 end, as applied_style has the wrong value. This fixes styling in
11132 long lists of file names that are interrupted by the "Continue?"
11133 prompt.
11134
62253a61
AB
111352019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11136
11137 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11138 * c-lang.c (c_language_defn): Likewise.
11139 (cplus_language_defn): Likewise.
11140 (asm_language_defn): Likewise.
11141 (minimal_language_defn): Likewise.
11142 * d-lang.c (d_language_defn): Likewise.
11143 * f-lang.c (f_language_defn): Likewise.
11144 * go-lang.c (go_language_defn): Likewise.
11145 * language.c (unknown_language_defn): Likewise.
11146 (auto_language_defn): Likewise.
11147 * language.h (struct language_defn): Remove la_magic field.
11148 (LANG_MAGIC): Delete.
11149 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11150 * objc-lang.c (objc_language_defn): Likewise.
11151 * opencl-lang.c (opencl_language_defn): Likewise.
11152 * p-lang.c (pascal_language_defn): Likewise.
11153 * rust-lang.c (rust_language_defn): Likewise.
11154
a9158a86
AB
111552019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11156
11157 * riscv-tdep.c (riscv_type_align): New function.
11158 (riscv_type_alignment): Delete.
11159 (riscv_arg_location): Use 'type_align'.
11160 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11161
41077b66
AB
111622019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11163
11164 * gdbtypes.c (type_align): A struct with no non-static fields also
11165 has alignment of 1.
11166
9f0272f8
AB
111672019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11168
11169 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11170 component to 0.
11171 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11172 member.
11173 (riscv_struct_info::analyse): New implementation using new
11174 analyse_inner member function.
11175 (riscv_struct_info::field_offset): New member function.
11176 (riscv_struct_info::m_offsets): New member variable.
11177 (riscv_struct_info::analyse_inner): New private member function,
11178 takes the old implementation of riscv_struct_info::analyse but
11179 extended to track field offsets.
11180 (riscv_call_arg_struct): Update the struct folding special cases
11181 to handle cases where empty C++ structs, which are non-zero
11182 length, are found.
11183 (riscv_arg_location): Initialise the length of each location, a
11184 non-zero length now indicates the location is in use.
11185 (riscv_push_dummy_call): Allow for the first location having a
11186 non-zero offset when setting up arguments.
11187 (riscv_return_value): Likewise, but for return values.
11188
02cf60c7
TT
111892019-04-11 Tom Tromey <tromey@adacore.com>
11190
11191 * utils.c (internal_vproblem): Make "msg" const.
11192
68811f8f
AH
111932019-04-11 Alan Hayward <alan.hayward@arm.com>
11194
11195 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11196 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11197 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11198 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11199
3f52fdbc
KB
112002019-04-10 Kevin Buettner <kevinb@redhat.com>
11201
11202 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11203 function.
11204 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11205 of amd64_collect_native_gregset.
11206 (amd64_linux_nat_target::store_registers): Likewise.
11207
e9ad22ee
TT
112082019-04-10 Tom Tromey <tom@tromey.com>
11209
11210 * symtab.c (lookup_global_symbol_from_objfile)
11211 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11212 * objfiles.h (class separate_debug_iterator): New.
11213 (class separate_debug_range): New.
11214 (struct objfile) <separate_debug_objfiles>: New method.
11215 (objfile_separate_debug_iterate): Don't declare.
11216 * objfiles.c (separate_debug_iterator::operator++): Rename from
11217 objfile_separate_debug_iterate.
11218 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11219 iterator.
11220 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11221 iterator.
11222
ee371134
TT
112232019-04-10 Tom Tromey <tom@tromey.com>
11224
11225 * symfile.c (reread_symbols): Remove old comment.
11226 * objfiles.c (free_all_objfiles): Fix a typo.
11227
bf227d61
TT
112282019-04-10 Tom Tromey <tom@tromey.com>
11229
11230 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11231 * minsyms.c (lookup_minimal_symbol): Use foreach.
11232 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11233 (lookup_minimal_symbol_solib_trampoline): Likewise.
11234 * symfile.c (reread_symbols): Use foreach.
11235
8dc433a0
TT
112362019-04-09 Ivan Begert <ivanbegert@gmail.com>
11237 Tom Tromey <tromey@adacore.com>
11238
11239 PR rust/24414:
11240 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11241 (rust_lex_int_test): Change "value" to be LONGEST.
11242 (rust_lex_tests): Add test for long integer literal.
11243
9ab8741a
TT
112442019-04-09 Tom Tromey <tromey@adacore.com>
11245
11246 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11247 to bool.
11248 (extended_remote_target::attach): Update.
11249 (remote_target::remote_notice_new_inferior): Update.
11250 (remote_target::add_current_inferior_and_thread): Update.
11251 * inferior.c (exit_inferior_1): Use "false".
11252 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11253
e242fd12
SM
112542019-04-09 Simon Marchi <simon.marchi@efficios.com>
11255
9ca1957f 11256 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11257 the "start" command.
11258
2b0c8b01
KB
112592019-04-08 Kevin Buettner <kevinb@redhat.com>
11260
11261 * python/py-inferior.c (infpy_thread_from_thread_handle):
11262 Adjust comments to reflect renaming of thread_from_thread_handle
11263 to thread_from_handle. Adjust keywords. Fix type error message.
11264 (inferior_object_methods): Add thread_from_handle. Retain
11265 thread_from_thread_handle, but mark it as deprecated.
11266
50a82723
KB
112672019-04-08 Kevin Buettner <kevinb@redhat.com>
11268
11269 * gdbthread.h (find_thread_by_handle): Revise declaration.
11270 * thread.c (find_thread_by_handle): Likewise. Adjust
11271 implementation too.
11272 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11273 support for buffer objects as handles.
11274
cf63b016
KB
112752019-04-08 Kevin Buettner <kevinb@redhat.com>
11276
11277 * python/py-infthread.c (thpy_thread_handle): New function.
11278 (thread_object_methods): Register thpy_thread_handle.
11279
3d6c6204
KB
112802019-04-08 Kevin Buettner <kevinb@redhat.com>
11281
11282 * gdbthread.h (thread_to_thread_handle): Declare.
11283 * thread.c (gdbtypes.h): Include.
11284 (thread_to_thread_handle): New function.
11285
11286 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11287 (target_thread_info_to_thread_handle): Declare.
11288 * target.c (target_thread_info_to_thread_handle): New function.
11289 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11290 * target-delegates.c: Regenerate.
11291
11292 * linux-thread-db.c (class thread_db_target): Add method
11293 thread_info_to_thread_handle.
11294 (thread_db_target::thread_info_to_thread_handle): Define.
11295 * remote.c (class remote_target): Add new method
11296 thread_info_to_thread_handle.
11297 (remote_target::thread_info_to_thread_handle): Define.
11298
56be6ea8
PA
112992019-04-08 Pedro Alves <palves@redhat.com>
11300
11301 * common/common-exceptions.c (throw_exception): Don't create
11302 named object to throw; throw directly.
11303 (throw_it): Likewise. Don't initialize gdb_exception::message
11304 here, with new; pass FMT and AP to the ctor instead.
11305 * common/common-exceptions.h: Include <string>.
11306 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11307 const char *, va_list)): New ctor. Use std::make_shared.
11308 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11309 errors)): Delete.
11310 (gdb_exception_error::gdb_exception_error(enum errors, const char
11311 *, va_list)): New.
11312 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11313 Add assertion.
11314 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11315 errors)): Delete.
11316 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11317 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11318 Add assertion.
11319
eedc3f4f
TT
113202019-04-08 Tom Tromey <tom@tromey.com>
11321
11322 * valops.c (value_rtti_indirect_type): Replace throw_exception
11323 with throw.
11324 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11325 with throw.
11326 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11327 throw.
11328 * target.c (target_translate_tls_address): Replace throw_exception
11329 with throw.
11330 * stack.c (frame_apply_command_count): Replace throw_exception
11331 with throw.
11332 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11333 throw.
11334 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11335 with throw.
11336 * rs6000-tdep.c (rs6000_frame_cache)
11337 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11338 * remote.c: Replace throw_exception with throw.
11339 * record-full.c (record_full_message, record_full_wait_1)
11340 (record_full_restore): Replace throw_exception with throw.
11341 * record-btrace.c:
11342 (get_thread_current_frame_id, record_btrace_start_replaying)
11343 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11344 (cmd_record_btrace_start): Replace throw_exception with throw.
11345 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11346 throw.
11347 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11348 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11349 * linespec.c:
11350 (find_linespec_symbols): Replace throw_exception with throw.
11351 * infrun.c (displaced_step_prepare, resume): Replace
11352 throw_exception with throw.
11353 * infcmd.c (post_create_inferior): Replace throw_exception with
11354 throw.
11355 * inf-loop.c (inferior_event_handler): Replace throw_exception
11356 with throw.
11357 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11358 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11359 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11360 (get_prev_frame_always, get_frame_pc_if_available)
11361 (get_frame_address_in_block_if_available, get_frame_language):
11362 Replace throw_exception with throw.
11363 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11364 throw_exception with throw.
11365 * eval.c (fetch_subexp_value, evaluate_var_value)
11366 (evaluate_funcall, evaluate_subexp_standard): Replace
11367 throw_exception with throw.
11368 * dwarf2loc.c (call_site_find_chain)
11369 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11370 Replace throw_exception with throw.
11371 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11372 with throw.
11373 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11374 throw.
11375 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11376 * completer.c (complete_line_internal): Replace throw_exception
11377 with throw.
11378 * compile/compile-object-run.c (compile_object_run): Replace
11379 throw_exception with throw.
11380 * cli/cli-script.c (process_next_line): Replace throw_exception
11381 with throw.
11382 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11383 (btrace_enable, btrace_maint_update_pt_packets): Replace
11384 throw_exception with throw.
11385 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11386 throw_exception with throw.
11387 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11388 throw_exception with throw.
11389 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11390 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11391 * aarch64-tdep.c (aarch64_make_prologue_cache)
11392 (aarch64_make_stub_cache): Replace throw_exception with throw.
11393
26003a20
TT
113942019-04-08 Tom Tromey <tom@tromey.com>
11395
11396 * common/common-exceptions.c (throw_exception): Rename from
11397 throw_exception_cxx. Remove old copy. Make argument const.
11398 (throw_it): Create and throw exception objects directly.
11399 * common/common-exceptions.h (throw_exception): Make argument
11400 const.
11401 (struct gdb_exception_error): Add constructor.
11402 (struct gdb_exception_quit): Add constructor.
11403
d272eb37
TT
114042019-04-08 Tom Tromey <tom@tromey.com>
11405
11406 * common/common-exceptions.h (exception_rethrow): Don't declare.
11407 (TRY_SJLJ): Update comment.
11408 (TRY, CATCH, END_CATCH): Remove.
11409 * common/common-exceptions.c (exception_rethrow): Remove.
11410
230d2906
TT
114112019-04-08 Tom Tromey <tom@tromey.com>
11412
11413 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11414 Remove.
11415 (gdb_exception_error): Rename from
11416 gdb_exception_RETURN_MASK_ERROR.
11417 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11418 (gdb_quit_bad_alloc): Update.
11419 * aarch64-tdep.c: Update.
11420 * ada-lang.c: Update.
11421 * ada-typeprint.c: Update.
11422 * ada-valprint.c: Update.
11423 * amd64-tdep.c: Update.
11424 * arch-utils.c: Update.
11425 * break-catch-throw.c: Update.
11426 * breakpoint.c: Update.
11427 * btrace.c: Update.
11428 * c-varobj.c: Update.
11429 * cli/cli-cmds.c: Update.
11430 * cli/cli-interp.c: Update.
11431 * cli/cli-script.c: Update.
11432 * common/common-exceptions.c: Update.
11433 * common/new-op.c: Update.
11434 * common/selftest.c: Update.
11435 * compile/compile-c-symbols.c: Update.
11436 * compile/compile-cplus-symbols.c: Update.
11437 * compile/compile-object-load.c: Update.
11438 * compile/compile-object-run.c: Update.
11439 * completer.c: Update.
11440 * corelow.c: Update.
11441 * cp-abi.c: Update.
11442 * cp-support.c: Update.
11443 * cp-valprint.c: Update.
11444 * darwin-nat.c: Update.
11445 * disasm-selftests.c: Update.
11446 * dtrace-probe.c: Update.
11447 * dwarf-index-cache.c: Update.
11448 * dwarf-index-write.c: Update.
11449 * dwarf2-frame-tailcall.c: Update.
11450 * dwarf2-frame.c: Update.
11451 * dwarf2loc.c: Update.
11452 * dwarf2read.c: Update.
11453 * eval.c: Update.
11454 * event-loop.c: Update.
11455 * event-top.c: Update.
11456 * exec.c: Update.
11457 * f-valprint.c: Update.
11458 * fbsd-tdep.c: Update.
11459 * frame-unwind.c: Update.
11460 * frame.c: Update.
11461 * gdbtypes.c: Update.
11462 * gnu-v3-abi.c: Update.
11463 * guile/guile-internal.h: Update.
11464 * guile/scm-block.c: Update.
11465 * guile/scm-breakpoint.c: Update.
11466 * guile/scm-cmd.c: Update.
11467 * guile/scm-disasm.c: Update.
11468 * guile/scm-frame.c: Update.
11469 * guile/scm-lazy-string.c: Update.
11470 * guile/scm-math.c: Update.
11471 * guile/scm-param.c: Update.
11472 * guile/scm-ports.c: Update.
11473 * guile/scm-pretty-print.c: Update.
11474 * guile/scm-symbol.c: Update.
11475 * guile/scm-symtab.c: Update.
11476 * guile/scm-type.c: Update.
11477 * guile/scm-value.c: Update.
11478 * i386-linux-tdep.c: Update.
11479 * i386-tdep.c: Update.
11480 * inf-loop.c: Update.
11481 * infcall.c: Update.
11482 * infcmd.c: Update.
11483 * infrun.c: Update.
11484 * jit.c: Update.
11485 * language.c: Update.
11486 * linespec.c: Update.
11487 * linux-fork.c: Update.
11488 * linux-nat.c: Update.
11489 * linux-tdep.c: Update.
11490 * linux-thread-db.c: Update.
11491 * main.c: Update.
11492 * mi/mi-cmd-break.c: Update.
11493 * mi/mi-cmd-stack.c: Update.
11494 * mi/mi-interp.c: Update.
11495 * mi/mi-main.c: Update.
11496 * objc-lang.c: Update.
11497 * p-valprint.c: Update.
11498 * parse.c: Update.
11499 * ppc-linux-tdep.c: Update.
11500 * printcmd.c: Update.
11501 * python/py-arch.c: Update.
11502 * python/py-breakpoint.c: Update.
11503 * python/py-cmd.c: Update.
11504 * python/py-finishbreakpoint.c: Update.
11505 * python/py-frame.c: Update.
11506 * python/py-framefilter.c: Update.
11507 * python/py-gdb-readline.c: Update.
11508 * python/py-inferior.c: Update.
11509 * python/py-infthread.c: Update.
11510 * python/py-lazy-string.c: Update.
11511 * python/py-linetable.c: Update.
11512 * python/py-objfile.c: Update.
11513 * python/py-param.c: Update.
11514 * python/py-prettyprint.c: Update.
11515 * python/py-progspace.c: Update.
11516 * python/py-record-btrace.c: Update.
11517 * python/py-record.c: Update.
11518 * python/py-symbol.c: Update.
11519 * python/py-type.c: Update.
11520 * python/py-unwind.c: Update.
11521 * python/py-utils.c: Update.
11522 * python/py-value.c: Update.
11523 * python/python.c: Update.
11524 * record-btrace.c: Update.
11525 * record-full.c: Update.
11526 * remote-fileio.c: Update.
11527 * remote.c: Update.
11528 * riscv-tdep.c: Update.
11529 * rs6000-aix-tdep.c: Update.
11530 * rs6000-tdep.c: Update.
11531 * rust-exp.y: Update.
11532 * rust-lang.c: Update.
11533 * s390-tdep.c: Update.
11534 * selftest-arch.c: Update.
11535 * solib-dsbt.c: Update.
11536 * solib-frv.c: Update.
11537 * solib-spu.c: Update.
11538 * solib-svr4.c: Update.
11539 * solib.c: Update.
11540 * sparc64-linux-tdep.c: Update.
11541 * stack.c: Update.
11542 * symfile-mem.c: Update.
11543 * symmisc.c: Update.
11544 * target.c: Update.
11545 * thread.c: Update.
11546 * top.c: Update.
11547 * tracefile-tfile.c: Update.
11548 * tui/tui.c: Update.
11549 * typeprint.c: Update.
11550 * unittests/cli-utils-selftests.c: Update.
11551 * unittests/parse-connection-spec-selftests.c: Update.
11552 * valops.c: Update.
11553 * valprint.c: Update.
11554 * value.c: Update.
11555 * varobj.c: Update.
11556 * windows-nat.c: Update.
11557 * x86-linux-nat.c: Update.
11558 * xml-support.c: Update.
11559
a70b8144
TT
115602019-04-08 Tom Tromey <tom@tromey.com>
11561
11562 * xml-support.c: Use C++ exception handling.
11563 * x86-linux-nat.c: Use C++ exception handling.
11564 * windows-nat.c: Use C++ exception handling.
11565 * varobj.c: Use C++ exception handling.
11566 * value.c: Use C++ exception handling.
11567 * valprint.c: Use C++ exception handling.
11568 * valops.c: Use C++ exception handling.
11569 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11570 handling.
11571 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11572 * typeprint.c: Use C++ exception handling.
11573 * tui/tui.c: Use C++ exception handling.
11574 * tracefile-tfile.c: Use C++ exception handling.
11575 * top.c: Use C++ exception handling.
11576 * thread.c: Use C++ exception handling.
11577 * target.c: Use C++ exception handling.
11578 * symmisc.c: Use C++ exception handling.
11579 * symfile-mem.c: Use C++ exception handling.
11580 * stack.c: Use C++ exception handling.
11581 * sparc64-linux-tdep.c: Use C++ exception handling.
11582 * solib.c: Use C++ exception handling.
11583 * solib-svr4.c: Use C++ exception handling.
11584 * solib-spu.c: Use C++ exception handling.
11585 * solib-frv.c: Use C++ exception handling.
11586 * solib-dsbt.c: Use C++ exception handling.
11587 * selftest-arch.c: Use C++ exception handling.
11588 * s390-tdep.c: Use C++ exception handling.
11589 * rust-lang.c: Use C++ exception handling.
11590 * rust-exp.y: Use C++ exception handling.
11591 * rs6000-tdep.c: Use C++ exception handling.
11592 * rs6000-aix-tdep.c: Use C++ exception handling.
11593 * riscv-tdep.c: Use C++ exception handling.
11594 * remote.c: Use C++ exception handling.
11595 * remote-fileio.c: Use C++ exception handling.
11596 * record-full.c: Use C++ exception handling.
11597 * record-btrace.c: Use C++ exception handling.
11598 * python/python.c: Use C++ exception handling.
11599 * python/py-value.c: Use C++ exception handling.
11600 * python/py-utils.c: Use C++ exception handling.
11601 * python/py-unwind.c: Use C++ exception handling.
11602 * python/py-type.c: Use C++ exception handling.
11603 * python/py-symbol.c: Use C++ exception handling.
11604 * python/py-record.c: Use C++ exception handling.
11605 * python/py-record-btrace.c: Use C++ exception handling.
11606 * python/py-progspace.c: Use C++ exception handling.
11607 * python/py-prettyprint.c: Use C++ exception handling.
11608 * python/py-param.c: Use C++ exception handling.
11609 * python/py-objfile.c: Use C++ exception handling.
11610 * python/py-linetable.c: Use C++ exception handling.
11611 * python/py-lazy-string.c: Use C++ exception handling.
11612 * python/py-infthread.c: Use C++ exception handling.
11613 * python/py-inferior.c: Use C++ exception handling.
11614 * python/py-gdb-readline.c: Use C++ exception handling.
11615 * python/py-framefilter.c: Use C++ exception handling.
11616 * python/py-frame.c: Use C++ exception handling.
11617 * python/py-finishbreakpoint.c: Use C++ exception handling.
11618 * python/py-cmd.c: Use C++ exception handling.
11619 * python/py-breakpoint.c: Use C++ exception handling.
11620 * python/py-arch.c: Use C++ exception handling.
11621 * printcmd.c: Use C++ exception handling.
11622 * ppc-linux-tdep.c: Use C++ exception handling.
11623 * parse.c: Use C++ exception handling.
11624 * p-valprint.c: Use C++ exception handling.
11625 * objc-lang.c: Use C++ exception handling.
11626 * mi/mi-main.c: Use C++ exception handling.
11627 * mi/mi-interp.c: Use C++ exception handling.
11628 * mi/mi-cmd-stack.c: Use C++ exception handling.
11629 * mi/mi-cmd-break.c: Use C++ exception handling.
11630 * main.c: Use C++ exception handling.
11631 * linux-thread-db.c: Use C++ exception handling.
11632 * linux-tdep.c: Use C++ exception handling.
11633 * linux-nat.c: Use C++ exception handling.
11634 * linux-fork.c: Use C++ exception handling.
11635 * linespec.c: Use C++ exception handling.
11636 * language.c: Use C++ exception handling.
11637 * jit.c: Use C++ exception handling.
11638 * infrun.c: Use C++ exception handling.
11639 * infcmd.c: Use C++ exception handling.
11640 * infcall.c: Use C++ exception handling.
11641 * inf-loop.c: Use C++ exception handling.
11642 * i386-tdep.c: Use C++ exception handling.
11643 * i386-linux-tdep.c: Use C++ exception handling.
11644 * guile/scm-value.c: Use C++ exception handling.
11645 * guile/scm-type.c: Use C++ exception handling.
11646 * guile/scm-symtab.c: Use C++ exception handling.
11647 * guile/scm-symbol.c: Use C++ exception handling.
11648 * guile/scm-pretty-print.c: Use C++ exception handling.
11649 * guile/scm-ports.c: Use C++ exception handling.
11650 * guile/scm-param.c: Use C++ exception handling.
11651 * guile/scm-math.c: Use C++ exception handling.
11652 * guile/scm-lazy-string.c: Use C++ exception handling.
11653 * guile/scm-frame.c: Use C++ exception handling.
11654 * guile/scm-disasm.c: Use C++ exception handling.
11655 * guile/scm-cmd.c: Use C++ exception handling.
11656 * guile/scm-breakpoint.c: Use C++ exception handling.
11657 * guile/scm-block.c: Use C++ exception handling.
11658 * guile/guile-internal.h: Use C++ exception handling.
11659 * gnu-v3-abi.c: Use C++ exception handling.
11660 * gdbtypes.c: Use C++ exception handling.
11661 * frame.c: Use C++ exception handling.
11662 * frame-unwind.c: Use C++ exception handling.
11663 * fbsd-tdep.c: Use C++ exception handling.
11664 * f-valprint.c: Use C++ exception handling.
11665 * exec.c: Use C++ exception handling.
11666 * event-top.c: Use C++ exception handling.
11667 * event-loop.c: Use C++ exception handling.
11668 * eval.c: Use C++ exception handling.
11669 * dwarf2read.c: Use C++ exception handling.
11670 * dwarf2loc.c: Use C++ exception handling.
11671 * dwarf2-frame.c: Use C++ exception handling.
11672 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11673 * dwarf-index-write.c: Use C++ exception handling.
11674 * dwarf-index-cache.c: Use C++ exception handling.
11675 * dtrace-probe.c: Use C++ exception handling.
11676 * disasm-selftests.c: Use C++ exception handling.
11677 * darwin-nat.c: Use C++ exception handling.
11678 * cp-valprint.c: Use C++ exception handling.
11679 * cp-support.c: Use C++ exception handling.
11680 * cp-abi.c: Use C++ exception handling.
11681 * corelow.c: Use C++ exception handling.
11682 * completer.c: Use C++ exception handling.
11683 * compile/compile-object-run.c: Use C++ exception handling.
11684 * compile/compile-object-load.c: Use C++ exception handling.
11685 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11686 * compile/compile-c-symbols.c: Use C++ exception handling.
11687 * common/selftest.c: Use C++ exception handling.
11688 * common/new-op.c: Use C++ exception handling.
11689 * cli/cli-script.c: Use C++ exception handling.
11690 * cli/cli-interp.c: Use C++ exception handling.
11691 * cli/cli-cmds.c: Use C++ exception handling.
11692 * c-varobj.c: Use C++ exception handling.
11693 * btrace.c: Use C++ exception handling.
11694 * breakpoint.c: Use C++ exception handling.
11695 * break-catch-throw.c: Use C++ exception handling.
11696 * arch-utils.c: Use C++ exception handling.
11697 * amd64-tdep.c: Use C++ exception handling.
11698 * ada-valprint.c: Use C++ exception handling.
11699 * ada-typeprint.c: Use C++ exception handling.
11700 * ada-lang.c: Use C++ exception handling.
11701 * aarch64-tdep.c: Use C++ exception handling.
11702
3d6e9d23
TT
117032019-04-08 Tom Tromey <tom@tromey.com>
11704
11705 * xml-support.c (gdb_xml_parser::parse): Update.
11706 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11707 * value.c (show_convenience): Update.
11708 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11709 (test_parse_flags_qcs): Update.
11710 * thread.c (thr_try_catch_cmd): Update.
11711 * target.c (target_translate_tls_address): Update.
11712 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11713 (info_frame_command_core, frame_apply_command_count): Update.
11714 * rust-exp.y (rust_lex_exception_test): Update.
11715 * riscv-tdep.c (riscv_print_one_register_info): Update.
11716 * remote.c (remote_target::enable_btrace): Update.
11717 * record-btrace.c (record_btrace_enable_warn): Update.
11718 * python/py-utils.c (gdbpy_convert_exception): Update.
11719 * printcmd.c (do_one_display, print_variable_and_value): Update.
11720 * mi/mi-main.c (mi_print_exception): Update.
11721 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11722 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11723 * linux-nat.c (linux_nat_target::attach): Update.
11724 * linux-fork.c (class scoped_switch_fork_info): Update.
11725 * infrun.c (displaced_step_prepare): Update.
11726 * infcall.c (call_function_by_hand_dummy): Update.
11727 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11728 * gnu-v3-abi.c (print_one_vtable): Update.
11729 * frame.c (get_prev_frame_always): Update.
11730 * f-valprint.c (info_common_command_for_block): Update.
11731 * exec.c (try_open_exec_file): Update.
11732 * exceptions.c (print_exception, exception_print)
11733 (exception_fprintf, exception_print_same): Update.
11734 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11735 * dwarf-index-cache.c (index_cache::store)
11736 (index_cache::lookup_gdb_index): Update.
11737 * darwin-nat.c (maybe_cache_shell): Update.
11738 * cp-valprint.c (cp_print_value_fields): Update.
11739 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11740 (gcc_cplus_symbol_address): Update.
11741 * compile/compile-c-symbols.c (gcc_convert_symbol)
11742 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11743 * common/selftest.c: Update.
11744 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11745 a std::string.
11746 (exception_try_scope_entry, exception_try_scope_exit): Don't
11747 declare.
11748 (struct exception_try_scope): Remove.
11749 (TRY): Don't use exception_try_scope.
11750 (struct gdb_exception): Add constructor, operator=.
11751 <what>: New method.
11752 (struct gdb_exception_RETURN_MASK_ALL)
11753 (struct gdb_exception_RETURN_MASK_ERROR)
11754 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11755 (struct gdb_quit_bad_alloc): Update.
11756 * common/common-exceptions.c (exception_none): Change
11757 initializer.
11758 (struct catcher) <state, exception>: Initialize inline.
11759 <prev>: Remove member.
11760 (current_catcher): Remove.
11761 (catchers): New global.
11762 (exceptions_state_mc_init): Simplify.
11763 (catcher_pop): Remove.
11764 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11765 (try_scope_depth, exception_try_scope_entry)
11766 (exception_try_scope_exit): Remove.
11767 (throw_exception_sjlj): Update.
11768 (exception_messages, exception_messages_size): Remove.
11769 (throw_it): Simplify.
11770 (gdb_exception_sliced_copy): Remove.
11771 (throw_exception_cxx): Update.
11772 * cli/cli-script.c (script_from_file): Update.
11773 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11774 Update.
11775 * ada-valprint.c (ada_val_print): Update.
11776 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11777 (create_excep_cond_exprs): Update.
11778
c5c10118
TT
117792019-04-08 Tom Tromey <tom@tromey.com>
11780
11781 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11782 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11783 (TRY, CATCH, END_CATCH): Remove some definitions.
11784 * common/common-exceptions.c: Don't use GDB_XCPT.
11785 (catcher_list_size): Remove.
11786 (throw_exception, throw_it): Simplify.
11787
4de283e4
TT
117882019-04-05 Tom Tromey <tom@tromey.com>
11789
11790 Revert the header-sorting patch.
11791 * ft32-tdep.c: Revert.
11792 * frv-tdep.c: Revert.
11793 * frv-linux-tdep.c: Revert.
11794 * frame.c: Revert.
11795 * frame-unwind.c: Revert.
11796 * frame-base.c: Revert.
11797 * fork-child.c: Revert.
11798 * findvar.c: Revert.
11799 * findcmd.c: Revert.
11800 * filesystem.c: Revert.
11801 * filename-seen-cache.h: Revert.
11802 * filename-seen-cache.c: Revert.
11803 * fbsd-tdep.c: Revert.
11804 * fbsd-nat.h: Revert.
11805 * fbsd-nat.c: Revert.
11806 * f-valprint.c: Revert.
11807 * f-typeprint.c: Revert.
11808 * f-lang.c: Revert.
11809 * extension.h: Revert.
11810 * extension.c: Revert.
11811 * extension-priv.h: Revert.
11812 * expprint.c: Revert.
11813 * exec.h: Revert.
11814 * exec.c: Revert.
11815 * exceptions.c: Revert.
11816 * event-top.c: Revert.
11817 * event-loop.c: Revert.
11818 * eval.c: Revert.
11819 * elfread.c: Revert.
11820 * dwarf2read.h: Revert.
11821 * dwarf2read.c: Revert.
11822 * dwarf2loc.c: Revert.
11823 * dwarf2expr.h: Revert.
11824 * dwarf2expr.c: Revert.
11825 * dwarf2-frame.c: Revert.
11826 * dwarf2-frame-tailcall.c: Revert.
11827 * dwarf-index-write.h: Revert.
11828 * dwarf-index-write.c: Revert.
11829 * dwarf-index-common.c: Revert.
11830 * dwarf-index-cache.h: Revert.
11831 * dwarf-index-cache.c: Revert.
11832 * dummy-frame.c: Revert.
11833 * dtrace-probe.c: Revert.
11834 * disasm.h: Revert.
11835 * disasm.c: Revert.
11836 * disasm-selftests.c: Revert.
11837 * dictionary.c: Revert.
11838 * dicos-tdep.c: Revert.
11839 * demangle.c: Revert.
11840 * dcache.h: Revert.
11841 * dcache.c: Revert.
11842 * darwin-nat.h: Revert.
11843 * darwin-nat.c: Revert.
11844 * darwin-nat-info.c: Revert.
11845 * d-valprint.c: Revert.
11846 * d-namespace.c: Revert.
11847 * d-lang.c: Revert.
11848 * ctf.c: Revert.
11849 * csky-tdep.c: Revert.
11850 * csky-linux-tdep.c: Revert.
11851 * cris-tdep.c: Revert.
11852 * cris-linux-tdep.c: Revert.
11853 * cp-valprint.c: Revert.
11854 * cp-support.c: Revert.
11855 * cp-namespace.c: Revert.
11856 * cp-abi.c: Revert.
11857 * corelow.c: Revert.
11858 * corefile.c: Revert.
11859 * continuations.c: Revert.
11860 * completer.h: Revert.
11861 * completer.c: Revert.
11862 * complaints.c: Revert.
11863 * coffread.c: Revert.
11864 * coff-pe-read.c: Revert.
11865 * cli-out.h: Revert.
11866 * cli-out.c: Revert.
11867 * charset.c: Revert.
11868 * c-varobj.c: Revert.
11869 * c-valprint.c: Revert.
11870 * c-typeprint.c: Revert.
11871 * c-lang.c: Revert.
11872 * buildsym.c: Revert.
11873 * buildsym-legacy.c: Revert.
11874 * build-id.h: Revert.
11875 * build-id.c: Revert.
11876 * btrace.c: Revert.
11877 * bsd-uthread.c: Revert.
11878 * breakpoint.h: Revert.
11879 * breakpoint.c: Revert.
11880 * break-catch-throw.c: Revert.
11881 * break-catch-syscall.c: Revert.
11882 * break-catch-sig.c: Revert.
11883 * blockframe.c: Revert.
11884 * block.c: Revert.
11885 * bfin-tdep.c: Revert.
11886 * bfin-linux-tdep.c: Revert.
11887 * bfd-target.c: Revert.
11888 * bcache.c: Revert.
11889 * ax-general.c: Revert.
11890 * ax-gdb.h: Revert.
11891 * ax-gdb.c: Revert.
11892 * avr-tdep.c: Revert.
11893 * auxv.c: Revert.
11894 * auto-load.c: Revert.
11895 * arm-wince-tdep.c: Revert.
11896 * arm-tdep.c: Revert.
11897 * arm-symbian-tdep.c: Revert.
11898 * arm-pikeos-tdep.c: Revert.
11899 * arm-obsd-tdep.c: Revert.
11900 * arm-nbsd-tdep.c: Revert.
11901 * arm-nbsd-nat.c: Revert.
11902 * arm-linux-tdep.c: Revert.
11903 * arm-linux-nat.c: Revert.
11904 * arm-fbsd-tdep.c: Revert.
11905 * arm-fbsd-nat.c: Revert.
11906 * arm-bsd-tdep.c: Revert.
11907 * arch-utils.c: Revert.
11908 * arc-tdep.c: Revert.
11909 * arc-newlib-tdep.c: Revert.
11910 * annotate.h: Revert.
11911 * annotate.c: Revert.
11912 * amd64-windows-tdep.c: Revert.
11913 * amd64-windows-nat.c: Revert.
11914 * amd64-tdep.c: Revert.
11915 * amd64-sol2-tdep.c: Revert.
11916 * amd64-obsd-tdep.c: Revert.
11917 * amd64-obsd-nat.c: Revert.
11918 * amd64-nbsd-tdep.c: Revert.
11919 * amd64-nbsd-nat.c: Revert.
11920 * amd64-nat.c: Revert.
11921 * amd64-linux-tdep.c: Revert.
11922 * amd64-linux-nat.c: Revert.
11923 * amd64-fbsd-tdep.c: Revert.
11924 * amd64-fbsd-nat.c: Revert.
11925 * amd64-dicos-tdep.c: Revert.
11926 * amd64-darwin-tdep.c: Revert.
11927 * amd64-bsd-nat.c: Revert.
11928 * alpha-tdep.c: Revert.
11929 * alpha-obsd-tdep.c: Revert.
11930 * alpha-nbsd-tdep.c: Revert.
11931 * alpha-mdebug-tdep.c: Revert.
11932 * alpha-linux-tdep.c: Revert.
11933 * alpha-linux-nat.c: Revert.
11934 * alpha-bsd-tdep.c: Revert.
11935 * alpha-bsd-nat.c: Revert.
11936 * aix-thread.c: Revert.
11937 * agent.c: Revert.
11938 * addrmap.c: Revert.
11939 * ada-varobj.c: Revert.
11940 * ada-valprint.c: Revert.
11941 * ada-typeprint.c: Revert.
11942 * ada-tasks.c: Revert.
11943 * ada-lang.c: Revert.
11944 * aarch64-tdep.c: Revert.
11945 * aarch64-ravenscar-thread.c: Revert.
11946 * aarch64-newlib-tdep.c: Revert.
11947 * aarch64-linux-tdep.c: Revert.
11948 * aarch64-linux-nat.c: Revert.
11949 * aarch64-fbsd-tdep.c: Revert.
11950 * aarch64-fbsd-nat.c: Revert.
11951 * aarch32-linux-nat.c: Revert.
11952
d55e5aa6
TT
119532019-04-05 Tom Tromey <tom@tromey.com>
11954
11955 * ft32-tdep.c: Sort headers.
11956 * frv-tdep.c: Sort headers.
11957 * frv-linux-tdep.c: Sort headers.
11958 * frame.c: Sort headers.
11959 * frame-unwind.c: Sort headers.
11960 * frame-base.c: Sort headers.
11961 * fork-child.c: Sort headers.
11962 * findvar.c: Sort headers.
11963 * findcmd.c: Sort headers.
11964 * filesystem.c: Sort headers.
11965 * filename-seen-cache.h: Sort headers.
11966 * filename-seen-cache.c: Sort headers.
11967 * fbsd-tdep.c: Sort headers.
11968 * fbsd-nat.h: Sort headers.
11969 * fbsd-nat.c: Sort headers.
11970 * f-valprint.c: Sort headers.
11971 * f-typeprint.c: Sort headers.
11972 * f-lang.c: Sort headers.
11973 * extension.h: Sort headers.
11974 * extension.c: Sort headers.
11975 * extension-priv.h: Sort headers.
11976 * expprint.c: Sort headers.
11977 * exec.h: Sort headers.
11978 * exec.c: Sort headers.
11979 * exceptions.c: Sort headers.
11980 * event-top.c: Sort headers.
11981 * event-loop.c: Sort headers.
11982 * eval.c: Sort headers.
11983 * elfread.c: Sort headers.
11984 * dwarf2read.h: Sort headers.
11985 * dwarf2read.c: Sort headers.
11986 * dwarf2loc.c: Sort headers.
11987 * dwarf2expr.h: Sort headers.
11988 * dwarf2expr.c: Sort headers.
11989 * dwarf2-frame.c: Sort headers.
11990 * dwarf2-frame-tailcall.c: Sort headers.
11991 * dwarf-index-write.h: Sort headers.
11992 * dwarf-index-write.c: Sort headers.
11993 * dwarf-index-common.c: Sort headers.
11994 * dwarf-index-cache.h: Sort headers.
11995 * dwarf-index-cache.c: Sort headers.
11996 * dummy-frame.c: Sort headers.
11997 * dtrace-probe.c: Sort headers.
11998 * disasm.h: Sort headers.
11999 * disasm.c: Sort headers.
12000 * disasm-selftests.c: Sort headers.
12001 * dictionary.c: Sort headers.
12002 * dicos-tdep.c: Sort headers.
12003 * demangle.c: Sort headers.
12004 * dcache.h: Sort headers.
12005 * dcache.c: Sort headers.
12006 * darwin-nat.h: Sort headers.
12007 * darwin-nat.c: Sort headers.
12008 * darwin-nat-info.c: Sort headers.
12009 * d-valprint.c: Sort headers.
12010 * d-namespace.c: Sort headers.
12011 * d-lang.c: Sort headers.
12012 * ctf.c: Sort headers.
12013 * csky-tdep.c: Sort headers.
12014 * csky-linux-tdep.c: Sort headers.
12015 * cris-tdep.c: Sort headers.
12016 * cris-linux-tdep.c: Sort headers.
12017 * cp-valprint.c: Sort headers.
12018 * cp-support.c: Sort headers.
12019 * cp-namespace.c: Sort headers.
12020 * cp-abi.c: Sort headers.
12021 * corelow.c: Sort headers.
12022 * corefile.c: Sort headers.
12023 * continuations.c: Sort headers.
12024 * completer.h: Sort headers.
12025 * completer.c: Sort headers.
12026 * complaints.c: Sort headers.
12027 * coffread.c: Sort headers.
12028 * coff-pe-read.c: Sort headers.
12029 * cli-out.h: Sort headers.
12030 * cli-out.c: Sort headers.
12031 * charset.c: Sort headers.
12032 * c-varobj.c: Sort headers.
12033 * c-valprint.c: Sort headers.
12034 * c-typeprint.c: Sort headers.
12035 * c-lang.c: Sort headers.
12036 * buildsym.c: Sort headers.
12037 * buildsym-legacy.c: Sort headers.
12038 * build-id.h: Sort headers.
12039 * build-id.c: Sort headers.
12040 * btrace.c: Sort headers.
12041 * bsd-uthread.c: Sort headers.
12042 * breakpoint.h: Sort headers.
12043 * breakpoint.c: Sort headers.
12044 * break-catch-throw.c: Sort headers.
12045 * break-catch-syscall.c: Sort headers.
12046 * break-catch-sig.c: Sort headers.
12047 * blockframe.c: Sort headers.
12048 * block.c: Sort headers.
12049 * bfin-tdep.c: Sort headers.
12050 * bfin-linux-tdep.c: Sort headers.
12051 * bfd-target.c: Sort headers.
12052 * bcache.c: Sort headers.
12053 * ax-general.c: Sort headers.
12054 * ax-gdb.h: Sort headers.
12055 * ax-gdb.c: Sort headers.
12056 * avr-tdep.c: Sort headers.
12057 * auxv.c: Sort headers.
12058 * auto-load.c: Sort headers.
12059 * arm-wince-tdep.c: Sort headers.
12060 * arm-tdep.c: Sort headers.
12061 * arm-symbian-tdep.c: Sort headers.
12062 * arm-pikeos-tdep.c: Sort headers.
12063 * arm-obsd-tdep.c: Sort headers.
12064 * arm-nbsd-tdep.c: Sort headers.
12065 * arm-nbsd-nat.c: Sort headers.
12066 * arm-linux-tdep.c: Sort headers.
12067 * arm-linux-nat.c: Sort headers.
12068 * arm-fbsd-tdep.c: Sort headers.
12069 * arm-fbsd-nat.c: Sort headers.
12070 * arm-bsd-tdep.c: Sort headers.
12071 * arch-utils.c: Sort headers.
12072 * arc-tdep.c: Sort headers.
12073 * arc-newlib-tdep.c: Sort headers.
12074 * annotate.h: Sort headers.
12075 * annotate.c: Sort headers.
12076 * amd64-windows-tdep.c: Sort headers.
12077 * amd64-windows-nat.c: Sort headers.
12078 * amd64-tdep.c: Sort headers.
12079 * amd64-sol2-tdep.c: Sort headers.
12080 * amd64-obsd-tdep.c: Sort headers.
12081 * amd64-obsd-nat.c: Sort headers.
12082 * amd64-nbsd-tdep.c: Sort headers.
12083 * amd64-nbsd-nat.c: Sort headers.
12084 * amd64-nat.c: Sort headers.
12085 * amd64-linux-tdep.c: Sort headers.
12086 * amd64-linux-nat.c: Sort headers.
12087 * amd64-fbsd-tdep.c: Sort headers.
12088 * amd64-fbsd-nat.c: Sort headers.
12089 * amd64-dicos-tdep.c: Sort headers.
12090 * amd64-darwin-tdep.c: Sort headers.
12091 * amd64-bsd-nat.c: Sort headers.
12092 * alpha-tdep.c: Sort headers.
12093 * alpha-obsd-tdep.c: Sort headers.
12094 * alpha-nbsd-tdep.c: Sort headers.
12095 * alpha-mdebug-tdep.c: Sort headers.
12096 * alpha-linux-tdep.c: Sort headers.
12097 * alpha-linux-nat.c: Sort headers.
12098 * alpha-bsd-tdep.c: Sort headers.
12099 * alpha-bsd-nat.c: Sort headers.
12100 * aix-thread.c: Sort headers.
12101 * agent.c: Sort headers.
12102 * addrmap.c: Sort headers.
12103 * ada-varobj.c: Sort headers.
12104 * ada-valprint.c: Sort headers.
12105 * ada-typeprint.c: Sort headers.
12106 * ada-tasks.c: Sort headers.
12107 * ada-lang.c: Sort headers.
12108 * aarch64-tdep.c: Sort headers.
12109 * aarch64-ravenscar-thread.c: Sort headers.
12110 * aarch64-newlib-tdep.c: Sort headers.
12111 * aarch64-linux-tdep.c: Sort headers.
12112 * aarch64-linux-nat.c: Sort headers.
12113 * aarch64-fbsd-tdep.c: Sort headers.
12114 * aarch64-fbsd-nat.c: Sort headers.
12115 * aarch32-linux-nat.c: Sort headers.
12116
699bd4cf
TT
121172019-04-04 Tom Tromey <tom@tromey.com>
12118
12119 * varobj.c (varobj_create): Update.
12120 * rust-exp.y (struct rust_parser) <update_innermost_block,
12121 lookup_symbol>: New methods.
12122 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12123 Rename.
12124 (rust_parser::rust_lookup_type)
12125 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12126 * printcmd.c (display_command, do_one_display): Update.
12127 * parser-defs.h (struct parser_state) <parser_state>: Add
12128 "tracker" parameter.
12129 (block_tracker): New member.
12130 (class innermost_block_tracker) <innermost_block_tracker>: Add
12131 "types" parameter.
12132 <reset>: Remove method.
12133 (innermost_block): Don't declare.
12134 (null_post_parser): Update.
12135 * parse.c (innermost_block): Remove global.
12136 (write_dollar_variable): Update.
12137 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12138 Remove "tracker_types" parameter.
12139 (parse_expression): Add "tracker" parameter.
12140 (parse_expression_for_completion): Update.
12141 (null_post_parser): Add "tracker" parameter.
12142 * p-exp.y: Update rules.
12143 * m2-exp.y: Update rules.
12144 * language.h (struct language_defn) <la_post_parser>: Add
12145 "tracker" parameter.
12146 * go-exp.y: Update rules.
12147 * f-exp.y: Update rules.
12148 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12149 parameter.
12150 * d-exp.y: Update rules.
12151 * c-exp.y: Update rules.
12152 * breakpoint.c (set_breakpoint_condition): Create an
12153 innermost_block_tracker.
12154 (watch_command_1): Likewise.
12155 * ada-lang.c (resolve): Add "tracker" parameter.
12156 (resolve_subexp): Likewise.
12157 * ada-exp.y (write_var_from_sym): Update.
12158
dac43e32
TT
121592019-04-04 Tom Tromey <tom@tromey.com>
12160
12161 * type-stack.h: New file.
12162 * type-stack.c: New file.
12163 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12164 type-stack.h.
12165 (insert_into_type_stack, insert_type, push_type, push_type_int)
12166 (insert_type_address_space, pop_type, pop_type_int)
12167 (pop_typelist, pop_type_stack, append_type_stack)
12168 (push_type_stack, get_type_stack, push_typelist)
12169 (follow_type_instance_flags, follow_types): Don't declare.
12170 * parse.c (type_stack): Remove global.
12171 (parse_exp_in_context): Update.
12172 (insert_into_type_stack, insert_type, push_type, push_type_int)
12173 (insert_type_address_space, pop_type, pop_type_int)
12174 (pop_typelist, pop_type_stack, append_type_stack)
12175 (push_type_stack, get_type_stack, push_typelist)
12176 (follow_type_instance_flags, follow_types): Remove (moved to
12177 type-stack.c).
12178 * f-exp.y (type_stack): New global.
12179 Update rules.
12180 (push_kind_type, f_parse): Update.
12181 * d-exp.y (type_stack): New global.
12182 Update rules.
12183 (d_parse): Update.
12184 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12185 Update rules.
12186 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12187 (HFILES_NO_SRCDIR): Add type-stack.h.
12188
2a612529
TT
121892019-04-04 Tom Tromey <tom@tromey.com>
12190
12191 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12192 (rust_parser::convert_ast_to_expression, rust_parse)
12193 (rust_lex_test_completion, rust_lex_tests): Update.
12194 * parser-defs.h (struct expr_completion_state): New.
12195 (struct parser_state) <parser_state>: Add completion parameter.
12196 <mark_struct_expression, mark_completion_tag>: New methods.
12197 <parse_completion, m_completion_state>: New members.
12198 (prefixify_expression, null_post_parser): Update.
12199 (mark_struct_expression, mark_completion_tag): Don't declare.
12200 * parse.c (parse_completion, expout_last_struct)
12201 (expout_tag_completion_type, expout_completion_name): Remove
12202 globals.
12203 (parser_state::mark_struct_expression)
12204 (parser_state::mark_completion_tag): Now methods.
12205 (prefixify_expression): Add last_struct parameter.
12206 (prefixify_subexp): Likewise.
12207 (parse_exp_1): Update.
12208 (parse_exp_in_context): Add cstate parameter. Update.
12209 (parse_expression_for_completion): Create an
12210 expr_completion_state.
12211 (null_post_parser): Add "completion" parameter.
12212 * p-exp.y: Update rules.
12213 (yylex): Update.
12214 * language.h (struct language_defn) <la_post_parser>: Add
12215 "completing" parameter.
12216 * go-exp.y: Update rules.
12217 (lex_one_token): Update.
12218 * expression.h (parse_completion): Don't declare.
12219 * d-exp.y: Update rules.
12220 (lex_one_token): Update rules.
12221 * c-exp.y: Update rules.
12222 (lex_one_token): Update.
12223 * ada-lang.c (resolve): Add "parse_completion" parameter.
12224 (resolve_subexp): Likewise.
12225 (ada_resolve_function): Likewise.
12226
43476f0b
TT
122272019-04-04 Tom Tromey <tom@tromey.com>
12228
12229 * parser-defs.h (struct parser_state) <start_arglist,
12230 end_arglist>: New methods.
12231 <arglist_len, m_funcall_chain>: New members.
12232 (arglist_len, start_arglist, end_arglist): Don't declare.
12233 * parse.c (arglist_len, funcall_chain): Remove global.
12234 (start_arglist, end_arglist): Remove functions.
12235 (parse_exp_in_context): Update.
12236 * p-exp.y: Update rules.
12237 * m2-exp.y: Update rules.
12238 * go-exp.y: Update rules.
12239 * f-exp.y: Update rules.
12240 * d-exp.y: Update rules.
12241 * c-exp.y: Update rules.
12242
5776fca3
TT
122432019-04-04 Tom Tromey <tom@tromey.com>
12244
12245 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12246 lex_operator, push_back>: New methods.
12247 Update all rules.
12248 (rust_parser::lex_hex, lex_escape): Rename and update.
12249 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12250 (rust_parser::lex_operator): Rename and update.
12251 (rust_parser::lex_number, rustyylex, rustyyerror)
12252 (rust_lex_test_init, rust_lex_test_sequence)
12253 (rust_lex_test_push_back, rust_lex_tests): Update.
12254 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12255 parameter.
12256 <lexptr, prev_lexptr>: New members.
12257 (lexptr, prev_lexptr): Don't declare.
12258 * parse.c (lexptr, prev_lexptr): Remove globals.
12259 (parse_exp_in_context): Update.
12260 * p-exp.y (yylex, yyerror): Update.
12261 * m2-exp.y (parse_number, yylex, yyerror): Update.
12262 * go-exp.y (lex_one_token, yyerror): Update.
12263 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12264 * d-exp.y (lex_one_token, yyerror): Update.
12265 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12266 (lex_one_token, yyerror): Update.
12267 * ada-lex.l (YY_INPUT): Update.
12268 (rewind_to_char): Update.
12269 * ada-exp.y (yyerror): Update.
12270
8621b685
TT
122712019-04-04 Tom Tromey <tom@tromey.com>
12272
12273 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12274 * parser-defs.h (struct parser_state) <parser_state>: Add new
12275 parameter.
12276 <comma_terminates>: New member.
12277 (comma_terminates): Don't declare global.
12278 * parse.c (comma_terminates): Remove global.
12279 (parse_exp_in_context): Update.
12280 * p-exp.y (yylex): Update.
12281 * m2-exp.y (yylex): Update.
12282 * go-exp.y (lex_one_token): Update.
12283 * f-exp.y (yylex): Update.
12284 * d-exp.y (lex_one_token): Update.
12285 * c-exp.y (lex_one_token): Update.
12286 * ada-lex.l: Update.
12287
28aaf3fd
TT
122882019-04-04 Tom Tromey <tom@tromey.com>
12289
12290 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12291 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12292 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12293 * parser-defs.h (paren_depth): Don't declare.
12294 * parse.c (paren_depth): Remove global.
12295 (parse_exp_in_context): Update.
12296 * p-exp.y (paren_depth): New global.
12297 (pascal_parse): Initialize it.
12298 * m2-exp.y (paren_depth): New global.
12299 (m2_parse): Initialize it.
12300 * go-exp.y (paren_depth): New global.
12301 (go_parse): Initialize it.
12302 * f-exp.y (paren_depth): New global.
12303 (f_parse): Initialize it.
12304 * d-exp.y (paren_depth): New global.
12305 (d_parse): Initialize it.
12306 * c-exp.y (paren_depth): New global.
12307 (c_parse): Initialize it.
12308 * ada-lex.l (paren_depth): New global.
12309 (lexer_init): Initialize it.
12310
1e58a4a4
TT
123112019-04-04 Tom Tromey <tom@tromey.com>
12312
12313 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12314 (rust_parser::convert_ast_to_type)
12315 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12316 * parser-defs.h (struct parser_state) <parser_state>: Add
12317 parameters. Initialize new members.
12318 <expression_context_block, expression_context_pc>: New members.
12319 * parse.c (expression_context_block, expression_context_pc):
12320 Remove globals.
12321 (parse_exp_in_context): Update.
12322 * p-exp.y: Update all rules.
12323 (yylex): Update.
12324 * m2-exp.y: Update all rules.
12325 (yylex): Update.
12326 * go-exp.y (yylex): Update.
12327 * f-exp.y (yylex): Update.
12328 * d-exp.y: Update all rules.
12329 (yylex): Update.
12330 * c-exp.y: Update all rules.
12331 (lex_one_token, classify_name, yylex, c_parse): Update.
12332 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12333
37eedb39
TT
123342019-04-04 Tom Tromey <tom@tromey.com>
12335
12336 * gdbarch.h, gdbarch.c: Rebuild.
12337 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12338 * stap-probe.h:
12339 (struct stap_parse_info): Replace "parser_state" with
12340 "expr_builder".
12341 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12342 (parser_state): New class.
12343 * parse.c (expr_builder): Rename.
12344 (expr_builder::release): Rename.
12345 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12346 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12347 (write_exp_elt_longcst, write_exp_elt_floatcst)
12348 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12349 (write_exp_string_vector, write_exp_bitstring)
12350 (write_exp_msymbol, mark_struct_expression)
12351 (write_dollar_variable)
12352 (insert_type_address_space, increase_expout_size): Replace
12353 "parser_state" with "expr_builder".
12354 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12355 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12356 "parser_state" with "expr_builder".
12357
73923d7e
TT
123582019-04-04 Tom Tromey <tom@tromey.com>
12359
12360 * rust-exp.y: Replace "parse_language" with method call.
12361 * p-exp.y:
12362 (yylex): Replace "parse_language" with method call.
12363 * m2-exp.y:
12364 (yylex): Replace "parse_language" with method call.
12365 * go-exp.y (classify_name): Replace "parse_language" with method
12366 call.
12367 * f-exp.y (yylex): Replace "parse_language" with method call.
12368 * d-exp.y (lex_one_token): Replace "parse_language" with method
12369 call.
12370 * c-exp.y:
12371 (lex_one_token, classify_name, yylex): Replace "parse_language"
12372 with method call.
12373 * ada-exp.y (find_primitive_type, type_char)
12374 (type_system_address): Replace "parse_language" with method call.
12375
fa9f5be6
TT
123762019-04-04 Tom Tromey <tom@tromey.com>
12377
12378 * rust-exp.y: Replace "parse_gdbarch" with method call.
12379 * parse.c (write_dollar_variable, insert_type_address_space):
12380 Replace "parse_gdbarch" with method call.
12381 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12382 call.
12383 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12384 call.
12385 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12386 "parse_gdbarch" with method call.
12387 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12388 with method call.
12389 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12390 "parse_gdbarch" with method call.
12391 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12392 "parse_gdbarch" with method call.
12393 * c-exp.y (parse_type, parse_number, classify_name): Replace
12394 "parse_gdbarch" with method call.
12395 * ada-lex.l: Replace "parse_gdbarch" with method call.
12396 * ada-exp.y (parse_type, find_primitive_type, type_char)
12397 (type_system_address): Replace "parse_gdbarch" with method call.
12398
1201a264
TT
123992019-04-04 Tom Tromey <tom@tromey.com>
12400
12401 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12402 * stap-probe.c (stap_parse_argument): Update.
12403 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12404 initial_size parameter.
12405 * rust-exp.y (rust_lex_tests): Update.
12406 * parse.c (parser_state): Update.
12407 (parse_exp_in_context): Update.
12408 * parser-defs.h (struct parser_state) <parser_state>: Remove
12409 "initial_size" parameter.
12410
e3980ce2
TT
124112019-04-04 Tom Tromey <tom@tromey.com>
12412
12413 * parser-defs.h (increase_expout_size): Don't declare.
12414 * parse.c (increase_expout_size): Now static.
12415
e9f8e3f1
TS
124162019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12417
12418 * gnu-nat.c (gnu_nat_target::wait): Fix
12419 target_waitstatus_to_string call.
12420
d7df6549
AB
124212019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12422
12423 * eval.c (evaluate_subexp_standard): Handle internal functions
12424 during Fortran function call handling.
12425
8bdc1658
AB
124262019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12427
12428 * NEWS: Mention new internal functions.
12429 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12430 (read_base_type): Use dwarf2_init_complex_target_type.
12431 * value.c (creal_internal_fn): New function.
12432 (cimag_internal_fn): New function.
12433 (_initialize_values): Register new internal functions.
12434
c29705b7
PW
124352019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12436
12437 * infrun.c (stop_all_threads): If debug_infrun, always
12438 trace the wait status after wait_one, using
12439 target_waitstatus_to_string and target_pid_to_str.
12440 (handle_inferior_event): Replace various trace of
12441 wait status kind by a single trace.
12442 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12443 wait status kind image by target_waitstatus_to_string.
12444 * target/waitstatus.c (target_waitstatus_to_string): Fix
12445 obsolete comment.
12446
05caa1d2
TT
124472019-04-01 Tom Tromey <tromey@adacore.com>
12448
12449 PR symtab/23331:
12450 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12451
9d1447e0
SDJ
124522019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12453 Pedro Alves <palves@redhat.com>
12454
12455 * top.c (quit_force): Call 'finalize_values'.
12456 * value.c (finalize_values): New function.
12457 * value.h (finalize_values): Declare.
12458
7734102d
EZ
124592019-03-30 Eli Zaretskii <eliz@gnu.org>
12460
12461 * NEWS: Announce $_gdb_major and $_gdb_minor.
12462
12463 * top.c (init_gdb_version_vars): New function.
12464 (gdb_init): Call init_gdb_version_vars.
12465
188e1fa9
TT
124662019-03-29 Tom Tromey <tromey@adacore.com>
12467
12468 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12469 help text. Remove dead code.
12470
2880242d
KS
124712019-03-29 Keith Seitz <keiths@redhat.com>
12472
12473 From Siddhesh Poyarekar:
12474 * f-lang.h (f77_get_upperbound): Return LONGEST.
12475 (f77_get_lowerbound): Likewise.
12476 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12477 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12478 print them.
12479 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12480 plongest to format print it.
12481 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12482 (f77_get_upperbound): Likewise.
12483 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12484 LOWER_BOUND to LONGEST.
12485 (f77_create_arrayprint_offset_tbl): Likewise.
12486
cc1defb1
KS
124872019-03-29 Keith Seitz <keiths@redhat.com>
12488
12489 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12490 %s/pulongest for TYPE_LENGTH instead of %d in format
12491 strings.
12492 * ada-typerint.c (ada_print_type): Likewise.
12493 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12494 * compile/compile-c-support.c (generate_register_struct): Likewise.
12495 * gdbtypes.c (recursive_dump_type): Likewise.
12496 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12497 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12498 instead of %d in format strings.
12499 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12500 to std::min to ULONGEST.
12501 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12502 instead of %d in format strings.
12503 * tracepoint.c (info_scope_command): Likewise.
12504 * typeprint.c (print_offset_data::update)
12505 (print_offset_data::finish): Likewise.
12506 * xtensa-tdep.c (xtensa_store_return_value)
12507 (xtensa_push_dummy_call): Likewise.
12508
e432ccf1
JT
125092019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12510
12511 * windows-nat.c (display_selector): Fixed format specifications
12512 for 64-bit Cygwin.
12513
65d2b333
PW
125142019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12515
12516 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12517
f489207e
SL
125182019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12519
12520 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12521 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12522 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12523 (nios2_linux_init_abi): Install it.
12524
bffa1015
AH
125252019-03-28 Alan Hayward <alan.hayward@arm.com>
12526
12527 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12528
fc96163a
AH
125292019-03-28 Alan Hayward <alan.hayward@arm.com>
12530
12531 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12532
20dc7e9b
PW
125332019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12534 Tom Tromey <tromey@adacore.com>
12535
12536 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12537
7f5331a8
JB
125382019-03-26 Joel Brobecker <brobecker@adacore.com>
12539
12540 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12541 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12542 method to compute the bounds of range types. Also print "[evaluated]"
12543 if the bounds' values come from a dynamic evaluation.
12544
18c77628
AB
125452019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12546
12547 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12548 whitespace when pretty printing is on.
12549
53c973f2
AH
125502019-03-26 Alan Hayward <alan.hayward@arm.com>
12551
e79be6e5 12552 * ppc-linux-nat.c: Add include.
53c973f2 12553
d851aa71
AH
125542019-03-26 Alan Hayward <alan.hayward@arm.com>
12555
e79be6e5 12556 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12557
2fe7bab7
AH
125582019-03-26 Alan Hayward <alan.hayward@arm.com>
12559
e79be6e5 12560 * arm-linux-nat.c: Add include.
2fe7bab7 12561
068ef30e
SM
125622019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12563
12564 * source-cache.c (source_cache::get_source_lines): Re-read
12565 fullname after calling open_source_file.
12566
81a24d04
JB
125672019-03-25 John Baldwin <jhb@FreeBSD.org>
12568
12569 * NEWS: Mention TLS support for FreeBSD.
12570
79e7ae11
TT
125712019-03-25 Tom Tromey <tromey@adacore.com>
12572
12573 * minsyms.c (BUNCH_SIZE): Update comment.
12574 (~minimal_symbol_reader): Remove old comment.
12575 (compact_minimal_symbols): Update comment.
12576 (minimal_symbol_reader::install): Remove old comment. Update
12577 other comments.
12578
d45963c2
AH
125792019-03-25 Alan Hayward <alan.hayward@arm.com>
12580
12581 * s390-linux-nat.c: Add include.
12582
0f83012e
AH
125832019-03-25 Alan Hayward <alan.hayward@arm.com>
12584
12585 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12586 Call linux_get_hwcap.
12587 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12588 Likewise.
12589 (aarch64_linux_get_hwcap): Remove function.
12590 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12591 declaration.
12592 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12593 linux_get_hwcap.
12594 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12595 * linux-tdep.c (linux_get_hwcap): Add function.
12596 (linux_get_hwcap2): Likewise.
12597 * linux-tdep.h (linux_get_hwcap): Add declaration.
12598 (linux_get_hwcap2): Likewise.
12599 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12600 (ppc_linux_get_hwcap2): Likewise.
12601 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12602 linux_get_hwcap.
12603 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12604 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12605 (ppc_linux_nat_target::read_description): Likewise.
12606 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12607 * s390-linux-nat.c: Likewise.
12608 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12609
6640a367
TT
126102019-03-24 Tom Tromey <tom@tromey.com>
12611
12612 * ada-lang.c (standard_lookup): Simplify initialization.
12613 (ada_lookup_symbol_nonlocal): Simplify return.
12614 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12615 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12616 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12617 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12618 initialization.
12619 * solib.c (solib_global_lookup): Simplify.
12620 * symtab.c (null_block_symbol): Remove.
12621 (symbol_cache_lookup): Simplify returns.
12622 (lookup_language_this): Simplify returns.
12623 (lookup_symbol_aux): Simplify return.
12624 (lookup_local_symbol): Simplify returns.
12625 (lookup_global_symbol_from_objfile): Simplify return.
12626 (lookup_symbol_in_objfile_symtabs)
12627 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12628 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12629 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12630 * cp-namespace.c (cp_lookup_bare_symbol)
12631 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12632 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12633 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12634 (cp_lookup_symbol_via_imports): Simplify initialization.
12635 (find_symbol_in_baseclass): Likewise.
12636 * symtab.h (null_block_symbol): Remove.
12637 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12638 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12639 (d_lookup_symbol_module): Likewise.
12640 (find_symbol_in_baseclass): Simplify initialization.
12641
a930ebcd
TT
126422019-03-24 Tom Tromey <tom@tromey.com>
12643
12644 * expression.h: Don't include symtab.h.
12645 (struct block): Forward declare.
12646
582942f4
TT
126472019-03-24 Tom Tromey <tom@tromey.com>
12648
12649 * c-exp.y (typebase): Remove casts.
12650 * gdbtypes.c (lookup_unsigned_typename, )
12651 (lookup_signed_typename): Remove cast.
12652 * eval.c (parse_to_comma_and_eval): Remove cast.
12653 * parse.c (write_dollar_variable): Remove cast.
12654 * block.h (struct block) <superblock>: Now const.
12655 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12656 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12657 (map_block): Make "block" const.
12658 * symfile.h (struct quick_symbol_functions)
12659 <map_matching_symbols>: Constify block argument to "callback".
12660 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12661 const.
12662 (find_pc_sect_compunit_symtab): Make "b" const.
12663 (find_symbol_at_address): Likewise.
12664 (search_symbols): Likewise.
12665 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12666 (dw2_debug_names_lookup_symbol): Likewise.
12667 (dw2_map_matching_symbols): Update.
12668 * p-valprint.c (pascal_val_print): Remove "block".
12669 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12670 (aux_add_nonlocal_symbols): Make "block" const.
12671 (resolve_subexp): Remove cast.
12672 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12673 const.
12674 (iterate_over_file_blocks): Likewise.
12675 * f-exp.y (%union) <bval>: Remove.
12676 * coffread.c (patch_opaque_types): Make "b" const.
12677 * spu-tdep.c (spu_catch_start): Make "block" const.
12678 * c-valprint.c (print_unpacked_pointer): Remove "block".
12679 * symmisc.c (dump_symtab_1): Make "b" const.
12680 (block_depth): Make "block" const.
12681 * d-exp.y (%union) <bval>: Remove.
12682 * cp-support.h (cp_lookup_rtti_type): Update.
12683 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12684 * psymtab.c (psym_lookup_symbol): Make "block" const.
12685 (maintenance_check_psymtabs): Make "b" const.
12686 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12687 (enumerate_locals, enumerate_args): Update.
12688 * python/py-symtab.c (stpy_global_block): Make "block" const.
12689 (stpy_static_block): Likewise.
12690 * inline-frame.c (block_starting_point_at): Make "new_block"
12691 const.
12692 * block.c (find_block_in_blockvector): Make return type const.
12693 (blockvector_for_pc_sect): Make "b" const.
12694 (find_block_in_blockvector): Make "b" const.
12695
7ad417dd
TT
126962019-03-23 Tom Tromey <tom@tromey.com>
12697
12698 * varobj.c (varobj_create): Update.
12699 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12700 * printcmd.c (display_command, do_one_display): Don't reset
12701 innermost_block.
12702 * parser-defs.h (enum innermost_block_tracker_type): Move to
12703 expression.h.
12704 (innermost_block): Update comment.
12705 * parse.c (parse_exp_1): Add tracker_types parameter.
12706 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12707 tracker_types parameter. Reset innermost_block.
12708 (parse_exp_in_context): Remove.
12709 (parse_expression_for_completion): Update.
12710 * objfiles.c (~objfile): Don't reset expression_context_block or
12711 innermost_block.
12712 * expression.h (enum innermost_block_tracker_type): Move from
12713 parser-defs.h.
12714 (parse_exp_1): Add tracker_types parameter.
12715 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12716 reset innermost_block.
12717
b366c208
TT
127182019-03-23 Tom Tromey <tom@tromey.com>
12719
12720 * objfiles.h: Include bcache.h.
12721
9bb9b2f9
TT
127222019-03-23 Tom Tromey <tom@tromey.com>
12723
12724 * linespec.c (get_current_search_block): Use
12725 scoped_restore_current_language.
12726 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12727
59c28372
AH
127282019-03-22 Alan Hayward <alan.hayward@arm.com>
12729 Jiong Wang <jiong.wang@arm.com>
12730
12731 * aarch64-linux-tdep.c
12732 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12733 section.
12734 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12735
17e116a7
AH
127362019-03-22 Alan Hayward <alan.hayward@arm.com>
12737 Jiong Wang <jiong.wang@arm.com>
12738
12739 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12740 instructions.
12741 (aarch64_analyze_prologue_test): Add PACIASP test.
12742 (aarch64_prologue_prev_register): Unmask PC value.
12743
11e1b75f
AH
127442019-03-22 Alan Hayward <alan.hayward@arm.com>
12745 Jiong Wang <jiong.wang@arm.com>
12746
12747 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12748 (aarch64_dwarf2_prev_register): Unmask PC value.
12749 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12750 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12751 DW_CFA_AARCH64_negate_ra_state.
12752 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12753
34dcc7cf
AH
127542019-03-22 Alan Hayward <alan.hayward@arm.com>
12755 Jiong Wang <jiong.wang@arm.com>
12756
12757 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12758 registers.
12759 (aarch64_pseudo_register_name): Likewise.
12760 (aarch64_pseudo_register_type): Likewise.
12761 (aarch64_pseudo_register_reggroup_p): Likewise.
12762 (aarch64_gdbarch_init): Add pauth registers.
12763 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12764 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12765 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12766 (struct gdbarch_tdep): Add regnum for ra_state.
12767
1ef53e6b
AH
127682019-03-22 Alan Hayward <alan.hayward@arm.com>
12769 Jiong Wang <jiong.wang@arm.com>
12770
12771 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12772
76bed0fd
AH
127732019-03-22 Alan Hayward <alan.hayward@arm.com>
12774 Jiong Wang <jiong.wang@arm.com>
12775
12776 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12777 function.
12778 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12779 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12780 (aarch64_gdbarch_init): Add puth registers.
12781 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12782 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12783 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12784
ee4fbcfa
AH
127852019-03-22 Alan Hayward <alan.hayward@arm.com>
12786 Jiong Wang <jiong.wang@arm.com>
12787
12788 * aarch64-linux-nat.c
12789 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12790 * aarch64-linux-tdep.c
12791 (aarch64_linux_core_read_description): Likewise.
12792 (aarch64_linux_get_hwcap): New function.
12793 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12794 (aarch64_linux_get_hwcap): New declaration.
12795
6dc0ebde
AH
127962019-03-22 Alan Hayward <alan.hayward@arm.com>
12797 Jiong Wang <jiong.wang@arm.com>
12798
12799 * aarch64-linux-nat.c
12800 (aarch64_linux_nat_target::read_description): Add pauth param.
12801 * aarch64-linux-tdep.c
12802 (aarch64_linux_core_read_description): Likewise.
12803 * aarch64-tdep.c (struct target_desc): Add in pauth.
12804 (aarch64_read_description): Add pauth param.
12805 (aarch64_gdbarch_init): Likewise.
12806 * aarch64-tdep.h (aarch64_read_description): Likewise.
12807 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12808 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12809 * features/Makefile: Add new files.
12810 * features/aarch64-pauth.c: New file.
12811 * features/aarch64-pauth.xml: New file.
12812
595915c1
TT
128132019-03-20 Tom Tromey <tromey@adacore.com>
12814
12815 * infrun.c (handle_inferior_event): Rename from
12816 handle_inferior_event_1. Create a scoped_value_mark.
12817 (handle_inferior_event): Remove.
12818
4c7d57e7
TT
128192019-03-19 Tom Tromey <tromey@adacore.com>
12820
12821 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12822 * infrun.h (print_stop_event): Add "displays" parameter.
12823 * infrun.c (print_stop_event): Add "displays" parameter.
12824
cb246234
PA
128252019-03-19 Pedro Alves <palves@redhat.com>
12826
12827 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12828 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12829 to -1. Fix TABs vs spaces.
12830 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12831 * tui/tui-out.h (tui_ui_out) Add intro comments.
12832 <m_line, m_start_of_line>: In-class initialize, and add describing
12833 comment.
12834
3a0e45b2
AH
128352019-03-18 Alan Hayward <alan.hayward@arm.com>
12836
12837 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12838 variable names.
12839 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12840
5371b850
PA
128412019-03-18 Pedro Alves <palves@redhat.com>
12842 Eli Zaretskii <eliz@gnu.org>
12843
12844 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12845 m_line and m_start_of_line.
12846
b17c4cd0
EZ
128472019-03-18 Eli Zaretskii <eliz@gnu.org>
12848
12849 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12850 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12851 it returns a newline. This fixes a regression in TU mode, whereby
12852 the next line is output on the same screen line as the user input.
12853
4bd56d18
TT
128542019-03-18 Tom Tromey <tromey@adacore.com>
12855
12856 * minsyms.c (minimal_symbol_reader::install): Remove call to
12857 obstack_blank.
12858
55c10aca
PA
128592019-03-18 Pedro Alves <palves@redhat.com>
12860
12861 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12862 New globals.
12863 (apply_style): New, factored out from ...
12864 (apply_ansi_escape): ... this. Handle reverse video mode.
12865 (tui_set_reverse_mode): New function.
12866 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12867 * tui/tui-winsource.c (tui_show_source_line): Use
12868 tui_set_reverse_mode instead of setting A_STANDOUT.
12869 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12870 New setter methods.
12871
647bb750
HD
128722019-03-18 Hannes Domani <ssbssa@yahoo.de>
12873
12874 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12875 Handle tabs.
12876
bff8c71f
TT
128772019-03-18 Tom Tromey <tromey@adacore.com>
12878
12879 * ada-lang.c (empty_array): Add "high" parameter.
12880 (ada_evaluate_subexp): Update.
12881
58785d98
ST
128822019-03-17 Sergei Trofimovich <siarheit@google.com>
12883
12884 * unittests/string_view-selftests.c: Define
12885 _initialize_string_view_selftests unconditionally.
12886
d4cbef22
ВМ
128872019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12888
12889 PR gdb/24350
12890 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12891
fce4c071
ВМ
128922019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12893
12894 PR gdb/24351
12895 * windows-nat.c (display_selector): Fix format specifiers.
12896
f7f0a123
EZ
128972019-03-17 Eli Zaretskii <eliz@gnu.org>
12898
12899 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12900 tui_refill_source_window instead of tui_refresh_win, to update the
12901 current execution line. This fixes redisplay of the current line
12902 when stepping through the code with "next" or "step".
12903
ab42892f
EZ
129042019-03-16 Eli Zaretskii <eliz@gnu.org>
12905
12906 * source-cache.c (source_cache::get_source_lines): Call
12907 find_source_lines to initialize s->nlines. This fixes vertical
12908 scrolling of TUI source window when the DOWN arrow is pressed.
12909
8d8c087f
PW
129102019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12911
12912 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12913 linux-thread-db.c (_initialize_thread_db): Likewise.
12914
798e1c30
EZ
129152019-03-16 Eli Zaretskii <eliz@gnu.org>
12916
12917 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12918 wclrtoeol in tui_show_source_line". This reverts changes made in
12919 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12920
eefba3da
TT
129212019-03-15 Tom Tromey <tom@tromey.com>
12922
12923 * symtab.h (struct minimal_symbol): Derive from
12924 general_symbol_info.
12925 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12926 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12927 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12928 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12929 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12930 (MSYMBOL_SEARCH_NAME): Update.
12931 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12932 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12933 * minsyms.c (minimal_symbol_reader::record_full): Update.
12934
0de2420c
TT
129352019-03-15 Tom Tromey <tom@tromey.com>
12936
12937 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12938
042d75e4
TT
129392019-03-15 Tom Tromey <tom@tromey.com>
12940
12941 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12942 unique_xmalloc_ptr.
12943 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12944 Update.
12945 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12946 (build_minimal_symbol_hash_tables)
12947 (minimal_symbol_reader::install): Update.
12948
db92718b
TT
129492019-03-15 Tom Tromey <tom@tromey.com>
12950
12951 * symtab.c (create_demangled_names_hash): Update.
12952 (symbol_set_names): Update.
12953 * objfiles.h (struct objfile_per_bfd_storage)
12954 <demangled_names_hash>: Now an htab_up.
12955 * objfiles.c (objfile_per_bfd_storage): Simplify.
12956
d6797f46
TT
129572019-03-15 Tom Tromey <tom@tromey.com>
12958
12959 * objfiles.h (struct objfile_per_bfd_storage): Declare
12960 destructor.
12961 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12962 New.
12963 (get_objfile_bfd_data): Use new. Don't initialize
12964 language_of_main.
12965 (free_objfile_per_bfd_storage): Remove.
12966 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12967
741d7538
TT
129682019-03-15 Tom Tromey <tom@tromey.com>
12969
12970 * symfile.c (reread_symbols): Update.
12971 * objfiles.c (objfile::objfile): Update.
12972 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12973 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12974 comment.
12975 (minimal_symbol_reader::install): Update.
12976 (terminate_minimal_symbol_table): Remove.
12977 * jit.c (jit_object_close_impl): Update.
12978
788c80d1
TT
129792019-03-15 Tom Tromey <tom@tromey.com>
12980
12981 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12982 initializations.
12983
1b7a07cb
TT
129842019-03-15 Tom Tromey <tom@tromey.com>
12985
12986 * objfiles.h (struct objfile_per_bfd_storage)
12987 <demangled_hash_languages>: Now a bitset.
12988 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12989 (lookup_minimal_symbol): Update.
12990
3db066bc
TT
129912019-03-15 Tom Tromey <tom@tromey.com>
12992
12993 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12994 Don't return the symbol.
12995 * coffread.c (record_minimal_symbol): Use record_full.
12996
3fff2c37
EZ
129972019-03-14 Eli Zaretskii <eliz@gnu.org>
12998
12999 The MS-Windows port of ncurses fails to switch to a color pair if
13000 one or both of the colors are the implicit default colors. This
13001 change records the default colors when TUI is initialized, and
13002 then specifies them explicitly when a color pair uses the default
13003 colors. This allows color styling in TUI mode on MS-Windows.
13004
13005 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13006 ncurses_norm_attr.
13007 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13008 colors in ncurses_norm_attr.
13009 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13010 "none", replace it with the default color recorded in
13011 ncurses_norm_attr.
13012
3b336828
TT
130132019-03-14 Tom Tromey <tromey@adacore.com>
13014
13015 * source-cache.h (class source_cache) <get_source_lines>: Return
13016 std::string.
13017 * source-cache.c (source_cache::extract_lines): Handle case where
13018 first_pos==npos. Return std::string.
13019 (source_cache::get_source_lines): Update.
13020
d085f989
TT
130212019-03-14 Tom Tromey <tromey@adacore.com>
13022
13023 * NEWS: Add item for "style sources" commands.
13024 * source-cache.c (source_cache::get_source_lines): Check
13025 source_styling.
13026 * cli/cli-style.c (source_styling): New global.
13027 (_initialize_cli_style): Add "style sources" commands.
13028 (show_style_sources): New function.
13029 * cli/cli-style.h (source_styling): Declare.
13030
6f11e682
TT
130312019-03-14 Pedro Alves <palves@redhat.com>
13032 Tom Tromey <tromey@adacore.com>
13033
13034 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13035 * tui/tui-winsource.c (tui_refill_source_window): New function,
13036 from...
13037 (tui_horizontal_source_scroll): ... here. Move some logic.
13038 * cli/cli-style.c (set_style_enabled): Notify new observable.
13039 * tui/tui-hooks.c (tui_redisplay_source): New function.
13040 (tui_attach_detach_observers): Attach or detach
13041 tui_redisplay_source.
13042 * observable.h (source_styling_changed): New observable.
13043 * observable.c: Define source_styling_changed observable.
13044
a068643d
TT
130452019-03-13 Tom Tromey <tromey@adacore.com>
13046
13047 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13048 (i386_gnu_nat_target::store_registers): Update.
13049 * target-debug.h (target_debug_print_std_string): New macro.
13050 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13051 * windows-tdep.c (display_one_tib): Update.
13052 * tui/tui-stack.c (tui_make_status_line): Update.
13053 * top.c (print_inferior_quit_action): Update.
13054 * thread.c (thr_try_catch_cmd): Update.
13055 (add_thread_with_info): Update.
13056 (thread_target_id_str): Update.
13057 (thr_try_catch_cmd): Update.
13058 (thread_command): Update.
13059 (thread_find_command): Update.
13060 * record-btrace.c (record_btrace_target::info_record)
13061 (record_btrace_resume_thread, record_btrace_target::resume)
13062 (record_btrace_cancel_resume, record_btrace_step_thread)
13063 (record_btrace_target::wait, record_btrace_target::wait)
13064 (record_btrace_target::wait, record_btrace_target::stop): Update.
13065 * progspace.c (print_program_space): Update.
13066 * process-stratum-target.c
13067 (process_stratum_target::thread_address_space): Update.
13068 * linux-fork.c (linux_fork_mourn_inferior)
13069 (detach_checkpoint_command, info_checkpoints_command)
13070 (linux_fork_context): Update.
13071 (linux_fork_detach): Update.
13072 (class scoped_switch_fork_info): Update.
13073 (delete_checkpoint_command): Update.
13074 * infrun.c (follow_fork_inferior): Update.
13075 (follow_fork_inferior): Update.
13076 (proceed_after_vfork_done): Update.
13077 (handle_vfork_child_exec_or_exit): Update.
13078 (follow_exec): Update.
13079 (displaced_step_prepare_throw): Update.
13080 (displaced_step_restore): Update.
13081 (start_step_over): Update.
13082 (resume_1): Update.
13083 (clear_proceed_status_thread): Update.
13084 (proceed): Update.
13085 (print_target_wait_results): Update.
13086 (do_target_wait): Update.
13087 (context_switch): Update.
13088 (stop_all_threads): Update.
13089 (restart_threads): Update.
13090 (finish_step_over): Update.
13091 (handle_signal_stop): Update.
13092 (switch_back_to_stepped_thread): Update.
13093 (keep_going_pass_signal): Update.
13094 (print_exited_reason): Update.
13095 (normal_stop): Update.
13096 * inferior.c (inferior_pid_to_str): Change return type.
13097 (print_selected_inferior): Update.
13098 (add_inferior): Update.
13099 (detach_inferior): Update.
13100 * dummy-frame.c (fprint_dummy_frames): Update.
13101 * dcache.c (dcache_info_1): Update.
13102 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13103 (btrace_fetch, btrace_clear): Update.
13104 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13105 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13106 type.
13107 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13108 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13109 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13110 * gdbarch.c, gdbarch.h: Rebuild.
13111 * gdbarch.sh (core_pid_to_str): Change return type.
13112 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13113 return type.
13114 (windows_nat_target::pid_to_str): Change return type.
13115 (windows_delete_thread): Update.
13116 (windows_nat_target::attach): Update.
13117 (windows_nat_target::files_info): Update.
13118 * target-delegates.c: Rebuild.
13119 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13120 return type.
13121 (sol_thread_target::pid_to_str): Change return type.
13122 * remote.c (class remote_target) <pid_to_str>: Change return
13123 type.
13124 (remote_target::pid_to_str): Change return type.
13125 (extended_remote_target::attach, remote_target::remote_stop_ns)
13126 (remote_target::remote_notif_remove_queued_reply)
13127 (remote_target::push_stop_reply, remote_target::disable_btrace):
13128 Update.
13129 (extended_remote_target::attach): Update.
13130 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13131 type.
13132 (gdbsim_target::pid_to_str): Change return type.
13133 * ravenscar-thread.c (struct ravenscar_thread_target)
13134 <pid_to_str>: Change return type.
13135 (ravenscar_thread_target::pid_to_str): Change return type.
13136 * procfs.c (class procfs_target) <pid_to_str>: Change return
13137 type.
13138 (procfs_target::pid_to_str): Change return type.
13139 (procfs_target::attach): Update.
13140 (procfs_target::detach): Update.
13141 (procfs_target::fetch_registers): Update.
13142 (procfs_target::store_registers): Update.
13143 (procfs_target::wait): Update.
13144 (procfs_target::files_info): Update.
13145 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13146 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13147 return type.
13148 (nto_procfs_target::pid_to_str): Change return type.
13149 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13150 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13151 return type.
13152 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13153 (exit_lwp): Update.
13154 (attach_proc_task_lwp_callback, get_detach_signal)
13155 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13156 (linux_nat_target::resume, wait_lwp, stop_callback)
13157 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13158 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13159 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13160 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13161 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13162 type.
13163 (inf_ptrace_target::attach): Update.
13164 (inf_ptrace_target::files_info): Update.
13165 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13166 type.
13167 (go32_nat_target::pid_to_str): Change return type.
13168 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13169 (gnu_nat_target::wait): Update.
13170 (gnu_nat_target::wait): Update.
13171 (gnu_nat_target::resume): Update.
13172 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13173 (fbsd_nat_target::wait): Update.
13174 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13175 type.
13176 (darwin_nat_target::attach): Update.
13177 * corelow.c (class core_target) <pid_to_str>: Change return type.
13178 (core_target::pid_to_str): Change return type.
13179 * target.c (normal_pid_to_str): Change return type.
13180 (default_pid_to_str): Likewise.
13181 (target_pid_to_str): Change return type.
13182 (target_translate_tls_address): Update.
13183 (target_announce_detach): Update.
13184 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13185 return type.
13186 (bsd_uthread_target::pid_to_str): Change return type.
13187 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13188 type.
13189 (bsd_kvm_target::pid_to_str): Change return type.
13190 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13191 return type.
13192 (aix_thread_target::pid_to_str): Change return type.
13193 * target.h (struct target_ops) <pid_to_str>: Change return type.
13194 (target_pid_to_str, normal_pid_to_str): Likewise.
13195 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13196 type.
13197 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13198 type.
13199 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13200 return type.
13201 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13202 type.
13203 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13204 type.
13205 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13206 return type.
13207
b4be1b06
SM
132082019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13209
13210 * NEWS: Mention that the new default MI version is 3. Mention
13211 changes to the output of commands and events that deal with
13212 multi-location breakpoints.
13213 * breakpoint.c: Include "mi/mi-out.h".
13214 (print_one_breakpoint): Change output syntax if using MI version
13215 >= 3.
13216 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13217 New.
13218 (mi_multi_location_breakpoint_output_fixed): New.
13219 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13220 (mi_cmd_fix_multi_location_breakpoint_output): New.
13221 (mi_multi_location_breakpoint_output_fixed): New.
13222 * mi/mi-cmds.c (mi_cmds): Register command
13223 -fix-multi-location-breakpoint-output.
13224 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13225 interpreter "mi".
13226
8e5e5494
SM
132272019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13228
13229 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13230 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13231 instantiate mi_ui_out based on interpreter name.
13232 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13233 * mi/mi-main.c (mi_load_progress): Likewise.
13234
197df35e
JB
132352019-03-12 John Baldwin <jhb@FreeBSD.org>
13236
13237 * NEWS: Combine separate "New targets" sections for 8.3.
13238
8399425f
JB
132392019-03-12 John Baldwin <jhb@FreeBSD.org>
13240
13241 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13242 (ppcfbsd_init_abi): Install gdbarch
13243 "fetch_tls_load_module_address" and "get_thread_local_address"
13244 methods.
13245
b0f87ed0
JB
132462019-03-12 John Baldwin <jhb@FreeBSD.org>
13247
13248 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13249 (riscv_fbsd_init_abi): Install gdbarch
13250 "fetch_tls_load_module_address" and "get_thread_local_address"
13251 methods.
13252
ce25aa57
JB
132532019-03-12 John Baldwin <jhb@FreeBSD.org>
13254
13255 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13256 (i386fbsd_init_abi): Install gdbarch
13257 "fetch_tls_load_module_address" and "get_thread_local_address"
13258 methods.
13259
f5424cfa
JB
132602019-03-12 John Baldwin <jhb@FreeBSD.org>
13261
13262 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13263 (amd64fbsd_init_abi): Install gdbarch
13264 "fetch_tls_load_module_address" and "get_thread_local_address"
13265 methods.
13266
945f3901
JB
132672019-03-12 John Baldwin <jhb@FreeBSD.org>
13268
13269 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13270 (struct fbsd_pspace_data): New type.
13271 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13272 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13273 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13274 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13275 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13276
ef0bd204
JB
132772019-03-12 John Baldwin <jhb@FreeBSD.org>
13278
13279 * gdbtypes.c (lookup_struct_elt): New function.
13280 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13281 * gdbtypes.h (struct struct_elt): New type.
13282 (lookup_struct_elt): New prototype.
13283
36c53a02
JB
132842019-03-12 John Baldwin <jhb@FreeBSD.org>
13285
13286 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13287 remove disabled code block.
13288
6e056c81
JB
132892019-03-12 John Baldwin <jhb@FreeBSD.org>
13290
13291 * gdbarch.sh (get_thread_local_address): New method.
13292 * gdbarch.h, gdbarch.c: Regenerate.
13293 * target.c (target_translate_tls_address): Use
13294 gdbarch_get_thread_local_address if present instead of
13295 target::get_thread_local_address.
13296
cd250a18
JB
132972019-03-12 John Baldwin <jhb@FreeBSD.org>
13298
13299 * target.h (target::get_thread_local_address): Update comment.
13300
df22c1e5
JB
133012019-03-12 John Baldwin <jhb@FreeBSD.org>
13302
13303 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13304 objfile->separate_debug_objfile_backlink if not NULL.
13305
dd6876c9
JB
133062019-03-12 John Baldwin <jhb@FreeBSD.org>
13307
13308 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13309 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13310 (amd64bsd_store_inferior_registers): Likewise.
13311 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13312 Enable segment base registers.
13313 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13314 PT_GETFSBASE and PT_GETGSBASE.
13315 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13316 PT_SETGSBASE.
13317 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13318 segment base registers.
13319 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13320
1163a4b7
JB
133212019-03-12 John Baldwin <jhb@FreeBSD.org>
13322
13323 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13324 Update calls to i386_target_description to add 'segments'
13325 parameter.
13326 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13327 add segment base registers.
13328 * arch/i386.c (i386_create_target_description): Add 'segments'
13329 parameter to enable segment base registers.
13330 * arch/i386.h (i386_create_target_description): Likewise.
13331 * features/i386/32bit-segments.xml: New file.
13332 * features/i386/32bit-segments.c: Generate.
13333 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13334 call to i386_target_description to add 'segments' parameter.
13335 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13336 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13337 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13338 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13339 if feature is present.
13340 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13341 Add 'segments' parameter to call to i386_target_description.
13342 (i386_target_description): Add 'segments' parameter to enable
13343 segment base registers.
13344 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13345 to call to i386_target_description.
13346 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13347 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13348 Define I386_NUM_REGS.
13349 (i386_target_description): Add 'segments' parameter to enable
13350 segment base registers.
13351
3a350822
EZ
133522019-03-12 Eli Zaretskii <eliz@gnu.org>
13353
13354 PR/24325
13355 * source-cache.c: #undef open and close, to avoid unresolved
13356 externals during linking.
13357
ffdd69cf
TT
133582019-03-12 Tom Tromey <tromey@adacore.com>
13359
13360 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13361 const. Add initializers.
13362 (_initialize_remote): Don't initialize ptid globals.
13363
ec148c57
PA
133642019-03-12 Pedro Alves <palves@redhat.com>
13365
13366 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13367
32764270
PA
133682019-03-12 Pedro Alves <palves@redhat.com>
13369
13370 * cp-name-parser.y (main): Remove unused 'len' variable.
13371
17547186
TT
133722019-03-12 Tom Tromey <tromey@adacore.com>
13373
13374 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13375 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13376
d3a70e03
TT
133772019-03-12 Tom Tromey <tromey@adacore.com>
13378
13379 * linux-nat.c (iterate_over_lwps): Update.
13380 (stop_callback): Remove parameter.
13381 (stop_wait_callback, detach_callback, resume_set_callback)
13382 (select_singlestep_lwp_callback, set_ignore_sigint)
13383 (status_callback, resumed_callback, resume_clear_callback)
13384 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13385 data parameter.
13386 (linux_nat_target::detach, linux_nat_target::resume)
13387 (linux_stop_and_wait_all_lwps, select_event_lwp)
13388 (linux_nat_filter_event, linux_nat_wait_1)
13389 (linux_nat_target::kill, linux_nat_target::stop)
13390 (linux_nat_target::stop): Update.
13391 (linux_nat_resume_callback): Change type.
13392 (resume_stopped_resumed_lwps, count_events_callback)
13393 (select_event_lwp_callback): Likewise.
13394 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13395 * arm-linux-nat.c (struct update_registers_data): Remove.
13396 (update_registers_callback): Change type.
13397 (arm_linux_insert_hw_breakpoint1): Update.
13398 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13399 parameter.
13400 (x86_linux_dr_set_addr): Update.
13401 (x86_linux_dr_set_control): Update.
13402 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13403 (iterate_over_lwps): Use gdb::function_view.
13404 * nat/aarch64-linux-hw-point.c (struct
13405 aarch64_dr_update_callback_param): Remove.
13406 (debug_reg_change_callback): Change type.
13407 (aarch64_notify_debug_reg_change): Update.
13408 * s390-linux-nat.c (s390_refresh_per_info): Update.
13409
82cb27ff
TT
134102019-03-11 Tom Tromey <tromey@adacore.com>
13411
13412 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13413 redundant assignment to "this_cu".
13414
568c0683
SM
134152019-03-08 Simon Marchi <simon.marchi@efficios.com>
13416
13417 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13418
f09ce22d
SM
134192019-03-08 Simon Marchi <simon.marchi@efficios.com>
13420
13421 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13422 from...
13423 (rank_one_type): ... this.
13424
595f96a9
SM
134252019-03-08 Simon Marchi <simon.marchi@efficios.com>
13426
13427 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13428 from...
13429 (rank_one_type): ... this.
13430
2598a94b
SM
134312019-03-08 Simon Marchi <simon.marchi@efficios.com>
13432
13433 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13434 from...
13435 (rank_one_type): ... this.
13436
7f17b20d
SM
134372019-03-08 Simon Marchi <simon.marchi@efficios.com>
13438
13439 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13440 from...
13441 (rank_one_type): ... this.
13442
2c509035
SM
134432019-03-08 Simon Marchi <simon.marchi@efficios.com>
13444
13445 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13446 from...
13447 (rank_one_type): ... this.
13448
0dd322dc
SM
134492019-03-08 Simon Marchi <simon.marchi@efficios.com>
13450
13451 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13452 from...
13453 (rank_one_type): ... this.
13454
41ea4728
SM
134552019-03-08 Simon Marchi <simon.marchi@efficios.com>
13456
13457 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13458 from...
13459 (rank_one_type): ... this.
13460
793cd1d2
SM
134612019-03-08 Simon Marchi <simon.marchi@efficios.com>
13462
13463 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13464 from...
13465 (rank_one_type): ... this.
13466
34910087
SM
134672019-03-08 Simon Marchi <simon.marchi@efficios.com>
13468
13469 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13470 from...
13471 (rank_one_type): ... this.
13472
f1f832d6
SM
134732019-03-08 Simon Marchi <simon.marchi@efficios.com>
13474
13475 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13476 from...
13477 (rank_one_type): ... this.
13478
b9f4512f
SM
134792019-03-08 Simon Marchi <simon.marchi@efficios.com>
13480
13481 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13482 from...
13483 (rank_one_type): ... this.
13484
9293fc63
SM
134852019-03-08 Simon Marchi <simon.marchi@efficios.com>
13486
13487 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13488 from...
13489 (rank_one_type): ... this.
13490
e3abbe7e
PW
134912019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13492
13493 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13494 inferior-events' shows the example events.
13495
e4adb939
EZ
134962019-03-08 Eli Zaretskii <eliz@gnu.org>
13497
13498 Support styling on native MS-Windows console
13499
13500 PR/24315
13501 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13502 on MS-Windows if $TERM is not defined.
13503
13504 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13505
13506 * posix-hdep.c (gdb_console_fputs):
13507 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13508 functions.
13509 * ui-file.h (gdb_console_fputs): Add prototype.
13510
13511 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13512 back to fputs only if the former returns zero.
13513
25629dfd
TT
135142019-03-07 Tom Tromey <tom@tromey.com>
13515
13516 * symmisc.c (print_symbol_bcache_statistics): Update.
13517 (print_objfile_statistics): Update.
13518 * symfile.c (allocate_symtab): Update.
13519 * stabsread.c: Don't include bcache.h.
13520 * psymtab.h (struct psymbol_bcache): Don't declare.
13521 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13522 (psymbol_bcache_init, psymbol_bcache_free)
13523 (psymbol_bcache_get_bcache): Don't declare.
13524 * psymtab.c (struct psymbol_bcache): Remove.
13525 (psymtab_storage::psymtab_storage): Update.
13526 (psymtab_storage::~psymtab_storage): Update.
13527 (psymbol_bcache_init, psymbol_bcache_free)
13528 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13529 (add_psymbol_to_bcache): Update.
13530 (allocate_psymtab): Update.
13531 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13532 macro_cache>: No longer pointers.
13533 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13534 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13535 * macrotab.c (macro_bcache): Update.
13536 * macroexp.c: Don't include bcache.h.
13537 * gdbtypes.c (check_types_worklist): Update.
13538 (types_deeply_equal): Remove TRY/CATCH. Update.
13539 * elfread.c (elf_symtab_read): Update.
13540 * dwarf2read.c: Don't include bcache.h.
13541 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13542 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13543 (print_bcache_statistics, bcache_memory_used): Don't declare.
13544 (struct bcache): Move from bcache.c. Add constructor, destructor,
13545 methods. Rename all data members.
13546 * bcache.c (struct bcache): Move to bcache.h.
13547 (bcache::expand_hash_table): Rename from expand_hash_table.
13548 (bcache): Remove.
13549 (bcache::insert): Rename from bcache_full.
13550 (bcache::compare): Rename from bcache_compare.
13551 (bcache_xmalloc): Remove.
13552 (bcache::~bcache): Rename from bcache_xfree.
13553 (bcache::print_statistics): Rename from print_bcache_statistics.
13554 (bcache::memory_used): Rename from bcache_memory_used.
13555
fe726667
PA
135562019-03-07 Pedro Alves <palves@redhat.com>
13557
13558 * infrun.c (normal_stop): Also check for
13559 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13560
7584bb30
AB
135612019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13562
13563 * f-lang.c (value_from_host_double): Moved to...
13564 * value.c (value_from_host_double): ...here.
13565 * value.h (value_from_host_double): Declare.
13566 * guile/scm-math.c (vlscm_convert_typed_number): Use
13567 value_from_host_double.
13568 (vlscm_convert_number): Likewise.
13569 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13570 * python/py-value.c (convert_value_from_python): Likewise.
13571
a7b1986e
TT
135722019-03-06 Tom Tromey <tom@tromey.com>
13573
13574 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13575
0ccf4211
TT
135762019-03-06 Tom Tromey <tom@tromey.com>
13577
13578 * utils.h (free_current_contents): Don't declare.
13579 * utils.c (free_current_contents): Remove.
13580
fe7b42e5
TT
135812019-03-06 Tom Tromey <tom@tromey.com>
13582
13583 * top.c (quit_force): Update.
13584 * main.c (captured_command_loop): Update.
13585 * common/new-op.c (operator new): Update.
13586 * common/common-exceptions.c (struct catcher)
13587 <save_cleanup_chain>: Remove member.
13588 (exceptions_state_mc_init): Update.
13589 (exception_try_scope_entry): Return nullptr.
13590 (exception_try_scope_exit, exception_rethrow)
13591 (throw_exception_sjlj, throw_exception_cxx): Update.
13592 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13593 (all_cleanups, do_cleanups, discard_cleanups)
13594 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13595 (restore_cleanups, restore_final_cleanups): Don't declare.
13596 (do_final_cleanups): Remove parameter.
13597 * common/cleanups.c (cleanup_chain, make_cleanup)
13598 (make_cleanup_dtor, all_cleanups, do_cleanups)
13599 (discard_my_cleanups, discard_cleanups)
13600 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13601 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13602 (null_cleanup): Remove.
13603 (do_final_cleanups): Remove parameter.
13604
c6321f19
TT
136052019-03-06 Tom Tromey <tom@tromey.com>
13606
13607 * remote.c (remote_target::remote_parse_stop_reply): Use
13608 unique_xmalloc_ptr.
13609
61b30099
TT
136102019-03-06 Tom Tromey <tom@tromey.com>
13611
13612 * stabsread.c (struct stabs_field_info): Rename from field_info.
13613 <list, fnlist>: Add initializers.
13614 <obstack>: New member.
13615 (read_member_functions, read_struct_fields, read_baseclasses):
13616 Allocate on obstack. Don't use cleanups.
13617 (read_one_struct_field, read_member_functions, read_struct_fields)
13618 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13619 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13620 (read_struct_type): Update.
13621
6cceac94
TT
136222019-03-06 Tom Tromey <tom@tromey.com>
13623
13624 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13625 * common/filestuff.h (make_cleanup_close): Don't declare.
13626 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13627 Remove.
13628
72412762
TT
136292019-03-06 Tom Tromey <tom@tromey.com>
13630
13631 * solib-aix.c: Use make_scope_exit.
13632
2b6ff1c0
TT
136332019-03-06 Tom Tromey <tom@tromey.com>
13634
13635 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13636 Use make_scope_exit.
13637
d01c5877
TT
136382019-03-06 Tom Tromey <tom@tromey.com>
13639
13640 * solib-svr4.c (disable_probes_interface): Remove parameter.
13641 (svr4_handle_solib_event): Use make_scope_exit.
13642
32603266
TT
136432019-03-06 Tom Tromey <tom@tromey.com>
13644
13645 * remote.c (struct stop_reply_deleter): Remove.
13646 (stop_reply_up): Update.
13647 (struct stop_reply): Derive from notif_event. Don't typedef.
13648 <regcache>: Now a std::vector.
13649 (stop_reply_xfree): Remove.
13650 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13651 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13652 (remote_target::discard_pending_stop_replies): Use delete.
13653 (remote_target::remote_parse_stop_reply): Update.
13654 (remote_target::process_stop_reply): Update.
13655 * remote-notif.h (struct notif_event): Add virtual destructor.
13656 Remove "dtr" member.
13657 (struct notif_client) <alloc_event>: Return a unique_ptr.
13658 (notif_event_xfree): Don't declare.
13659 (notif_event_up): New typedef.
13660 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13661 (notif_event_xfree, do_notif_event_xfree): Remove.
13662 (remote_notif_state_xfree): Update.
13663
9799571e
TT
136642019-03-06 Tom Tromey <tom@tromey.com>
13665
13666 * infrun.c (displaced_step_clear_cleanup): Now a
13667 forward_scope_exit type.
13668 (displaced_step_prepare_throw): Update.
13669 (displaced_step_fixup): Update.
13670
09e3c4ca
TT
136712019-03-06 Tom Tromey <tom@tromey.com>
13672
13673 * inferior.h (class inferior): Update comment.
13674 * gdbthread.h (class thread_info): Update comment.
13675
e2a03548
TT
136762019-03-06 Joel Brobecker <brobecker@adacore.com>
13677 Tom Tromey <tom@tromey.com>
13678
13679 * stabsread.h (struct stab_section_list): Remove.
13680 (coffstab_build_psymtabs): Update.
13681 * dbxread.c (symbuf_sections): Now a std::vector.
13682 (sect_idx): New global.
13683 (fill_symbuf): Update.
13684 (coffstab_build_psymtabs): Change type of stabsects parameter.
13685 Update.
13686 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13687 std::vector.
13688 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13689 (coff_locate_sections): Update.
13690 (coff_symfile_read): Remove cleanups. Update.
13691 (init_stringtab): Add storage parameter.
13692 (free_stringtab, free_stringtab_cleanup): Remove.
13693 (init_lineno): Add storage parameter.
13694 (free_linetab, free_linetab_cleanup): Remove.
13695
b7e60d85
PA
136962019-03-06 Pedro Alves <palves@redhat.com>
13697
13698 * linux-fork.c (fork_info::clobber_regs): Delete.
13699 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13700 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13701 comment. Adjust.
13702 (scoped_switch_fork_info::scoped_switch_fork_info)
13703 (checkpoint_command, linux_fork_context): Adjust
13704 fork_save_infrun_state calls.
13705
e52c971f
PA
137062019-03-06 Pedro Alves <palves@redhat.com>
13707
13708 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13709 (inf_has_multiple_threads): Return 'bool' and rewrite using
13710 inferior_info::threads().
13711
06974e6c
PA
137122019-03-06 Pedro Alves <palves@redhat.com>
13713
13714 * linux-fork.c: Include <list>.
13715 (fork_list): Now a std::list instance.
13716 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13717 (forks_exist_p, find_last_fork): Adjust.
13718 (new_fork): Delete.
13719 (one_fork_p): New.
13720 (add_fork): Adjust.
13721 (free_fork): Delete, folded into fork_info::~fork_info().
13722 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13723 Adjust.
13724 (init_fork_list): Delete.
13725 (linux_fork_killall, linux_fork_mourn_inferior)
13726 (linux_fork_detach, info_checkpoints_command): Adjust.
13727 (_initialize_linux_fork): No longer call init_fork_list.
13728
72f31aea
PA
137292019-03-06 Pedro Alves <palves@redhat.com>
13730
13731 * linux-fork.c (new_fork): New, split out of ...
13732 (add_fork): ... this. Return void. Move "first fork" special
13733 case from here, to ...
13734 (checkpoint_command): ... here.
13735 * linux-linux.h (add_fork): Return void.
13736
efbecbc1
AB
137372019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13738
13739 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13740
0841c79a
AB
137412019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13742 Chris January <chris.january@arm.com>
13743 David Lecomber <david.lecomber@arm.com>
13744
13745 * f-exp.y: New token, UNOP_INTRINSIC.
13746 (exp): New pattern using UNOP_INTRINSIC token.
13747 (f77_keywords): Add 'abs' keyword.
13748 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13749 (value_from_host_double): New function.
13750 (evaluate_subexp_f): Support UNOP_ABS.
13751
4a270568
AB
137522019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13753
13754 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13755 types.
13756
067630bd
AB
137572019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13758
13759 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13760 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13761 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13762
3be47f7a
AB
137632019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13764
13765 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13766
4d00f5d8
AB
137672019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13768 Chris January <chris.january@arm.com>
13769
13770 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13771 * f-exp.y: Define 'KIND' token.
13772 (exp): New pattern for KIND expressions.
13773 (ptype): Handle types with a kind extension.
13774 (direct_abs_decl): Extend to spot kind extensions.
13775 (f77_keywords): Add 'kind' to the list.
13776 (push_kind_type): New function.
13777 (convert_to_kind_type): New function.
13778 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13779 * parse.c (operator_length_standard): Likewise.
13780 * parser-defs.h (enum type_pieces): Add tp_kind.
13781 * std-operator.def: Add UNOP_KIND.
13782
e454224f
AB
137832019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13784
13785 * f-exp.y (f_parse): Set yydebug.
13786
9dad4a58
AB
137872019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13788
13789 * f-lang.c (evaluate_subexp_f): New function.
13790 (exp_descriptor_f): New global.
13791 (f_language_defn): Use exp_descriptor_f instead of
13792 exp_descriptor_standard.
13793
c8f91604
AB
137942019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13795
13796 * f-exp.y (struct token): Add comments.
13797 (dot_ops): Remove uppercase versions and the end marker.
13798 (f77_keywords): Likewise.
13799 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13800 entries in the dot_ops array are case insensitive, and use
13801 strncasecmp to compare strings. Also some whitespace cleanup in
13802 this area. Similar for the f77_keywords array, except entries in
13803 this list might be case sensitive.
13804
dd9f2c76
AB
138052019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13806
13807 * f-exp.y (struct f77_boolean_val): Add comments.
13808 (boolean_values): Remove uppercase versions, and end marker.
13809 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13810 and use strncasecmp to achieve case insensitivity. Additionally,
13811 perform whitespace cleanup around this code.
13812
67a3048c
TT
138132019-03-06 Tom Tromey <tromey@adacore.com>
13814
13815 * remote-sim.c (gdbsim_target_open): Use result of
13816 gdb_argv::release.
13817
aa3cfbda
RB
138182019-03-06 Richard Bunt <richard.bunt@arm.com>
13819 Dirk Schubert <dirk.schubert@arm.com>
13820 Chris January <chris.january@arm.com>
13821
13822 * eval.c (evaluate_subexp_standard): Call Fortran argument
13823 wrapping logic.
13824 * f-lang.c (struct value): A value which can be passed into a
13825 Fortran function call.
13826 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13827 where appropriate.
13828 (struct type): Value ready for a Fortran function call.
13829 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13830 is needed.
13831 * f-lang.h (fortran_argument_convert): Declaration.
13832 (fortran_preserve_arg_pointer): Declaration.
13833 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13834
ea38e5df
TT
138352019-03-05 Tom Tromey <tromey@adacore.com>
13836
13837 * python/py-prettyprint.c (print_string_repr): Remove #if.
13838 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13839
06b5b831
TT
138402019-03-05 Tom Tromey <tromey@adacore.com>
13841
13842 * target.c (the_dummy_target): Move later. Change type to
13843 "dummy_target".
13844 (initialize_targets): Don't initialize the_dummy_target.
13845
edbd9e45
TT
138462019-03-05 Tom Tromey <tromey@adacore.com>
13847
13848 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13849 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13850
c119e040
TT
138512019-03-05 Tom Tromey <tromey@adacore.com>
13852
13853 * windows-nat.c (windows_nat_target::attach)
13854 (windows_nat_target::detach): Don't call gdb_flush.
13855 * valprint.c (generic_val_print, val_print, val_print_string):
13856 Don't call gdb_flush.
13857 * utils.c (defaulted_query): Don't call gdb_flush.
13858 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13859 * target.c (target_announce_detach): Don't call gdb_flush.
13860 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13861 * remote.c (extended_remote_target::attach): Don't call
13862 gdb_flush.
13863 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13864 * printcmd.c (do_examine): Don't call gdb_flush.
13865 (info_display_command): Don't call gdb_flush.
13866 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13867 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13868 * memattr.c (info_mem_command): Don't call gdb_flush.
13869 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13870 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13871 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13872 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13873 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13874 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13875 (gnu_nat_target::detach): Don't call gdb_flush.
13876 * f-valprint.c (f_val_print): Don't call gdb_flush.
13877 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13878 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13879 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13880 gdb_flush.
13881 * c-valprint.c (c_val_print): Don't call gdb_flush.
13882 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13883
895dafa6
TT
138842019-03-05 Tom Tromey <tromey@adacore.com>
13885
13886 * varobj.c (update_dynamic_varobj_children): Update.
13887 (install_default_visualizer): Use reset, not release.
13888 * value.c (set_internalvar): Update.
13889 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13890 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13891 ATTRIBUTE_UNUSED_RESULT.
13892
88a774b9
TT
138932019-03-05 Tom Tromey <tromey@adacore.com>
13894
13895 * remote.c (class scoped_remote_fd) <release>: Add
13896 ATTRIBUTE_UNUSED_RESULT.
13897
4e4a8b93
TT
138982019-03-05 Tom Tromey <tromey@adacore.com>
13899
13900 * macroexp.c (struct macro_buffer) <release>: Add
13901 ATTRIBUTE_UNUSED_RESULT.
13902
083eef1f
TT
139032019-03-05 Tom Tromey <tromey@adacore.com>
13904
13905 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13906 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13907 ATTRIBUTE_UNUSED_RESULT.
13908
3cabd438
TT
139092019-03-05 Tom Tromey <tromey@adacore.com>
13910
13911 * common/scoped_fd.h (class scoped_fd) <release>: Add
13912 ATTRIBUTE_UNUSED_RESULT.
13913
41e3300a
TT
139142019-03-05 Tom Tromey <tromey@adacore.com>
13915
13916 * parser-defs.h (struct parser_state) <release>: Add
13917 ATTRIBUTE_UNUSED_RESULT.
13918
18cb7c9f
TT
139192019-03-05 Tom Tromey <tromey@adacore.com>
13920
13921 * utils.h (class gdb_argv) <release>: Add
13922 ATTRIBUTE_UNUSED_RESULT.
13923 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13924
41fa577f
EZ
139252019-03-02 Eli Zaretskii <eliz@gnu.org>
13926
a6a4b2c6
EZ
13927 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13928 for-loop range, to avoid compiler warnings.
13929
13930 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13931 avoid compiler warnings about unused variables.
13932
742a7df5
EZ
13933 * NEWS: Mention end of support for native debugging on MS-Windows
13934 before XP.
13935
41fa577f
EZ
13936 PR gdb/24292
13937 * common/netstuff.c:
13938 * gdbserver/gdbreplay.c
13939 * gdbserver/remote-utils.c:
13940 * ser-tcp.c:
13941 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13942 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13943 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13944 'getaddrinfo' and 'freeaddrinfo' were not available before
13945 Windows XP, and mingw.org's MinGW headers by default define
13946 _WIN32_WINNT to 0x500.
13947
827f438f
GB
139482019-03-01 Gary Benson <gbenson@redhat.com>
13949
13950 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13951
92137da0
RO
139522019-02-28 Brian Vandenberg <phantall@gmail.com>
13953 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13954
13955 PR gdb/8527
13956 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13957 set_sigint_trap, clear_sigint_trap.
13958
799efbe8
PW
139592019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13960
13961 * target.c (target_detach): Clear the regcache and the
13962 frame cache.
13963
8ed25214
PA
139642019-02-27 Pedro Alves <palves@redhat.com>
13965
13966 * utils.c (set_screen_size): When we cap the height/width sizes,
13967 tweak the corresponding command variable to show "unlimited":
13968
23031e31
SJ
139692019-02-27 Saagar Jha <saagar@saagarjha.com>
13970 Pedro Alves <palves@redhat.com>
13971
13972 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13973 before calling rl_set_screen_size.
13974
6c28e44a
TT
139752019-02-27 Tom Tromey <tromey@adacore.com>
13976
13977 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13978 define.
13979 * python/py-value.c: Remove Python 2.4 workaround.
13980 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13981 workaround.
13982 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13983 Python 2.4 workaround.
13984 * python/python-internal.h: Remove Python 2.4 comment.
13985 (Py_ssize_t): Don't define.
13986 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13987 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13988 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13989 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13990 * python/python.c (do_start_initialization): Remove Python 2.4
13991 workaround.
13992 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13993 (print_children): Remove Python 2.4 workaround.
13994 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13995 workaround.
13996 (CHARBUFFERPROC_NAME): Remove.
13997 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13998 Python 2.4 workaround.
13999
2c3fc25d 140002019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 14001
2c3fc25d
KB
14002 * NEWS: Note minimum Python version.
14003
6ca62222
KB
140042019-02-27 Kevin Buettner <kevinb@redhat.com>
14005
14006 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14007 code from these functions. Remove corresponding ifdefs. Use
14008 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14009 Remove gotos and target of gotos.
14010 (infpy_search_memory): Likewise.
14011
f4bc7d2c
AB
140122019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14013
14014 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14015 (hppa_gdbarch_init): Don't register deleted functions with
14016 gdbarch.
14017
9734a586
AB
140182019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14019
14020 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14021 (h8300_unwind_sp): Delete.
14022 (h8300_dummy_id): Delete.
14023 (h8300_gdbarch_init): Don't register deleted functions with
14024 gdbarch.
14025
68b867f3
AB
140262019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14027
14028 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14029 (ft32_unwind_pc): Delete.
14030 (ft32_unwind_sp): Delete.
14031 (ft32_gdbarch_init): Don't register deleted functions with
14032 gdbarch.
14033
2fbe7ad0
AB
140342019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14035
14036 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14037 (frv_unwind_pc): Delete.
14038 (frv_unwind_sp): Delete.
14039 (frv_gdbarch_init): Don't register deleted functions with
14040 gdbarch.
14041
76055cbe
AB
140422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14043
14044 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14045 (riscv_unwind_pc): Delete.
14046 (riscv_unwind_sp): Delete.
14047 (riscv_gdbarch_init): Don't register deleted functions with
14048 gdbarch.
14049
4133e5a1
AB
140502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14051
14052 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14053 (csky_unwind_pc): Delete.
14054 (csky_unwind_sp): Delete.
14055 (csky_gdbarch_init): Don't register deleted functions with
14056 gdbarch.
14057
8010f576
AB
140582019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14059
14060 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14061 (cris_unwind_pc): Delete.
14062 (cris_unwind_sp): Delete.
14063 (cris_gdbarch_init): Don't register deleted functions with
14064 gdbarch.
14065
b56bf084
AB
140662019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14067
14068 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14069 (bfin_unwind_pc): Delete.
14070 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14071
a19a650f
AB
140722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14073
14074 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14075 (arm_unwind_pc): Delete.
14076 (arm_unwind_sp): Delete.
14077 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14078
f8278c3c
AB
140792019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14080
14081 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14082 (arc_unwind_pc): Delete.
14083 (arc_unwind_sp): Delete.
14084 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14085
480e46cf
AB
140862019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14087
14088 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14089 (alpha_unwind_pc): Delete.
14090 (alpha_gdbarch_init): Don't register deleted functions with
14091 gdbarch.
14092
7a995095
AB
140932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14094
14095 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14096 (aarch64_unwind_pc): Delete.
14097 (aarch64_unwind_sp): Delete.
14098 (aarch64_gdbarch_init): Don't register deleted functions with
14099 gdbarch.
14100
bf9a735e
AB
141012019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14102
14103 * gdbtypes.c (type_align): Don't consider static members when
14104 computing structure alignment.
14105
5561fc30
AB
141062019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14107
14108 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14109 return 0 for other types.
14110 * arch-utils.c (default_type_align): Always return 0.
14111 * gdbarch.h: Regenerate.
14112 * gdbarch.sh (type_align): Extend comment.
14113 * gdbtypes.c (type_align): Add additional comments, always call
14114 gdbarch_type_align before applying the default rules.
14115 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14116 generic code will then apply a suitable default.
14117 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14118 types, return 0 for other types.
14119
9335e75a
JB
141202019-02-27 Joel Brobecker <brobecker@adacore.com>
14121
14122 * NEWS: Create a new section for the next release branch.
14123 Rename the section of the current branch, now that it has
14124 been cut.
14125
3d34d8de
JB
141262019-02-27 Joel Brobecker <brobecker@adacore.com>
14127
14128 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14129 * version.in: Bump version to 8.3.50.DATE-git.
14130
143420fb
SM
141312019-02-26 Simon Marchi <simon.marchi@efficios.com>
14132
14133 * aix-thread.c (ptid_cmp): Remove unused variable.
14134 (get_signaled_thread): Likewise.
14135 (store_regs_user_thread): Likewise.
14136 (store_regs_kernel_thread): Likewise.
14137 (fetch_regs_kernel_thread): Remove shadowed variable.
14138
172fb711
AB
141392019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14140
14141 * features/riscv/32bit-cpu.xml: Add register numbers.
14142 * features/riscv/32bit-fpu.c: Regenerate.
14143 * features/riscv/32bit-fpu.xml: Add register numbers.
14144 * features/riscv/64bit-cpu.xml: Add register numbers.
14145 * features/riscv/64bit-fpu.c: Regenerate.
14146 * features/riscv/64bit-fpu.xml: Add register numbers.
14147
26c89782
KB
141482019-02-26 Kevin Buettner <kevinb@redhat.com>
14149
af54ade9 14150 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14151 * python/py-value.c (convert_buffer_and_type_to_value): New
14152 function.
14153 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14154 Add support for handling an optional second argument. Call
14155 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14156 * python/python-internal.h (Py_buffer_deleter): New struct.
14157 (Py_buffer_up): New typedef.
14158
0f58c9e8
JB
141592019-02-25 John Baldwin <jhb@FreeBSD.org>
14160
14161 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14162 instead of releasing ownership.
14163
0a0f4c01
JR
141642019-02-25 Jordan Rupprecht <rupprecht@google.com>
14165
14166 * dwarf2read.c (open_and_init_dwp_file): Call
14167 elf_numsections instead of bfd_count_sections to initialize
14168 dwp_file->num_sections.
14169
cd5a152c
TT
141702019-02-25 Tom Tromey <tromey@adacore.com>
14171
14172 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14173
8a6a8513
SDJ
141742019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14175
14176 * gcore.in: Add '--readnever' option when invoking GDB.
14177
04dcda9c
SM
141782019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14179
14180 * MAINTAINERS: Update my email address.
14181
07bc701d
SM
141822019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14183
14184 * build-id.c (build_id_to_debug_bfd_1): New function.
14185 (build_id_to_debug_bfd): Look for separate debug file in
14186 sysroot.
14187
c6f4a5d0
AB
141882019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14189
14190 * gdbarch.sh: Update the copyright year range that is placed into
14191 generated files.
14192
9600246d
KS
141932019-02-22 Keith Seitz <keiths@redhat.com>
14194
14195 PR symtab/23853
14196 * linespec.c (create_sals_line_offset): Search for the default
14197 symtab's filename instead of its fullname.
14198
7557a514
AH
141992019-02-21 Alan Hayward <alan.hayward@arm.com>
14200
14201 * NEWS: Update style defaults.
14202
ee2bcb0c
AH
142032019-02-21 Alan Hayward <alan.hayward@arm.com>
14204
14205 * main.c (captured_main_1): Disable styling in batch mode.
14206
0c95f9ed
TT
142072019-02-20 Tom Tromey <tom@tromey.com>
14208
14209 * symtab.c (symtab_symbol_info): Fix typos.
14210
c763b894
TT
142112019-02-20 Tom Tromey <tromey@adacore.com>
14212
14213 * findcmd.c (_initialize_mem_search): Use upper case for
14214 metasyntactic variables.
14215
0ef8a082
AH
142162019-02-20 Alan Hayward <alan.hayward@arm.com>
14217
14218 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14219 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14220
6caa91b6
SM
142212019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14222
14223 * top.h (source_file_name): Change to std::string.
14224 * top.c (source_file_name): Likewise.
14225 (command_line_input): Adjust.
14226 * cli/cli-script.c (script_from_file): Adjust.
14227
98814c6c
TT
142282019-02-19 Tom Tromey <tromey@adacore.com>
14229
14230 * ravenscar-thread.c
14231 (ravenscar_thread_target::update_thread_list): Don't call
14232 ada_build_task_list.
14233 * ada-lang.h (ada_build_task_list): Don't declare.
14234 * ada-tasks.c (struct ada_tasks_inferior_data)
14235 <task_list_valid_p>: Now bool.
14236 (read_known_tasks, ada_task_list_changed)
14237 (ada_tasks_invalidate_inferior_data): Update.
14238 (read_known_tasks_array): Return bool.
14239 (read_known_tasks_list): Likewise.
14240 (read_known_tasks): Return void.
14241 (ada_build_task_list): Now static.
14242
70cd633e
AB
142432019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14244
14245 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14246 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14247
040b3e95
PW
142482019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14249
14250 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14251 variant for ada_tasks_pspace_data_handle and
14252 ada_tasks_inferior_data_handle.
14253 (ada_tasks_pspace_data_cleanup): New function.
14254 (ada_tasks_inferior_data_cleanup): New function.
14255
9409233b
TT
142562019-02-17 Tom Tromey <tom@tromey.com>
14257
14258 * macrotab.h (macro_source_fullname): Return a std::string.
14259 * macrotab.c (macro_include, check_for_redefinition)
14260 (macro_undef, macro_lookup_definition, foreach_macro)
14261 (foreach_macro_in_scope): Update.
14262 (macro_source_fullname): Return a std::string.
14263 * macrocmd.c (show_pp_source_pos): Update.
14264
6506371f
TT
142652019-02-17 Tom Tromey <tom@tromey.com>
14266
14267 * macrocmd.c (show_pp_source_pos): Style the file names.
14268
0c820d67
TT
142692019-02-17 Tom Tromey <tom@tromey.com>
14270
14271 PR tui/24197:
14272 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14273
a0087920
TT
142742019-02-17 Tom Tromey <tom@tromey.com>
14275
14276 * ada-lang.c (user_select_syms): Use filtered printing.
14277 * utils.c (wrap_style): New global.
14278 (desired_style): Remove.
14279 (emit_style_escape): Add stream parameter.
14280 (set_output_style, reset_terminal_style, prompt_for_continue):
14281 Update.
14282 (flush_wrap_buffer): Only flush gdb_stdout.
14283 (wrap_here): Set wrap_style.
14284 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14285 treat escape sequences as a character. Change when wrap buffer is
14286 flushed.
14287 (fputs_styled): Do not set the output style when the default is
14288 requested.
14289 * ui-style.h (struct ui_file_style) <is_default>: New method.
14290 * source.c (print_source_lines_base): Emit escape sequences in one
14291 piece.
14292
75ba10dc
JB
142932019-02-17 Joel Brobecker <brobecker@adacore.com>
14294
14295 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14296 integers and enumeration types.
14297
a2cd4f14
JB
142982019-02-17 Joel Brobecker <brobecker@adacore.com>
14299
14300 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14301 instead of lookup_symbol_in_language
14302 (do_exact_match): New function.
14303 (ada_get_symbol_name_matcher): Return do_exact_match when
14304 doing a verbatim match.
14305
485b851b
TT
143062019-02-15 Tom Tromey <tromey@adacore.com>
14307
14308 * ravenscar-thread.c (ravenscar_thread_target::resume)
14309 (ravenscar_thread_target::wait): Special case wildcard requests.
14310
0b790b1e
TT
143112019-02-15 Tom Tromey <tromey@adacore.com>
14312
14313 * ravenscar-thread.c (base_ptid): Remove.
14314 (struct ravenscar_thread_target) <close>: New method.
14315 <m_base_ptid>: New member.
14316 <update_inferior_ptid, active_task, task_is_currently_active,
14317 runtime_initialized>: Declare methods.
14318 <ravenscar_thread_target>: Add constructor.
14319 (ravenscar_thread_target::task_is_currently_active)
14320 (ravenscar_thread_target::update_inferior_ptid)
14321 (ravenscar_runtime_initialized): Rename. Now methods.
14322 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14323 (ravenscar_thread_target::update_thread_list): Update.
14324 (ravenscar_thread_target::active_task): Now method.
14325 (ravenscar_thread_target::store_registers)
14326 (ravenscar_thread_target::prepare_to_store)
14327 (ravenscar_thread_target::prepare_to_store)
14328 (ravenscar_thread_target::mourn_inferior): Update.
14329 (ravenscar_inferior_created): Use "new" to create target.
14330 (ravenscar_thread_target::get_ada_task_ptid): Update.
14331 (_initialize_ravenscar): Don't initialize base_ptid.
14332 (ravenscar_ops): Remove global.
14333
dea57a62
TT
143342019-02-15 Tom Tromey <tromey@adacore.com>
14335
14336 * target.h (push_target): Declare new overload.
14337 * target.c (push_target): New overload, taking an rvalue reference.
14338 * remote.c (remote_target::open_1): Use push_target overload.
14339 * corelow.c (core_target_open): Use push_target overload.
14340
989f3c58
TT
143412019-02-15 Tom Tromey <tromey@adacore.com>
14342
14343 * ravenscar-thread.c (is_ravenscar_task)
14344 (ravenscar_task_is_currently_active): Return bool.
14345 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14346 (_initialize_ravenscar): Remove "(void)".
14347 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14348 Return bool.
14349
6cbcc006
TT
143502019-02-15 Tom Tromey <tromey@adacore.com>
14351
14352 * ravenscar-thread.c (ravenscar_runtime_initializer)
14353 (has_ravenscar_runtime, get_running_thread_id)
14354 (ravenscar_thread_target::resume): Fix indentation.
14355
7657f14d
TT
143562019-02-15 Tom Tromey <tromey@adacore.com>
14357
14358 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14359 from ravenscar_arch_ops.
14360 (sparc_ravenscar_ops::fetch_registers)
14361 (sparc_ravenscar_ops::store_registers): Now methods.
14362 (sparc_ravenscar_prepare_to_store): Remove.
14363 (sparc_ravenscar_ops): Redefine.
14364 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14365 methods and destructor. Remove members.
14366 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14367 (ravenscar_thread_target::store_registers)
14368 (ravenscar_thread_target::prepare_to_store): Update.
14369 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14370 Remove.
14371 (struct ppc_ravenscar_powerpc_ops): Derive from
14372 ravenscar_arch_ops.
14373 (ppc_ravenscar_powerpc_ops::fetch_registers)
14374 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14375 (ppc_ravenscar_powerpc_ops): Redefine.
14376 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14377 (ppc_ravenscar_e500_ops::fetch_registers)
14378 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14379 (ppc_ravenscar_e500_ops): Redefine.
14380 * aarch64-ravenscar-thread.c
14381 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14382 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14383 (aarch64_ravenscar_fetch_registers)
14384 (aarch64_ravenscar_store_registers): Now methods.
14385 (aarch64_ravenscar_ops): Redefine.
14386
5b6ea500
TT
143872019-02-15 Tom Tromey <tromey@adacore.com>
14388
14389 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14390 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14391 (ravenscar_thread_target::stopped_by_watchpoint)
14392 (ravenscar_thread_target::stopped_data_address)
14393 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14394
e397fd39
TT
143952019-02-15 Tom Tromey <tromey@adacore.com>
14396
14397 * ravenscar-thread.c: Fix some typos.
14398
cc12f4a8
TT
143992019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14400 Tom Tromey <tromey@adacore.com>
14401
14402 * ada-lang.c (ada_exception_sal): Change addr_string to a
14403 std::string.
14404 (create_ada_exception_catchpoint): Update.
14405
5f486660
TT
144062019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14407 Tom Tromey <tromey@adacore.com>
14408
14409 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14410 (bp_location_ops): Remove.
14411 (base_breakpoint_allocate_location): Update.
14412 (free_bp_location): Update.
14413 * ada-lang.c (class ada_catchpoint_location)
14414 <ada_catchpoint_location>: Remove ops parameter.
14415 (ada_catchpoint_location_dtor): Remove.
14416 (ada_catchpoint_location_ops): Remove.
14417 (allocate_location_exception): Update.
14418 * breakpoint.h (struct bp_location_ops): Remove.
14419 (class bp_location) <bp_location>: Remove bp_location_ops
14420 parameter.
14421 <~bp_location>: Add destructor.
14422 <ops>: Remove.
14423
b671c7fb
TS
144242019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14425 Pedro Alves <palves@redhat.com>
14426
14427 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14428 'PATH_MAX'.
14429
8071c5ce
DM
144302019-02-14 David Michael <fedora.dm0@gmail.com>
14431 Samuel Thibault <samuel.thibault@gnu.org>
14432 Thomas Schwinge <thomas@codesourcery.com>
14433
14434 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14435 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14436
b1041ae0
TS
144372019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14438
924514e1
TS
14439 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14440 (check_empty): Use "const char *".
14441
c29ee8d4
TS
14442 * gnu-nat.c (gnu_nat_target::detach): Instead of
14443 'detach_inferior (pid)' call
14444 'detach_inferior (find_inferior_pid (pid))'.
14445
6c6ef69f
TS
14446 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14447 'nat/fork-inferior.o'.
14448 * gnu-nat.c: #include "nat/fork-inferior.h".
14449
2d0a338c
TS
14450 * gnu-nat.c (gnu_nat_target::detach): Instead of
14451 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14452 * gnu-nat.h: #include "inf-child.h".
14453 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14454 'i386_gnu_nat_target::fetch_registers'.
14455 (gnu_store_registers): Rename/move to
14456 'i386_gnu_nat_target::store_registers'.
14457
cabb5f06
TS
14458 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14459 * gnu-nat.h (mach_thread_info): New function.
14460 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14461
b1041ae0
TS
14462 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14463
2988d01e
KF
144642019-02-14 Frederic Konrad <konrad@adacore.com>
14465
14466 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14467
c559d709
JB
144682019-02-14 Joel Brobecker <brobecker@adacore.com>
14469
14470 * windows-nat.c (windows_add_thread): Add new parameter
14471 "main_thread_p" with default value set to false. Update
14472 function documentation as well as all callers.
14473 (windows_delete_thread): Likewise.
14474 (fake_create_process): Update call to windows_add_thread.
14475 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14476 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14477 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14478 call to windows_delete_thread.
14479
007024cc
SM
144802019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14481
14482 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14483
f62318e9
JB
144842019-02-12 John Baldwin <jhb@FreeBSD.org>
14485
14486 * symfile.c (find_separate_debug_file): Use canonical path of
14487 sysroot with child_path instead of gdb_sysroot if it is valid.
14488
cd4b7848
JB
144892019-02-12 John Baldwin <jhb@FreeBSD.org>
14490
14491 * symfile.c (find_separate_debug_file): Use child_path to
14492 determine if an object file is under a sysroot.
14493
efac4bfe
JB
144942019-02-12 John Baldwin <jhb@FreeBSD.org>
14495
14496 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14497 unittests/child-path-selftests.c.
14498 * common/pathstuff.c (child_path): New function.
14499 * common/pathstuff.h (child_path): New prototype.
14500 * unittests/child-path-selftests.c: New file.
14501
402d2bfe
JB
145022019-02-12 John Baldwin <jhb@FreeBSD.org>
14503
14504 * symfile.c (find_separate_debug_file): Look for separate debug
14505 files in debug directories under the sysroot.
14506
1ed9f74e
PW
145072019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14508
14509 * symtab.h (struct minimal_symbol data_p): New const method.
14510 (struct minimal_symbol text_p): Likewise.
14511 * symtab.c (output_source_filename): Use file name style
14512 to print file name.
14513 (print_symbol_info): Likewise.
14514 (print_msymbol_info): Use address style to print addresses.
14515 Use function name style to print executable text symbols.
14516 (expand_symtab_containing_pc): Use data_p.
14517 (find_pc_sect_compunit_symtab): Likewise.
14518
2636d81d
PW
145192019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14520
14521 * breakpoint.c (describe_other_breakpoints): Use address style
14522 to print addresses.
14523 (say_where): Likewise.
14524
ac8c53cc
PW
145252019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14526
14527 * ada-typeprint.c (print_func_type): Print function name
14528 style to print function name.
14529 * c-typeprint.c (c_print_type_1): Likewise.
14530
ea638c43
AH
145312019-02-11 Alan Hayward <alan.hayward@arm.com>
14532
14533 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14534 for execve.
14535
ab759ca8
PW
145362019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14537
14538 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14539 type_stack.
14540
aff29d1c
JB
145412019-02-10 Joel Brobecker <brobecker@adacore.com>
14542
14543 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14544 TYPE_CODE_REF types.
14545
617126bc
JW
145462019-02-08 Jim Wilson <jimw@sifive.com>
14547
14548 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14549 (riscv_linux_fregset): New.
14550 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14551
46e3ed7f
TT
145522019-02-07 Tom Tromey <tom@tromey.com>
14553
14554 * thread.c (thread_cancel_execution_command): Update.
14555 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14556 methods.
14557 (struct thread_fsm_ops): Remove.
14558 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14559 (thread_fsm_should_stop, thread_fsm_return_value)
14560 (thread_fsm_set_finished, thread_fsm_finished_p)
14561 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14562 Don't declare.
14563 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14564 * infrun.c (clear_proceed_status_thread)
14565 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14566 (print_stop_event): Update.
14567 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14568 Add constructor.
14569 (step_command_fsm_ops): Remove.
14570 (new_step_command_fsm): Remove.
14571 (step_1): Update.
14572 (step_command_fsm::should_stop): Rename from
14573 step_command_fsm_should_stop.
14574 (step_command_fsm::clean_up): Rename from
14575 step_command_fsm_clean_up.
14576 (step_command_fsm::do_async_reply_reason): Rename from
14577 step_command_fsm_async_reply_reason.
14578 (struct until_next_fsm): Inherit from thread_fsm. Add
14579 constructor.
14580 (until_next_fsm_ops): Remove.
14581 (new_until_next_fsm): Remove.
14582 (until_next_fsm::should_stop): Rename from
14583 until_next_fsm_should_stop.
14584 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14585 (until_next_fsm::do_async_reply_reason): Rename from
14586 until_next_fsm_async_reply_reason.
14587 (struct finish_command_fsm): Inherit from thread_fsm. Add
14588 constructor. Change type of breakpoint.
14589 (finish_command_fsm_ops): Remove.
14590 (new_finish_command_fsm): Remove.
14591 (finish_command_fsm::should_stop): Rename from
14592 finish_command_fsm_should_stop.
14593 (finish_command_fsm::clean_up): Rename from
14594 finish_command_fsm_clean_up.
14595 (finish_command_fsm::return_value): Rename from
14596 finish_command_fsm_return_value.
14597 (finish_command_fsm::do_async_reply_reason): Rename from
14598 finish_command_fsm_async_reply_reason.
14599 (finish_command): Update.
14600 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14601 Add constructor.
14602 (call_thread_fsm_ops): Remove.
14603 (call_thread_fsm::call_thread_fsm): Rename from
14604 new_call_thread_fsm.
14605 (call_thread_fsm::should_stop): Rename from
14606 call_thread_fsm_should_stop.
14607 (call_thread_fsm::should_notify_stop): Rename from
14608 call_thread_fsm_should_notify_stop.
14609 (run_inferior_call, call_function_by_hand_dummy): Update.
14610 * cli/cli-interp.c (should_print_stop_to_console): Update.
14611 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14612 Add constructor. Change type of location_breakpoint,
14613 caller_breakpoint.
14614 (until_break_fsm_ops): Remove.
14615 (new_until_break_fsm): Remove.
14616 (until_break_fsm::should_stop): Rename from
14617 until_break_fsm_should_stop.
14618 (until_break_fsm::clean_up): Rename from
14619 until_break_fsm_clean_up.
14620 (until_break_fsm::do_async_reply_reason): Rename from
14621 until_break_fsm_async_reply_reason.
14622 (until_break_command): Update.
14623 * thread-fsm.c: Remove.
14624 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14625
1a5c2598
TT
146262019-02-07 Tom Tromey <tom@tromey.com>
14627
14628 * yy-remap.h: Add include guard.
14629 * xtensa-tdep.h: Add include guard.
14630 * xcoffread.h: Rename include guard.
14631 * varobj-iter.h: Add include guard.
14632 * tui/tui.h: Rename include guard.
14633 * tui/tui-winsource.h: Rename include guard.
14634 * tui/tui-wingeneral.h: Rename include guard.
14635 * tui/tui-windata.h: Rename include guard.
14636 * tui/tui-win.h: Rename include guard.
14637 * tui/tui-stack.h: Rename include guard.
14638 * tui/tui-source.h: Rename include guard.
14639 * tui/tui-regs.h: Rename include guard.
14640 * tui/tui-out.h: Rename include guard.
14641 * tui/tui-layout.h: Rename include guard.
14642 * tui/tui-io.h: Rename include guard.
14643 * tui/tui-hooks.h: Rename include guard.
14644 * tui/tui-file.h: Rename include guard.
14645 * tui/tui-disasm.h: Rename include guard.
14646 * tui/tui-data.h: Rename include guard.
14647 * tui/tui-command.h: Rename include guard.
14648 * tic6x-tdep.h: Add include guard.
14649 * target/waitstatus.h: Rename include guard.
14650 * target/wait.h: Rename include guard.
14651 * target/target.h: Rename include guard.
14652 * target/resume.h: Rename include guard.
14653 * target-float.h: Rename include guard.
14654 * stabsread.h: Add include guard.
14655 * rs6000-tdep.h: Add include guard.
14656 * riscv-fbsd-tdep.h: Add include guard.
14657 * regformats/regdef.h: Rename include guard.
14658 * record.h: Rename include guard.
14659 * python/python.h: Rename include guard.
14660 * python/python-internal.h: Rename include guard.
14661 * python/py-stopevent.h: Rename include guard.
14662 * python/py-ref.h: Rename include guard.
14663 * python/py-record.h: Rename include guard.
14664 * python/py-record-full.h: Rename include guard.
14665 * python/py-record-btrace.h: Rename include guard.
14666 * python/py-instruction.h: Rename include guard.
14667 * python/py-events.h: Rename include guard.
14668 * python/py-event.h: Rename include guard.
14669 * procfs.h: Add include guard.
14670 * proc-utils.h: Add include guard.
14671 * p-lang.h: Add include guard.
14672 * or1k-tdep.h: Rename include guard.
14673 * observable.h: Rename include guard.
14674 * nto-tdep.h: Rename include guard.
14675 * nat/x86-linux.h: Rename include guard.
14676 * nat/x86-linux-dregs.h: Rename include guard.
14677 * nat/x86-gcc-cpuid.h: Add include guard.
14678 * nat/x86-dregs.h: Rename include guard.
14679 * nat/x86-cpuid.h: Rename include guard.
14680 * nat/ppc-linux.h: Rename include guard.
14681 * nat/mips-linux-watch.h: Rename include guard.
14682 * nat/linux-waitpid.h: Rename include guard.
14683 * nat/linux-ptrace.h: Rename include guard.
14684 * nat/linux-procfs.h: Rename include guard.
14685 * nat/linux-osdata.h: Rename include guard.
14686 * nat/linux-nat.h: Rename include guard.
14687 * nat/linux-namespaces.h: Rename include guard.
14688 * nat/linux-btrace.h: Rename include guard.
14689 * nat/glibc_thread_db.h: Rename include guard.
14690 * nat/gdb_thread_db.h: Rename include guard.
14691 * nat/gdb_ptrace.h: Rename include guard.
14692 * nat/fork-inferior.h: Rename include guard.
14693 * nat/amd64-linux-siginfo.h: Rename include guard.
14694 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14695 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14696 * nat/aarch64-linux.h: Rename include guard.
14697 * nat/aarch64-linux-hw-point.h: Rename include guard.
14698 * mn10300-tdep.h: Add include guard.
14699 * mips-linux-tdep.h: Add include guard.
14700 * mi/mi-parse.h: Rename include guard.
14701 * mi/mi-out.h: Rename include guard.
14702 * mi/mi-main.h: Rename include guard.
14703 * mi/mi-interp.h: Rename include guard.
14704 * mi/mi-getopt.h: Rename include guard.
14705 * mi/mi-console.h: Rename include guard.
14706 * mi/mi-common.h: Rename include guard.
14707 * mi/mi-cmds.h: Rename include guard.
14708 * mi/mi-cmd-break.h: Rename include guard.
14709 * m2-lang.h: Add include guard.
14710 * location.h: Rename include guard.
14711 * linux-record.h: Rename include guard.
14712 * linux-nat.h: Add include guard.
14713 * linux-fork.h: Add include guard.
14714 * i386-darwin-tdep.h: Rename include guard.
14715 * hppa-linux-offsets.h: Add include guard.
14716 * guile/guile.h: Rename include guard.
14717 * guile/guile-internal.h: Rename include guard.
14718 * gnu-nat.h: Rename include guard.
14719 * gdb-stabs.h: Rename include guard.
14720 * frv-tdep.h: Add include guard.
14721 * f-lang.h: Add include guard.
14722 * event-loop.h: Add include guard.
14723 * darwin-nat.h: Rename include guard.
14724 * cp-abi.h: Rename include guard.
14725 * config/sparc/nm-sol2.h: Rename include guard.
14726 * config/nm-nto.h: Rename include guard.
14727 * config/nm-linux.h: Add include guard.
14728 * config/i386/nm-i386gnu.h: Rename include guard.
14729 * config/djgpp/nl_types.h: Rename include guard.
14730 * config/djgpp/langinfo.h: Rename include guard.
14731 * compile/gcc-cp-plugin.h: Add include guard.
14732 * compile/gcc-c-plugin.h: Add include guard.
14733 * compile/compile.h: Rename include guard.
14734 * compile/compile-object-run.h: Rename include guard.
14735 * compile/compile-object-load.h: Rename include guard.
14736 * compile/compile-internal.h: Rename include guard.
14737 * compile/compile-cplus.h: Rename include guard.
14738 * compile/compile-c.h: Rename include guard.
14739 * common/xml-utils.h: Rename include guard.
14740 * common/x86-xstate.h: Rename include guard.
14741 * common/version.h: Rename include guard.
14742 * common/vec.h: Rename include guard.
14743 * common/tdesc.h: Rename include guard.
14744 * common/selftest.h: Rename include guard.
14745 * common/scoped_restore.h: Rename include guard.
14746 * common/scoped_mmap.h: Rename include guard.
14747 * common/scoped_fd.h: Rename include guard.
14748 * common/safe-iterator.h: Rename include guard.
14749 * common/run-time-clock.h: Rename include guard.
14750 * common/refcounted-object.h: Rename include guard.
14751 * common/queue.h: Rename include guard.
14752 * common/ptid.h: Rename include guard.
14753 * common/print-utils.h: Rename include guard.
14754 * common/preprocessor.h: Rename include guard.
14755 * common/pathstuff.h: Rename include guard.
14756 * common/observable.h: Rename include guard.
14757 * common/netstuff.h: Rename include guard.
14758 * common/job-control.h: Rename include guard.
14759 * common/host-defs.h: Rename include guard.
14760 * common/gdb_wait.h: Rename include guard.
14761 * common/gdb_vecs.h: Rename include guard.
14762 * common/gdb_unlinker.h: Rename include guard.
14763 * common/gdb_unique_ptr.h: Rename include guard.
14764 * common/gdb_tilde_expand.h: Rename include guard.
14765 * common/gdb_sys_time.h: Rename include guard.
14766 * common/gdb_string_view.h: Rename include guard.
14767 * common/gdb_splay_tree.h: Rename include guard.
14768 * common/gdb_setjmp.h: Rename include guard.
14769 * common/gdb_ref_ptr.h: Rename include guard.
14770 * common/gdb_optional.h: Rename include guard.
14771 * common/gdb_locale.h: Rename include guard.
14772 * common/gdb_assert.h: Rename include guard.
14773 * common/filtered-iterator.h: Rename include guard.
14774 * common/filestuff.h: Rename include guard.
14775 * common/fileio.h: Rename include guard.
14776 * common/environ.h: Rename include guard.
14777 * common/common-utils.h: Rename include guard.
14778 * common/common-types.h: Rename include guard.
14779 * common/common-regcache.h: Rename include guard.
14780 * common/common-inferior.h: Rename include guard.
14781 * common/common-gdbthread.h: Rename include guard.
14782 * common/common-exceptions.h: Rename include guard.
14783 * common/common-defs.h: Rename include guard.
14784 * common/common-debug.h: Rename include guard.
14785 * common/cleanups.h: Rename include guard.
14786 * common/buffer.h: Rename include guard.
14787 * common/btrace-common.h: Rename include guard.
14788 * common/break-common.h: Rename include guard.
14789 * cli/cli-utils.h: Rename include guard.
14790 * cli/cli-style.h: Rename include guard.
14791 * cli/cli-setshow.h: Rename include guard.
14792 * cli/cli-script.h: Rename include guard.
14793 * cli/cli-interp.h: Rename include guard.
14794 * cli/cli-decode.h: Rename include guard.
14795 * cli/cli-cmds.h: Rename include guard.
14796 * charset-list.h: Add include guard.
14797 * buildsym-legacy.h: Rename include guard.
14798 * bfin-tdep.h: Add include guard.
14799 * ax.h: Rename include guard.
14800 * arm-linux-tdep.h: Add include guard.
14801 * arm-fbsd-tdep.h: Add include guard.
14802 * arch/xtensa.h: Rename include guard.
14803 * arch/tic6x.h: Add include guard.
14804 * arch/i386.h: Add include guard.
14805 * arch/arm.h: Rename include guard.
14806 * arch/arm-linux.h: Rename include guard.
14807 * arch/arm-get-next-pcs.h: Rename include guard.
14808 * arch/amd64.h: Add include guard.
14809 * arch/aarch64-insn.h: Rename include guard.
14810 * arch-utils.h: Rename include guard.
14811 * annotate.h: Add include guard.
14812 * amd64-darwin-tdep.h: Rename include guard.
14813 * aarch64-linux-tdep.h: Add include guard.
14814 * aarch64-fbsd-tdep.h: Add include guard.
14815 * aarch32-linux-nat.h: Add include guard.
14816
ab9268d2
PW
148172019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14818
14819 * macrotab.c (macro_define_internal): New function that
14820 factorizes macro_define_object_internal and macro_define_function
14821 code.
14822 (macro_define_object_internal): Use macro_define_internal.
14823 (macro_define_function): Likewise.
14824
bb0da2b4
PW
148252019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14826
14827 * macrocmd.c (extract_identifier): Return
14828 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14829 callers.
14830
424eb552
JB
148312019-02-06 John Baldwin <jhb@FreeBSD.org>
14832
14833 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14834
1688cb29
TT
148352019-02-05 Tom Tromey <tom@tromey.com>
14836
14837 * target.c (target_stack::unpush): Move assertion earlier.
14838
b5eba2d8
TT
148392019-01-30 Tom Tromey <tom@tromey.com>
14840
14841 PR python/23615:
14842 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14843 (gdbpy_parse_and_eval): Likewise.
14844 * python/python-internal.h (gdbpy_allow_threads): New class.
14845
7054e2ff
JB
148462019-01-28 John Baldwin <jhb@FreeBSD.org>
14847
14848 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14849 (aarch64_fbsd_fpregmap): Move earlier.
14850 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14851 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14852 instead of individual calls to trad_frame_set_reg_addr.
14853 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14854 earlier.
14855 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14856 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14857 instead of individual calls to trad_frame_set_reg_addr.
14858
36c25ffa
AH
148592019-01-28 Alan Hayward <alan.hayward@arm.com>
14860
14861 * CONTRIBUTE: Replace contribution list with wiki link.
14862
a0707f3c
TT
148632019-01-25 Tom Tromey <tom@tromey.com>
14864
14865 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14866
0747795c
TT
148672019-01-25 Tom Tromey <tom@tromey.com>
14868
14869 * xtensa-linux-nat.c: Fix common/ includes.
14870 * xml-support.h: Fix common/ includes.
14871 * xml-support.c: Fix common/ includes.
14872 * x86-linux-nat.c: Fix common/ includes.
14873 * windows-nat.c: Fix common/ includes.
14874 * varobj.h: Fix common/ includes.
14875 * varobj.c: Fix common/ includes.
14876 * value.c: Fix common/ includes.
14877 * valops.c: Fix common/ includes.
14878 * utils.c: Fix common/ includes.
14879 * unittests/xml-utils-selftests.c: Fix common/ includes.
14880 * unittests/utils-selftests.c: Fix common/ includes.
14881 * unittests/unpack-selftests.c: Fix common/ includes.
14882 * unittests/tracepoint-selftests.c: Fix common/ includes.
14883 * unittests/style-selftests.c: Fix common/ includes.
14884 * unittests/string_view-selftests.c: Fix common/ includes.
14885 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14886 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14887 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14888 * unittests/rsp-low-selftests.c: Fix common/ includes.
14889 * unittests/parse-connection-spec-selftests.c: Fix common/
14890 includes.
14891 * unittests/optional-selftests.c: Fix common/ includes.
14892 * unittests/offset-type-selftests.c: Fix common/ includes.
14893 * unittests/observable-selftests.c: Fix common/ includes.
14894 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14895 * unittests/memrange-selftests.c: Fix common/ includes.
14896 * unittests/memory-map-selftests.c: Fix common/ includes.
14897 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14898 * unittests/function-view-selftests.c: Fix common/ includes.
14899 * unittests/environ-selftests.c: Fix common/ includes.
14900 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14901 * unittests/common-utils-selftests.c: Fix common/ includes.
14902 * unittests/cli-utils-selftests.c: Fix common/ includes.
14903 * unittests/array-view-selftests.c: Fix common/ includes.
14904 * ui-file.c: Fix common/ includes.
14905 * tui/tui-io.c: Fix common/ includes.
14906 * tracepoint.h: Fix common/ includes.
14907 * tracepoint.c: Fix common/ includes.
14908 * tracefile-tfile.c: Fix common/ includes.
14909 * top.h: Fix common/ includes.
14910 * top.c: Fix common/ includes.
14911 * thread.c: Fix common/ includes.
14912 * target/waitstatus.h: Fix common/ includes.
14913 * target/waitstatus.c: Fix common/ includes.
14914 * target.h: Fix common/ includes.
14915 * target.c: Fix common/ includes.
14916 * target-memory.c: Fix common/ includes.
14917 * target-descriptions.c: Fix common/ includes.
14918 * symtab.h: Fix common/ includes.
14919 * symfile.c: Fix common/ includes.
14920 * stap-probe.c: Fix common/ includes.
14921 * spu-linux-nat.c: Fix common/ includes.
14922 * sparc-nat.c: Fix common/ includes.
14923 * source.c: Fix common/ includes.
14924 * solib.c: Fix common/ includes.
14925 * solib-target.c: Fix common/ includes.
14926 * ser-unix.c: Fix common/ includes.
14927 * ser-tcp.c: Fix common/ includes.
14928 * ser-pipe.c: Fix common/ includes.
14929 * ser-base.c: Fix common/ includes.
14930 * selftest-arch.c: Fix common/ includes.
14931 * s12z-tdep.c: Fix common/ includes.
14932 * rust-exp.y: Fix common/ includes.
14933 * rs6000-aix-tdep.c: Fix common/ includes.
14934 * riscv-tdep.c: Fix common/ includes.
14935 * remote.c: Fix common/ includes.
14936 * remote-notif.h: Fix common/ includes.
14937 * remote-fileio.h: Fix common/ includes.
14938 * remote-fileio.c: Fix common/ includes.
14939 * regcache.h: Fix common/ includes.
14940 * regcache.c: Fix common/ includes.
14941 * record-btrace.c: Fix common/ includes.
14942 * python/python.c: Fix common/ includes.
14943 * python/py-type.c: Fix common/ includes.
14944 * python/py-inferior.c: Fix common/ includes.
14945 * progspace.h: Fix common/ includes.
14946 * producer.c: Fix common/ includes.
14947 * procfs.c: Fix common/ includes.
14948 * proc-api.c: Fix common/ includes.
14949 * printcmd.c: Fix common/ includes.
14950 * ppc-linux-nat.c: Fix common/ includes.
14951 * parser-defs.h: Fix common/ includes.
14952 * osdata.c: Fix common/ includes.
14953 * obsd-nat.c: Fix common/ includes.
14954 * nat/x86-linux.c: Fix common/ includes.
14955 * nat/x86-linux-dregs.c: Fix common/ includes.
14956 * nat/x86-dregs.h: Fix common/ includes.
14957 * nat/x86-dregs.c: Fix common/ includes.
14958 * nat/ppc-linux.c: Fix common/ includes.
14959 * nat/mips-linux-watch.h: Fix common/ includes.
14960 * nat/mips-linux-watch.c: Fix common/ includes.
14961 * nat/linux-waitpid.c: Fix common/ includes.
14962 * nat/linux-ptrace.h: Fix common/ includes.
14963 * nat/linux-ptrace.c: Fix common/ includes.
14964 * nat/linux-procfs.c: Fix common/ includes.
14965 * nat/linux-personality.c: Fix common/ includes.
14966 * nat/linux-osdata.c: Fix common/ includes.
14967 * nat/linux-namespaces.c: Fix common/ includes.
14968 * nat/linux-btrace.h: Fix common/ includes.
14969 * nat/linux-btrace.c: Fix common/ includes.
14970 * nat/fork-inferior.c: Fix common/ includes.
14971 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14972 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14973 * nat/aarch64-linux.c: Fix common/ includes.
14974 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14975 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14976 * namespace.h: Fix common/ includes.
14977 * mips-linux-tdep.c: Fix common/ includes.
14978 * minsyms.c: Fix common/ includes.
14979 * mi/mi-parse.h: Fix common/ includes.
14980 * mi/mi-main.c: Fix common/ includes.
14981 * mi/mi-cmd-env.c: Fix common/ includes.
14982 * memrange.h: Fix common/ includes.
14983 * memattr.c: Fix common/ includes.
14984 * maint.h: Fix common/ includes.
14985 * maint.c: Fix common/ includes.
14986 * main.c: Fix common/ includes.
14987 * machoread.c: Fix common/ includes.
14988 * location.c: Fix common/ includes.
14989 * linux-thread-db.c: Fix common/ includes.
14990 * linux-nat.c: Fix common/ includes.
14991 * linux-fork.c: Fix common/ includes.
14992 * inline-frame.c: Fix common/ includes.
14993 * infrun.c: Fix common/ includes.
14994 * inflow.c: Fix common/ includes.
14995 * inferior.h: Fix common/ includes.
14996 * inferior.c: Fix common/ includes.
14997 * infcmd.c: Fix common/ includes.
14998 * inf-ptrace.c: Fix common/ includes.
14999 * inf-child.c: Fix common/ includes.
15000 * ia64-linux-nat.c: Fix common/ includes.
15001 * i387-tdep.c: Fix common/ includes.
15002 * i386-tdep.c: Fix common/ includes.
15003 * i386-linux-tdep.c: Fix common/ includes.
15004 * i386-linux-nat.c: Fix common/ includes.
15005 * i386-go32-tdep.c: Fix common/ includes.
15006 * i386-fbsd-tdep.c: Fix common/ includes.
15007 * i386-fbsd-nat.c: Fix common/ includes.
15008 * guile/scm-type.c: Fix common/ includes.
15009 * guile/guile.c: Fix common/ includes.
15010 * go32-nat.c: Fix common/ includes.
15011 * gnu-nat.c: Fix common/ includes.
15012 * gdbthread.h: Fix common/ includes.
15013 * gdbarch-selftests.c: Fix common/ includes.
15014 * gdb_usleep.c: Fix common/ includes.
15015 * gdb_select.h: Fix common/ includes.
15016 * gdb_bfd.c: Fix common/ includes.
15017 * gcore.c: Fix common/ includes.
15018 * fork-child.c: Fix common/ includes.
15019 * findvar.c: Fix common/ includes.
15020 * fbsd-nat.c: Fix common/ includes.
15021 * event-top.c: Fix common/ includes.
15022 * event-loop.c: Fix common/ includes.
15023 * dwarf2read.c: Fix common/ includes.
15024 * dwarf2loc.c: Fix common/ includes.
15025 * dwarf2-frame.c: Fix common/ includes.
15026 * dwarf-index-cache.c: Fix common/ includes.
15027 * dtrace-probe.c: Fix common/ includes.
15028 * disasm-selftests.c: Fix common/ includes.
15029 * defs.h: Fix common/ includes.
15030 * csky-tdep.c: Fix common/ includes.
15031 * cp-valprint.c: Fix common/ includes.
15032 * cp-support.h: Fix common/ includes.
15033 * cp-support.c: Fix common/ includes.
15034 * corelow.c: Fix common/ includes.
15035 * completer.h: Fix common/ includes.
15036 * completer.c: Fix common/ includes.
15037 * compile/compile.c: Fix common/ includes.
15038 * compile/compile-loc2c.c: Fix common/ includes.
15039 * compile/compile-cplus-types.c: Fix common/ includes.
15040 * compile/compile-cplus-symbols.c: Fix common/ includes.
15041 * command.h: Fix common/ includes.
15042 * cli/cli-dump.c: Fix common/ includes.
15043 * cli/cli-cmds.c: Fix common/ includes.
15044 * charset.c: Fix common/ includes.
15045 * build-id.c: Fix common/ includes.
15046 * btrace.h: Fix common/ includes.
15047 * btrace.c: Fix common/ includes.
15048 * breakpoint.h: Fix common/ includes.
15049 * breakpoint.c: Fix common/ includes.
15050 * ax.h:
15051 (enum agent_op): Fix common/ includes.
15052 * ax-general.c (struct aop_map): Fix common/ includes.
15053 * ax-gdb.c: Fix common/ includes.
15054 * auxv.c: Fix common/ includes.
15055 * auto-load.c: Fix common/ includes.
15056 * arm-tdep.c: Fix common/ includes.
15057 * arch/riscv.c: Fix common/ includes.
15058 * arch/ppc-linux-common.c: Fix common/ includes.
15059 * arch/i386.c: Fix common/ includes.
15060 * arch/arm.c: Fix common/ includes.
15061 * arch/arm-linux.c: Fix common/ includes.
15062 * arch/arm-get-next-pcs.c: Fix common/ includes.
15063 * arch/amd64.c: Fix common/ includes.
15064 * arch/aarch64.c: Fix common/ includes.
15065 * arch/aarch64-insn.c: Fix common/ includes.
15066 * arch-utils.c: Fix common/ includes.
15067 * amd64-windows-tdep.c: Fix common/ includes.
15068 * amd64-tdep.c: Fix common/ includes.
15069 * amd64-sol2-tdep.c: Fix common/ includes.
15070 * amd64-obsd-tdep.c: Fix common/ includes.
15071 * amd64-nbsd-tdep.c: Fix common/ includes.
15072 * amd64-linux-tdep.c: Fix common/ includes.
15073 * amd64-linux-nat.c: Fix common/ includes.
15074 * amd64-fbsd-tdep.c: Fix common/ includes.
15075 * amd64-fbsd-nat.c: Fix common/ includes.
15076 * amd64-dicos-tdep.c: Fix common/ includes.
15077 * amd64-darwin-tdep.c: Fix common/ includes.
15078 * agent.c: Fix common/ includes.
15079 * ada-lang.h: Fix common/ includes.
15080 * ada-lang.c: Fix common/ includes.
15081 * aarch64-tdep.c: Fix common/ includes.
15082
2f5c153e
TT
150832019-01-25 Tom Tromey <tom@tromey.com>
15084
15085 * common/create-version.sh: Use common/version.h.
15086
adc6a863
PA
150872019-01-24 Pedro Alves <palves@redhat.com>
15088
15089 * infrun.c (signal_stop, signal_print, signal_program)
15090 (signal_catch, signal_pass): Now arrays instead of pointers.
15091 (update_signals_program_target, do_target_resume)
15092 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15093 * linux-nat.c (linux_nat_target::pass_signals)
15094 (linux_nat_target::create_inferior, linux_nat_target::attach):
15095 Adjust.
15096 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15097 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15098 * procfs.c (procfs_target::pass_signals): Adjust.
15099 * record-full.c (record_full_target::resume): Adjust.
15100 * remote.c (remote_target::pass_signals)
15101 (remote_target::program_signals): Adjust.
15102 * target-debug.h (target_debug_print_signals): Now takes a
15103 gdb::array_view as parameter. Adjust.
15104 * target.h (target_ops) <pass_signals, program_signals>: Replace
15105 pointer and length parameters with gdb::array_view.
15106 (target_pass_signals, target_program_signals): Likewise.
15107 * target-delegates.c: Regenerate.
15108
3046d67a
PA
151092019-01-24 Pedro Alves <palves@redhat.com>
15110
15111 * common/forward-scope-exit.h
15112 (forward_scope_exit::forward_scope_exit): Pass arguments to
15113 m_bind_function directly, instead of creating a std::bind and
15114 copying that.
15115
353229bf
AH
151162019-01-24 Alan Hayward <alan.hayward@arm.com>
15117
15118 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15119 for static members.
15120 (pass_in_v_vfp_candidate): Likewise.
15121
311dc83a
TT
151222019-01-23 Tom Tromey <tom@tromey.com>
15123 Pedro Alves <palves@redhat.com>
15124
15125 * regcache.c (class regcache_invalidator): Remove.
15126 (regcache::raw_write): Use make_scope_exit.
15127
296bd123
TT
151282019-01-23 Tom Tromey <tom@tromey.com>
15129
15130 * ui-out.h (class ui_out_emit_type): Update comment.
15131
979a0d13
TT
151322019-01-23 Tom Tromey <tom@tromey.com>
15133
15134 * infrun.c (fetch_inferior_event): Update comment.
15135
d238133d
TT
151362019-01-23 Tom Tromey <tom@tromey.com>
15137 Pedro Alves <palves@redhat.com>
15138
15139 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15140 parameter.
15141 (fetch_inferior_event): Use SCOPE_EXIT.
15142
15143
9885e6bb
TT
151442019-01-23 Tom Tromey <tom@tromey.com>
15145 Pedro Alves <palves@redhat.com>
15146
15147 * infrun.c (disable_thread_events): Delete.
15148 (stop_all_threads): Use SCOPE_EXIT.
15149
286526c1
TT
151502019-01-23 Tom Tromey <tom@tromey.com>
15151 Pedro Alves <palves@redhat.com>
15152
15153 * symfile.c: Include forward-scope-exit.h.
15154 (clear_symtab_users_cleanup): Replace forward declaration with
15155 a FORWARD_SCOPE_EXIT.
15156 (syms_from_objfile_1): Use the forward_scope_exit and
15157 gdb::optional instead of cleanup_function.
15158 (reread_symbols): Use the forward_scope_exit instead of
15159 cleanup_function.
15160 (clear_symtab_users_cleanup): Remove function.
15161
1db93f14
TT
151622019-01-23 Tom Tromey <tom@tromey.com>
15163 Pedro Alves <palves@redhat.com>
15164
15165 * linux-nat.c: Include scope-exit.h.
15166 (cleanup_target_stop): Remove.
15167 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15168 SCOPE_EXIT.
15169
2cc83d1e
TT
151702019-01-23 Tom Tromey <tom@tromey.com>
15171 Pedro Alves <palves@redhat.com>
15172
15173 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15174 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15175
694c6bf5
TT
151762019-01-23 Tom Tromey <tom@tromey.com>
15177 Andrew Burgess <andrew.burgess@embecosm.com>
15178 Pedro Alves <palves@redhat.com>
15179
15180 * infrun.c (fetch_inferior_event): Use scope_exit.
15181 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15182 * top.c (execute_command): Use scope_exit.
15183 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15184 * utils.c (do_bpstat_clear_actions_cleanup)
15185 (make_bpstat_clear_actions_cleanup): Remove.
15186
4c41382a
TT
151872019-01-23 Tom Tromey <tom@tromey.com>
15188 Pedro Alves <palves@redhat.com>
15189
15190 * infrun.c: Include "common/scope-exit.h"
15191 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15192 (wait_for_inferior): Use SCOPE_EXIT.
15193 (fetch_inferior_event): Use scope_exit.
15194
89f8fb50
TT
151952019-01-23 Tom Tromey <tom@tromey.com>
15196 Pedro Alves <palves@redhat.com>
15197
15198 * breakpoint.c (create_breakpoint): Remove cleanup.
15199
5419bdae
TT
152002019-01-23 Tom Tromey <tom@tromey.com>
15201 Andrew Burgess <andrew.burgess@embecosm.com>
15202 Pedro Alves <palves@redhat.com>
15203
e587ef42
PA
152042019-01-23 Pedro Alves <palves@redhat.com>
15205
15206 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15207
77f0e74c
PA
152082019-01-23 Pedro Alves <palves@redhat.com>
15209 Andrew Burgess <andrew.burgess@embecosm.com>
15210
15211 * gdbthread.h: Include "common/forward-scope-exit.h".
15212 (scoped_finish_thread_state): Redefine custom class in terms of
15213 forward_scope_exit.
15214
5b9b3e53
PA
152152019-01-23 Pedro Alves <palves@redhat.com>
15216 Andrew Burgess <andrew.burgess@embecosm.com>
15217
15218 * common/forward-scope-exit.h: New file.
15219
54b65c9b
PA
152202019-01-23 Pedro Alves <palves@redhat.com>
15221 Andrew Burgess <andrew.burgess@embecosm.com>
15222 Tom Tromey <tom@tromey.com>
15223
15224 * common/scope-exit.h: New file.
15225
cf08fb29
PA
152262019-01-23 Pedro Alves <palves@redhat.com>
15227
15228 * common/preprocessor.h (ESC): Rename to ...
15229 (ESC_PARENS): ... this.
15230 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15231 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15232
ae73e2e2
TT
152332019-01-23 Tom Tromey <tom@tromey.com>
15234
15235 * language.h (class scoped_switch_to_sym_language_if_auto):
15236 Initialize m_lang in both cases.
15237
6594e122
AH
152382019-01-23 Alan Hayward <alan.hayward@arm.com>
15239
15240 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15241 with XCNEW.
15242
a7c9855d
TT
152432019-01-22 Tom Tromey <tom@tromey.com>
15244
15245 * corelow.c: Do not include sys/file.h.
15246
93cc1d53
TT
152472019-01-22 Tom Tromey <tom@tromey.com>
15248
15249 * tui/tui-wingeneral.h: Include gdb_curses.h.
15250
38561778
TT
152512019-01-22 Tom Tromey <tom@tromey.com>
15252
15253 * source-cache.h (class source_cache) <get_source_lines,
15254 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15255
37b3ab5b
TT
152562019-01-22 Tom Tromey <tom@tromey.com>
15257
15258 * remote-fileio.h (struct remote_target): Declare.
15259
3fabc016
TT
152602019-01-22 Tom Tromey <tom@tromey.com>
15261
15262 * python/py-arch.c: Do not include py-ref.h.
15263 * python/py-bpevent.c: Do not include py-ref.h.
15264 * python/py-cmd.c: Do not include py-ref.h.
15265 * python/py-continueevent.c: Do not include py-ref.h.
15266 * python/py-event.h: Do not include py-ref.h.
15267 * python/py-evtregistry.c: Do not include py-ref.h.
15268 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15269 * python/py-frame.c: Do not include py-ref.h.
15270 * python/py-framefilter.c: Do not include py-ref.h.
15271 * python/py-function.c: Do not include py-ref.h.
15272 * python/py-infevents.c: Do not include py-ref.h.
15273 * python/py-linetable.c: Do not include py-ref.h.
15274 * python/py-objfile.c: Do not include py-ref.h.
15275 * python/py-param.c: Do not include py-ref.h.
15276 * python/py-prettyprint.c: Do not include py-ref.h.
15277 * python/py-progspace.c: Do not include py-ref.h.
15278 * python/py-symbol.c: Do not include py-ref.h.
15279 * python/py-symtab.c: Do not include py-ref.h.
15280 * python/py-type.c: Do not include py-ref.h.
15281 * python/py-unwind.c: Do not include py-ref.h.
15282 * python/py-utils.c: Do not include py-ref.h.
15283 * python/py-value.c: Do not include py-ref.h.
15284 * python/py-varobj.c: Do not include py-ref.h.
15285 * python/py-xmethods.c: Do not include py-ref.h.
15286 * python/python.c: Do not include py-ref.h.
15287 * varobj.c: Do not include py-ref.h.
15288
6b4d7774
TT
152892019-01-22 Tom Tromey <tom@tromey.com>
15290
15291 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15292 keyword for bcache.
15293
7af7e9b5
TT
152942019-01-22 Tom Tromey <tom@tromey.com>
15295
15296 * compile/compile-cplus-types.c: Remove a comment by #include.
15297
951d1049
TT
152982019-01-22 Tom Tromey <tom@tromey.com>
15299
15300 * compile/gcc-c-plugin.h: Include compile-internal.h.
15301
d65d5705
TT
153022019-01-22 Tom Tromey <tom@tromey.com>
15303
15304 * stabsread.c (EXTERN): Do not define.
15305 (symnum, next_symbol_text_func, processing_gcc_compilation)
15306 (within_function, global_sym_chain, global_stabs)
15307 (previous_stab_code, this_object_header_files)
15308 (n_this_object_header_files)
15309 (n_allocated_this_object_header_files): Define.
15310 * stabsread.h (EXTERN): Never define. Use "extern".
15311
b6fb1ee5
PW
153122019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15313
15314 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15315 history_value.
15316
be6d4f74
TT
153172019-01-21 Tom Tromey <tom@tromey.com>
15318
15319 * ui-out.c: Fix includes.
15320 * tui/tui-source.c: Fix includes.
15321 * target.c: Fix includes.
15322 * remote.c: Fix includes.
15323 * regcache.c: Fix includes.
15324 * python/py-block.c: Fix includes.
15325 * printcmd.c: Fix includes.
15326 * or1k-tdep.c: Fix includes.
15327 * mi/mi-main.c: Fix includes.
15328 * m32r-tdep.c: Fix includes.
15329 * csky-tdep.c: Fix includes.
15330 * compile/compile-cplus-types.c: Fix includes.
15331 * cli/cli-interp.c: Fix includes.
15332
73021deb
AH
153332019-01-21 Alan Hayward <alan.hayward@arm.com>
15334
15335 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15336 for padding.
15337
7932255d
TT
153382019-01-16 Tom Tromey <tom@tromey.com>
15339
15340 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15341 earlier.
15342 (struct objfile) <msymbols_range>: Move from top level.
15343 <msymbols>: New method.
15344 (class objfile_msymbols): Remove.
15345 * symtab.c (default_collect_symbol_completion_matches_break_on):
15346 Update.
15347 * symmisc.c (dump_msymbols): Update.
15348 * stabsread.c (scan_file_globals): Update.
15349 * objc-lang.c (info_selectors_command, info_classes_command)
15350 (find_methods): Update.
15351 * minsyms.c (find_solib_trampoline_target): Update.
15352 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15353 * coffread.c (coff_symfile_read): Update.
15354 * ada-lang.c (ada_lookup_simple_minsym)
15355 (ada_collect_symbol_completion_matches): Update.
15356
604b1bfb
TT
153572019-01-16 Tom Tromey <tom@tromey.com>
15358
15359 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15360 type. Remove no-argument constructor.
15361 <iterator::operator++>: Simplify.
15362 <begin>: Update.
15363 <end>: Use minimal_symbol_count.
15364
f252c6d5
TT
153652019-01-16 Tom Tromey <tom@tromey.com>
15366
15367 * objfiles.h (struct objfile) <psymtabs>: New method.
15368 (class objfile_psymtabs): Remove.
15369 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15370 typedef.
15371 <range>: New method.
15372 (require_partial_symbols): Change return type.
15373 * psymtab.c (require_partial_symbols)
15374 (psym_expand_symtabs_matching): Update.
15375 * mdebugread.c (parse_partial_symbols): Update.
15376 * dbxread.c (dbx_end_psymtab): Update.
15377
b669c953
TT
153782019-01-15 Tom Tromey <tom@tromey.com>
15379
15380 * symtab.c (lookup_objfile_from_block)
15381 (lookup_symbol_in_objfile_symtabs)
15382 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15383 (find_line_symtab, info_sources_command)
15384 (default_collect_symbol_completion_matches_break_on)
15385 (make_source_files_completion_list): Update.
15386 * symmisc.c (print_objfile_statistics, dump_objfile)
15387 (maintenance_print_symbols, maintenance_info_symtabs)
15388 (maintenance_check_symtabs, maintenance_info_line_tables):
15389 Update.
15390 * source.c (select_source_symtab)
15391 (forget_cached_source_info_for_objfile): Update.
15392 * objfiles.h (class objfile_compunits): Remove.
15393 (struct objfile) <compunits_range>: New typedef.
15394 (compunits): New method.
15395 * objfiles.c (objfile_relocate1): Update.
15396 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15397 * maint.c (count_symtabs_and_blocks): Update.
15398 * linespec.c (iterate_over_all_matching_symtabs): Update.
15399 * cp-support.c (add_symbol_overload_list_qualified): Update.
15400 * coffread.c (coff_symtab_read): Update.
15401 * ada-lang.c (add_nonlocal_symbols)
15402 (ada_collect_symbol_completion_matches)
15403 (ada_add_global_exceptions): Update.
15404
7e955d83
TT
154052019-01-15 Tom Tromey <tom@tromey.com>
15406
15407 * progspace.h (program_space) <objfiles_safe_range>: New
15408 typedef.
15409 <objfiles_safe>: New method.
15410 * objfiles.h (class all_objfiles_safe): Remove.
15411 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15412 * jit.c (jit_inferior_exit_hook): Update.
15413
2030c079
TT
154142019-01-17 Tom Tromey <tom@tromey.com>
15415
15416 * progspace.h (program_space) <objfiles_range>: New typedef.
15417 <objfiles>: New method.
15418 <objfiles_head>: Rename from objfiles.
15419 (object_files): Update.
15420 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15421 * guile/scm-pretty-print.c
15422 (ppscm_find_pretty_printer_from_objfiles): Update.
15423 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15424 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15425 Update.
15426 * python/py-progspace.c (pspy_get_objfiles): Update.
15427 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15428 Update.
15429 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15430 (objfpy_lookup_objfile_by_build_id): Update.
15431 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15432 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15433 Update.
15434 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15435 (expand_symtab_containing_pc, lookup_objfile_from_block)
15436 (lookup_static_symbol, basic_lookup_transparent_type)
15437 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15438 (find_line_symtab, info_sources_command)
15439 (default_collect_symbol_completion_matches_break_on)
15440 (make_source_files_completion_list, find_main_name): Update.
15441 * symmisc.c (print_symbol_bcache_statistics)
15442 (print_objfile_statistics, maintenance_print_symbols)
15443 (maintenance_print_msymbols, maintenance_print_objfiles)
15444 (maintenance_info_symtabs, maintenance_check_symtabs)
15445 (maintenance_expand_symtabs, maintenance_info_line_tables):
15446 Update.
15447 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15448 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15449 (map_overlay_command, unmap_overlay_command)
15450 (simple_overlay_update, expand_symtabs_matching)
15451 (map_symbol_filenames): Update.
15452 * symfile-debug.c (set_debug_symfile): Update.
15453 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15454 Update.
15455 * source.c (select_source_symtab, forget_cached_source_info):
15456 Update.
15457 * solib.c (solib_read_symbols): Update.
15458 * solib-spu.c (append_ocl_sos): Update.
15459 * psymtab.c (maintenance_print_psymbols)
15460 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15461 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15462 * printcmd.c (info_symbol_command): Update.
15463 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15464 Update.
15465 * objfiles.h (class all_objfiles): Remove.
15466 * objfiles.c (have_partial_symbols, have_full_symbols)
15467 (have_minimal_symbols, qsort_cmp, update_section_map)
15468 (shared_objfile_contains_address_p)
15469 (default_iterate_over_objfiles_in_search_order): Update.
15470 * objc-lang.c (info_selectors_command, info_classes_command)
15471 (find_methods): Update.
15472 * minsyms.c (find_solib_trampoline_target): Update.
15473 * maint.c (maintenance_info_sections)
15474 (maintenance_translate_address, count_symtabs_and_blocks):
15475 Update.
15476 * main.c (captured_main_1): Update.
15477 * linux-thread-db.c (try_thread_db_load_from_pdir)
15478 (has_libpthread): Update.
15479 * linespec.c (iterate_over_all_matching_symtabs)
15480 (search_minsyms_for_name): Update.
15481 * jit.c (jit_find_objf_with_entry_addr): Update.
15482 * hppa-tdep.c (find_unwind_entry)
15483 (hppa_lookup_stub_minimal_symbol): Update.
15484 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15485 Update.
15486 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15487 (elf_gnu_ifunc_resolve_by_got): Update.
15488 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15489 * dwarf-index-write.c (save_gdb_index_command): Update.
15490 * cp-support.c (add_symbol_overload_list_qualified): Update.
15491 * breakpoint.c (create_overlay_event_breakpoint)
15492 (create_longjmp_master_breakpoint)
15493 (create_std_terminate_master_breakpoint)
15494 (create_exception_master_breakpoint): Update.
15495 * blockframe.c (find_pc_partial_function): Update.
15496 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15497 (ada_collect_symbol_completion_matches)
15498 (ada_add_global_exceptions): Update.
15499
776489e0
TT
155002019-01-17 Tom Tromey <tom@tromey.com>
15501
15502 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15503 declare VEC.
15504 (solib_target_parse_libraries): Change return type.
15505 (library_list_start_segment, library_list_start_section)
15506 (library_list_end_library, library_list_start_library); Update.
15507 (solib_target_free_library_list): Remove.
15508 (solib_target_parse_libraries): Remove cleanup. Change return
15509 type.
15510 (solib_target_current_sos): Update.
15511
6471e7d2
TT
155122019-01-17 Tom Tromey <tromey@bapiya>
15513
15514 * valprint.c: Replace "the the" with "the".
15515 * symtab.c: Replace "the the" with "the".
15516 * solib.c: Replace "the the" with "the".
15517 * solib-dsbt.c: Replace "the the" with "the".
15518 * linespec.c: Replace "the the" with "the".
15519 * dwarf2loc.h: Replace "the the" with "the".
15520 * amd64-windows-tdep.c: Replace "the the" with "the".
15521 * aarch64-tdep.c: Replace "the the" with "the".
15522
c24bdb02
KS
155232019-01-16 Keith Seitz <keiths@redhat.com>
15524
15525 PR gdb/23773
15526 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15527 <builder>: Rename to ..
15528 <m_builder>: ... this and make private.
15529 (dwarf2_cu::get_builder): New method. Change all users of
15530 `builder' to use this method.
15531 (dwarf2_start_symtab): Move to ...
15532 (dwarf2_cu::start_symtab): ... here. Update all callers
15533 (setup_type_unit_groups): Move to ...
15534 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15535 callers.
15536 (dwarf2_cu::reset_builder): New method.
15537 (process_full_compunit, process_full_type_unit): Use
15538 dwarf2_cu::reset_builder.
15539 (follow_die_offset): Record the ancestor CU if it is different
15540 from the followed DIE's CU.
15541 (follow_die_sig_1): Likewise.
15542
8d64371b
TT
155432019-01-15 Tom Tromey <tom@tromey.com>
15544
15545 * remote.c (class remote_state) <buf>: Now a char_vector.
15546 <buf_size>: Remove.
15547 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15548 parameter.
15549 (remote_target::getpkt_or_notif_sane_1)
15550 (remote_target::getpkt_sane)
15551 (remote_target::getpkt_or_notif_sane): Likewise.
15552 (class remote_target) <putpkt>: New overload.
15553 (remote_target::read_frame): Change type of "buf_p". Remove
15554 sizeof_p parameter.
15555 (packet_ok): New overload.
15556 (packet_check_result): New overload.
15557 Update all uses.
15558
bb277751
TT
155592019-01-14 Tom Tromey <tom@tromey.com>
15560
15561 * remote-notif.c (handle_notification, remote_notif_ack)
15562 (remote_notif_parse): Make "buf" const.
15563 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15564 const.
15565 (remote_notif_parse, remote_notif_ack, handle_notification):
15566 Likewise.
15567 * remote.c (remote_notif_stop_parse): Make "buf" const.
15568 (remote_target::remote_parse_stop_reply): Make "buf" const.
15569 (remote_notif_stop_ack): Make "buf" const.
15570
05be00a8
TT
155712019-01-14 Tom Tromey <tom@tromey.com>
15572
15573 * remote.c (remote_console_output): Make parameter const.
15574
491adeca
TT
155752019-01-14 Tom Tromey <tom@tromey.com>
15576
15577 * target-debug.h (target_debug_print_signals): Constify.
15578 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15579 * procfs.c (procfs_target::pass_signals): Update.
15580 * linux-nat.c (linux_nat_target::pass_signals): Update.
15581 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15582 * target-delegates.c: Rebuild.
15583 * remote.c (remote_target::program_signals): Update.
15584 (remote_target::pass_signals): Update.
15585 * target.c (target_pass_signals): Constify argument.
15586 (target_program_signals): Likewise.
15587 * target.h (struct target_ops) <pass_signals, program_signals>:
15588 Constify argument.
15589 (target_pass_signals, target_program_signals): Constify argument.
15590
bbd94648
TT
155912019-01-14 Tom Tromey <tom@tromey.com>
15592
15593 PR tui/28819:
15594 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15595
6f072a10
PFC
155962019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15597
15598 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15599 field.
15600 * rs6000-tdep.c: Include reggroups.h.
15601 (IS_V_ALIAS_PSEUDOREG): Define.
15602 (rs6000_register_name): Return names for the "vX" aliases.
15603 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15604 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15605 aliases. Call default_register_reggroup_p for all other
15606 pseudo-registers.
15607 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15608 New functions.
15609 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15610 Handle "vX" aliases.
15611 (v_alias_pseudo_register_collect): New function.
15612 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15613 (rs6000_gdbarch_init): Initialize "vX" aliases as
15614 pseudo-registers. Restore registration of
15615 rs6000_pseudo_register_reggroup_p with
15616 set_tdesc_pseudo_register_reggroup_p.
15617
1a782351
MF
156182019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15619
15620 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15621 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15622 set_gdbarch_num_pseudo_regs.
15623
d73cff18
PW
156242019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15625
15626 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15627 Remove arg prefixname, add do_set and do_show.
15628 Add member functions set_list and show_list.
15629 * cli/cli-style.c (class cli_style_option): Update accordingly.
15630 (style_set_list): Move to file scope.
15631 (style_show_list): Likewise.
15632 (set_style): Call help_list.
15633 (show_style): Call cmd_show_list.
15634 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15635 Update to use the new macro.
15636
60a90376
JB
156372019-10-12 Joel Brobecker <brobecker@adacore.com>
15638
15639 * ada-lang.c (_initialize_ada_language): Expand the help text
15640 for the "catch exception" command.
15641
9d7c67bf
PW
156422019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15643
15644 * symtab.c (matching_obj_sections): Initialize obj,
15645 declare it closer to its usage.
15646
7cf47dc4
TT
156472019-01-10 Tom Tromey <tom@tromey.com>
15648
15649 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15650 (basic_inf_threads_range): Remove.
15651 (inf_threads_range, inf_non_exited_threads_range)
15652 (safe_inf_threads_range): Use next_adapter.
15653
d3cb6808
KS
156542019-01-10 Keith Seitz <keiths@redhat.com>
15655
15656 PR gdb/23712
15657 PR symtab/23010
15658 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15659 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15660
63a20375
KS
156612019-01-10 Keith Seitz <keiths@redhat.com>
15662
15663 PR gdb/23712
15664 PR symtab/23010
15665 * dictionary.c (pending_to_vector): Remove.
15666 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15667 Remove _1 suffix, replacing functions of the same name. Update
15668 all callers.
15669 (dict_create_hashed, dict_create_hashed_expandable)
15670 (dict_create_linear, dict_create_linear_expandable, dict_free)
15671 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15672 Make functions static.
15673
b026f593
KS
156742019-01-10 Keith Seitz <keiths@redhat.com>
15675
15676 PR gdb/23712
15677 PR symtab/23010
15678 * dictionary.h (struct dictionary): Replace declaration with
15679 multidictionary.
15680 (dict_create_hashed, dict_create_hashed_expandable)
15681 (dict_create_linear, dict_create_linear_expandable)
15682 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15683 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15684 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15685 taking multidictionary argument.
15686 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15687 * block.h (struct block) <dict>: Change to multidictionary
15688 and rename `multidict'.
15689 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15690 symmisc.c: Update all dictionary references to multidictionary.
15691
c7748ee9
KS
156922019-01-10 Keith Seitz <keiths@redhat.com>
15693
15694 PR gdb/23712
15695 PR symtab/23010
15696 * dictionary.c: Include unordered_map.
15697 (pending_to_vector): New function.
15698 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15699 Rewrite the non-"_1" functions to take vector instead
15700 of linked list.
15701 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15702 "new" _1 versions of the same name.
15703 (multidictionary): Define.
15704 (std::hash<enum language): New definition.
15705 (collate_pending_symbols_by_language, mdict_create_hashed)
15706 (mdict_create_hashed_expandable, mdict_create_linear)
15707 (mdict_create_linear_expandable, mdict_free)
15708 (find_language_dictionary, create_new_language_dictionary)
15709 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15710 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15711 (mdict_size, mdict_empty): New functions.
15712 * dictionary.h (mdict_iterator): Define.
15713
67aa1f3c
PA
157142019-01-10 Pedro Alves <palves@redhat.com>
15715
15716 * breakpoint.c (read_uploaded_action)
15717 (create_tracepoint_from_upload): Adjust to use
15718 gdb::unique_xmalloc_ptr.
15719 * ctf.c (ctf_write_uploaded_tp):
15720 (SET_ARRAY_FIELD): Use emplace_back.
15721 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15722 * tracefile-tfile.c (tfile_write_uploaded_tp):
15723 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15724 gdb::unique_xmalloc_ptr.
15725 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15726 at_string, cond_string, cmd_strings>: Replace char pointers
15727 with gdb::unique_xmalloc_ptr.
15728
2f667667
PA
157292019-01-10 Pedro Alves <palves@redhat.com>
15730
15731 * solib-target.c (library_list_start_library): Don't xstrdup name.
15732
36cb7237
PA
157332019-01-10 Pedro Alves <palves@redhat.com>
15734
15735 * mdebugread.c (parse_partial_symbols): Use
15736 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15737
da584958
AB
157382019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15739
15740 * linux-fork.c (scoped_switch_fork_info)
15741 <~scoped_switch_fork_info>: Fix incorrect variable name.
15742
1ef8573c
AB
157432019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15744
15745 * linux-fork.c (scoped_switch_fork_info)
15746 <scoped_switch_fork_info>: Make explicit.
15747 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15748
8d7bcccb
TT
157492019-01-10 Tom Tromey <tom@tromey.com>
15750
15751 * objfiles.h (objfile::reset_psymtabs): Update.
15752 * objfiles.c (objfile::objfile): Update.
15753 * psymtab.h (psymtab_storage::obstack): Update.
15754 (psymtab_storage::m_obstack): Use gdb::optional.
15755 (class psymtab_storage): Update comment. Remove objfile
15756 parameter.
15757 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15758
b596a3c7
TT
157592019-01-10 Tom Tromey <tom@tromey.com>
15760
15761 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15762 <free_psymtabs>: Now private.
15763 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15764 (allocate_psymtab): Use new method.
15765
a9342b62
TT
157662019-01-10 Tom Tromey <tom@tromey.com>
15767
15768 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15769 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15770 * mdebugread.c (parse_partial_symbols): Use
15771 allocate_dependencies.
15772 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15773 allocate_dependencies.
15774 (process_psymtab_comp_unit_reader)
15775 (build_type_psymtab_dependencies): Likewise.
15776 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15777
5af70966
TT
157782019-01-10 Tom Tromey <tom@tromey.com>
15779
15780 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15781 PSYMBOL_SET_LANGUAGE.
15782 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15783
5923a04c
TT
157842019-01-10 Tom Tromey <tom@tromey.com>
15785
15786 * psymtab.h (psymtab_storage::obstack): New method.
15787 <m_obstack>: Rename from obstack; now private.
15788 * psymtab.c (psymtab_storage): Update.
15789 * dwarf2read.c (create_addrmap_from_index)
15790 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15791 Update.
15792
6d6a12bf
TT
157932019-01-10 Tom Tromey <tom@tromey.com>
15794
15795 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15796 * objfiles.h (objfile::reset_psymtabs): New method.
15797
d320c2b5
TT
157982019-01-10 Tom Tromey <tom@tromey.com>
15799
15800 * symmisc.c (print_symbol_bcache_statistics): Update.
15801 (print_objfile_statistics): Update.
15802 * symfile.c (reread_symbols): Update.
15803 * psymtab.h (class psymtab_storage): New.
15804 * psymtab.c (psymtab_storage): New constructor.
15805 (~psymtab_storage): New destructor.
15806 (require_partial_symbols): Update.
15807 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15808 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15809 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15810 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15811 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15812 (start_psymtab_common, end_psymtab_common)
15813 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15814 (allocate_psymtab): Update.
15815 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15816 Update.
15817 (dump_psymtab_addrmap, maintenance_print_psymbols)
15818 (maintenance_check_psymtabs): Update.
15819 (class objfile_psymtabs): Move to objfiles.h.
15820 * psympriv.h (discard_psymtab): Now inline.
15821 (psymtab_discarder::psymtab_discarder): Update.
15822 (psymtab_discarder::~psymtab_discarder): Update.
15823 (ALL_OBJFILE_PSYMTABS): Rewrite.
15824 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15825 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15826 Remove fields.
15827 <partial_symtabs>: New field.
15828 (class objfile_psymtabs): Move from psymtab.h. Update.
15829 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15830 psymbol_cache.
15831 (objfile::~objfile): Don't destroy psymbol_cache.
15832 * mdebugread.c (parse_partial_symbols): Update.
15833 * dwarf2read.c (create_addrmap_from_index)
15834 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15835 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15836 (add_partial_subprogram, dwarf2_ranges_read): Update.
15837 * dwarf-index-write.c (write_address_map)
15838 (write_one_signatured_type, recursively_write_psymbols)
15839 (class debug_names, class debug_names, write_psymtabs_to_index):
15840 Update.
15841
1d94a5a3
TT
158422019-01-10 Tom Tromey <tom@tromey.com>
15843
15844 * symtab.h (SYMBOL_SET_NAMES): Update.
15845 (symbol_set_names): Update.
15846 (MSYMBOL_SET_NAMES): Update.
15847 * symtab.c (symbol_set_names): Change argument to be an
15848 objfile_per_bfd_storage.
15849 * psymtab.c (add_psymbol_to_bcache): Update.
15850 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15851
0f14768a
TT
158522019-01-10 Tom Tromey <tom@tromey.com>
15853
15854 * symtab.c (create_demangled_names_hash): Change argument to be an
15855 objfile_per_bfd_storage.
15856 (symbol_set_names): Update.
15857
6eee24ce
TT
158582019-01-10 Tom Tromey <tom@tromey.com>
15859
15860 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15861 init_psymbol_list.
15862 * psymtab.c (init_psymbol_list): Do nothing if already called.
15863 * psympriv.h (init_psymbol_list): Add comment.
15864 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15865 init_psymbol_list.
15866 * dbxread.c (dbx_symfile_read): Unconditionally call
15867 init_psymbol_list.
15868
75aedd27
TT
158692019-01-10 Tom Tromey <tom@tromey.com>
15870
15871 * xcoffread.c (scan_xcoff_symtab): Update.
15872 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15873 "where".
15874 * mdebugread.c (parse_partial_symbols)
15875 (handle_psymbol_enumerators): Update.
15876 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15877 * dbxread.c (read_dbx_symtab): Update.
15878 * psympriv.h (psymbol_placement): New enum.
15879 (add_psymbol_to_list): Update.
15880
939652a5
TT
158812019-01-10 Tom Tromey <tom@tromey.com>
15882
15883 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15884 static_psymbols parameters.
15885 (scan_xcoff_symtab): Update.
15886 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15887 static_psymbols parameters.
15888 * psympriv.h (start_psymtab_common): Update.
15889 * mdebugread.c (parse_partial_symbols): Update.
15890 * dwarf2read.c (create_partial_symtab): Update.
15891 * dbxread.c (read_dbx_symtab): Update.
15892 (start_psymtab): Remove global_psymbols and static_psymbols
15893 parameters.
15894
baa62830
TT
158952019-01-10 Tom Tromey <tom@tromey.com>
15896
15897 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15898 * psymtab.c (allocate_psymtab): Add comment.
15899 * psympriv.h (allocate_psymtab): Add comment.
15900 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15901 initializations.
15902 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15903
0e8f53ba
TT
159042019-01-10 Tom Tromey <tom@tromey.com>
15905
15906 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15907 Don't declare.
15908 * mipsread.c: Include mdebugread.h.
15909 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15910 Declare.
15911 * elfread.c: Include mdebugread.h.
15912
b22a7c6a
TT
159132019-01-09 Tom Tromey <tom@tromey.com>
15914
15915 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15916 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15917 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15918 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15919 (psym_lookup_symbol, psym_find_last_source_symtab)
15920 (psym_forget_cached_source_info, psym_print_stats)
15921 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15922 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15923 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15924 (psym_find_compunit_symtab_by_address)
15925 (maintenance_print_psymbols, maintenance_info_psymtabs)
15926 (maintenance_check_psymtabs): Use ranged for.
15927 * psymtab.h (class objfile_psymtabs): New.
15928 (require_partial_symbols): Return objfile_psymtabs.
15929 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15930
3b9d3ac2
TT
159312019-01-09 Tom Tromey <tom@tromey.com>
15932
15933 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15934 (find_pc_mapped_section, list_overlays_command)
15935 (map_overlay_command, unmap_overlay_command)
15936 (simple_overlay_update): Use all_objfiles.
15937 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15938 * printcmd.c (info_symbol_command): Use all_objfiles.
15939 * objfiles.h (ALL_OBJSECTIONS): Remove.
15940 * maint.c (maintenance_translate_address): Use all_objfiles.
15941 * gcore.c (gcore_create_callback): Use all_objfiles.
15942 (objfile_find_memory_regions): Likewise.
15943
8b31193a
TT
159442019-01-09 Tom Tromey <tom@tromey.com>
15945
15946 * symtab.c (find_line_symtab, info_sources_command)
15947 (make_source_files_completion_list): Use objfile_compunits.
15948 * source.c (select_source_symtab): Use objfile_compunits.
15949 * objfiles.h (struct objfile): Update comment.
15950 (ALL_OBJFILES): Remove.
15951 (ALL_FILETABS): Remove.
15952 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15953 objfile_compunits.
15954
d5da8b3c
TT
159552019-01-09 Tom Tromey <tom@tromey.com>
15956
15957 * symmisc.c (print_objfile_statistics, dump_objfile)
15958 (maintenance_print_symbols): Use compunit_filetabs.
15959 * source.c (forget_cached_source_info_for_objfile): Use
15960 compunit_filetabs.
15961 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15962 (ALL_FILETABS): Use compunit_filetabs.
15963 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15964 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15965
5accd1a0
TT
159662019-01-09 Tom Tromey <tom@tromey.com>
15967
15968 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15969 (compunit_filetabs): New.
15970 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15971 compunit_filetabs.
15972 (info_sources_command, make_source_files_completion_list): Remove
15973 declaration.
15974 * symmisc.c (print_objfile_statistics, dump_objfile)
15975 (maintenance_print_symbols): Remove declaration.
15976 (maintenance_info_symtabs): Use compunit_filetabs.
15977 (maintenance_info_line_tables): Likewise.
15978 * source.c (select_source_symtab): Change local variable name.
15979 (forget_cached_source_info_for_objfile): Remove declaration.
15980 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15981 * objfiles.c (objfile_relocate1): Remove declaration.
15982 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15983 declaration.
15984 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15985 * coffread.c (coff_symtab_read): Remove declaration.
15986 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15987 compunit_filetabs.
15988
d8aeb77f
TT
159892019-01-09 Tom Tromey <tom@tromey.com>
15990
15991 * symtab.c (lookup_objfile_from_block)
15992 (find_pc_sect_compunit_symtab, search_symbols)
15993 (default_collect_symbol_completion_matches_break_on): Use
15994 objfile_compunits.
15995 * objfiles.h (ALL_COMPUNITS): Remove.
15996 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15997 * cp-support.c (add_symbol_overload_list_qualified): Use
15998 objfile_compunits.
15999 * ada-lang.c (ada_collect_symbol_completion_matches)
16000 (ada_add_global_exceptions): Use objfile_compunits.
16001
592553c4
TT
160022019-01-09 Tom Tromey <tom@tromey.com>
16003
16004 * source.c (select_source_symtab)
16005 (forget_cached_source_info_for_objfile): Remove declaration.
16006 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16007 declaration.
16008 * maint.c (count_symtabs_and_blocks): Remove declaration.
16009 * cp-support.c (add_symbol_overload_list_qualified): Remove
16010 declaration.
16011 * coffread.c (coff_symtab_read): Remove declaration.
16012 * symtab.c (lookup_symbol_in_objfile_symtabs)
16013 (basic_lookup_transparent_type_1): Use objfile_compunits.
16014 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16015 (info_sources_command, search_symbols)
16016 (default_collect_symbol_completion_matches_break_on)
16017 (make_source_files_completion_list): Remove declaration.
16018 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16019 (ada_collect_symbol_completion_matches)
16020 (ada_add_global_exceptions): Remove declaration.
16021 * linespec.c (iterate_over_all_matching_symtabs): Use
16022 objfile_compunits.
16023 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16024 (class objfile_compunits): New.
16025 (ALL_COMPUNITS): Use objfile_compunits.
16026 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16027 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16028 objfile_compunits.
16029 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16030
5325b9bf
TT
160312019-01-09 Tom Tromey <tom@tromey.com>
16032
16033 * symtab.c (search_symbols)
16034 (default_collect_symbol_completion_matches_break_on): Use
16035 objfile_msymbols.
16036 * ada-lang.c (ada_lookup_simple_minsym)
16037 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16038 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16039 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16040 objfile_msymbols.
16041 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16042 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16043 * objc-lang.c (find_methods): Use objfile_msymbols.
16044 (info_selectors_command, info_classes_command): Likewise.
16045 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16046 * objfiles.h (class objfile_msymbols): New.
16047 (ALL_OBJFILE_MSYMBOLS): Remove.
16048 (ALL_MSYMBOLS): Remove.
16049
cac85af2
TT
160502019-01-09 Tom Tromey <tom@tromey.com>
16051
16052 * common/next-iterator.h (next_adapter): Add Iterator template
16053 parameter.
16054 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16055 (class all_objfiles_safe): New.
16056 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16057 * objfiles.c (put_objfile_before): Update comment.
16058 (add_separate_debug_objfile): Likewise.
16059 (free_all_objfiles): Use all_objfiles_safe.
16060 (objfile_purge_solibs): Likewise.
16061
aed57c53
TT
160622019-01-09 Tom Tromey <tom@tromey.com>
16063
16064 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16065 (expand_symtab_containing_pc, lookup_static_symbol)
16066 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16067 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16068 all_objfiles.
16069 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16070 * breakpoint.c (create_overlay_event_breakpoint)
16071 (create_longjmp_master_breakpoint)
16072 (create_std_terminate_master_breakpoint)
16073 (create_exception_master_breakpoint): Use all_objfiles.
16074 * linux-thread-db.c (try_thread_db_load_from_pdir)
16075 (has_libpthread): Use all_objfiles.
16076 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16077 * linespec.c (iterate_over_all_matching_symtabs)
16078 (search_minsyms_for_name): Use all_objfiles.
16079 * maint.c (maintenance_info_sections): Use all_objfiles.
16080 * main.c (captured_main_1): Use all_objfiles.
16081 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16082 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16083 * guile/scm-pretty-print.c
16084 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16085 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16086 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16087 (maintenance_print_msymbols): Use all_objfiles.
16088 * source.c (select_source_symtab): Use all_objfiles.
16089 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16090 * symfile.c (remove_symbol_file_command)
16091 (expand_symtabs_matching, map_symbol_filenames): Use
16092 all_objfiles.
16093 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16094 all_objfiles.
16095 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16096 * objc-lang.c (find_methods): Use all_objfiles.
16097 * objfiles.c (have_partial_symbols, have_full_symbols)
16098 (have_minimal_symbols, qsort_cmp)
16099 (default_iterate_over_objfiles_in_search_order): Use
16100 all_objfiles.
16101 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16102 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16103 (maintenance_check_psymtabs): Use all_objfiles.
16104 (ALL_PSYMTABS): Remove.
16105 * compile/compile-object-run.c (do_module_cleanup): Use
16106 all_objfiles.
16107 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16108 * cp-support.c (add_symbol_overload_list_qualified): Use
16109 all_objfiles.
16110 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16111 Use all_objfiles.
16112 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16113 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16114 all_objfiles.
16115 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16116 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16117 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16118 Uses all_objfiles.
16119 * solib.c (solib_read_symbols): Use all_objfiles
16120
99d89cde
TT
161212019-01-09 Tom Tromey <tom@tromey.com>
16122
16123 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16124 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16125 all_objfiles.
16126 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16127 * symmisc.c (print_symbol_bcache_statistics)
16128 (print_objfile_statistics, maintenance_print_objfiles)
16129 (maintenance_info_symtabs, maintenance_check_symtabs)
16130 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16131 all_objfiles.
16132 * source.c (forget_cached_source_info): Use all_objfiles.
16133 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16134 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16135 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16136 * objfiles.c (update_section_map): Use all_objfiles.
16137 (shared_objfile_contains_address_p): Likewise.
16138 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16139 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16140
21708325
TT
161412019-01-09 Tom Tromey <tom@tromey.com>
16142
16143 * common/next-iterator.h: New file.
16144 * objfiles.h (class all_objfiles): New.
16145 (struct objfile_iterator): New.
16146
669e09f6
PW
161472019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16148
16149 * NEWS: Move the description of the changed "frame", "select-frame",
16150 and "info frame" commands to the Changed commands section.
16151
041be526
SM
161522019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16153
16154 * gdbtypes.c (check_stub_method_group): Remove handling of old
16155 mangling schemes.
16156 * linespec.c (find_methods): Likewise.
16157 * stabsread.c (read_member_functions): Likewise.
16158 * valops.c (search_struct_method): Likewise.
16159 (value_struct_elt_for_reference): Likewise.
16160 * NEWS: Mention this change.
16161
0e2a2133
AB
161622019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16163
16164 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16165 print_source_lines.
16166 * source.c (print_source_lines_base): Update line number check.
16167 (print_source_lines): New function.
16168 (source_lines_range::source_lines_range): New function.
16169 * source.h (class source_lines_range): New class.
16170 (print_source_lines): New declaration.
16171
1055a3b4
PW
161722019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16173
16174 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16175
cfeadda5
TT
161762019-01-08 Tom Tromey <tom@tromey.com>
16177 Simon Marchi <simon.marchi@ericsson.com>
16178
16179 PR gdb/24060
16180 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16181 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16182 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16183 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16184 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16185 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16186
583068ca
AB
161872019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16188
16189 * source.c (select_source_symtab): Move header comment to
16190 declaration in source.h.
16191 (forget_cached_source_info_for_objfile): Likewise.
16192 (forget_cached_source_info): Likewise.
16193 (identify_source_line): Likewise.
16194 * source.h (identify_source_line): Move declaration from symtab.h
16195 and add comment from source.c
16196 (print_source_lines): Likewise.
16197 (forget_cached_source_info_for_objfile): Likewise.
16198 (forget_cached_source_info): Likewise.
16199 (select_source_symtab): Likewise.
16200 (enum print_source_lines_flag): Move definition from symtab.h.
16201 * symtab.h (identify_source_line): Move declaration to source.h.
16202 (print_source_lines): Likewise.
16203 (forget_cached_source_info_for_objfile): Likewise.
16204 (forget_cached_source_info): Likewise.
16205 (select_source_symtab): Likewise.
16206 (enum print_source_lines_flag): Move definition to source.h.
16207 * tui/tui-hooks.c: Add 'source.h' include.
16208
ec98a4ad
AB
162092019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16210
16211 * source.c (print_source_lines_base): Handle requests to print
16212 reverse line number sequences, and guard against empty lines
16213 string.
16214
62ea19c1
AB
162152019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16216
16217 * source.c (print_source_lines_base): Fix skip of '\r' if next
16218 character is '\n'.
16219
9d30e1fd
TT
162202019-01-06 Tom Tromey <tom@tromey.com>
16221
16222 * c-exp.y (struct c_parse_state) <macro_original_text,
16223 expansion_obstack>: New member.
16224 (macro_original_text, expansion_obstack): Remove globals.
16225 (scan_macro_expansion, scanning_macro_expansion)
16226 (finished_macro_expansion): Update.
16227 (scan_macro_cleanup): Remove.
16228 (yylex, c_parse): Update.
16229
c65bac38
TT
162302019-01-06 Tom Tromey <tom@tromey.com>
16231
16232 * c-exp.y (struct c_parse_state) <strings>: New member.
16233 (operator_stoken): Update.
16234
02e12e38
TT
162352019-01-06 Tom Tromey <tom@tromey.com>
16236
16237 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16238 (union type_stack_elt) <typelist_val>: Now a pointer to
16239 std::vector.
16240 (type_stack_cleanup): Don't declare.
16241 (push_typelist): Update.
16242 * parse.c (pop_typelist): Return a std::vector.
16243 (push_typelist): Take a std::vector.
16244 (follow_types): Update. Do not free args.
16245 (type_stack_cleanup): Remove.
16246 * c-exp.y (struct c_parse_state): New.
16247 (cpstate): New global.
16248 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16249 (nonempty_typelist): Update.
16250 (func_mod): Create a new vector.
16251 (c_parse): Create a c_parse_state.
16252 (check_parameter_typelist): Do not delete params.
16253 (function_method): Update. Do not delete type_list.
16254
f097f5ad
TT
162552019-01-06 Tom Tromey <tom@tromey.com>
16256
16257 PR gdb/28155:
16258 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16259 check_typedef.
16260 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16261 (print_return_value): Likewise.
16262
d2adf9f1
TT
162632019-01-05 Tom Tromey <tom@tromey.com>
16264
16265 * contrib/cleanup_check.py: Remove.
16266 * contrib/gcc-with-excheck: Remove.
16267 * contrib/exsummary.py: Remove.
16268 * contrib/excheck.py: Remove.
16269
2eab46b1
JB
162702019-01-05 Joel Brobecker <brobecker@adacore.com>
16271
16272 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16273 NULL. Initialize tpprev to NULL instead of assigning it
16274 to NULL on the next statement.
16275 * windows-nat.c (windows_delete_thread): Remove check for
16276 main_thread_id before printing thread exit notifications.
16277 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16278 Remove thread ID check against main_thread_id.
16279 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16280 windows_delete_thread.
16281 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16282
48c5e7e2
TT
162832019-01-04 Tom Tromey <tom@tromey.com>
16284
16285 * compile/compile.c (_initialize_compile): Use upper case for
16286 metasyntactic variables.
16287 * symmisc.c (_initialize_symmisc): Use upper case for
16288 metasyntactic variables.
16289 * psymtab.c (_initialize_psymtab): Use upper case for
16290 metasyntactic variables.
16291 * demangle.c (demangle_command): Use upper case for metasyntactic
16292 variables.
16293 (_initialize_demangler): Likewise.
16294 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16295 variables.
16296
986041cd
TT
162972019-01-03 Tom Tromey <tom@tromey.com>
16298
16299 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16300
7c711119
TT
163012019-01-03 Tom Tromey <tom@tromey.com>
16302
16303 * python/py-symtab.c (salpy_str): Update.
16304 (struct salpy_sal_object) <symtab>: Now a PyObject.
16305 (salpy_dealloc): Update.
16306 (del_objfile_sal): Use gdbpy_ref.
16307
1b20edf0
TT
163082019-01-03 Tom Tromey <tom@tromey.com>
16309
16310 * python/py-type.c (convert_field): Use new_reference. Return
16311 gdbpy_ref.
16312 (make_fielditem): Return gdbpy_ref.
16313 (typy_fields): Update.
16314 (typy_getitem): Update.
16315 (field_name): Return gdbpy_ref. Use new_reference.
16316 (typy_iterator_iternext): Update.
16317
ea41325b
TT
163182019-01-03 Tom Tromey <tom@tromey.com>
16319
16320 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16321
2a3c71d6
TT
163222019-01-03 Tom Tromey <tom@tromey.com>
16323
16324 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16325 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16326 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16327 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16328 (pspy_set_type_printers): Likewise.
16329 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16330 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16331 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16332 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16333 (objfpy_set_type_printers): Likewise.
16334
5c329e6a
TT
163352019-01-03 Tom Tromey <tom@tromey.com>
16336
16337 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16338 (gdbpy_print_stack): Use gdbpy_err_fetch.
16339 * python/python-internal.h (class gdbpy_err_fetch): New class.
16340 (class gdbpy_enter) <m_error_type, m_error_value,
16341 m_error_traceback>: Remove.
16342 <m_error>: New member.
16343 (gdbpy_exception_to_string): Don't declare.
16344 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16345 * python/py-value.c (convert_value_from_python): Use
16346 gdbpy_err_fetch.
16347 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16348 gdbpy_exception_to_string.
16349 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16350 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16351 gdbpy_err_fetch.
16352
169bb27b
AB
163532019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16354
16355 * linux-nat.c (delete_lwp_cleanup): Delete.
16356 (struct lwp_deleter): New struct.
16357 (lwp_info_up): New typedef.
16358 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16359 lwp_info_up.
16360
a07c8880
AB
163612019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16362
16363 * linux-fork.c (class scoped_switch_fork_info): New class.
16364 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16365
26089c49
AB
163662019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16367
16368 * valops.c (find_overload_match): Remove use of null_cleanup, and
16369 calls to do_cleanups.
16370
06d3e5b0
AB
163712019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16372
16373 * compile/compile-cplus-types.c
16374 (compile_cplus_instance::decl_name): Handle changes to
16375 cp_func_name.
16376 * cp-support.c (cp_func_name): Update header comment, update
16377 return type.
16378 * cp-support.h (cp_func_name): Update return type in declaration.
16379 * valops.c (find_overload_match): Move temp_func local to top
16380 level of function and change its type. Use temp_func to hold and
16381 delete temporary string obtained from cp_func_name.
16382
66644cd3
AB
163832019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16384
16385 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16386 gdb::char_vector, remove cleanup, and update uses of `msg`.
16387
592d8c0a
JW
163882019-01-03 Jim Wilson <jimw@sifive.com>
16389
16390 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16391
c55d06ec
TT
163922019-01-02 Tom Tromey <tom@tromey.com>
16393
16394 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16395 (tdesc_parse_xml): Remove cleanups.
16396 * target-descriptions.h (make_cleanup_free_target_description):
16397 Don't declare.
16398 (target_desc_deleter): New struct.
16399 (target_desc_up): New typedef.
16400 * target-descriptions.c (target_desc_deleter::operator()): Rename
16401 from free_target_description.
16402 (make_cleanup_free_target_description): Remove.
16403
3a6ae42d
TT
164042019-01-02 Tom Tromey <tom@tromey.com>
16405
16406 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16407 constructor, destructor.
16408 (linespec_parser): Remove typedef.
16409 (~linespec_parser): Rename from linespec_parser_delete.
16410 (linespec_lex_to_end, linespec_complete_label)
16411 (linespec_complete): Update.
16412 (decode_line_full): Remove cleanups.
16413 (decode_line_1): Update.
16414
61fd3e73
TT
164152019-01-02 Tom Tromey <tom@tromey.com>
16416
16417 * python/python-internal.h (inferior_to_inferior_object): Change
16418 return type.
16419 * python/py-exitedevent.c (create_exited_event_object): Update.
16420 * python/py-inferior.c (inferior_to_inferior_object): Return
16421 gdbpy_ref.
16422 (python_new_inferior, python_inferior_deleted)
16423 (thread_to_thread_object, delete_thread_object)
16424 (build_inferior_list, gdbpy_selected_inferior): Update.
16425 * python/py-infthread.c (create_thread_object): Update. Also fail
16426 if inferior_to_inferior_object fails.
16427
d20172fc
SM
164282019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16429
16430 * inferior.h (class inferior) <displaced_step_state>: New field.
16431 * infrun.h (struct displaced_step_state): Move here from
16432 infrun.c. Initialize fields, add constructor.
16433 <inf>: Remove field.
16434 <reset>: New method.
16435 * infrun.c (struct displaced_step_inferior_state): Move to
16436 infrun.h.
16437 (displaced_step_inferior_states): Remove.
16438 (get_displaced_stepping_state): Adust.
16439 (displaced_step_in_progress_any_inferior): Adjust.
16440 (displaced_step_in_progress_thread): Adjust.
16441 (displaced_step_in_progress): Adjust.
16442 (add_displaced_stepping_state): Remove.
16443 (get_displaced_step_closure_by_addr): Adjust.
16444 (remove_displaced_stepping_state): Remove.
16445 (infrun_inferior_exit): Call displaced_step_state.reset.
16446 (use_displaced_stepping): Don't check for NULL.
16447 (displaced_step_prepare_throw): Call
16448 get_displaced_stepping_state.
16449 (displaced_step_fixup): Don't check for NULL.
16450 (prepare_for_detach): Don't check for NULL.
16451
e3319240
PW
164522019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16453
16454 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16455 in case of call that did not complete.
16456
5d36dfb9
AU
164572019-01-02 Andrey Utkin <autkin@undo.io>
16458
16459 * symfile.c (find_separate_debug_file): Fix search of debug files for
16460 remote debuggee.
16461
8833fbf0
TT
164622019-01-02 Tom Tromey <tom@tromey.com>
16463
16464 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16465 indentation.
16466 * python/py-frame.c (frapy_older): Remove cast.
16467 (frapy_newer): Likewise.
16468 * python/py-breakpoint.c (local_setattro): Remove cast.
16469 * python/py-arch.c (archpy_name): Remove local variable.
16470 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16471
4ada3dfd
JB
164722019-01-02 Joel Brobecker <brobecker@adacore.com>
16473
16474 * unittests/basic_string_view/element_access/char/empty.cc:
16475 Fix year range in copyright header.
16476
113b7b81
AB
164772019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16478
16479 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16480 Delete.
16481 <operator==>: Update with for removed field.
16482 <hash>: Likewise.
16483 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16484 <isa_features>: ...this.
16485 <abi_features>: New field.
16486 (riscv_isa_flen): Update comment.
16487 (riscv_abi_xlen): New declaration.
16488 (riscv_abi_flen): New declaration.
16489 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16490 isa_features.
16491 (riscv_abi_xlen): New function.
16492 (riscv_isa_flen): Update to get answer from isa_features.
16493 (riscv_abi_flen): New function.
16494 (riscv_has_fp_abi): Update to get answer from abi_features.
16495 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16496 xlen and flen.
16497 (riscv_call_info) <xlen, flen>: Update comment.
16498 (riscv_call_arg_struct): Remove invalid assertions
16499 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16500 is removed.
16501 (riscv_gdbarch_init): Gather isa features and abi features
16502 separately, ensure both match on the gdbarch when reusing an old
16503 gdbarch. Relax an error check to allow 32-bit abi float to run on
16504 a target with 64-bit float hardware.
16505
b18ca514
PW
165062019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16507
16508 * source.c (search_command_helper): Stop reverse search
16509 when line 1 has been searched.
16510
ec70d8db
PW
165112019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16512
16513 * record-full.c (record_full_base_target::close): Rewrite
16514 record_full_core_buf_list free logic.
16515
5b38f9c1
PW
165162019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16517
16518 * break-catch-syscall.c (print_one_catch_syscall): xfree
16519 the last text.
16520
66d91b39
JB
165212019-01-01 Joel Brobecker <brobecker@adacore.com>
16522
16523 * top.c (print_gdb_version): Update Copyright year in version
16524 message.
16525
42a4f53d
JB
165262019-01-01 Joel Brobecker <brobecker@adacore.com>
16527
16528 Update copyright year range in all GDB files.
16529
7e955d83 165302019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16531
5bbd631d 16532 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16533
5bbd631d 16534For older changes see ChangeLog-2018.
c906108c
SS
16535\f
16536Local Variables:
16537mode: change-log
16538left-margin: 8
16539fill-column: 74
16540version-control: never
57da7796 16541coding: utf-8
c906108c 16542End:
5bbd631d 16543
This page took 3.084722 seconds and 4 git commands to generate.