gdb/copyright.py: Adapt after move of gnulib from gdb to toplevel
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a292f79f
JB
12020-01-01 Joel Brobecker <brobecker@adacore.com>
2
3 * copyright.py: Adapt after move of gnulib directory from gdb
4 directory to toplevel directory.
5
1458b0f3
JB
62020-01-01 Joel Brobecker <brobecker@adacore.com>
7
8 * copyright.py (main): Exit if run from the wrong directory.
9
e9de78be
JB
102020-01-01 Joel Brobecker <brobecker@adacore.com>
11
12 * top.c (print_gdb_version): Change copyright year to 2020.
13
c0716f3e
CB
142019-12-26 Christian Biesinger <cbiesinger@google.com>
15
16 * configure: Regenerate.
17 * configure.ac: Quote variable arguments of test.
18 * gdbsupport/common.m4: Likewise.
19
527178f7
EZ
202019-12-21 Eli Zaretskii <eliz@gnu.org>
21
22 * top.c (print_gdb_configuration): Print "--with-xxhash" or
23 "--without-xxhash" according to HAVE_LIBXXHASH.
24
4ae7258e
TT
252019-12-18 Tom Tromey <tromey@adacore.com>
26
27 PR build/25268:
28 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
29 type on macOS. Add comment.
30
1c66314d
TT
312019-12-18 Tom Tromey <tromey@adacore.com>
32
33 PR build/25250:
34 * ui-out.c (ui_out::vmessage): Update.
35 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
36 Rename.
37 (string_field): Update.
38 (signed_field): Update.
39
be19b699
SM
402019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
41
42 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
43
3f434671
JB
442019-12-11 Joel Brobecker <brobecker@adacore.com>
45
46 * version.in: Set GDB version number to 9.0.90.DATE-git.
47
07d5aa38
JB
482019-12-11 Joel Brobecker <brobecker@adacore.com>
49
50 GDB 9.0.90 released.
51
b06b5486
JB
522019-12-11 Joel Brobecker <brobecker@adacore.com>
53
54 * version.in: Set GDB version number to 9.0.90.
55
41ec388b
JB
562019-12-11 Joel Brobecker <brobecker@adacore.com>
57
58 * NEWS: Change "Changes since GDB 8.3" into "Changes in GDB 9".
59
c87abc50
JB
602019-12-11 Joel Brobecker <brobecker@adacore.com>
61
62 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
63 * version.in: Bump version to 9.0.90.DATE-git.
64
2e744276
TT
652019-12-11 Tom Tromey <tromey@adacore.com>
66
67 PR build/25268:
68 * gdbsupport/thread-pool.c (set_thread_name): New function.
69 (thread_pool::set_thread_count): Don't call pthread_setname_np.
70 (thread_pool::thread_function): Call set_thread_name.
71
aac4760f
TT
722019-12-11 Tom Tromey <tromey@adacore.com>
73
74 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
75 bfd_get_signed_8.
76
d8edc8b7
PW
772019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
78
79 * NEWS: Document -raw-values option and the related setting commands.
80 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
81 only set it on when /r is given.
82 * valprint.c (value_print_option_defs): New element raw-values.
83 * Makefile.in: Add the new file.
84
cb511130
CB
852019-12-10 Christian Biesinger <cbiesinger@google.com>
86
87 * gdbsupport/safe-strerror.c: Supress the unused function warning
88 for select_strerror_r.
89
ab7d13f0
CB
902019-12-10 Christian Biesinger <cbiesinger@google.com>
91
92 * config.in: Regenerate.
93 * configure: Regenerate.
94 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
95 safe_strerror instead of strerror.
96 * gdbsupport/common.m4: Don't check for strerror.
97 * gdbsupport/safe-strerror.c: Support both the glibc version
98 of strerror_r and the XSI version.
99
6c71eb7d
TT
1002019-12-10 Tom Tromey <tromey@adacore.com>
101
102 * ada-typeprint.c (print_choices): Use a single "?".
103 (print_variant_part): Print "?" if the discriminant name
104 is not known.
105
bac7c5cf
GB
1062019-12-10 George Barrett <bob@bob131.so>
107
108 Fix scripted probe breakpoints.
109 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
110 declaration forward.
111 (breakpoint_ops_for_event_location_type)
112 (breakpoint_ops_for_event_location): Add function definitions.
113 (break_command_1, trace_command): Use
114 breakpoint_ops_for_event_location.
115 * breakpoint.h (breakpoint_ops_for_event_location): Add function
116 declarations.
117 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
118 breakpoint_ops_for_event_location.
119 * python/py-breakpoint.c (bppy_init): Use
120 breakpoint_ops_for_event_location.
121
330f1d38
TBA
1222019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
123
124 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
125 when ranking an lvalue argument for an rvalue parameter.
126
b1f0c0b9
WA
1272019-12-08 Wataru Ashihara <wataash@wataash.com>
128
129 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
130 template argument for scoped_restore_tmpl from bool to int.
131
aa2d5a42
KS
1322019-12-07 Keith Seitz <keiths@redhat.com>
133
134 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
135 (build_id_to_debug_bfd): Make static, rewriting to use
136 build_id_to_bfd_suffix.
137 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
138 adding `suffix' parameter. Append SUFFIX to file names
139 when searching for matching files.
140 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
141 (build_id_to_exec_bfd): Likewise.
142 * build-id.h (build_id_to_debug_bfd): Clarify that function
143 searches for BFD of debug info file.
144 (build_id_to_exec_bfd): Declare.
145 * corelow.c: Include build-id.h.
146 (locate_exec_from_corefile_build_id): New function.
147 (core_target_open): If no executable BFD is found,
148 search for a core file BFD using build-id.
149
dfb65191
CB
1502019-12-06 Christian Biesinger <cbiesinger@google.com>
151
152 * bcache.c: Put in namespace gdb.
153 * bcache.h: Likewise.
154 * gdbtypes.c (check_types_worklist): Update.
155 (types_deeply_equal): Update.
156 * macrotab.c (struct macro_table) <bcache>: Update.
157 (new_macro_table): Update.
158 * macrotab.h (struct bcache): Put this forward declaration
159 inside namespace gdb.
160 (new_macro_table): Update.
161 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
162 Update.
163 <macro_cache>: Update.
164 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
165
93e55f0a
TV
1662019-12-06 Tom de Vries <tdevries@suse.de>
167
168 PR symtab/24971
169 * block.c (best_symbol, better_symbol): New function.
170 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
171 decl.
172
06acc08f
TBA
1732019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
174
175 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
176 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
177 for ranking see-through reference cases.
178
e0fad1ea
PW
1792019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
180 * stack.c (faas_command): Check a command is provided.
181 * thread.c (taas_command, tfaas_command): Likewise.
182
908641f5
PW
1832019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
184 * inferior.c (prune_inferiors): Only call delete_inferior,
185 Do not modify the inferior list.
186
b858499d
SM
1872019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
188
189 * c-exp.y: Update calls to lookup_typename,
190 lookup_signed_typename and lookup_unsigned_typename.
191 * c-lang.c (evaluate_subexp_c): Likewise.
192 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
193 Likewise.
194 * eval.c (binop_promote): Likewise.
195 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
196 (lookup_unsigned_typename): Likewise.
197 (lookup_signed_typename): Likewise.
198 * gdbtypes.h (lookup_unsigned_typename): Likewise.
199 (lookup_signed_typename): Likewise.
200 (lookup_typename): Likewise.
201 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
202 lookup_typename, lookup_signed_typename,
203 lookup_unsigned_typename.
204 * m2-exp.y: Likewise.
205 * printcmd.c (printf_wide_c_string): Likewise.
206 (ui_printf): Likewise.
207 * python/py-type.c (typy_lookup_typename): Likewise.
208 * python/py-xmethods.c (python_xmethod_worker::invoke):
209 Likewise.
210 * rust-exp.y: Likewise.
211
3a8fa228
CB
2122019-12-04 Christian Biesinger <cbiesinger@google.com>
213
214 * configure.nat (obsd64): Add missing files x86-nat.o and
215 nat/x86-dregs.o.
216
2dbc041e
TT
2172019-12-04 Tom Tromey <tom@tromey.com>
218
219 * valprint.c (val_print_string): Use metadata_style.
220 * go-valprint.c (print_go_string): Use metadata style.
221 * p-valprint.c (pascal_object_print_static_field): Use metadata
222 style.
223 * cp-valprint.c (cp_print_static_field): Use metadata style.
224
36c8fb93
AB
2252019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
226 Chris January <chris.january@arm.com>
227
228 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
229 tokens.
230 (typebase): New patterns for complex, single/double precision, and
231 single/double complex.
232 (f77_keywords): Change token for complex keyword, and add single,
233 double, and precision keywords.
234
c6170c2c
SM
2352019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
236
237 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
238 "info io_registers".
239
894ecaf4
SM
2402019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
241
242 * regcache.c (cooked_read_test): Initialize thread list of
243 mock_inferior.
244
be155ebb
SM
2452019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
246
247 * aarch64-linux-tdep.c: Remove includes.
248
c577cdd7
SM
2492019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
250
251 * aarch64-tdep.c: Remove includes.
252
610cfd61
SM
2532019-12-04 Simon Marchi <simon.marchi@efficios.com>
254
255 * filtered-iterator.h (filtered_iterator) <operator==,
256 operator!=>: Compare wrapped iterators, not wrapped pointers.
257 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
258 unittests/filtered_iterator-selftests.c.
259 * unittests/filtered_iterator-selftests.c: New file.
260
a05cf17a
TT
2612019-12-04 Tom Tromey <tromey@adacore.com>
262
263 * gdbtypes.c (create_range_type): Inherit endianity
264 from base type.
265
d5a22e77
TT
2662019-12-04 Tom Tromey <tromey@adacore.com>
267
268 * ada-lang.c (decode_constrained_packed_array)
269 (ada_value_assign, value_assign_to_component): Update.
270 * dwarf2loc.c (rw_pieced_value, access_memory)
271 (dwarf2_compile_expr_to_ax): Update.
272 * dwarf2read.c (dwarf2_add_field): Update.
273 * eval.c (evaluate_subexp_standard): Update.
274 * gdbarch.c, gdbarch.h: Rebuild.
275 * gdbarch.sh (bits_big_endian): Remove.
276 * gdbtypes.h (union field_location): Update comment.
277 * target-descriptions.c (make_gdb_type): Update.
278 * valarith.c (value_bit_index): Update.
279 * value.c (struct value) <bitpos>: Update comment.
280 (unpack_bits_as_long, modify_field): Update.
281 * value.h (value_bitpos): Update comment.
282
7ab4a236
TT
2832019-12-04 Tom Tromey <tromey@adacore.com>
284
285 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
286 endian-ness.
287
103a685e
TT
2882019-12-04 Tom Tromey <tromey@adacore.com>
289
290 * dwarf2read.c (dwarf2_init_float_type)
291 (dwarf2_init_complex_target_type): Add byte_order parameter.
292 (read_base_type): Compute byte order earlier.
293 * gdbtypes.c (init_float_type): Add byte_order parameter.
294 * gdbtypes.h (init_float_type): Add byte_order parameter.
295
7a9e9f9f
TT
2962019-12-04 Tom Tromey <tromey@adacore.com>
297
298 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
299
feee869b
TT
3002019-12-04 Tom Tromey <tromey@adacore.com>
301
302 * dwarf2read.c (process_structure_scope): Initialize
303 "discr_offset".
304
c2512106
AB
3052019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
306
307 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
308 add it into the search spec.
309 (parse_max_results_option): New function.
310 (mi_info_functions_or_variables): Parse -max-results flag and pass
311 it to mi_symbol_info.
312 (mi_cmd_symbol_info_modules): Likewise.
313 (mi_cmd_symbol_info_types): Likewise.
314 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
315 return type to bool, change result container into a set, and don't
316 add new results if we have enough already.
317 (global_symbol_searcher::add_matching_msymbols): Change return
318 type to bool, and don't add new results if we have enough already.
319 (sort_search_symbols_remove_dups): Delete.
320 (global_symbol_searcher::search): Early exit from search loop when
321 we have enough results. Use a std::set to collect the results
322 from calling add_matching_symbols.
323 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
324 member function.
325 (global_symbol_searcher) <m_max_search_results>: New member
326 variable.
327 (global_symbol_searcher) <add_matching_symbols>: Update header
328 comment and change return type to bool.
329 (global_symbol_searcher) <add_matching_msymbols>: Update header
330 comment and change return type to bool.
331
f97a63c5
AB
3322019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
333
334 * symtab.c (symbol_search::compare_search_syms): Update header
335 comment.
336 (global_symbol_searcher::is_suitable_msymbol): New function.
337 (global_symbol_searcher::expand_symtabs): New function.
338 (global_symbol_searcher::add_matching_symbols): New function.
339 (global_symbol_searcher::add_matching_msymbols): New function.
340 (global_symbol_searcher::search): Move most of the content
341 into the new functions above, and call them as needed.
342 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
343 function.
344 (global_symbol_searcher) <add_matching_symbols>: New member
345 function.
346 (global_symbol_searcher) <add_matching_msymbols>: New member
347 function.
348 (global_symbol_searcher) <is_suitable_msymbol>: New member
349 function.
350
293b38d6
AB
3512019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
352
353 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
354 -symbol-info-module-variables entries.
355 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
356 (mi_cmd_symbol_info_module_variables): Declare.
357 * mi/mi-symbol-cmds.c
358 (module_symbol_search_iterator): New typedef.
359 (output_module_symbols_in_single_module_and_file): New function.
360 (output_module_symbols_in_single_module): New function.
361 (mi_info_module_functions_or_variables): New function.
362 (mi_cmd_symbol_info_module_functions): New function.
363 (mi_cmd_symbol_info_module_variables): New function.
364 * NEWS: Mention new MI command.
365
4cbd39b2
CB
3662019-12-03 Christian Biesinger <cbiesinger@google.com>
367
368 * bcache.c (hash): Remove.
369 (hash_continue): Remove.
370 * bcache.h (hash): Remove.
371 (hash_continue): Remove.
372 (struct bcache) <ctor>: Update.
373 * psymtab.c (psymbol_hash): Update.
374 * stabsread.c (hashname): Update.
375 * utils.h (fast_hash): Add an argument for a start value,
376 defaulting to zero.
377
82f910ea
PW
3782019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
379 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
380 (destroy_block_symbol_cache): New function.
381 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
382 (resize_symbol_cache): Likewise.
383
de2396d0
TT
3842019-12-02 Tom Tromey <tom@tromey.com>
385
386 * unittests/tui-selftests.c (run_tests): Make conditional.
387 (_initialize_tui_selftest): Make conditional.
388
638d85bc
CB
3892019-12-02 Christian Biesinger <cbiesinger@google.com>
390
391 * aix-thread.c (debug_aix_thread): Change type to bool.
392
7532a164
LM
3932019-12-02 Luis Machado <luis.machado@linaro.org>
394
395 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
396
216a7e6b
AB
3972019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
398
399 * dwarf2read.c (read_tag_string_type): Read the fields required to
400 make a dynamic string, and possibly create a dynamic range for the
401 string.
402 (attr_to_dynamic_prop): Setup is_reference based on the type of
403 attribute being processed.
404 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
405 (resolve_dynamic_array): Rename to...
406 (resolve_dynamic_array_or_string): ...this, update header comment,
407 and accept TYPE_CODE_STRING.
408 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
409
11a8b164
AB
4102019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
411
412 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
413 of its implementation from...
414 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
415 the new function.
416
5bbd8269
AB
4172019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
418
419 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
420 create a range with stride where appropriate.
421 * f-valprint.c: Include 'gdbarch.h'.
422 (f77_print_array_1): Take the stride into account when walking the
423 array. Also convert the stride into addressable units.
424 * gdbtypes.c (create_range_type): Initialise the stride to
425 constant zero.
426 (create_range_type_with_stride): New function, initialise the
427 range as normal, and then setup the stride.
428 (has_static_range): Include the stride here. Also change the
429 return type to bool.
430 (create_array_type_with_stride): Consider the range stride if the
431 array isn't given its own stride.
432 (resolve_dynamic_range): Resolve the stride if needed.
433 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
434 (struct range_bounds) <flag_is_byte_stride>: New member variable.
435 (TYPE_BIT_STRIDE): Define.
436 (TYPE_ARRAY_BIT_STRIDE): Define.
437 (create_range_type_with_stride): Declare.
438 * valarith.c (value_subscripted_rvalue): Take range stride into
439 account when walking the array.
440
82e3b564
TT
4412019-12-01 Tom Tromey <tom@tromey.com>
442
443 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
444 specially.
445
517d261d
TT
4462019-12-01 Tom Tromey <tom@tromey.com>
447
448 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
449 \0.
450 * unittests/tui-selftests.c: New file.
451 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
452
484c9b64
TT
4532019-12-01 Tom Tromey <tom@tromey.com>
454
455 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
456
a2a7af0c
TT
4572019-12-01 Tom Tromey <tom@tromey.com>
458
459 * NEWS: Document new settings.
460 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
461 * tui/tui-win.c (_initialize_tui_win): Add border style
462 observers.
463 * tui/tui-io.h (tui_apply_style): Declare.
464 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
465 longer static.
466 (apply_ansi_escape, tui_set_reverse_mode): Update.
467 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
468 Add "skip_intensity" parameter.
469 <changed>: New member.
470 <do_set_value>: Declare.
471 (tui_border_style, tui_active_border_style): Declare.
472 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
473 globals.
474 (cli_style_option): Initialize "changed".
475 (cli_style_option::do_set_value): New function.
476 (cli_style_option::add_setshow_commands): Add "skip_intensity"
477 parameter. Update.
478 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
479 (_initialize_cli_style): Update. Create TUI border style
480 commands.
481
d1da6b01
TT
4822019-12-01 Tom Tromey <tom@tromey.com>
483
484 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
485 parameter.
486 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
487 parameter.
488 * tui/tui-win.h (compact_source): Declare.
489 * tui/tui-win.c (compact_source): New global.
490 (tui_set_compact_source, tui_show_compact_source): New functions.
491 (_initialize_tui_win): Add "compact-source" setting.
492 * tui/tui-source.c (tui_source_window::set_contents): Handle
493 compact_source setting.
494 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
495 * NEWS: Document new setting.
496
489dbda6
TT
4972019-11-30 Tom Tromey <tom@tromey.com>
498
499 * dwarf2read.c (dwarf2_add_field): Include field offset when
500 computing variant part length.
501
bf498525
PW
5022019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
503 * NEWS: Mention define-prefix. Tell that command names can now
504 contain a . character.
505
be09caf1
PW
5062019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
507
508 * command.h (valid_cmd_char_p): Declare.
509 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
510 the check of valid command char.
511 (find_command_name_length, valid_user_defined_cmd_name_p): Use
512 valid_cmd_char_p.
513 * cli/cli-script.c (validate_comname): Likewise.
514 * completer.c (gdb_completer_command_word_break_characters):
515 Do not remove . from the word break char, update comments.
516 (complete_line_internal_1): Use valid_cmd_char_p.
517 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
518 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
519
c6ac7fc9
PW
5202019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
521
522 * cli/cli-script.c (do_define_command): Ensure a redefined
523 prefix command is kept as a prefix command.
524 (define_prefix_command): New function.
525 (show_user_1): Report user defined prefixes.
526 (_initialize_cli_script): Create the new 'define-prefix' command.
527 Add completers for 'define' and 'document'.
528 * top.c (execute_command): If command is a user-defined prefix only
529 command, report the list of commands for this prefix command.
530
a992a3b0
TBA
5312019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
532
533 * valops.c (find_oload_champ): Improve debug output.
534
e9194a1a
TBA
5352019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
536
537 * valops.c (find_oload_champ): Print part of debug messages
538 before the badness vector is std::move'd.
539
53a008a6
TT
5402019-11-28 Tom Tromey <tom@tromey.com>
541
542 * value.c (creal_internal_fn): Fix comment.
543
bab05c83
TT
5442019-11-28 Tom Tromey <tom@tromey.com>
545
546 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
547 flag_bound_evaluated>: Now unsigned.
548
2522f049
TT
5492019-11-28 Tom Tromey <tom@tromey.com>
550
551 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
552 declare.
553
38b49e22
MS
5542019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
555
556 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
557 debug output.
558 * jit.c (jit_unregister_code): Add debug print to match
559 `jit_register_code`.
560
35125921
CB
5612019-11-27 Christian Biesinger <cbiesinger@google.com>
562
563 * NEWS: Mention the new multithreaded symbol loading.
564
62e77f56
CB
5652019-11-27 Christian Biesinger <cbiesinger@google.com>
566
567 * maint.c (n_worker_threads): Default to 0.
568 (worker_threads_disabled): New function.
569 * maint.h (worker_threads_disabled): New function.
570 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
571 here if worker_threads_disabled () is true.
572 (minimal_symbol_reader::install): Skip all threading if
573 worker_threads_disabled () is true.
574
f29d7f6b
CB
5752019-11-27 Christian Biesinger <cbiesinger@google.com>
576
577 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
578 hash code if possible.
579 (add_minsym_to_demangled_hash_table): Likewise.
580 (minimal_symbol_reader::install): Compute the hash codes for msymbol
581 on the background thread.
582 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
583 Add these fields.
584
e76b2246
CB
5852019-11-27 Christian Biesinger <cbiesinger@google.com>
586
587 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
588 of the mangled name on the background thread.
589 * symtab.c (symbol_set_names): Allow passing in the hash of the
590 linkage_name.
591 * symtab.h (symbol_set_names): Likewise.
592
8d9a2568
KB
5932019-11-27 Kevin Buettner <kevinb@redhat.com>
594
595 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
596 physnames are computed for inherited DIEs.
597
fad03f6e
TT
5982019-11-27 Tom Tromey <tromey@adacore.com>
599
600 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
601 backslashes.
602 * cp-support.c: Remove unnecessary backslashes.
603
43678b0a
CB
6042019-11-27 Christian Biesinger <cbiesinger@google.com>
605
606 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
607 with sym->set_linkage_name.
608 * coffread.c (coff_read_enum_type): Likewise.
609 * mdebugread.c (parse_symbol): Likewise.
610 * stabsread.c (patch_block_stabs): Likewise.
611 (define_symbol): Likewise.
612 (read_enum_type): Likewise.
613 (common_block_end): Likewise.
614 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
615 function.
616 (SYMBOL_SET_LINKAGE_NAME): Remove.
617 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
618 with sym->set_linkage_name.
619
db5960b4
AB
6202019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
621
622 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
623 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
624 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
625 * NEWS: Mention new MI command.
626
7dc42066
AB
6272019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
628
629 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
630 '-symbol-info-types', and '-symbol-info-variables'.
631 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
632 (mi_cmd_symbol_info_types): Declare.
633 (mi_cmd_symbol_info_variables): Declare.
634 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
635 (output_debug_symbol): New function.
636 (output_nondebug_symbol): New function.
637 (mi_symbol_info): New function.
638 (mi_info_functions_or_variables): New function.
639 (mi_cmd_symbol_info_functions): New function.
640 (mi_cmd_symbol_info_types): New function.
641 (mi_cmd_symbol_info_variables): New function.
642 * NEWS: Mention new commands.
643
5f512a7d
AB
6442019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
645
646 * symtab.c (symbol_to_info_string): New function, most content
647 moved from print_symbol_info, but updated to return a std::string.
648 (print_symbol_info): Update to use symbol_to_info_string and print
649 returned string.
650 * symtab.h (symbol_to_info_string): Declare new function.
651
470c0b1c
AB
6522019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
653
654 * python/python.c (gdbpy_rbreak): Convert to using
655 global_symbol_searcher.
656 * symtab.c (file_matches): Convert return type to bool, change
657 file list to std::vector, update header comment.
658 (search_symbols): Rename to...
659 (global_symbol_searcher::search): ...this and update now its
660 a member function of global_symbol_searcher. Take account of the
661 changes to file_matches.
662 (symtab_symbol_info): Convert to using global_symbol_searcher.
663 (rbreak_command): Likewise.
664 (search_module_symbols): Likewise.
665 * symtab.h (enum symbol_search): Update comment.
666 (search_symbols): Remove declaration.
667 (class global_symbol_searcher): New class.
668
57357d9d
TT
6692019-11-26 Tom Tromey <tromey@adacore.com>
670
671 * cp-support.c (_initialize_cp_support): Conditionally initialize
672 gdb_demangle_attempt_core_dump.
673
3ea16160
TT
6742019-11-26 Tom Tromey <tom@tromey.com>
675
676 * python/py-function.c (fnpy_init): Update.
677 * value.h (add_internal_function): Adjust declaration.
678 * value.c (function_destroyer): Remove.
679 (do_add_internal_function): Don't set destroyer or copy name.
680 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
681 Set name_allocated.
682 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
683 (cmdpy_init): Set name_allocated.
684 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
685 member.
686 (~cmd_list_element): Free "name" if needed.
687
1a6d41c6
TT
6882019-11-26 Tom Tromey <tom@tromey.com>
689
690 * value.h (add_internal_function): Add new overload. Move
691 documentation from value.h.
692 * value.c (do_add_internal_function): New function.
693 (add_internal_function): Use it. Add new overload.
694 (function_destroyer): Don't free doc.
695 * python/py-function.c (fnpy_init): Update.
696
8318f3c3
TT
6972019-11-26 Tom Tromey <tom@tromey.com>
698
699 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
700 (cmdpy_init): Set "doc_allocated".
701
4da8c3a8
TT
7022019-11-26 Tom Tromey <tom@tromey.com>
703
704 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
705 name of worker thread.
706 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
707 pthread_setname_np.
708 * configure, config.in: Rebuild.
709
971db5e2
TT
7102019-11-26 Tom Tromey <tom@tromey.com>
711
712 * python/python.c (class gdbpy_gil): New.
713 (struct gdbpy_event): Add constructor, destructor, operator().
714 (gdbpy_post_event): Use run_on_main_thread.
715 (gdbpy_initialize_events): Remove.
716 (do_start_initialization): Update.
717
22138db6
TT
7182019-11-26 Tom Tromey <tom@tromey.com>
719
720 * NEWS: Add entry.
721 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
722 commands. Call update_thread_pool_size.
723 (update_thread_pool_size, maintenance_set_worker_threads): New
724 functions.
725 (n_worker_threads): New global.
726
d55c9a68
TT
7272019-11-26 Christian Biesinger <cbiesinger@google.com>
728 Tom Tromey <tom@tromey.com>
729
730 * minsyms.c (minimal_symbol_reader::install): Use
731 parallel_for_each.
732 * gdbsupport/parallel-for.h: New file.
733 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
734
a0b57563
CB
7352019-11-26 Christian Biesinger <cbiesinger@google.com>
736 Tom Tromey <tom@tromey.com>
737
738 * gdbsupport/thread-pool.h: New file.
739 * gdbsupport/thread-pool.c: New file.
740 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
741 (HFILES_NO_SRCDIR): Add thread-pool.h.
742
3b3978bc
TT
7432019-11-26 Tom Tromey <tom@tromey.com>
744
745 * event-top.h (thread_local_segv_handler): Declare.
746 * event-top.c (thread_local_segv_handler): New global.
747 (install_handle_sigsegv, handle_sigsegv): New functions.
748 (async_init_signals): Install SIGSEGV handler.
749 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
750 thread-local.
751 (report_failed_demangle): New function.
752 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
753 handler-setting code, instead use segv_handler. Run warning code
754 on main thread.
755
9411c49e
TT
7562019-11-26 Tom Tromey <tom@tromey.com>
757
758 * run-on-main-thread.c: New file.
759 * run-on-main-thread.h: New file.
760 * unittests/main-thread-selftests.c: New file.
761 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
762 main-thread-selftests.c.
763 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
764 (COMMON_SFILES): Add run-on-main-thread.c.
765
c3efb965
TT
7662019-11-26 Tom Tromey <tom@tromey.com>
767
768 * main.c (setup_alternate_signal_stack): Remove.
769 (captured_main_1): Use gdb::alternate_signal_stack.
770 * gdbsupport/alt-stack.h: New file.
771
21987b9c
TT
7722019-11-26 Tom Tromey <tom@tromey.com>
773
774 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
775 Remove comment.
776 (save_original_signals_state, restore_original_signals_state): Use
777 gdb_sigmask.
778 * linux-nat.c (block_child_signals, restore_child_signals_mask)
779 (_initialize_linux_nat): Use gdb_sigmask.
780 * guile/guile.c (_initialize_guile): Use block_signals.
781 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
782 * gdbsupport/gdb-sigmask.h: New file.
783 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
784 * cp-support.c (gdb_demangle): Use gdb_sigmask.
785 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
786 pthread_sigmask.
787 * configure, config.in: Rebuild.
788 * gdbsupport/block-signals.h: New file.
789
5e030278
TT
7902019-11-26 Tom Tromey <tom@tromey.com>
791
792 * acinclude.m4: Include ax_pthread.m4.
793 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
794 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
795 (CLIBS): Use PTHREAD_LIBS.
796 (aclocal_m4_deps): Add ax_pthread.m4.
797 * config.in, configure: Rebuild.
798 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
799
5a79c107
TT
8002019-11-26 Tom Tromey <tom@tromey.com>
801
802 * symtab.h (struct minimal_symbol) <name_set>: New member.
803 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
804 Don't call symbol_set_names.
805 (minimal_symbol_reader::install): Call symbol_set_names.
806
aa369509
PW
8072019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
808
809 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
810 restore_active_ext_lang, as GIL is needed for (indirectly)
811 called PyOS_InterruptOccurred.
812
cadc9cb8
SM
8132019-11-26 Simon Marchi <simon.marchi@efficios.com>
814
815 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
816 definition.
817
d04afd58
SM
8182019-11-26 Simon Marchi <simon.marchi@efficios.com>
819
820 * remote-sim.c (simulator_command): Make static, remove
821 declaration.
822
dd694d77
SM
8232019-11-26 Simon Marchi <simon.marchi@efficios.com>
824
825 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
826 static.
827 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
828 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
829 (main): Likewise.
830 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
831 (main): Likewise.
832 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
833 (main): Likewise.
834 * unittests/basic_string_view/element_access/char/1.cc (test01):
835 Likewise.
836 (main): Likewise.
837 * unittests/basic_string_view/element_access/char/empty.cc (main):
838 Likewise.
839 * unittests/basic_string_view/element_access/char/front_back.cc
840 (test01): Likewise.
841 (main): Likewise.
842 * unittests/basic_string_view/inserters/char/2.cc (test05):
843 Likewise.
844 (main): Likewise.
845 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
846 (test01): Likewise.
847 (main): Likewise.
848 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
849 (test01): Likewise.
850 (main): Likewise.
851 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
852 Likewise.
853 * unittests/basic_string_view/operations/compare/char/1.cc
854 (test01): Likewise.
855 (main): Likewise.
856 * unittests/basic_string_view/operations/compare/char/13650.cc
857 (test01): Likewise.
858 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
859 Likewise.
860 (main): Likewise.
861 * unittests/basic_string_view/operations/data/char/1.cc (test01):
862 Likewise.
863 (main): Likewise.
864 * unittests/basic_string_view/operations/find/char/1.cc (test01):
865 Likewise.
866 (main): Likewise.
867 * unittests/basic_string_view/operations/find/char/2.cc (test02):
868 Likewise.
869 (main): Likewise.
870 * unittests/basic_string_view/operations/find/char/3.cc (test03):
871 Likewise.
872 (main): Likewise.
873 * unittests/basic_string_view/operations/find/char/4.cc (main):
874 Likewise.
875 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
876 Likewise.
877 (main): Likewise.
878 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
879 Likewise.
880 (main): Likewise.
881 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
882 Likewise.
883 (main): Likewise.
884 * unittests/basic_string_view/operations/substr/char/1.cc
885 (test01): Likewise.
886 (main): Likewise.
887 * unittests/basic_string_view/operators/char/2.cc (main):
888 Likewise.
889 * unittests/optional/assignment/1.cc (test): Likewise.
890 * unittests/optional/assignment/2.cc (test): Likewise.
891 * unittests/optional/assignment/3.cc (test): Likewise.
892 * unittests/optional/assignment/4.cc (test): Likewise.
893 * unittests/optional/assignment/5.cc (test): Likewise.
894 * unittests/optional/assignment/6.cc (test): Likewise.
895 * unittests/optional/assignment/7.cc (test): Likewise.
896 * unittests/optional/cons/copy.cc (test): Likewise.
897 * unittests/optional/cons/default.cc (test): Likewise.
898 * unittests/optional/cons/move.cc (test): Likewise.
899 * unittests/optional/cons/value.cc (test): Likewise.
900 * unittests/optional/in_place.cc (test): Likewise.
901 * unittests/optional/observers/1.cc (test): Likewise.
902 * unittests/optional/observers/2.cc (test): Likewise.
903
3b5c1d49
SM
9042019-11-26 Simon Marchi <simon.marchi@efficios.com>
905
906 * tui-win.h (tui_set_var_cmd): Remove.
907 * tui-win.c (tui_set_var_cmd): Make static.
908
adce99fe
SM
9092019-11-26 Simon Marchi <simon.marchi@efficios.com>
910
911 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
912 rbreak_command_wrapper): Remove.
913 * symtab.c (rbreak_command_wrapper): Remove.
914
fe3adccf
SM
9152019-11-26 Simon Marchi <simon.marchi@efficios.com>
916
917 * inferior.h (info_terminal_command): Remove declaration.
918 * inflow.c (info_terminal_command): Make static.
919
b926335f
SM
9202019-11-26 Simon Marchi <simon.marchi@efficios.com>
921
922 * inferior.c (exit_inferior_silent): Remove.
923
b62f6f54
SM
9242019-11-26 Simon Marchi <simon.marchi@efficios.com>
925
926 * dictionary.c (dict_empty, mdict_empty): Remove.
927 * dictionary.c (mdict_empty): Remove.
928
cb8c24b6
SM
9292019-11-26 Simon Marchi <simon.marchi@efficios.com>
930
931 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
932 (arc_insn_get_memory_offset): Likewise.
933 (arc_insn_dump): Likewise.
934 * cp-support.c (test_cp_symbol_name_matches): Likewise.
935 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
936 * dictionary.c (dict_iterator_next): Likewise.
937 (dict_iter_match_first): Likewise.
938 (dict_iter_match_next): Likewise.
939 * f-lang.c (evaluate_subexp_f): Likewise.
940 * hppa-tdep.c (hppa_read_pc): Likewise.
941 * i386-tdep.c (i386_floatformat_for_type): Likewise.
942 * parse.c (write_exp_elt_msym): Likewise.
943 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
944 * remote.c (remote_packet_size): Likewise.
945 (remote_notif_stop_parse): Likewise.
946 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
947 * s12z-tdep.c (s12z_disassemble_info): Likewise.
948 * source.c (prepare_path_for_appending): Likewise.
949 * sparc64-linux-tdep.c
950 (sparc64_linux_handle_segmentation_fault); Likewise.
951 * stack.c (frame_selection_by_function_completer): Likewise.
952
781597ff
SM
9532019-11-26 Simon Marchi <simon.marchi@efficios.com>
954
955 * completer.c (set_gdb_completion_word_break_characters):
956 Remove.
957
23baa4cc
SM
9582019-11-26 Simon Marchi <simon.marchi@efficios.com>
959
960 * dwarf-index-write.c: Include dwarf-index-write.h.
961 * mi/mi-interp.c: Include mi/mi-interp.h.
962
23767560
SM
9632019-11-26 Simon Marchi <simon.marchi@efficios.com>
964
965 * aarch32-tdep.c: Include aarch32-tdep.h.
966 * aarch32-tdep.h: Forward-declare struct target_desc.
967
6d91ce9a
CB
9682019-11-26 Christian Biesinger <cbiesinger@google.com>
969
970 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
971 strerror.
972 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
973 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
974
3cf2f237
TV
9752019-11-25 Tom de Vries <tdevries@suse.de>
976
977 * contrib/words.sh: Add -c option.
978
5b89c67a
CB
9792019-11-25 Christian Biesinger <cbiesinger@google.com>
980
981 * solib.c (solib_find_1): Change int to bool.
982 (exec_file_find): Change int to bool.
983 (solib_find): Change int to bool.
984 (solib_read_symbols): Change int to bool.
985 (solib_used): Change int to bool.
986 (solib_add): Change int to bool.
987 (info_sharedlibrary_command): Change int to bool.
988 (solib_contains_address_p): Change int to bool.
989 (solib_keep_data_in_core): Change int to bool.
990 (in_solib_dynsym_resolve_code): Change int to bool.
991 (reload_shared_libraries_1): Change int to bool.
992 (gdb_sysroot_changed): Change int to bool.
993 * solib.h (solib_read_symbols): Change int to bool.
994 (solib_contains_address_p): Change int to bool.
995 (solib_keep_data_in_core): Change int to bool.
996 (in_solib_dynsym_resolve_code): Change int to bool.
997 (libpthread_name_p): Change int to bool.
998
6cc8564b
LM
9992019-11-25 Luis Machado <luis.machado@linaro.org>
1000
1001 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1002 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1003 (remote_packet_max_chars): New static global.
1004 (show_remote_packet_max_chars): New function.
1005 (remote_target::putpkt_binary): Adjust to use new
1006 remote_packet_max_chars option.
1007 (remote_target::getpkt_or_notif_sane_1): Likewise.
1008 (_initialize_remote): Register new remote-packet-max-chars option.
1009
a7cdaa91
SM
10102019-11-24 Simon Marchi <simon.marchi@efficios.com>
1011
1012 * m68k-linux-nat.c: Include gdbarch.h.
1013
26abc753
TT
10142019-11-24 Tom Tromey <tom@tromey.com>
1015
1016 * symfile.c (read_symbols): Update.
1017 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1018 bool.
1019 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1020 (psym_lookup_symbol, psym_find_last_source_symtab)
1021 (psym_forget_cached_source_info, psym_print_stats)
1022 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1023 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1024 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1025 (psym_find_compunit_symtab_by_address)
1026 (maintenance_print_psymbols, maintenance_info_psymtabs)
1027 (maintenance_check_psymtabs): Update.
1028 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1029 bool.
1030
012fc909
TT
10312019-11-22 Tom Tromey <tom@tromey.com>
1032
1033 * observable.h: Update comments.
1034
c83d8d32
TT
10352019-11-22 Tom Tromey <tromey@adacore.com>
1036
1037 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1038 (print_ada_task_info): Don't try to fetch thread id if task is not
1039 alive.
1040
987012b8
CB
10412019-11-22 Christian Biesinger <cbiesinger@google.com>
1042
1043 * ada-exp.y: Update.
1044 * ada-lang.c (sort_choices): Update.
1045 (ada_print_symbol_signature): Update.
1046 (resolve_subexp): Update.
1047 (ada_parse_renaming): Update.
1048 (ada_read_renaming_var_value): Update.
1049 (lesseq_defined_than): Update.
1050 (remove_extra_symbols): Update.
1051 (remove_irrelevant_renamings): Update.
1052 (ada_add_block_symbols): Update.
1053 (ada_collect_symbol_completion_matches): Update.
1054 (ada_is_renaming_symbol): Update.
1055 (aggregate_assign_from_choices): Update.
1056 (ada_evaluate_subexp): Update.
1057 (ada_has_this_exception_support): Update.
1058 (ada_is_non_standard_exception_sym): Update.
1059 (ada_add_exceptions_from_frame): Update.
1060 (ada_add_global_exceptions): Update.
1061 (ada_print_subexp): Update.
1062 * ax-gdb.c (gen_var_ref): Update.
1063 (gen_maybe_namespace_elt): Update.
1064 (gen_expr_for_cast): Update.
1065 (gen_expr): Update.
1066 * block.h: Update.
1067 * blockframe.c (find_pc_partial_function): Update.
1068 * breakpoint.c (print_breakpoint_location): Update.
1069 (update_static_tracepoint): Update.
1070 * btrace.c (ftrace_print_function_name): Update.
1071 (ftrace_function_switched): Update.
1072 * buildsym.c (find_symbol_in_list): Update.
1073 * c-exp.y: Update.
1074 * c-typeprint.c (c_print_typedef): Update.
1075 (c_type_print_template_args): Update.
1076 * cli/cli-cmds.c (edit_command): Update.
1077 (list_command): Update.
1078 (print_sal_location): Update.
1079 * coffread.c (patch_opaque_types): Update.
1080 (process_coff_symbol): Update.
1081 (coff_read_enum_type): Update.
1082 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1083 (convert_one_symbol): Update.
1084 (hash_symname): Update.
1085 (eq_symname): Update.
1086 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1087 * compile/compile-cplus-types.c (debug_print_scope): Update.
1088 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1089 * compile/compile-object-load.c (get_out_value_type): Update.
1090 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1091 (search_symbol_list): Update.
1092 (cp_lookup_symbol_imports_or_template): Update.
1093 * cp-support.c (overload_list_add_symbol): Update.
1094 * ctfread.c (psymtab_to_symtab): Update.
1095 * dbxread.c (cp_set_block_scope): Update.
1096 * dictionary.c (iter_match_first_hashed): Update.
1097 (iter_match_next_hashed): Update.
1098 (insert_symbol_hashed): Update.
1099 (iter_match_next_linear): Update.
1100 * dictionary.h: Update.
1101 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1102 (locexpr_describe_location_piece): Update.
1103 (locexpr_describe_location_1): Update.
1104 (locexpr_generate_c_location): Update.
1105 (loclist_describe_location): Update.
1106 (loclist_generate_c_location): Update.
1107 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1108 (read_func_scope): Update.
1109 (process_enumeration_scope): Update.
1110 (new_symbol): Update.
1111 (dwarf2_const_value): Update.
1112 (dwarf2_symbol_mark_computed): Update.
1113 * eval.c (evaluate_funcall): Update.
1114 (evaluate_subexp_standard): Update.
1115 * expprint.c (print_subexp_standard): Update.
1116 (dump_subexp_body_standard): Update.
1117 * f-valprint.c (info_common_command_for_block): Update.
1118 * findvar.c (get_hosting_frame): Update.
1119 (default_read_var_value): Update.
1120 * go-lang.c (go_symbol_package_name): Update.
1121 * guile/scm-block.c (bkscm_print_block_smob): Update.
1122 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1123 (gdbscm_symbol_name): Update.
1124 (gdbscm_symbol_linkage_name): Update.
1125 (gdbscm_symbol_print_name): Update.
1126 * infcall.c (get_function_name): Update.
1127 * infcmd.c (jump_command): Update.
1128 (finish_command): Update.
1129 * infrun.c (insert_exception_resume_breakpoint): Update.
1130 * linespec.c (canonicalize_linespec): Update.
1131 (create_sals_line_offset): Update.
1132 (convert_linespec_to_sals): Update.
1133 (complete_label): Update.
1134 (find_label_symbols_in_block): Update.
1135 * m2-typeprint.c (m2_print_typedef): Update.
1136 * mdebugread.c (mdebug_reg_to_regnum): Update.
1137 (parse_symbol): Update.
1138 (mylookup_symbol): Update.
1139 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1140 (list_args_or_locals): Update.
1141 * objc-lang.c (compare_selectors): Update.
1142 (info_selectors_command): Update.
1143 (compare_classes): Update.
1144 (info_classes_command): Update.
1145 (find_imps): Update.
1146 * p-typeprint.c (pascal_print_typedef): Update.
1147 * printcmd.c (build_address_symbolic): Update.
1148 (info_address_command): Update.
1149 (print_variable_and_value): Update.
1150 * python/py-framefilter.c (extract_sym): Update.
1151 (py_print_single_arg): Update.
1152 * python/py-symbol.c (sympy_str): Update.
1153 (sympy_get_name): Update.
1154 (sympy_get_linkage_name): Update.
1155 * python/python.c (gdbpy_rbreak): Update.
1156 * record-btrace.c (btrace_get_bfun_name): Update.
1157 (btrace_call_history): Update.
1158 * rust-lang.c (rust_print_typedef): Update.
1159 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1160 * stabsread.c (stab_reg_to_regnum): Update.
1161 (define_symbol): Update.
1162 (read_enum_type): Update.
1163 (common_block_end): Update.
1164 (cleanup_undefined_types_1): Update.
1165 (scan_file_globals): Update.
1166 * stack.c (print_frame_arg): Update.
1167 (print_frame_args): Update.
1168 (find_frame_funname): Update.
1169 (info_frame_command_core): Update.
1170 (iterate_over_block_locals): Update.
1171 (print_block_frame_labels): Update.
1172 (do_print_variable_and_value): Update.
1173 (iterate_over_block_arg_vars): Update.
1174 (return_command): Update.
1175 * symmisc.c (dump_symtab_1): Update.
1176 (print_symbol): Update.
1177 * symtab.c (eq_symbol_entry): Update.
1178 (symbol_cache_dump): Update.
1179 (lookup_language_this): Update.
1180 (find_pc_sect_line): Update.
1181 (skip_prologue_sal): Update.
1182 (symbol_search::compare_search_syms): Update.
1183 (treg_matches_sym_type_name): Update.
1184 (search_symbols): Update.
1185 (print_symbol_info): Update.
1186 (rbreak_command): Update.
1187 (completion_list_add_symbol): Update.
1188 (find_gnu_ifunc): Update.
1189 (get_symbol_address): Update.
1190 (search_module_symbols): Update.
1191 (info_module_subcommand): Update.
1192 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1193 (SYMBOL_LINKAGE_NAME): Remove.
1194 (SYMBOL_DEMANGLED_NAME): Remove.
1195 (SYMBOL_PRINT_NAME): Remove.
1196 (SYMBOL_SEARCH_NAME): Remove.
1197 * tracepoint.c (set_traceframe_context): Update.
1198 (validate_actionline): Update.
1199 (collection_list::collect_symbol): Update.
1200 (encode_actions_1): Update.
1201 (info_scope_command): Update.
1202 (print_one_static_tracepoint_marker): Update.
1203 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1204 * valops.c (address_of_variable): Update.
1205 (find_overload_match): Update.
1206 (find_oload_champ): Update.
1207
c9d95fa3
CB
12082019-11-22 Christian Biesinger <cbiesinger@google.com>
1209
1210 * ada-lang.c (ada_lookup_simple_minsym): Update.
1211 (ada_collect_symbol_completion_matches): Update.
1212 * ada-tasks.c (read_atcb): Update.
1213 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1214 (amd64_windows_skip_trampoline_code): Update.
1215 * arm-tdep.c (skip_prologue_function): Update.
1216 (arm_skip_stack_protector): Update.
1217 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1218 (arm_wince_skip_main_prologue): Update.
1219 * ax-gdb.c (gen_expr): Update.
1220 * block.c (call_site_for_pc): Update.
1221 * blockframe.c (find_pc_partial_function): Update.
1222 * breakpoint.c (set_breakpoint_location_function): Update.
1223 * btrace.c (ftrace_print_function_name): Update.
1224 (ftrace_function_switched): Update.
1225 * c-valprint.c (print_unpacked_pointer): Update.
1226 * coffread.c (coff_symfile_read): Update.
1227 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1228 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1229 * dwarf-index-write.c (write_psymbols): Update.
1230 * dwarf2loc.c (call_site_to_target_addr): Update.
1231 (func_verify_no_selftailcall): Update.
1232 (tailcall_dump): Update.
1233 (call_site_find_chain_1): Update.
1234 (dwarf_expr_reg_to_entry_parameter): Update.
1235 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1236 * eval.c (evaluate_funcall): Update.
1237 (evaluate_subexp_standard): Update.
1238 (evaluate_subexp_for_sizeof): Update.
1239 * expprint.c (print_subexp_standard): Update.
1240 (dump_subexp_body_standard): Update.
1241 * frame.c (get_prev_frame_always_1): Update.
1242 * frv-tdep.c (frv_skip_main_prologue): Update.
1243 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1244 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1245 (gnuv3_get_typename_from_type_info): Update.
1246 (gnuv3_skip_trampoline): Update.
1247 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1248 * i386-tdep.c (i386_skip_main_prologue): Update.
1249 (i386_pe_skip_trampoline_code): Update.
1250 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1251 * infcall.c (get_function_name): Update.
1252 * linespec.c (minsym_found): Update.
1253 * linux-fork.c (info_checkpoints_command): Update.
1254 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1255 (m32c_m16c_pointer_to_address): Update.
1256 * maint.c (maintenance_translate_address): Update.
1257 * minsyms.c (add_minsym_to_hash_table): Update.
1258 (add_minsym_to_demangled_hash_table): Update.
1259 (lookup_minimal_symbol_mangled): Update.
1260 (lookup_minimal_symbol_demangled): Update.
1261 (lookup_minimal_symbol_linkage): Update.
1262 (lookup_minimal_symbol_text): Update.
1263 (lookup_minimal_symbol_by_pc_name): Update.
1264 (minimal_symbol_is_less_than): Update.
1265 (compact_minimal_symbols): Update.
1266 (build_minimal_symbol_hash_tables): Update.
1267 (find_solib_trampoline_target): Update.
1268 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1269 (mips_skip_pic_trampoline_code): Update.
1270 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1271 * objc-lang.c (info_selectors_command): Update.
1272 (info_classes_command): Update.
1273 (find_methods): Update.
1274 (find_imps): Update.
1275 * p-valprint.c (pascal_val_print): Update.
1276 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1277 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1278 * printcmd.c (build_address_symbolic): Update.
1279 (info_symbol_command): Update.
1280 * psymtab.c (psymbol_name_matches): Update.
1281 (match_partial_symbol): Update.
1282 (lookup_partial_symbol): Update.
1283 (print_partial_symbols): Update.
1284 (sort_pst_symbols): Update.
1285 (maintenance_check_psymtabs): Update.
1286 * python/py-framefilter.c (py_print_frame): Update.
1287 * python/python.c (gdbpy_rbreak): Update.
1288 * record-btrace.c (btrace_get_bfun_name): Update.
1289 (btrace_call_history): Update.
1290 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1291 (rs6000_skip_trampoline_code): Update.
1292 * sol-thread.c (info_cb): Update.
1293 * stabsread.c (scan_file_globals): Update.
1294 * stack.c (find_frame_funname): Update.
1295 (info_frame_command_core): Update.
1296 * symmisc.c (dump_msymbols): Update.
1297 * symtab.c (symbol_natural_name): Rename to..,
1298 (general_symbol_info::natural_name): ...this.
1299 (symbol_demangled_name): Rename to...
1300 (general_symbol_info::demangled_name): ...this.
1301 (symbol_search_name): Rename to...
1302 (general_symbol_info::search_name): ...this.
1303 (symbol_matches_search_name): Update.
1304 (find_pc_sect_line): Update.
1305 (skip_prologue_sal): Update.
1306 (search_symbols): Update.
1307 (print_msymbol_info): Update.
1308 (rbreak_command): Update.
1309 (completion_list_add_msymbol): Update.
1310 (completion_list_objc_symbol): Update.
1311 (get_msymbol_address): Update.
1312 * symtab.h (struct general_symbol_info): Add member functions
1313 natural_name (), linkage_name (), print_name (), demangled_name (),
1314 and search_name ().
1315 (SYMBOL_NATURAL_NAME): Update.
1316 (symbol_natural_name): Move to a member function on general_symbol_info.
1317 (SYMBOL_DEMANGLED_NAME): Update.
1318 (symbol_demangled_name): Move to a member function on
1319 general_symbol_info.
1320 (SYMBOL_SEARCH_NAME): Update.
1321 (symbol_search_name): Move to a member function on general_symbol_info.
1322 (MSYMBOL_NATURAL_NAME): Remove.
1323 (MSYMBOL_LINKAGE_NAME): Remove.
1324 (MSYMBOL_PRINT_NAME): Remove.
1325 (MSYMBOL_DEMANGLED_NAME): Remove.
1326 (MSYMBOL_SEARCH_NAME): Remove.
1327 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1328
f8bab2d6
CB
13292019-11-22 Christian Biesinger <cbiesinger@google.com>
1330
1331 * symtab.c (create_demangled_names_hash): Use per_bfd->
1332 minimal_symbol_count for computing the initial size, if greater
1333 than our default size.
1334
85e7588d
TV
13352019-11-22 Tom de Vries <tdevries@suse.de>
1336
1337 * contrib/words.sh: Improve words extraction.
1338
f6180073
TV
13392019-11-22 Tom de Vries <tdevries@suse.de>
1340
1341 * contrib/words.sh: Combine sed invocations.
1342
f10ffa41
CB
13432019-11-21 Christian Biesinger <cbiesinger@google.com>
1344
1345 * Makefile.in: Update.
1346 * demangle.c: Rename to...
1347 * gdb-demangle.c: ..this.
1348 (is_cplus_marker): Change return type to bool.
1349 (_initialize_demangler): Rename to...
1350 (_initialize_gdb_demangle): ...this.
1351 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1352 * symtab.h (demangle): Remove declaration; instead include
1353 gdb-demangle.h.
1354
6ba18521
TT
13552019-11-21 Tom Tromey <tromey@adacore.com>
1356
1357 * gdbsupport/format.c (format_pieces): Parse %I64d.
1358 * unittests/format_pieces-selftests.c (test_windows_formats): New
1359 function.
1360 (run_tests): Call it.
1361
34877895
PJ
13622019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1363
1364 Byte reverse display of variables with DW_END_big, DW_END_little
1365 (DW_AT_endianity) dwarf attributes if different than the native
1366 byte order.
1367 * ada-lang.c (ada_value_binop):
1368 Use type_byte_order instead of gdbarch_byte_order.
1369 * ada-valprint.c (printstr):
1370 (ada_val_print_string):
1371 * ada-lang.c (value_pointer):
1372 (ada_value_binop):
1373 Use type_byte_order instead of gdbarch_byte_order.
1374 * c-lang.c (c_get_string):
1375 Use type_byte_order instead of gdbarch_byte_order.
1376 * c-valprint.c (c_val_print_array):
1377 Use type_byte_order instead of gdbarch_byte_order.
1378 * cp-valprint.c (cp_print_class_member):
1379 Use type_byte_order instead of gdbarch_byte_order.
1380 * dwarf2loc.c (rw_pieced_value):
1381 Use type_byte_order instead of gdbarch_byte_order.
1382 * dwarf2read.c (read_base_type): Handle DW_END_big,
1383 DW_END_little
1384 * f-lang.c (f_get_encoding):
1385 Use type_byte_order instead of gdbarch_byte_order.
1386 * findvar.c (default_read_var_value):
1387 Use type_byte_order instead of gdbarch_byte_order.
1388 * gdbtypes.c (check_types_equal):
1389 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1390 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1391 and TYPE_ENDIANITY_LITTLE if set.
1392 (type_byte_order): new function.
1393 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1394 (struct main_type) <flag_endianity_not_default>:
1395 New field.
1396 (type_byte_order): New function.
1397 * infcmd.c (default_print_one_register_info):
1398 Use type_byte_order instead of gdbarch_byte_order.
1399 * p-lang.c (pascal_printstr):
1400 Use type_byte_order instead of gdbarch_byte_order.
1401 * p-valprint.c (pascal_val_print):
1402 Use type_byte_order instead of gdbarch_byte_order.
1403 * printcmd.c (print_scalar_formatted):
1404 Use type_byte_order instead of gdbarch_byte_order.
1405 * solib-darwin.c (darwin_current_sos):
1406 Use type_byte_order instead of gdbarch_byte_order.
1407 * solib-svr4.c (solib_svr4_r_ldsomap):
1408 Use type_byte_order instead of gdbarch_byte_order.
1409 * stap-probe.c (stap_modify_semaphore):
1410 Use type_byte_order instead of gdbarch_byte_order.
1411 * target-float.c (target_float_same_format_p):
1412 Use type_byte_order instead of gdbarch_byte_order.
1413 * valarith.c (scalar_binop):
1414 (value_bit_index):
1415 Use type_byte_order instead of gdbarch_byte_order.
1416 * valops.c (value_cast):
1417 Use type_byte_order instead of gdbarch_byte_order.
1418 * valprint.c (generic_emit_char):
1419 (generic_printstr):
1420 (val_print_string):
1421 Use type_byte_order instead of gdbarch_byte_order.
1422 * value.c (unpack_long):
1423 (unpack_bits_as_long):
1424 (unpack_value_bitfield):
1425 (modify_field):
1426 (pack_long):
1427 (pack_unsigned_long):
1428 Use type_byte_order instead of gdbarch_byte_order.
1429 * findvar.c (unsigned_pointer_to_address):
1430 (signed_pointer_to_address):
1431 (unsigned_address_to_pointer):
1432 (address_to_signed_pointer):
1433 (default_read_var_value):
1434 (default_value_from_register):
1435 Use type_byte_order instead of gdbarch_byte_order.
1436 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1437 Use type_byte_order instead of gdbarch_byte_order.
1438 * riscv-tdep.c (riscv_print_one_register_info):
1439 Use type_byte_order instead of gdbarch_byte_order.
1440
87fb00ea
SM
14412019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1442
1443 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1444 (current_ui_gdb_stdin_ptr): Likewise.
1445 (current_ui_gdb_stderr_ptr): Likewise.
1446 (current_ui_gdb_stdlog_ptr): Likewise.
1447 (current_ui_current_uiout_ptr): Likewise.
1448 (gen_ret_current_ui_field_ptr): Remove.
1449
65d1cd5f
TV
14502019-11-21 Tom de Vries <tdevries@suse.de>
1451
1452 PR gdb/24956
1453 * cli/cli-script.c (execute_control_command): Only switch to
1454 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1455
9f6ad286
TT
14562019-11-19 Tom Tromey <tom@tromey.com>
1457
1458 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1459 Now static. Change type of "name".
1460 (tui_set_win_height_command): Don't copy "arg".
1461 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1462 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1463
435d3d88
AT
14642019-11-19 Ali Tamur <tamur@google.com>
1465
1466 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1467 "if (attr != nullptr)".
1468 (dwarf2_find_base_address): Likewise.
1469 (dwarf2_build_include_psymtabs): Likewise.
1470 (read_cutu_die_from_dwo): Likewise.
1471 (read_func_scope): Likewise.
1472 (read_call_site_scope): Likewise.
1473 (dwarf2_get_pc_bounds): Likewise.
1474 (dwarf2_record_block_ranges): Likewise.
1475 (dwarf2_add_field): Likewise.
1476 (dwarf2_add_member_fn): Likewise.
1477 (read_structure_type): Likewise.
1478 (read_enumeration_type): Likewise.
1479 (read_array_type): Likewise.
1480 (read_array_order): Likewise.
1481 (read_set_type): Likewise.
1482 (read_common_block): Likewise.
1483 (read_tag_reference_type): Likewise.
1484 (read_tag_string_type): Likewise.
1485 (read_subroutine_type): Likewise.
1486 (read_base_type): Likewise.
1487 (read_subrange_type): Likewise.
1488 (new_symbol): Likewise.
1489 (prepare_one_comp_unit): Likewise.
1490
c9739b6a
TT
14912019-11-19 Tom Tromey <tromey@adacore.com>
1492
1493 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1494 result in error when DebugActiveProcess fails.
1495
494409bb
SDJ
14962019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1497 Pedro Alves <palves@redhat.com>
1498
1499 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1500 * target.c (target_stack::push): Call 'unpush' if there's a
1501 target on top of the stack.
1502
2e953aca
PW
15032019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1504
1505 * python/py-block.c (blpy_dealloc): Call tp_free.
1506 (blpy_block_syms_dealloc): Likewise.
1507 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1508 * python/py-inferior.c (infpy_dealloc): Likewise.
1509 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1510 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1511 * python/py-symbol.c (sympy_dealloc): Likewise.
1512 * python/py-symtab.c (stpy_dealloc): Likewise.
1513 * python/py-type.c (typy_iterator_dealloc): Likewise.
1514
6edc43ec
CB
15152019-11-18 Christian Biesinger <cbiesinger@google.com>
1516
1517 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1518 constructor instead of using a class initializer.
1519
cd850b40
CB
15202019-11-15 Christian Biesinger <cbiesinger@google.com>
1521
1522 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1523 * configure: Regenerate.
1524 * configure.ac: Don't source common.host.
1525 * gdbsupport/common.host: Remove.
1526 * gdbsupport/mingw-strerror.c: Remove.
1527 * gdbsupport/posix-strerror.c: Rename to...
1528 * gdbsupport/safe-strerror.c: ...this.
1529
53fea9c7
CB
15302019-11-15 Christian Biesinger <cbiesinger@google.com>
1531
1532 * maint.c (scoped_command_stats::print_time): Use localtime_r
1533 instead of localtime (provided through gnulib if necessary).
1534 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1535 of ctime.
1536
f8e27d88
CB
15372019-11-15 Christian Biesinger <cbiesinger@google.com>
1538
1539 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1540 avoid compile errors.
1541
5abebf3c
CB
15422019-11-15 Christian Biesinger <cbiesinger@google.com>
1543
1544 * config.in: Regenerate.
1545 * configure: Regenerate.
1546 * gdbsupport/common.m4: No longer check for strerror_r.
1547 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1548 POSIX version of strerror_r, now that gnulib provides it if
1549 necessary.
1550
9a351667
CB
15512019-11-14 Christian Biesinger <cbiesinger@google.com>
1552
1553 * README (`configure' options): Update.
1554
55708e99
TT
15552019-11-14 Tom Tromey <tromey@adacore.com>
1556
1557 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1558 expected type for the RHS if the LHS is a convenience variable.
1559
4b09bb2e
SM
15602019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1561
1562 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1563 Provide explicit default and copy constructor.
1564
bd454f8b
PW
15652019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1566
1567 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1568 only call Py_INCREF (newbp) in the bppy_pending_object case.
1569
d1aa3cf0
TT
15702019-11-13 Tom Tromey <tromey@adacore.com>
1571
1572 PR build/25182:
1573 * psympriv.h (partial_symbol): Remove static assert.
1574 * symtab.h (general_symbol_info, symbol): Remove static assert.
1575
e06f3d6e
AB
15762019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1577
1578 * gdbsupport/format.c (format_pieces::format_pieces): Support
1579 printf 'z' size modifier.
1580 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1581 * printcmd.c (ui_printf): Handle size_t_arg.
1582 * ui-out.c (ui_out::vmessage): Likewise.
1583 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1584 function.
1585 (run_tests): Call test_format_int_sizes.
1586
468c0cbb
CB
15872019-11-12 Christian Biesinger <cbiesinger@google.com>
1588
1589 * ada-exp.y (write_ambiguous_var): Update.
1590 * buildsym.c (add_symbol_to_list): Update.
1591 * dwarf2read.c (read_variable): Update.
1592 (new_symbol): Update.
1593 * jit.c (finalize_symtab): Update.
1594 * language.c (language_alloc_type_symbol): Update.
1595 * symtab.c (fixup_symbol_section): Update.
1596 (initialize_objfile_symbol_1): Move code to...
1597 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1598 (allocate_symbol): Update.
1599 (allocate_template_symbol): Update.
1600 (get_symbol_address): Update.
1601 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1602 of having as a field, and add a constructor.
1603 (SYMBOL_VALUE): Update.
1604 (SYMBOL_VALUE_ADDRESS): Update.
1605 (SET_SYMBOL_VALUE_ADDRESS): Update.
1606 (SYMBOL_VALUE_BYTES): Update.
1607 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1608 (SYMBOL_BLOCK_VALUE): Update.
1609 (SYMBOL_VALUE_CHAIN): Update.
1610 (SYMBOL_LANGUAGE): Update.
1611 (SYMBOL_SECTION): Update.
1612 (SYMBOL_OBJ_SECTION): Update.
1613 (SYMBOL_SET_LANGUAGE): Update.
1614 (SYMBOL_SET_LINKAGE_NAME): Update.
1615 (SYMBOL_SET_NAMES): Update.
1616 (SYMBOL_NATURAL_NAME): Update.
1617 (SYMBOL_LINKAGE_NAME): Update.
1618 (SYMBOL_DEMANGLED_NAME): Update.
1619 (SYMBOL_SEARCH_NAME): Update.
1620 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1621 (struct symbol): Update.
1622 (struct template_symbol): Update.
1623 (struct rust_vtable_symbol): Update.
1624 * xcoffread.c (SYMBOL_DUP): Update.
1625
ed2c82c3
TT
16262019-11-12 Tom Tromey <tom@tromey.com>
1627
1628 * tui/tui-layout.c (show_layout): Set current_layout.
1629 (show_source_disasm_command, show_data)
1630 (show_source_or_disasm_and_command): Don't set current_layout.
1631
d9fcefd5
TT
16322019-11-12 Tom Tromey <tom@tromey.com>
1633
1634 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1635
45e42163
TT
16362019-11-12 Tom Tromey <tom@tromey.com>
1637
1638 * tui/tui-win.c (resize_message): New global.
1639 (show_tui_resize_message): New function.
1640 (tui_async_resize_screen): Print message if requested.
1641 (_initialize_tui_win): Add tui-resize-message setting.
1642 * NEWS: Add entry for new commands.
1643
c86d74cc
TT
16442019-11-11 Tom Tromey <tom@tromey.com>
1645
1646 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1647 functions.
1648
7b7b9424
CB
16492019-11-11 Christian Biesinger <cbiesinger@google.com>
1650
1651 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1652
086baaf1
AB
16532019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1654
1655 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1656 function.
1657 * python/python-internal.h (gdbpy_lookup_static_symbols):
1658 Declare new function.
1659 * python/python.c (python_GdbMethods): Add
1660 gdb.lookup_static_symbols method.
1661 * NEWS: Mention gdb.lookup_static_symbols.
1662
09ff83af
AB
16632019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1664
1665 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1666 static block of current object file first. Also fix typo in
1667 header comment.
1668
eb2dd8df
AB
16692019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1670
1671 * stack.c (set_last_displayed_sal): Delete.
1672 (last_displayed_sal_valid): Delete.
1673 (last_displayed_pspace): Delete.
1674 (last_displayed_addr): Delete.
1675 (last_displayed_symtab): Delete.
1676 (last_displayed_line): Delete.
1677 (class last_displayed_symtab_info_type): New.
1678 (last_displayed_symtab_info): New static global variable.
1679 (print_frame_info): Call methods on last_displayed_symtab_info.
1680 (clear_last_displayed_sal): Update header comment, and make use of
1681 last_displayed_symtab_info.
1682 (last_displayed_sal_is_valid): Likewise.
1683 (get_last_displayed_pspace): Likewise.
1684 (get_last_displayed_addr): Likewise.
1685 (get_last_displayed_symtab): Likewise.
1686 (get_last_displayed_line): Likewise.
1687 (get_last_displayed_sal): Likewise.
1688 * stack.h (clear_last_displayed_sal): Update header comment.
1689 (last_displayed_sal_is_valid): Likewise.
1690 (get_last_displayed_pspace): Likewise.
1691 (get_last_displayed_addr): Likewise.
1692 (get_last_displayed_symtab): Likewise.
1693 (get_last_displayed_line): Likewise.
1694 (get_last_displayed_sal): Likewise.
1695
62137775
AB
16962019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1697
1698 * stack.c (frame_show_address): Convert return type to bool.
1699 * stack.h (frame_show_address): Likewise, and update header
1700 comment.
1701
cf57ad6d
AB
17022019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1703
1704 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1705 * unittests/vec-utils-selftests.c: New file.
1706 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1707
0b026263
TT
17082019-11-10 Tom Tromey <tom@tromey.com>
1709
1710 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1711 (tui_highlight_win): Likewise.
1712 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1713 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1714 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1715 Don't set can_highlight.
1716
b049ce2d
TT
17172019-11-10 Tom Tromey <tom@tromey.com>
1718
1719 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1720 Remove unused declaration.
1721
992a7040
TT
17222019-11-08 Tom Tromey <tromey@adacore.com>
1723
1724 * top.c (read_command_file): Update.
1725 (command_line_input): Make return type const.
1726 * python/py-gdb-readline.c: Update.
1727 * linespec.c (decode_line_2): Update.
1728 * defs.h (command_line_input): Make return type const.
1729 * cli/cli-script.c (read_next_line): Make return type const.
1730 * ada-lang.c (get_selections): Update.
1731
ca3a04f6
CB
17322019-11-06 Christian Biesinger <cbiesinger@google.com>
1733
1734 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1735 * mi/mi-main.c (output_cores): Likewise.
1736 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1737 (linux_xfer_osdata_modules): Likewise.
1738 * remote.c (register_remote_support_xml): Likewise.
1739 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1740 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1741
e0eac551
TT
17422019-11-06 Tom Tromey <tom@tromey.com>
1743
1744 * tui/tui-interp.c: Don't include readline.h.
1745 * tui/tui-hooks.c: Don't include readline.h.
1746 * symmisc.c: Include tilde.h, not readline.h.
1747 * symfile.c: Include tilde.h, not readline.h.
1748 * source.c: Include tilde.h, not readline.h.
1749 * solib.c: Include tilde.h, not readline.h.
1750 * psymtab.c: Include tilde.h, not readline.h.
1751 * exec.c: Include tilde.h, not readline.h.
1752 * corelow.c: Include tilde.h, not readline.h.
1753 * cli/cli-dump.c: Include tilde.h, not readline.h.
1754 * cli/cli-cmds.c: Don't include readline.h.
1755
825165c5
TT
17562019-11-05 Tom Tromey <tom@tromey.com>
1757
1758 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1759 (tui_disassemble): Set addr_size.
1760 (tui_disasm_window::set_contents): Use addr_size.
1761
91ae903f
TT
17622019-11-05 Tom Tromey <tom@tromey.com>
1763
1764 * rust-lang.c (rust_language_defn): Update.
1765 * python/py-value.c (valpy_string): Call c_get_string.
1766 * p-lang.c (pascal_language_defn): Update.
1767 * opencl-lang.c (opencl_language_defn): Update.
1768 * objc-lang.c (objc_language_defn): Update.
1769 * m2-lang.c (m2_language_defn): Update.
1770 * language.c (unknown_language_defn, auto_language_defn): Update.
1771 (default_get_string): Remove.
1772 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1773 * go-lang.c (go_language_defn): Update.
1774 * f-lang.c (f_language_defn): Update.
1775 * d-lang.c (d_language_defn): Update.
1776 * c-lang.c (c_language_defn, cplus_language_defn)
1777 (asm_language_defn, minimal_language_defn): Update.
1778 * ada-lang.c (ada_language_defn): Update.
1779 * language.h (struct language_defn) <la_get_string>: Remove.
1780 (LA_GET_STRING): Remove.
1781 (default_get_string): Don't declare.
1782
1df2f9ef
TT
17832019-11-05 Tom Tromey <tom@tromey.com>
1784
1785 * tui/tui-source.h (struct tui_source_window): Inline
1786 constructor. Remove destructor.
1787 <style_changed, m_observable>: Move to superclass.
1788 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1789 (struct tui_source_window_base): Move private members to end.
1790 <style_changed, m_observable>: Move from tui_source_window.
1791 * tui/tui-winsource.c (tui_copy_source_line): Move from
1792 tui-source.c. Rename from copy_source_line. Add special handling
1793 for negative line number.
1794 (tui_source_window_base::style_changed): Move from
1795 tui_source_window.
1796 (tui_source_window_base): Register observer.
1797 (~tui_source_window_base): New.
1798 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1799 rename.
1800 (tui_source_window::set_contents): Use tui_copy_source_line.
1801 (tui_source_window::tui_source_window): Move to tui-source.h.
1802 (tui_source_window::~tui_source_window): Remove.
1803 (tui_source_window::style_changed): Move to superclass.
1804 * tui/tui-disasm.c (tui_disassemble): Create string file with
1805 styling, when possible. Add "addr_size" parameter.
1806 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1807 Don't compute maximum size.
1808 (len_without_escapes): New function
1809
5d051055
TT
18102019-11-05 Tom Tromey <tom@tromey.com>
1811
1812 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1813 std::string.
1814 * tui/tui-winsource.c (tui_show_source_line): Update.
1815 * tui/tui-source.c (tui_source_window::set_contents): Update.
1816 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1817
ade7beea
CB
18182019-11-05 Christian Biesinger <cbiesinger@google.com>
1819
1820 * symtab.h (gdb_static_assert): Put && operator at the beginning
1821 of the line instead of the end.
1822
3573abe1
CB
18232019-11-04 Christian Biesinger <cbiesinger@google.com>
1824
1825 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1826 and sizeof (symbol).
1827 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1828
dae8b3eb
RO
18292019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1830
1831 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1832 * configure.host: Mark *-*-solaris2.10* obsolete.
1833 * configure.tgt: Mark Solaris < 11 obsolete.
1834 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1835 Update target triplet.
1836
5df96a4e
TT
18372019-11-01 Tom Tromey <tromey@adacore.com>
1838
1839 * utils.c (print_sys_errmsg): Simplify.
1840
b7481649
TT
18412019-11-01 Tom Tromey <tromey@adacore.com>
1842
1843 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1844
e48f6033
CB
18452019-11-01 Christian Biesinger <cbiesinger@google.com>
1846
1847 * configure: Regenerate.
1848 * configure.ac: Remove check for strerror_r.
1849 * gdbsupport/common.m4: Check for strerror_r.
1850
bd5766ec
LM
18512019-11-01 Luis Machado <luis.machado@linaro.org>
1852
1853 PR gdb/25124
1854
1855 * arm-tdep.c (arm_per_objfile): Rename to ...
1856 (arm_per_bfd): ... this.
1857 (arm_objfile_data_key): Rename to ...
1858 (arm_bfd_data_key): ... this.
1859 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1860 data.
1861 (arm_record_special_symbol): Likewise.
1862
e1709896
AB
18632019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1864
1865 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1866 end.
1867 * c-typeprint.c (c_print_typedef): Likewise.
1868 * f-typeprint.c (f_print_typedef): Likewise.
1869 * m2-typeprint.c (m2_print_typedef): Likewise.
1870 * p-typeprint.c (pascal_print_typedef): Likewise.
1871 * rust-lang.c (rust_print_typedef): Likewise.
1872 * symtab.c (print_symbol_info): Print a newline after calling
1873 typedef_print.
1874
165f8965
AB
18752019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1876
1877 * symtab.c (info_module_cmdlist): New variable.
1878 (info_module_command): New function.
1879 (search_module_symbols): New function.
1880 (info_module_subcommand): New function.
1881 (struct info_modules_var_func_options): New struct.
1882 (info_modules_var_func_options_defs): New variable.
1883 (make_info_modules_var_func_options_def_group): New function.
1884 (info_module_functions_command): New function.
1885 (info_module_variables_command): New function.
1886 (info_module_var_func_command_completer): New function.
1887 (_initialize_symtab): Register new 'info module functions' and
1888 'info module variables' commands.
1889 * symtab.h (typedef symbol_search_in_module): New typedef.
1890 (search_module_symbols): Declare new function.
1891 * NEWS: Mention new commands.
1892
59c35742
AB
18932019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1894
1895 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1896 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1897 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1898 MODULES_DOMAIN.
1899 (scan_partial_symbols): Only create partial module symbols for non
1900 declarations.
1901 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1902 and MODULES_DOMAIN.
1903 * symtab.c (search_domain_name): Likewise.
1904 (search_symbols): Likewise.
1905 (print_symbol_info): Likewise.
1906 (symtab_symbol_info): Likewise.
1907 (info_modules_command): New function.
1908 (_initialize_symtab): Register 'info modules' command.
1909 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1910 * NEWS: Mention new 'info modules' command.
1911
aed61d02
PW
19122019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1913
1914 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1915 and $_gdb_maint_setting_str.
1916
9ad9b77d
PW
19172019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1918
1919 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1920 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1921 (str_value_from_setting, gdb_setting_str_internal_fn)
1922 (gdb_maint_setting_str_internal_fn): New functions.
1923 (_initialize_cli_cmds): Define the new convenience functions.
1924 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1925 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1926
8d6efaa2
CB
19272019-10-31 Christian Biesinger <cbiesinger@google.com>
1928
1929 * agent.c (set_can_use_agent): When the setting is turned on,
1930 look up agent symbols if we don't have them yet.
1931 (agent_new_objfile): Don't look up agent symbols when the agent
1932 setting is off.
1933
33cb1647
CB
19342019-10-31 Christian Biesinger <cbiesinger@google.com>
1935
1936 * config.in: Regenerate.
1937
b231e86a
CB
19382019-10-31 Christian Biesinger <cbiesinger@google.com>
1939
1940 * configure: Regenerate.
1941 * configure.ac: Check for strerror_r.
1942 * gdbsupport/common-utils.h (safe_strerror): Change return value
1943 to const char * and document that this function is now threadsafe.
1944 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1945 thread_local and call strerror_r, if available.
1946 * utils.c (perror_string): Update.
1947 (print_sys_errmsg): Update.
1948
a2726d4f
LM
19492019-10-31 Luis Machado <luis.machado@linaro.org>
1950
1951 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1952 objfile_key.
1953 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1954 objfile to fetch per-bfd data.
1955 (arm_find_exidx_entry): Likewise.
1956
75cafaa6
CB
19572019-10-31 Christian Biesinger <cbiesinger@google.com>
1958
1959 * gdbsupport/agent.c (debug_agent): Change type to bool.
1960 (use_agent): Likewise.
1961 (all_agent_symbols_look_up): Likewise.
1962 (agent_loaded_p): Change return value to bool.
1963 (agent_look_up_symbols): Update.
1964 (agent_capability_check): Change return value to bool.
1965 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1966 (debug_agent): Change type to bool.
1967 (use_agent): Likewise.
1968 (agent_capability_check): Change return value to bool.
1969
808590ec
CB
19702019-10-30 Christian Biesinger <cbiesinger@google.com>
1971
1972 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1973 (build_minimal_symbol_hash_tables): Code to clear the table moved
1974 to clear_minimal_symbol_hash_tables.
1975 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1976 when needed.
1977
f18ad8a1
SM
19782019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1979
1980 * infcmd.c: Remove includes.
1981 * infrun.c: Remove includes.
1982
de93309a
SM
19832019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1984
1985 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1986 (grow_vect): Remove declaration.
1987 (ada_type_of_array): Remove declaration.
1988 (ada_update_initial_language): Remove declaration.
1989 (ada_fold_name): Remove declaration.
1990 (ada_fill_in_ada_prototype): Remove declaration.
1991 (user_select_syms): Remove declaration.
1992 (get_selections): Remove declaration.
1993 (ada_tag_type): Remove declaration.
1994 (ada_value_tag): Remove declaration.
1995 (ada_is_others_clause): Remove declaration.
1996 (ada_in_variant): Remove declaration.
1997 (ada_value_struct_elt): Remove declaration.
1998 (ada_attribute_name): Remove declaration.
1999 (ada_system_address_type): Remove declaration.
2000 * ada-lang.c (ada_watch_location_expression): Make static.
2001 (GROW_VECT): Move here from ada-lang.h.
2002 (grow_vect): Make static.
2003 (ada_update_initial_language): Make static.
2004 (ada_fold_name): Make static.
2005 (ada_type_of_array): Make static.
2006 (encoded_ordered_before): Move up.
2007 (sort_choices): Move up.
2008 (print_signatures): Move up.
2009 (ada_print_symbol_signature): Move up.
2010 (get_selections): Move up and make static.
2011 (user_select_syms): Move up and make static.
2012 (ada_value_struct_elt): Move up and make static.
2013 (ada_tag_type): Make static.
2014 (ada_value_tag): Make static.
2015 (ada_is_others_clause): Make static.
2016 (ada_in_variant): Make static.
2017 (ada_attribute_name): Make static.
2018
cdc46a9f
SM
20192019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2020
2021 * ada-lang.c: Remove includes.
2022 * ada-typeprint.c: Remove includes.
2023 * ada-valprint.c: Remove includes.
2024
90421c56
SM
20252019-10-29 Simon Marchi <simon.marchi@efficios.com>
2026
2027 * addrmap.c: Add static assertions of type size, moved from
2028 _initialize_addrmap.
2029 (_initialize_addrmap): Remove.
2030
31edb802
CB
20312019-10-29 Christian Biesinger <cbiesinger@google.com>
2032
2033 * coffread.c (record_minimal_symbol): Update.
2034 (process_coff_symbol): Update.
2035 * dbxread.c (read_dbx_symtab): Update.
2036 * dwarf2read.c (add_partial_symbol): Update.
2037 (fixup_go_packaging): Update.
2038 (load_partial_dies): Update.
2039 (new_symbol): Update.
2040 * elfread.c (record_minimal_symbol): Change signature to use
2041 gdb::string_view instead of name+len.
2042 (elf_symtab_read): Update.
2043 (elf_rel_plt_read): Update.
2044 * mdebugread.c (parse_partial_symbols): Update.
2045 (handle_psymbol_enumerators): Update.
2046 (new_symbol): Update.
2047 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2048 to use gdb::string_view instead of name+len.
2049 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2050 * psympriv.h (add_psymbol_to_list): Likewise.
2051 * psymtab.c (add_psymbol_to_bcache): Likewise.
2052 (add_psymbol_to_list): Likewise.
2053 * stabsread.c (define_symbol): Update.
2054 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2055 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2056 (symbol_set_names): Likewise.
2057 * xcoffread.c (scan_xcoff_symtab): Update.
2058
0c921b21
CB
20592019-10-29 Christian Biesinger <cbiesinger@google.com>
2060
2061 * symtab.h (symbol_set_names): Document that copy_name must be
2062 set to true for non-nullterminated strings.
2063 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2064 linkage_name if the entry was not found and we need to demangle.
2065
35e65c49
CB
20662019-10-29 Christian Biesinger <cbiesinger@google.com>
2067
2068 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2069 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2070 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2071 * gdbsupport/gdb_binary_search.h: New file.
2072
ed2a2229
CB
20732019-10-29 Christian Biesinger <cbiesinger@google.com>
2074
2075 * NEWS: Mention new --with-system-gdbinit-dir option.
2076 * config.in: Regenerate.
2077 * configure: Regenerate.
2078 * configure.ac: Add new option --with-system-gdbinit-dir.
2079 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2080 for a ".gdb" suffix.
2081 * main.c (get_init_files): Change system_gdbinit argument to
2082 a vector and return the files in SYSTEM_GDBINIT_DIR in
2083 addition to SYSTEM_GDBINIT.
2084 (captured_main_1): Update.
2085 (print_gdb_help): Update.
2086 * top.c (print_gdb_configuration): Also print the value of
2087 SYSTEM_GDBINIT_DIR.
2088
87f34879
CB
20892019-10-28 Christian Biesinger <cbiesinger@google.com>
2090
2091 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2092 that takes gdb::string_view arguments.
2093
30baf67b
TV
20942019-10-26 Tom de Vries <tdevries@suse.de>
2095
2096 * aarch64-linux-tdep.c: Fix typos in comments.
2097 * aarch64-tdep.c: Same.
2098 * ada-lang.c: Same.
2099 * amd64-nat.c: Same.
2100 * arc-tdep.c: Same.
2101 * arch/aarch64-insn.c: Same.
2102 * block.c: Same.
2103 * breakpoint.h: Same.
2104 * btrace.h: Same.
2105 * c-varobj.c: Same.
2106 * cli/cli-decode.c: Same.
2107 * cli/cli-script.c: Same.
2108 * cli/cli-utils.h: Same.
2109 * coff-pe-read.c: Same.
2110 * coffread.c: Same.
2111 * compile/compile-cplus-symbols.c: Same.
2112 * compile/compile-object-run.c: Same.
2113 * completer.c: Same.
2114 * corelow.c: Same.
2115 * cp-support.c: Same.
2116 * demangle.c: Same.
2117 * dwarf-index-write.c: Same.
2118 * dwarf2-frame.c: Same.
2119 * dwarf2-frame.h: Same.
2120 * eval.c: Same.
2121 * frame-base.h: Same.
2122 * frame.h: Same.
2123 * gdbcmd.h: Same.
2124 * gdbtypes.h: Same.
2125 * gnu-nat.c: Same.
2126 * guile/scm-objfile.c: Same.
2127 * i386-tdep.c: Same.
2128 * i386-tdep.h: Same.
2129 * infcall.c: Same.
2130 * infcall.h: Same.
2131 * linux-nat.c: Same.
2132 * m68k-tdep.c: Same.
2133 * macroexp.c: Same.
2134 * memattr.c: Same.
2135 * mi/mi-cmd-disas.c: Same.
2136 * mi/mi-getopt.h: Same.
2137 * mi/mi-main.c: Same.
2138 * minsyms.c: Same.
2139 * nat/aarch64-sve-linux-sigcontext.h: Same.
2140 * objfiles.h: Same.
2141 * ppc-linux-nat.c: Same.
2142 * ppc-linux-tdep.c: Same.
2143 * ppc-tdep.h: Same.
2144 * progspace.h: Same.
2145 * prologue-value.h: Same.
2146 * python/py-evtregistry.c: Same.
2147 * python/py-instruction.h: Same.
2148 * record-btrace.c: Same.
2149 * record-full.c: Same.
2150 * remote.c: Same.
2151 * rs6000-tdep.c: Same.
2152 * ser-tcp.c: Same.
2153 * sol-thread.c: Same.
2154 * sparc-sol2-tdep.c: Same.
2155 * sparc64-tdep.c: Same.
2156 * stabsread.c: Same.
2157 * symfile.c: Same.
2158 * symtab.h: Same.
2159 * target.c: Same.
2160 * tracepoint.c: Same.
2161 * tui/tui-data.h: Same.
2162 * tui/tui-io.c: Same.
2163 * tui/tui-win.c: Same.
2164 * tui/tui.c: Same.
2165 * unittests/rsp-low-selftests.c: Same.
2166 * user-regs.h: Same.
2167 * utils.c: Same.
2168 * utils.h: Same.
2169 * valarith.c: Same.
2170 * valops.c: Same.
2171 * valprint.c: Same.
2172 * valprint.h: Same.
2173 * value.c: Same.
2174 * value.h: Same.
2175 * varobj.c: Same.
2176 * x86-nat.h: Same.
2177 * xtensa-tdep.c: Same.
2178
1834d45f
AT
21792019-10-25 Ali Tamur <tamur@google.com>
2180
2181 * charset.c (find_charset_names): Reflect API change.
2182
5396ae17
CB
21832019-10-25 Christian Biesinger <cbiesinger@google.com>
2184
2185 * symtab.c (struct demangled_name_entry): Change demangled name
2186 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2187 part of the struct anymore.
2188 (symbol_set_names): No longer obstack allocate + copy the demangled
2189 name, just store the allocated name from bfd.
2190
93878f47
TT
21912019-10-25 Tom Tromey <tromey@adacore.com>
2192
2193 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2194 (bsearch_cie_cmp, add_cie): Remove.
2195 (find_cie): Reimplement.
2196 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2197 (dwarf2_build_frame_info): Update.
2198
7b71fc97
L
21992019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2200
2201 PR gdb/25126
2202 * symfile.c (reread_symbols): Call forget_cached_source_info to
2203 clear the stale source cache.
2204
cbb5a2ea
CB
22052019-10-24 Christian Biesinger <cbiesinger@google.com>
2206
2207 * configure: Regenerate.
2208 * configure.ac: Remove code that sets python_has_threads.
2209
71737c43
CB
22102019-10-24 Christian Biesinger <cbiesinger@google.com>
2211
2212 * config.in: Regenerate.
2213 * configure: Regenerate.
2214 * configure.ac: Remove the code that uses sed to get the python
2215 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2216
33d569b7
AB
22172019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2218
2219 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2220 error paths.
2221
f16f7b7c
TT
22222019-10-23 Tom Tromey <tom@tromey.com>
2223
2224 * arc-tdep.c: Remove ".." from include.
2225 * frv-tdep.c: Remove ".." from include.
2226 * lm32-tdep.c: Remove ".." from include.
2227 * microblaze-tdep.c: Remove ".." from include.
2228 * or1k-tdep.h: Remove ".." from include.
2229 * s12z-tdep.c: Remove ".." from include.
2230 * Makefile.in (OPCODES_CFLAGS): Add comment.
2231 (TOP_CFLAGS): New variable.
2232 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2233
6999161a
TT
22342019-10-23 Tom Tromey <tom@tromey.com>
2235
2236 * Makefile.in (READLINE_DIR): Update.
2237
12e7c35e
TBA
22382019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2239
2240 * infcall.c (call_function_by_hand_dummy): Fix the function
2241 comment. And extract out a code section into...
2242 (reserve_stack_space): ...this new function.
2243
37055cad
TBA
22442019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2245
2246 * infcall.c (value_arg_coerce): Remove an unused parameter.
2247 (call_function_by_hand_dummy): Update the call to
2248 'value_arg_coerce'.
2249
39bcc47c
TBA
22502019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2251
2252 * infcall.c (call_function_by_hand_dummy): Refactor.
2253
bd888c0f
TBA
22542019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2255
2256 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2257
c12d372d
TT
22582019-10-23 Tom Tromey <tom@tromey.com>
2259
2260 * configure: Rebuild.
2261 * configure.ac: Don't check for sigprocmask.
2262 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2263
4d0b984b
TT
22642019-10-23 Tom Tromey <tom@tromey.com>
2265
2266 * configure: Rebuild.
2267 * acinclude.m4: Use m4_include, not sinclude.
2268
7e785608
TV
22692019-10-23 Tom de Vries <tdevries@suse.de>
2270
2271 PR breakpoints/24687
2272 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2273
403772ef
CB
22742019-10-22 Christian Biesinger <cbiesinger@google.com>
2275
2276 * symtab.c (struct demangled_name_entry) <language>: Change from
2277 bitfield to regular variable.
2278
3a494279
CB
22792019-10-22 Christian Biesinger <cbiesinger@google.com>
2280
2281 * symtab.c (struct demangled_name_entry): Add a constructor.
2282 (free_demangled_name_entry): New function to call the destructor
2283 for demangled_name_entry.
2284 (create_demangled_names_hash): Pass free_demangled_name_entry to
2285 htab_create_alloc.
2286 (symbol_set_names): Call placement new for demangled_name_entry.
2287 * utils.c: No longer include xxhash.h here, now that fast_hash
2288 is inlined in the header.
2289 * utils.h: Instead, include it here.
2290
ccb1ba62
CB
22912019-10-22 Christian Biesinger <cbiesinger@google.com>
2292
2293 * Makefile.in: Link with libxxhash.
2294 * config.in: Regenerate.
2295 * configure: Regenerate.
2296 * configure.ac: Search for libxxhash.
2297 * utils.c (fast_hash): Use xxhash if present.
2298
1a6ff1a9
CB
22992019-10-22 Christian Biesinger <cbiesinger@google.com>
2300
2301 * utils.h (fast_hash): New function.
2302 * symtab.c (hash_demangled_name_entry): Call new function
2303 fast_hash.
2304
7bb43059
CB
23052019-10-22 Christian Biesinger <cbiesinger@google.com>
2306
2307 * symtab.c (struct demangled_name_entry): Change type of mangled
2308 to gdb::string_view. Also adds a constructor that takes the
2309 mangled name.
2310 (hash_demangled_name_entry): Update.
2311 (eq_demangled_name_entry): Update.
2312 (free_demangled_name_entry): New function to call the destructor
2313 now that this is not a POD anymore.
2314 (create_demangled_names_hash): Pass free_demangled_name_entry to
2315 htab_create_alloc.
2316 (symbol_set_names): Update.
2317
7ba99d21
AT
23182019-10-21 Ali Tamur <tamu@google.com>
2319
2320 * dwarf2read.c (dir_index): Change type.
2321 (file_name_index): Likewise.
2322 (line_header::include_dir_at): Change comment and implementation on
2323 whether it is DWARF 5.
2324 (line_header::is_valid_file_index): New function.
2325 (line_header::file_name_at): Change comment and implementation on
2326 whether it is DWARF 5.
2327 (line_header::file_names): Change to private field renamed as
2328 m_file_names and introduce a new accessor method.
2329 (line_header::file_names_size): New method.
2330 (line_header::include_dirs): Change to private field and rename as
2331 m_include_dirs.
2332 (dw2_get_file_names_reader): Define local var at a smaller scope and
2333 reflect API change.
2334 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2335 (process_structure_scope): Likewise.
2336 (line_header::add_include_dir): Change message and reflect renaming.
2337 (line_header::add_file_name): Likewise.
2338 (read_formatted_entries): Handle DW_FORM_data16.
2339 (dwarf_decode_line_header): Fix line header length calculation.
2340 (psymtab_include_file_name): Change comment and API.
2341 (lnp_state_machine::m_file): Update comment and reflect type change.
2342 (lnp_state_machine::record_line): Reflect type change.
2343 (dwarf_decode_lines): Reflect API change.
2344 (file_file_name): Likewise.
2345 (file_full_name): Likewise.
2346
45f47c3a
AB
23472019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2348
2349 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2350
e5f3c0e3
TT
23512019-10-21 Tom Tromey <tom@tromey.com>
2352
2353 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2354
a0a461e5
TT
23552019-10-21 Tom Tromey <tom@tromey.com>
2356
2357 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2358 NM_H. Use AC_CONFIG_LINKS.
2359 * configure: Rebuild.
2360 * Makefile.in (NM_H): New variable.
2361 (generated_files): Add NM_H. Remove gcore.
2362 (nm.h, stamp-nmh): New targets.
2363
54d83b8d
TT
23642019-10-20 Tom Tromey <tom@tromey.com>
2365
2366 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2367 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2368 obsolete comment.
2369 (put_objfile_before): Now static.
2370
23771117
SM
23712019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2372
2373 * gdbsupport/common-utils.h (startswith): Change return type to
2374 bool.
2375
39ef2f62
CB
23762019-10-19 Christian Biesinger <cbiesinger@google.com>
2377
2378 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2379 * breakpoint.c (bp_locations_compare): Rename to...
2380 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2381 (update_global_location_list): Use std::sort instead of qsort.
2382 * buildsym.c (compare_line_numbers): Rename to...
2383 (lte_is_less_than): ...this, and change to std::sort semantics.
2384 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2385 instead of qsort.
2386 * disasm.c (compare_lines): Rename to...
2387 (line_is_less_than): ...this, and change to std::sort semantics.
2388 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2389 of qsort.
2390 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2391 (fde_is_less_than): ...this, and change to std::sort semantics.
2392 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2393 * mdebugread.c (compare_blocks):
2394 (block_is_less_than): ...this, and change to std::sort semantics.
2395 (sort_blocks): Call std::sort instead of qsort.
2396 * objfiles.c (qsort_cmp): Rename to...
2397 (sort_cmp): ...this, and change to std::sort semantics.
2398 (update_section_map): Call std::sort instead of qsort.
2399 * remote.c (compare_pnums): Remove.
2400 (map_regcache_remote_table): Call std::sort instead of qsort.
2401 * utils.c (compare_positive_ints): Remove.
2402 * utils.h (compare_positive_ints): Remove.
2403 * xcoffread.c (compare_lte): Remove.
2404 (arrange_linetable): Call std::sort instead of qsort.
2405
f71433ee
SDJ
24062019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2407
2408 * symfile.c (init_entry_point_info): Fix typo.
2409 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2410
85102364
TV
24112019-10-18 Tom de Vries <tdevries@suse.de>
2412
2413 * aarch64-tdep.c: Fix typos in comments.
2414 * ada-lang.c: Same.
2415 * ada-tasks.c: Same.
2416 * alpha-tdep.c: Same.
2417 * alpha-tdep.h: Same.
2418 * amd64-nat.c: Same.
2419 * amd64-windows-tdep.c: Same.
2420 * arc-tdep.c: Same.
2421 * arc-tdep.h: Same.
2422 * arch-utils.c: Same.
2423 * arm-nbsd-tdep.c: Same.
2424 * arm-tdep.c: Same.
2425 * ax-gdb.c: Same.
2426 * blockframe.c: Same.
2427 * btrace.c: Same.
2428 * c-varobj.c: Same.
2429 * coff-pe-read.c: Same.
2430 * coffread.c: Same.
2431 * cris-tdep.c: Same.
2432 * darwin-nat.c: Same.
2433 * dbxread.c: Same.
2434 * dcache.c: Same.
2435 * disasm.c: Same.
2436 * dtrace-probe.c: Same.
2437 * dwarf-index-write.c: Same.
2438 * dwarf2-frame-tailcall.c: Same.
2439 * dwarf2-frame.c: Same.
2440 * dwarf2read.c: Same.
2441 * eval.c: Same.
2442 * exceptions.c: Same.
2443 * fbsd-tdep.c: Same.
2444 * findvar.c: Same.
2445 * frame.c: Same.
2446 * frv-tdep.c: Same.
2447 * gnu-v3-abi.c: Same.
2448 * go32-nat.c: Same.
2449 * h8300-tdep.c: Same.
2450 * hppa-tdep.c: Same.
2451 * i386-linux-tdep.c: Same.
2452 * i386-tdep.c: Same.
2453 * ia64-libunwind-tdep.c: Same.
2454 * ia64-tdep.c: Same.
2455 * infcmd.c: Same.
2456 * infrun.c: Same.
2457 * linespec.c: Same.
2458 * linux-nat.c: Same.
2459 * linux-thread-db.c: Same.
2460 * machoread.c: Same.
2461 * mdebugread.c: Same.
2462 * mep-tdep.c: Same.
2463 * mn10300-tdep.c: Same.
2464 * namespace.c: Same.
2465 * objfiles.c: Same.
2466 * opencl-lang.c: Same.
2467 * or1k-tdep.c: Same.
2468 * osabi.c: Same.
2469 * ppc-linux-nat.c: Same.
2470 * ppc-linux-tdep.c: Same.
2471 * ppc-sysv-tdep.c: Same.
2472 * printcmd.c: Same.
2473 * procfs.c: Same.
2474 * record-btrace.c: Same.
2475 * record-full.c: Same.
2476 * remote-fileio.c: Same.
2477 * remote.c: Same.
2478 * rs6000-tdep.c: Same.
2479 * s12z-tdep.c: Same.
2480 * score-tdep.c: Same.
2481 * ser-base.c: Same.
2482 * ser-go32.c: Same.
2483 * skip.c: Same.
2484 * sol-thread.c: Same.
2485 * solib-svr4.c: Same.
2486 * solib.c: Same.
2487 * source.c: Same.
2488 * sparc-nat.c: Same.
2489 * sparc-sol2-tdep.c: Same.
2490 * sparc-tdep.c: Same.
2491 * sparc64-tdep.c: Same.
2492 * stabsread.c: Same.
2493 * stack.c: Same.
2494 * symfile.c: Same.
2495 * symtab.c: Same.
2496 * target-descriptions.c: Same.
2497 * target-float.c: Same.
2498 * thread.c: Same.
2499 * utils.c: Same.
2500 * valops.c: Same.
2501 * valprint.c: Same.
2502 * value.c: Same.
2503 * varobj.c: Same.
2504 * windows-nat.c: Same.
2505 * xcoffread.c: Same.
2506 * xstormy16-tdep.c: Same.
2507 * xtensa-tdep.c: Same.
2508
c5adaa19
TT
25092019-10-17 Tom Tromey <tromey@adacore.com>
2510
2511 * configure: Rebuild.
2512 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2513 in AC_CONFIG_FILES invocation.
2514 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2515 new-style config.status invocation.
2516
405feb71
TV
25172019-10-17 Tom de Vries <tdevries@suse.de>
2518
2519 * arm-nbsd-nat.c: Fix typos in comments.
2520 * arm-tdep.c: Same.
2521 * darwin-nat-info.c: Same.
2522 * dwarf2read.c: Same.
2523 * elfread.c: Same.
2524 * event-top.c: Same.
2525 * findvar.c: Same.
2526 * gdbtypes.c: Same.
2527 * hppa-tdep.c: Same.
2528 * i386-tdep.c: Same.
2529 * jit.c: Same.
2530 * main.c: Same.
2531 * mdebugread.c: Same.
2532 * moxie-tdep.c: Same.
2533 * nto-procfs.c: Same.
2534 * osabi.c: Same.
2535 * ppc-linux-tdep.c: Same.
2536 * remote.c: Same.
2537 * riscv-tdep.c: Same.
2538 * s390-tdep.c: Same.
2539 * sh-tdep.c: Same.
2540 * sparc-linux-tdep.c: Same.
2541 * sparc-nat.c: Same.
2542 * stack.c: Same.
2543 * target-descriptions.c: Same.
2544 * top.c: Same.
2545 * varobj.c: Same.
2546
befcd486
TT
25472019-10-16 Tom Tromey <tom@tromey.com>
2548
2549 * objfiles.h (struct objfile) <original_name>: Now const.
2550
17bfe554
CB
25512019-10-16 Christian Biesinger <cbiesinger@google.com>
2552
2553 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2554 pass on to sigsetjmp's second argument.
2555 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2556
950b7495
KS
25572019-10-16 Keith Seitz <keiths@redhat.com>
2558
2559 PR gdb/23567
2560 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2561 sections whose size is greater than the file size.
2562
ff371ec9
JW
25632019-10-16 Jim Wilson <jimw@sifive.com>
2564
2565 * riscv-tdep.c (riscv_gcc_target_options): New.
2566 (riscv_gnu_triplet_regexp): New.
2567 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2568 set_gdbarch_gnu_triplet_regexp.
2569
fec4e896
CB
25702019-10-16 Christian Biesinger <cbiesinger@google.com>
2571
2572 * Makefile.in: Add xml-builtin.h.
2573 * features/feature_to_c.sh: Add an include for xml-builtin.h
2574 to ensure that the compiler checks that the types match.
2575 * xml-builtin.h: New file.
2576 * xml-support.c (fetch_xml_builtin): Add missing const.
2577 * xml-support.h: Remove declaration of xml_builtins.
2578
d10eccaa
TV
25792019-10-16 Tom de Vries <tdevries@suse.de>
2580
2581 PR tdep/25096
2582 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2583 (amd64_classify_aggregate): ... here.
2584 (amd64_classify_aggregate_field): Handled fiels of nested structs
2585 recursively.
2586
745ff14e
TV
25872019-10-16 Tom de Vries <tdevries@suse.de>
2588
2589 PR tdep/24104
2590 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2591 that handles 'theclass'.
2592
791b7405
AB
25932019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2594
2595 * linespec.c (decode_digits_ordinary): Update comment.
2596 * make-target-delegates: No longer need to handle VEC case.
2597 * memrange.c (normalize_mem_ranges): Update comment.
2598 * namespace.c (add_using_directive): Update comment.
2599 * objc-lang.c (uniquify_strings): Update comment.
2600 * ppc-linux-nat.c (struct thread_points): Update comment.
2601 * probe.h (find_probes_in_objfile): Update comment.
2602 * target.h (enum flash_preserve_mode): Update comment.
2603 * varobj.c (varobj_restrict_range): Update comment.
2604 * varobj.h (varobj_list_children): Update comment.
2605
0dc32745
AB
26062019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2607
2608 * Makefile.in: Remove references to vec.h and vec.c.
2609 * aarch64-tdep.c: No longer include vec.h.
2610 * ada-lang.c: Likewise.
2611 * ada-lang.h: Likewise.
2612 * arm-tdep.c: Likewise.
2613 * ax.h: Likewise.
2614 * breakpoint.h: Likewise.
2615 * charset.c: Likewise.
2616 * cp-support.h: Likewise.
2617 * dtrace-probe.c: Likewise.
2618 * dwarf2read.c: Likewise.
2619 * extension.h: Likewise.
2620 * gdb_bfd.c: Likewise.
2621 * gdbsupport/gdb_vecs.h: Likewise.
2622 * gdbsupport/vec.c: Remove.
2623 * gdbsupport/vec.h: Remove.
2624 * gdbthread.h: Likewise.
2625 * guile/scm-type.c: Likewise.
2626 * inline-frame.c: Likewise.
2627 * machoread.c: Likewise.
2628 * memattr.c: Likewise.
2629 * memrange.h: Likewise.
2630 * namespace.h: Likewise.
2631 * nat/linux-btrace.h: Likewise.
2632 * osdata.c: Likewise.
2633 * parser-defs.h: Likewise.
2634 * progspace.h: Likewise.
2635 * python/py-type.c: Likewise.
2636 * record-btrace.c: Likewise.
2637 * rust-exp.y: Likewise.
2638 * solib-target.c: Likewise.
2639 * stap-probe.c: Likewise.
2640 * target-descriptions.c: Likewise.
2641 * target-memory.c: Likewise.
2642 * target.h: Likewise.
2643 * varobj.c: Likewise.
2644 * varobj.h: Likewise.
2645 * xml-support.h: Likewise.
2646
ae640021
AB
26472019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2648
2649 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2650 Update for new std::vector based implementation.
2651 (process_psymtab_comp_unit_reader): Likewise.
2652 (scan_partial_symbols): Likewise.
2653 (recursively_compute_inclusions): Likewise.
2654 (compute_compunit_symtab_includes): Likewise.
2655 (process_imported_unit_die): Likewise.
2656 (queue_and_load_dwo_tu): Likewise.
2657 (follow_die_sig_1): Likewise.
2658 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2659 (typedef dwarf2_per_cu_ptr): Remove.
2660 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2661 function.
2662 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2663 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2664 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2665 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2666 std::vector.
2667
55dfc88f
TT
26682019-10-15 Tom Tromey <tromey@adacore.com>
2669
2670 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2671 TID.
2672
96b49c5e
TT
26732019-10-15 Tom Tromey <tromey@adacore.com>
2674
2675 * windows-nat.c (windows_nat_target::fetch_registers)
2676 (windows_nat_target::store_registers): Rename "pid" to "tid".
2677
953cff56
TT
26782019-10-15 Tom Tromey <tromey@adacore.com>
2679
2680 * gdbarch.h, gdbarch.c: Rebuild.
2681 * gdbarch.sh (gcc_target_options): Change return type to
2682 std::string.
2683 * compile/compile.c (get_args): Update.
2684 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2685 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2686 std::string.
2687 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2688 std::string.
2689 * arch-utils.c (default_gcc_target_options): Return std::string.
2690 * arch-utils.h (default_gcc_target_options): Return std::string.
2691 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2692
81e6b8eb
CB
26932019-10-15 Christian Biesinger <cbiesinger@google.com>
2694
2695 * breakpoint.c (breakpoint_chain): Make static.
2696 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2697 of accessing breakpoint_chain.
2698
95da600f
CB
26992019-10-15 Christian Biesinger <cbiesinger@google.com>
2700
2701 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2702 to a gdb::function_view and return value to bool.
2703 * breakpoint.h (iterate_over_breakpoints): Likewise.
2704 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2705 (pop_dummy_frame): Update.
2706 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2707 (gdbscm_breakpoints): Update.
2708 * python/py-breakpoint.c (build_bp_list): Update.
2709 (gdbpy_breakpoints): Update.
2710 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2711 Update.
2712 (bpfinishpy_handle_stop): Update.
2713 (bpfinishpy_handle_exit): Update.
2714 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2715 (svr4_update_solib_event_breakpoints): Update.
2716
ba18312d
AA
27172019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2718
2719 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2720 when unwrapping single-field structs.
2721
6acc1a0b
SM
27222019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2723
2724 * dwarf2read.c: Remove includes.
2725
284782de
SM
27262019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2727
2728 * ui-out.c (ui_out::call_do_message): Silence
2729 -Wformat-nonliteral warning.
2730
073bbbb0
SM
27312019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2732
2733 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2734 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2735 include: readline/tilde.h.
2736
7b9a15e1
CB
27372019-10-12 Christian Biesinger <cbiesinger@google.com>
2738
2739 * remote.c (remote_target::get_trace_status): Remove declaration of
2740 trace_regblock_size.
2741
cc8dee1f
CB
27422019-10-12 Christian Biesinger <cbiesinger@google.com>
2743
2744 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2745 (show_user): Remove declaration of cmdlist.
2746 * cli/cli-cmds.h (max_user_call_depth): Declare.
2747 * cli/cli-script.c (execute_user_command): Remove declaration
2748 of max_user_call_depth.
2749
a83d4ef6
JW
27502019-10-11 Jim Wilson <jimw@sifive.com>
2751
5f93c5a6
JW
2752 * gdbsupport/print-utils.h (pulongest): Fix comment.
2753 (plongest): Likewise.
2754 (phex): Add missing comment, mention leading zeros.
2755 (phex_nz): Add mention of no leading zeros to comment.
2756
a83d4ef6
JW
2757 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2758 plongest instead of unsigned long long cast.
2759
26344e0c
CB
27602019-10-10 Christian Biesinger <cbiesinger@google.com>
2761
2762 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2763 for external_editor_command and gdbtk_test.
2764
c2c440a9
CB
27652019-10-10 Christian Biesinger <cbiesinger@google.com>
2766
2767 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2768 * varobj.c (varobjdebug): Move comment to...
2769 * varobj.h (varobjdebug): ...here, and declare.
2770
a31bff9d
TT
27712019-10-09 Tom Tromey <tom@tromey.com>
2772
2773 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2774 erase_data_content.
2775
7523da63
TT
27762019-10-09 Tom Tromey <tom@tromey.com>
2777
2778 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2779 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2780 * tui/tui-command.c (tui_cmd_window::resize)
2781 (tui_refresh_cmd_win): Update.
2782 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2783 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2784 * tui/tui-data.c (~tui_gen_win_info): Remove.
2785 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2786 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2787 (tui_redisplay_readline, tui_mld_flush)
2788 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2789 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2790 (tui_data_window::erase_data_content)
2791 (tui_data_item_window::rerender)
2792 (tui_data_item_window::refresh_window): Update.
2793 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2794 (box_win, tui_gen_win_info::make_window)
2795 (tui_gen_win_info::make_visible): Update.
2796 (tui_delete_win): Remove.
2797 * tui/tui-winsource.c
2798 (tui_source_window_base::do_erase_source_content): Update.
2799 (tui_show_source_line, tui_source_window_base::update_tab_width)
2800 (tui_source_window_base::update_exec_info): Update.
2801 * tui/tui-data.h (struct curses_deleter): New.
2802 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2803 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2804
a7798e7f
TT
28052019-10-09 Tom Tromey <tom@tromey.com>
2806
2807 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2808
5c45899e
TT
28092019-10-09 Tom Tromey <tom@tromey.com>
2810
2811 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2812 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2813
6d7fd9aa
TT
28142019-10-09 Tom Tromey <tom@tromey.com>
2815
2816 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2817 window height directly.
2818 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2819 declare.
2820 * tui/tui-layout.c (tui_default_win_height): Remove.
2821 (tui_default_win_viewport_height): Remove.
2822
d2dd1084
TT
28232019-10-09 Tom Tromey <tom@tromey.com>
2824
2825 * tui/tui.h: Remove comments.
2826
cff32449
TV
28272019-10-09 Tom de Vries <tdevries@suse.de>
2828
2829 * python/lib/gdb/printer/bound_registers.py: Use
2830 '^builtin_type_bound128' as regexp argument for
2831 add_builtin_pretty_printer.
2832
6a25e8a2
CB
28332019-10-09 Christian Biesinger <cbiesinger@google.com>
2834
2835 * guile/guile.c (guile_extension_script_ops): Remove forward
2836 declaration and mark as static.
2837 (guile_script_ops): Likewise.
2838 (extension_language_guile): Move further down in the file so
2839 it can reference the definitions for guile_{extension_,}script_ops.
2840
6d9d6da4
AA
28412019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2842
2843 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2844 except SORTL, DFLTCC, and KDSA.
2845
3abea05d
TT
28462019-10-08 Tom Tromey <tromey@adacore.com>
2847
2848 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2849 (struct safe_symbol_file_add_args): Remove.
2850
dde996e2
TT
28512019-10-08 Tom Tromey <tromey@adacore.com>
2852
2853 * windows-nat.c: Don't include buildsym-legacy.h.
2854
cd6fdaa1
TT
28552019-10-08 Tom Tromey <tromey@adacore.com>
2856
2857 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2858
79bb1944
CB
28592019-10-08 Christian Biesinger <cbiesinger@google.com>
2860
2861 * gdbtypes.c (overload_debug): Move comment to header.
2862 * gdbtypes.h (overload_debug): Declare.
2863 * valops.c: Remove declaration of overload_debug, instead
2864 include gdbtypes.h.
2865
34916edc
CB
28662019-10-08 Christian Biesinger <cbiesinger@google.com>
2867
2868 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2869 through _().
2870 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2871 move comment...
2872 * language.h (lang_frame_mismatch_warn): ... here. Also add
2873 declaration.
2874 * top.c (lang_frame_mismatch_warn): Remove declaration.
2875 (check_frame_language_change): Pass lang_frame_mismatch_warn
2876 through _().
2877
bad5c026
CB
28782019-10-07 Christian Biesinger <cbiesinger@google.com>
2879
2880 * c-lang.h (vtbl_ptr_name): Declare.
2881 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2882 it from the header.
2883 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2884
51f1fdc3
CB
28852019-10-07 Christian Biesinger <cbiesinger@google.com>
2886
2887 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2888 gdb_static_assert.
2889
30d1f018
WP
28902019-10-07 Weimin Pan <weimin.pan@oracle.com>
2891
606813d5
WP
2892 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2893 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2894 * ctfread.c: New file.
2895 * ctfread.h: New file.
2896 * elfread.c: Include ctfread.h.
2897 (struct elfinfo text_p): New member ctfsect.
2898 (elf_locate_sections): Mark CTF section.
2899 (elf_symfile_read): Call elfctf_build_psymtabs.
2900 * Makefile.in (LIBCTF): Add.
2901 (CLIBS): Use it.
2902 (CDEPS): Likewise.
2903 (DIST): Add ctfread.c.
606813d5
WP
2904
29052019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2906
2907 * ctfread.c (struct nextfield): Renamed to ...
2908 (struct ctf_nextfield): ... this.
2909 (struct field_info): Renamed to ...
2910 (strut ctf_field_info): ... this.
2911 (attach_fields_to_type): Update for renamed structures.
2912 (ctf_add_member_cb): Likewise.
2913 (ctf_add_enum_member_cb): Likewise.
2914 (process_struct_members): Likewise.
2915 (process_enum_type): Likewise.
30d1f018 2916
518fe38c
WP
29172019-10-07 Weimin Pan <weimin.pan@oracle.com>
2918
2919 * tracectf.h: Rename, was ctf.h.
2920 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2921 * tracefile.c: Likewise.
2922 * tracepoint.c: Remove unused include ctf.h.
2923 * mi/mi-main.c: Likewise.
2924 * Makefile.in Replace ctf.c with tracectf.c.
2925
225f296a
JB
29262019-10-06 Joel Brobecker <brobecker@adacore.com>
2927
2928 * version.in: Change version number to "9.0.50.DATE-git".
2929
77c2dba3
TT
29302019-10-03 Tom Tromey <tom@tromey.com>
2931
2932 PR rust/24976:
2933 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2934
179aed7f
AB
29352019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2936
2937 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2938 cp_search_name_hash.
2939 * NEWS: Add entry about nested function support.
2940
0a4b0913
AB
29412019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2942 Andrew Burgess <andrew.burgess@embecosm.com>
2943
2944 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2945 for nested static variables when searchin VAR_DOMAIN.
2946 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2947 global scope, update comment.
2948 (add_partial_subprogram): Call add_partial_subprogram recursively
2949 for nested subroutines when processinng Fortran.
2950 (load_partial_dies): Process the child entities of a subprogram
2951 when processing Fortran.
2952 (partial_die_parent_scope): Handle building scope
2953 for Fortran nested functions.
2954 (process_die): Record that nested functions have a scope.
2955 (new_symbol): Always record Fortran subprograms on the global
2956 symbol list.
2957 (determine_prefix): How to build the prefix for Fortran
2958 subprograms.
2959
d8c06f22
AB
29602019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2961
2962 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2963 have just sent the thread a SIGSTOP and are waiting for it to
2964 arrive.
2965
a8b3b8e9
AB
29662019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2967
2968 * btrace.c (btrace_add_pc): Remove whitespace before the template
2969 parameter in 'std::vector <...>'.
2970 (parse_xml_btrace_block): Likewise.
2971 (btrace_maint_decode_pt): Likewise.
2972 (btrace_maint_update_packets): Likewise.
2973 (btrace_maint_print_packets): Likewise.
2974 * btrace.h (struct btrace_maint_info): Likewise.
2975 * dwarf2read.c (struct type_unit_group): Likewise.
2976 (build_type_psymtabs_reader): Likewise.
2977 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2978 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2979 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2980
4d825eab
TV
29812019-10-03 Tom de Vries <tdevries@suse.de>
2982
2983 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2984 the first line of the help text for set/show style metadata.
2985
80fd2826
TT
29862019-10-02 Tom Tromey <tromey@adacore.com>
2987
2988 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2989 * gdbsupport/common-inferior.c: New file.
2990 * infcmd.c (startup_with_shell): Don't define.
2991 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2992 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2993 * inferior.h (startup_with_shell): Don't declare.
2994
70054538
CB
29952019-10-02 Christian Biesinger <cbiesinger@google.com>
2996
2997 * gdbsupport/gdb_assert.h: Include errors.h.
2998 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2999
37f6a7f4
TT
30002019-10-02 Tom Tromey <tromey@adacore.com>
3001
3002 * NEWS: Add $_ada_exception entry.
3003 * ada-lang.c (struct ada_catchpoint): Add constructor.
3004 <m_kind>: New member.
3005 (allocate_location_exception, re_set_exception): Remove
3006 "ex" parameter.
3007 (should_stop_exception): Compute $_ada_exception.
3008 (check_status_exception, print_it_exception)
3009 (print_one_exception, print_mention_exception): Remove
3010 "ex" parameter.
3011 (allocate_location_catch_exception, re_set_catch_exception)
3012 (check_status_exception, print_it_catch_exception)
3013 (print_one_catch_exception, print_mention_catch_exception)
3014 (print_recreate_catch_exception)
3015 (allocate_location_catch_exception_unhandled)
3016 (re_set_catch_exception_unhandled)
3017 (check_status_exception, print_it_catch_exception_unhandled)
3018 (print_one_catch_exception_unhandled)
3019 (print_mention_catch_exception_unhandled)
3020 (print_recreate_catch_exception_unhandled)
3021 (allocate_location_catch_assert, re_set_catch_assert)
3022 (check_status_assert, print_it_catch_assert)
3023 (print_one_catch_assert, print_mention_catch_assert)
3024 (print_recreate_catch_assert)
3025 (allocate_location_catch_handlers, re_set_catch_handlers)
3026 (check_status_handlers, print_it_catch_handlers)
3027 (print_one_catch_handlers, print_mention_catch_handlers)
3028 (print_recreate_catch_handlers): Remove.
3029 (create_ada_exception_catchpoint): Update.
3030 (initialize_ada_catchpoint_ops): Update.
3031
fccf9de1
TT
30322019-10-02 Tom Tromey <tromey@adacore.com>
3033
3034 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3035 (create_excep_cond_exprs): Simplify exception string computation.
3036 (ada_exception_catchpoint_cond_string): Likewise.
3037
4b610737
TT
30382019-10-02 Tom Tromey <tromey@adacore.com>
3039
3040 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3041 * ada-lang.c (lesseq_defined_than): Handle
3042 LOC_STATIC.
3043 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3044 parameter.
3045 (dwarf2_has_info): Likewise.
3046 (new_symbol): Set maybe_copied on symbol when
3047 appropriate.
3048 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3049 parameter.
3050 <can_copy>: New member.
3051 * elfread.c (record_minimal_symbol): Set maybe_copied
3052 on symbol when appropriate.
3053 (elf_symfile_read): Update call to dwarf2_has_info.
3054 * minsyms.c (lookup_minimal_symbol_linkage): New
3055 function.
3056 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3057 * symtab.c (get_symbol_address, get_msymbol_address):
3058 New functions.
3059 * symtab.h (get_symbol_address, get_msymbol_address):
3060 Declare.
3061 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3062 maybe_copied.
3063 (struct symbol, struct minimal_symbol) <maybe_copied>:
3064 New member.
3065
1dd58850
TT
30662019-10-02 Tom Tromey <tromey@adacore.com>
3067
3068 * source.c (struct current_source_location): New.
3069 (current_source_key): New global.
3070 (current_source_symtab, current_source_line)
3071 (current_source_pspace): Remove.
3072 (get_source_location): New function.
3073 (get_current_source_symtab_and_line)
3074 (set_default_source_symtab_and_line)
3075 (set_current_source_symtab_and_line)
3076 (clear_current_source_symtab_and_line, select_source_symtab)
3077 (info_source_command, print_source_lines_base)
3078 (info_line_command, search_command_helper, _initialize_source):
3079 Update.
3080
5c281dbb
TT
30812019-10-02 Tom Tromey <tromey@adacore.com>
3082
3083 * source.c (select_source_symtab): Don't call
3084 decode_line_with_current_source.
3085
d3d32391
AB
30862019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3087
3088 * symtab.c (lookup_global_symbol): Search global block.
3089
38583298
TT
30902019-10-02 Tom Tromey <tromey@adacore.com>
3091
3092 * coffread.c (process_coff_symbol): Update.
3093 * dwarf2read.c (var_decode_location, new_symbol): Update.
3094 * mdebugread.c (parse_symbol): Update.
3095 * objfiles.c (relocate_one_symbol): Update.
3096 * stabsread.c (define_symbol, fix_common_block)
3097 (scan_file_globals): Update.
3098 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3099 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3100 * xcoffread.c (process_xcoff_symbol): Update.
3101
9344c18f
AA
31022019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3103
3104 * MAINTAINERS: Update my email address.
3105
df07e2c7
AB
31062019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3107
3108 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3109 std::vector.
3110 (build_type_psymtabs_reader): Update for std::vector.
3111 (build_type_psymtab_dependencies): Likewise.
3112 * dwarf2read.h: Remove use of DEF_VEC_P.
3113 (typedef sig_type_ptr): Delete.
3114
554ac434
AB
31152019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3116
3117 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3118 to std::vector.
3119 (btrace_maint_decode_pt): Likewise, and move allocation of the
3120 vector outside of the loop.
3121 (btrace_maint_update_packets): Update to handle change from VEC to
3122 std::vector.
3123 (btrace_maint_print_packets): Likewise.
3124 (maint_info_btrace_cmd): Likewise.
3125 * btrace.h: Remove use of DEF_VEC_O.
3126 (typedef btrace_pt_packet_s): Delete.
3127 (struct btrace_maint_info) <packets>: Change fromm VEC to
3128 std::vector.
3129 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3130
46f29a9a
AB
31312019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3132
3133 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3134 make accesses into the vector constant references.
3135 (btrace_add_pc): Update for std::vector.
3136 (btrace_stitch_bts): Likewise.
3137 (parse_xml_btrace_block): Likewise.
3138 (btrace_maint_update_packets): Likewise.
3139 (btrace_maint_print_packets): Likewise.
3140 (maint_info_btrace_cmd): Likewise.
3141 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3142 std::vector.
3143 (btrace_data::empty): Likewise.
3144 (btrace_data_append): Likewise.
3145 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3146 (typedef btrace_block_s): Delete.
3147 (struct btrace_block): Add constructor.
3148 (struct btrace_data_bts) <blocks>: Change to std::vector.
3149 * nat/linux-btrace.c (perf_event_read_bts): Update for
3150 std::vector.
3151 (linux_read_bts): Likewise.
3152
d770d56f
TT
31532019-10-01 Tom Tromey <tom@tromey.com>
3154
3155 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3156
9d636d67
TT
31572019-10-01 Tom Tromey <tom@tromey.com>
3158
3159 * stack.c (print_frame, info_frame_command_core): Use
3160 styled_string.
3161 * linux-thread-db.c (try_thread_db_load_1)
3162 (try_thread_db_load_from_pdir_1): Use styled_string.
3163 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3164 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3165 (maybe_print_unsupported_script_warning)
3166 (maybe_print_script_not_found_warning): Use styled_string.
3167 * ada-lang.c (user_select_syms): Use styled_string.
3168
7f6aba03
TT
31692019-10-01 Tom Tromey <tom@tromey.com>
3170
3171 * p-lang.c (pascal_printstr): Use metadata style.
3172 * value.c (show_convenience): Use metadata style.
3173 * valprint.c (valprint_check_validity, val_print_optimized_out)
3174 (val_print_not_saved, val_print_unavailable)
3175 (val_print_invalid_address, generic_val_print, val_print)
3176 (value_check_printable, val_print_array_elements): Use metadata
3177 style.
3178 * ui-out.h (class ui_out) <field_fmt>: New overload.
3179 <do_field_fmt>: Add style parameter.
3180 * ui-out.c (ui_out::field_fmt): New overload.
3181 * typeprint.c (type_print_unknown_return_type)
3182 (val_print_not_allocated, val_print_not_associated): Use metadata
3183 style.
3184 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3185 parameter.
3186 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3187 * tracepoint.c (tvariables_info_1): Use metadata style.
3188 * stack.c (print_frame_arg, print_frame_info, print_frame)
3189 (info_frame_command_core): Use metadata style.
3190 * skip.c (info_skip_command): Use metadata style.
3191 * rust-lang.c (rust_print_enum): Use metadata style.
3192 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3193 metadata style.
3194 * python/py-framefilter.c (py_print_single_arg): Use metadata
3195 style.
3196 * printcmd.c (do_one_display, print_variable_and_value): Use
3197 metadata style.
3198 * p-valprint.c (pascal_val_print)
3199 (pascal_object_print_value_fields): Use metadata style.
3200 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3201 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3202 parameter.
3203 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3204 * m2-valprint.c (m2_print_long_set): Use metadata style.
3205 * m2-typeprint.c (m2_print_type): Use metadata style.
3206 * infcmd.c (print_return_value_1): Use metadata style.
3207 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3208 * f-valprint.c (info_common_command_for_block): Use metadata
3209 style.
3210 * f-typeprint.c (f_type_print_base): Use metadata style.
3211 * expprint.c (print_subexp_standard): Use metadata style.
3212 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3213 * cli/cli-style.h (class cli_style_option): Add constructor.
3214 (metadata_style): Declare.
3215 * cli/cli-style.c (metadata_style): New global.
3216 (_initialize_cli_style): Register metadata style.
3217 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3218 parameter.
3219 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3220 * c-typeprint.c (c_type_print_base_struct_union)
3221 (c_type_print_base_1): Use metadata style.
3222 * breakpoint.c (watchpoint_value_print)
3223 (print_one_breakpoint_location): Use metadata style.
3224 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3225 style.
3226 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3227 style.
3228 * ada-valprint.c (val_print_packed_array_elements, printstr)
3229 (print_field_values, ada_val_print_ref, ada_val_print): Use
3230 metadata style.
3231 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3232 style.
3233 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3234 style.
3235 * ada-lang.c (user_select_syms): Use metadata style.
3236
14309bb6
TT
32372019-10-01 Tom Tromey <tom@tromey.com>
3238
3239 * cli/cli-cmds.c (pwd_command): Style output.
3240
6a831f06
PA
32412019-10-01 Pedro Alves <palves@redhat.com>
3242 Tom Tromey <tom@tromey.com>
3243
3244 * symtab.c (print_symbol_info): Use %ps.
3245 (print_msymbol_info): Use %ps.
3246 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3247 * printcmd.c (print_variable_and_value): Use %ps.
3248 * macrocmd.c (show_pp_source_pos): Use %ps.
3249 * infrun.c (print_exited_reason): Use ui_out::message.
3250 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3251 (describe_other_breakpoints): Use ui_out::message and new
3252 formats.
3253 (say_where): Use new formats.
3254 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3255 and new formats.
3256
2a3c1174
PA
32572019-10-01 Pedro Alves <palves@redhat.com>
3258 Tom Tromey <tom@tromey.com>
3259
3260 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3261 (test_gdb_formats): New function.
3262 (run_tests): Call it.
3263 (test_format_specifier): Update.
3264 * utils.h (fputs_filtered): Update comment.
3265 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3266 (fputs_styled_unfiltered): Declare.
3267 * utils.c (fputs_styled_unfiltered): New function.
3268 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3269 (vfprintf_filtered): Update.
3270 (vfprintf_unfiltered, vprintf_filtered): Update.
3271 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3272 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3273 disallow_ui_out_field>: New constants.
3274 (enum class field_kind): New.
3275 (struct base_field_s, struct signed_field_s): New.
3276 (signed_field): New function.
3277 (struct string_field_s): New.
3278 (string_field): New function.
3279 (struct styled_string_s): New.
3280 (styled_string): New function.
3281 (class ui_out) <message>: Add comment.
3282 <vmessage, call_do_message>: New methods.
3283 <do_message>: Add style parameter.
3284 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3285 methods.
3286 (ui_out::message): Rewrite.
3287 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3288 parameter.
3289 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3290 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3291 gdb_extensions parameter.
3292 (class format_piece): Add parameter to constructor.
3293 (n_int_args): New field.
3294 * gdbsupport/format.c (format_pieces::format_pieces): Add
3295 gdb_extensions parameter. Handle '*'.
3296 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3297 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3298 vfprintf_styled_no_gdbfmt.
3299 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3300 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3301 unfiltered output.
3302 * ui-style.h (struct ui_file_style) <ptr>: New method.
3303
0dfe5bfb
TT
33042019-10-01 Tom Tromey <tom@tromey.com>
3305
3306 * unittests/format_pieces-selftests.c: Update. Add final format.
3307 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3308 empty literal pieces.
3309
e43b10e1
TT
33102019-10-01 Tom Tromey <tom@tromey.com>
3311
3312 * ui-out.h (enum class ui_out_style_kind): Remove.
3313 (class ui_out) <field_string, field_stsream, do_field_string>:
3314 Change type of "style".
3315 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3316 (ui_out::field_string): Update.
3317 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3318 of "style".
3319 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3320 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3321 * stack.c (print_frame_arg, print_frame_info, print_frame):
3322 Update.
3323 * source.c (print_source_lines_base): Update.
3324 * solib.c (info_sharedlibrary_command): Update.
3325 * skip.c (info_skip_command): Update.
3326 * record-btrace.c (btrace_call_history_src_line)
3327 (btrace_call_history): Update.
3328 * python/py-framefilter.c (py_print_frame): Update.
3329 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3330 "style".
3331 * mi/mi-out.c (mi_ui_out::do_table_header)
3332 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3333 (mi_ui_out::do_field_string): Update.
3334 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3335 Update.
3336 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3337 "style".
3338 * cli-out.c (cli_ui_out::do_table_header)
3339 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3340 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3341 (cli_ui_out::do_field_fmt): Update.
3342 * breakpoint.c (print_breakpoint_location): Update.
3343 (update_static_tracepoint): Update.
3344
cd7c32c3
PW
33452019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3346
3347 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3348 conversion of gdb_datadir.
3349 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3350 remove not needed c_str ().
3351
8fe0f950
AT
33522019-09-30 Ali Tamur <tamur@google.com>
3353
3354 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3355 (dwarf2_string_attr): Likewise.
3356
5f48f8f3
AT
33572019-09-30 Ali Tamur <tamur@google.com>
3358
3359 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3360 (process_full_type_unit): Likewise.
3361 (dump_die_shallow): Likewise.
3362 (cu_debug_loc_section): Likewise.
3363
6fb08628
CB
33642019-09-28 Christian Biesinger <cbiesinger@google.com>
3365
3366 * minsyms.c (compare_minimal_symbols): Rename to...
3367 (minimal_symbol_is_less_than): ...this, and adjust to STL
3368 conventions (return bool, take arguments as references)
3369 (minimal_symbol_reader::install): Call std::sort instead
3370 of qsort.
3371
c7ee338a
CB
33722019-09-29 Christian Biesinger <cbiesinger@google.com>
3373
3374 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3375 hash and why.
3376 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3377 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3378
703a86c2
SM
33792019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3380
3381 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3382 * psympriv.h (add_psymbol_to_list): Move comment here and update
3383 it.
3384
0df0352a
TV
33852019-09-29 Tom de Vries <tdevries@suse.de>
3386
3387 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3388 Use $tmpdir/$(basename "$output_file").dwz instead of
3389 "${output_file}.dwz".
3390
ad75efa6
SM
33912019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3392
3393 PR gdb/25045
3394 * hppa-linux-nat.c: Include gdbarch.h.
3395
ececd218
CB
33962019-09-26 Christian Biesinger <cbiesinger@google.com>
3397
3398 * blockframe.c (find_pc_partial_function): Change return type to bool.
3399 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3400 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3401 (stub_gnu_ifunc_resolve_name): Likewise.
3402 * symtab.c (compare_filenames_for_search): Likewise.
3403 (compare_glob_filenames_for_search): Likewise.
3404 (matching_obj_sections): Likewise.
3405 (symbol_matches_domain): Likewise.
3406 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3407 (find_line_pc): Change return type to bool.
3408 (find_line_pc_range): Likewise.
3409 (producer_is_realview): Likewise.
3410 * symtab.h (symbol_matches_domain): Likewise.
3411 (find_pc_partial_function): Likewise.
3412 (find_pc_line_pc_range): Likewise.
3413 (in_gnu_ifunc_stub): Likewise.
3414 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3415 (find_line_pc): Likewise.
3416 (find_line_pc_range): Likewise.
3417 (matching_obj_sections): Likewise.
3418 (find_line_symtab): Change out parameter to bool.
3419 (producer_is_realview): Change return type to bool.
3420 (compare_filenames_for_search): Likewise.
3421 (compare_glob_filenames_for_search): Likewise.
3422
27a900b8
TT
34232019-09-26 Tom Tromey <tom@tromey.com>
3424
3425 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3426 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3427 * gdb_usleep.h: Remove.
3428 * gdb_usleep.c: Remove.
3429 * utils.c: Don't include gdb_usleep.h.
3430
5d63b30a
TT
34312019-09-26 Tom Tromey <tromey@adacore.com>
3432
3433 * python/py-type.c (type_to_type_object): Call check_typedef
3434 for stub types.
3435
12904d37
TT
34362019-09-26 Tom Tromey <tom@tromey.com>
3437
3438 * utils.h (initialize_utils): Don't declare.
3439 * top.c (gdb_init): Don't call initialize_utils.
3440 * utils.c (initialize_utils): Remove. Move contents...
3441 (_initialize_utils): ... here.
3442
858f25f0
TT
34432019-09-25 Tom Tromey <tom@tromey.com>
3444
3445 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3446 * utils.h (make_hex_string): Don't declare.
3447 * utils.c (make_hex_string): Remove.
3448
3d435220
TV
34492019-09-24 Tom de Vries <tdevries@suse.de>
3450
3451 PR gdb/23815
3452 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3453 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3454
ddd44b70
DD
34552019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3456
3457 * NEWS: Mention new simulator port for PRU.
3458
f945dedf
CB
34592019-09-23 Christian Biesinger <cbiesinger@google.com>
3460
3461 * ada-exp.y (write_object_remaining): Update.
3462 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3463 and eliminate the static buffer.
3464 (ada_decode_symbol): Update.
3465 (ada_la_decode): Update.
3466 (ada_sniff_from_mangled_name): Update.
3467 (is_valid_name_for_wild_match): Update.
3468 (ada_lookup_name_info::matches): Update and simplify.
3469 (name_matches_regex): Update.
3470 (ada_add_global_exceptions): Update.
3471 * ada-lang.h (ada_decode): Update signature.
3472 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3473 * dwarf-index-write.c (debug_names::insert): Update.
3474
7ab78ccb
SM
34752019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3476
3477 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3478 formatting.
3479
9252448b
SM
34802019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3481
3482 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3483 Change "nonzero" to "true" in documentation.
3484
626ca2c0
CB
34852019-09-20 Christian Biesinger <cbiesinger@google.com>
3486
3487 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3488 (_initialize_darwin_solib): Don't set
3489 darwin_so_ops.lookup_lib_global_symbol.
3490 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3491 set_gdbarch_iterate_over_objfiles_in_search_order.
3492 (elf_lookup_lib_symbol): Rename to...
3493 (svr4_iterate_over_objfiles_in_search_order): this, and update
3494 to iterate semantics.
3495 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3496 * solib.c (solib_global_lookup): Remove.
3497 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3498 (solib_global_lookup): Remove.
3499 * symtab.c (lookup_global_or_static_symbol): Remove call to
3500 solib_global_lookup.
3501
5a3a0d63
JB
35022019-09-20 Joel Brobecker <brobecker@adacore.com>
3503
3504 * NEWS: Move entries about default MI version now being
3505 version 3, and about the GDB/MI fix for multi-location
3506 breakpoints to the "since GDB 8.3" section.
3507
ffea1427
JB
35082019-09-20 Joel Brobecker <brobecker@adacore.com>
3509
3510 GDB 8.3.1 released.
3511
abf516c6
UW
35122019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3513
3514 * NEWS: Mention that Cell/B.E. debugging support was removed.
3515 * MAINTAINERS: Remove spu target.
3516
3517 * config/djgpp/fnchange.lst: Remove entries for removed files.
3518
3519 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3520 spu-multiarch.o, and spu-tdep.o.
3521 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3522 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3523 spu-multiarch.c, and spu-tdep.c.
3524 * spu-linux-nat.c: Remove file.
3525 * spu-multiarch.c: Remove file.
3526 * spu-tdep.c: Remove file.
3527 * spu-tdep.h: Remove file.
3528 * solib-spu.c: Remove file.
3529 * solib-spu.h: Remove file.
3530
3531 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3532 * configure.nat (spu-linux): Remove.
3533 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3534 solib-multiarch.o from gdb_target_obs.
3535 (spu*-*-*): Remove.
3536
3537 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3538 feature flag.
3539 (ppc_linux_no_features): Update.
3540 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3541 Cell/B.E. support.
3542 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3543 (tdesc_powerpc_cell64l): Likewise.
3544 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3545 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3546 Cell/B.E. support.
3547 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3548 Do not include "features/rs6000/powerpc-cell32l.c" or
3549 "features/rs6000/powerpc-cell64l.c".
3550 (ppc_linux_spu_section): Remove.
3551 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3552 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3553 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3554 (ppc_linux_spe_context_lookup): Remove.
3555 (ppc_linux_spe_context_inferior_created): Remove.
3556 (ppc_linux_spe_context_solib_loaded): Remove.
3557 (ppc_linux_spe_context_solib_unloaded): Remove.
3558 (ppc_linux_spe_context): Remove.
3559 (struct ppu2spu_cache): Remove.
3560 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3561 (struct ppu2spu_data): Remove.
3562 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3563 ppu2spu_unwind): Remove.
3564 (ppc_linux_init_abi): Remove Cell/B.E. support.
3565 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3566
3567 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3568 (rs6000/powerpc-cell64l-expedite): Likewise
3569 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3570 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3571 rs6000/powerpc-cell64l.xml.
3572 * features/rs6000/powerpc-cell32l.xml: Remove.
3573 * features/rs6000/powerpc-cell64l.xml: Likewise.
3574 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3575 * features/rs6000/powerpc-cell64l.c: Likewise.
3576 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3577 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3578 * regformats/reg-spu.dat: Remove.
3579
3580 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3581 * corelow.c (struct spuid_list): Remove.
3582 (add_to_spuid_list): Remove.
3583 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3584 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3585 (remote_protocol_features): Remove associated entries.
3586 (_initialize_remote): No longer initialize them.
3587 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3588 * linux-nat.c (SPUFS_MAGIC): Remove.
3589 (linux_proc_xfer_spu): Remove.
3590 (spu_enumerate_spu_ids): Remove.
3591 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3592 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3593 (linux_make_corefile_notes): No longer call it.
3594
3595 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3596 (cooked_write_test): Likewise.
3597
78e8cb91
TT
35982019-09-20 Tom Tromey <tom@tromey.com>
3599
3600 * NEWS: Mention case-sensitivity of TUI commands.
3601 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3602 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3603 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3604
f074b67e
TT
36052019-09-20 Tom Tromey <tom@tromey.com>
3606
3607 * tui/tui-source.c (tui_source_window::set_contents): Use
3608 make_unique_xstrdup.
3609 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3610 make_unique_xstrdup.
3611
63c4bf19
TT
36122019-09-20 Tom Tromey <tom@tromey.com>
3613
3614 * tui/tui-data.c: Remove separator comments.
3615 * tui/tui-layout.c: Remove separator comments.
3616 * tui/tui-win.c: Remove separator comments.
3617 * tui/tui-wingeneral.c: Remove separator comments.
3618
43df9b2f
TT
36192019-09-20 Tom Tromey <tom@tromey.com>
3620
3621 * tui/tui.h (strcat_to_buf): Don't declare.
3622 * tui/tui.c (strcat_to_buf): Remove.
3623
7226433c
TT
36242019-09-20 Tom Tromey <tom@tromey.com>
3625
3626 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3627 from "fullname".
3628 * tui/tui-source.c (tui_source_window::set_contents)
3629 (tui_source_window::location_matches_p)
3630 (tui_source_window::maybe_update): Update.
3631
80df3337
TT
36322019-09-20 Tom Tromey <tom@tromey.com>
3633
3634 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3635 Update.
3636 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3637 prefix.
3638 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3639 (tui_data_window::line_from_reg_element_no)
3640 (tui_data_window::first_reg_element_no_inline)
3641 (tui_data_window::show_registers)
3642 (tui_data_window::show_register_group)
3643 (tui_data_window::display_registers_from)
3644 (tui_data_window::display_registers_from_line)
3645 (tui_data_window::first_data_item_displayed)
3646 (tui_data_window::delete_data_content_windows)
3647 (tui_data_window::erase_data_content)
3648 (tui_data_window::do_scroll_vertical)
3649 (tui_data_window::refresh_window)
3650 (tui_data_window::check_register_values): Update.
3651
9923f347
TT
36522019-09-20 Tom Tromey <tom@tromey.com>
3653
3654 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3655 (struct tui_locator_window) <full_name, proc_name>: Now
3656 std::string.
3657 * tui/tui-stack.c (tui_locator_window::make_status_line)
3658 (tui_locator_window::set_locator_fullname)
3659 (tui_locator_window::set_locator_info): Update.
3660 * tui/tui-source.c (tui_source_window::set_contents)
3661 (tui_source_window::showing_source_p): Update.
3662
b76251ab
TT
36632019-09-20 Tom Tromey <tom@tromey.com>
3664
3665 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3666 Don't call tui_locator_win_info_ptr.
3667
0891be08
TT
36682019-09-20 Tom Tromey <tom@tromey.com>
3669
3670 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3671
1b935acf
TT
36722019-09-20 Tom Tromey <tom@tromey.com>
3673
3674 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3675 height for locator.
3676 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3677 * tui/tui-layout.c (show_source_disasm_command, show_data)
3678 (show_source_or_disasm_and_command): Use 1 as height for locator.
3679
9abd8a65
TT
36802019-09-20 Tom Tromey <tom@tromey.com>
3681
3682 * tui/tui.c (tui_enable): Update.
3683 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3684 Update.
3685 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3686 Update.
3687 * tui/tui-data.c (win_resized): Now bool.
3688 (tui_win_resized): Return bool.
3689 (tui_set_win_resized_to): Accept a bool.
3690
b5457826
TT
36912019-09-20 Tom Tromey <tom@tromey.com>
3692
3693 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3694 Change type of "refresh_values_only".
3695 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3696 type of "refresh_values_only".
3697
6b915f7d
TT
36982019-09-20 Tom Tromey <tom@tromey.com>
3699
3700 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3701 std::string.
3702 (tui_disassemble): Add "pos" parameter.
3703 (tui_disasm_window::set_contents): Simplify.
3704
2ad52f6f
TT
37052019-09-20 Tom Tromey <tom@tromey.com>
3706
3707 * tui/tui-winsource.h (struct tui_source_window_base)
3708 <show_source_content>: Now private.
3709 * tui/tui-winsource.c
3710 (tui_source_window_base::show_source_content): Don't handle empty
3711 content case.
3712
b3b1bde6
TT
37132019-09-20 Tom Tromey <tom@tromey.com>
3714
3715 * tui/tui-layout.c (show_source_disasm_command)
3716 (show_source_or_disasm_and_command): Don't call
3717 show_source_content.
3718
71a25ed2
TT
37192019-09-20 Tom Tromey <tom@tromey.com>
3720
3721 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3722 Declare.
3723 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3724 from tui_make_status_line.
3725 (tui_locator_window::rerender): Update.
3726
f8532154
TT
37272019-09-20 Tom Tromey <tom@tromey.com>
3728
3729 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3730 (tui_locator_window::rerender): Update.
3731
2d81b349
TT
37322019-09-20 Tom Tromey <tom@tromey.com>
3733
3734 * tui/tui-winsource.h (struct tui_source_window_base)
3735 <~tui_source_window_base>: Don't declare.
3736 <fullname>: Remove.
3737 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3738 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3739 member.
3740 * tui/tui-source.c (tui_source_window::set_contents): Update.
3741 (tui_source_window::location_matches_p)
3742 (tui_source_window::maybe_update): Update.
3743
f14bec58
TT
37442019-09-20 Tom Tromey <tom@tromey.com>
3745
3746 * tui/tui-winsource.h (~tui_source_element): Remove.
3747 (tui_source_element): Update.
3748 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3749 * tui/tui-winsource.c (tui_show_source_line): Update.
3750 * tui/tui-source.c (tui_source_window::set_contents): Update.
3751 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3752
78d5933a
TT
37532019-09-20 Tom Tromey <tom@tromey.com>
3754
3755 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3756 declare.
3757 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3758 tui_clear_source_windows_detail.
3759 * tui/tui-winsource.h (struct tui_source_window_base)
3760 <clear_detail>: Don't declare.
3761 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3762 Remove.
3763 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3764
d4207696
TT
37652019-09-20 Tom Tromey <tromey@adacore.com>
3766
3767 PR ada/24919:
3768 * block.c (contained_in): Fix final return value.
3769
00f93c44
AM
37702019-09-20 Alan Modra <amodra@gmail.com>
3771
3772 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3773 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3774 (read_indirect_string_from_dwz): Use bfd accessor.
3775 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3776 * machoread.c (macho_symfile_read_all_oso): Likewise.
3777 * solib.c (solib_bfd_open): Likewise.
3778
e4153ae6
CB
37792019-09-19 Christian Biesinger <cbiesinger@google.com>
3780
3781 * eval.c: Move declaration of overload_resolution to...
3782 * value.h: ...here.
3783
c7ae7675
CB
37842019-09-19 Christian Biesinger <cbiesinger@google.com>
3785
3786 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3787 * arm-linux-tdep.c: Likewise.
3788 * arm-nbsd-nat.c: Likewise.
3789 * arm-tdep.h: Declare arm_apcs_32.
3790 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3791
e86f08d2
CB
37922019-09-19 Christian Biesinger <cbiesinger@google.com>
3793
3794 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3795 * dwarf2read.h: Declare dwarf_always_disassemble.
3796
f64e2f40
TV
37972019-09-19 Tom de Vries <tdevries@suse.de>
3798
3799 PR gdb/25009
3800 * source-cache.c (source_cache::ensure): Catch exception thrown during
3801 construction of the highlighter.
3802
fd361982
AM
38032019-09-18 Alan Modra <amodra@gmail.com>
3804
3805 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3806 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3807 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3808 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3809 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3810 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3811 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3812 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3813 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3814 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3815 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3816 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3817 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3818 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3819 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3820 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3821 * mi/mi-interp.c: Update throughout for bfd section macro and
3822 function changes.
3823 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3824 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3825
11061048
TT
38262019-09-18 Tom Tromey <tom@tromey.com>
3827
3828 * NEWS: Add entry.
3829 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3830 call rl_initialize.
3831 (tui_enable): Do not call rl_initialize.
3832
7a27b85f
CG
38332019-09-18 Christian Groessler <chris@groessler.org>
3834
3835 * alpha-linux-nat.c: Include gdbarch.h.
3836
f64eea3a
SM
38372019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3838
3839 * ui-file.c: Include cli/cli-style.h.
3840 (term_cli_styling): Remove cli_styling declaration.
3841
e6f7f6d1
AM
38422019-09-18 Alan Modra <amodra@gmail.com>
3843
3844 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3845 to bfd_asymbol_section.
3846
1d38e9d1
AM
38472019-09-18 Alan Modra <amodra@gmail.com>
3848
3849 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3850 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3851 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3852
90d92a63
AM
38532019-09-18 Alan Modra <amodra@gmail.com>
3854
3855 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3856 * spu-linux-nat.c (spu_bfd_open): Likewise.
3857
a3d181d2
CB
38582019-09-18 Christian Biesinger <cbiesinger@google.com>
3859
3860 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3861 to bool to match definition in dwarf2read.c.
3862
491144b5
CB
38632019-09-17 Christian Biesinger <cbiesinger@google.com>
3864
3865 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3866 (print_signatures): Likewise.
3867 (trust_pad_over_xvs): Likewise.
3868 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3869 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3870 * arm-linux-nat.c (arm_apcs_32): Likewise.
3871 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3872 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3873 * arm-tdep.c (arm_debug): Likewise.
3874 (arm_apcs_32): Likewise.
3875 * auto-load.c (debug_auto_load): Likewise.
3876 (auto_load_gdb_scripts): Likewise.
3877 (global_auto_load): Likewise.
3878 (auto_load_local_gdbinit): Likewise.
3879 (auto_load_local_gdbinit_loaded): Likewise.
3880 * auto-load.h (global_auto_load): Likewise.
3881 (auto_load_local_gdbinit): Likewise.
3882 (auto_load_local_gdbinit_loaded): Likewise.
3883 * breakpoint.c (disconnected_dprintf): Likewise.
3884 (breakpoint_proceeded): Likewise.
3885 (automatic_hardware_breakpoints): Likewise.
3886 (always_inserted_mode): Likewise.
3887 (target_exact_watchpoints): Likewise.
3888 (_initialize_breakpoint): Update.
3889 * breakpoint.h (target_exact_watchpoints): Change to bool.
3890 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3891 * cli/cli-cmds.c (trace_commands): Likewise.
3892 * cli/cli-cmds.h (trace_commands): Likewise.
3893 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3894 to bool*.
3895 * cli/cli-logging.c (logging_overwrite): Change to bool.
3896 (logging_redirect): Likewise.
3897 (debug_redirect): Likewise.
3898 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3899 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3900 to bool.
3901 <boolean_option_def>: Update.
3902 (struct flag_option_def): Change default type of Context to bool
3903 from int.
3904 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3905 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3906 (get_setshow_command_value_string): Likewise.
3907 * cli/cli-style.c (cli_styling): Change to bool.
3908 (source_styling): Likewise.
3909 * cli/cli-style.h (source_styling): Likewise.
3910 (cli_styling): Likewise.
3911 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3912 to bool.
3913 * command.h (var_types): Update comment.
3914 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3915 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3916 bool.
3917 (debug_compile_cplus_scopes): Likewise.
3918 * compile/compile-internal.h (compile_debug): Likewise.
3919 * compile/compile.c (compile_debug): Likewise.
3920 (struct compile_options) <raw>: Likewise.
3921 * cp-support.c (catch_demangler_crashes): Likewise.
3922 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3923 (usr_cmd_cris_dwarf2_cfi): Likewise.
3924 * csky-tdep.c (csky_debug): Likewise.
3925 * darwin-nat.c (enable_mach_exceptions): Likewise.
3926 * dcache.c (dcache_enabled_p): Likewise.
3927 * defs.h (info_verbose): Likewise.
3928 * demangle.c (demangle): Likewise.
3929 (asm_demangle): Likewise.
3930 * dwarf-index-cache.c (debug_index_cache): Likewise.
3931 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3932 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3933 * dwarf2read.c (check_physname): Likewise.
3934 (use_deprecated_index_sections): Likewise.
3935 (dwarf_always_disassemble): Likewise.
3936 * eval.c (overload_resolution): Likewise.
3937 * event-top.c (set_editing_cmd_var): Likewise.
3938 (exec_done_display_p): Likewise.
3939 * event-top.h (set_editing_cmd_var): Likewise.
3940 (exec_done_display_p): Likewise.
3941 * exec.c (write_files): Likewise.
3942 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3943 (debug_fbsd_nat): Likewise.
3944 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3945 Likewise.
3946 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3947 <backtrace_past_entry> Likewise.
3948 * gdb-demangle.h (demangle): Likewise.
3949 (asm_demangle): Likewise.
3950 * gdb_bfd.c (bfd_sharing): Likewise.
3951 * gdbcore.h (write_files): Likewise.
3952 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3953 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3954 * gdbthread.h (print_thread_events): Likewise.
3955 * gdbtypes.c (opaque_type_resolution): Likewise.
3956 (strict_type_checking): Likewise.
3957 * gnu-nat.c (gnu_debug_flag): Likewise.
3958 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3959 * guile/scm-param.c (pascm_variable): Add boolval.
3960 (add_setshow_generic): Update.
3961 (pascm_param_value): Update.
3962 (pascm_set_param_value_x): Update.
3963 * hppa-tdep.c (hppa_debug): Change to bool..
3964 * infcall.c (may_call_functions_p): Likewise.
3965 (coerce_float_to_double_p): Likewise.
3966 (unwind_on_signal_p): Likewise.
3967 (unwind_on_terminating_exception_p): Likewise.
3968 * infcmd.c (startup_with_shell): Likewise.
3969 * inferior.c (print_inferior_events): Likewise.
3970 * inferior.h (startup_with_shell): Likewise.
3971 (print_inferior_events): Likewise.
3972 * infrun.c (step_stop_if_no_debug): Likewise.
3973 (detach_fork): Likewise.
3974 (debug_displaced): Likewise.
3975 (disable_randomization): Likewise.
3976 (non_stop): Likewise.
3977 (non_stop_1): Likewise.
3978 (observer_mode): Likewise.
3979 (observer_mode_1): Likewise.
3980 (set_observer_mode): Update.
3981 (sched_multi): Change to bool.
3982 * infrun.h (debug_displaced): Likewise.
3983 (sched_multi): Likewise.
3984 (step_stop_if_no_debug): Likewise.
3985 (non_stop): Likewise.
3986 (disable_randomization): Likewise.
3987 * linux-tdep.c (use_coredump_filter): Likewise.
3988 (dump_excluded_mappings): Likewise.
3989 * linux-thread-db.c (auto_load_thread_db): Likewise.
3990 (check_thread_db_on_load): Likewise.
3991 * main.c (captured_main_1): Update.
3992 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3993 xx2_opt, boolean_opt>: Change to bool.
3994 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3995 * maint.c (maintenance_profile_p): Likewise.
3996 (per_command_time): Likewise.
3997 (per_command_space): Likewise.
3998 (per_command_symtab): Likewise.
3999 * memattr.c (inaccessible_by_default): Likewise.
4000 * mi/mi-main.c (mi_async): Likewise.
4001 (mi_async_1): Likewise.
4002 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4003 * nat/fork-inferior.h (startup_with_shell): Likewise.
4004 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4005 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4006 * nios2-tdep.c (nios2_debug): Likewise.
4007 * or1k-tdep.c (or1k_debug): Likewise.
4008 * parse.c (parser_debug): Likewise.
4009 * parser-defs.h (parser_debug): Likewise.
4010 * printcmd.c (print_symbol_filename): Likewise.
4011 * proc-api.c (procfs_trace): Likewise.
4012 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4013 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4014 (set_parameter_value): Update.
4015 (add_setshow_generic): Update.
4016 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4017 to bool*.
4018 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4019 int*.
4020 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4021 * record-btrace.c (record_btrace_target::store_registers): Update.
4022 * record-full.c (record_full_memory_query): Change to bool.
4023 (record_full_stop_at_limit): Likewise.
4024 * record-full.h (record_full_memory_query): Likewise.
4025 * remote-notif.c (notif_debug): Likewise.
4026 * remote-notif.h (notif_debug): Likewise.
4027 * remote.c (use_range_stepping): Likewise.
4028 (interrupt_on_connect): Likewise.
4029 (remote_break): Likewise.
4030 * ser-tcp.c (tcp_auto_retry): Likewise.
4031 * ser-unix.c (serial_hwflow): Likewise.
4032 * skip.c (debug_skip): Likewise.
4033 * solib-aix.c (solib_aix_debug): Likewise.
4034 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4035 (spu_auto_flush_cache_p): Likewise.
4036 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4037 Likewise.
4038 (struct info_print_options) <quiet>: Likewise.
4039 * symfile-debug.c (debug_symfile): Likewise.
4040 * symfile.c (auto_solib_add): Likewise.
4041 (separate_debug_file_debug): Likewise.
4042 * symfile.h (auto_solib_add): Likewise.
4043 (separate_debug_file_debug): Likewise.
4044 * symtab.c (basenames_may_differ): Likewise.
4045 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4046 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4047 (struct info_types_options) <quiet>: Likewise.
4048 * symtab.h (demangle): Likewise.
4049 (basenames_may_differ): Likewise.
4050 * target-dcache.c (stack_cache_enabled_1): Likewise.
4051 (code_cache_enabled_1): Likewise.
4052 * target.c (trust_readonly): Likewise.
4053 (may_write_registers): Likewise.
4054 (may_write_memory): Likewise.
4055 (may_insert_breakpoints): Likewise.
4056 (may_insert_tracepoints): Likewise.
4057 (may_insert_fast_tracepoints): Likewise.
4058 (may_stop): Likewise.
4059 (auto_connect_native_target): Likewise.
4060 (target_stop_and_wait): Update.
4061 (target_async_permitted): Change to bool.
4062 (target_async_permitted_1): Likewise.
4063 (may_write_registers_1): Likewise.
4064 (may_write_memory_1): Likewise.
4065 (may_insert_breakpoints_1): Likewise.
4066 (may_insert_tracepoints_1): Likewise.
4067 (may_insert_fast_tracepoints_1): Likewise.
4068 (may_stop_1): Likewise.
4069 * target.h (target_async_permitted): Likewise.
4070 (may_write_registers): Likewise.
4071 (may_write_memory): Likewise.
4072 (may_insert_breakpoints): Likewise.
4073 (may_insert_tracepoints): Likewise.
4074 (may_insert_fast_tracepoints): Likewise.
4075 (may_stop): Likewise.
4076 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4077 (make_thread_apply_all_options_def_group): Change argument from int*
4078 to bool*.
4079 (thread_apply_all_command): Update.
4080 (print_thread_events): Change to bool.
4081 * top.c (confirm): Likewise.
4082 (command_editing_p): Likewise.
4083 (history_expansion_p): Likewise.
4084 (write_history_p): Likewise.
4085 (info_verbose): Likewise.
4086 * top.h (confirm): Likewise.
4087 (history_expansion_p): Likewise.
4088 * tracepoint.c (disconnected_tracing): Likewise.
4089 (circular_trace_buffer): Likewise.
4090 * typeprint.c (print_methods): Likewise.
4091 (print_typedefs): Likewise.
4092 * utils.c (debug_timestamp): Likewise.
4093 (sevenbit_strings): Likewise.
4094 (pagination_enabled): Likewise.
4095 * utils.h (sevenbit_strings): Likewise.
4096 (pagination_enabled): Likewise.
4097 * valops.c (overload_resolution): Likewise.
4098 * valprint.h (struct value_print_options) <prettyformat_arrays,
4099 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4100 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4101 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4102 Likewise.
4103 * windows-nat.c (new_console): Likewise.
4104 (cygwin_exceptions): Likewise.
4105 (new_group): Likewise.
4106 (debug_exec): Likewise.
4107 (debug_events): Likewise.
4108 (debug_memory): Likewise.
4109 (debug_exceptions): Likewise.
4110 (useshell): Likewise.
4111 * windows-tdep.c (maint_display_all_tib): Likewise.
4112 * xml-support.c (debug_xml): Likewise.
4113
f1b620e9
MG
41142019-09-17 Mike Gulick <mgulick@mathworks.com>
4115
4116 * source.c (prepare_path_for_appending): New function.
4117 (openp): Make use of new function.
4118 (find_and_open_source): Search for the compilation directory and
4119 source file as a relative path beneath the directory search path.
4120
67f3ed6a
AB
41212019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4122
4123 * source-cache.c (source_cache::get_line_charpos): Catch
4124 exceptions and return false, this matches the behaviour documented
4125 in the header file.
4126
74332189
JB
41272019-09-17 Joel Brobecker <brobecker@adacore.com>
4128
4129 * ada-tasks.c (info_task): Remove quoting of the task's name.
4130
f2f24aa9
CB
41312019-09-16 Christian Biesinger <cbiesinger@google.com>
4132
4133 * symfile.c (auto_solib_add): Replace comment with a reference
4134 to the header file.
4135
6a062a93
CB
41362019-09-14 Christian Biesinger <cbiesinger@google.com>
4137
4138 * NEWS: Mention that gdb can now be compiled with Python 3
4139 on Windows.
4140
ec6c8338
AB
41412019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4142
4143 * maint.c (maint_print_section_data::maint_print_section_data):
4144 Force use of 'float log10 (float)' by casting the argument to
4145 float.
4146
aa17805f
AB
41472019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4148
4149 * maint.c: Add 'cmath' include.
4150 (struct maint_print_section_data): New structure.
4151 (print_section_index): New function.
4152 (print_bfd_section_info): Add header comment, small whitespace
4153 cleanup, and update to call new print_section_index function.
4154 (print_objfile_section_info): Likewise.
4155 (maint_obj_section_from_bfd_section): New function.
4156 (print_bfd_section_info_maybe_relocated): New function.
4157 (maintenance_info_sections): Add header comment, always use
4158 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4159
3dd9bb46
AB
41602019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4161
4162 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4163 inner scope, add check that the objfile has psymtabs before
4164 checking psymtabs_addrmap.
4165 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4166
4993045d
PW
41672019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4168
4169 * NEWS: Announce that Ada task names are now shown at more places,
4170 and between quotes (except in info task output).
4171 * gdb/ada-tasks.c (task_to_str): New function.
4172 (display_current_task_id): Call task_to_str.
4173 (task_command_1): Likewise.
4174 (print_ada_task_info): In non-mi mode, Properly align headers and data
4175 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4176
7a289707
RO
41772019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4178
4179 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4180 prstatus.pr_lwp.pr_info instead of making it up.
4181
f2aec7f6
CB
41822019-09-11 Christian Biesinger <cbiesinger@google.com>
4183
4184 * auto-load.c (auto_load_expand_dir_vars): Update.
4185 * defs.h (gdb_datadir): Change to std::string.
4186 (python_libdir): Likewise.
4187 (relocate_gdb_directory): Change return type to std::string.
4188 * guile/guile.c (gdbscm_data_directory): Update.
4189 (initialize_scheme_side): Update.
4190 * jit.c (jit_reader_dir): Change to std::string.
4191 (jit_reader_load_command): Update.
4192 * main.c (gdb_datadir): Change to std::string.
4193 (python_libdir): Likewise.
4194 (set_gdb_data_directory): Update.
4195 (relocate_path): Change to return std::string.
4196 (relocate_gdb_directory): Change to return std::string.
4197 (relocate_gdbinit_path_maybe_in_datadir): Update.
4198 (captured_main_1): Update.
4199 * python/python.c (do_start_initialization): Update.
4200 * top.c (show_gdb_datadir): Update.
4201 * xml-syscall.c (xml_init_syscalls_info): Update.
4202 (init_syscalls_info): Update.
4203
9224a013
CB
42042019-09-11 Christian Biesinger <cbiesinger@google.com>
4205
4206 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4207 out of get_init_files.
4208 (get_init_files): Update.
4209
f48cd836
CB
42102019-09-11 Christian Biesinger <cbiesinger@google.com>
4211
4212 * main.c (get_init_files): Change to use std::string.
4213 (captured_main_1): Update.
4214 (print_gdb_help): Update.
4215
9cab7ecd
AT
42162019-09-11 Ali Tamur <tamur@google.com>
4217
4218 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4219 implementation.
4220
67547d89
CB
42212019-09-11 Christian Biesinger <cbiesinger@google.com>
4222
4223 * dbxread.c (read_dbx_symtab): Update.
4224 * dwarf2read.c (load_partial_dies): Update.
4225 * mdebugread.c (parse_partial_symbols): Update.
4226 (handle_psymbol_enumerators): Update.
4227 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4228 * psymtab.c (add_psymbol_to_bcache): Likewise.
4229 (add_psymbol_to_list): Likewise.
4230 * symtab.c (symbol_set_names): Likewise.
4231 * symtab.h (symbol_set_names): Likewise.
4232 * xcoffread.c (scan_xcoff_symtab): Update.
4233
64b2d4a0
TT
42342019-09-11 Tom Tromey <tom@tromey.com>
4235
4236 * symfile-mem.c (symbol_file_add_from_memory): Use
4237 bfd_set_filename.
4238 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4239 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4240
3b00ef10
TT
42412019-09-10 Tom Tromey <tromey@adacore.com>
4242
4243 * dwarf-index-write.c (write_psymbols): Extend error message.
4244 (debug_names::insert): Add Ada code.
4245 (debug_names::write_psymbols): Remove Ada check.
4246 (debug_names) <m_string_obstack>: New member.
4247 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4248 (gdb_index_symbol_name_matcher::matches): Remove.
4249 (mapped_index_base::find_name_components_bounds): Add "lang"
4250 parameter.
4251 (mapped_index_base::build_name_components): Also split names
4252 according to Ada syntax.
4253 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4254 type of "match_callback".
4255 (check_match, check_find_bounds_finds)
4256 (dw2_expand_symtabs_matching): Update.
4257 (dw2_debug_names_iterator): Add new constructor.
4258 (dw2_debug_names_map_matching_symbols): New function.
4259 (dw2_debug_names_expand_symtabs_matching): Update.
4260 (dwarf2_debug_names_functions): Use
4261 dw2_debug_names_map_matching_symbols.
4262
aa391654
TT
42632019-09-10 Tom Tromey <tromey@adacore.com>
4264
4265 * dwarf2read.c (dw2_get_file_names_reader): Add the
4266 CU's file name to the results.
4267
b054970d
TT
42682019-09-10 Tom Tromey <tromey@adacore.com>
4269
4270 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4271 map_matching_symbols. Update.
4272 * dwarf2read.c (dw2_map_matching_symbols): Update.
4273 * psymtab.c (match_partial_symbol): Change type; update.
4274 (psym_map_matching_symbols): Likewise.
4275 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4276 type; update.
4277 * symfile.h (struct quick_symbol_functions)
4278 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4279 Remove "match".
4280
6a3dbf1b
TT
42812019-09-10 Tom Tromey <tromey@adacore.com>
4282
4283 * psymtab.c (map_block): Remove.
4284 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4285 * symtab.c (iterate_over_symbols_terminated): New function.
4286 * symtab.c (iterate_over_symbols_terminated): Declare.
4287
6969f124
TT
42882019-09-10 Tom Tromey <tromey@adacore.com>
4289
4290 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4291 * language.h (struct language_defn) <la_iterate_over_symbols>:
4292 Return bool.
4293 * symtab.c (iterate_over_symbols): Return bool.
4294 * symtab.h (iterate_over_symbols): Return bool.
4295
199b4314
TT
42962019-09-10 Tom Tromey <tromey@adacore.com>
4297
4298 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4299 (add_nonlocal_symbols): Update.
4300 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4301 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4302 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4303 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4304 Change type of "callback". Remove "data".
4305
a084a2a6
AT
4306
43072019-09-09 Ali Tamur <tamur@google.com>
4308
4309 * dwarf2read.c (comp_unit_head): Update comment.
4310 (dwarf2_dwo_name): New function declaration.
4311 (dwarf_unit_type_name): New function declaration.
4312 (read_comp_unit_head): Add support for new compilation units,
4313 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4314 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4315 (currently named as "signature") in their header. Also clarify error
4316 messages.
4317 (lookup_dwo_id): New function. Returns the dwo id of the given
4318 compile unit.
4319 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4320 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4321 functions.
4322 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4323 (dwarf2_dwo_name): Get the dwo name if present.
4324 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4325 purposes.
4326
25a2915e
TT
43272019-09-09 Tom Tromey <tom@tromey.com>
4328
4329 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4330
e4df0874
PW
43312019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4332
4333 * python/python.c (do_start_initialization): Make progname_copy static,
4334 to avoid a leak report.
4335
8634b462
TT
43362019-09-08 Tom Tromey <tom@tromey.com>
4337
4338 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4339
c7f839cb
SM
43402019-09-07 Simon Marchi <simon.marchi@efficios.com>
4341
4342 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4343 Change type to gdb::optional<block_enum>.
4344 (dw2_symtab_iter_init): Change block_index parameter type
4345 to gdb::optional<block_enum>.
4346 (dw2_lookup_symbol): Change block_index parameter
4347 type to block_enum.c
4348 (dw2_debug_names_lookup_symbol): Likewise.
4349 * psymtab.c (psym_lookup_symbol): Likewise.
4350 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4351 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4352 Likewise.
4353
ead0e69a
CB
43542019-09-06 Christian Biesinger <cbiesinger@google.com>
4355
4356 * defs.h (relocate_gdb_directory): Change int to bool in
4357 signature and rename flag to relocatable.
4358 * main.c (relocate_path): Likewise.
4359 (relocate_gdb_directory): Likewise.
4360
b16c44de
AM
43612019-09-06 Alan Modra <amodra@gmail.com>
4362
4363 * coffread.c (coff_symfile_read): Constify filename variable.
4364 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4365 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4366 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4367 * solib.c (reload_shared_libraries_1): Likewise.
4368 * symfile.c (reread_symbols): Likewise.
4369 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4370 * solib-darwin.c (darwin_bfd_open): Likewise.
4371 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4372
06ff036e
AB
43732019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4374
4375 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4376 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4377
4e962e74
TT
43782019-09-03 Tom Tromey <tromey@adacore.com>
4379
4380 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4381 types.
4382 (has_negatives): Unbias a range type bound.
4383 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4384 * gdbtypes.c (operator==): Handle new field.
4385 (create_range_type): Add "bias" parameter.
4386 (create_static_range_type, resolve_dynamic_range): Update.
4387 * gdbtypes.h (struct range_bounds) <bias>: New member.
4388 (create_range_type): Add bias parameter.
4389 * printcmd.c (print_scalar_formatted): Unbias range types.
4390 * value.c (unpack_long): Unbias range types.
4391 (pack_long): Bias range types.
4392
d90b8f26
AH
43932019-09-02 Alan Hayward <alan.hayward@arm.com>
4394
4395 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4396 probe arguments.
4397
fe01123e
AH
43982019-09-02 Alan Hayward <alan.hayward@arm.com>
4399
4400 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4401 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4402 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4403 (compile_probe_arg): Likewise.
4404 * probe.h (get_argument_count): Likewise.
4405 * solib-svr4.c (solib_event_probe_action): Likewise.
4406 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4407
e661ef01
AH
44082019-09-02 Alan Hayward <alan.hayward@arm.com>
4409
4410 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4411 code to here...
4412 (svr4_create_solib_event_breakpoints): ...from here.
4413
47a536d9
SDJ
44142019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4415
4416 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4417 suffix from warning message.
4418
d6a00eba
TT
44192019-08-30 Tom Tromey <tom@tromey.com>
4420
4421 * tui/tui-winsource.h (struct tui_source_window_base)
4422 <refresh_all>: Don't declare.
4423 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4424 Remove.
4425 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4426 tui_show_locator_content.
4427 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4428 declare.
4429 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4430 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4431 declare.
4432
55b2657b
TT
44332019-08-30 Tom Tromey <tom@tromey.com>
4434
4435 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4436
12a8555a
TT
44372019-08-30 Tom Tromey <tom@tromey.com>
4438
4439 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4440 Remove unnecessary forward declarations.
4441
900ac242
TT
44422019-08-30 Tom Tromey <tom@tromey.com>
4443
4444 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4445 rerender.
4446 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4447 tui_show_locator_content.
4448
99ab33fb
TT
44492019-08-30 Tom Tromey <tom@tromey.com>
4450
4451 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4452 (tui_locator_window::rerender): Rewrite using body of previous
4453 tui_show_locator_content.
4454
e594a5d1
TT
44552019-08-30 Tom Tromey <tom@tromey.com>
4456
4457 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4458 set_locator_fullname>: New methods.
4459 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4460 Rename from tui_set_locator_fullname.
4461 (tui_locator_window::set_locator_info): Rename from
4462 tui_set_locator_info. Return bool.
4463 (tui_update_locator_fullname, tui_show_frame_info): Update.
4464
715bb467
TT
44652019-08-30 Tom Tromey <tom@tromey.com>
4466
4467 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4468
772f3f03
TT
44692019-08-30 Tom Tromey <tom@tromey.com>
4470
4471 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4472 call touchwin.
4473
108e13ab
TT
44742019-08-30 Tom Tromey <tom@tromey.com>
4475
4476 * tui/tui-wingeneral.c (box_win): Assume win_info and
4477 win_info->handle cannot be NULL.
4478
cdaa6eb4
TT
44792019-08-30 Tom Tromey <tom@tromey.com>
4480
4481 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4482 refresh_window>: Declare.
4483 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4484 resize.
4485 (tui_data_item_window::rerender): Rename from
4486 tui_display_register.
4487 (tui_data_item_window::refresh_window): New method.
4488 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4489 no-op.
4490
89df7f90
TT
44912019-08-30 Tom Tromey <tom@tromey.com>
4492
4493 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4494 regs_column_count, current_group>: Move later. Now private.
4495 <get_current_group>: New method.
4496 * tui/tui-regs.c (tui_reg_command): Update.
4497 * tui/tui-layout.c (tui_set_layout): Update.
4498
1bf2866a
TT
44992019-08-30 Tom Tromey <tom@tromey.com>
4500
4501 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4502 (tui_data_window::rerender): Don't call
4503 check_and_display_highlight_if_needed.
4504 (tui_data_window::refresh_all): Remove call to
4505 erase_data_content.
4506
0670413d
TT
45072019-08-30 Tom Tromey <tom@tromey.com>
4508
4509 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4510 (tui_data_window::display_registers_from)
4511 (tui_data_window::display_reg_element_at_line)
4512 (tui_data_window::display_registers_from_line): Remove checks of
4513 "empty".
4514
18bb55c7
TT
45152019-08-30 Tom Tromey <tom@tromey.com>
4516
4517 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4518 Don't declare.
4519 * tui/tui-regs.c (tui_data_window::show_registers): Call
4520 rerender.
4521 (tui_data_window::rerender): Rename from display_all_data.
4522 (tui_data_window::rerender): Remove old implementation.
4523
1f6d2f10
TT
45242019-08-30 Tom Tromey <tom@tromey.com>
4525
4526 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4527 text.
4528 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4529
16d01f9c
BW
45302019-08-29 Bernhard Wodok <barto@gmx.net>
4531 Sergio Durigan Junior <sergiodj@redhat.com>
4532
4533 PR win32/24284
4534 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4535
d8f27c60
AB
45362019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4537
4538 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4539 when searching for types.
4540
1f20c35e
AB
45412019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4542
4543 * f-lang.c (f_language_defn): Use f_print_typedef.
4544 * f-lang.h (f_print_typedef): Declare.
4545 * f-typeprint.c (f_print_typedef): Define.
4546
550105b7
CB
45472019-08-27 Christian Biesinger <cbiesinger@google.com>
4548
4549 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4550
4acfdd20
AB
45512019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4552
4553 * cli/cli-utils.c (info_print_options_defs): Delete.
4554 (make_info_print_options_def_group): Delete.
4555 (extract_info_print_options): Delete.
4556 (info_print_command_completer): Delete.
4557 (info_print_args_help): Add extra parameter, and optionally
4558 include text about -n flag.
4559 * cli/cli-utils.h (struct info_print_options): Delete.
4560 (extract_info_print_options): Delete declaration.
4561 (info_print_command_completer): Delete declaration.
4562 (info_print_args_help): Add extra parameter, extend header
4563 comment.
4564 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4565 search_symbols.
4566 * stack.c (struct info_print_options): New type.
4567 (info_print_options_defs): New file scoped variable.
4568 (make_info_print_options_def_group): New static function.
4569 (info_print_command_completer): New static function.
4570 (info_locals_command): Update to use new local functions.
4571 (info_args_command): Likewise.
4572 (_initialize_stack): Add extra parameter to calls to
4573 info_print_args_help.
4574 * symtab.c (search_symbols): Add extra parameter, use this to
4575 possibly excluse non-debug symbols.
4576 (symtab_symbol_info): Add extra parameter, which is passed on to
4577 search_symbols.
4578 (struct info_print_options): New type.
4579 (info_print_options_defs): New file scoped variable.
4580 (make_info_print_options_def_group): New static function.
4581 (info_print_command_completer): New static function.
4582 (info_variables_command): Update to use local functions, and pass
4583 extra parameter through to symtab_symbol_info.
4584 (info_functions_command): Likewise.
4585 (info_types_command): Pass additional argument through to
4586 symtab_symbol_info.
4587 (rbreak_command): Pass extra argument to search_symbols.
4588 (_initialize_symtab): Add extra arguments for calls to
4589 info_print_args_help, and update help text for 'info variables',
4590 'whereis', and 'info functions' commands.
4591 * symtab.h (search_symbols): Add extra argument to declaration.
4592 * NEWS: Mention new flags.
4593
9aa55206
CB
45942019-08-26 Christian Biesinger <cbiesinger@google.com>
4595
4596 * symtab.c (lookup_static_symbol): Call the new function (and move
4597 it down to be next to lookup_global_symbol).
4598 (struct global_sym_lookup_data): Add block_enum member and rename to...
4599 (struct global_or_static_sym_lookup_data): ...this.
4600 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4601 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4602 (lookup_symbol_global_or_static_iterator_cb): ...this.
4603 (lookup_global_or_static_symbol): New function.
4604 (lookup_global_symbol): Call new function.
4605
5c31b358
TV
46062019-08-26 Tom de Vries <tdevries@suse.de>
4607
4608 PR c++/24852
4609 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4610 when pc_probe.prob == NULL.
4611
23c13d42
SM
46122019-08-25 Simon Marchi <simon.marchi@efficios.com>
4613
4614 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4615 variable symbol_linkage to symbol_linkage_.
4616
beadd3e8
SM
46172019-08-25 Simon Marchi <simon.marchi@efficios.com>
4618
4619 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4620 represent whether the symbol is static, dynamic, or we don't
4621 know.
4622
e3ec872f
YS
46232019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4624
4625 * gdb/rx-tdep.c (rx_register_names): New.
4626 (rx_register_name): Delete.
4627 (rx_psw_type): Delete.
4628 (rx_fpsw_type): Delete.
4629 (rx_register_type): Delete.
4630 (rx_gdbarch_init): Convert target-descriptions.
4631 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4632 * gdb/features/Makefile: Add rx.xml.
4633 * gdb/features/rx.xml: New.
4634 * gdb/features/rx.c: Generated.
4635 * gdb/NEWS: Mention target description support.
4636
d0509ba4
CB
46372019-08-22 Christian Biesinger <cbiesinger@google.com>
4638
4639 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4640 *slot_ptr.
4641
2d41fa11
SDJ
46422019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4643
4644 * configure.ac: Don't check for 'dlfcn.h' (moved to
4645 gdbsupport/common.m4).
4646 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4647 'gdbsupport/'.
4648 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4649 * compile/compile-c-support.c: Include
4650 'gdbsupport/gdb-dlfcn.h'.
4651 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4652 * gdb-dlfcn.c: Move to...
4653 * gdbsupport/gdb-dlfcn.c: ... here.
4654 * gdb-dlfcn.h: Move to...
4655 * gdbsupport/gdb-dlfcn.h: ... here.
4656
de8af808
SL
46572019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4658
4659 * nios2-tdep.c (struct reg_value): Improve comments. Make
4660 the offset field signed.
4661
27204489
CB
46622019-08-22 Christian Biesinger <cbiesinger@google.com>
4663
4664 * python/lib/gdb/__init__.py (_execute_file): New function.
4665 * python/python.c (python_run_simple_file): Call gdb._execute_file
4666 on Windows.
4667
43771869
AB
46682019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4669
4670 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4671 all uses as this was never set to anything but a zero value.
4672
26c957f1
PA
46732019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4674
4675 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4676
c07aae6e
CB
46772019-08-21 Christian Biesinger <cbiesinger@google.com>
4678
4679 * tui/tui-data.h (tui_gen_win_info): Add an =default
4680 move constructor, required by some GCC versions.
4681
3960cb7a
JF
46822019-08-21 Jinke Fan <fanjinke51@yeah.net>
4683
4684 * go32-nat.c (go32_sysinfo): Add hygon_p.
4685
04c72a68
TT
46862019-08-20 Tom Tromey <tom@tromey.com>
4687
4688 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4689 line_from_reg_element_no, first_reg_element_no_inline,
4690 display_all_data, delete_data_content_windows,
4691 erase_data_content>: Now private.
4692
072272ce
TT
46932019-08-20 Tom Tromey <tom@tromey.com>
4694
4695 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4696 (tui_unhighlight_win, tui_highlight_win)
4697 (tui_win_info::make_window): Update.
4698 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4699
973961bd
TT
47002019-08-20 Tom Tromey <tom@tromey.com>
4701
4702 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4703 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4704 (MAX_PID_WIDTH): Move to tui-stack.c.
4705 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4706 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4707 (MAX_PID_WIDTH): Move from tui-data.h.
4708
ab0e1f1a
TT
47092019-08-20 Tom Tromey <tom@tromey.com>
4710
4711 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4712 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4713 (box_win): Update.
4714 (tui_gen_win_info::make_window): Rename from tui_make_window.
4715 (tui_win_info::make_window): New method.
4716 (tui_gen_win_info::make_visible): Update.
4717 * tui/tui-source.c (tui_source_window::set_contents): Update.
4718 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4719 (tui_data_window::display_registers_from): Update.
4720 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4721 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4722 Declare.
4723 <can_box>: Remove.
4724 <title>: Remove.
4725 (struct tui_win_info) <make_window>: Declare.
4726 <can_box>: Now virtual.
4727 <title>: New member.
4728 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4729 * tui/tui-command.c (tui_cmd_window::resize): Update.
4730
100c2bf3
TT
47312019-08-20 Tom Tromey <tom@tromey.com>
4732
4733 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4734 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4735 (tui_data_window::check_register_values): Update.
4736
fa4dc567
TT
47372019-08-20 Tom Tromey <tom@tromey.com>
4738
4739 * tui/tui-regs.h (struct tui_data_window): Use
4740 DISABLE_COPY_AND_ASSIGN.
4741 <regs_content>: Change type, removing unique_ptr.
4742 <tui_data_window>: Add move constructor.
4743 * tui/tui-regs.c (tui_data_window::show_registers)
4744 (tui_data_window::show_register_group)
4745 (tui_data_window::display_registers_from)
4746 (tui_data_window::display_registers_from)
4747 (tui_data_window::first_data_item_displayed)
4748 (tui_data_window::delete_data_content_windows)
4749 (tui_data_window::rerender, tui_data_window::refresh_window)
4750 (tui_data_window::check_register_values): Update.
4751
ca02d7c8
TT
47522019-08-20 Tom Tromey <tom@tromey.com>
4753
4754 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4755 show_register_group>: Declare.
4756 (tui_show_register_group): Don't declare.
4757 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4758 tui_show_registers.
4759 (tui_data_window::show_register_group): Rename from
4760 tui_show_register_group.
4761 (tui_data_window::check_register_values, tui_reg_command):
4762 Update.
4763 * tui/tui-layout.c (tui_set_layout): Update.
4764
63356bfd
TT
47652019-08-20 Tom Tromey <tom@tromey.com>
4766
4767 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4768 Declare.
4769 (tui_check_register_values): Don't declare.
4770 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4771 from tui_check_register_values.
4772 * tui/tui-hooks.c (tui_register_changed): Update.
4773
42cc14a7
TT
47742019-08-20 Tom Tromey <tom@tromey.com>
4775
4776 * tui/tui-regs.c (tui_reg_layout): Move later.
4777 (tui_show_registers): Don't enable TUI mode or change layout.
4778
b9ad3686
TT
47792019-08-20 Tom Tromey <tom@tromey.com>
4780
4781 * tui/tui-regs.h (struct tui_data_item_window)
4782 <~tui_data_item_window>: Remove.
4783 <content>: Now a unique_xmalloc_ptr.
4784 * tui/tui-regs.c (tui_register_format): Return a
4785 unique_xmalloc_ptr.
4786 (tui_get_register): Update.
4787 (~tui_data_item_window): Remove.
4788 (tui_data_window::display_registers_from, tui_display_register):
4789 Update.
4790 * tui/tui-io.h (tui_expand_tabs): Update.
4791 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4792 Remove "col" parameter.
4793
8e114aab
TT
47942019-08-20 Tom Tromey <tom@tromey.com>
4795
4796 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4797 field.
4798 * tui/tui-regs.c (~tui_data_item_window): Update.
4799
1a4f81dd
TT
48002019-08-20 Tom Tromey <tom@tromey.com>
4801
4802 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4803 earlier.
4804
0f8d8876
TT
48052019-08-20 Tom Tromey <tom@tromey.com>
4806
4807 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4808
605dc2c2
TT
48092019-08-20 Tom Tromey <tom@tromey.com>
4810
4811 * tui/tui-source.h (struct tui_source_window): Update.
4812 * tui/tui-regs.c (tui_show_registers): Update.
4813 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4814 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4815 (NO_REGS_STRING): Remove defines.
4816
aedbe3bb
CM
48172019-08-20 Conrad Meyer <cem@FreeBSD.org>
4818
4819 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4820 unnecessary thread walk if remote doesn't support the packet.
4821
7ce8f214
TT
48222019-08-19 Tom Tromey <tromey@adacore.com>
4823
4824 * python/py-value.c (value_has_field): Fix indentation.
4825
f21c2bd7
TT
48262019-08-19 Tom Tromey <tromey@adacore.com>
4827
4828 * printcmd.c (do_one_display, info_display_command): Update.
4829 * block.h (contained_in): Return bool. Add allow_nested
4830 parameter.
4831 * block.c (contained_in): Return bool. Add allow_nested
4832 parameter.
4833
d806ea2d
TT
48342019-08-19 Tom Tromey <tom@tromey.com>
4835
4836 * configure: Rebuild.
4837 * configure.ac: Disallow the combination of -static-libstdc++ and
4838 source highlight.
4839 * source-cache.c (get_language_name): Handle rust.
4840 (source_cache::get_source_lines): Ignore highlighting exceptions.
4841
398fdd60
TT
48422019-08-16 Tom Tromey <tom@tromey.com>
4843
4844 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4845 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4846 (struct tui_source_window_base) <make_visible, refresh_window,
4847 resize>: Remove methods.
4848 <execution_info>: Remove field.
4849 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4850 (tui_show_source_line, tui_source_window_base)
4851 (~tui_source_window_base): Update.
4852 (tui_source_window_base::resize)
4853 (tui_source_window_base::make_visible)
4854 (tui_source_window_base::refresh_window): Remove.
4855 (tui_source_window_base::update_exec_info): Update.
4856 * tui/tui-source.c (tui_source_window::set_contents): Update.
4857 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4858
e699d331
TT
48592019-08-16 Tom Tromey <tom@tromey.com>
4860
4861 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4862 deprecated_query_hook.
4863
bb01dbfc
TT
48642019-08-16 Tom Tromey <tom@tromey.com>
4865
4866 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4867 (tui_update_source_windows_with_line): Update.
4868 * tui/tui-source.h (struct tui_source_window)
4869 <show_symtab_source>: Declare.
4870 (tui_show_symtab_source): Don't declare.
4871 * tui/tui-source.c (tui_show_symtab_source): Rename from
4872 tui_show_symtab_source.
4873
81c82c4b
TT
48742019-08-16 Tom Tromey <tom@tromey.com>
4875
4876 * tui/tui-winsource.h (struct tui_source_window_base)
4877 <set_contents>: Declare.
4878 * tui/tui-winsource.c
4879 (tui_source_window_base::update_source_window_as_is): Update.
4880 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4881 Declare.
4882 (tui_set_source_content): Don't declare.
4883 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4884 tui_set_source_content.
4885 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4886 Declare.
4887 (tui_set_disassem_content): Don't declare.
4888 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4889 tui_set_disassem_content.
4890
2ddaf614
TT
48912019-08-16 Tom Tromey <tom@tromey.com>
4892
4893 * tui/tui-winsource.h (struct tui_source_window_base)
4894 <update_breakpoint_info>: Declare.
4895 (tui_update_breakpoint_info): Don't declare.
4896 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4897 (tui_update_all_breakpoint_info): Update.
4898 (tui_source_window_base::update_breakpoint_info): Rename from
4899 tui_update_breakpoint_info.
4900 (tui_source_window_base::update_exec_info): Update.
4901
017f9828
TT
49022019-08-16 Tom Tromey <tom@tromey.com>
4903
4904 * tui/tui-winsource.h (struct tui_source_window_base)
4905 <update_source_window>: Declare.
4906 (tui_update_source_window): Don't declare.
4907 * tui/tui-winsource.c
4908 (tui_source_window_base::update_source_window): Rename from
4909 tui_update_source_window.
4910 (tui_source_window_base::rerender): Update.
4911 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4912 * tui/tui-disasm.c (tui_show_disassem)
4913 (tui_show_disassem_and_update_source)
4914 (tui_disasm_window::maybe_update): Update.
4915
ed8358e9
TT
49162019-08-16 Tom Tromey <tom@tromey.com>
4917
4918 * tui/tui-winsource.h (struct tui_source_window_base)
4919 <update_source_window_as_is>: Declare.
4920 (tui_update_source_window_as_is): Don't declare.
4921 * tui/tui-winsource.c (tui_update_source_window): Update
4922 (tui_source_window_base::update_source_window_as_is): Rename from
4923 tui_update_source_window_as_is.
4924 (tui_source_window_base::refill): Update.
4925 * tui/tui-source.c (tui_show_symtab_source): Update.
4926 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4927 Update.
4928
20149b6b
TT
49292019-08-16 Tom Tromey <tom@tromey.com>
4930
4931 * tui/tui-winsource.h (tui_update_source_window)
4932 (tui_update_source_window_as_is): Remove "noerror" parameter.
4933 * tui/tui-winsource.c (tui_update_source_window)
4934 (tui_update_source_window_as_is): Remove "noerror" parameter.
4935 (tui_update_source_windows_with_addr)
4936 (tui_update_source_windows_with_line)
4937 (tui_source_window_base::rerender)
4938 (tui_source_window_base::refill): Update.
4939 * tui/tui-source.h (tui_set_source_content)
4940 (tui_show_symtab_source): Remove "noerror" parameter.
4941 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4942 parameter.
4943 (tui_show_symtab_source): Likewise.
4944 (tui_source_window::maybe_update): Update.
4945 * tui/tui-disasm.c (tui_show_disassem)
4946 (tui_show_disassem_and_update_source)
4947 (tui_disasm_window::do_scroll_vertical)
4948 (tui_disasm_window::maybe_update): Update.
4949
2d83e710
TT
49502019-08-16 Tom Tromey <tom@tromey.com>
4951
4952 * tui/tui.c (tui_is_window_visible): Update.
4953 * tui/tui-wingeneral.c (tui_make_window)
4954 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4955 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4956 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4957 (tui_set_win_height_command, parse_scrolling_args): Update.
4958 * tui/tui-source.c (tui_source_window::style_changed): Update.
4959 * tui/tui-regs.c (tui_show_registers)
4960 (tui_data_window::first_data_item_displayed)
4961 (tui_data_window::delete_data_content_windows)
4962 (tui_check_register_values, tui_reg_command): Update.
4963 * tui/tui-disasm.c (tui_show_disassem): Update.
4964 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4965 method.
4966 <is_visible>: Remove field.
4967 * tui/tui-data.c (tui_next_win, tui_prev_win)
4968 (tui_delete_invisible_windows): Update.
4969
d4ab829a
TT
49702019-08-16 Tom Tromey <tom@tromey.com>
4971
4972 * tui/tui-winsource.h (struct tui_source_window_base)
4973 <m_has_locator>: Remove.
4974 * tui/tui-layout.c (show_source_disasm_command, show_data)
4975 (show_source_or_disasm_and_command): Update.
4976
aa7ca1bb
AH
49772019-08-16 Alan Hayward <alan.hayward@arm.com>
4978
4979 * NEWS (Other MI changes): New subsection.
4980 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4981 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4982 * arch-utils.c (default_get_pc_address_flags): New function.
4983 * arch-utils.h (default_get_pc_address_flags): New declaration.
4984 * gdbarch.sh: Add get_pc_address_flags.
4985 * gdbarch.c: Regenerate.
4986 * gdbarch.h: Likewise.
4987 * stack.c (print_pc): New function.
4988 (print_frame_info) (print_frame): Call print_pc.
4989
6eac171f
TV
49902019-08-16 Tom de Vries <tdevries@suse.de>
4991
4992 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4993 print_objfile_section_info.
4994
3df505f6
TT
49952019-08-15 Tom Tromey <tom@tromey.com>
4996
4997 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4998 calling update_cmdwin_start_line.
4999 * tui/tui-winsource.h (struct tui_source_window_base)
5000 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5001 <rerender>: Declare.
5002 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5003 Call rerender.
5004 (tui_source_window_base::set_new_height): Remove.
5005 (tui_source_window_base::rerender): Rename from
5006 do_make_visible_with_new_height.
5007 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5008 resize method.
5009 (tui_win_info::make_invisible_and_set_new_height)
5010 (tui_win_info::make_visible_with_new_height): Remove.
5011 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5012 Declare.
5013 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5014 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5015 do_make_visible_with_new_height>: Don't declare.
5016 <rerender>: Declare.
5017 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5018 set_new_height.
5019 (tui_data_window::do_make_visible_with_new_height): Remove.
5020 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5021 call tui_show_locator_content.
5022 (tui_gen_win_info::resize): Call rerender.
5023 (show_source_or_disasm_and_command): Don't call
5024 tui_show_locator_content.
5025 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5026 method.
5027 (struct tui_win_info) <rerender>: Declare.
5028 <set_new_height, make_invisible_and_set_new_height,
5029 make_visible_with_new_height>: Don't declare.
5030 * tui/tui-data.c (tui_win_list::rerender): New method.
5031 * tui/tui-command.h (struct tui_cmd_window)
5032 <do_make_visible_with_new_height>: Don't declare.
5033 * tui/tui-command.c
5034 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5035
272560b5
TT
50362019-08-15 Tom Tromey <tromey@adacore.com>
5037
5038 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5039 * ada-lang.c (ada_enum_name): Likewise.
5040
08235187
CB
50412019-08-15 Christian Biesinger <cbiesinger@google.com>
5042
5043 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5044 leading underscore.
5045 (GdbOutputErrorFile): Likewise.
5046 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5047 accordingly.
5048 (execute_unwinders): Rename to have a leading underscore.
5049 (auto_load_packages): Likewise.
5050 (global scope): Adjust call to auto_load_packages accordingly.
5051 (GdbSetPythonDirectory): Likewise.
5052 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5053 instead of execute_unwinders.
5054
db502012
TT
50552019-08-15 Tom Tromey <tom@tromey.com>
5056
5057 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5058 (show_data): Don't change window visibility.
5059 (tui_gen_win_info::resize): Remove special case for command
5060 window. Use wresize, when available.
5061 (show_source_or_disasm_and_command): Don't change window
5062 visibility.
5063 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5064 <make_visible>: New method.
5065 * tui/tui-command.c (tui_cmd_window::resize): New method.
5066
3891b65e
TT
50672019-08-15 Tom Tromey <tom@tromey.com>
5068
5069 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5070 (struct tui_source_windows): New.
5071 * tui/tui-winsource.c (tui_display_main): Update.
5072 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5073 (new_height_ok, parse_scrolling_args): Update.
5074 * tui/tui-layout.c (show_layout, show_data): Update.
5075 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5076 (tui_add_to_source_windows): Don't declare.
5077 * tui/tui-data.c (source_windows, tui_source_windows)
5078 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5079
ee556432
TT
50802019-08-15 Tom Tromey <tom@tromey.com>
5081
5082 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5083 Rename from reset.
5084 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5085 * tui/tui-layout.c (show_source_disasm_command, show_data):
5086 Update.
5087 (tui_gen_win_info::resize): Rename.
5088 (show_source_or_disasm_and_command): Update.
5089 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5090 reset.
5091
46f438e3
TT
50922019-08-15 Tom Tromey <tom@tromey.com>
5093
5094 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5095 * tui/tui-interp.c (tui_interp::init): Don't call
5096 tui_initialize_static_data.
5097 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5098
f4ce562c
TT
50992019-08-15 Tom Tromey <tom@tromey.com>
5100
5101 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5102 examine tui_win_list.
5103
c398c3d0
TT
51042019-08-15 Tom Tromey <tom@tromey.com>
5105
5106 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5107 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5108 tui_clear_source_content.
5109 (tui_clear_source_content): Remove.
5110 (tui_source_window_base::do_erase_source_content): Hoist call to
5111 content.clear().
5112 * tui/tui-stack.c (tui_show_frame_info): Don't call
5113 tui_clear_source_content.
5114
e25d2004
TT
51152019-08-15 Tom Tromey <tom@tromey.com>
5116
5117 * tui/tui-winsource.h (struct tui_source_window_base)
5118 <do_erase_source_content>: New method.
5119 <erase_source_content>: New method.
5120 (tui_erase_source_content): Don't declare.
5121 * tui/tui-winsource.c (tui_clear_source_content): Update.
5122 (tui_source_window_base::do_erase_source_content): Rename from
5123 tui_erase_source_content.
5124 (tui_source_window_base::show_source_content): Update.
5125 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5126 * tui/tui-source.h (struct tui_source_window)
5127 <erase_source_content>: New method.
5128 * tui/tui-disasm.h (struct tui_disasm_window)
5129 <erase_source_content>: New method.
5130
002f15c2
TT
51312019-08-15 Tom Tromey <tom@tromey.com>
5132
5133 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5134 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5135 constructor.
5136 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5137 * tui/tui-source.c (tui_set_source_content): Update.
5138 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5139
c9033fe8
TT
51402019-08-15 Tom Tromey <tom@tromey.com>
5141
5142 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5143 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5144 tui-source.c.
5145 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5146 Declare.
5147 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5148 method.
5149 (tui_source_window::maybe_update): Update.
5150
088f37dd
TT
51512019-08-15 Tom Tromey <tom@tromey.com>
5152
5153 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5154 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5155 tui-disasm.c.
5156 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5157 Declare.
5158 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5159 method.
5160 (tui_disasm_window::maybe_update): Update.
5161
a54700c6
TT
51622019-08-15 Tom Tromey <tom@tromey.com>
5163
5164 * tui/tui-winsource.h (struct tui_source_window_base)
5165 <maybe_update>: Declare.
5166 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5167 method.
5168 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5169 Declare.
5170 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5171 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5172 Declare.
5173 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5174
e2a678a5
TT
51752019-08-15 Tom Tromey <tom@tromey.com>
5176
5177 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5178
f2dda477
TT
51792019-08-15 Tom Tromey <tom@tromey.com>
5180
5181 * tui/tui-wingeneral.c: Include tui-stack.h.
5182 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5183 (struct tui_locator_window): Move from tui-data.h.
5184 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5185 (tui_initialize_static_data): Move from tui-data.c.
5186 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5187 (struct tui_locator_window): Move to tui-stack.c.
5188 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5189 (tui_initialize_static_data): Move to tui-stack.c.
5190
ed4a1084
TT
51912019-08-15 Tom Tromey <tom@tromey.com>
5192
5193 * tui/tui-layout.c (show_source_disasm_command)
5194 (show_source_or_disasm_and_command): Use make_visible method, not
5195 tui_make_window.
5196 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5197 Remove.
5198
65962b20
TT
51992019-08-15 Tom Tromey <tom@tromey.com>
5200
5201 * tui/tui-wingeneral.h (tui_make_window): Update.
5202 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5203 parameter.
5204 (tui_gen_win_info::make_visible): Update.
5205 * tui/tui-regs.c (tui_data_window::display_registers_from):
5206 Update.
5207 * tui/tui-layout.c (show_source_disasm_command)
5208 (show_source_or_disasm_and_command): Update.
5209 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5210 (enum tui_box): Remove.
5211 (struct tui_win_info) <can_box>: New method.
5212 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5213 method.
5214
2208ee91
TV
52152019-08-15 Tom de Vries <tdevries@suse.de>
5216
5217 * linux-nat-trad.c: Include gdbarch.h.
5218
75faf5c4
AH
52192019-08-14 Alan Hayward <alan.hayward@arm.com>
5220
5221 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5222 register sizes.
5223
b1c896b3
TT
52242019-08-14 Tom Tromey <tromey@adacore.com>
5225
5226 * darwin-nat.c: Include gdbarch.h.
5227 * darwin-nat-info.c: Include gdbarch.h.
5228
6405cd73
TT
52292019-08-13 Tom Tromey <tom@tromey.com>
5230
5231 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5232 Remove.
5233 * tui/tui-data.c (tui_initialize_static_data): Update.
5234
5216580d
TT
52352019-08-13 Tom Tromey <tom@tromey.com>
5236
5237 * tui/tui-winsource.h (struct tui_exec_info_window)
5238 <~tui_exec_info_window, maybe_allocate_content, get_content,
5239 m_content>: Remove.
5240 (struct tui_source_window_base) <set_exec_info_content,
5241 show_exec_info_content>: Don't declare.
5242 * tui/tui-winsource.c
5243 (tui_exec_info_window::maybe_allocate_content): Remove.
5244 (tui_source_window_base::update_exec_info): Rename from
5245 set_exec_info_content.
5246 (tui_source_window_base::show_exec_info_content)
5247 (tui_source_window_base::update_exec_info): Remove.
5248
93858ad3
TT
52492019-08-13 Tom Tromey <tom@tromey.com>
5250
5251 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5252 declare.
5253 * tui/tui-winsource.c (tui_update_source_window_as_is)
5254 (tui_update_source_windows_with_addr, tui_erase_source_content):
5255 Update.
5256 (tui_clear_exec_info_content): Remove.
5257
e321e7ce
TT
52582019-08-13 Tom Tromey <tom@tromey.com>
5259
5260 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5261 declare.
5262 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5263 call tui_erase_exec_info_content.
5264 (tui_clear_exec_info_content): Rename from
5265 tui_erase_exec_info_content.
5266 (tui_clear_exec_info_content): Delete.
5267
8270ac62
TT
52682019-08-13 Tom Tromey <tom@tromey.com>
5269
5270 * tui/tui-winsource.h (struct tui_source_window_base)
5271 <show_exec_info_content>: Declare.
5272 (tui_show_exec_info_content): Don't declare.
5273 * tui/tui-winsource.c
5274 (tui_source_window_base::show_exec_info_content): Rename from
5275 tui_show_exec_info_content.
5276 (tui_source_window_base::update_exec_info): Update.
5277
7b56485d
TT
52782019-08-13 Tom Tromey <tom@tromey.com>
5279
5280 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5281 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5282 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5283 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5284 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5285 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5286 ... here.
5287
7ba913dc
TT
52882019-08-13 Tom Tromey <tom@tromey.com>
5289
5290 * tui/tui-winsource.h (struct tui_source_window_base)
5291 <update_exec_info>: Declare.
5292 (tui_update_exec_info): Don't declare.
5293 * tui/tui-winsource.c (tui_update_source_window_as_is)
5294 (tui_source_window_base::refresh_all)
5295 (tui_update_all_breakpoint_info): Update.
5296 (tui_source_window_base::update_exec_info): Rename from
5297 tui_update_exec_info.
5298 * tui/tui-stack.c (tui_show_frame_info): Update.
5299
37a4a131
TT
53002019-08-13 Tom Tromey <tom@tromey.com>
5301
5302 * tui/tui-winsource.h (struct tui_source_window_base)
5303 <set_exec_info_content>: Declare.
5304 (tui_set_exec_info_content): Don't declare.
5305 * tui/tui-winsource.c
5306 (tui_source_window_base::set_exec_info_content): Rename from
5307 tui_set_exec_info_content.
5308 (tui_update_exec_info): Update.
5309
0bd27e07
TT
53102019-08-13 Tom Tromey <tom@tromey.com>
5311
5312 * tui/tui-winsource.h (struct tui_source_window_base)
5313 <show_source_content>: Declare.
5314 (tui_show_source_content): Don't declare.
5315 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5316 (tui_source_window_base::show_source_content): Rename from
5317 tui_show_source_content.
5318 (tui_source_window_base::refresh_all): Update.
5319 * tui/tui-layout.c (show_source_disasm_command)
5320 (show_source_or_disasm_and_command): Update.
5321
b4ef5aeb
TT
53222019-08-13 Tom Tromey <tom@tromey.com>
5323
5324 * tui/tui-winsource.c (tui_erase_source_content)
5325 (tui_show_source_content, tui_source_window_base::refresh_all):
5326 Update.
5327 * tui/tui-wingeneral.h
5328 (tui_check_and_display_highlight_if_needed): Don't declare.
5329 * tui/tui-wingeneral.c
5330 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5331 check_and_display_highlight_if_needed.
5332 * tui/tui-win.c (tui_rehighlight_all)
5333 (tui_win_info::make_visible_with_new_height): Update.
5334 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5335 (tui_data_window::erase_data_content)
5336 (tui_data_window::display_all_data): Update.
5337 * tui/tui-data.h (struct tui_win_info)
5338 <check_and_display_highlight_if_needed>: Declare.
5339
fede5273
TT
53402019-08-13 Tom Tromey <tom@tromey.com>
5341
5342 * tui/tui-win.c (tui_resize_all): Call
5343 tui_delete_invisible_windows.
5344 * tui/tui-layout.c (show_layout): Call
5345 tui_delete_invisible_windows.
5346 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5347 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5348
22c3f490
TT
53492019-08-13 Tom Tromey <tom@tromey.com>
5350
5351 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5352 tui_add_win_to_layout.
5353
16cb7910
TT
53542019-08-13 Tom Tromey <tom@tromey.com>
5355
5356 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5357 * tui/tui-layout.c (tui_default_win_height): Now static.
5358
cc0c3ffb
TT
53592019-08-13 Tom Tromey <tom@tromey.com>
5360
5361 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5362 single switch.
5363 (show_source_disasm_command, show_source_or_disasm_and_command):
5364 Don't check current layout.
5365
3f3ffe54
TT
53662019-08-13 Tom Tromey <tom@tromey.com>
5367
5368 * tui/tui-wingeneral.c (make_all_visible): Remove.
5369 (tui_make_all_invisible): Simplify.
5370 * tui/tui-layout.c (tui_make_all_invisible): Move from
5371 tui-wingeneral.c; simplify.
5372 (show_layout): Hoist call to tui_make_all_invisible.
5373 (show_data): Don't call tui_make_all_invisible.
5374
69258091
TT
53752019-08-13 Tom Tromey <tom@tromey.com>
5376
5377 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5378 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5379
62cf57fe
TT
53802019-08-13 Tom Tromey <tom@tromey.com>
5381
5382 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5383 tui-data.c.
5384 (show_source_disasm_command, show_data)
5385 (show_source_or_disasm_and_command): Don't use
5386 tui_set_current_layout_to.
5387 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5388 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5389 tui-layout.c.
5390 (tui_set_current_layout_to): Remove.
5391
2afade5d
TT
53922019-08-13 Tom Tromey <tom@tromey.com>
5393
5394 * tui/tui-layout.c (tui_set_layout): Update.
5395 * tui/tui-data.h (struct tui_layout_def): Remove.
5396 (tui_layout_def): Don't declare.
5397 * tui/tui-data.c (layout_def): Remove.
5398 (tui_layout_def): Remove.
5399
a3504e96
TT
54002019-08-13 Tom Tromey <tom@tromey.com>
5401
5402 * tui/tui-winsource.h (struct tui_source_window_base)
5403 <clear_detail>: No longer "override".
5404 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5405 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5406 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5407 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5408 Remove.
5409 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5410
29c92911
TT
54112019-08-13 Tom Tromey <tromey@adacore.com>
5412
5413 * tracepoint.c: Don't include readline.h or history.h.
5414
86c6b807
TT
54152019-08-12 Tom Tromey <tom@tromey.com>
5416
5417 * configure: Rebuild.
5418 * configure.ac: Check for readline 7.
5419 * NEWS: Mention readline 7 requirement.
5420 * README: Update.
5421
5db2718c
TT
54222019-08-12 Tom Tromey <tom@tromey.com>
5423
5424 * mingw-hdep.c (gdb_select): Remove readline hack.
5425
dac36daf
PFC
54262019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5427
5428 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5429 when the function fails.
5430
1022c627
AA
54312019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5432
5433 * s390-tdep.c (s390_type_align): New function.
5434 (s390_gdbarch_init): Set it as type_align gdbarch method.
5435
eba4caf2
TV
54362019-08-09 Tom de Vries <tdevries@suse.de>
5437
5438 PR gdb/24591
5439 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5440 pc_low with relocation offset.
5441
123cd851
TT
54422019-08-07 Tom Tromey <tromey@adacore.com>
5443
5444 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5445 (print_frame_args): Update.
5446 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5447 Update.
5448 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5449 * frame.h (struct frame_arg): Add initializers.
5450 <error>: Now a unique_xmalloc_ptr.
5451
3d31bc39
AH
54522019-08-07 Alan Hayward <alan.hayward@arm.com>
5453
5454 * NEWS: Expand the Pointer Authentication entry.
5455 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5456 (aarch64_frame_unmask_lr): ... to this.
5457 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5458 Call aarch64_frame_unmask_lr.
5459 * frame.c (struct frame_info): Add "masked" variable.
5460 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5461 (fprint_frame): Check for masked pc.
5462 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5463 declarations.
5464 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5465 * stack.c (print_frame): Check for masked pc.
5466
0cf9feb9
TT
54672019-08-06 Tom Tromey <tom@tromey.com>
5468
5469 * stabsread.c (patch_block_stabs, read_one_struct_field)
5470 (read_enum_type): Use obstack_strndup.
5471 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5472 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5473 * dwarf2read.c (guess_full_die_structure_name)
5474 (anonymous_struct_prefix): Use obstack_strndup.
5475 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5476 * c-exp.y (yylex): Use obstack_strndup.
5477 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5478 (write_var_or_type): Use obstack_strndup.
5479
efba19b0
TT
54802019-08-06 Tom Tromey <tom@tromey.com>
5481
5482 * symfile.c (reread_symbols): Use obstack_strdup.
5483 * stabsread.c (read_type): Use obstack_strdup.
5484 * gdb_obstack.h (obstack_strdup): New overload.
5485 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5486 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5487 (dwarf2_canonicalize_name): Use obstack_strdup.
5488 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5489 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5490 Use obstack_strdup.
5491
f25102f7
TT
54922019-08-06 Tom Tromey <tom@tromey.com>
5493
5494 * gdb_obstack.h (obstack_strdup): Define.
5495 * gdb_obstack.c (obstack_strdup): Don't define.
5496
021887d8
TT
54972019-08-06 Tom Tromey <tom@tromey.com>
5498
5499 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5500 obstack_strdup.
5501 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5502 obstack_strdup.
5503 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5504 * stabsread.c (common_block_start): Use obstack_strdup.
5505 * objfiles.c (set_objfile_main_name, objfile): Use
5506 obstack_strdup.
5507 * namespace.c (add_using_directive): Use obstack_strdup.
5508 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5509 * jit.c (finalize_symtab): Use obstack_strdup.
5510 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5511 (guess_partial_die_structure_name, partial_die_info::fixup)
5512 (dwarf2_name): Use obstack_strdup.
5513 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5514 obstack_strdup.
5515 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5516 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5517 obstack_strdup.
5518 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5519
d2834edc
PW
55202019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5521
5522 * unittests/help-doc-selftests.c: New file.
5523 * Makefile.in: Add the new file.
5524
590042fc
PW
55252019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5526
5527 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5528 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5529 the full first line, except when FOR_VALUE_PREFIX. In this case,
5530 the trailing '.' is not output, and the first character is uppercased.
5531 (print_help_for_command): Update call to print_doc_line.
5532 (print_doc_of_command): Likewise.
5533 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5534 * cli/cli-option.c (append_indented_doc): Do not append newline.
5535 (build_help_option): Append newline after first appended_indented_doc
5536 only if a second call is done.
5537 (build_help): Append 2 new lines before each option, except the first
5538 one.
5539 * compile/compile.c (_initialize_compile): Add new lines after
5540 %OPTIONS%, when not at the end of the help.
5541 Change help doc or code
5542 producing the help doc to respect the invariants.
5543 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5544 Also removed the new line after 'Options:', as all other commands
5545 do not put an empty line between 'Options:' and the first option.
5546 * printcmd.c (_initialize_printcmd): Likewise.
5547 * stack.c (_initialize_stack): Likewise.
5548 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5549 incorrectly telling COMMAND is optional.
5550 * ada-lang.c (_initialize_ada_language): Change help doc or code
5551 producing the help doc to respect the invariants.
5552 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5553 * breakpoint.c (_initialize_breakpoint): Likewise.
5554 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5555 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5556 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5557 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5558 _initialize_cli_style): Likewise.
5559 * corelow.c (core_target_info): Likewise.
5560 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5561 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5562 * filesystem.c (_initialize_filesystem): Likewise.
5563 * frame.c (_initialize_frame): Likewise.
5564 * gnu-nat.c (add_task_commands): Likewise.
5565 * infcall.c (_initialize_infcall): Likewise.
5566 * infcmd.c (_initialize_infcmd): Likewise.
5567 * interps.c (_initialize_interpreter): Likewise.
5568 * language.c (_initialize_language): Likewise.
5569 * linux-fork.c (_initialize_linux_fork): Likewise.
5570 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5571 * maint.c (_initialize_maint_cmds): Likewise.
5572 * memattr.c (_initialize_mem): Likewise.
5573 * printcmd.c (_initialize_printcmd): Likewise.
5574 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5575 _RegEx): Likewise.
5576 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5577 * record-btrace.c (_initialize_record_btrace): Likewise.
5578 * record-full.c (_initialize_record_full): Likewise.
5579 * record.c (_initialize_record): Likewise.
5580 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5581 * regcache.c (_initialize_regcache): Likewise.
5582 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5583 _initialize_remote): Likewise.
5584 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5585 * serial.c (_initialize_serial): Likewise.
5586 * skip.c (_initialize_step_skip): Likewise.
5587 * source.c (_initialize_source): Likewise.
5588 * stack.c (_initialize_stack): Likewise.
5589 * symfile.c (_initialize_symfile): Likewise.
5590 * symtab.c (_initialize_symtab): Likewise.
5591 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5592 * top.c (init_main): Likewise.
5593 * tracefile-tfile.c (tfile_target_info): Likewise.
5594 * tracepoint.c (_initialize_tracepoint): Likewise.
5595 * tui/tui-win.c (_initialize_tui_win): Likewise.
5596 * utils.c (add_internal_problem_command): Likewise.
5597 * valprint.c (value_print_option_defs): Likewise.
5598
404f2902
FCE
55992019-08-06 Frank Ch. Eigler <fche@redhat.com>
5600
5601 PR build/24886
5602 * configure.ac: Drop enable-libmcheck support.
5603 * configure, config.in: Rebuild.
5604 * libmcheck.m4: Remove.
5605 * acinclude.m4: Don't include it.
5606 * Makefile.in: Don't distribute it.
5607 * top.c (print_gdb_configuration): Don't mention it.
5608
046bebe1
TT
56092019-08-06 Tom Tromey <tom@tromey.com>
5610
5611 * utils.c (set_output_style): Sometimes pass stream to
5612 emit_style_escape.
5613 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5614 * record-btrace.c (btrace_insn_history): Update.
5615 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5616 method.
5617 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5618 Update initializers.
5619 <m_uiout>: New field.
5620 <m_di>: Move lower.
5621 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5622 Remove "uiout" parameter.
5623 (dump_insns): Update.
5624 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5625 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5626
ddbcedf5
CB
56272019-08-06 Christian Biesinger <cbiesinger@google.com>
5628
5629 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5630 (error_in_psymtab_expansion): Likewise.
5631 (lookup_symbol_via_quick_fns): Likewise.
5632 (basic_lookup_transparent_type_quick): Likewise.
5633 (basic_lookup_transparent_type_1): Likewise.
5634
b08b16c8
TT
56352019-08-06 Tom Tromey <tromey@adacore.com>
5636
5637 * source.c (last_source_error): Now bool.
5638 (print_source_lines_base): Make "noprint" bool. Only open
5639 source file when last_source_visited changes.
5640
cb44333d
TT
56412019-08-06 Tom Tromey <tromey@adacore.com>
5642
5643 * annotate.c (annotate_source_line): Use g_source_cache.
5644 * source-cache.c (source_cache::get_plain_source_lines): Change
5645 parameters. Populate m_offset_cache.
5646 (source_cache::ensure): New method.
5647 (source_cache::get_line_charpos): New method.
5648 (extract_lines): Move lower. Change parameters.
5649 (source_cache::get_source_lines): Move lower.
5650 * source-cache.h (class source_cache): Update comment.
5651 <get_line_charpos>: New method.
5652 <get_source_lines>: Update comment.
5653 <clear>: Clear m_offset_cache.
5654 <get_plain_source_lines>: Change parameters.
5655 <ensure>: New method
5656 <m_offset_cache>: New member.
5657 * source.c (forget_cached_source_info_for_objfile): Update.
5658 (info_source_command): Use g_source_cache.
5659 (find_source_lines, open_source_file_with_line_charpos): Remove.
5660 (print_source_lines_base, search_command_helper): Use g_source_cache.
5661 * source.h (open_source_file_with_line_charpos): Don't declare.
5662 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5663 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5664 Use g_source_cache.
5665
872dceaa
TT
56662019-08-06 Tom Tromey <tromey@adacore.com>
5667
5668 * source-cache.c (source_cache::get_plain_source_lines):
5669 Remove "first_line" and "last_line" parameters.
5670 (source_cache::get_source_lines): Cache plain text.
5671 * source-cache.h (class source_cache)
5672 <get_plain_source_lines>: Update.
5673
269249d9
TT
56742019-08-06 Tom Tromey <tromey@adacore.com>
5675
5676 * source-cache.c (extract_lines): No longer a method.
5677 Changed type of parameter. Include final newline.
5678 (selftests::extract_lines_test): New function.
5679 (_initialize_source_cache): Likewise.
5680 * source-cache.h (class source_cache)
5681 <extract_lines>: Don't declare.
5682
c0e8dcd8
TT
56832019-08-06 Tom Tromey <tromey@adacore.com>
5684
5685 * breakpoint.c (init_breakpoint_sal): Update.
5686 (breakpoint): Update.
5687 * breakpoint.h (struct breakpoint) <filter>: Now a
5688 unique_xmalloc_ptr.
5689
0b27c27d
CB
56902019-08-05 Christian Biesinger <cbiesinger@google.com>
5691
5692 * NEWS: Mention dictionary access on blocks.
5693 * python/py-block.c (blpy_getitem): New function.
5694 (block_object_as_mapping): New struct.
5695 (block_object_type): Use new struct for tp_as_mapping field.
5696
4ee94178
CB
56972019-08-05 Christian Biesinger <cbiesinger@google.com>
5698
5699 * objfiles.h (objfile): Add a comment describing partial symbols.
5700
8abfcabc
TT
57012019-08-05 Tom Tromey <tromey@adacore.com>
5702
5703 * compile/compile.c (_initialize_compile): Use _(), not N_().
5704 * thread.c (_initialize_thread): Use _(), not N_().
5705 * stack.c (_initialize_stack): Use _(), not N_().
5706 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5707
2b79f376
SM
57082019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5709
5710 * dwarf2read.c (struct dw2_symtab_iterator):
5711 <want_specific_block>: Remove.
5712 <block_index>: Change type to gdb::optional.
5713 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5714 change type of BLOCK_INDEX parameter to gdb::optional.
5715 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5716 (dw2_lookup_symbol): Don't pass argument for
5717 WANT_SPECIFIC_BLOCK.
5718 (dw2_expand_symtabs_for_function): Don't pass argument for
5719 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5720 (class dw2_debug_names_iterator)
5721 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5722 parameter, change BLOCK_INDEX type to gdb::optional.
5723 <m_want_specific_block>: Remove.
5724 <m_block_index>: Change type to gdb::optional.
5725 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5726 gdb::optional. Re-write in function of gdb::optional.
5727 (dw2_debug_names_lookup_symbol): Don't pass argument for
5728 WANT_SPECIFIC_BLOCK.
5729 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5730 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5731 BLOCK_INDEX.
5732
ae60f04e
PW
57332019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5734
5735 * NEWS: Mention changes to "info sources" command.
5736
28cd9371
PW
57372019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5738
5739 * symtab.c (filename_partial_match_opts): New struct type.
5740 (struct output_source_filename_data): New members
5741 regexp, c_regexp, partial_match.
5742 (output_source_filename): Use new members to decide to print file.
5743 (info_sources_option_defs): New variable.
5744 (make_info_sources_options_def_group, print_info_sources_header,
5745 info_sources_command_completer):
5746 New functions.
5747 (info_sources_command): Read new optional arguments.
5748 (_initialize_symtab): Update info sources help.
5749
ca683e3a
AO
57502019-08-02 Alexandre Oliva <oliva@adacore.com>
5751
5752 * ada-lang.c (exception_support_info_v0): Renamed from...
5753 (default_exception_support_info): ... this. Create new
5754 definition for v1.
5755 (ada_has_this_exception_support): Look up catch_handlers_sym.
5756 (ada_exception_support_info_sniffer): Try v0 after default.
5757
f1264162
TT
57582019-08-01 Tom Tromey <tromey@adacore.com>
5759
5760 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5761 gdbarch.h.
5762
0a7b2485
CB
57632019-08-01 Christian Biesinger <cbiesinger@google.com>
5764
5765 * s12z-tdep.c: Fix include path for s12z-opc.h.
5766
c6bdbeb7
AH
57672019-08-01 Alan Hayward <alan.hayward@arm.com>
5768
5769 * NEWS: Require GNU make 3.82.
5770
a2bd7b82
TT
57712019-07-16 Tom Tromey <tom@tromey.com>
5772
5773 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5774 declare.
5775
aa3b6533
TT
57762019-07-30 Tom Tromey <tromey@adacore.com>
5777
5778 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5779
a1530dc7
KB
57802019-07-30 Kevin Buettner <kevinb@redhat.com>
5781
5782 * printcmd.c (print_address_symbolic): Print negative offsets.
5783 (build_address_symbolic): Force signed arithmetic when computing
5784 offset.
5785
2906593f
CB
57862019-07-30 Christian Biesinger <cbiesinger@google.com>
5787
5788 PR/24474: Add a function to lookup static variables.
5789 * NEWS: Mention this new function.
5790 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5791 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5792 * python/python.c (python_GdbMethods): Add new function.
5793
c620ed88
CB
57942019-07-29 Christian Biesinger <cbiesinger@google.com>
5795
5796 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5797 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5798 (objfpy_lookup_static_symbol): New function.
5799 (objfile_object_methods): Add new functions.
5800
bc4268a5
PW
58012019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5802
5803 * NEWS: Mention 'set|show print frame-info'. Mention new
5804 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5805 backtrace argument. Mention that python frame filtering code
5806 is now consistent with what 'backtrace' command prints.
5807
4b5e8d19
PW
58082019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5809
5810 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5811 comments.
5812 (print_frame_info_auto, print_frame_info_source_line,
5813 print_frame_info_location, print_frame_info_source_and_location,
5814 print_frame_info_location_and_address, print_frame_info_short_location):
5815 New declarations.
5816 (struct frame_print_options): New member print_frame_info.
5817 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5818 * stack.h (get_user_print_what_frame_info): New declaration.
5819 (frame_show_address): New declaration.
5820 * stack.c (print_frame_arguments_choices): New value 'presence'.
5821 (print_frame_info_auto, print_frame_info_source_line,
5822 print_frame_info_location, print_frame_info_source_and_location,
5823 print_frame_info_location_and_address, print_frame_info_short_location,
5824 print_frame_info_choices, print_frame_info_print_what): New definitions.
5825 (print_frame_args): Only print dots for args if print frame-arguments
5826 is 'presence'.
5827 (frame_print_option_defs): New element for "frame-info".
5828 (get_user_print_what_frame_info): New function.
5829 (frame_show_address): Make non static. Move comment to stack.h.
5830 (print_frame_info_to_print_what): New function.
5831 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5832 to decide what to print.
5833 (backtrace_command_1): Handle the new print_frame_arguments_presence
5834 value.
5835 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5836 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5837 (py_print_frame): In non-mi mode, use LOCATION as default for
5838 print_what, similarly to frame information printed directly by
5839 backtrace command. Handle frame-info user option in non MI mode.
5840
6bdfee81
KB
58412019-07-27 Kevin Buettner <kevinb@redhat.com>
5842
5843 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5844 Add case for debugging 32-bit target on 64-bit host. Revise
5845 comment.
5846
98a617f8
KB
58472019-07-27 Kevin Buettner <kevinb@redhat.com>
5848
5849 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5850 instead of find_function_entry_range_from_pc.
5851
567238c9
KB
58522019-07-27 Kevin Buettner <kevinb@redhat.com>
5853
5854 * stack.c (find_frame_funname): Remove code which preferred
5855 minsym over symtab sym in "certain pathological cases".
5856
2dc80cf8
KB
5857 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5858 parameter. Change type of "do_demangle" to bool.
5859 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5860 Pass suitable "prefer_sym_over_minsym" flag to
5861 build_address_symbolic(). Don't output "+" for negative offsets.
5862 * printcmd.c (print_address_symbolic): Update invocation of
5863 build_address_symbolic to include a "prefer_sym_over_minsym"
5864 flag.
5865 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5866 Restrict cases in which use of minimal symbol is preferred to that
5867 of a found symbol. Update comments.
5868
1aff7173
KB
5869 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5870 for entry pc when entry pc is out of range for that FDE.
5871
89b085ac
BC
58722019-07-26 Brian Callahan <bcallah@openbsd.org>
5873
5874 PR gdb/24839:
5875 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5876 type.
5877
f32feb4a
CB
58782019-07-25 Christian Biesinger <cbiesinger@google.com>
5879
5880 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5881 this function's Python signature.
5882
5883
58842019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5885
5886 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5887 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5888 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5889 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5890 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5891
5892
c54e4253
YS
58932019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5894
5895 * h8300-tdep.c (h8300_register_name_common): New.
5896 h8300_register_name): Use h8300_register_name_common.
5897 (h8300s_register_name): Likewise.
5898 (h8300sx_register_name): Likewise.
5899 (h8300h_register_nam): New.
5900 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5901
5902
40eadf04
SP
59032019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5904
5905 * arm-tdep.c (arm_skip_cmse_entry): New function.
5906 (arm_is_sgstubs_section): New function.
5907 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5908
bfa2a36d
TT
59092019-07-22 Tom Tromey <tom@tromey.com>
5910
5911 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5912 Don't self-assign.
5913
a8e9d247
AB
59142019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5915
5916 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5917 type_print.
5918
eb86c5e2
AB
59192019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5920
5921 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5922 so that GDB doesn't match any msymbols when searching in the
5923 TYPES_DOMAIN.
5924 (print_symbol_info): Print using typedef_print or type_print based
5925 on the type of the symbol. Add updated FIXME comment moved from...
5926 (_initialize_symtab): ... move and update FIXME comment to above.
5927
a8eab7c6
AB
59282019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5929
5930 * NEWS: Mention adding -q option to "info types".
5931 * symtab.c (struct info_types_options): New struct.
5932 (info_types_options_defs): New variable.
5933 (make_info_types_options_def_group): New function.
5934 (info_types_command): Use gdb::option framework to parse options.
5935 (info_types_command_completer): New function.
5936 (_initialize_symtab): Extend the help text on "info types" and
5937 register command completer.
5938
b4603c34
CB
59392019-07-21 Christian Biesinger <cbiesinger@google.com>
5940
5941 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5942 (lookup_symbol_in_objfile): Change int to block_enum and add a
5943 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5944
c8cdc1e0
CB
59452019-07-20 Christian Biesinger <cbiesinger@google.com>
5946
5947 * MAINTAINERS (Write After Approval): Add self.
5948
01e175fe
AB
59492019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5950
5951 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5952 instruction to the dummy code region.
5953
56f79b63
TT
59542019-07-19 Tom Tromey <tromey@adacore.com>
5955
5956 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5957 (ARGSUSED, PARAMS, __func__): Remove rules.
5958
4c5aa8e0
AH
59592019-07-19 Alan Hayward <alan.hayward@arm.com>
5960
5961 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5962 * features/arm/arm-with-iwmmxt.c: Remove.
5963 * features/arm/arm-with-iwmmxt.xml: Remove.
5964 * features/arm/arm-with-m-fpa-layout.c: Remove.
5965 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5966 * features/arm/arm-with-m-vfp-d16.c: Remove.
5967 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5968 * features/arm/arm-with-m.c: Remove.
5969 * features/arm/arm-with-m.xml: Remove.
5970 * features/arm/arm-with-neon.c: Remove.
5971 * features/arm/arm-with-neon.xml: Remove.
5972 * features/arm/arm-with-vfpv2.c: Remove.
5973 * features/arm/arm-with-vfpv2.xml: Remove.
5974 * features/arm/arm-with-vfpv3.c: Remove.
5975 * features/arm/arm-with-vfpv3.xml: Remove.
5976
f42b2617
AH
59772019-07-19 Alan Hayward <alan.hayward@arm.com>
5978
5979 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5980
f29ec966
AH
59812019-07-19 Alan Hayward <alan.hayward@arm.com>
5982
5983 * arch/aarch32.c (aarch32_create_target_description): Create
5984 target descriptions using features.
5985 * arch/arm.c (arm_create_target_description)
5986 (arm_create_mprofile_target_description): Likewise.
5987 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5988
d105cce5
AH
59892019-07-19 Alan Hayward <alan.hayward@arm.com>
5990
5991 * Makefile.in: Add new files.
5992 * aarch32-tdep.c: New file.
5993 * aarch32-tdep.h: New file.
5994 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5995 Call aarch32_read_description.
5996 * arch/aarch32.c: New file.
5997 * arch/aarch32.h: New file.
5998 * arch/arm.c (arm_create_target_description)
5999 (arm_create_mprofile_target_description): New function.
6000 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6001 (arm_create_target_description)
6002 (arm_create_mprofile_target_description): New declaration.
6003 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6004 read_description functions.
6005 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6006 Likewise.
6007 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6008 * arm-tdep.c (tdesc_arm_list): New variable.
6009 (arm_register_g_packet_guesses): Call create description functions.
6010 (arm_read_description) (arm_read_mprofile_description): New
6011 function.
6012 * arm-tdep.h (arm_read_description)
6013 (arm_read_mprofile_description): Add declaration.
6014 * configure.tgt: Add new files.
6015
afe09f0b
GL
60162019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6017
6018 * top.c (new_ui_command): Open specified terminal just once.
6019
cd215b2e
TT
60202019-07-18 Tom Tromey <tromey@adacore.com>
6021
6022 * symtab.c (main_name): Constify return type.
6023 * symfile.c (set_initial_language): Update.
6024 * symtab.h (main_name): Constify return type.
6025
d8f68fcb
TT
60262019-07-17 Tom Tromey <tom@tromey.com>
6027
6028 * tui/tui-winsource.c (tui_update_source_window)
6029 (tui_update_source_window_as_is)
6030 (tui_update_source_windows_with_line): Remove return.
6031 * tui/tui-disasm.c (tui_show_disassem)
6032 (tui_show_disassem_and_update_source): Remove return.
6033 * tui/tui.c (tui_reset): Remove return.
6034 * tui/tui-wingeneral.c
6035 (tui_check_and_display_highlight_if_needed): Remove return.
6036
ca5af91e
TT
60372019-07-17 Tom Tromey <tom@tromey.com>
6038
6039 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6040
5104fe36
TT
60412019-07-17 Tom Tromey <tom@tromey.com>
6042
6043 * tui/tui-winsource.h (struct tui_exec_info_window)
6044 (struct tui_source_window_base): Move from tui-data.h.
6045 * tui/tui-winsource.c: Move many method definitions from
6046 elsewhere. Remove "structuring" comments.
6047 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6048 (tui_source_window_base::refresh_window): Move to
6049 tui-winsource.c.
6050 * tui/tui-win.c (tui_source_window_base::refresh_all)
6051 (tui_source_window_base::update_tab_width)
6052 (tui_source_window_base::set_new_height)
6053 (tui_source_window_base::do_make_visible_with_new_height): Move to
6054 tui-winsource.c.
6055 * tui/tui-source.h: Update.
6056 * tui/tui-source.c (tui_source_window_base::reset): Move to
6057 tui-winsource.c.
6058 * tui/tui-disasm.h: Update.
6059 * tui/tui-data.h (struct tui_exec_info_window): Move to
6060 tui-winsource.h.
6061 (struct tui_source_window_base): Likewise.
6062 * tui/tui-data.c (tui_source_window_base::clear_detail)
6063 (tui_source_window_base, ~tui_source_window_base): Move to
6064 tui-winsource.c.
6065
daa15dde
TT
60662019-07-17 Tom Tromey <tom@tromey.com>
6067
6068 * tui/tui-win.c (tui_resize_all)
6069 (tui_source_window_base::update_tab_width)
6070 (tui_adjust_win_heights): Update.
6071 (tui_win_info::make_invisible_and_set_new_height): Rename from
6072 make_invisible_and_set_new_height.
6073 * tui/tui-data.h (struct tui_win_info)
6074 <make_invisible_and_set_new_height>: New method.
6075
bfad4537
TT
60762019-07-17 Tom Tromey <tom@tromey.com>
6077
6078 * tui/tui.c: Update.
6079 * tui/tui-source.h (struct tui_source_window): Move from
6080 tui-data.h.
6081 * tui/tui-layout.c: Update.
6082 * tui/tui-disasm.c: Update.
6083 * tui/tui-data.h (struct tui_source_window): Move to
6084 tui-source.h.
6085
88f7e873
TT
60862019-07-17 Tom Tromey <tom@tromey.com>
6087
6088 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6089 tui-data.h.
6090 * tui/tui-data.h (struct tui_disasm_window): Move to
6091 tui-disasm.h.
6092
96bd6233
TT
60932019-07-17 Tom Tromey <tom@tromey.com>
6094
6095 * tui/tui-regs.h (struct tui_data_item_window): Move from
6096 tui-data.h.
6097 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6098 * tui/tui-data.h (struct tui_data_item_window): Move to
6099 tui-regs.h.
6100 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6101
ce38393b
TT
61022019-07-17 Tom Tromey <tom@tromey.com>
6103
6104 * tui/tui.c: Update.
6105 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6106 (tui_cmd_window::max_height): Move to tui-command.c.
6107 * tui/tui-layout.c: Update.
6108 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6109 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6110 tui-command.c.
6111 * tui/tui-command.h (struct tui_cmd_window): Move from
6112 tui-data.h.
6113 * tui/tui-command.c: Remove "structuring" comments.
6114 (tui_cmd_window::clear_detail)
6115 (tui_cmd_window::do_make_visible_with_new_height)
6116 (tui_cmd_window::max_height): Move from elsewhere.
6117
2d8b51cb
TT
61182019-07-17 Tom Tromey <tom@tromey.com>
6119
6120 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6121 Now static.
6122 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6123 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6124
18ab23af
TT
61252019-07-17 Tom Tromey <tom@tromey.com>
6126
6127 * tui/tui.c: Update.
6128 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6129 tui-regs.c.
6130 * tui/tui-windata.h: Remove file.
6131 * tui/tui-windata.c: Remove file.
6132 * tui/tui-win.c (tui_data_window::set_new_height)
6133 (tui_data_window::do_make_visible_with_new_height): Move to
6134 tui-regs.c.
6135 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6136 * tui/tui-regs.c: Remove "structuring" comments.
6137 (tui_data_window::first_data_item_displayed)
6138 (tui_data_window::delete_data_content_windows)
6139 (tui_data_window::erase_data_content)
6140 (tui_data_window::display_all_data)
6141 (tui_data_window::refresh_all)
6142 (tui_data_window::do_scroll_vertical)
6143 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6144 (tui_data_window::do_make_visible_with_new_height)
6145 (tui_data_window::refresh_window): Move from elsewhere.
6146 (_initialize_tui_regs): Move to end of file.
6147 * tui/tui-layout.c: Update.
6148 * tui/tui-hooks.c: Update.
6149 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6150 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6151 tui-regs.c.
6152 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6153
88b7e7cc
TT
61542019-07-17 Tom Tromey <tom@tromey.com>
6155
6156 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6157 seen.
6158
0fcd3711
TT
61592019-07-17 Tom Tromey <tom@tromey.com>
6160
6161 * tui/tui-win.c (tui_source_window_base::set_new_height)
6162 (tui_source_window_base::do_make_visible_with_new_height): Use
6163 m_has_locator field directly.
6164 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6165 method.
6166 (struct tui_source_window_base) <has_locator>: Likewise.
6167
4a38112d
TT
61682019-07-17 Tom Tromey <tom@tromey.com>
6169
6170 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6171 Don't declare.
6172 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6173 Remove.
6174 * tui/tui-win.c (tui_source_window_base::set_new_height)
6175 (tui_source_window_base::set_new_height)
6176 (make_invisible_and_set_new_height)
6177 (tui_source_window_base::do_make_visible_with_new_height)
6178 (tui_source_window_base::do_make_visible_with_new_height):
6179 Update.
6180 * tui/tui-layout.c (show_source_disasm_command, show_data)
6181 (show_source_or_disasm_and_command): Update.
6182 * tui/tui-layout.c (show_layout): Update.
6183
09129226
TT
61842019-07-17 Tom Tromey <tom@tromey.com>
6185
6186 * tui/tui-layout.c (make_data_window): Remove.
6187 (show_data): Unify creation and re-initialization cases.
6188
4a8a5e84
TT
61892019-07-17 Tom Tromey <tom@tromey.com>
6190
6191 * tui/tui-layout.c (make_source_window, make_disasm_window):
6192 Remove.
6193 (show_data): Unify creation and re-initialization cases.
6194
76d2be8e
TT
61952019-07-17 Tom Tromey <tom@tromey.com>
6196
6197 * tui/tui-layout.c (make_command_window): Remove.
6198 (show_source_disasm_command, show_source_or_disasm_and_command):
6199 Unify creation and re-initialization cases.
6200
890b8bde
TT
62012019-07-17 Tom Tromey <tom@tromey.com>
6202
6203 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6204 creation and re-initialization cases.
6205
2cdfa113
TT
62062019-07-17 Tom Tromey <tom@tromey.com>
6207
6208 * tui/tui-regs.c (tui_get_register): Return void.
6209
8e3cfd09
TT
62102019-07-17 Tom Tromey <tom@tromey.com>
6211
6212 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6213 Simplify.
6214
f4e04977
TT
62152019-07-17 Tom Tromey <tom@tromey.com>
6216
6217 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6218 resetting.
6219
0379b883
TT
62202019-07-17 Tom Tromey <tom@tromey.com>
6221
6222 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6223 * tui/tui-regs.c (tui_reg_layout): New function.
6224 (tui_show_registers, tui_reg_command): Use it.
6225 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6226 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6227 parameters.
6228 (tui_layout_command): Remove.
6229
b7fbad91
TT
62302019-07-17 Tom Tromey <tom@tromey.com>
6231
6232 * tui/tui-layout.h (tui/tui-layout): Return void.
6233 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6234
4e1e56b9
TT
62352019-07-17 Tom Tromey <tom@tromey.com>
6236
6237 * tui/tui-layout.c (show_source_disasm_command, show_data):
6238 Update.
6239 (reset_locator): Remove.
6240 (show_source_or_disasm_and_command): Update.
6241
1e0c09ba
TT
62422019-07-17 Tom Tromey <tom@tromey.com>
6243
6244 * tui/tui-source.c (tui_source_window_base::reset): Remove
6245 win_type parameter.
6246 * tui/tui-layout.c (make_command_window, make_source_window)
6247 (make_disasm_window, make_data_window)
6248 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6249 (reset_locator, show_source_or_disasm_and_command): Update.
6250 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6251 win_type parameter.
6252 (struct tui_source_window_base) <reset>: Likewise.
6253
1bf605de
TT
62542019-07-17 Tom Tromey <tom@tromey.com>
6255
6256 * tui/tui-layout.c (show_source_disasm_command): Use
6257 reset_locator.
6258 (reset_locator): New function.
6259 (init_and_make_win): Remove.
6260 (show_source_or_disasm_and_command): Use reset_locator.
6261
098f9ed4
TT
62622019-07-17 Tom Tromey <tom@tromey.com>
6263
6264 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6265 condition.
6266 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6267 Remove condition.
6268 * tui/tui-source.c (tui_source_window_base::reset): New method.
6269 * tui/tui-layout.c (make_command_window): Don't call
6270 init_and_make_win.
6271 (make_source_window, make_disasm_window): Don't call
6272 make_source_or_disasm_window.
6273 (make_data_window): Don't call init_and_make_win. Change calling
6274 convention.
6275 (show_source_disasm_command, show_data): Simplify.
6276 (make_source_or_disasm_window): Remove.
6277 (show_source_or_disasm_and_command): Simplify.
6278 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6279 (struct tui_source_window_base) <reset>: Likewise.
6280 <execution_info>: Remove initializer.
6281 * tui/tui-data.c (tui_source_window_base): Initialize
6282 execution_info.
6283
80110957
TT
62842019-07-17 Tom Tromey <tom@tromey.com>
6285
6286 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6287 variable.
6288
cf82af05
TT
62892019-07-17 Tom Tromey <tom@tromey.com>
6290
6291 * tui/tui.c (tui_rl_other_window): Update.
6292 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6293 superclass method first. Always iterate over regs_content.
6294 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6295 method.
6296 * tui/tui-win.c (tui_set_focus_command): Update.
6297
01aeb396
TT
62982019-07-17 Tom Tromey <tom@tromey.com>
6299
6300 * tui/tui-win.c (tui_set_focus_command): Rename from
6301 tui_set_focus. Call tui_enable.
6302 (tui_set_focus_command): Remove.
6303
fd6c75ee
TT
63042019-07-17 Tom Tromey <tom@tromey.com>
6305
6306 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6307 refresh_window.
6308 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6309 touchwin.
6310 (tui_data_window::refresh_window): Call refresh_window on data
6311 items. Always call superclass refresh_window.
6312 (tui_win_info::refresh): Remove.
6313 (tui_source_window_base::refresh_window): Update.
6314 (tui_refresh_all): Update.
6315 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6316 refresh_window.
6317 (show_source_or_disasm_and_command): Likewise.
6318 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6319 (struct tui_source_window_base) <refresh>: Likewise.
6320
f6cc34a9
TT
63212019-07-17 Tom Tromey <tom@tromey.com>
6322
6323 * tui/tui-winsource.c (tui_clear_source_content)
6324 (tui_show_source_content): Update.
6325 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6326 whether content is empty.
6327 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6328 Remove.
6329
f31ec9af
TT
63302019-07-17 Tom Tromey <tom@tromey.com>
6331
6332 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6333 window's contents.
6334 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6335 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6336
d1b6f1e5
TT
63372019-07-17 Tom Tromey <tom@tromey.com>
6338
6339 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6340 (struct tui_data_item_window): Update.
6341
d9743a13
TT
63422019-07-17 Tom Tromey <tom@tromey.com>
6343
6344 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6345 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6346 defines.
6347
caf0bc4e
TT
63482019-07-17 Tom Tromey <tom@tromey.com>
6349
6350 * tui/tui-winsource.h (tui_erase_source_content)
6351 (tui_clear_source_content): Remove "display_prompt" parameter.
6352 * tui/tui-winsource.c (tui_update_source_window_as_is)
6353 (tui_update_source_windows_with_addr): Update.
6354 (tui_clear_source_content): Remove "display_prompt" parameter.
6355 (tui_erase_source_content): Likewise. Simplify.
6356 (tui_show_source_content): Update.
6357 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6358 * tui/tui-stack.c (tui_show_frame_info): Update.
6359 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6360 Remove defines.
6361
9d391078
TT
63622019-07-17 Tom Tromey <tom@tromey.com>
6363
6364 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6365 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6366 parameter.
6367 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6368 parameter.
6369
a38da35d
TT
63702019-07-17 Tom Tromey <tom@tromey.com>
6371
6372 * tui/tui-winsource.c (tui_clear_source_content)
6373 (tui_show_source_content, tui_show_exec_info_content)
6374 (tui_clear_exec_info_content): Update.
6375 * tui/tui-stack.c (tui_show_locator_content): Update.
6376 (tui_show_frame_info): Update.
6377 * tui/tui-source.h (tui_source_window): Don't declare.
6378 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6379 from tui_source_is_displayed.
6380 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6381 Remove field.
6382 (struct tui_source_window_base) <content_in_use>: New field. Now
6383 bool.
6384 (struct tui_source_window) <showing_source_p>: New method.
6385 (TUI_SRC_WIN): Change cast.
6386 * tui/tui-data.c (tui_initialize_static_data): Update.
6387
c2cd8994
TT
63882019-07-17 Tom Tromey <tom@tromey.com>
6389
6390 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6391 location_matches_p.
6392 * tui/tui-source.c (tui_source_window::location_matches_p): New
6393 method.
6394 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6395 method.
6396 * tui/tui-data.h (struct tui_source_window_base)
6397 <location_matches_p>: New method.
6398 (struct tui_source_window, struct tui_disasm_window)
6399 <location_matches_p>: Likewise.
6400
4dde7b34
TT
64012019-07-17 Tom Tromey <tom@tromey.com>
6402
6403 * tui/tui-win.c (tui_set_win_height_command): Rename from
6404 tui_set_win_height.
6405 (tui_set_win_height_command): Remove.
6406
b73dd877
TT
64072019-07-17 Tom Tromey <tom@tromey.com>
6408
6409 * tui/tui-source.c (tui_source_window): New constructor. Add
6410 observer.
6411 (~tui_source_window): New destructor.
6412 (tui_source_window::style_changed): New method.
6413 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6414 (tui_attach_detach_observers): Update.
6415 * tui/tui-data.h (struct tui_source_window): Make constructor not
6416 inline. Add destructor.
6417 (struct tui_source_window) <style_changed>: New method.
6418 <m_observable>: New member.
6419
ae2b5380
TT
64202019-07-17 Tom Tromey <tom@tromey.com>
6421
6422 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6423 * tui/tui-win.c (tui_resize_all): Fix typo.
6424
1ce3e844
TT
64252019-07-17 Tom Tromey <tom@tromey.com>
6426
6427 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6428 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6429 (tui_refresh_all): Remove "list" parameter. Use foreach.
6430 * tui/tui-win.c (window_name_completer): Use foreach.
6431 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6432 (update_tab_width): Likewise.
6433 * tui/tui-layout.c (show_layout): Update.
6434 * tui/tui-data.h (class tui_window_iterator): New.
6435 (struct all_tui_windows): New.
6436 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6437
fe3eaf1c
TT
64382019-07-17 Tom Tromey <tom@tromey.com>
6439
6440 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6441 parameter. Don't reference globals.
6442 (tui_reg_command): Update.
6443
368c1354
TT
64442019-07-17 Tom Tromey <tom@tromey.com>
6445
6446 * tui/tui-regs.c (tui_show_registers): Simplify.
6447
e80cd204
TT
64482019-07-17 Tom Tromey <tom@tromey.com>
6449
6450 * tui/tui-regs.c (tui_show_registers): Update.
6451 (tui_show_register_group): Add win_info parameter.
6452
aca2dd16
TT
64532019-07-17 Tom Tromey <tom@tromey.com>
6454
6455 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6456 Rename from tui_display_reg_element_at_line.
6457 (tui_data_window::display_registers_from_line): Update.
6458 * tui/tui-data.h (struct tui_data_window)
6459 <display_reg_element_at_line>: New method.
6460
517e9505
TT
64612019-07-17 Tom Tromey <tom@tromey.com>
6462
6463 * tui/tui-regs.h (tui_display_registers_from)
6464 (tui_display_registers_from_line): Don't declare.
6465 * tui/tui-windata.c (tui_data_window::display_all_data)
6466 (tui_data_window::refresh_all)
6467 (tui_data_window::do_scroll_vertical): Update.
6468 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6469 from tui_display_registers_from.
6470 (tui_display_reg_element_at_line): Update.
6471 (tui_data_window::display_registers_from_line): Rename from
6472 tui_display_registers_from_line.
6473 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6474 display_registers_from_line>: New methods.
6475
f76d8b19
TT
64762019-07-17 Tom Tromey <tom@tromey.com>
6477
6478 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6479 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6480 from tui_erase_data_content.
6481 (tui_data_window::display_all_data)
6482 (tui_data_window::refresh_all)
6483 (tui_data_window::do_scroll_vertical): Update.
6484 * tui/tui-regs.c (tui_show_registers): Update.
6485 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6486 New method.
6487
b4094625
TT
64882019-07-17 Tom Tromey <tom@tromey.com>
6489
6490 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6491 declare.
6492 * tui/tui-windata.c
6493 (tui_data_window::delete_data_content_windows): Rename from
6494 tui_delete_data_content_windows.
6495 (tui_data_window::display_all_data)
6496 (tui_data_window::do_scroll_vertical): Update.
6497 * tui/tui-data.h (struct tui_data_window)
6498 <delete_data_content_windows>: New method.
6499
c223a729
TT
65002019-07-17 Tom Tromey <tom@tromey.com>
6501
6502 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6503 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6504
50daf268
TT
65052019-07-17 Tom Tromey <tom@tromey.com>
6506
6507 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6508 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6509 from tui_display_all_data.
6510 * tui/tui-win.c
6511 (tui_data_window::do_make_visible_with_new_height): Update.
6512 * tui/tui-regs.c (tui_show_registers): Update.
6513 * tui/tui-layout.c (tui_set_layout): Update.
6514 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6515 method.
6516
df5f8cab
TT
65172019-07-17 Tom Tromey <tom@tromey.com>
6518
6519 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6520 * tui/tui-windata.c (tui_display_data_from): Remove.
6521 (tui_data_window::refresh_all): Update.
6522
80cb6c27
TT
65232019-07-17 Tom Tromey <tom@tromey.com>
6524
6525 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6526 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6527 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6528 tui_display_registers_from_line.
6529 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6530 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6531 "force_display" parameter.
6532
baff0c28
TT
65332019-07-17 Tom Tromey <tom@tromey.com>
6534
6535 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6536 declare.
6537 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6538 Rename from tui_first_reg_element_no_inline.
6539 (tui_display_reg_element_at_line)
6540 (tui_display_registers_from_line): Update.
6541 * tui/tui-data.h (struct tui_data_window)
6542 <first_reg_element_no_inline>: New method.
6543
3b23c5f2
TT
65442019-07-17 Tom Tromey <tom@tromey.com>
6545
6546 * tui/tui-windata.c (tui_display_data_from)
6547 (tui_data_window::do_scroll_vertical): Update.
6548 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6549 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6550 Rename from tui_line_from_reg_element_no.
6551 (tui_display_registers_from_line): Update.
6552 * tui/tui-data.h (struct tui_data_window)
6553 <line_from_reg_element_no>: New method.
6554
0b5ec218
TT
65552019-07-17 Tom Tromey <tom@tromey.com>
6556
6557 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6558 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6559 tui_last_regs_line_no.
6560 (tui_display_reg_element_at_line)
6561 (tui_display_registers_from_line): Update.
6562 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6563 method.
6564
0807ab7b
TT
65652019-07-17 Tom Tromey <tom@tromey.com>
6566
6567 PR tui/24722:
6568 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6569 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6570 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6571 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6572 (tui_update_breakpoint_info): Likewise.
6573 * tui/tui-hooks.c (tui_event_create_breakpoint)
6574 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6575 Update.
6576
9ad7fdef
TT
65772019-07-17 Tom Tromey <tom@tromey.com>
6578
6579 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6580
5813316f
TT
65812019-07-17 Tom Tromey <tom@tromey.com>
6582
6583 * tui/tui-winsource.c (tui_update_source_window_as_is)
6584 (tui_update_source_windows_with_addr): Update.
6585 * tui/tui-source.h (tui_set_source_content)
6586 (tui_show_symtab_source): Add "win_info" parameter.
6587 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6588 parameter.
6589 (tui_show_symtab_source): Likewise.
6590
00e264e7
TT
65912019-07-17 Tom Tromey <tom@tromey.com>
6592
6593 * tui/tui-wingeneral.c
6594 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6595
06210ce4
TT
65962019-07-17 Tom Tromey <tom@tromey.com>
6597
6598 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6599 (struct tui_cmd_window) <can_scroll>: New method.
6600 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6601 method.
6602
381befee
TT
66032019-07-17 Tom Tromey <tromey@adacore.com>
6604
6605 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6606 do_field_signed>: Rename. Change type of "value".
6607 * ui-out.c (ui_out::field_signed): Rename from field_int.
6608 Change type of "value".
6609 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6610 type of "value".
6611 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6612 do_field_int. Change type of "value".
6613 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6614 do_field_int. Change type of "value".
6615 * tracepoint.c (trace_status_mi, tfind_1)
6616 (print_one_static_tracepoint_marker): Update.
6617 * thread.c (print_thread_info_1, print_selected_thread_frame):
6618 Update.
6619 * stack.c (print_frame, print_frame_info): Update.
6620 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6621 Update.
6622 * source.c (print_source_lines_base): Update.
6623 * skip.c (info_skip_command): Update.
6624 * record-btrace.c (btrace_ui_out_decode_error)
6625 (btrace_call_history_src_line): Update.
6626 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6627 Update.
6628 * progspace.c (print_program_space): Update.
6629 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6630 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6631 do_field_int. Change type of "value".
6632 * mi/mi-out.c (mi_ui_out::do_table_begin)
6633 (mi_ui_out::do_table_header): Update.
6634 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6635 type of "value".
6636 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6637 (mi_cmd_data_list_changed_registers, output_register)
6638 (mi_cmd_data_read_memory, mi_load_progress)
6639 (mi_cmd_trace_frame_collected): Update.
6640 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6641 Update.
6642 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6643 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6644 (mi_cmd_var_list_children, varobj_update_one): Update.
6645 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6646 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6647 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6648 * inferior.c (print_inferior): Update.
6649 * gdb_bfd.c (print_one_bfd): Update.
6650 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6651 Update.
6652 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6653 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6654 do_field_int. Change type of "value".
6655 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6656 do_field_int. Change type of "value".
6657 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6658 (print_one_breakpoint_location, print_it_catch_fork)
6659 (print_one_catch_fork, print_it_catch_vfork)
6660 (print_one_catch_vfork, print_it_catch_solib)
6661 (print_it_catch_exec, print_it_ranged_breakpoint)
6662 (print_mention_watchpoint, print_mention_masked_watchpoint)
6663 (bkpt_print_it, update_static_tracepoint): Update.
6664 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6665 * break-catch-syscall.c (print_it_catch_syscall): Update.
6666 * ada-tasks.c (print_ada_task_info): Update.
6667 * ada-lang.c (print_it_exception, print_mention_exception):
6668 Update.
6669
6b78c3f8
AB
66702019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6671
6672 PR breakpoints/24541
6673 * gdbarch.c: Regenerate.
6674 * gdbarch.h: Regenerate.
6675 * gdbarch.sh: Adjust return type and parameter types for
6676 'stap_adjust_register'.
6677 (i386_stap_adjust_register): Adjust signature and return new
6678 register name.
6679 * stap-probe.c (stap_parse_register_operand): Adjust use of
6680 'gdbarch_stap_adjust_register'.
6681
d72a9b85
TT
66822019-07-17 Tom Tromey <tromey@adacore.com>
6683
6684 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6685 declare VEC.
6686 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6687 std::vector.
6688 (struct s390_process_info): Add initializers.
6689 (s390_add_process): Use new.
6690 (s390_linux_nat_target::low_forget_process): Use delete.
6691 (s390_linux_nat_target::low_new_fork)
6692 (s390_linux_nat_target::stopped_by_watchpoint)
6693 (s390_linux_nat_target::low_prepare_to_resume)
6694 (s390_linux_nat_target::insert_watchpoint)
6695 (s390_linux_nat_target::insert_hw_breakpoint)
6696 (s390_linux_nat_target::remove_watchpoint)
6697 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6698
206e6c58
JB
66992019-07-16 John Baldwin <jhb@FreeBSD.org>
6700
6701 * aarch64-fbsd-nat.c: Include regcache.h.
6702 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6703 argument.
6704 (aarch64_fbsd_nat_target::fetch_registers)
6705 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6706 variable.
6707 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6708
cbde90f2
JB
67092019-07-16 John Baldwin <jhb@FreeBSD.org>
6710
6711 * fbsd-nat.c: Include gdbarch.h.
6712
07128006
TT
67132019-07-15 Tom Tromey <tromey@adacore.com>
6714
6715 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6716
1f77b012
TT
67172019-07-15 Tom Tromey <tromey@adacore.com>
6718
6719 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6720 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6721 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6722 * cli-out.c (cli_ui_out::do_field_int): New method.
6723 * ui-out.c (ui_out::field_unsigned): New method.
6724 * symfile.c (generic_load): Use field_unsigned.
6725 (print_transfer_performance): Likewise.
6726 * record-btrace.c (ui_out_field_uint): Remove.
6727 (btrace_call_history_insn_range, btrace_call_history): Use
6728 field_unsigned.
6729 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6730 field_unsigned.
6731 * ui-out.h (class ui_out) <field_unsigned>: New method.
6732 <do_field_unsigned>: Likewise.
6733
33eca680
TT
67342019-07-15 Tom Tromey <tromey@adacore.com>
6735
6736 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6737 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6738 * target.c (flash_erase_command): Use field_string.
6739 * infrun.c (print_signal_received_reason): Use field_string.
6740 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6741 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6742 field_string.
6743 * ada-tasks.c (print_ada_task_info): Use field_string.
6744
ca8d69be
TT
67452019-07-15 Tom Tromey <tromey@adacore.com>
6746
6747 * target.c (flash_erase_command): Use field_core_addr.
6748 * symfile.c (generic_load): Use field_core_addr.
6749 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6750 Use field_core_addr.
6751 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6752 field_core_addr.
6753
0d4e84ed
AB
67542019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6755
6756 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6757 value if its desired type is smaller than a CORE_ADDR and signed.
6758
9a49df9d
AB
67592019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6760
6761 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6762 of changes to field names, and use new is_reference field to
6763 decide if a property is a reference or not.
6764 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6765 field.
6766 (struct dwarf2_property_baton): Update header comment, rename
6767 'referenced_type' to 'property_type' and update comments.
6768 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6769 default property type, store in property baton, update to take
6770 accound of renamed field.
6771 (read_func_scope): Update call to attr_to_dynamic_prop.
6772 (read_array_type): Likewise.
6773 (dwarf2_per_cu_addr_sized_int_type): New function.
6774 (read_subrange_index_type): Move type finding code to
6775 dwarf2_per_cu_addr_sized_int_type.
6776 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6777 (dwarf2_per_cu_addr_type): New function.
6778 (set_die_type): Update calls to attr_to_dynamic_prop.
6779
b86352cf
AB
67802019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6781
6782 * dwarf2read.c (read_subrange_index_type): New function.
6783 (read_subrange_type): Move code into new function and call it.
6784 * gdbtypes.c (create_range_type): Add some asserts.
6785
603490bf
AB
67862019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6787
6788 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6789 update return statements.
6790 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6791 declaration, and update comment to match.
6792 * gdbtypes.c (resolve_dynamic_array): Update call to
6793 dwarf2_evaluate_property to match new return type.
6794
592f9d27
AB
67952019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6796
6797 * valarith.c (value_subscripted_rvalue): Change lowerbound
6798 parameter type from int to LONGEST.
6799 * value.h (value_subscripted_rvalue): Likewise in declaration.
6800
60cfcb20
AB
68012019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6802
6803 * cli/cli-utils.c (info_print_command_completer): New function.
6804 * cli/cli-utils.h: Add 'completer.h' include, and forward
6805 declaration for 'struct cmd_list_element'.
6806 (info_print_command_completer): Declare.
6807 * stack.c (_initialize_stack): Add completer for 'info locals' and
6808 'info args'.
6809 * symtab.c (_initialize_symtab): Add completer for 'info
6810 variables' and 'info functions'.
6811 * NEWS: Mention completion for additional info commands.
6812
b16507e0
AB
68132019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6814
6815 * cli/cli-utils.c (extract_info_print_args): Delete.
6816 (extract_arg_maybe_quoted): Delete.
6817 (info_print_options_defs): New variable.
6818 (make_info_print_options_def_group): New function.
6819 (extract_info_print_options): Define new function.
6820 * cli/cli-utils.h (extract_info_print_args): Delete.
6821 (struct info_print_options): New structure.
6822 (extract_info_print_options): Declare new function.
6823 * stack.c (info_locals_command): Update to use new
6824 extract_info_print_options, also add a header comment.
6825 (info_args_command): Likewise.
6826 * symtab.c (info_variables_command): Likewise.
6827 (info_functions_command): Likewise.
6828
021d8588
AB
68292019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6830
6831 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6832 to extract string arguments.
6833 * common/common-utils.c (extract_string_maybe_quoted): New function.
6834 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6835
b777eb6d
TT
68362019-07-11 Tom Tromey <tromey@adacore.com>
6837
6838 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6839 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6840 * top.h (gdbinit): Don't declare.
6841 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6842 into...
6843 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6844 * top.c (gdb_init): Don't call init_cli_cmds.
6845 (gdbinit): Remove.
6846 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6847
72ee03ff
TT
68482019-07-11 Tom Tromey <tromey@adacore.com>
6849
6850 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6851 after it has been moved.
6852
00db9531
SM
68532019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6854
6855 * valops.c (value_must_coerce_to_target): Change return type to
6856 bool.
6857 * value.h (value_must_coerce_to_target): Likewise.
6858
f2478a7e
SM
68592019-07-10 Simon Marchi <simon.marchi@efficios.com>
6860
6861 * breakpoint.c (is_hardware_watchpoint): Remove
6862 forward-declaration.
6863 (is_masked_watchpoint): Change return type to bool.
6864 (is_tracepoint): Likewise.
6865 (is_breakpoint): Likewise.
6866 (is_hardware_watchpoint): Likewise.
6867 (is_watchpoint): Likewise.
6868 (is_no_memory_software_watchpoint): Likewise.
6869 (is_catchpoint): Likewise.
6870 (breakpoint_1): Make FILTER parameter's return type bool.
6871 is_masked_watchpoint): Change return type to bool.
6872 (save_breakpoints): Make FILTER parameter's return type bool.
6873 * breakpoint.h (is_breakpoint): Change return type to bool.
6874 (is_watchpoint): Likewise.
6875 (is_catchpoint): Likewise.
6876 (is_tracepoint): Likewise.
6877
0d12e84c
TT
68782019-07-10 Tom Tromey <tom@tromey.com>
6879
6880 * defs.h: Don't include gdbarch.h.
6881 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6882 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6883 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6884 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6885 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6886 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6887 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6888 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6889 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6890 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6891 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6892 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6893 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6894 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6895 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6896 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6897 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6898 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6899 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6900 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6901 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6902 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6903 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6904 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6905 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6906 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6907 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6908
f06f1252
TT
69092019-07-10 Tom Tromey <tromey@adacore.com>
6910
6911 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6912 * breakpoint.c (init_ada_exception_breakpoint): Register as
6913 bp_catchpoint.
6914 (print_one_breakpoint_location, print_one_breakpoint): Use
6915 is_ada_exception_catchpoint.
6916 * ada-lang.c (class ada_catchpoint_location): Pass
6917 bp_loc_software_breakpoint to bp_location constructor.
6918 (is_ada_exception_catchpoint): New function.
6919
7a5d944b
TT
69202019-07-10 Tom Tromey <tromey@adacore.com>
6921
6922 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6923 VEC.
6924 (struct arm_exidx_entry): New method operator<.
6925 (struct arm_exidx_data) <section_maps>: Change type.
6926 (arm_exidx_data_free): Remove.
6927 (arm_exidx_data_key): Change type. Move lower.
6928 (arm_exidx_new_objfile): Update.
6929 (arm_compare_exidx_entries): Remove.
6930 (arm_find_exidx_entry, _initialize_arm_tdep)
6931
48c66e1d
TT
69322019-07-10 Tom Tromey <tromey@adacore.com>
6933
6934 * solib-spu.c (ocl_program_data_key): Change type.
6935 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6936 Update.
6937
a269fbf1
TT
69382019-07-10 Tom Tromey <tromey@adacore.com>
6939
6940 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6941 (struct solib_aix_inferior_data) <library_list>: Change type.
6942 (solib_aix_inferior_data_handle): Change type.
6943 (get_solib_aix_inferior_data): Update.
6944 (solib_aix_free_library_list): Remove.
6945 (library_list_start_library): Update.
6946 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6947 return type.
6948 (solib_aix_get_library_list)
6949 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6950 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6951
c294730c
TT
69522019-07-10 Tom Tromey <tromey@adacore.com>
6953
6954 * solib-dsbt.c (struct dsbt_info): Add initializers.
6955 (solib_dsbt_pspace_data): Change type.
6956 (dsbt_pspace_data_cleanup): Remove.
6957 (get_dsbt_info, _initialize_dsbt_solib): Update.
6958
9d52077d
TT
69592019-07-10 Tom Tromey <tromey@adacore.com>
6960
6961 * spu-tdep.c (spu_overlay_data): Change type.
6962 (spu_get_overlay_table, spu_overlay_new_objfile)
6963 (_initialize_spu_tdep): Update.
6964
22a20dca
TT
69652019-07-10 Tom Tromey <tromey@adacore.com>
6966
6967 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6968 destructor.
6969 (dbx_objfile_data_key): Change type and declare later.
6970 (DBX_SYMFILE_INFO): Rewrite.
6971 * dbxread.c (dbx_objfile_data_key): Change type.
6972 (dbx_symfile_init): Update.
6973 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6974 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6975 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6976
cb60f420
TT
69772019-07-10 Tom Tromey <tromey@adacore.com>
6978
6979 * jit.c (jit_program_space_key): Change type. Move lower.
6980 (get_jit_program_space_data): Update.
6981 (jit_program_space_data_cleanup): Remove.
6982 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6983 Update.
6984 (struct jit_program_space_data): Add initializers.
6985
51df2ae3
TT
69862019-07-10 Tom Tromey <tromey@adacore.com>
6987
6988 * solib-darwin.c (struct darwin_info): Add initializers.
6989 (solib_darwin_pspace_data): Change type.
6990 (darwin_pspace_data_cleanup): Remove.
6991 (get_darwin_info, _initialize_darwin_solib): Update.
6992
18101a35
TT
69932019-07-10 Tom Tromey <tromey@adacore.com>
6994
6995 * remote-sim.c (struct sim_inferior_data): Add initializers,
6996 constructor, and destructor.
6997 (sim_inferior_data_key): Change type. Move lower.
6998 (check_for_duplicate_sim_descriptor): Update.
6999 (get_sim_inferior_data): Use new. Update.
7000 (~sim_inferior_data_cleanup): Rename from
7001 sim_inferior_data_cleanup. Simplify.
7002 (gdbsim_close_inferior, simulator_command)
7003 (sim_command_completer, _initialize_remote_sim): Update.
7004 (next_pid, INITIAL_PID): Move earlier.
7005
05b08ac1
TT
70062019-07-10 Tom Tromey <tromey@adacore.com>
7007
7008 * python/python-internal.h (create_thread_object): Return
7009 gdbpy_ref.
7010 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7011 * python/py-inferior.c (struct threadlist_entry): Add
7012 constructor.
7013 <thread_obj>: Now a gdbpy_ref.
7014 (thread_to_thread_object): Update.
7015 (add_thread_object): Use new.
7016 (delete_thread_object): Use delete.
7017 (infpy_threads): Update.
7018 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7019 GIL.
7020
32372d80
TT
70212019-07-10 Tom Tromey <tromey@adacore.com>
7022
7023 * valops.c (value_cast): Specialize error message for Ada.
7024
5c458ae8
SM
70252019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7026
7027 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7028
4c462cb0
SM
70292019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7030
7031 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7032 bpstat_should_step): Return bool, adjust comments.
7033 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7034 bpstat_should_step): Likewise.
7035
89abbcc2
AH
70362019-07-10 Alan Hayward <alan.hayward@arm.com>
7037
7038 * features/Makefile: Use feature target descriptions for Arm.
7039 * features/arm/arm-core.c: Generate new file.
7040 * features/arm/arm-fpa.c: Likewise.
7041 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7042 * features/arm/arm-m-profile.c: Likewise.
7043 * features/arm/arm-vfpv2.c: Likewise.
7044 * features/arm/arm-vfpv3.c: Likewise.
7045 * features/arm/xscale-iwmmxt.c: Likewise.
7046 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7047
166a82be
AH
70482019-07-10 Alan Hayward <alan.hayward@arm.com>
7049
7050 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7051 ptrace earlier.
7052
9fb4c7e9
AH
70532019-07-10 Alan Hayward <alan.hayward@arm.com>
7054
7055 * features/aarch64-pauth.c: Regenerate.
7056
e2d0f980
SM
70572019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7058
7059 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7060 bool.
7061 (bpstat_what): Use false instead of 0.
7062
a38118e5
PA
70632019-07-09 Pedro Alves <palves@redhat.com>
7064
7065 * break-catch-throw.c (is_exception_catchpoint): New.
7066 * breakpoint.c (print_one_breakpoint_location): New parameter
7067 'raw_loc'. Handle it. Use
7068 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7069 looking at the breakpoint's type.
7070 (print_one_breakpoint): If handling "maint info breakpoints", also
7071 print locations of exception catchpoints.
7072 * breakpoint.h (is_exception_catchpoint): Declare.
7073
cb1e4e32
PA
70742019-07-09 Pedro Alves <palves@redhat.com>
7075
7076 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7077 "addr" field.
7078 (allocate_location_exception_catchpoint): New.
7079 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7080 (initialize_throw_catchpoint_ops): Install
7081 allocate_location_exception_catchpoint as allocate_location
7082 method.
7083 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7084 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7085 bp_loc_other.
7086 (breakpoint_address_is_meaningful): Delete.
7087 (bl_address_is_meaningful): New.
7088 (breakpoint_locations_match): Adjust comment.
7089 (bp_location_from_bp_type): New, factored out of...
7090 (bp_location::bp_location(breakpoint *)): ... this.
7091 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7092 factored out of...
7093 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7094 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7095 breakpoint_address_is_meaningful.
7096 (bp_locations_compare): Adjust comment.
7097 (update_global_location_list): Use bl_address_is_meaningful
7098 instead of breakpoint_address_is_meaningful.
7099 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7100 explicit.
7101 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7102 * python/py-breakpoint.c (bppy_get_location): No longer check
7103 whether location is null.
7104
b58a68fe
PA
71052019-07-09 Pedro Alves <palves@redhat.com>
7106
7107 PR c++/15468
7108 * breakpoint.c (print_one_breakpoint_location): Remove
7109 single-location assert.
7110
268a13a5
TT
71112019-07-09 Tom Tromey <tom@tromey.com>
7112
7113 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7114 * configure: Rebuild.
7115 * configure.ac: Change common to gdbsupport.
7116 * gdbsupport: Rename from common.
7117 * acinclude.m4: Change common to gdbsupport.
7118 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7119 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7120 gdbsupport.
7121 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7122 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7123 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7124 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7125 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7126 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7127 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7128 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7129 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7130 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7131 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7132 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7133 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7134 coff-pe-read.c, command.h, compile/compile-c-support.c,
7135 compile/compile-c.h, compile/compile-cplus-symbols.c,
7136 compile/compile-cplus-types.c, compile/compile-cplus.h,
7137 compile/compile-loc2c.c, compile/compile.c, completer.c,
7138 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7139 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7140 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7141 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7142 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7143 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7144 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7145 features/aarch64-core.c, features/aarch64-fpu.c,
7146 features/aarch64-pauth.c, features/aarch64-sve.c,
7147 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7148 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7149 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7150 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7151 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7152 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7153 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7154 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7155 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7156 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7157 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7158 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7159 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7160 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7161 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7162 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7163 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7164 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7165 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7166 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7167 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7168 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7169 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7170 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7171 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7172 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7173 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7174 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7175 minsyms.c, mips-linux-tdep.c, namespace.h,
7176 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7177 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7178 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7179 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7180 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7181 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7182 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7183 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7184 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7185 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7186 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7187 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7188 procfs.c, producer.c, progspace.h, psymtab.h,
7189 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7190 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7191 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7192 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7193 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7194 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7195 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7196 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7197 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7198 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7199 target-memory.c, target.c, target.h, target/waitstatus.c,
7200 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7201 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7202 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7203 unittests/array-view-selftests.c,
7204 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7205 unittests/common-utils-selftests.c,
7206 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7207 unittests/format_pieces-selftests.c,
7208 unittests/function-view-selftests.c,
7209 unittests/lookup_name_info-selftests.c,
7210 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7211 unittests/mkdir-recursive-selftests.c,
7212 unittests/observable-selftests.c,
7213 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7214 unittests/parse-connection-spec-selftests.c,
7215 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7216 unittests/scoped_fd-selftests.c,
7217 unittests/scoped_mmap-selftests.c,
7218 unittests/scoped_restore-selftests.c,
7219 unittests/string_view-selftests.c, unittests/style-selftests.c,
7220 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7221 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7222 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7223 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7224 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7225 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7226
5b0e2db4
AB
72272019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7228
7229 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7230 bool value.
7231 (decode_digits_ordinary): Set explicit_line field in sal.
7232 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7233 symtab_and_line that was set on an explicit line number in
7234 assembler code. Do always update the recorded symtab and line if
7235 we do skip the prologue.
7236
0ba852ab
AB
72372019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7238
7239 * breakpoint.c (set_breakpoint_location_function): Remove
7240 explicit_loc parameter.
7241 (momentary_breakpoint_from_master): Update call to
7242 set_breakpoint_location_function.
7243 (add_location_to_breakpoint): Likewise.
7244
b3a7d171
AB
72452019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7246
7247 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7248 required features based on default bfd type when no specific bfd
7249 is present.
7250
1f6f6e21
PW
72512019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7252
7253 * NEWS: Mention that GDB printf and eval commands can now print
7254 C-style and Ada-style convenience var strings without
7255 calling the inferior.
7256 * printcmd.c (printf_c_string): Locally print GDB internal var
7257 instead of transiting via the inferior.
7258 (printf_wide_c_string): Likewise.
7259
72602019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7261
5862c886 7262 PR breakpoints/25011
ea142fbf
AH
7263 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7264
0598af48
TT
72652019-07-04 Tom Tromey <tom@tromey.com>
7266
7267 PR tui/24724:
7268 * tui/tui-winsource.c (tui_clear_source_content): Update.
7269 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7270 (tui_update_breakpoint_info): Update.
7271 (tui_set_exec_info_content): Update.
7272 * tui/tui-source.c (tui_set_source_content_nil): Update.
7273 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7274 has_break.
7275 * tui/tui-data.h (enum tui_bp_flag): New.
7276 (tui_bp_flags): New enum flags type.
7277 (struct tui_source_element) <break_mode>: Change type. Rename
7278 from has_break.
7279 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7280 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7281 constants.
7282 * tui/tui-winsource.h: Fix comment.
7283
350fab54
AH
72842019-07-04 Alan Hayward <alan.hayward@arm.com>
7285
7286 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7287 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7288 (store_fpregs_to_thread)
7289 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7290 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7291 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7292 (IWMMXT_REGS_SIZE): Add define.
7293 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7294 (fetch_vfp_regs, store_vfp_regs)
7295 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7296 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7297
f0452268
AH
72982019-07-04 Alan Hayward <alan.hayward@arm.com>
7299
7300 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7301 defines.
7302 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7303 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7304 (ARM_INT_REGISTER_SIZE): ...to this.
7305 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7306 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7307 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7308 (arm_linux_collect_gregset, supply_nwfpe_register)
7309 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7310 defines.
7311 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7312 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7313 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7314 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7315 (arm_return_in_memory, arm_store_return_value)
7316 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7317 (arm_record_ld_st_multiple): Likewise.
7318 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7319 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7320
e935475c
AH
73212019-07-04 Alan Hayward <alan.hayward@arm.com>
7322
7323 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7324 AARCH64_DISPLACED_MODIFIED_INSNS.
7325 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7326 (aarch64_displaced_step_copy_insn): Likewise.
7327 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7328 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7329 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7330 ARM_DISPLACED_MODIFIED_INSNS.
7331 * arm-tdep.c (arm_gdbarch_init): Likewise.
7332 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7333 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7334 (struct arm_displaced_step_closure): Use
7335 ARM_DISPLACED_MODIFIED_INSNS.
7336
df0bb381
AH
73372019-07-04 Alan Hayward <alan.hayward@arm.com>
7338
7339 * features/Makefile: Remove unused xml files.
7340 * features/aarch64.xml: Remove.
7341 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7342 * features/i386/amd64-avx-avx512.xml: Remove.
7343 * features/i386/amd64-avx-linux.xml: Remove.
7344 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7345 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7346 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7347 * features/i386/amd64-avx-mpx.xml: Remove.
7348 * features/i386/amd64-avx.xml: Remove.
7349 * features/i386/amd64-linux.xml: Remove.
7350 * features/i386/amd64-mpx-linux.xml: Remove.
7351 * features/i386/amd64-mpx.xml: Remove.
7352 * features/i386/amd64.xml: Remove.
7353 * features/i386/i386-avx-avx512-linux.xml: Remove.
7354 * features/i386/i386-avx-avx512.xml: Remove.
7355 * features/i386/i386-avx-linux.xml: Remove.
7356 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7357 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7358 * features/i386/i386-avx-mpx-linux.xml: Remove.
7359 * features/i386/i386-avx-mpx.xml: Remove.
7360 * features/i386/i386-avx.xml: Remove.
7361 * features/i386/i386-linux.xml: Remove.
7362 * features/i386/i386-mmx-linux.xml: Remove.
7363 * features/i386/i386-mmx.xml: Remove.
7364 * features/i386/i386-mpx-linux.xml: Remove.
7365 * features/i386/i386-mpx.xml: Remove.
7366 * features/i386/i386.xml: Remove.
7367 * features/i386/x32-avx-avx512-linux.xml: Remove.
7368 * features/i386/x32-avx-linux.xml: Remove.
7369 * features/i386/x32-linux.xml: Remove.
7370
edd6266a
AH
73712019-07-04 Alan Hayward <alan.hayward@arm.com>
7372
7373 * regformats/aarch64.dat: Remove.
7374 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7375 * regformats/i386/amd64-avx-linux.dat: Remove.
7376 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7377 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7378 * regformats/i386/amd64-linux.dat: Remove.
7379 * regformats/i386/amd64-mpx-linux.dat: Remove.
7380 * regformats/i386/amd64.dat: Remove.
7381 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7382 * regformats/i386/i386-avx-linux.dat: Remove.
7383 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7384 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7385 * regformats/i386/i386-linux.dat: Remove.
7386 * regformats/i386/i386-mmx-linux.dat: Remove.
7387 * regformats/i386/i386-mpx-linux.dat: Remove.
7388 * regformats/i386/i386.dat: Remove.
7389 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7390 * regformats/i386/x32-avx-linux.dat: Remove.
7391 * regformats/i386/x32-linux.dat: Remove.
7392
2b40fda7
AH
73932019-07-04 Alan Hayward <alan.hayward@arm.com>
7394
7395 * aarch64-tdep.c: Remove xml self tests.
7396 * amd64-linux-tdep.c: Likewise.
7397 * amd64-tdep.c: Likewise.
7398 * i386-linux-tdep.c: Likewise.
7399 * i386-tdep.c: Likewise.
7400
5f4ba3e7
PA
74012019-07-03 Pedro Alves <palves@redhat.com>
7402
7403 PR cli/24732
7404 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7405 (pipe_cmd_option_defs): New.
7406 (make_pipe_cmd_options_def_group): New.
7407 (pipe_command): Use gdb::option::process_options.
7408 (pipe_command_completer): New function.
7409 (_initialize_cli_cmds): Install completer for "pipe" command.
7410
3d9be6f5
PA
74112019-07-03 Pedro Alves <palves@redhat.com>
7412
7413 * cli/cli-option.c (union option_value) <string>: New field.
7414 (struct option_def_and_value): Add ctor, move ctor, dtor and
7415 use DISABLE_COPY_AND_ASSIGN.
7416 (option_def_and_value::clear_value): New.
7417 (parse_option, save_option_value_in_ctx, get_val_type_str)
7418 (add_setshow_cmds_for_options): Handle var_string.
7419 * cli-option.h (union option_def::var_address) <string>: New
7420 field.
7421 (struct string_option_def): New.
7422 * maint-test-options.c (struct test_options_opts): Add default
7423 ctor and use DISABLE_COPY_AND_ASSIGN.
7424 <string_opt>: New field.
7425 (test_options_opts::~test_options_opts): New.
7426 (test_options_opts::dump): Also dump "-string".
7427 (test_options_option_defs): Install "string.
7428
41fc454c
PA
74292019-07-03 Pedro Alves <palves@redhat.com>
7430
7431 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7432 option_value with a null enumeration.
7433 (complete_options): Save the option values in the context.
7434 (save_option_value_in_ctx): New, factored out from ...
7435 (process_options): ... here.
7436 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7437 of the function.
7438 * maint-test-options.c (test_options_opts::dump): New, factored
7439 out from ...
7440 (maintenance_test_options_command_mode): ... here.
7441 (maintenance_test_options_command_completion_result): Delete.
7442 (maintenance_test_options_command_completion_text): Update
7443 comment.
7444 (maintenance_show_test_options_completion_result): Change
7445 prototype. Just print
7446 maintenance_test_options_command_completion_text.
7447 (save_completion_result): New.
7448 (maintenance_test_options_completer_mode): Pass options context to
7449 complete_options, and then save a dump.
7450 (_initialize_maint_test_options): Use add_cmd to install "maint
7451 show test-options-completion-result".
7452
fdbc9870
PA
74532019-07-03 Pedro Alves <palves@redhat.com>
7454
7455 * NEWS (New commands): Mention "with" and "maint with".
7456 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7457 (with_command, with_command_completer): New.
7458 (pipe_command): Adjust to new repeat_previous
7459 interface.
7460 (_initialize_cli_cmds): Install the "with" command and its "w"
7461 alias.
7462 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7463 declarations.
7464 * cli/cli-setshow.c (parse_cli_var_uinteger)
7465 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7466 argument strings for all var_types.
7467 (get_setshow_command_value_string): New, factored out from ...
7468 (do_show_command): ... this.
7469 * cli/cli-setshow.h: Include <string>.
7470 (get_setshow_command_value_string): Declare.
7471 * command.h (repeat_previous): Now returns const char *. Adjust
7472 comment.
7473 * maint.c: Include "cli/cli-cmds.h".
7474 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7475 (_initialize_maint_cmds): Register the "maintenance with" command.
7476 * top.c (repeat_previous): Move bits from pipe_command here:
7477 Return the saved command line, if any; error out if there's no
7478 command to relaunch.
7479
c6ac8931
PA
74802019-07-03 Pedro Alves <palves@redhat.com>
7481
7482 * NEWS (New commands): Mention "maint set/show test-settings"
7483 instead of "maint test-settings".
7484 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7485 (maintenance_test_settings_set_list): Rename to ...
7486 (maintenance_set_test_settings_list): ... this.
7487 (maintenance_test_settings_show_list): Rename to ...
7488 (maintenance_show_test_settings_list): ... this.
7489 (maintenance_test_settings_cmd): Delete.
7490 (maintenance_test_settings_set_cmd): ...
7491 (maintenance_set_test_settings_cmd): ... this.
7492 (maintenance_test_settings_show_cmd): ...
7493 (maintenance_show_test_settings_cmd): ... this.
7494 (maintenance_test_settings_show_value_cmd):
7495 (maintenance_show_test_settings_value_cmd): ... this.
7496 (_initialize_maint_test_settings): No longer install the "maint
7497 test-settings" prefix command. Rename "maint test-settings set"
7498 to "maint set test-settings", and "maint test-settings show" to
7499 "maint show test-settings". Adjust all subcommands.
7500
d1fcf2fd
PA
75012019-07-03 Pedro Alves <palves@redhat.com>
7502
7503 * maint-test-settings.c: Fix file's intro comment. Replace all
7504 references to "test-options" with references to "test-settings",
7505 in comments.
7506
970f9d09
PA
75072019-07-03 Pedro Alves <palves@redhat.com>
7508
7509 * maint-test-settings.c (maintenance_test_settings_xxx)
7510 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7511 New.
7512 (maintenance_test_settings_enums): Use them.
7513 (maintenance_test_settings_enum): Default to
7514 maintenance_test_settings_xxx.
7515 (_initialize_maint_test_settings): Initialize
7516 MAINTENANCE_TEST_SETTINGS_FILENAME.
7517
f3869b1a
SM
75182019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7519
7520 * breakpoint.h (remove_breakpoints_inf): Change return type to
7521 void, move function documentation here.
7522 * breakpoint.c (remove_breakpoints_inf): Change return type to
7523 void, move function documentation to header.
7524
54d66006
PA
75252019-07-02 Pedro Alves <palves@redhat.com>
7526
7527 * NEWS (Completion improvements): Mention "info threads".
7528 * thread.c (struct info_threads_opts, info_threads_option_defs)
7529 (make_info_threads_options_def_group): New.
7530 (info_threads_command): Use gdb::option::process_options.
7531 (info_threads_command_completer): New.
7532 (_initialize_thread): Use gdb::option::build_help to build the
7533 help text for "info threads".
7534
854f6088
SM
75352019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7536
7537 * defs.h (generic_load): Move from here...
7538 * symfile.h (generic_load): ... to here. Rename name parameter
7539 to args.
7540 * symfile.c (generic_load): Add comment.
7541
54ee4252
TT
75422019-07-01 Tom Tromey <tromey@adacore.com>
7543
7544 * dwarf2read.c
7545 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7546 declaration of without_params. Fix formatting.
7547
65392b3e
TT
75482019-07-01 Tom Tromey <tromey@adacore.com>
7549
7550 * ada-exp.y (find_primitive_type): Update.
7551 * ada-lang.h (ada_lookup_symbol): Update.
7552 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7553 parameter.
7554 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7555
7d7571f0
SDJ
75562019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7557
7558 PR breakpoints/24541
7559 * gdbarch.c: Regenerate.
7560 * gdbarch.h: Regenerate.
7561 * gdbarch.sh: Add 'stap_adjust_register'.
7562 * i386-tdep.c: Include '<unordered_set>'.
7563 (i386_stap_adjust_register): New function.
7564 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7565 * stap-probe.c (stap_parse_register_operand): Call
7566 'gdbarch_stap_adjust_register'.
7567
5af5392a
SDJ
75682019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7569
7570 PR python/24742
7571 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7572 * python/python.c (do_start_initialization): Use 'xmalloc'
7573 instead of 'PyMem_Malloc'.
7574
10d06d82
TT
75752019-06-28 Tom Tromey <tromey@adacore.com>
7576
7577 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7578 for Ada.
7579
1b7f24cd
TT
75802019-06-27 Tom Tromey <tromey@adacore.com>
7581
7582 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7583 objfile_key.
7584 (arm_find_mapping_symbol, arm_record_special_symbol)
7585 (_initialize_arm_tdep): Update.
7586 (arm_objfile_data_free): Remove.
7587
3d507ff2
TT
75882019-06-27 Tom Tromey <tromey@adacore.com>
7589
7590 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7591 to cp_print_static_field.
7592
762c164d
TT
75932019-06-26 Tom Tromey <tromey@adacore.com>
7594
7595 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7596 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7597 declare.
7598
aa2f9bcf
AH
75992019-06-26 Alan Hayward <alan.hayward@arm.com>
7600
7601 * features/aarch64-core.c (create_feature_aarch64_core):
7602 Regenerate.
7603 * features/aarch64-core.xml: Add cpsr flags.
7604
3426ae57
AH
76052019-06-26 Alan Hayward <alan.hayward@arm.com>
7606
7607 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7608 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7609
4838e44c
SM
76102019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7611
7612 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7613 field.
7614 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7615 use.
7616 (arm_record_special_symbol): Don't insert new symbol in sorted
7617 position, push it at the end.
7618
54cc7474
SM
76192019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7620
7621 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7622 (arm_mapping_symbol_s): Remove.
7623 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7624 (arm_mapping_symbol_vec): New typedef.
7625 (struct arm_per_objfile): Add constructor.
7626 <section_maps>: Change type to
7627 std::unique_ptr<arm_mapping_symbol_vec[]>.
7628 (arm_compare_mapping_symbols): Remove.
7629 (arm_find_mapping_symbol): Adjust to section_maps type change.
7630 (arm_objfile_data_free): Call delete on arm_per_objfile.
7631 (arm_record_special_symbol): Adjust to section_maps type change.
7632 Allocate arm_per_objfile with new.
7633
b65b566c
PW
76342019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7635
7636 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7637 with the command prefix.
7638
c2fc64f5
TT
76392019-06-25 Tom Tromey <tom@tromey.com>
7640
7641 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7642 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7643
fb54fa76
TT
76442019-06-25 Tom Tromey <tom@tromey.com>
7645
7646 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7647 type.
7648 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7649 protected.
7650
f7952c57
TT
76512019-06-25 Tom Tromey <tom@tromey.com>
7652
7653 * tui/tui-winsource.c
7654 (tui_source_window_base::set_is_exec_point_at): Add check against
7655 LOA_ADDRESS.
7656
17568d78
TT
76572019-06-25 Tom Tromey <tom@tromey.com>
7658
7659 * tui/tui-source.c (tui_set_source_content): Don't check before
7660 xfree.
7661 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7662
53e7cdba
TT
76632019-06-25 Tom Tromey <tom@tromey.com>
7664
7665 * tui/tui-winsource.h (tui_update_source_window_as_is)
7666 (tui_alloc_source_buffer, tui_line_is_displayed)
7667 (tui_addr_is_displayed): Change type of win_info.
7668 * tui/tui-winsource.c (tui_update_source_window_as_is)
7669 (tui_clear_source_content, tui_show_source_line)
7670 (tui_show_source_content, tui_source_window_base::refill)
7671 (tui_source_window_base::set_is_exec_point_at)
7672 (tui_source_window_base::set_is_exec_point_at)
7673 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7674 (tui_alloc_source_buffer, tui_line_is_displayed)
7675 (tui_addr_is_displayed): Change type of win_info. Update.
7676 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7677 (tui_source_window_base::do_make_visible_with_new_height):
7678 Update.
7679 * tui/tui-source.c (tui_set_source_content)
7680 (tui_set_source_content_nil)
7681 (tui_source_window::do_scroll_vertical): Update.
7682 * tui/tui-layout.c (show_layout): Update.
7683 * tui/tui-disasm.c (tui_set_disassem_content)
7684 (tui_disasm_window::do_scroll_vertical): Update.
7685 * tui/tui-data.h (tui_win_content): Remove.
7686 (struct tui_gen_win_info) <content, content_size>: Remove.
7687 (struct tui_source_element): Add initializers and destructor.
7688 (union tui_which_element, struct tui_win_element): Remove.
7689 (struct tui_source_window_base) <content>: New field.
7690 (struct tui_data_window): Remove destructor.
7691 (tui_alloc_content, tui_free_win_content)
7692 (tui_free_all_source_wins_content): Don't declare.
7693 * tui/tui-data.c (tui_initialize_static_data): Update.
7694 (init_content_element, tui_alloc_content): Remove.
7695 (~tui_gen_win_info): Update.
7696 (~tui_data_window, tui_free_all_source_wins_content)
7697 (tui_free_win_content, free_content, free_content_elements):
7698 Remove.
7699
7908abbf
TT
77002019-06-25 Tom Tromey <tom@tromey.com>
7701
7702 * tui/tui-winsource.h (tui_clear_source_content)
7703 (tui_erase_source_content, tui_show_source_content): Change type
7704 of win_info.
7705 * tui/tui-winsource.c (tui_clear_source_content)
7706 (tui_erase_source_content, tui_show_source_content): Change type
7707 of win_info.
7708 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7709 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7710 win_info.
7711 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7712 win_info.
7713 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7714
02c28df0
TT
77152019-06-25 Tom Tromey <tom@tromey.com>
7716
7717 * tui/tui-winsource.c (tui_clear_source_content)
7718 (tui_source_window_base::set_is_exec_point_at): Update.
7719 * tui/tui-source.c (tui_set_source_content_nil): Update.
7720 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7721 a bool.
7722 * tui/tui-data.c (init_content_element): Update.
7723
6658b1bf
TT
77242019-06-25 Tom Tromey <tom@tromey.com>
7725
7726 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7727 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7728 * tui/tui-layout.c (init_and_make_win): Update.
7729 * tui/tui.h (enum tui_win_type): Update.
7730 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7731 tui_win_is_auxillary.
7732 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7733 tui_win_is_auxillary.
7734
21e1c91e
TT
77352019-06-25 Tom Tromey <tom@tromey.com>
7736
7737 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7738 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7739 (tui_delete_data_content_windows, tui_display_all_data)
7740 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7741 Update.
7742 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7743 * tui/tui-regs.c (tui_last_regs_line_no)
7744 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7745 (tui_show_registers): Update.
7746 (tui_show_register_group): Return void. Update.
7747 (tui_display_registers_from, tui_display_reg_element_at_line)
7748 (tui_display_registers_from_line, tui_check_register_values):
7749 Update.
7750 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7751 member.
7752 (struct tui_data_window) <regs_content>: Now a std::vector.
7753 <regs_content_count>: Remove.
7754 (tui_add_content_elements, tui_free_data_content): Don't declare.
7755 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7756 (init_content_element): Remove DATA_WIN case. Add assert.
7757 (tui_add_content_elements): Remove.
7758 (tui_data_window): Update.
7759 (tui_free_data_content): Remove.
7760 (free_content_elements): Remove DATA_WIN case.
7761
115ac53b
TT
77622019-06-25 Tom Tromey <tom@tromey.com>
7763
7764 * tui/tui-data.c (tui_data_item_window): Update.
7765 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7766 * tui/tui-windata.c (tui_display_all_data)
7767 (tui_display_data_from_line): Update.
7768 (tui_check_data_values): Remove.
7769 * tui/tui-regs.c (tui_show_register_group)
7770 (tui_display_reg_element_at_line): Update.
7771 * tui/tui-hooks.c (tui_register_changed)
7772 (tui_refresh_frame_and_register_information): Call
7773 tui_check_register_values.
7774 * tui/tui-data.h (struct tui_data_window) <data_content,
7775 data_content_count, data_type>: Remove.
7776 (enum tui_data_type): Remove.
7777
7778 * tui/tui-data.c (tui_data_window::clear_detail)
7779 (~tui_data_window): Update.
7780
eaf9738b
TT
77812019-06-25 Tom Tromey <tom@tromey.com>
7782
7783 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7784 declare.
7785 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7786 Rename from tui_first_data_item_displayed. Update.
7787 (tui_data_window::refresh_all)
7788 (tui_data_window::do_scroll_vertical): Update.
7789 * tui/tui-data.h (struct tui_data_window)
7790 <first_data_item_displayed>: Declare new method.
7791
31ca4723
TT
77922019-06-25 Tom Tromey <tom@tromey.com>
7793
7794 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7795 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7796 contents...
7797 (tui_initialize_static_data): ...here.
7798
41bcff7f
TT
77992019-06-25 Tom Tromey <tom@tromey.com>
7800
7801 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7802 (tui_display_registers_from, tui_check_register_values): Update.
7803 (tui_display_register): Remove win_info parameter; update.
7804 (tui_get_register): Change type of parameters.
7805 * tui/tui-data.h (struct tui_data_element): Remove.
7806 (union tui_which_element) <data>: Remove.
7807 <data_window>: Change type.
7808 (struct tui_data_item_window): New.
7809 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7810 case. Add assert.
7811 (~tui_data_item_window): New destructor.
7812 (free_content_elements): Remove DATA_ITEM_WIN case.
7813
d2802c33
TT
78142019-06-25 Tom Tromey <tom@tromey.com>
7815
7816 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7817 Remove.
7818
dd835f8b
TT
78192019-06-25 Tom Tromey <tom@tromey.com>
7820
7821 * tui/tui-data.h (struct tui_command_element): Remove.
7822 (union tui_which_element) <command>: Remove.
7823 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7824 assert.
7825 (free_content_elements): Remove CMD_WIN case.
7826
bd7db367
TT
78272019-06-25 Tom Tromey <tom@tromey.com>
7828
7829 * tui/tui-layout.c (tui_set_layout): Update.
7830 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7831 * tui/tui-data.c (layout_def): Update.
7832
3add462f
TT
78332019-06-25 Tom Tromey <tom@tromey.com>
7834
7835 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7836 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7837 (tui_source_window_base::set_new_height): Update.
7838 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7839 Update.
7840 (tui_set_locator_fullname, tui_set_locator_info)
7841 (tui_show_frame_info): Update.
7842 * tui/tui-source.c (tui_set_source_content)
7843 (tui_source_is_displayed): Update.
7844 * tui/tui-layout.c (show_source_disasm_command, show_data)
7845 (show_source_or_disasm_and_command): Update.
7846 * tui/tui-disasm.c (tui_set_disassem_content)
7847 (tui_get_begin_asm_address): Update.
7848 * tui/tui-data.h (struct tui_locator_element): Remove.
7849 (union tui_which_element) <locator>: Remove.
7850 (struct tui_locator_window): New.
7851 (tui_locator_win_info_ptr): Change return type.
7852 * tui/tui-data.c (_locator): Change type.
7853 (tui_locator_win_info_ptr): Change return type.
7854 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7855 (tui_alloc_content): Add assert.
7856
489e9d8b
TT
78572019-06-25 Tom Tromey <tom@tromey.com>
7858
7859 * tui/tui-winsource.c
7860 (tui_exec_info_window::maybe_allocate_content): New method.
7861 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7862 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7863 (make_source_or_disasm_window): Add cast.
7864 * tui/tui-data.h (union tui_which_element) <simple_string>:
7865 Remove.
7866 (struct tui_source_info): New.
7867 (struct tui_source_window_base) <execution_info>: Change type.
7868 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7869 case, and add assert.
7870 (tui_alloc_content): Add assert.
7871
c3fabb7d
TT
78722019-06-25 Tom Tromey <tom@tromey.com>
7873
7874 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7875 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7876 * tui/tui-data.c (tui_alloc_win_info): Remove.
7877
bbc228ee
TT
78782019-06-25 Tom Tromey <tom@tromey.com>
7879
7880 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7881 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7882 can_highlight.
7883
5fcee43a
TT
78842019-06-25 Tom Tromey <tom@tromey.com>
7885
7886 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7887 make_visible_with_new_height method.
7888 (tui_win_info::make_visible_with_new_height): New method.
7889 (tui_source_window_base::do_make_visible_with_new_height)
7890 (tui_data_window::do_make_visible_with_new_height)
7891 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7892 (make_visible_with_new_height): Remove.
7893 (tui_resize_all, tui_adjust_win_heights): Use
7894 make_visible_with_new_height method.
7895 * tui/tui-data.h (struct tui_win_info)
7896 <do_make_visible_with_new_height, make_visible_with_new_height>:
7897 New methods.
7898 (struct tui_source_window_base, struct tui_data_window)
7899 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7900 methods.
7901
d83f1fe6
TT
79022019-06-25 Tom Tromey <tom@tromey.com>
7903
7904 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7905 method.
7906 (update_tab_width): Call update_tab_width method.
7907 * tui/tui-data.h (struct tui_win_info)
7908 (struct tui_source_window_base) <update_tab_width>: New methods.
7909
17374de4
TT
79102019-06-25 Tom Tromey <tom@tromey.com>
7911
7912 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7913 parameter.
7914 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7915 parameter.
7916 (tui_gen_win_info::make_visible): Update.
7917 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7918 parameter.
7919 * tui/tui-data.h (enum tui_box): New enum.
7920 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7921
f936bca2
TT
79222019-06-25 Tom Tromey <tom@tromey.com>
7923
7924 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7925 init_and_make_win for EXEC_INFO_WIN.
7926 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7927 longer inline.
7928 (struct tui_win_info) <~tui_win_info>: Inline.
7929 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7930 Don't declare.
7931 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7932 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7933 Remove.
7934 (tui_initialize_static_data): Update.
7935 (~tui_gen_win_info): Handle more cleanup here.
7936 (~tui_source_window_base): Delete "execution_info".
7937 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7938
d6ba6a11
TT
79392019-06-25 Tom Tromey <tom@tromey.com>
7940
7941 * tui/tui-layout.c (make_command_window): Don't set
7942 can_highlight.
7943 (show_source_disasm_command): Call the reset method.
7944 (show_data): Don't set can_highlight. Call the reset method.
7945 (tui_gen_win_info::reset): Rename from init_gen_win_info
7946 (init_and_make_win): Simplify. Return tui_gen_win_info.
7947 (show_source_or_disasm_and_command): Call the reset method.
7948 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7949 (struct tui_cmd_window): Set can_highlight.
7950
48a3bd16
TT
79512019-06-25 Tom Tromey <tom@tromey.com>
7952
7953 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7954 from make_visible.
7955 (tui_make_visible, tui_make_invisible): Rewrite.
7956 (tui_win_info::make_visible): Remove.
7957 (tui_source_window_base::make_visible): Update.
7958 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7959 method. Moved from...
7960 (struct tui_win_info) <make_visible>: ...here.
7961
c3bd716f
TT
79622019-06-25 Tom Tromey <tom@tromey.com>
7963
7964 * tui/tui-winsource.c
7965 (tui_source_window_base::do_scroll_horizontal): Remove direction
7966 parameter.
7967 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7968 direction parameter.
7969 * tui/tui-win.c (tui_win_info::forward_scroll)
7970 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7971 (tui_win_info::right_scroll): Update.
7972 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7973 direction parameter.
7974 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7975 direction parameter.
7976 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7977 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7978 Remove direction parameter.
7979 (struct tui_source_window_base, struct tui_source_window)
7980 (struct tui_disasm_window, struct tui_data_window)
7981 (struct tui_cmd_window): Update.
7982
21c32dca
TT
79832019-06-25 Tom Tromey <tom@tromey.com>
7984
7985 * tui/tui-winsource.h (tui_set_exec_info_content)
7986 (tui_show_exec_info_content, tui_erase_exec_info_content)
7987 (tui_clear_exec_info_content, tui_update_exec_info): Change
7988 argument to tui_source_window_base.
7989 * tui/tui-winsource.c (tui_set_exec_info_content)
7990 (tui_show_exec_info_content, tui_erase_exec_info_content)
7991 (tui_clear_exec_info_content, tui_update_exec_info): Change
7992 argument to tui_source_window_base.
7993
73fbdc65
TT
79942019-06-25 Tom Tromey <tom@tromey.com>
7995
7996 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7997 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7998
33325343
TT
79992019-06-25 Tom Tromey <tom@tromey.com>
8000
8001 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8002 check.
8003
29d2c474
TT
80042019-06-25 Tom Tromey <tom@tromey.com>
8005
8006 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8007 type to void.
8008 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8009 type to void.
8010 * tui/tui-source.c (tui_set_source_content): Update.
8011 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8012
152f3f4b
TT
80132019-06-25 Tom Tromey <tom@tromey.com>
8014
8015 * tui/tui-win.c (window_name_completer, tui_set_focus)
8016 (tui_all_windows_info): Use name method.
8017 * tui/tui-data.h (struct tui_gen_win_info)
8018 (struct tui_source_window, struct tui_disasm_window)
8019 (struct tui_data_window, struct tui_cmd_window) <name>: New
8020 method.
8021 (tui_win_name): Don't declare.
8022 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8023 (tui_win_name): Remove.
8024
be4da588
TT
80252019-06-25 Tom Tromey <tom@tromey.com>
8026
8027 * tui/tui-winsource.h (tui_update_source_window)
8028 (tui_update_source_window_as_is): Change parameter type.
8029 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8030 to be a tui_source_window_base.
8031 (tui_update_source_window_as_is): Likewise.
8032 * tui/tui-win.c (make_visible_with_new_height): Update.
8033
5b81daba
TT
80342019-06-25 Tom Tromey <tom@tromey.com>
8035
8036 * tui/tui-winsource.c (tui_erase_source_content)
8037 (tui_show_source_content, tui_show_exec_info_content)
8038 (tui_erase_exec_info_content): Use refresh_window method.
8039 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8040 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8041 from tui_refresh_win.
8042 (tui_data_window::refresh_window): New method.
8043 (tui_win_info::refresh, tui_source_window_base::refresh)
8044 (tui_refresh_all): Use refresh_window method.
8045 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8046 method.
8047 * tui/tui-regs.c (tui_display_register): Call refresh_window
8048 method.
8049 * tui/tui-layout.c (show_source_disasm_command)
8050 (show_source_or_disasm_and_command): Call refresh_window method.
8051 * tui/tui-data.h (struct tui_gen_win_info)
8052 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8053 New method.
8054
cb2ce893
TT
80552019-06-25 Tom Tromey <tom@tromey.com>
8056
8057 * tui/tui.c (tui_rl_other_window, tui_enable)
8058 (tui_is_window_visible, tui_get_command_dimension): Update.
8059 * tui/tui-winsource.c (tui_update_source_window_as_is)
8060 (tui_clear_source_content, tui_erase_source_content)
8061 (tui_show_source_line, tui_source_window_base::refill)
8062 (tui_source_window_base::do_scroll_horizontal)
8063 (tui_source_window_base::set_is_exec_point_at)
8064 (tui_update_breakpoint_info, tui_set_exec_info_content)
8065 (tui_alloc_source_buffer, tui_line_is_displayed)
8066 (tui_addr_is_displayed): Update.
8067 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8068 (tui_check_and_display_highlight_if_needed)
8069 (tui_win_info::make_visible, tui_win_info::refresh)
8070 (tui_refresh_all): Update.
8071 * tui/tui-windata.c (tui_first_data_item_displayed)
8072 (tui_delete_data_content_windows, tui_erase_data_content)
8073 (tui_display_all_data, tui_data_window::refresh_all)
8074 (tui_check_data_values): Update.
8075 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8076 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8077 (tui_win_info::backward_scroll, tui_refresh_all_win)
8078 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8079 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8080 (tui_source_window_base::set_new_height)
8081 (tui_data_window::set_new_height)
8082 (make_invisible_and_set_new_height)
8083 (make_visible_with_new_height, new_height_ok)
8084 (parse_scrolling_args): Update.
8085 * tui/tui-stack.c (tui_show_frame_info): Update.
8086 * tui/tui-source.c (tui_set_source_content)
8087 (tui_set_source_content_nil, tui_source_is_displayed)
8088 (tui_source_window::do_scroll_vertical): Update.
8089 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8090 (tui_display_registers_from, tui_display_reg_element_at_line)
8091 (tui_check_register_values, tui_reg_command): Update.
8092 * tui/tui-layout.c (tui_default_win_height)
8093 (show_source_disasm_command, show_data, init_and_make_win)
8094 (show_source_or_disasm_and_command): Update.
8095 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8096 (tui_redisplay_readline, tui_mld_flush)
8097 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8098 (tui_getc): Update.
8099 * tui/tui-disasm.c (tui_set_disassem_content)
8100 (tui_disasm_window::do_scroll_vertical): Update.
8101 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8102 Now virtual.
8103 (struct tui_win_info): Derive from tui_gen_win_info.
8104 <~tui_win_info>: Mark as override.
8105 <generic>: Remove member.
8106 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8107 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8108 (~tui_data_window, ~tui_win_info)
8109 (tui_free_all_source_wins_content): Update.
8110 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8111
ab313b35
TT
81122019-06-25 Tom Tromey <tom@tromey.com>
8113
8114 * tui/tui-layout.c (init_and_make_win): Use new.
8115 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8116 destructor, initializers.
8117 (tui_alloc_generic_win_info): Don't declare.
8118 * tui/tui-data.c (_locator): Add argument to constructor.
8119 (source_win, disasm_win): New globals.
8120 (exec_info): Remove.
8121 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8122 Update.
8123 (tui_alloc_generic_win_info): Remove.
8124 (init_content_element): Use new.
8125 (tui_win_info::tui_win_info): Update.
8126 (free_content_elements) <case DATA_WIN>: Use delete.
8127
dc2c33e4
TT
81282019-06-25 Tom Tromey <tom@tromey.com>
8129
8130 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8131 * tui/tui-windata.c (tui_first_data_item_displayed)
8132 (tui_delete_data_content_windows): Update.
8133 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8134 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8135 (tui_display_registers_from, tui_check_register_values): Update.
8136 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8137 pointer.
8138 * tui/tui-data.c (init_content_element): Update. Allocate the new
8139 window.
8140 (tui_free_data_content): Update.
8141 (free_content_elements) <case DATA_WIN>: Free the window.
8142
214a5cbe
TT
81432019-06-25 Tom Tromey <tom@tromey.com>
8144
8145 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8146 Update.
8147 * tui/tui-layout.c (make_command_window)
8148 (show_source_disasm_command, show_data, init_and_make_win)
8149 (show_source_or_disasm_and_command): Update.
8150 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8151 method.
8152 <can_highight, is_highlighted>: Now bool.
8153 (tui_set_win_highlight): Don't declare.
8154 * tui/tui-data.c (tui_set_win_highlight): Remove.
8155
8e2daf15
TT
81562019-06-25 Tom Tromey <tom@tromey.com>
8157
8158 * tui/tui-wingeneral.c (make_visible): Remove check of window
8159 type.
8160
8903bd8a
TT
81612019-06-25 Tom Tromey <tom@tromey.com>
8162
8163 * tui/tui-win.c (tui_win_info::max_height)
8164 (tui_cmd_window::max_height): New methods.
8165 (new_height_ok): Call max_height.
8166 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8167 <max_height>: New method.
8168
3f02ce1e
TT
81692019-06-25 Tom Tromey <tom@tromey.com>
8170
8171 * tui/tui-win.c (tui_source_window_base::set_new_height)
8172 (tui_data_window::set_new_height): New methods.
8173 (make_invisible_and_set_new_height): Call set_new_height method.
8174 * tui/tui-data.h (struct tui_win_info)
8175 (struct tui_source_window_base, struct tui_data_window)
8176 <set_new_height>: New method.
8177
1825f487
TT
81782019-06-25 Tom Tromey <tom@tromey.com>
8179
8180 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8181 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8182 tui_refresh_data_win.
8183 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8184 method.
8185 (tui_refresh_all_win): Call the refresh_all method.
8186 (tui_set_focus): Likewise.
8187 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8188 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8189 Likewise.
8190
ad54d15b
TT
81912019-06-25 Tom Tromey <tom@tromey.com>
8192
8193 * tui/tui-winsource.h (tui_refill_source_window)
8194 (tui_set_is_exec_point_at): Don't declare.
8195 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8196 (tui_source_window_base::refill): Rename from
8197 tui_refill_source_window.
8198 (tui_source_window_base::do_scroll_horizontal): Update.
8199 (tui_source_window_base::set_is_exec_point_at): Rename from
8200 tui_set_is_exec_point_at.
8201 (tui_update_all_breakpoint_info): Update.
8202 * tui/tui-stack.c (tui_show_frame_info): Update.
8203 * tui/tui-layout.c (show_data): Add cast.
8204 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8205 * tui/tui-data.h (struct tui_source_window_base) <refill,
8206 set_is_exec_point_at>: New methods.
8207 (tui_source_windows, tui_add_to_source_windows): Update types.
8208 (tui_add_to_source_windows): Remove redundant declaration.
8209 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8210 (tui_source_windows): Change return type.
8211 (tui_clear_source_windows_detail): Update.
8212 (tui_add_to_source_windows): Change type of parameter.
8213 (tui_free_all_source_wins_content): Update.
8214
2042b506
TT
82152019-06-25 Tom Tromey <tom@tromey.com>
8216
8217 * tui/tui-wingeneral.c (tui_win_info::refresh)
8218 (tui_source_window_base::refresh): New methods.
8219 (tui_refresh_all): Call the refresh method.
8220 * tui/tui-data.h (struct tui_win_info)
8221 (struct tui_source_window_base) <refresh>: New method.
8222
56122977
TT
82232019-06-25 Tom Tromey <tom@tromey.com>
8224
8225 * tui/tui.h (tui_is_window_visible): Return bool.
8226 * tui/tui.c (tui_is_window_visible): Return bool.
8227 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8228 (tui_make_visible, tui_make_invisible)
8229 (tui_win_info::make_visible)
8230 (tui_source_window_base::make_visible, make_all_visible)
8231 (tui_make_all_visible, tui_make_all_invisible): Update.
8232 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8233 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8234 bool.
8235 (struct tui_win_info, struct tui_source_window_base)
8236 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8237 * tui/tui-data.c (tui_init_generic_part): Update.
8238
cda37efb
TT
82392019-06-25 Tom Tromey <tom@tromey.com>
8240
8241 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8242 (tui_source_window_base::make_visible): New methods.
8243 (make_all_visible): Make method call.
8244 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8245 (struct tui_source_window_base, struct tui_cmd_window): Override
8246 make_visible.
8247 (tui_win_is_source_type): Don't declare.
8248 * tui/tui-data.c (tui_win_is_source_type): Remove.
8249
6a0ee02c
TT
82502019-06-25 Tom Tromey <tom@tromey.com>
8251
8252 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8253 NULL check.
8254
63901aec
TT
82552019-06-25 Tom Tromey <tom@tromey.com>
8256
8257 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8258 Inline constructor. Add initializers for members.
8259 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8260 constructors; now inline in class.
8261
ceb13a13
TT
82622019-06-25 Tom Tromey <tom@tromey.com>
8263
8264 * tui/tui-regs.c (tui_show_registers): Update.
8265 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8266 bool.
8267 * tui/tui-data.c (tui_data_window::clear_detail)
8268 (tui_data_window): Update.
8269
238eb706
TT
82702019-06-25 Tom Tromey <tom@tromey.com>
8271
8272 * tui/tui-windata.c (tui_display_all_data)
8273 (tui_display_data_from_line, tui_display_data_from)
8274 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8275 Update.
8276 * tui/tui-regs.c (tui_last_regs_line_no)
8277 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8278 (tui_show_registers, tui_show_register_group)
8279 (tui_display_registers_from, tui_display_reg_element_at_line)
8280 (tui_display_registers_from_line, tui_check_register_values)
8281 (tui_reg_next, tui_reg_prev): Update.
8282 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8283 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8284 tui_data_window.
8285 (struct tui_win_info) <detail>: Remove. Add new fields from
8286 tui_data_info.
8287 (TUI_DATA_WIN): Add cast.
8288 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8289 (~tui_data_window): Simplify.
8290
81491aa0
TT
82912019-06-25 Tom Tromey <tom@tromey.com>
8292
8293 * tui/tui-layout.c (show_source_disasm_command)
8294 (show_source_or_disasm_and_command): Update.
8295 * tui/tui-io.c (update_cmdwin_start_line)
8296 (tui_redisplay_readline): Update.
8297 * tui/tui-data.h (struct tui_command_info): Remove.
8298 (struct tui_win_info) <detail>: Remove command_info member.
8299 (struct tui_data_window) <start_line>: New member, from
8300 tui_command_info.
8301 (TUI_CMD_WIN): Add casts.
8302
e6e41501
TT
83032019-06-25 Tom Tromey <tom@tromey.com>
8304
8305 * tui/tui-winsource.c (tui_update_source_window)
8306 (tui_refill_source_window)
8307 (tui_source_window_base::do_scroll_horizontal)
8308 (tui_update_breakpoint_info, tui_set_exec_info_content)
8309 (tui_show_exec_info_content, tui_erase_exec_info_content)
8310 (tui_clear_exec_info_content): Update.
8311 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8312 Update.
8313 * tui/tui-win.c (make_invisible_and_set_new_height)
8314 (make_visible_with_new_height): Update.
8315 * tui/tui-source.c (tui_set_source_content)
8316 (tui_show_symtab_source): Update.
8317 * tui/tui-layout.c (extract_display_start_addr)
8318 (show_source_disasm_command, show_data)
8319 (make_source_or_disasm_window)
8320 (show_source_or_disasm_and_command): Update.
8321 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8322 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8323 "gdbarch".
8324 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8325 to tui_source_window_base.
8326 (struct tui_win_info) <detail>: Remove source_info member.
8327 (struct tui_source_window_base) <has_locator>: Inline.
8328 Move contents from tui_source_info; rename has_locator member to
8329 m_has_locator.
8330 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8331 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8332 header file.
8333 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8334 Simplify.
8335 (tui_free_all_source_wins_content): Cast to
8336 tui_source_window_base.
8337
44f0e208
TT
83382019-06-25 Tom Tromey <tom@tromey.com>
8339
8340 * tui/tui-win.c (make_invisible_and_set_new_height)
8341 (make_visible_with_new_height): Call has_locator method.
8342 * tui/tui-layout.c (show_source_disasm_command, show_data)
8343 (show_source_or_disasm_and_command): Update for bool change.
8344 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8345 (tui_win_info) <has_locator>: New method.
8346 (struct tui_source_window_base) <has_locator>: New method.
8347 (tui_win_has_locator): Don't declare.
8348 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8349 from tui_win_has_locator.
8350 (tui_source_window_base): Use false, not FALSE.
8351
7778b912
TT
83522019-06-25 Tom Tromey <tom@tromey.com>
8353
8354 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8355 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8356 clear_detail method directly.
8357 (tui_clear_win_detail): Remove.
8358
f83d391c
TT
83592019-06-25 Tom Tromey <tom@tromey.com>
8360
8361 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8362 "this", not TUI_DISASM_WIN.
8363
13446e05
TT
83642019-06-25 Tom Tromey <tom@tromey.com>
8365
8366 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8367 declare.
8368 * tui/tui-winsource.c
8369 (tui_source_window_base::do_scroll_horizontal): Rename from
8370 tui_horizontal_source_scroll.
8371 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8372 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8373 from tui_vertical_data_scroll.
8374 * tui/tui-win.h (tui_scroll): Don't declare.
8375 * tui/tui-win.c (tui_win_info::forward_scroll)
8376 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8377 (tui_win_info::right_scroll): Rename and update.
8378 (tui_scroll_forward_command, tui_scroll_backward_command)
8379 (tui_scroll_left_command, tui_scroll_right_command): Update.
8380 (tui_scroll): Remove.
8381 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8382 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8383 from tui_vertical_source_scroll.
8384 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8385 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8386 from tui_vertical_disassem_scroll.
8387 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8388 do_scroll_horizontal>: New methods.
8389 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8390 Likewise.
8391 (struct tui_source_window_base): Add do_scroll_horizontal.
8392 (struct tui_source_window, struct tui_disasm_window): Add
8393 do_scroll_vertical.
8394 (struct tui_data_window, struct tui_cmd_window): Add
8395 do_scroll_horizontal and do_scroll_vertical.
8396 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8397
5cf82909
TT
83982019-06-25 Tom Tromey <tom@tromey.com>
8399
8400 * tui/tui-data.h (struct tui_source_window_base): New struct.
8401 (struct tui_source_window): Derive from tui_source_window_base.
8402 (struct tui_disasm_window): New struct.
8403 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8404 from tui_source_window::clear_detail.
8405 (tui_source_window_base): Rename from tui_source_window.
8406 (~tui_source_window_base): Rename from ~tui_source_window.
8407 (tui_alloc_win_info): Create a tui_disasm_window.
8408
ee1d42d6
TT
84092019-06-25 Tom Tromey <tom@tromey.com>
8410
8411 * tui/tui-data.h (struct tui_source_window)
8412 (struct tui_data_window): Declare destructors.
8413 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8414 destructors.
8415 (tui_win_info): Simplify.
8416
b4eb2452
TT
84172019-06-25 Tom Tromey <tom@tromey.com>
8418
8419 * tui/tui-winsource.c (tui_display_main)
8420 (tui_update_source_windows_with_addr)
8421 (tui_update_all_breakpoint_info): Update.
8422 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8423 (new_height_ok, parse_scrolling_args): Update.
8424 * tui/tui-stack.c (tui_show_frame_info): Update.
8425 * tui/tui-data.h (struct tui_list): Remove.
8426 (tui_source_windows): Return a reference to a std::vector.
8427 * tui/tui-data.c (source_windows): Now a std::vector.
8428 (tui_source_windows): Change return type.
8429 (tui_clear_source_windows): Rewrite.
8430 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8431 (tui_free_all_source_wins_content): Rewrite.
8432
8761a91b
TT
84332019-06-25 Tom Tromey <tom@tromey.com>
8434
8435 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8436 (struct tui_data_window, struct tui_cmd_window): Declare
8437 clear_detail method.
8438 * tui/tui-data.c (tui_source_window::clear_detail)
8439 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8440 methods.
8441 (tui_clear_win_detail): Simplify.
8442
0ed69eda
TT
84432019-06-25 Tom Tromey <tom@tromey.com>
8444
8445 * tui/tui-layout.c (make_source_window, make_disasm_window)
8446 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8447 Return the new window.
8448 (show_source_disasm_command, show_data)
8449 (show_source_or_disasm_and_command): Update.
8450
82432e10
TT
84512019-06-25 Tom Tromey <tom@tromey.com>
8452
8453 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8454 parameter. Return the new window.
8455 (show_source_disasm_command): Update and remove NULL check.
8456 (show_source_or_disasm_and_command): Update.
8457
ec328aa5
TT
84582019-06-25 Tom Tromey <tom@tromey.com>
8459
8460 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8461
33b906ab
TT
84622019-06-25 Tom Tromey <tom@tromey.com>
8463
8464 * tui/tui-data.h (struct tui_win_info): Make constructor
8465 protected. Make destructor virtual. Add initializers.
8466 (tui_source_window, tui_data_window, tui_cmd_window): New
8467 classes.
8468 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8469 constructor. Add "type" parameter.
8470 (tui_source_window, tui_data_window, tui_cmd_window): New
8471 constructors.
8472 (tui_alloc_win_info): Instantiate the appropriate subclass.
8473
e7e11af4
TT
84742019-06-25 Tom Tromey <tom@tromey.com>
8475
8476 * tui/tui-win.c (tui_resize_all): Use delete.
8477 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8478 destructor.
8479 (tui_free_window): Don't declare.
8480 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8481 Update.
8482
6792b55e
TT
84832019-06-25 Tom Tromey <tom@tromey.com>
8484
8485 * tui/tui-data.h (struct tui_win_info): Add constructor.
8486 * tui/tui-data.c (tui_alloc_win_info): Use new.
8487 (tui_free_window): Use delete.
8488
f95675e1
TT
84892019-06-22 Tom Tromey <tom@tromey.com>
8490
8491 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8492 declare.
8493 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8494
5bff081c
TT
84952019-06-22 Tom Tromey <tom@tromey.com>
8496
8497 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8498 declare.
8499 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8500
47e3f474
TV
85012019-06-22 Tom de Vries <tdevries@suse.de>
8502
8503 * dwarf2read.c (create_addrmap_from_aranges)
8504 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8505 instead of '%zu'.
8506
fd5866f6
SM
85072019-06-21 Simon Marchi <simon.marchi@efficios.com>
8508
8509 * dwarf2read.h (dwarf2_section_info_def): Remove.
8510 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8511 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8512 std::vector<dwarf2_section_info>.
8513 (struct dwo_file) <~dwo_file>: Remove.
8514 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8515 types field.
8516 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8517 (dwarf2_read_debug_names): Likewise.
8518 (create_debug_types_hash_table): Change parameter type to
8519 array_view, adjust code accordingly.
8520 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8521 (partial_die_info::fixup): Likewise.
8522 (determine_prefix): Likewise.
8523 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8524
fb1eb2f9
SM
85252019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8526
8527 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8528 gdb_bfd_ref_ptr.
8529 <~dwo_file>: Remove call to gdb_bfd_unref.
8530 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8531 gdb_bfd_ref_ptr::get.
8532
51ac9db5
SM
85332019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8534
8535 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8536 type to htab_up.
8537 * dwarf2read.c (struct dwo_file): Initialize fields.
8538 <~dwo_file>: New.
8539 (free_dwo_file): Remove, move content to ~dwo_file.
8540 (struct dwo_file_deleter): Remove.
8541 (dwo_file_up>: Remove custom deleter.
8542 (free_dwo_files): Remove.
8543 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8544 dwo_files.
8545 (process_skeletonless_type_units): Call unique_ptr::get.
8546 (allocate_dwo_file_hash_table): Add deleter to created hash
8547 table. Change return type to htab_up.
8548 (lookup_dwo_file_slot): Don't memset dwo_file, call
8549 unique_ptr::get.
8550 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8551 (create_dwo_unit_in_dwp_v2): Likewise.
8552 (open_and_init_dwo_file): Likewise.
8553 (free_dwo_file_from_slot): Remove.
8554
dc4ccb6f
SM
85552019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8556
8557 * dwarf2read.h (struct dwarf2_section_info) <readin,
8558 is_virtual>: Change type to bool.
8559 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8560 true instead of 1.
8561
e6a1c5cb
TT
85622019-06-19 Tom Tromey <tom@tromey.com>
8563
8564 * tui/tui-data.h (tui_init_content_element): Don't declare.
8565
6f6ffbeb
TT
85662019-06-19 Tom Tromey <tom@tromey.com>
8567
8568 * tui/tui-data.h (tui_init_win_info): Don't declare.
8569
f23f598e
TV
85702019-06-19 Tom de Vries <tdevries@suse.de>
8571
8572 * dwarf2read.h (abstract_to_concrete): Change type to
8573 std::unordered_map<sect_offset, std::vector<sect_offset>,
8574 gdb::hash_enum<sect_offset>>.
8575
680e1bee
TT
85762019-06-19 Tom Tromey <tromey@adacore.com>
8577
8578 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8579 EVAL_AVOID_SIDE_EFFECTS specially.
8580
dcf37923
TT
85812019-06-19 Tom Tromey <tromey@adacore.com>
8582
8583 * source-cache.c (highlighter): New global.
8584 (source_cache::get_source_lines): Create a highlighter on demand.
8585
494986d5
AB
85862019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8587
8588 * defs.h (deprecated_interactive_hook): Delete declaration.
8589 * interps.c (clear_interpreter_hooks): Remove use of
8590 deprecated_interactive_hook.
8591 * top.c (deprecated_interactive_hook): Delete definition.
8592 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8593
3360b6e7
TV
85942019-06-18 Tom de Vries <tdevries@suse.de>
8595
8596 PR gdb/24515
8597 * dwarf2read.h (abstract_to_concrete): Change type from
8598 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8599 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8600 * dwarf2read.c (read_variable): Update.
8601 (dwarf2_fetch_die_loc_sect_off): Update.
8602
310b3441
TV
86032019-06-17 Tom de Vries <tdevries@suse.de>
8604
8605 PR gdb/24617
8606 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8607 accessing parent[parent_len - 1].
8608
ba9777be
PP
86092019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8610
8611 PR gdb/24364
8612 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8613 call dtrace_process_dof with NULL dof.
8614
2b9f6e89
TV
86152019-06-16 Tom de Vries <tdevries@suse.de>
8616
8617 PR gdb/24445
8618 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8619
431b3ead
TT
86202019-06-16 Tom Tromey <tom@tromey.com>
8621
8622 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8623 (make_all_visible): Use address of member.
8624
d04b44a1
TT
86252019-06-16 Tom Tromey <tom@tromey.com>
8626
8627 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8628 (tui_free_window, free_content, free_content_elements): Remove
8629 unnecessary cast.
8630 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8631 cast.
8632 * tui/tui-regs.c (tui_show_register_group)
8633 (tui_display_registers_from, tui_display_reg_element_at_line):
8634 Remove unnecessary cast.
8635
bf5142e7
AB
86362019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8637
8638 * linux-nat.c (normal_mask): Delete.
8639 (_initialize_linux_nat): Don't initialise normal_mask.
8640
c4973306
SM
86412019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8642
8643 PR gdb/24445
8644 * dwarf-index-write.h (write_psymtabs_to_index): Add
8645 dwz_basename parameter.
8646 * dwarf-index-write.c (write_gdbindex): Move file writing to
8647 write_gdbindex_1. Change return type void.
8648 (assert_file_size): Move up, remove filename parameter.
8649 (write_gdbindex_1): New function.
8650 (write_debug_names): Change return type to void, call
8651 assert_file_size.
8652 (struct index_wip_file): New struct.
8653 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8654 file logic to index_wip_file. Write index for dwz file if
8655 needed.
8656 (save_gdb_index_command): Pass basename of dwz file, if present.
8657 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8658 build-id of dwz file, if present.
8659 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8660 (dwarf2_get_dwz_file): Likewise.
8661 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8662 (dwarf2_get_dwz_file): Likewise.
8663
395f9c91
TT
86642019-06-16 Tom Tromey <tom@tromey.com>
8665
8666 * coffread.c (process_coff_symbol): Use xstrdup.
8667 * value.c (create_internalvar): Use xstrdup.
8668
cafb3438
TT
86692019-06-16 Tom Tromey <tom@tromey.com>
8670
8671 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8672 * breakpoint.c (stopin_command, stopat_command)
8673 (until_break_command, decode_location_default): Remove unnecessary
8674 cast.
8675 * utils.c (subset_compare): Remove unnecessary cast.
8676 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8677 cast.
8678 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8679 cast.
8680 * infcmd.c (path_command): Remove unnecessary cast.
8681 * coffread.c (decode_type): Remove unnecessary cast.
8682 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8683 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8684 * tui/tui-stack.c (tui_show_locator_content)
8685 (tui_show_frame_info): Remove unnecessary cast.
8686 * tui/tui-win.c (tui_scroll_forward_command)
8687 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8688 (parse_scrolling_args): Remove unnecessary cast.
8689 * tui/tui-data.c (init_win_info, tui_del_window)
8690 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8691 (free_content_elements): Remove unnecessary cast.
8692 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8693 unnecessary cast.
8694 * tui/tui-source.c (tui_set_source_content)
8695 (tui_vertical_source_scroll): Remove unnecessary cast.
8696 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8697 cast.
8698 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8699 * tui/tui-regs.c (tui_display_registers_from)
8700 (tui_display_register): Remove unnecessary cast.
8701 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8702 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8703 (make_visible): Remove unnecessary cast.
8704 * tui/tui-winsource.c (tui_erase_source_content)
8705 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8706 unnecessary cast.
8707 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8708 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8709 * stabsread.c (read_type, read_array_type, read_range_type):
8710 Remove unnecessary cast.
8711 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8712 (parse_symbol, parse_type, upgrade_type, parse_external)
8713 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8714 unnecessary cast.
8715 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8716
730ead81
TT
87172019-06-16 Tom Tromey <tom@tromey.com>
8718
8719 * tui/tui-data.c (tui_alloc_generic_win_info)
8720 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8721 checks.
8722
584a927c
AB
87232019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8724 Andrew Burgess <andrew.burgess@embecosm.com>
8725
8726 * f-typeprint.c (f_print_type): Don't return early for not
8727 associated or not allocated types.
8728 (f_type_print_varspec_suffix): Add print_rank parameter and print
8729 ranks of array types in case they dangling.
8730 (f_type_print_base): Add print_rank parameter.
8731
30056ea0
AB
87322019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8733
8734 * NEWS: Mention new MI commands.
8735 * break-catch-throw.c (enum exception_event_kind): Move to
8736 breakpoint.h.
8737 (print_mention_exception_catchpoint): Output text as a single
8738 message.
8739 (catch_exception_command_1): Rename to...
8740 (catch_exception_event): ...this, make non-static, update header
8741 command, and change some parameter types.
8742 (catch_catch_command): Update for changes to
8743 catch_exception_command_1.
8744 (catch_throw_command): Likewise.
8745 (catch_rethrow_command): Likewise.
8746 * breakpoint.c (enum exception_event_kind): Delete.
8747 * breakpoint.h (enum exception_event_kind): Moved here from
8748 break-catch-throw.c.
8749 (catch_exception_event): Declare.
8750 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8751 (mi_cmd_catch_throw): New function.
8752 (mi_cmd_catch_rethrow): New function.
8753 (mi_cmd_catch_catch): New function.
8754 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8755 'catch-catch' entries.
8756 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8757 (mi_cmd_catch_rethrow): Declare.
8758 (mi_cmd_catch_catch): Declare.
8759
ec8e2b6d
AB
87602019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8761
8762 * annotate.c (annotate_source_line): Change return type to void,
8763 update implementation to match.
8764 * annotate.h (annotate_source_line): Change return type to void,
8765 update header comment.
8766 * stack.c (print_frame_info): Don't change what frame information
8767 is printed based on whether annotations are on or not.
8768
0d3abd8c
AB
87692019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8770
8771 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8772 (annotate_source): Make static.
8773 (annotate_source_line): Moved from source.c and renamed from
8774 identify_source_line. Update the return type.
8775 * annotate.h (annotate_source): Delete declaration.
8776 (annotate_source_line): Declaration moved from source.h, and
8777 renamed from identify_source_line. Return type updated.
8778 * source.c (identify_source_line): Moved to annotate.c and renamed
8779 to annotate_source_line.
8780 (info_line_command): Remove check of annotation_level.
8781 * source.h (identify_source_line): Move declaration to annotate.h
8782 and rename to annotate_source_line.
8783 * stack.c: Add 'annotate.h' include.
8784 (print_frame_info): Remove check of annotation_level before
8785 calling annotate_source_line.
8786
00df30ae
AB
87872019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8788
8789 * source-cache.c (source_cache::get_plain_source_lines): Use
8790 open_source_file_with_line_charpos instead of just
8791 open_source_file, remove call to find_source_lines.
8792 (source_cache::get_source_lines): Likewise.
8793 * source.c (find_source_lines): Make static.
8794 (get_filename_and_charpos): Renamed into...
8795 (open_source_file_with_line_charpos): ..this along with changes to
8796 return a scoped_fd, and some other minor clean ups.
8797 (identify_source_line): Use open_source_file_with_line_charpos.
8798 (search_command_helper): Use open_source_file_with_line_charpos
8799 instead of just open_source_file, remove call to
8800 find_source_lines.
8801 * source.h (open_source_file_with_line_charpos): Declare new
8802 function.
8803 (find_source_lines): Delete declaration.
8804
afda45a2
AB
88052019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8806
8807 * source.c (get_filename_and_charpos): Remove fullname
8808 parameter.
8809 (identify_source_line): Update call to get_filename_and_charpos.
8810
0735b091
TT
88112019-06-14 Tom Tromey <tromey@adacore.com>
8812
8813 PR gdb/24502:
8814 * ui-style.h (skip_ansi_escape): Update comment.
8815 * ui-file.h (class no_terminal_escape_file): New class.
8816 * ui-file.c (no_terminal_escape_file::write)
8817 (no_terminal_escape_file::puts): New methods.
8818 * cli/cli-logging.c (handle_redirections): Use
8819 no_terminal_escape_file.
8820
52ce35e2
TT
88212019-06-14 Tom Tromey <tromey@adacore.com>
8822
8823 * NEWS: Move convenience variable news above Python news.
8824
73cc7272
TT
88252019-06-14 Tom Tromey <tom@tromey.com>
8826
8827 * gnulib: Move directory to top-level.
8828 * configure.ac: Don't configure gnulib.
8829 * configure: Rebuild.
8830 * common/common-defs.h: Use new path to gnulib.
8831 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8832 (GNULIB_H): Remove.
8833 (INCGNU): Look in new gnulib location.
8834 (HFILES_NO_SRCDIR): Remove gnulib files.
8835 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8836 (generated_files): Remove GNULIB_H.
8837 ($(LIBGNU), all-lib): Remove targets.
8838 (distclean): Don't mention GNULIB_BUILDDIR.
8839 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8840
f5686554
TT
88412019-06-14 Tom Tromey <tromey@adacore.com>
8842
8843 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8844 Warn if symbol file does not provide any symbols.
8845
a0c1ffed
TT
88462019-06-14 Tom Tromey <tromey@adacore.com>
8847
8848 * source.c (find_and_open_source): Respect basenames_may_differ.
8849
7c39e397
AB
88502019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8851
8852 * annotate.c (annotate_breakpoints_invalid): Make use of
8853 scoped_restore_terminal_state.
8854 (annotate_frames_invalid): Likewise.
8855
f411722c
TT
88562019-06-14 Tom Tromey <tromey@adacore.com>
8857
8858 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8859 allow assignment to an internalvar.
8860
4268ec18
TT
88612019-06-14 Tom Tromey <tromey@adacore.com>
8862
8863 * ada-lex.l: Allow "_" in attribute names.
8864
abdb711e
TT
88652019-06-14 Tom Tromey <tromey@adacore.com>
8866
8867 PR gdb/24653:
8868 * regcache.c (registers_changed): Don't call alloca.
8869 * top.c (execute_command): Don't call alloca.
8870
4c048731
PA
88712019-06-13 Pedro Alves <palves@redhat.com>
8872
8873 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8874 'expression'. When parsing an expression, error out if there's
8875 junk after "unlimited".
8876 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8877 (do_set_command): Adjust calls to is_unlimited_literal.
8878
66eb1ed3
PA
88792019-06-13 Pedro Alves <palves@redhat.com>
8880
8881 * compile/compile.c (make_compile_options_def_group): Add braces
8882 around array_view initializer.
8883 * thread.c (make_thread_apply_all_options_def_group)
8884 (make_thread_apply_all_options_def_group): Likewise.
8885
3345721a
PA
88862019-06-13 Pedro Alves <palves@redhat.com>
8887
8888 * NEWS (New commands): Mention "maint test-options
8889 require-delimiter", "maint test-options unknown-is-error", "maint
8890 test-options unknown-is-operand" and "maint show
8891 test-options-completion-result".
8892 (New command options, command completion): New section.
8893 (Completion improvements): New section.
8894 Mention that you can abbreviate "unlimited".
8895
6206060d
PA
88962019-06-13 Pedro Alves <palves@redhat.com>
8897
8898 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8899 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8900 * unittests/cli-utils-selftests.c (test_parse_flags)
8901 (test_parse_flags_qcs): Delete.
8902 (test_cli_utils): Don't call deleted functions.
8903
6665660a
PA
89042019-06-13 Pedro Alves <palves@redhat.com>
8905
8906 * thread.c: Include "cli/cli-option.h".
8907 (tp_array_compar_ascending): Global.
8908 (tp_array_compar): Delete function.
8909 (tp_array_compar_ascending, tp_array_compar_descending): New
8910 functions.
8911 (ascending_option_def, qcs_flag_option_def)
8912 (thr_qcs_flags_option_defs)
8913 (make_thread_apply_all_options_def_group)
8914 (make_thread_apply_options_def_group): New.
8915 (thread_apply_all_command): Use gdb::option::process_options.
8916 (thread_apply_command_completer)
8917 (thread_apply_all_command_completer): New.
8918 (thread_apply_command): Use gdb::option::process_options.
8919 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8920 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8921 to generate help text of "thread apply". Adjust "taas"'s help.
8922 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8923 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8924
f7e13587
PA
89252019-06-13 Pedro Alves <palves@redhat.com>
8926
8927 * thread.c (thread_apply_command): Check for invalid TID with
8928 isdigit instead of !isalpha.
8929
5d707134
PA
89302019-06-13 Pedro Alves <palves@redhat.com>
8931
8932 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8933 (validate_flags_qcs): New.
8934 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8935 (validate_flags_qcs): Declare.
8936 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8937 (make_frame_apply_options_def_group): New.
8938 (frame_apply_command_count): Process options with
8939 gdb::option::process_options.
8940 (frame_apply_completer): New.
8941 (frame_apply_level_completer, frame_apply_all_completer)
8942 (frame_apply_completer): New.
8943 (_initialize_stack): Update help of "frame apply", "frame apply
8944 level", "frame apply all" and "faas" to mention supported options
8945 and install command completers.
8946 * stack.h (frame_apply_all_completer): Declare.
8947 * thread.c: Include "stack.h".
8948 (tfaas_command): Add "--".
8949 (_initialize_thread): Update help "tfaas" to mention supported
8950 options and install command completer.
8951
272d4594
PA
89522019-06-13 Pedro Alves <palves@redhat.com>
8953
8954 * completer.c (complete_nested_command_line): New.
8955 (gdb_completion_word_break_characters_throw): Add assertion.
8956 * completer.h (complete_nested_command_line): Declare.
8957
90a1ef87
PA
89582019-06-13 Pedro Alves <palves@redhat.com>
8959
8960 * stack.c (parse_backtrace_qualifiers): New.
8961 (backtrace_command): Use it.
8962 (backtrace_command_completer): Complete on qualifiers.
8963
d4c16835
PA
89642019-06-13 Pedro Alves <palves@redhat.com>
8965
8966 * frame.c: Include "cli/cli-option.h.
8967 (user_set_backtrace_options): New.
8968 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8969 Delete.
8970 (get_prev_frame): Adjust.
8971 (boolean_option_def, uinteger_option_def)
8972 (set_backtrace_option_defs): New.
8973 (_initialize_frame): Adjust and use
8974 gdb::option::add_setshow_cmds_for_options to install "set
8975 backtrace past-main" and "set backtrace past-entry".
8976 * frame.h: Include "cli/cli-option.h".
8977 (struct frame_print_options): Forward declare.
8978 (print_frame_arguments_all, print_frame_arguments_scalars)
8979 (print_frame_arguments_none): Declare.
8980 (print_entry_values): Delete declaration.
8981 (struct frame_print_options, user_frame_print_options): New.
8982 (struct set_backtrace_options): New.
8983 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8984 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8985 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8986 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8987 (list_args_or_locals): Add frame_print_options parameter.
8988 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8989 * python/py-framefilter.c (enumerate_args): Pass down
8990 USER_FRAME_PRINT_OPTIONS.
8991 * stack.c: Include "cli/cli-option.h".
8992 (print_frame_arguments_all, print_frame_arguments_scalars)
8993 (print_frame_arguments_none): Declare.
8994 (print_raw_frame_arguments, print_entry_values): Delete.
8995 (user_frame_print_options): New.
8996 (boolean_option_def, enum_option_def, frame_print_option_defs):
8997 New.
8998 (struct backtrace_cmd_options): New.
8999 (bt_flag_option_def): New.
9000 (backtrace_command_option_defs): New.
9001 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9002 (print_frame_arg, read_frame_arg, print_frame_args)
9003 (print_frame_info, print_frame): Add frame_print_options parameter
9004 and use it.
9005 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9006 (backtrace_command_1): Add frame_print_options and
9007 backtrace_cmd_options parameters and use them.
9008 (make_backtrace_options_def_group): New.
9009 (backtrace_command): Process command options with
9010 gdb::option::process_options.
9011 (backtrace_command_completer): New.
9012 (_initialize_stack): Extend "backtrace"'s help to mention
9013 supported options. Install completer for "backtrace".
9014 Install some settings commands with add_setshow_cmds_for_options.
9015
2daf894e
PA
90162019-06-13 Pedro Alves <palves@redhat.com>
9017
9018 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9019 and that "set/show print raw frame-arguments" are now deprecated.
9020
9021 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9022 command.
9023 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9024 * stack.c (_initialize_stack): Install "set/show print
9025 raw-frame-arguments", and deprecate "set/show print raw
9026 frame-arguments".
9027 * valprint.c (_initialize_valprint): Deprecate "set/show print
9028 raw".
9029
e6ed716c
PA
90302019-06-13 Pedro Alves <palves@redhat.com>
9031
9032 * compile/compile.c (struct compile_options): New.
9033 (compile_flag_option_def, compile_command_option_defs)
9034 (make_compile_options_def_group): New.
9035 (compile_file_command): Handle options with
9036 gdb::option::process_options.
9037 (compile_file_command_completer): New function.
9038 (compile_code_command): Handle options with
9039 gdb::option::process_options.
9040 (compile_code_command_completer): New function.
9041 (_initialize_compiler): Install completers for "compile code" and
9042 "compile file". Mention available options in "compile code" and
9043 "compile code"'s help.
9044 * completer.c (advance_to_completion_word): New, factored out from
9045 ...
9046 (advance_to_expression_complete_word_point): ... this.
9047 (advance_to_filename_complete_word_point): New.
9048 * completer.h (advance_to_filename_complete_word_point): New
9049 declaration.
9050
7d8062de
PA
90512019-06-13 Pedro Alves <palves@redhat.com>
9052
9053 * compile/compile.c: Include "cli/cli-option.h".
9054 (compile_print_value): Scope data pointer is now a
9055 value_print_options pointer; adjust.
9056 (compile_print_command): Process options. Scope data pointer is
9057 now a value_print_options pointer; adjust.
9058 (_initialize_compile): Update "compile print"'s help to include
9059 supported options. Install a completer for "compile print".
9060 * cp-valprint.c (show_vtblprint, show_objectprint)
9061 (show_static_field_print): Delete.
9062 (_initialize_cp_valprint): Don't install "set print
9063 static-members", "set print vtbl", "set print object" here.
9064 * printcmd.c: Include "cli/cli-option.h" and
9065 "common/gdb_optional.h".
9066 (print_command_parse_format): Rework to fill in a
9067 value_print_options instead of a format_data.
9068 (print_value): Change parameter type from format_data pointer to
9069 value_print_options reference. Adjust.
9070 (print_command_1): Process options. Adjust to pass down a
9071 value_print_options.
9072 (print_command_completer): New.
9073 (_initialize_printcmd): Install print_command_completer as
9074 handle_brkchars completer for the "print" command. Update
9075 "print"'s help to include supported options.
9076 * valprint.c: Include "cli/cli-option.h".
9077 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9078 here from cp-valprint.c.
9079 (boolean_option_def, uinteger_option_def)
9080 (value_print_option_defs, make_value_print_options_def_group):
9081 New. Use gdb::option::add_setshow_cmds_for_options to install
9082 "set print elements", "set print null-stop", "set print repeats",
9083 "set print pretty", "set print union", "set print array", "set
9084 print address", "set print symbol", "set print array-indexes".
9085 * valprint.h: Include <string> and "cli/cli-option.h".
9086 (make_value_print_options_def_group): Declare.
9087 (print_value): Change parameter type from format_data pointer to
9088 value_print_options reference.
9089 (print_command_completer): Declare.
9090
9d0faba9
PA
90912019-06-13 Pedro Alves <palves@redhat.com>
9092
9093 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9094 (COMMON_SFILES): Add maint-test-settings.c.
9095 * cli/cli-decode.c (boolean_enums): New global, factored out from
9096 ...
9097 (add_setshow_boolean_cmd): ... here.
9098 * cli/cli-decode.h (boolean_enums): Declare.
9099 * cli/cli-option.c: New file.
9100 * cli/cli-option.h: New file.
9101 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9102 factored out from ...
9103 (parse_cli_boolean_value(const char *)): ... this.
9104 (is_unlimited_literal): Change parameter type to pointer to
9105 pointer. Adjust and advance ARG pointer.
9106 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9107 (parse_cli_var_enum): New, factored out from ...
9108 (do_set_command): ... this. Adjust.
9109 * cli/cli-setshow.h (parse_cli_boolean_value)
9110 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9111 (parse_cli_var_enum): Declare.
9112 * cli/cli-utils.c: Include "cli/cli-option.h".
9113 (get_ulongest): New.
9114 * cli/cli-utils.h (get_ulongest): Declare.
9115 (check_for_argument): New overloads.
9116 * maint-test-options.c: New file.
9117
2c722807
PA
91182019-06-13 Pedro Alves <palves@redhat.com>
9119
9120 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9121 parse a range if "-" is at the end of the string.
9122
dee7b4c8
PA
91232019-06-13 Pedro Alves <palves@redhat.com>
9124
9125 * cli/cli-setshow.c (parse_auto_binary_operation)
9126 (parse_cli_boolean_value): Don't allow "o".
9127
dca0f6c0
PA
91282019-06-13 Pedro Alves <palves@redhat.com>
9129
9130 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9131 * NEWS: Mention maint test-settings KIND.
9132 * maint-test-settings.c: New file.
9133
597bf39d
PA
91342019-06-13 Pedro Alves <palves@redhat.com>
9135
9136 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9137 completer.
9138 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9139 "set" completers.
9140
48c410fb
PA
91412019-06-13 Pedro Alves <palves@redhat.com>
9142
9143 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9144 after item.
9145
93bcb043
PA
91462019-06-13 Pedro Alves <palves@redhat.com>
9147
9148 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9149
cbba3ecd
PA
91502019-06-13 Pedro Alves <palves@redhat.com>
9151
9152 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9153 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9154 call.
9155 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9156 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9157 calls.
9158 (check_for_argument): Skip spaces after argument.
9159
b9a3f842
PA
91602019-06-13 Pedro Alves <palves@redhat.com>
9161
9162 * thread.c (thread_apply_command): Adjust TID parsing.
9163 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9164 detected before end of string.
9165 (tid_is_in_list): Error out if LIST is invalid.
9166
3844e605
PA
91672019-06-13 Pedro Alves <palves@redhat.com>
9168
9169 * completer.c (complete_line_internal_1): Rewind completion word
9170 point.
9171 (completion_tracker::advance_custom_word_point_by): Change
9172 parameter type to int.
9173 * completer.h (completion_tracker::advance_custom_word_point_by):
9174 Likewise.
9175
00b56dbe
PA
91762019-06-13 Pedro Alves <palves@redhat.com>
9177
9178 * completer.c (advance_to_completion_word): Handle delimiters.
9179
d106773e
PA
91802019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9181
9182 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9183
08f10e02
TT
91842019-06-11 Tom Tromey <tom@tromey.com>
9185
9186 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9187 (xmalloc_failed): Move to alloc.c.
9188 * alloc.c: New file.
9189 * Makefile.in (COMMON_SFILES): Add alloc.c.
9190
1c7fe951
TT
91912019-06-11 Tom Tromey <tom@tromey.com>
9192
9193 * nat/linux-waitpid.c: Don't include server.h.
9194 (linux_debug): Remove.
9195 (my_waitpid): Update.
9196
89549d7f
TT
91972019-06-11 Tom Tromey <tromey@adacore.com>
9198
9199 * infcall.c (_initialize_infcall): Remove trailing newline from
9200 help.
9201 * user-regs.c (_initialize_user_regs): Remove trailing newline
9202 from help.
9203 * typeprint.c (_initialize_typeprint): Remove trailing newline
9204 from help.
9205 * reverse.c (_initialize_reverse): Remove trailing newlines from
9206 help.
9207 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9208 from help.
9209 * language.c (add_set_language_command): Remove trailing newline
9210 from help.
9211 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9212 help.
9213 * disasm.c (_initialize_disasm): Remove trailing newline from
9214 help.
9215 * top.c (init_main): Remove trailing newline from help.
9216 * interps.c (_initialize_interpreter): Remove trailing newline
9217 from help.
9218 * btrace.c (_initialize_btrace): Remove trailing newlines from
9219 help.
9220 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9221 from help.
9222 * python/python.c (_initialize_python): Remove trailing newline
9223 from help.
9224 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9225 help.
9226 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9227 from help. Reformat some text.
9228 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9229 from help.
9230 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9231 newline from help.
9232
86108c13
TT
92332019-06-11 Tom Tromey <tromey@adacore.com>
9234
9235 * darwin-nat.c (darwin_decode_exception_message)
9236 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9237
a7067863
AB
92382019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9239
9240 * valops.c (value_slice): Check for not allocated or not
9241 associated values.
9242
9ab08412
TV
92432019-06-10 Tom de Vries <tdevries@suse.de>
9244
9245 PR gdb/24618
9246 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9247 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9248 invalid.
9249
f19e22e9
TV
92502019-06-10 Tom de Vries <tdevries@suse.de>
9251
9252 PR gdb/24611
9253 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9254 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9255
e99f9db0
TV
92562019-06-10 Tom de Vries <tdevries@suse.de>
9257
9258 PR symtab/24545
9259 * symtab.c (struct demangled_name_entry): Add language field.
9260 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9261 static minimal symbol". Set and use language field.
9262
9bf7038b
TT
92632019-06-10 Tom Tromey <tromey@adacore.com>
9264
9265 * ada-lang.c (_initialize_ada_language): Update help text.
9266
422186a9
TT
92672019-06-10 Tom Tromey <tromey@adacore.com>
9268
9269 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9270 with a newline.
9271 * guile/guile.c (handle_boot_error): Don't end warning with a
9272 newline.
9273 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9274 warning with a newline.
9275 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9276 newline.
9277 (s12z_frame_cache): Likewise.
9278 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9279 a newline.
9280 * solib-svr4.c (disable_probes_interface): Don't end warning with
9281 a newline.
9282 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9283 newline.
9284 * python/python.c (do_finish_initialization): Don't end warning
9285 with a newline.
9286
25ce02ee
TT
92872019-06-10 Tom Tromey <tom@tromey.com>
9288
9289 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9290 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9291 gdbpy_enter.
9292
caa429d8
TT
92932019-06-10 Tom Tromey <tromey@adacore.com>
9294
9295 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9296 data.
9297 (elf_new_init): Don't call stabsread_new_init.
9298 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9299 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9300 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9301
81873cc8
TV
93022019-06-10 Tom de Vries <tdevries@suse.de>
9303
9304 PR symtab/16264
9305 PR symtab/24517
9306 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9307
4fa0265e
РИ
93082019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9309
9310 * source.c (find_and_open_source): Also rewrite relative file
9311 names.
9312
1a3da2cd
AB
93132019-04-26 Amos Bird <amosbird@gmail.com>
9314
9315 * annotate.c (annotate_thread_exited): Add "thread-exited"
9316 annotation.
9317
3847a7bf
TT
93182019-06-06 Tom Tromey <tromey@adacore.com>
9319
9320 * maint.h (class scoped_command_stats): Use
9321 DISABLE_COPY_AND_ASSIGN.
9322 <print_time>: New method.
9323 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9324 print_time.
9325 (scoped_command_stats::print_time): New method.
9326
312617a3
AB
93272019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9328
9329 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9330 instructions of lengths 6 or 8 bytes.
9331
b02f78f9
PA
93322019-06-04 Pedro Alves <palves@redhat.com>
9333
9334 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9335
9336 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9337 * breakpoint.c (condition_completer): Likewise.
9338 * cli/cli-dump.c (scan_expression): Likewise.
9339 * common/filestuff.c (mkdir_recursive): Likewise.
9340 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9341 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9342 (gdb_abspath): Likewise.
9343 * compile/compile-cplus-types.c
9344 (compile_cplus_instance::decl_name): Likewise.
9345 * completer.c (complete_explicit_location):
9346 (signal_completer, reg_or_group_completer_1): Likewise.
9347 * cp-support.c (cp_remove_params_if_any): Likewise.
9348 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9349 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9350 * infcmd.c (strip_bg_char): Likewise.
9351 * linespec.c (copy_token_string): Likewise.
9352 * mi/mi-main.c (output_cores): Likewise.
9353 * psymtab.c (psymtab_search_name):
9354 * symfile.c (test_set_ext_lang_command): Likewise.
9355 * target.c (target_fileio_read_stralloc): Likewise.
9356 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9357 * value.c (complete_internalvar): Likewise.
9358
e1f2e1a2
CB
93592019-06-04 Christian Biesinger <cbiesinger@google.com>
9360
9361 Add objfile property to gdb.Type.
d3238f7d
PA
9362 * NEWS: Mention Python API addition.
9363 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9364
e664d728
PW
93652019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9366
9367 * NEWS: Mention the new set|show style [title|highlight].
9368 Mention changes to "show style", "help" and "apropos".
9369
66d8c862
PW
93702019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9371
9372 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9373 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9374 instead of print_help_for_command.
9375 (print_doc_of_command): New function.
9376 (help_list): Add 'apropos -v word' suggestion.
9377 (print_help_for_command): Style the command name using title style.
9378 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9379 (_initialize_cli_cmds): Describe -v in apropos_command help.
9380
9303eb2f
PW
93812019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9382
9383 * cli/cli-style.h (cli_style_option): Add name in constructor,
9384 add m_name class member, add constructor with intensity,
9385 add name class function.
9386 (cli_style_option::add_setshow_commands): Remove name argument.
9387 (highlight_style, title_style): New styles.
9388 * cli/cli-style.c (do_show): New function that shows a style
9389 characteristic styling the style name with itself.
9390 (set_style_name): New function.
9391 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9392 Update all callers according to the changes in cli/cli-style.h.
9393 * utils.h (fputs_highlighted): New function.
9394 * utils.c (fputs_highlighted): Likewise.
9395
e2c52041
PW
93962019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9397
9398 * NEWS: Mention new pipe command and new convenience variables.
9399
947d3946
PW
94002019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9401
9402 * cli/cli-cmds.c (pipe_command): New function.
9403 (_initialize_cli_cmds): Call add_com for pipe_command.
9404 Define | as an alias for pipe.
9405 (exit_status_set_internal_vars): New function.
9406 (shell_escape): Call exit_status_set_internal_vars.
9407 cli/cli-decode.c (find_command_name_length): Recognize | as
9408 a single character command.
9409
b8fd0918
PW
94102019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9411
9412 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9413 top.c (execute_command_to_ui_file): New function, mostly a copy
9414 of execute_command_to_string.
9415 (execute_command_to_string): Implement by calling
9416 execute_command_to_ui_file.
9417
68bb5386
PW
94182019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9419
9420 * top.h (saved_command_line): Remove declaration.
9421 * top.c (previous_saved_command_line, previous_repeat_arguments):
9422 New variables.
9423 (saved_command_line): Make static, define together with other
9424 'repeat variables'.
9425 (dont_repeat): Clear repeat_arguments.
9426 (repeat_previous, get_saved_command_line, save_command_line):
9427 New functions.
9428 (gdb_init): Initialize saved_command_line
9429 and previous_saved_command_line.
9430 * main.c (captured_main_1): Remove saved_command_line initialization.
9431 * event-top.c (handle_line_of_input): Update to use
9432 the new 'repeat' related functions instead of direct access to
9433 saved_command_line.
9434 * command.h (repeat_previous, get_saved_command_line,
9435 save_command_line): New declarations.
9436 (dont_repeat): Add comment.
9437
bfcdb852
TT
94382019-05-30 Tom Tromey <tromey@adacore.com>
9439
9440 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9441 Fix comment.
9442 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9443
0ef209f2
JV
94442019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9445
9446 PR cli/24587
9447 * completer.c (complete): Initialize variable word.
9448
955b06fa
SDJ
94492019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9450
9451 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9452 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9453 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9454 'body' is NULL to the outter 'if', protecting the '!is_define'
9455 situation as well.
9456
fa9c3fa0
TT
94572019-05-29 Tom Tromey <tromey@adacore.com>
9458
9459 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9460 (dwarf_unknown): New function.
9461 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9462 (dwarf_type_encoding_name): Use dwarf_unknown.
9463
4330d61d
TT
94642019-05-29 Tom Tromey <tromey@adacore.com>
9465
9466 PR c++/20020:
9467 * cp-valprint.c (cp_print_value_fields): Call
9468 cp_print_static_field inside "try".
9469
33a6bc35
TT
94702019-05-29 Tom Tromey <tromey@adacore.com>
9471
9472 * inflow.c (struct terminal_info): Add default operator=.
9473 * configure: Rebuild.
9474 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9475 -Wdeprecated-copy-dtor, -Wredundant-move.
9476
000439d5
TT
94772019-05-29 Tom Tromey <tromey@adacore.com>
9478
9479 * NEWS: Add entry.
9480 * infcmd.c (print_return_value_1): Handle finish_print
9481 option.
9482 (show_print_finish): New function.
9483 (_initialize_infcmd): Add "set/show print finish" commands.
9484 * valprint.c (user_print_options): Initialize new member.
9485 * valprint.h (struct value_print_options) <finish_print>: New
9486 member.
9487
c0e70c62
TT
94882019-05-28 Tom Tromey <tromey@adacore.com>
9489
9490 * ada-lang.c (ada_remove_Xbn_suffix)
9491 (find_old_style_renaming_symbol)
9492 (parse_old_style_renaming): Remove.
9493 (ada_find_renaming_symbol): Don't call
9494 find_old_style_renaming_symbol.
9495 (ada_is_renaming_symbol): Rename from
9496 ada_find_renaming_symbol. Remove "block" parameter. Return
9497 bool. Now static.
9498 (ada_read_var_value): Update and simplify.
9499 * ada-exp.y (write_var_or_type): Remove old code.
9500
766f8836
AH
95012019-05-28 Alan Hayward <alan.hayward@arm.com>
9502
68255adc 9503 PR gdb/25010
766f8836
AH
9504 * event-top.c: Remove include comment.
9505 * inflow.c (class scoped_ignore_sigttou): Move from here...
9506 * inflow.h (class scoped_ignore_sigttou): ...to here.
9507 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9508 * top.c: Remove include comment.
9509
eb41253a
TT
95102019-05-27 Tom Tromey <tom@tromey.com>
9511
9512 * NEWS: Fix typo.
9513
4ca51187
TT
95142019-05-22 Tom Tromey <tromey@adacore.com>
9515
9516 * target.c (target_follow_exec): Constify parameter.
9517 * target-delegates.c: Rebuild.
9518 * remote.c (remote_target::follow_exec): Constify parameter.
9519 * infrun.c (follow_exec): Constify parameter.
9520 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9521 (target_follow_exec): Likewise.
9522
8fca4da0
AH
95232019-05-22 Alan Hayward <alan.hayward@arm.com>
9524
9525 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9526 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9527
b7060614
AH
95282019-05-22 Alan Hayward <alan.hayward@arm.com>
9529
9530 * NEWS: Add debugredirect and testsuite sections.
9531
0a5954bd
SC
95322019-05-22 Simon Cook <simon.cook@embecosm.com>
9533
9534 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9535 target descriptions using exclusively floating point register name
9536 aliases.
9537
dc42e902
AB
95382019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9539
9540 PR gdb/18644:
9541 * f-lang.c (build_fortran_types): Handle the case where
9542 gdbarch_floatformat_for_type returns a nullptr.
9543
fb7806c7
TV
95442019-05-21 Tom de Vries <tdevries@suse.de>
9545
9546 PR cli/24587
9547 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9548
34d11c68
AB
95492019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9550
9551 PR gdb/18644:
9552 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9553 16-byte floats.
9554 * i386-tdep.c (i386_floatformat_for_type): Use
9555 floatformats_ia64_quad for the 16-byte floating point component
9556 within a fortran 32-byte complex number.
9557
122cf0f2
AB
95582019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9559
9560 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9561 delete default constructor.
9562 (find_partial_die): Update to return const struct.
9563 (partial_die_parent_scope): Move variable declaration into scope
9564 of its use and change its type to auto.
9565 (guess_partial_die_structure_name): Likewise.
9566 (partial_die_info::fixup): Likewise.
9567
33d0e35a
TT
95682019-05-17 Tom Tromey <tromey@adacore.com>
9569
9570 * source.c (find_and_open_source): Remove cast.
9571
a45575b0
TT
95722019-05-17 Tom Tromey <tromey@adacore.com>
9573
9574 * annotate.c (annotate_source): Make "filename" const.
9575 * annotate.h (annotate_source): Use const.
9576
81f47ac2
AH
95772019-05-17 Alan Hayward <alan.hayward@arm.com>
9578
9579 * disasm.c (set_disassembler_options): Send errors to stderr.
9580
ca1285d1
AH
95812019-05-17 Alan Hayward <alan.hayward@arm.com>
9582
9583 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9584 (cli_interp_base::set_logging): Check debug_redirect.
9585 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9586 * cli/cli-logging.c (debug_redirect): Add static variable.
9587 (pop_output_files): Add default param.
9588 (handle_redirections): Print debug setting.
9589 (show_logging_command): Likewise.
9590 (_initialize_cli_logging): Add debugredirect command.
9591 * interps.c (current_interp_set_logging): Add debug_redirect
9592 parameter.
9593 * interps.h (set_logging): Add debug_redirect parameter.
9594 (current_interp_set_logging): Likewise.
9595 * mi/mi-common.h: Likewise.
9596 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9597
95982019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9599 Tom Tromey <tromey@adacore.com>
9600
9601 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9602 directly.
9603 * cli/cli-interp.h (make_logging_output): Remove declaration.
9604 * cli/cli-logging.c (make_logging_output): Remove function.
9605 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9606 directly.
9607 * ui-file.c (tee_file::tee_file): Remove bools.
9608 (tee_file::~tee_file): Remove deletes.
9609 * ui-file.h (tee_file): Remove bools.
9610
26648588
JV
96112019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9612
9613 * mi/mi-cmds.h (mi_cmd_complete): New function.
9614 * mi/mi-main.c (mi_cmd_complete): Likewise.
9615 * mi/mi-cmds.c: Define new MI command -complete.
9616 * NEWS: Mention new -complete command.
9617
6e035501
JV
96182019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9619
9620 * completer.h (complete): New function.
9621 * completer.c (complete): Likewise.
9622 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9623 function defined in completer.h.
9624
7d0e2ece
JV
96252019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9626
e79be6e5 9627 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9628
fb816e8b
TV
96292019-05-17 Tom de Vries <tdevries@suse.de>
9630
9631 PR gdb/24094
9632 * dwarf2read.c (struct cu_partial_die_info): New struct.
9633 (find_partial_die): Return cu_partial_die_info.
9634 (partial_die_parent_scope, guess_partial_die_structure_name)
9635 (partial_die_info::fixup): Handle new return type of find_partial_die.
9636
677052f2
SDJ
96372019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9638
a1726c38 9639 PR breakpoints/24541
677052f2
SDJ
9640 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9641 "std::string", simplifying the algorithm.
9642
f3da9116
SDJ
96432019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9644
9645 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9646 (stap_static_probe_ops::get_probes): Likewise.
9647
f1bb75ab
SDJ
96482019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9649
9650 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9651 '-')" and "else if".
9652 (stap_parse_single_operand): Join checks for
9653 "gdbarch_stap_parse_special_token_p" and
9654 "gdbarch_stap_parse_special_token" in the same "if" statement.
9655 Invert check when verifying for operation on register
9656 displacement.
9657
3ca58cde
SDJ
96582019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9659
9660 * stap-probe.c (stap_get_opcode): Update comment.
9661 (stap_get_expected_argument_type): Likewise.
9662 (handle_stap_probe): Likewise.
9663
af2d9bee
SDJ
96642019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9665
9666 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9667 return type to 'bool'. Adjust comment. Use 'bool' when
9668 appropriate.
9669 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9670 * stap-probe.c (stap_parse_argument_1): Likewise.
9671 (stap_is_operator): Likewise.
9672 (stap_is_generic_prefix): Likewise.
9673 (stap_is_register_prefix): Likewise.
9674 (stap_is_register_indirection_prefix): Likewise.
9675 (stap_is_integer_prefix): Likewise.
9676 (stap_generic_check_suffix): Likewise.
9677 (stap_check_integer_suffix): Likewise.
9678 (stap_check_register_suffix): Likewise.
9679 (stap_check_register_indirection_suffix): Likewise.
9680 (stap_parse_register_operand): Likewise.
9681 (stap_parse_single_operand): Likewise.
9682 (stap_parse_argument_1): Likewise.
9683 (stap_probe::get_argument_count): Likewise.
9684 (stap_is_operator): Likewise.
9685
61c9c421
TT
96862019-05-16 Tom Tromey <tromey@adacore.com>
9687
9688 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9689 keyword to foreach.
9690
9ddc1af1
SM
96912019-05-15 Simon Marchi <simon.marchi@efficios.com>
9692
9693 * linux-thread-db.c (try_thread_db_load_1): Change return type
9694 to bool.
9695 (try_thread_db_load): Likewise.
9696 (try_thread_db_load_from_pdir_1): Likewise.
9697 (try_thread_db_load_from_pdir): Likewise.
9698 (try_thread_db_load_from_sdir): Likewise.
9699 (try_thread_db_load_from_dir): Likewise.
9700 (thread_db_load_search): Likewise.
9701 (has_libpthread): Likewise.
9702 (thread_db_load): Likewise.
9703
7bede828
SDJ
97042019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9705
9706 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9707 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9708 NULL, and complain/return if that's the case.
9709
c5358db4
JD
97102019-05-15 John Darrington <john@darrington.wattle.id.au>
9711
9712 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9713 (advance, posn, abstract_read_memory): New functions.
9714 [struct mem_read_abstraction]: New struct.
9715 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9716
c408a94f
TT
97172019-05-14 Tom Tromey <tromey@adacore.com>
9718
9719 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9720 value is not lval_memory.
9721
e7bd7fba
TT
97222019-05-14 Tom Tromey <tromey@adacore.com>
9723
9724 * solib.c (info_sharedlibrary_command): Style the file name.
9725
a6d0f249
AH
97262019-05-14 Alan Hayward <alan.hayward@arm.com>
9727
9728 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9729 (aarch64_vnv_type): Likewise.
9730 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9731 * common/tdesc.c: Likewise.
9732 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9733 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9734 * features/aarch64-fpu.xml: Add ieee half view.
9735 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9736 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9737 * gdbtypes.h (struct builtin_type): Likewise.
9738 (struct objfile_type): Likewise.
9739
66b8bb74
SM
97402019-05-12 Paul Naert <paul.naert@polymtl.ca>
9741
9742 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9743 typo.
9744 * location.h (string_to_event_location): Likewise.
9745
21c219fd
JB
97462019-05-11 Joel Brobecker <brobecker@adacore.com>
9747
9748 GDB 8.3 released.
9749
13674803
SM
97502019-05-10 Simon Marchi <simon.marchi@efficios.com>
9751
9752 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9753 New variable declaration.
9754 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9755 New variable.
9756 (print_one_breakpoint): Use ui_out::test_flags and new global
9757 variable to compute use_fixed_output.
9758 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9759 Remove.
9760 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9761 (mi_multi_location_breakpoint_output_fixed): Remove.
9762 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9763 new variable.
9764 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9765 fix_multi_location_breakpoint_output flag if version >= 3.
9766 * ui-out.h (enum ui_out_flag)
9767 <fix_multi_location_breakpoint_output>: New enumerator.
9768
a9eac7f9
SM
97692019-05-10 Simon Marchi <simon.marchi@efficios.com>
9770
9771 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9772
71bed2db
TT
97732019-05-10 Tom Tromey <tromey@adacore.com>
9774
9775 * ada-lang.c (catch_ada_completer): New function.
9776 (_initialize_ada_language): Use it.
9777
24c54127
TT
97782019-05-10 Tom Tromey <tromey@adacore.com>
9779
9780 * thread.c (print_thread_info): Make "requested_threads" const.
9781 * gdbthread.h (print_thread_info): Make "requested_threads"
9782 const.
9783 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9784 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9785
7a102139
TT
97862019-05-08 Tom Tromey <tom@tromey.com>
9787
9788 * gdbtypes.c (objfile_type_data): Change type.
9789 (objfile_type, _initialize_gdbtypes): Update.
9790
924d79e2
TT
97912019-05-08 Tom Tromey <tom@tromey.com>
9792
9793 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9794 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9795 (_initialize_dwarf2_frame): Update.
9796
4c58e337
TT
97972019-05-08 Tom Tromey <tom@tromey.com>
9798
9799 * objc-lang.c (objc_objfile_data): Change type.
9800 (find_methods): Update.
9801 (_initialize_objc_lang): Remove.
9802
d772d2ab
TT
98032019-05-08 Tom Tromey <tom@tromey.com>
9804
9805 * stabsread.c (rs6000_builtin_type_data): Change type.
9806 (rs6000_builtin_type, _initialize_stabsread): Update.
9807
d11d83f4
TT
98082019-05-08 Tom Tromey <tom@tromey.com>
9809
9810 * mips-tdep.c (mips_pdr_data): Remove.
9811 (_initialize_mips_tdep): Update.
9812
9a73f0ad
TT
98132019-05-08 Tom Tromey <tom@tromey.com>
9814
9815 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9816 (hppa_init_objfile_priv_data, read_unwind_info)
9817 (find_unwind_entry, _initialize_hppa_tdep): Update.
9818
8127a2fa
TT
98192019-05-08 Tom Tromey <tom@tromey.com>
9820
9821 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9822 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9823 on obstack.
9824 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9825
91d3055d
TT
98262019-05-08 Tom Tromey <tom@tromey.com>
9827
9828 * mdebugread.c (basic_type_data): Change type.
9829 (basic_type, _initialize_mdebugread): Update.
9830
31930bd3
TT
98312019-05-08 Tom Tromey <tom@tromey.com>
9832
9833 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9834
bdb3ed9e
TT
98352019-05-08 Tom Tromey <tom@tromey.com>
9836
9837 * nto-tdep.c (nto_inferior_data_reg): Change type.
9838 (nto_inferior_data): Update.
9839 (nto_inferior_data_cleanup, nto_new_inferior_data)
9840 (_initialize_nto_tdep): Remove.
9841 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9842
f37b313d
TT
98432019-05-08 Tom Tromey <tom@tromey.com>
9844
9845 * ada-lang.c (struct ada_inferior_data): Add initializers.
9846 (ada_inferior_data): Change type.
9847 (ada_inferior_data_cleanup): Remove.
9848 (get_ada_inferior_data, ada_inferior_exit)
9849 (struct ada_pspace_data): Add initializers, destructor.
9850 (ada_pspace_data_handle): Change type.
9851 (get_ada_pspace_data): Update.
9852 (ada_pspace_data_cleanup): Remove.
9853
24699405
TT
98542019-05-08 Tom Tromey <tom@tromey.com>
9855
9856 * coffread.c (struct coff_symfile_info): Add initializers.
9857 (coff_objfile_data_key): Move lower. Change type.
9858 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9859 Update.
9860 (coff_free_info): Remove.
9861
d4e05d2f
TT
98622019-05-08 Tom Tromey <tom@tromey.com>
9863
9864 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9865 (fbsd_pspace_data_handle): Move lower. Change type.
9866 (get_fbsd_pspace_data): Update.
9867 (fbsd_pspace_data_cleanup): Remove.
9868 (_initialize_fbsd_tdep): Update.
9869
14ef6690
TT
98702019-05-08 Tom Tromey <tom@tromey.com>
9871
9872 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9873 (get_ada_tasks_pspace_data): Update.
9874 (ada_tasks_pspace_data_cleanup): Remove.
9875 (_initialize_tasks): Update.
9876 (ada_tasks_inferior_data_handle): Change type.
9877 (get_ada_tasks_inferior_data): Update.
9878 (ada_tasks_inferior_data_cleanup): Remove.
9879 (struct ada_tasks_pspace_data): Add initializers.
9880
814cf43a
TT
98812019-05-08 Tom Tromey <tom@tromey.com>
9882
9883 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9884 * symfile-debug.c (debug_sym_get_probes): Change type.
9885 * stap-probe.c (handle_stap_probe):
9886 (stap_static_probe_ops::get_probes): Change type.
9887 * probe.h (class static_probe_ops) <get_probes>: Change type.
9888 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9889 (parse_probes_in_pspace): Update.
9890 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9891 Update.
9892 (any_static_probe_ops::get_probes): Change type.
9893 * elfread.c (elfread_data): New typedef.
9894 (probe_key): Change type.
9895 (elf_get_probes): Likewise. Update.
9896 (probe_key_free): Remove.
9897 (_initialize_elfread): Update.
9898 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9899 Change type.
9900 (dtrace_process_dof_probe, dtrace_process_dof)
9901 (dtrace_static_probe_ops::get_probe): Change type.
9902
02dc647e
TT
99032019-05-08 Tom Tromey <tom@tromey.com>
9904
9905 * xcoffread.c (struct xcoff_symfile_info): Rename from
9906 coff_symfile_info. Add initializers.
9907 (xcoff_objfile_data_key): Move lower. Change type.
9908 (XCOFF_DATA): Rewrite.
9909 (xcoff_free_info): Remove.
9910 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9911 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9912 (xcoff_initial_scan): Update.
9913
09232438
TT
99142019-05-08 Tom Tromey <tom@tromey.com>
9915
9916 * solib-svr4.c (struct svr4_info): Add initializers and
9917 destructor.
9918 <probes_table>: Now an htab_up.
9919 (solib_svr4_pspace_data): Change type.
9920 (free_probes_table): Simplify.
9921 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9922 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9923 (probes_table_remove_objfile_probes, register_solib_event_probe)
9924 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9925 (_initialize_svr4_solib): Update.
9926
7b4a314f
TT
99272019-05-08 Tom Tromey <tom@tromey.com>
9928
9929 * remote.c (remote_pspace_data): Change type.
9930 (remote_pspace_data_cleanup): Remove.
9931 (get_remote_exec_file, set_pspace_remote_exec_file)
9932 (_initialize_remote): Update.
9933
51d3063a
TT
99342019-05-08 Tom Tromey <tom@tromey.com>
9935
9936 * breakpoint.c (breakpoint_objfile_key): Change type.
9937 (get_breakpoint_objfile_data): Update.
9938 (free_breakpoint_objfile_data): Remove.
9939 (_initialize_breakpoint): Update.
9940
89fb8848
TT
99412019-05-08 Tom Tromey <tom@tromey.com>
9942
9943 * linux-tdep.c (struct linux_info): Add initializers.
9944 (linux_inferior_data): Move. Change type.
9945 (invalidate_linux_cache_inf): Update.
9946 (linux_inferior_data_cleanup): Remove.
9947 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9948
e9b89e2d
TT
99492019-05-08 Tom Tromey <tom@tromey.com>
9950
9951 * auxv.c (auxv_inferior_data): Move. Change type.
9952 (auxv_inferior_data_cleanup): Remove.
9953 (invalidate_auxv_cache_inf): Rewrite.
9954 (get_auxv_inferior_data, _initialize_auxv): Update.
9955
8c42777c
TT
99562019-05-08 Tom Tromey <tom@tromey.com>
9957
9958 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9959 (symfile_debug_objfile_data_key): Change type.
9960 (symfile_debug_installed, debug_qf_has_symbols)
9961 (debug_qf_find_last_source_symtab)
9962 (debug_qf_forget_cached_source_info)
9963 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9964 (debug_qf_print_stats, debug_qf_dump)
9965 (debug_qf_expand_symtabs_for_function)
9966 (debug_qf_expand_all_symtabs)
9967 (debug_qf_expand_symtabs_with_fullname)
9968 (debug_qf_map_matching_symbols)
9969 (debug_qf_expand_symtabs_matching)
9970 (debug_qf_find_pc_sect_compunit_symtab)
9971 (debug_qf_map_symbol_filenames)
9972 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9973 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9974 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9975 (debug_sym_read_linetable, debug_sym_relocate): Update.
9976 (symfile_debug_free_objfile): Remove.
9977 (install_symfile_debug_logging, _initialize_symfile_debug):
9978 Update.
9979
5bfd760d
TT
99802019-05-08 Tom Tromey <tom@tromey.com>
9981
9982 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9983 allocate_on_obstack.
9984 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9985 (get_dwarf2_per_objfile): Update.
9986 (set_dwarf2_per_objfile): Remove.
9987 (dwarf2_has_info, dwarf2_get_section_info): Update.
9988 (dwarf2_free_objfile): Remove.
9989 (_initialize_dwarf2_read): Update.
9990
e85e19b4
TT
99912019-05-08 Tom Tromey <tom@tromey.com>
9992
9993 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9994 initializers.
9995 <unsupported_script_warning_printed,
9996 script_not_found_warning_printed>: Now bool.
9997 (auto_load_pspace_data): Change type.
9998 (~auto_load_pspace_info): Rename from
9999 auto_load_pspace_data_cleanup.
10000 (get_auto_load_pspace_data, init_loaded_scripts_info)
10001 (clear_section_scripts, maybe_print_unsupported_script_warning)
10002 (maybe_print_script_not_found_warning, _initialize_auto_load):
10003 Update.
10004
f6aa7436
TT
100052019-05-08 Tom Tromey <tom@tromey.com>
10006
10007 * objfiles.c (objfile_pspace_info): Add destructor and
10008 initializers.
10009 (objfiles_pspace_data): Change type.
10010 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10011 (get_objfile_pspace_data): Update.
10012 (objfiles_bfd_data): Change type.
10013 (get_objfile_bfd_data): Update.
10014 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10015
6ae614f6
TT
100162019-05-08 Tom Tromey <tom@tromey.com>
10017
10018 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10019 Change type.
10020 (get_catch_syscall_inferior_data): Update.
10021 (catch_syscall_inferior_data_cleanup): Remove.
10022 (_initialize_break_catch_syscall): Update.
10023
6509b8eb
TT
100242019-05-08 Tom Tromey <tom@tromey.com>
10025
10026 * inflow.c (struct terminal_info): Add destructor and
10027 initializers.
10028 (inflow_inferior_data): Change type.
10029 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10030 (get_inflow_inferior_data, inflow_inferior_exit)
10031 (swap_terminal_info, _initialize_inflow): Update.
10032
35632941
TT
100332019-05-08 Tom Tromey <tom@tromey.com>
10034
10035 * target-dcache.c (target_dcache_cleanup): Remove.
10036 (target_dcache_aspace_key): Change type.
10037 (target_dcache_init_p, target_dcache_invalidate)
10038 (target_dcache_get, target_dcache_get_or_init)
10039 (_initialize_target_dcache): Update.
10040 * dcache.h (struct dcache_deleter): New.
10041
3017b94d
TT
100422019-05-08 Tom Tromey <tom@tromey.com>
10043
10044 * symtab.c (struct symbol_cache): Add destructor and
10045 initializers.
10046 (symbol_cache_key): Move. Change type.
10047 (make_symbol_cache, free_symbol_cache): Remove.
10048 (get_symbol_cache): Update.
10049 (symbol_cache_cleanup): Remove.
10050 (ALL_PSPACES, symbol_cache_flush)
10051 (maintenance_print_symbol_cache)
10052 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10053 Update.
10054
a32ad8c5
TT
100552019-05-08 Tom Tromey <tom@tromey.com>
10056
10057 * symtab.c (struct main_info): Add destructor and initializers.
10058 (main_progspace_key): Move. Change type.
10059 (get_main_info): Update.
10060 (main_info_cleanup): Remove.
10061 (_initialize_symtab): Update.
10062
5f6e90a0
TT
100632019-05-08 Tom Tromey <tom@tromey.com>
10064
10065 * registry.h (DECLARE_REGISTRY): Define the _key class.
10066
1bd0c6e4
AB
100672019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10068
10069 * NEWS: Merge two 'New commands' sections.
10070
2228ef77
XR
100712019-05-08 Joel Brobecker <brobecker@adacore.com>
10072
10073 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10074 parameter and use Ada language definition instead.
10075 (ada_val_print_ptr): Remove unused language parameter.
10076 (ada_val_print_num): Remove language parameter and use Ada language
10077 definition instead.
10078 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10079 parameter.
10080 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10081 parameter and use Ada language definition instead.
10082 (ada_val_print_1): Update all ada_val_print_xxx calls.
10083 Remove language parameter.
10084 (ada_val_print): Update ada_val_print_1 call.
10085
60fcc1c3
TT
100862019-05-08 Tom Tromey <tromey@adacore.com>
10087
10088 * remote.c (remote_hw_watchpoint_limit)
10089 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10090 Now static.
10091
ed2b7c17
TT
100922019-05-08 Tom Tromey <tromey@adacore.com>
10093
10094 * maint.c (_initialize_maint_cmds): Move initialization code to
10095 remote.c.
10096 (watchdog, show_watchdog): Move to remote.c.
10097 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10098 "watchdog" static.
10099 (_initialize_remote): Move initialization code from maint.c.
10100 * defs.h (watchdog): Don't declare.
10101
b0be6c91
TT
101022019-05-08 Tom Tromey <tromey@adacore.com>
10103
10104 * tui/tui-interp.c: Include main.h.
10105 * interps.c: Include main.h.
10106 * main.h (interpreter_p): Declare.
10107 * defs.h (interpreter_p): Don't declare.
10108
587ee17b
TT
101092019-05-08 Tom Tromey <tromey@adacore.com>
10110
10111 * dwarf2loc.c: Include dwarf2read.h.
10112 * defs.h (read_unsigned_leb128): Don't declare.
10113 * dwarf2read.h (read_unsigned_leb128): Declare.
10114
ca1df239
TT
101152019-05-08 Tom Tromey <tromey@adacore.com>
10116
10117 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10118 method.
10119
99f20f08
TT
101202019-05-08 Tom Tromey <tromey@adacore.com>
10121
10122 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10123 when no wrap column is set.
10124
80e55b13
TT
101252019-05-08 Tom Tromey <tromey@adacore.com>
10126
10127 * c-lang.c (c_get_string): Handle non-C-style arrays.
10128
9d3421af
TT
101292019-05-08 Tom Tromey <tromey@adacore.com>
10130
10131 * typeprint.c (print_offset_data::update): Print the bit offset,
10132 not the number of bits remaining.
10133
844333e2
TT
101342019-05-08 Tom Tromey <tromey@adacore.com>
10135
10136 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10137 padding at end of comment.
10138
988915ee
TT
101392019-05-08 Tom Tromey <tromey@adacore.com>
10140
10141 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10142 Compare main types.
10143
26bfd823
TT
101442019-05-06 Tom Tromey <tom@tromey.com>
10145
10146 * common/scoped_mmap.c: Include common-defs.h.
10147 * common/scoped_mmap.h: Don't include config.h.
10148
89055eaa
TT
101492019-05-04 Tom Tromey <tom@tromey.com>
10150
10151 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10152 (struct aarch64_call_info): Add initializers.
10153 <si>: Now a std::vector.
10154 (pass_on_stack, aarch64_push_dummy_call): Update.
10155
5da01df5
TT
101562019-05-04 Simon Marchi <simon.marchi@efficios.com>
10157 Tom Tromey <tom@tromey.com>
10158
10159 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10160 (ppc_threads): Now a std::vector. Now static.
10161 (hwdebug_find_thread_points_by_tid)
10162 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10163 Update.
10164
fbdf05a1
TT
101652019-05-04 Tom Tromey <tom@tromey.com>
10166
10167 * arc-tdep.c (arc_tdesc_init): Return bool.
10168
06d16ec9
TT
101692019-05-04 Tom Tromey <tom@tromey.com>
10170
10171 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10172 Use gdb_assert_not_reached.
10173
9c056022
TT
101742019-05-04 Tom Tromey <tom@tromey.com>
10175
10176 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10177 "false".
10178
fa9c2a59
TT
101792019-05-04 Tom Tromey <tom@tromey.com>
10180
10181 * arc-tdep.c (arc_tdesc_init): Use bool.
10182
e2eb806a
TT
101832019-05-04 Tom Tromey <tom@tromey.com>
10184
10185 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10186
6fe87677
TT
101872019-05-04 Tom Tromey <tom@tromey.com>
10188
10189 * cli/cli-cmds.c (valid_command_p): Return bool.
10190
7f008c9e
TT
101912019-05-04 Tom Tromey <tom@tromey.com>
10192
10193 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10194 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10195
b6484282
RT
101962019-05-04 Raul Tambre <raul@tambre.ee>
10197
10198 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10199 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10200 operator for comparison.
10201
af97b416
TT
102022019-05-04 Tom Tromey <tom@tromey.com>
10203
10204 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10205 (lookup_partial_symbol, print_partial_symbols)
10206 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10207 (psymbol_compare): Update.
10208 (add_psymbol_to_bcache): Clear the entire psymbol.
10209 (maintenance_check_psymtabs): Update.
10210 * psympriv.h (struct partial_symbol): Don't derive from
10211 general_symbol_info.
10212 <obj_section, unrelocated_address, address,
10213 set_unrelocated_address>: Update.
10214 <ginfo>: New member.
10215 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10216 (debug_names::write_psymbols): Update.
10217
9d6d4be8
TV
102182019-05-04 Tom de Vries <tdevries@suse.de>
10219
10220 * contrib/cc-with-tweaks.sh: Support -n arg.
10221
66452beb
PW
102222019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10223
10224 * corelow.c (core_target::detach): Ensure frame cache and
10225 register caches are cleared.
10226 inferior.c (exit_inferior_1): Likewise.
10227
bde09ab7
TT
102282019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10229 Tom Tromey <tom@tromey.com>
10230
10231 * dictionary.c (collate_pending_symbols_by_language): Remove
10232 "struct" from foreach.
10233 * symtab.c (lookup_global_symbol_from_objfile)
10234 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10235 foreach.
10236 * ser-tcp.c (net_open): Remove "struct" from foreach.
10237 * objfiles.c (objfile_relocate, objfile_rebase)
10238 (objfile_has_symbols): Remove "struct" from foreach.
10239 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10240 from foreach.
10241 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10242 foreach.
10243 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10244 "struct" from foreach.
10245 * ada-lang.c (create_excep_cond_exprs)
10246 (ada_exception_catchpoint_cond_string): Remove "struct" from
10247 foreach.
10248
222a8d25
TT
102492019-05-03 Tom Tromey <tromey@adacore.com>
10250
10251 * ada-exp.y (convert_char_literal): Check suffix of each
10252 enumerator.
10253
fcd60b84
DP
102542019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10255
10256 PR ada/21406:
10257 * ada-exp.y (yywrap): Don't define.
10258 * ada-lex.l (%option): Add noyywrap
10259 (yywrap): Remove.
10260
5f2459c2
EZ
102612019-05-03 Eli Zaretskii <eliz@gnu.org>
10262
353ea2d1
EZ
10263 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10264 _WIN32_WINNT to the XP level, unless already defined to a higher
10265 level.
10266
10267 * unittests/parse-connection-spec-selftests.c:
10268 * ser-tcp.c:
10269 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10270 override.
10271
5f2459c2
EZ
10272 * symfile.c (find_separate_debug_file): Remove colon from the
10273 drive spec of DOS/Windows file names of the target, so that the
10274 file name produced from DEBUGDIR and the target's directory will
10275 be valid on DOS/Windows systems.
10276
80062eb9
AB
102772019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10278
10279 * rust-lang.c (val_print_struct): Handle printing structures
10280 containing strings.
10281
b8c05e85
TT
102822019-05-02 Tom Tromey <tromey@adacore.com>
10283
10284 * valarith.c (_initialize_valarith): Remove.
10285
4504bbde
TT
102862019-05-01 Tom Tromey <tromey@adacore.com>
10287
10288 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10289 bitfields.
10290
d48e62f4
TT
102912019-05-01 Tom Tromey <tromey@adacore.com>
10292
10293 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10294 for big-endian copies.
10295
15f18d14
AT
102962019-04-30 Ali Tamur <tamur@google.com>
10297 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10298 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10299 (read_3_bytes): New function.
10300
ab4ee614
JB
103012019-04-30 Joel Brobecker <brobecker@adacore.com>
10302
10303 * windows-nat.c (main_thread_id): Delete.
10304 (handle_output_debug_string): Replace main_thread_id by
10305 current_event.dwThreadId.
10306 (fake_create_process): Likewise.
10307 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10308 Do not set main_thread_id.
10309 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10310 current_event.dwThreadId.
10311 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10312
8ed5b76e
JB
103132019-04-30 Joel Brobecker <brobecker@adacore.com>
10314
10315 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10316 Use current_event.dwThreadId instead of main_thread_id.
10317
2ff0a947
TT
103182019-04-30 Tom Tromey <tromey@adacore.com>
10319
10320 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10321 (create_excep_cond_exprs): Iterate over program spaces.
10322 (ada_exception_catchpoint_cond_string): Examine all minimal
10323 symbols for exception types.
10324
a776957c
TT
103252019-04-30 Tom Tromey <tromey@adacore.com>
10326
10327 PR c++/24470:
10328 * dwarf2read.c (process_structure_scope): Handle case where type
10329 has template parameters but no symbol was created.
10330
bc68014d
AB
103312019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10332 Chris January <chris.january@arm.com>
10333
10334 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10335 qualifier.
10336 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10337
f1fdc960
AB
103382019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10339
10340 * f-typeprint.c (f_print_type): Update rules for printing
10341 whitespace.
10342 (f_type_print_varspec_suffix): Likewise.
10343
bf7a4de1
AB
103442019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10345 Chris January <chris.january@arm.com>
10346
10347 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10348 function arguments.
10349
bbe75b9d
AB
103502019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10351
10352 * f-lang.c (build_fortran_types): Change name of void type to
10353 lower case.
10354 * f-typeprint.c (f_type_print_base): Print the name of the void
10355 type, rather than a fixed string.
10356 * f-valprint.c (f_decorations): Use lower case void string.
10357
1db455a7
AB
103582019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10359 Chris January <chris.january@arm.com>
10360
10361 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10362 types for Fortran.
10363
b6d03bb2
AB
103642019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10365 Chris January <chris.january@arm.com>
10366 David Lecomber <david.lecomber@arm.com>
10367
10368 * f-exp.y (BINOP_INTRINSIC): New token.
10369 (exp): New parser rule handling BINOP_INTRINSIC.
10370 (f77_keywords): Add new builtin procedures.
10371 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10372 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10373 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10374 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10375 (print_unop_subexp_f): New function.
10376 (print_binop_subexp_f): New function.
10377 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10378 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10379 (dump_subexp_body_f): Likewise.
10380 (operator_check_f): Likewise.
10381 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10382 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10383
83228e93
AB
103842019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10385
10386 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10387 UNOP_KIND.
10388 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10389 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10390 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10391 (operator_length_f): New fuction.
10392 (print_subexp_f): New function.
10393 (op_name_f): New function.
10394 (dump_subexp_body_f): New function.
10395 (operator_check_f): New function.
10396 (exp_descriptor_f): Replace standard expression handling functions
10397 with new functions.
10398 * gdb/fortran-operator.def: New file.
10399 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10400 * gdb/std-operator.def: Remove UNOP_KIND.
10401
6fdcd7cc
AB
104022019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10403
10404 * std-operator.def: Remove unbalanced, stray double quote
10405 character.
10406
2e62ab40
AB
104072019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10408 Chris January <chris.january@arm.com>
10409 Daniel Everett <daniel.everett@arm.com>
10410 Nick Forrington <nick.forrington@arm.com>
10411 Richard Bunt <richard.bunt@arm.com>
10412
10413 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10414 of depth when printing anonymous structs or unions.
10415 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10416 Don't print either the top-level value, or the children if the
10417 max-depth is exceeded.
10418 (ppscm_print_children): When printing the key of a map, allow one
10419 extra level of depth.
10420 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10421 print either the top-level value, or the children if the max-depth
10422 is exceeded.
10423 (print_children): When printing the key of a map, allow one extra
10424 level of depth.
10425 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10426 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10427 (user_print_options): Initialise max_depth field.
10428 (val_print_scalar_or_string_type_p): New function.
10429 (val_print): Check to see if the max depth has been reached.
10430 (val_print_check_max_depth): Define new function.
10431 (show_print_max_depth): New function.
10432 (_initialize_valprint): Add 'print max-depth' option.
10433 * valprint.h (struct value_print_options) <max_depth>: New field.
10434 (val_print_check_max_depth): Declare new function.
10435 * NEWS: Document new feature.
10436
4be290b2
AB
104372019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10438
10439 * ada-lang.c (ada_language_defn): Initialise new field.
10440 * c-lang.c (c_is_string_type_p): New function.
10441 (c_language_defn): Initialise new field.
10442 (cplus_language_defn): Initialise new field.
10443 (asm_language_defn): Initialise new field.
10444 (minimal_language_defn): Initialise new field.
10445 * c-lang.h (c_is_string_type_p): Declare new function.
10446 * d-lang.c (d_language_defn): Initialise new field.
10447 * f-lang.c (f_is_string_type_p): New function.
10448 (f_language_defn): Initialise new field.
10449 * go-lang.c (go_is_string_type_p): New function.
10450 (go_language_defn): Initialise new field.
10451 * language.c (default_is_string_type_p): New function.
10452 (unknown_language_defn): Initialise new field.
10453 (auto_language_defn): Initialise new field.
10454 * language.h (struct language_defn) <la_is_string_type_p>: New
10455 member variable.
10456 (default_is_string_type_p): Declare new function.
10457 * m2-lang.c (m2_language_defn): Initialise new field.
10458 * objc-lang.c (objc_language_defn): Initialise new field.
10459 * opencl-lang.c (opencl_language_defn): Initialise new field.
10460 * p-lang.c (pascal_is_string_type_p): New function.
10461 (pascal_language_defn): Initialise new field.
10462 * rust-lang.c (rust_is_string_type_p): New function.
10463 (rust_language_defn): Initialise new field.
10464
721b08c6
AB
104652019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10466
10467 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10468 New field.
10469 * ada-lang.c (ada_language_defn): Initialise new field.
10470 * c-lang.c (c_language_defn): Likewise.
10471 (cplus_language_defn): Likewise.
10472 (asm_language_defn): Likewise.
10473 (minimal_language_defn): Likewise.
10474 * d-lang.c (d_language_defn): Likewise.
10475 * f-lang.c (f_language_defn): Likewise.
10476 * go-lang.c (go_language_defn): Likewise.
10477 * language.c (unknown_language_defn): Likewise.
10478 (auto_language_defn): Likewise.
10479 * m2-lang.c (m2_language_defn): Likewise.
10480 * objc-lang.c (objc_language_defn): Likewise.
10481 * opencl-lang.c (opencl_language_defn): Likewise.
10482 * p-lang.c (pascal_language_defn): Likewise.
10483 * rust-lang.c (rust_language_defn): Likewise.
10484
fc913e53
AB
104852019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10486
10487 * ada-lang.c (ada_is_character_type): Change return type to bool.
10488 (ada_is_string_type): Likewise.
10489 * ada-lang.h (ada_is_character_type): Update declaration
10490 (ada_is_string_type): Likewise.
10491
fa731fa0
PW
104922019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10493
10494 Support style in 'frame|thread apply'
10495
10496 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10497 * record.c (record_start, record_stop): Update callers of
10498 execute_command_to_string with false.
10499 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10500 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10501 methods.
10502 (class string_file): New constructor with term_out parameter.
10503 Override methods term_out and can_emit_style_escape. New member
10504 term_out.
10505 (class stdio_file): Override can_emit_style_escape.
10506 (class tee_file): Override term_out and can_emit_style_escape.
10507 * utils.h (can_emit_style_escape): Remove.
10508 * utils.c (can_emit_style_escape): Likewise.
10509 Update all callers of can_emit_style_escape (SOMESTREAM) to
10510 SOMESTREAM->can_emit_style_escape.
10511 * source-cache.c (source_cache::get_source_lines): Likewise.
10512 * stack.c (frame_apply_command_count): Call execute_command_to_string
10513 passing the term_out characteristic of the current gdb_stdout.
10514 * thread.c (thr_try_catch_cmd): Likewise.
10515 * top.c (execute_command_to_string): pass term_out parameter
10516 to construct the string_file for the command output.
10517 * ui-file.c (term_cli_styling): New function (most code moved
10518 from utils.c can_emit_style_escape).
10519 (string_file::string_file, string_file::can_emit_style_escape,
10520 stdio_file::can_emit_style_escape, tee_file::term_out,
10521 tee_file::can_emit_style_escape): New functions.
10522
136afab8
PW
105232019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10524
10525 * NEWS: Mention the new set|show may-call-functions.
10526 * infcall.c (may_call_functions_p): New variable.
10527 (show_may_call_functions_p): New function.
10528 (call_function_by_hand_dummy): Throws an error if not
10529 may-call-functions.
10530 (_initialize_infcall): Call add_setshow_boolean_cmd for
10531 may-call-functions.
10532
725cbb63
KS
105332019-04-25 Keith Seitz <keiths@redhat.com>
10534
10535 PR c++/24367
10536 * cp-support.c (inspect_type): Don't attempt substitutions
10537 of symbol with the same name.
10538
3d1cbb78
TT
105392019-04-25 Tom Tromey <tromey@adacore.com>
10540
10541 PR gdb/24475:
10542 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10543 static.
10544
94aeb44b
TT
105452019-04-25 Tom Tromey <tromey@adacore.com>
10546
10547 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10548 rvalue reference.
10549 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10550 (gdb_xml_parser::parse): Use std::move.
10551 * python/python-internal.h (gdbpy_convert_exception): Take a const
10552 reference.
10553 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10554 std::move.
10555 * python/py-utils.c (gdbpy_convert_exception): Take a const
10556 reference.
10557 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10558 Use std::move.
10559 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10560 Use std::move.
10561 * mi/mi-main.c (mi_print_exception): Take a const reference.
10562 * main.c (handle_command_errors): Take a const reference.
10563 * linespec.c (parse_linespec): Use std::move.
10564 * infcall.c (run_inferior_call): Use std::move.
10565 (call_function_by_hand_dummy): Use std::move.
10566 * exec.c (try_open_exec_file): Use std::move.
10567 * exceptions.h (exception_print, exception_fprintf)
10568 (exception_print_same): Update.
10569 * exceptions.c (print_exception, exception_print)
10570 (exception_fprintf, exception_print_same): Change parameters to
10571 const reference.
10572 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10573 * common/new-op.c: Use std::move.
10574 * common/common-exceptions.h (struct gdb_exception): Add move
10575 constructor.
10576 (struct gdb_exception_error, struct gdb_exception_quit, struct
10577 gdb_quit_bad_alloc): Change constructor to move constructor.
10578 (throw_exception): Change parameter to rvalue reference.
10579 * common/common-exceptions.c (throw_exception): Take rvalue
10580 reference.
10581 * cli/cli-interp.c (safe_execute_command): Use std::move.
10582 * breakpoint.c (insert_bp_location, location_to_sals): Use
10583 std::move.
10584
680d7fd5
TT
105852019-04-25 Tom Tromey <tromey@adacore.com>
10586
10587 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10588 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10589 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10590 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10591 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10592 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10593 guile/scm-value.c: Use unpack.
10594 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10595 gdbscm_gdb_exception.
10596 (gdbscm_throw_gdb_exception): Likewise.
10597 (struct gdbscm_gdb_exception): New.
10598 (unpack): New function.
10599 (gdbscm_wrap): Use unpack.
10600
c6fdd8b2
TT
106012019-04-25 Tom Tromey <tromey@adacore.com>
10602
10603 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10604 (gdb_rl_callback_handler): Use std::move.
10605 * common/common-exceptions.h (struct gdb_exception): Add move
10606 assignment operator.
10607 (throw_exception_sjlj): Change "exception" to const reference.
10608 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10609 (throw_exception_sjlj): Change "exception" to const reference.
10610
cc06b668
TT
106112019-04-25 Tom Tromey <tromey@adacore.com>
10612
10613 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10614 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10615 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10616 Update.
10617 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10618 Update.
10619 * mi/mi-interp.c (mi_interp::exec): Update.
10620 * linespec.c (parse_linespec): Update.
10621 * infcall.c (run_inferior_call): Update.
10622 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10623 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10624 (gdbscm_lookup_global_symbol): Update.
10625 * guile/scm-param.c (gdbscm_parameter_value): Update.
10626 * guile/scm-frame.c (gdbscm_frame_read_register)
10627 (gdbscm_frame_read_var): Update.
10628 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10629 * exec.c (try_open_exec_file): Update.
10630 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10631 (gdb_rl_callback_handler): Update.
10632 * common/common-exceptions.h (exception_none): Don't declare.
10633 * common/common-exceptions.c (exception_none): Don't define.
10634 (struct catcher) <exception>: Update.
10635 * cli/cli-interp.c (safe_execute_command): Update.
10636 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10637
cf532bd1
AT
106382019-04-25 Ali Tamur <tamur@google.com>
10639
10640 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10641 (read_attribute_value): Likewise.
10642 (dwarf2_read_addr_index): Update comment.
10643 (read_str_index): Add DW_FORM_strx.
10644 (dwarf2_string_attr): Likewise.
10645 (dwarf2_const_value_attr): Likewise.
10646 (dump_die_shallow): Likewise.
10647 (dwarf2_fetch_constant_bytes): Likewise.
10648 (skip_form_bytes): Likewise.
10649 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10650
82433e3e
SDJ
106512019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10652
10653 PR corefiles/11608
10654 PR corefiles/18187
10655 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10656 OFFSET. Verify if current mapping contains an ELF header.
10657 (linux_find_memory_regions_full): Adjust call to
10658 dump_mapping_p.
10659
723adb65
SL
106602019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10661 Kang Li <kanglictf@gmail.com>
10662
10663 PR gdb/21600
10664
10665 * dwarf2-frame.c (read_initial_length): Be consistent about using
10666 unsigned representation of length.
10667 (decode_frame_entry_1): Likewise. Check for wraparound of
10668 end pointer as well as buffer overflow.
10669
596179f7
SDJ
106702019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10671
10672 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10673 "vq".
10674
a59240a4
TT
106752019-04-24 Tom Tromey <tromey@adacore.com>
10676
10677 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10678
f872fdbb
AB
106792019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10680
10681 * s12z-tdep.c (s12z_unwind_pc): Delete.
10682 (s12z_unwind_sp): Delete.
10683 (s12z_gdbarch_init): Don't register deleted functions with
10684 gdbarch.
10685
b614e6f3
AB
106862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10687
10688 * rl78-tdep.c (rl78_unwind_sp): Delete.
10689 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10690
14faed38
AB
106912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10692
10693 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10694 (xstormy16_unwind_pc): Delete.
10695 (xstormy16_dummy_id): Delete.
10696 (xstormy16_gdbarch_init): Don't register deleted functions with
10697 gdbarch.
10698
541aad8a
AB
106992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10700
10701 * vax-tdep.c (vax_unwind_pc): Delete.
10702 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10703
29222070
AB
107042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10705
10706 * v850-tdep.c (v850_unwind_sp): Delete.
10707 (v850_unwind_pc): Delete.
10708 (v850_dummy_id): Delete.
10709 (v850_gdbarch_init): Don't register deleted functions with
10710 gdbarch.
10711
0f534d76
AB
107122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10713
10714 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10715 (tilegx_unwind_pc): Delete.
10716 (tilegx_unwind_dummy_id): Delete.
10717 (tilegx_gdbarch_init): Don't register deleted functions with
10718 gdbarch.
10719
1ba7b7f9
AB
107202019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10721
10722 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10723 (tic6x_dummy_id): Delete.
10724 (tic6x_gdbarch_init): Don't register deleted functions with
10725 gdbarch.
10726
d31f262c
AB
107272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10728
10729 * sparc-tdep.c (sparc_unwind_pc): Delete.
10730 (sparc32_gdbarch_init): Don't register deleted function with
10731 gdbarch.
10732
6d14d64d
AB
107332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10734
10735 * sh-tdep.c (sh_unwind_sp): Delete.
10736 (sh_unwind_pc): Delete.
10737 (sh_dummy_id): Delete.
10738 (sh_gdbarch_init): Don't register deleted functions with
10739 gdbarch.
10740
a40dde9d
AB
107412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10742
10743 * score-tdep.c (score_unwind_sp): Delete.
10744 (score_unwind_pc): Delete.
10745 (score_dummy_id): Delete.
10746 (score_gdbarch_init): Don't register deleted functions with
10747 gdbarch.
10748
47c47d69
AB
107492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10750
10751 * rx-tdep.c (rx_unwind_pc): Delete.
10752 (rx_unwind_sp): Delete.
10753 (rx_dummy_id): Delete.
10754 (rx_gdbarch_init): Don't register deleted functions with
10755 gdbarch. Update comment.
10756
833a4480
AB
107572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10758
10759 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10760 (rs6000_dummy_id): Delete.
10761 (rs6000_gdbarch_init): Don't register deleted functions with
10762 gdbarch.
10763
3f2cef49
AB
107642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10765
10766 * or1k-tdep.c (or1k_dummy_id): Delete.
10767 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10768
96acf884
AB
107692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10770
10771 * nios2-tdep.c (nios2_dummy_id): Delete.
10772 (nios2_unwind_sp): Delete.
10773 (nios2_gdbarch_init): Don't register deleted functions with
10774 gdbarch.
10775
ca0ab0aa
AB
107762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10777
10778 * nds32-tdep.c (nds32_dummy_id): Delete.
10779 (nds32_unwind_pc): Delete.
10780 (nds32_unwind_sp): Delete.
10781 (nds32_gdbarch_init): Don't register deleted functions with
10782 gdbarch.
10783
c8259044
AB
107842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10785
10786 * msp430-tdep.c (msp430_unwind_pc): Delete.
10787 (msp430_unwind_sp): Delete.
10788 (msp430_dummy_id): Delete.
10789 (msp430_gdbarch_init): Don't register deleted functions with
10790 gdbarch.
10791
27f113c8
AB
107922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10793
10794 * moxie-tdep.c (moxie_unwind_sp): Delete.
10795 (moxie_unwind_pc): Delete.
10796 (moxie_dummy_id): Delete.
10797 (moxie_gdbarch_init): Don't register deleted functions with
10798 gdbarch.
10799
aee6c3cd
AB
108002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10801
10802 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10803 (mn10300_unwind_pc): Delete.
10804 (mn10300_unwind_sp): Delete.
10805 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10806 mn10300_unwind_sp.
10807 (mn10300_frame_unwind_init): Don't register deleted functions with
10808 gdbarch.
10809
8e2b5aea
AB
108102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10811
10812 * mep-tdep.c (mep_unwind_pc): Delete.
10813 (mep_unwind_sp): Delete.
10814 (mep_dummy_id): Delete.
10815 (mep_gdbarch_init): Don't register deleted functions with
10816 gdbarch.
10817
43cf3ede
AB
108182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10819
10820 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10821 (m68hc11_unwind_sp): Delete.
10822 (m68hc11_gdbarch_init): Don't register deleted functions with
10823 gdbarch.
10824
5e79b7bb
AB
108252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10826
10827 * m32r-tdep.c (m32r_unwind_sp): Delete.
10828 (m32r_unwind_pc): Delete.
10829 (m32r_dummy_id): Delete.
10830 (m32r_gdbarch_init): Don't register deleted functions with
10831 gdbarch.
10832
89b268d8
AB
108332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10834
10835 * m32c-tdep.c (m32c_unwind_pc): Delete.
10836 (m32c_unwind_sp): Delete.
10837 (m32c_dummy_id): Delete.
10838 (m32c_gdbarch_init): Don't register deleted functions with
10839 gdbarch.
10840
946c28d2
AB
108412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10842
10843 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10844 (lm32_unwind_pc): Delete.
10845 (lm32_dummy_id): Delete.
10846 (lm32_gdbarch_init): Don't register deleted functions with
10847 gdbarch.
10848
bf12844a
AB
108492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10850
10851 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10852 (iq2000_unwind_pc): Delete.
10853 (iq2000_dummy_id): Delete.
10854 (iq2000_gdbarch_init): Don't register deleted functions with
10855 gdbarch.
10856
ecbc06d2
AB
108572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10858
10859 * nds32-tdep.c (nds32_type_align): Delete.
10860 (nds32_push_dummy_call): Use type_align instead.
10861
030197b4
AB
108622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10863
10864 * arm-tdep.c (arm_type_align): Only handle vector override case.
10865 (arm_push_dummy_call): Use type_align.
10866 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10867
b907456c
AB
108682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10869
10870 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10871 case.
10872 (pass_on_stack): Use type_align.
10873 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10874 function.
10875
9e97ba43
TT
108762019-04-23 Tom Tromey <tromey@adacore.com>
10877
10878 * dwarf2read.c (line_header::file_name_at): Remove unused
10879 overload.
10880
6892f601
TV
108812019-04-23 Tom de Vries <tdevries@suse.de>
10882
10883 PR gdb/24438
10884 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10885 invocation.
10886
336d760d
AT
10887
108882019-03-27 Ali Tamur <tamur@google.com>
10889
10890 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10891 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10892 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10893 (dwarf_expr_context::get_addr_index): Likewise
10894 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10895 (symbol_needs_eval_context::get_addr_index): Likewise
10896 (disassemble_dwarf_expression): Add DW_OP_addrx
10897 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10898 (read_cutu_die_from_dwo): Update comment
10899 (skip_one_die): Add DW_FORM_addrx
10900 (read_attribute_value): Likewise
10901 (var_decode_location): Add DW_OP_addrx
10902 (dwarf2_const_value_attr): Add DW_FORM_addrx
10903 (dump_die_shallow): Likewise
10904 (dwarf2_fetch_constant_bytes): Likewise
10905 (decode_locdesc): Add DW_OP_addrx
10906 (skip_form_bytes): Add DW_FORM_addrx
10907
ad9d13f8
AT
109082019-04-22 Ali Tamur <tamur@google.com>
10909
10910 * MAINTAINERS (Write After Approval): Add self.
10911
d70cc3ba
SM
109122019-04-22 Simon Marchi <simon.marchi@efficios.com>
10913
10914 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10915 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10916 (open_symbol_file_object): Likewise.
10917 (svr4_default_sos): Add info parameter.
10918 (svr4_read_so_list): Likewise.
10919 (svr4_current_sos_direct): Adjust functions calls to pass down
10920 info.
10921 (svr4_current_sos_1): Add info parameter.
10922 (svr4_current_sos): Call get_svr4_info, pass info down to
10923 svr4_current_sos_1.
10924 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10925 get_svr4_info.
10926 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10927 get_svr4_info.
10928 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10929 to get_svr4_info.
10930 (probes_table_remove_objfile_probes): Likewise.
10931 (register_solib_event_probe): Add info parameter.
10932 (solist_update_incremental): Pass info parameter down to
10933 svr4_read_so_list.
10934 (disable_probes_interface): Add info parameter.
10935 (svr4_handle_solib_event): Pass current_program_space to
10936 get_svr4_info. Adjust disable_probes_interface cleanup.
10937 (svr4_create_probe_breakpoints): Add info parameter, pass it
10938 down to register_solib_event_probe.
10939 (svr4_create_solib_event_breakpoints): Add info parameter,
10940 pass it down to svr4_create_probe_breakpoints.
10941 (enable_break): Pass info down to
10942 svr4_create_solib_event_breakpoints.
10943 (svr4_solib_create_inferior_hook): Pass current_program_space to
10944 get_svr4_info.
10945 (svr4_clear_solib): Likewise.
10946
7905fc35
PA
109472019-04-22 Pedro Alves <palves@redhat.com>
10948
10949 * solib-svr4.c (svr4_free_objfile_observer): New.
10950 (probe_and_action::objfile): New field.
10951 (probes_table_htab_remove_objfile_probes)
10952 (probes_table_remove_objfile_probes): New functions.
10953 (register_solib_event_probe): Add 'objfile' parameter. Store it
10954 in the new probe_and_action. Don't store the probe in 'lookup'.
10955 (svr4_create_probe_breakpoints): Pass objfile to
10956 register_solib_event_probe.
10957 (_initialize_svr4_solib): Register a free_objfile observer.
10958
fb881986
TT
109592019-04-19 Tom Tromey <tom@tromey.com>
10960
10961 * common/queue.h: Remove.
10962
8732db6c
TT
109632019-04-19 Tom Tromey <tom@tromey.com>
10964
10965 * event-loop.c: Don't include "common/queue.h".
10966
97dfbadd
TT
109672019-04-19 Tom Tromey <tom@tromey.com>
10968
10969 * remote.c (remote_target): Use delete.
10970 * remote-notif.h: Include <list>, not "common/queue.h".
10971 (notif_client_p): Remove typedef.
10972 (remote_notif_state): Add constructor, destructor, initializer.
10973 <notif_queue>: Now a std::list.
10974 (remote_notif_state_xfree): Don't declare.
10975 * remote-notif.c (remote_notif_process, handle_notification)
10976 (remote_notif_state_allocate): Update.
10977 (~remote_notif_state): Rename from remote_notif_state_xfree.
10978
cf250e36
TT
109792019-04-19 Tom Tromey <tom@tromey.com>
10980
10981 * symfile.c (reread_symbols): Update.
10982 * objfiles.c (objfile_register_static_link)
10983 (objfile_lookup_static_link): Update
10984 (~objfile) Don't delete static_links.
10985 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10986
61f4b350
TT
109872019-04-19 Tom Tromey <tom@tromey.com>
10988
10989 * type-stack.h (struct type_stack) <insert>: Constify string.
10990 * type-stack.c (type_stack::insert): Constify string.
10991 * gdbtypes.h (lookup_template_type): Update.
10992 (address_space_name_to_int): Update.
10993 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10994 const.
10995 (lookup_template_type): Make name const.
10996 * c-exp.y: Update rules.
10997 (lex_one_token, classify_name, classify_inner_name)
10998 (c_print_token): Update.
10999 * p-exp.y: Update rules.
11000 (yylex): Update.
11001 * f-exp.y: Update rules.
11002 (yylex): Update.
11003 * d-exp.y: Update rules.
11004 (lex_one_token, classify_name, classify_inner_name): Update.
11005 * parse.c (write_dollar_variable, copy_name): Return std::string.
11006 * parser-defs.h (copy_name): Change return type.
11007 * m2-exp.y: Update rules.
11008 (yylex): Update.
11009 * go-exp.y (lex_one_token): Update.
11010 Update rules.
11011 (classify_unsafe_function, classify_packaged_name)
11012 (classify_name, yylex): Update.
11013
189b8c2e
ST
110142019-04-19 Sergei Trofimovich <siarheit@google.com>
11015
11016 * configure.ac: add --enable-source-highlight switch.
11017 * configure: Regenerate.
11018 * top.c (print_gdb_version): plumb --enable-source-highlight
11019 status to "show configuration".
11020
8ecb59f8
TT
110212019-04-19 Tom Tromey <tromey@adacore.com>
11022
11023 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11024 Check ADA_TYPE_P.
11025 (empty_record, ada_template_to_fixed_record_type_1)
11026 (template_to_static_fixed_type)
11027 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11028 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11029 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11030 macros.
11031
62160ec9
TT
110322019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11033
11034 PR symtab/24423:
11035 * source.c (print_source_lines_base): Advance "iter" when a
11036 control character is seen.
11037
f2ae8bc8
PW
110382019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11039
11040 * inferior.h (struct infcall_suspend_state_deleter):
11041 Catch exception in destructor to avoid crash.
11042
d563b953
PW
110432019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11044
11045 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11046 close to the add_com "shell".
11047
dc34c897
TT
110482019-04-18 Tom Tromey <tromey@adacore.com>
11049
11050 * process-stratum-target.h (class process_stratum_target)
11051 <stratum>: Add "final".
11052
a12e5744
TT
110532019-04-17 Tom Tromey <tromey@adacore.com>
11054
11055 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11056 against nullptr before use.
11057
a7e559cc
AH
110582019-04-17 Alan Hayward <alan.hayward@arm.com>
11059
11060 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11061
c01660c6
AB
110622019-04-17 Jim Wilson <jimw@sifive.com>
11063 Andrew Burgess <andrew.burgess@embecosm.com>
11064
11065 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11066 code read might fail, assume 4-byte breakpoint in that case.
11067
4aa866af
LS
110682019-04-15 Leszek Swirski <leszeks@google.com>
11069
11070 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11071 rather than a hand-rolled POD check when checking for forced MEMORY
11072 classification.
11073
48574d91
AH
110742019-04-15 Alan Hayward <alan.hayward@arm.com>
11075
11076 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11077 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11078 function.
11079 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11080 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11081 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11082 declaration.
11083
4da037ef
AH
110842019-04-15 Alan Hayward <alan.hayward@arm.com>
11085
11086 * aarch64-linux-nat.c
11087 (aarch64_linux_nat_target::thread_architecture): Add override.
11088 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11089 each VQ.
11090
ccb8d7e8
AH
110912019-04-15 Alan Hayward <alan.hayward@arm.com>
11092
11093 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11094
35add35e
AB
110952019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11096
11097 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11098 target types of size 96-bits, add some additional comments, and
11099 check that the builtin type we found was the correct size.
11100
51196bbc
EZ
111012019-04-12 Eli Zaretskii <eliz@gnu.org>
11102
11103 * utils.c (prompt_for_continue): Don't restore the styling at the
11104 end, as applied_style has the wrong value. This fixes styling in
11105 long lists of file names that are interrupted by the "Continue?"
11106 prompt.
11107
62253a61
AB
111082019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11109
11110 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11111 * c-lang.c (c_language_defn): Likewise.
11112 (cplus_language_defn): Likewise.
11113 (asm_language_defn): Likewise.
11114 (minimal_language_defn): Likewise.
11115 * d-lang.c (d_language_defn): Likewise.
11116 * f-lang.c (f_language_defn): Likewise.
11117 * go-lang.c (go_language_defn): Likewise.
11118 * language.c (unknown_language_defn): Likewise.
11119 (auto_language_defn): Likewise.
11120 * language.h (struct language_defn): Remove la_magic field.
11121 (LANG_MAGIC): Delete.
11122 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11123 * objc-lang.c (objc_language_defn): Likewise.
11124 * opencl-lang.c (opencl_language_defn): Likewise.
11125 * p-lang.c (pascal_language_defn): Likewise.
11126 * rust-lang.c (rust_language_defn): Likewise.
11127
a9158a86
AB
111282019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11129
11130 * riscv-tdep.c (riscv_type_align): New function.
11131 (riscv_type_alignment): Delete.
11132 (riscv_arg_location): Use 'type_align'.
11133 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11134
41077b66
AB
111352019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11136
11137 * gdbtypes.c (type_align): A struct with no non-static fields also
11138 has alignment of 1.
11139
9f0272f8
AB
111402019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11141
11142 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11143 component to 0.
11144 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11145 member.
11146 (riscv_struct_info::analyse): New implementation using new
11147 analyse_inner member function.
11148 (riscv_struct_info::field_offset): New member function.
11149 (riscv_struct_info::m_offsets): New member variable.
11150 (riscv_struct_info::analyse_inner): New private member function,
11151 takes the old implementation of riscv_struct_info::analyse but
11152 extended to track field offsets.
11153 (riscv_call_arg_struct): Update the struct folding special cases
11154 to handle cases where empty C++ structs, which are non-zero
11155 length, are found.
11156 (riscv_arg_location): Initialise the length of each location, a
11157 non-zero length now indicates the location is in use.
11158 (riscv_push_dummy_call): Allow for the first location having a
11159 non-zero offset when setting up arguments.
11160 (riscv_return_value): Likewise, but for return values.
11161
02cf60c7
TT
111622019-04-11 Tom Tromey <tromey@adacore.com>
11163
11164 * utils.c (internal_vproblem): Make "msg" const.
11165
68811f8f
AH
111662019-04-11 Alan Hayward <alan.hayward@arm.com>
11167
11168 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11169 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11170 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11171 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11172
3f52fdbc
KB
111732019-04-10 Kevin Buettner <kevinb@redhat.com>
11174
11175 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11176 function.
11177 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11178 of amd64_collect_native_gregset.
11179 (amd64_linux_nat_target::store_registers): Likewise.
11180
e9ad22ee
TT
111812019-04-10 Tom Tromey <tom@tromey.com>
11182
11183 * symtab.c (lookup_global_symbol_from_objfile)
11184 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11185 * objfiles.h (class separate_debug_iterator): New.
11186 (class separate_debug_range): New.
11187 (struct objfile) <separate_debug_objfiles>: New method.
11188 (objfile_separate_debug_iterate): Don't declare.
11189 * objfiles.c (separate_debug_iterator::operator++): Rename from
11190 objfile_separate_debug_iterate.
11191 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11192 iterator.
11193 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11194 iterator.
11195
ee371134
TT
111962019-04-10 Tom Tromey <tom@tromey.com>
11197
11198 * symfile.c (reread_symbols): Remove old comment.
11199 * objfiles.c (free_all_objfiles): Fix a typo.
11200
bf227d61
TT
112012019-04-10 Tom Tromey <tom@tromey.com>
11202
11203 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11204 * minsyms.c (lookup_minimal_symbol): Use foreach.
11205 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11206 (lookup_minimal_symbol_solib_trampoline): Likewise.
11207 * symfile.c (reread_symbols): Use foreach.
11208
8dc433a0
TT
112092019-04-09 Ivan Begert <ivanbegert@gmail.com>
11210 Tom Tromey <tromey@adacore.com>
11211
11212 PR rust/24414:
11213 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11214 (rust_lex_int_test): Change "value" to be LONGEST.
11215 (rust_lex_tests): Add test for long integer literal.
11216
9ab8741a
TT
112172019-04-09 Tom Tromey <tromey@adacore.com>
11218
11219 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11220 to bool.
11221 (extended_remote_target::attach): Update.
11222 (remote_target::remote_notice_new_inferior): Update.
11223 (remote_target::add_current_inferior_and_thread): Update.
11224 * inferior.c (exit_inferior_1): Use "false".
11225 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11226
e242fd12
SM
112272019-04-09 Simon Marchi <simon.marchi@efficios.com>
11228
9ca1957f 11229 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11230 the "start" command.
11231
2b0c8b01
KB
112322019-04-08 Kevin Buettner <kevinb@redhat.com>
11233
11234 * python/py-inferior.c (infpy_thread_from_thread_handle):
11235 Adjust comments to reflect renaming of thread_from_thread_handle
11236 to thread_from_handle. Adjust keywords. Fix type error message.
11237 (inferior_object_methods): Add thread_from_handle. Retain
11238 thread_from_thread_handle, but mark it as deprecated.
11239
50a82723
KB
112402019-04-08 Kevin Buettner <kevinb@redhat.com>
11241
11242 * gdbthread.h (find_thread_by_handle): Revise declaration.
11243 * thread.c (find_thread_by_handle): Likewise. Adjust
11244 implementation too.
11245 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11246 support for buffer objects as handles.
11247
cf63b016
KB
112482019-04-08 Kevin Buettner <kevinb@redhat.com>
11249
11250 * python/py-infthread.c (thpy_thread_handle): New function.
11251 (thread_object_methods): Register thpy_thread_handle.
11252
3d6c6204
KB
112532019-04-08 Kevin Buettner <kevinb@redhat.com>
11254
11255 * gdbthread.h (thread_to_thread_handle): Declare.
11256 * thread.c (gdbtypes.h): Include.
11257 (thread_to_thread_handle): New function.
11258
11259 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11260 (target_thread_info_to_thread_handle): Declare.
11261 * target.c (target_thread_info_to_thread_handle): New function.
11262 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11263 * target-delegates.c: Regenerate.
11264
11265 * linux-thread-db.c (class thread_db_target): Add method
11266 thread_info_to_thread_handle.
11267 (thread_db_target::thread_info_to_thread_handle): Define.
11268 * remote.c (class remote_target): Add new method
11269 thread_info_to_thread_handle.
11270 (remote_target::thread_info_to_thread_handle): Define.
11271
56be6ea8
PA
112722019-04-08 Pedro Alves <palves@redhat.com>
11273
11274 * common/common-exceptions.c (throw_exception): Don't create
11275 named object to throw; throw directly.
11276 (throw_it): Likewise. Don't initialize gdb_exception::message
11277 here, with new; pass FMT and AP to the ctor instead.
11278 * common/common-exceptions.h: Include <string>.
11279 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11280 const char *, va_list)): New ctor. Use std::make_shared.
11281 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11282 errors)): Delete.
11283 (gdb_exception_error::gdb_exception_error(enum errors, const char
11284 *, va_list)): New.
11285 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11286 Add assertion.
11287 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11288 errors)): Delete.
11289 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11290 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11291 Add assertion.
11292
eedc3f4f
TT
112932019-04-08 Tom Tromey <tom@tromey.com>
11294
11295 * valops.c (value_rtti_indirect_type): Replace throw_exception
11296 with throw.
11297 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11298 with throw.
11299 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11300 throw.
11301 * target.c (target_translate_tls_address): Replace throw_exception
11302 with throw.
11303 * stack.c (frame_apply_command_count): Replace throw_exception
11304 with throw.
11305 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11306 throw.
11307 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11308 with throw.
11309 * rs6000-tdep.c (rs6000_frame_cache)
11310 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11311 * remote.c: Replace throw_exception with throw.
11312 * record-full.c (record_full_message, record_full_wait_1)
11313 (record_full_restore): Replace throw_exception with throw.
11314 * record-btrace.c:
11315 (get_thread_current_frame_id, record_btrace_start_replaying)
11316 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11317 (cmd_record_btrace_start): Replace throw_exception with throw.
11318 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11319 throw.
11320 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11321 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11322 * linespec.c:
11323 (find_linespec_symbols): Replace throw_exception with throw.
11324 * infrun.c (displaced_step_prepare, resume): Replace
11325 throw_exception with throw.
11326 * infcmd.c (post_create_inferior): Replace throw_exception with
11327 throw.
11328 * inf-loop.c (inferior_event_handler): Replace throw_exception
11329 with throw.
11330 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11331 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11332 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11333 (get_prev_frame_always, get_frame_pc_if_available)
11334 (get_frame_address_in_block_if_available, get_frame_language):
11335 Replace throw_exception with throw.
11336 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11337 throw_exception with throw.
11338 * eval.c (fetch_subexp_value, evaluate_var_value)
11339 (evaluate_funcall, evaluate_subexp_standard): Replace
11340 throw_exception with throw.
11341 * dwarf2loc.c (call_site_find_chain)
11342 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11343 Replace throw_exception with throw.
11344 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11345 with throw.
11346 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11347 throw.
11348 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11349 * completer.c (complete_line_internal): Replace throw_exception
11350 with throw.
11351 * compile/compile-object-run.c (compile_object_run): Replace
11352 throw_exception with throw.
11353 * cli/cli-script.c (process_next_line): Replace throw_exception
11354 with throw.
11355 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11356 (btrace_enable, btrace_maint_update_pt_packets): Replace
11357 throw_exception with throw.
11358 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11359 throw_exception with throw.
11360 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11361 throw_exception with throw.
11362 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11363 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11364 * aarch64-tdep.c (aarch64_make_prologue_cache)
11365 (aarch64_make_stub_cache): Replace throw_exception with throw.
11366
26003a20
TT
113672019-04-08 Tom Tromey <tom@tromey.com>
11368
11369 * common/common-exceptions.c (throw_exception): Rename from
11370 throw_exception_cxx. Remove old copy. Make argument const.
11371 (throw_it): Create and throw exception objects directly.
11372 * common/common-exceptions.h (throw_exception): Make argument
11373 const.
11374 (struct gdb_exception_error): Add constructor.
11375 (struct gdb_exception_quit): Add constructor.
11376
d272eb37
TT
113772019-04-08 Tom Tromey <tom@tromey.com>
11378
11379 * common/common-exceptions.h (exception_rethrow): Don't declare.
11380 (TRY_SJLJ): Update comment.
11381 (TRY, CATCH, END_CATCH): Remove.
11382 * common/common-exceptions.c (exception_rethrow): Remove.
11383
230d2906
TT
113842019-04-08 Tom Tromey <tom@tromey.com>
11385
11386 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11387 Remove.
11388 (gdb_exception_error): Rename from
11389 gdb_exception_RETURN_MASK_ERROR.
11390 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11391 (gdb_quit_bad_alloc): Update.
11392 * aarch64-tdep.c: Update.
11393 * ada-lang.c: Update.
11394 * ada-typeprint.c: Update.
11395 * ada-valprint.c: Update.
11396 * amd64-tdep.c: Update.
11397 * arch-utils.c: Update.
11398 * break-catch-throw.c: Update.
11399 * breakpoint.c: Update.
11400 * btrace.c: Update.
11401 * c-varobj.c: Update.
11402 * cli/cli-cmds.c: Update.
11403 * cli/cli-interp.c: Update.
11404 * cli/cli-script.c: Update.
11405 * common/common-exceptions.c: Update.
11406 * common/new-op.c: Update.
11407 * common/selftest.c: Update.
11408 * compile/compile-c-symbols.c: Update.
11409 * compile/compile-cplus-symbols.c: Update.
11410 * compile/compile-object-load.c: Update.
11411 * compile/compile-object-run.c: Update.
11412 * completer.c: Update.
11413 * corelow.c: Update.
11414 * cp-abi.c: Update.
11415 * cp-support.c: Update.
11416 * cp-valprint.c: Update.
11417 * darwin-nat.c: Update.
11418 * disasm-selftests.c: Update.
11419 * dtrace-probe.c: Update.
11420 * dwarf-index-cache.c: Update.
11421 * dwarf-index-write.c: Update.
11422 * dwarf2-frame-tailcall.c: Update.
11423 * dwarf2-frame.c: Update.
11424 * dwarf2loc.c: Update.
11425 * dwarf2read.c: Update.
11426 * eval.c: Update.
11427 * event-loop.c: Update.
11428 * event-top.c: Update.
11429 * exec.c: Update.
11430 * f-valprint.c: Update.
11431 * fbsd-tdep.c: Update.
11432 * frame-unwind.c: Update.
11433 * frame.c: Update.
11434 * gdbtypes.c: Update.
11435 * gnu-v3-abi.c: Update.
11436 * guile/guile-internal.h: Update.
11437 * guile/scm-block.c: Update.
11438 * guile/scm-breakpoint.c: Update.
11439 * guile/scm-cmd.c: Update.
11440 * guile/scm-disasm.c: Update.
11441 * guile/scm-frame.c: Update.
11442 * guile/scm-lazy-string.c: Update.
11443 * guile/scm-math.c: Update.
11444 * guile/scm-param.c: Update.
11445 * guile/scm-ports.c: Update.
11446 * guile/scm-pretty-print.c: Update.
11447 * guile/scm-symbol.c: Update.
11448 * guile/scm-symtab.c: Update.
11449 * guile/scm-type.c: Update.
11450 * guile/scm-value.c: Update.
11451 * i386-linux-tdep.c: Update.
11452 * i386-tdep.c: Update.
11453 * inf-loop.c: Update.
11454 * infcall.c: Update.
11455 * infcmd.c: Update.
11456 * infrun.c: Update.
11457 * jit.c: Update.
11458 * language.c: Update.
11459 * linespec.c: Update.
11460 * linux-fork.c: Update.
11461 * linux-nat.c: Update.
11462 * linux-tdep.c: Update.
11463 * linux-thread-db.c: Update.
11464 * main.c: Update.
11465 * mi/mi-cmd-break.c: Update.
11466 * mi/mi-cmd-stack.c: Update.
11467 * mi/mi-interp.c: Update.
11468 * mi/mi-main.c: Update.
11469 * objc-lang.c: Update.
11470 * p-valprint.c: Update.
11471 * parse.c: Update.
11472 * ppc-linux-tdep.c: Update.
11473 * printcmd.c: Update.
11474 * python/py-arch.c: Update.
11475 * python/py-breakpoint.c: Update.
11476 * python/py-cmd.c: Update.
11477 * python/py-finishbreakpoint.c: Update.
11478 * python/py-frame.c: Update.
11479 * python/py-framefilter.c: Update.
11480 * python/py-gdb-readline.c: Update.
11481 * python/py-inferior.c: Update.
11482 * python/py-infthread.c: Update.
11483 * python/py-lazy-string.c: Update.
11484 * python/py-linetable.c: Update.
11485 * python/py-objfile.c: Update.
11486 * python/py-param.c: Update.
11487 * python/py-prettyprint.c: Update.
11488 * python/py-progspace.c: Update.
11489 * python/py-record-btrace.c: Update.
11490 * python/py-record.c: Update.
11491 * python/py-symbol.c: Update.
11492 * python/py-type.c: Update.
11493 * python/py-unwind.c: Update.
11494 * python/py-utils.c: Update.
11495 * python/py-value.c: Update.
11496 * python/python.c: Update.
11497 * record-btrace.c: Update.
11498 * record-full.c: Update.
11499 * remote-fileio.c: Update.
11500 * remote.c: Update.
11501 * riscv-tdep.c: Update.
11502 * rs6000-aix-tdep.c: Update.
11503 * rs6000-tdep.c: Update.
11504 * rust-exp.y: Update.
11505 * rust-lang.c: Update.
11506 * s390-tdep.c: Update.
11507 * selftest-arch.c: Update.
11508 * solib-dsbt.c: Update.
11509 * solib-frv.c: Update.
11510 * solib-spu.c: Update.
11511 * solib-svr4.c: Update.
11512 * solib.c: Update.
11513 * sparc64-linux-tdep.c: Update.
11514 * stack.c: Update.
11515 * symfile-mem.c: Update.
11516 * symmisc.c: Update.
11517 * target.c: Update.
11518 * thread.c: Update.
11519 * top.c: Update.
11520 * tracefile-tfile.c: Update.
11521 * tui/tui.c: Update.
11522 * typeprint.c: Update.
11523 * unittests/cli-utils-selftests.c: Update.
11524 * unittests/parse-connection-spec-selftests.c: Update.
11525 * valops.c: Update.
11526 * valprint.c: Update.
11527 * value.c: Update.
11528 * varobj.c: Update.
11529 * windows-nat.c: Update.
11530 * x86-linux-nat.c: Update.
11531 * xml-support.c: Update.
11532
a70b8144
TT
115332019-04-08 Tom Tromey <tom@tromey.com>
11534
11535 * xml-support.c: Use C++ exception handling.
11536 * x86-linux-nat.c: Use C++ exception handling.
11537 * windows-nat.c: Use C++ exception handling.
11538 * varobj.c: Use C++ exception handling.
11539 * value.c: Use C++ exception handling.
11540 * valprint.c: Use C++ exception handling.
11541 * valops.c: Use C++ exception handling.
11542 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11543 handling.
11544 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11545 * typeprint.c: Use C++ exception handling.
11546 * tui/tui.c: Use C++ exception handling.
11547 * tracefile-tfile.c: Use C++ exception handling.
11548 * top.c: Use C++ exception handling.
11549 * thread.c: Use C++ exception handling.
11550 * target.c: Use C++ exception handling.
11551 * symmisc.c: Use C++ exception handling.
11552 * symfile-mem.c: Use C++ exception handling.
11553 * stack.c: Use C++ exception handling.
11554 * sparc64-linux-tdep.c: Use C++ exception handling.
11555 * solib.c: Use C++ exception handling.
11556 * solib-svr4.c: Use C++ exception handling.
11557 * solib-spu.c: Use C++ exception handling.
11558 * solib-frv.c: Use C++ exception handling.
11559 * solib-dsbt.c: Use C++ exception handling.
11560 * selftest-arch.c: Use C++ exception handling.
11561 * s390-tdep.c: Use C++ exception handling.
11562 * rust-lang.c: Use C++ exception handling.
11563 * rust-exp.y: Use C++ exception handling.
11564 * rs6000-tdep.c: Use C++ exception handling.
11565 * rs6000-aix-tdep.c: Use C++ exception handling.
11566 * riscv-tdep.c: Use C++ exception handling.
11567 * remote.c: Use C++ exception handling.
11568 * remote-fileio.c: Use C++ exception handling.
11569 * record-full.c: Use C++ exception handling.
11570 * record-btrace.c: Use C++ exception handling.
11571 * python/python.c: Use C++ exception handling.
11572 * python/py-value.c: Use C++ exception handling.
11573 * python/py-utils.c: Use C++ exception handling.
11574 * python/py-unwind.c: Use C++ exception handling.
11575 * python/py-type.c: Use C++ exception handling.
11576 * python/py-symbol.c: Use C++ exception handling.
11577 * python/py-record.c: Use C++ exception handling.
11578 * python/py-record-btrace.c: Use C++ exception handling.
11579 * python/py-progspace.c: Use C++ exception handling.
11580 * python/py-prettyprint.c: Use C++ exception handling.
11581 * python/py-param.c: Use C++ exception handling.
11582 * python/py-objfile.c: Use C++ exception handling.
11583 * python/py-linetable.c: Use C++ exception handling.
11584 * python/py-lazy-string.c: Use C++ exception handling.
11585 * python/py-infthread.c: Use C++ exception handling.
11586 * python/py-inferior.c: Use C++ exception handling.
11587 * python/py-gdb-readline.c: Use C++ exception handling.
11588 * python/py-framefilter.c: Use C++ exception handling.
11589 * python/py-frame.c: Use C++ exception handling.
11590 * python/py-finishbreakpoint.c: Use C++ exception handling.
11591 * python/py-cmd.c: Use C++ exception handling.
11592 * python/py-breakpoint.c: Use C++ exception handling.
11593 * python/py-arch.c: Use C++ exception handling.
11594 * printcmd.c: Use C++ exception handling.
11595 * ppc-linux-tdep.c: Use C++ exception handling.
11596 * parse.c: Use C++ exception handling.
11597 * p-valprint.c: Use C++ exception handling.
11598 * objc-lang.c: Use C++ exception handling.
11599 * mi/mi-main.c: Use C++ exception handling.
11600 * mi/mi-interp.c: Use C++ exception handling.
11601 * mi/mi-cmd-stack.c: Use C++ exception handling.
11602 * mi/mi-cmd-break.c: Use C++ exception handling.
11603 * main.c: Use C++ exception handling.
11604 * linux-thread-db.c: Use C++ exception handling.
11605 * linux-tdep.c: Use C++ exception handling.
11606 * linux-nat.c: Use C++ exception handling.
11607 * linux-fork.c: Use C++ exception handling.
11608 * linespec.c: Use C++ exception handling.
11609 * language.c: Use C++ exception handling.
11610 * jit.c: Use C++ exception handling.
11611 * infrun.c: Use C++ exception handling.
11612 * infcmd.c: Use C++ exception handling.
11613 * infcall.c: Use C++ exception handling.
11614 * inf-loop.c: Use C++ exception handling.
11615 * i386-tdep.c: Use C++ exception handling.
11616 * i386-linux-tdep.c: Use C++ exception handling.
11617 * guile/scm-value.c: Use C++ exception handling.
11618 * guile/scm-type.c: Use C++ exception handling.
11619 * guile/scm-symtab.c: Use C++ exception handling.
11620 * guile/scm-symbol.c: Use C++ exception handling.
11621 * guile/scm-pretty-print.c: Use C++ exception handling.
11622 * guile/scm-ports.c: Use C++ exception handling.
11623 * guile/scm-param.c: Use C++ exception handling.
11624 * guile/scm-math.c: Use C++ exception handling.
11625 * guile/scm-lazy-string.c: Use C++ exception handling.
11626 * guile/scm-frame.c: Use C++ exception handling.
11627 * guile/scm-disasm.c: Use C++ exception handling.
11628 * guile/scm-cmd.c: Use C++ exception handling.
11629 * guile/scm-breakpoint.c: Use C++ exception handling.
11630 * guile/scm-block.c: Use C++ exception handling.
11631 * guile/guile-internal.h: Use C++ exception handling.
11632 * gnu-v3-abi.c: Use C++ exception handling.
11633 * gdbtypes.c: Use C++ exception handling.
11634 * frame.c: Use C++ exception handling.
11635 * frame-unwind.c: Use C++ exception handling.
11636 * fbsd-tdep.c: Use C++ exception handling.
11637 * f-valprint.c: Use C++ exception handling.
11638 * exec.c: Use C++ exception handling.
11639 * event-top.c: Use C++ exception handling.
11640 * event-loop.c: Use C++ exception handling.
11641 * eval.c: Use C++ exception handling.
11642 * dwarf2read.c: Use C++ exception handling.
11643 * dwarf2loc.c: Use C++ exception handling.
11644 * dwarf2-frame.c: Use C++ exception handling.
11645 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11646 * dwarf-index-write.c: Use C++ exception handling.
11647 * dwarf-index-cache.c: Use C++ exception handling.
11648 * dtrace-probe.c: Use C++ exception handling.
11649 * disasm-selftests.c: Use C++ exception handling.
11650 * darwin-nat.c: Use C++ exception handling.
11651 * cp-valprint.c: Use C++ exception handling.
11652 * cp-support.c: Use C++ exception handling.
11653 * cp-abi.c: Use C++ exception handling.
11654 * corelow.c: Use C++ exception handling.
11655 * completer.c: Use C++ exception handling.
11656 * compile/compile-object-run.c: Use C++ exception handling.
11657 * compile/compile-object-load.c: Use C++ exception handling.
11658 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11659 * compile/compile-c-symbols.c: Use C++ exception handling.
11660 * common/selftest.c: Use C++ exception handling.
11661 * common/new-op.c: Use C++ exception handling.
11662 * cli/cli-script.c: Use C++ exception handling.
11663 * cli/cli-interp.c: Use C++ exception handling.
11664 * cli/cli-cmds.c: Use C++ exception handling.
11665 * c-varobj.c: Use C++ exception handling.
11666 * btrace.c: Use C++ exception handling.
11667 * breakpoint.c: Use C++ exception handling.
11668 * break-catch-throw.c: Use C++ exception handling.
11669 * arch-utils.c: Use C++ exception handling.
11670 * amd64-tdep.c: Use C++ exception handling.
11671 * ada-valprint.c: Use C++ exception handling.
11672 * ada-typeprint.c: Use C++ exception handling.
11673 * ada-lang.c: Use C++ exception handling.
11674 * aarch64-tdep.c: Use C++ exception handling.
11675
3d6e9d23
TT
116762019-04-08 Tom Tromey <tom@tromey.com>
11677
11678 * xml-support.c (gdb_xml_parser::parse): Update.
11679 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11680 * value.c (show_convenience): Update.
11681 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11682 (test_parse_flags_qcs): Update.
11683 * thread.c (thr_try_catch_cmd): Update.
11684 * target.c (target_translate_tls_address): Update.
11685 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11686 (info_frame_command_core, frame_apply_command_count): Update.
11687 * rust-exp.y (rust_lex_exception_test): Update.
11688 * riscv-tdep.c (riscv_print_one_register_info): Update.
11689 * remote.c (remote_target::enable_btrace): Update.
11690 * record-btrace.c (record_btrace_enable_warn): Update.
11691 * python/py-utils.c (gdbpy_convert_exception): Update.
11692 * printcmd.c (do_one_display, print_variable_and_value): Update.
11693 * mi/mi-main.c (mi_print_exception): Update.
11694 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11695 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11696 * linux-nat.c (linux_nat_target::attach): Update.
11697 * linux-fork.c (class scoped_switch_fork_info): Update.
11698 * infrun.c (displaced_step_prepare): Update.
11699 * infcall.c (call_function_by_hand_dummy): Update.
11700 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11701 * gnu-v3-abi.c (print_one_vtable): Update.
11702 * frame.c (get_prev_frame_always): Update.
11703 * f-valprint.c (info_common_command_for_block): Update.
11704 * exec.c (try_open_exec_file): Update.
11705 * exceptions.c (print_exception, exception_print)
11706 (exception_fprintf, exception_print_same): Update.
11707 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11708 * dwarf-index-cache.c (index_cache::store)
11709 (index_cache::lookup_gdb_index): Update.
11710 * darwin-nat.c (maybe_cache_shell): Update.
11711 * cp-valprint.c (cp_print_value_fields): Update.
11712 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11713 (gcc_cplus_symbol_address): Update.
11714 * compile/compile-c-symbols.c (gcc_convert_symbol)
11715 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11716 * common/selftest.c: Update.
11717 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11718 a std::string.
11719 (exception_try_scope_entry, exception_try_scope_exit): Don't
11720 declare.
11721 (struct exception_try_scope): Remove.
11722 (TRY): Don't use exception_try_scope.
11723 (struct gdb_exception): Add constructor, operator=.
11724 <what>: New method.
11725 (struct gdb_exception_RETURN_MASK_ALL)
11726 (struct gdb_exception_RETURN_MASK_ERROR)
11727 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11728 (struct gdb_quit_bad_alloc): Update.
11729 * common/common-exceptions.c (exception_none): Change
11730 initializer.
11731 (struct catcher) <state, exception>: Initialize inline.
11732 <prev>: Remove member.
11733 (current_catcher): Remove.
11734 (catchers): New global.
11735 (exceptions_state_mc_init): Simplify.
11736 (catcher_pop): Remove.
11737 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11738 (try_scope_depth, exception_try_scope_entry)
11739 (exception_try_scope_exit): Remove.
11740 (throw_exception_sjlj): Update.
11741 (exception_messages, exception_messages_size): Remove.
11742 (throw_it): Simplify.
11743 (gdb_exception_sliced_copy): Remove.
11744 (throw_exception_cxx): Update.
11745 * cli/cli-script.c (script_from_file): Update.
11746 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11747 Update.
11748 * ada-valprint.c (ada_val_print): Update.
11749 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11750 (create_excep_cond_exprs): Update.
11751
c5c10118
TT
117522019-04-08 Tom Tromey <tom@tromey.com>
11753
11754 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11755 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11756 (TRY, CATCH, END_CATCH): Remove some definitions.
11757 * common/common-exceptions.c: Don't use GDB_XCPT.
11758 (catcher_list_size): Remove.
11759 (throw_exception, throw_it): Simplify.
11760
4de283e4
TT
117612019-04-05 Tom Tromey <tom@tromey.com>
11762
11763 Revert the header-sorting patch.
11764 * ft32-tdep.c: Revert.
11765 * frv-tdep.c: Revert.
11766 * frv-linux-tdep.c: Revert.
11767 * frame.c: Revert.
11768 * frame-unwind.c: Revert.
11769 * frame-base.c: Revert.
11770 * fork-child.c: Revert.
11771 * findvar.c: Revert.
11772 * findcmd.c: Revert.
11773 * filesystem.c: Revert.
11774 * filename-seen-cache.h: Revert.
11775 * filename-seen-cache.c: Revert.
11776 * fbsd-tdep.c: Revert.
11777 * fbsd-nat.h: Revert.
11778 * fbsd-nat.c: Revert.
11779 * f-valprint.c: Revert.
11780 * f-typeprint.c: Revert.
11781 * f-lang.c: Revert.
11782 * extension.h: Revert.
11783 * extension.c: Revert.
11784 * extension-priv.h: Revert.
11785 * expprint.c: Revert.
11786 * exec.h: Revert.
11787 * exec.c: Revert.
11788 * exceptions.c: Revert.
11789 * event-top.c: Revert.
11790 * event-loop.c: Revert.
11791 * eval.c: Revert.
11792 * elfread.c: Revert.
11793 * dwarf2read.h: Revert.
11794 * dwarf2read.c: Revert.
11795 * dwarf2loc.c: Revert.
11796 * dwarf2expr.h: Revert.
11797 * dwarf2expr.c: Revert.
11798 * dwarf2-frame.c: Revert.
11799 * dwarf2-frame-tailcall.c: Revert.
11800 * dwarf-index-write.h: Revert.
11801 * dwarf-index-write.c: Revert.
11802 * dwarf-index-common.c: Revert.
11803 * dwarf-index-cache.h: Revert.
11804 * dwarf-index-cache.c: Revert.
11805 * dummy-frame.c: Revert.
11806 * dtrace-probe.c: Revert.
11807 * disasm.h: Revert.
11808 * disasm.c: Revert.
11809 * disasm-selftests.c: Revert.
11810 * dictionary.c: Revert.
11811 * dicos-tdep.c: Revert.
11812 * demangle.c: Revert.
11813 * dcache.h: Revert.
11814 * dcache.c: Revert.
11815 * darwin-nat.h: Revert.
11816 * darwin-nat.c: Revert.
11817 * darwin-nat-info.c: Revert.
11818 * d-valprint.c: Revert.
11819 * d-namespace.c: Revert.
11820 * d-lang.c: Revert.
11821 * ctf.c: Revert.
11822 * csky-tdep.c: Revert.
11823 * csky-linux-tdep.c: Revert.
11824 * cris-tdep.c: Revert.
11825 * cris-linux-tdep.c: Revert.
11826 * cp-valprint.c: Revert.
11827 * cp-support.c: Revert.
11828 * cp-namespace.c: Revert.
11829 * cp-abi.c: Revert.
11830 * corelow.c: Revert.
11831 * corefile.c: Revert.
11832 * continuations.c: Revert.
11833 * completer.h: Revert.
11834 * completer.c: Revert.
11835 * complaints.c: Revert.
11836 * coffread.c: Revert.
11837 * coff-pe-read.c: Revert.
11838 * cli-out.h: Revert.
11839 * cli-out.c: Revert.
11840 * charset.c: Revert.
11841 * c-varobj.c: Revert.
11842 * c-valprint.c: Revert.
11843 * c-typeprint.c: Revert.
11844 * c-lang.c: Revert.
11845 * buildsym.c: Revert.
11846 * buildsym-legacy.c: Revert.
11847 * build-id.h: Revert.
11848 * build-id.c: Revert.
11849 * btrace.c: Revert.
11850 * bsd-uthread.c: Revert.
11851 * breakpoint.h: Revert.
11852 * breakpoint.c: Revert.
11853 * break-catch-throw.c: Revert.
11854 * break-catch-syscall.c: Revert.
11855 * break-catch-sig.c: Revert.
11856 * blockframe.c: Revert.
11857 * block.c: Revert.
11858 * bfin-tdep.c: Revert.
11859 * bfin-linux-tdep.c: Revert.
11860 * bfd-target.c: Revert.
11861 * bcache.c: Revert.
11862 * ax-general.c: Revert.
11863 * ax-gdb.h: Revert.
11864 * ax-gdb.c: Revert.
11865 * avr-tdep.c: Revert.
11866 * auxv.c: Revert.
11867 * auto-load.c: Revert.
11868 * arm-wince-tdep.c: Revert.
11869 * arm-tdep.c: Revert.
11870 * arm-symbian-tdep.c: Revert.
11871 * arm-pikeos-tdep.c: Revert.
11872 * arm-obsd-tdep.c: Revert.
11873 * arm-nbsd-tdep.c: Revert.
11874 * arm-nbsd-nat.c: Revert.
11875 * arm-linux-tdep.c: Revert.
11876 * arm-linux-nat.c: Revert.
11877 * arm-fbsd-tdep.c: Revert.
11878 * arm-fbsd-nat.c: Revert.
11879 * arm-bsd-tdep.c: Revert.
11880 * arch-utils.c: Revert.
11881 * arc-tdep.c: Revert.
11882 * arc-newlib-tdep.c: Revert.
11883 * annotate.h: Revert.
11884 * annotate.c: Revert.
11885 * amd64-windows-tdep.c: Revert.
11886 * amd64-windows-nat.c: Revert.
11887 * amd64-tdep.c: Revert.
11888 * amd64-sol2-tdep.c: Revert.
11889 * amd64-obsd-tdep.c: Revert.
11890 * amd64-obsd-nat.c: Revert.
11891 * amd64-nbsd-tdep.c: Revert.
11892 * amd64-nbsd-nat.c: Revert.
11893 * amd64-nat.c: Revert.
11894 * amd64-linux-tdep.c: Revert.
11895 * amd64-linux-nat.c: Revert.
11896 * amd64-fbsd-tdep.c: Revert.
11897 * amd64-fbsd-nat.c: Revert.
11898 * amd64-dicos-tdep.c: Revert.
11899 * amd64-darwin-tdep.c: Revert.
11900 * amd64-bsd-nat.c: Revert.
11901 * alpha-tdep.c: Revert.
11902 * alpha-obsd-tdep.c: Revert.
11903 * alpha-nbsd-tdep.c: Revert.
11904 * alpha-mdebug-tdep.c: Revert.
11905 * alpha-linux-tdep.c: Revert.
11906 * alpha-linux-nat.c: Revert.
11907 * alpha-bsd-tdep.c: Revert.
11908 * alpha-bsd-nat.c: Revert.
11909 * aix-thread.c: Revert.
11910 * agent.c: Revert.
11911 * addrmap.c: Revert.
11912 * ada-varobj.c: Revert.
11913 * ada-valprint.c: Revert.
11914 * ada-typeprint.c: Revert.
11915 * ada-tasks.c: Revert.
11916 * ada-lang.c: Revert.
11917 * aarch64-tdep.c: Revert.
11918 * aarch64-ravenscar-thread.c: Revert.
11919 * aarch64-newlib-tdep.c: Revert.
11920 * aarch64-linux-tdep.c: Revert.
11921 * aarch64-linux-nat.c: Revert.
11922 * aarch64-fbsd-tdep.c: Revert.
11923 * aarch64-fbsd-nat.c: Revert.
11924 * aarch32-linux-nat.c: Revert.
11925
d55e5aa6
TT
119262019-04-05 Tom Tromey <tom@tromey.com>
11927
11928 * ft32-tdep.c: Sort headers.
11929 * frv-tdep.c: Sort headers.
11930 * frv-linux-tdep.c: Sort headers.
11931 * frame.c: Sort headers.
11932 * frame-unwind.c: Sort headers.
11933 * frame-base.c: Sort headers.
11934 * fork-child.c: Sort headers.
11935 * findvar.c: Sort headers.
11936 * findcmd.c: Sort headers.
11937 * filesystem.c: Sort headers.
11938 * filename-seen-cache.h: Sort headers.
11939 * filename-seen-cache.c: Sort headers.
11940 * fbsd-tdep.c: Sort headers.
11941 * fbsd-nat.h: Sort headers.
11942 * fbsd-nat.c: Sort headers.
11943 * f-valprint.c: Sort headers.
11944 * f-typeprint.c: Sort headers.
11945 * f-lang.c: Sort headers.
11946 * extension.h: Sort headers.
11947 * extension.c: Sort headers.
11948 * extension-priv.h: Sort headers.
11949 * expprint.c: Sort headers.
11950 * exec.h: Sort headers.
11951 * exec.c: Sort headers.
11952 * exceptions.c: Sort headers.
11953 * event-top.c: Sort headers.
11954 * event-loop.c: Sort headers.
11955 * eval.c: Sort headers.
11956 * elfread.c: Sort headers.
11957 * dwarf2read.h: Sort headers.
11958 * dwarf2read.c: Sort headers.
11959 * dwarf2loc.c: Sort headers.
11960 * dwarf2expr.h: Sort headers.
11961 * dwarf2expr.c: Sort headers.
11962 * dwarf2-frame.c: Sort headers.
11963 * dwarf2-frame-tailcall.c: Sort headers.
11964 * dwarf-index-write.h: Sort headers.
11965 * dwarf-index-write.c: Sort headers.
11966 * dwarf-index-common.c: Sort headers.
11967 * dwarf-index-cache.h: Sort headers.
11968 * dwarf-index-cache.c: Sort headers.
11969 * dummy-frame.c: Sort headers.
11970 * dtrace-probe.c: Sort headers.
11971 * disasm.h: Sort headers.
11972 * disasm.c: Sort headers.
11973 * disasm-selftests.c: Sort headers.
11974 * dictionary.c: Sort headers.
11975 * dicos-tdep.c: Sort headers.
11976 * demangle.c: Sort headers.
11977 * dcache.h: Sort headers.
11978 * dcache.c: Sort headers.
11979 * darwin-nat.h: Sort headers.
11980 * darwin-nat.c: Sort headers.
11981 * darwin-nat-info.c: Sort headers.
11982 * d-valprint.c: Sort headers.
11983 * d-namespace.c: Sort headers.
11984 * d-lang.c: Sort headers.
11985 * ctf.c: Sort headers.
11986 * csky-tdep.c: Sort headers.
11987 * csky-linux-tdep.c: Sort headers.
11988 * cris-tdep.c: Sort headers.
11989 * cris-linux-tdep.c: Sort headers.
11990 * cp-valprint.c: Sort headers.
11991 * cp-support.c: Sort headers.
11992 * cp-namespace.c: Sort headers.
11993 * cp-abi.c: Sort headers.
11994 * corelow.c: Sort headers.
11995 * corefile.c: Sort headers.
11996 * continuations.c: Sort headers.
11997 * completer.h: Sort headers.
11998 * completer.c: Sort headers.
11999 * complaints.c: Sort headers.
12000 * coffread.c: Sort headers.
12001 * coff-pe-read.c: Sort headers.
12002 * cli-out.h: Sort headers.
12003 * cli-out.c: Sort headers.
12004 * charset.c: Sort headers.
12005 * c-varobj.c: Sort headers.
12006 * c-valprint.c: Sort headers.
12007 * c-typeprint.c: Sort headers.
12008 * c-lang.c: Sort headers.
12009 * buildsym.c: Sort headers.
12010 * buildsym-legacy.c: Sort headers.
12011 * build-id.h: Sort headers.
12012 * build-id.c: Sort headers.
12013 * btrace.c: Sort headers.
12014 * bsd-uthread.c: Sort headers.
12015 * breakpoint.h: Sort headers.
12016 * breakpoint.c: Sort headers.
12017 * break-catch-throw.c: Sort headers.
12018 * break-catch-syscall.c: Sort headers.
12019 * break-catch-sig.c: Sort headers.
12020 * blockframe.c: Sort headers.
12021 * block.c: Sort headers.
12022 * bfin-tdep.c: Sort headers.
12023 * bfin-linux-tdep.c: Sort headers.
12024 * bfd-target.c: Sort headers.
12025 * bcache.c: Sort headers.
12026 * ax-general.c: Sort headers.
12027 * ax-gdb.h: Sort headers.
12028 * ax-gdb.c: Sort headers.
12029 * avr-tdep.c: Sort headers.
12030 * auxv.c: Sort headers.
12031 * auto-load.c: Sort headers.
12032 * arm-wince-tdep.c: Sort headers.
12033 * arm-tdep.c: Sort headers.
12034 * arm-symbian-tdep.c: Sort headers.
12035 * arm-pikeos-tdep.c: Sort headers.
12036 * arm-obsd-tdep.c: Sort headers.
12037 * arm-nbsd-tdep.c: Sort headers.
12038 * arm-nbsd-nat.c: Sort headers.
12039 * arm-linux-tdep.c: Sort headers.
12040 * arm-linux-nat.c: Sort headers.
12041 * arm-fbsd-tdep.c: Sort headers.
12042 * arm-fbsd-nat.c: Sort headers.
12043 * arm-bsd-tdep.c: Sort headers.
12044 * arch-utils.c: Sort headers.
12045 * arc-tdep.c: Sort headers.
12046 * arc-newlib-tdep.c: Sort headers.
12047 * annotate.h: Sort headers.
12048 * annotate.c: Sort headers.
12049 * amd64-windows-tdep.c: Sort headers.
12050 * amd64-windows-nat.c: Sort headers.
12051 * amd64-tdep.c: Sort headers.
12052 * amd64-sol2-tdep.c: Sort headers.
12053 * amd64-obsd-tdep.c: Sort headers.
12054 * amd64-obsd-nat.c: Sort headers.
12055 * amd64-nbsd-tdep.c: Sort headers.
12056 * amd64-nbsd-nat.c: Sort headers.
12057 * amd64-nat.c: Sort headers.
12058 * amd64-linux-tdep.c: Sort headers.
12059 * amd64-linux-nat.c: Sort headers.
12060 * amd64-fbsd-tdep.c: Sort headers.
12061 * amd64-fbsd-nat.c: Sort headers.
12062 * amd64-dicos-tdep.c: Sort headers.
12063 * amd64-darwin-tdep.c: Sort headers.
12064 * amd64-bsd-nat.c: Sort headers.
12065 * alpha-tdep.c: Sort headers.
12066 * alpha-obsd-tdep.c: Sort headers.
12067 * alpha-nbsd-tdep.c: Sort headers.
12068 * alpha-mdebug-tdep.c: Sort headers.
12069 * alpha-linux-tdep.c: Sort headers.
12070 * alpha-linux-nat.c: Sort headers.
12071 * alpha-bsd-tdep.c: Sort headers.
12072 * alpha-bsd-nat.c: Sort headers.
12073 * aix-thread.c: Sort headers.
12074 * agent.c: Sort headers.
12075 * addrmap.c: Sort headers.
12076 * ada-varobj.c: Sort headers.
12077 * ada-valprint.c: Sort headers.
12078 * ada-typeprint.c: Sort headers.
12079 * ada-tasks.c: Sort headers.
12080 * ada-lang.c: Sort headers.
12081 * aarch64-tdep.c: Sort headers.
12082 * aarch64-ravenscar-thread.c: Sort headers.
12083 * aarch64-newlib-tdep.c: Sort headers.
12084 * aarch64-linux-tdep.c: Sort headers.
12085 * aarch64-linux-nat.c: Sort headers.
12086 * aarch64-fbsd-tdep.c: Sort headers.
12087 * aarch64-fbsd-nat.c: Sort headers.
12088 * aarch32-linux-nat.c: Sort headers.
12089
699bd4cf
TT
120902019-04-04 Tom Tromey <tom@tromey.com>
12091
12092 * varobj.c (varobj_create): Update.
12093 * rust-exp.y (struct rust_parser) <update_innermost_block,
12094 lookup_symbol>: New methods.
12095 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12096 Rename.
12097 (rust_parser::rust_lookup_type)
12098 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12099 * printcmd.c (display_command, do_one_display): Update.
12100 * parser-defs.h (struct parser_state) <parser_state>: Add
12101 "tracker" parameter.
12102 (block_tracker): New member.
12103 (class innermost_block_tracker) <innermost_block_tracker>: Add
12104 "types" parameter.
12105 <reset>: Remove method.
12106 (innermost_block): Don't declare.
12107 (null_post_parser): Update.
12108 * parse.c (innermost_block): Remove global.
12109 (write_dollar_variable): Update.
12110 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12111 Remove "tracker_types" parameter.
12112 (parse_expression): Add "tracker" parameter.
12113 (parse_expression_for_completion): Update.
12114 (null_post_parser): Add "tracker" parameter.
12115 * p-exp.y: Update rules.
12116 * m2-exp.y: Update rules.
12117 * language.h (struct language_defn) <la_post_parser>: Add
12118 "tracker" parameter.
12119 * go-exp.y: Update rules.
12120 * f-exp.y: Update rules.
12121 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12122 parameter.
12123 * d-exp.y: Update rules.
12124 * c-exp.y: Update rules.
12125 * breakpoint.c (set_breakpoint_condition): Create an
12126 innermost_block_tracker.
12127 (watch_command_1): Likewise.
12128 * ada-lang.c (resolve): Add "tracker" parameter.
12129 (resolve_subexp): Likewise.
12130 * ada-exp.y (write_var_from_sym): Update.
12131
dac43e32
TT
121322019-04-04 Tom Tromey <tom@tromey.com>
12133
12134 * type-stack.h: New file.
12135 * type-stack.c: New file.
12136 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12137 type-stack.h.
12138 (insert_into_type_stack, insert_type, push_type, push_type_int)
12139 (insert_type_address_space, pop_type, pop_type_int)
12140 (pop_typelist, pop_type_stack, append_type_stack)
12141 (push_type_stack, get_type_stack, push_typelist)
12142 (follow_type_instance_flags, follow_types): Don't declare.
12143 * parse.c (type_stack): Remove global.
12144 (parse_exp_in_context): Update.
12145 (insert_into_type_stack, insert_type, push_type, push_type_int)
12146 (insert_type_address_space, pop_type, pop_type_int)
12147 (pop_typelist, pop_type_stack, append_type_stack)
12148 (push_type_stack, get_type_stack, push_typelist)
12149 (follow_type_instance_flags, follow_types): Remove (moved to
12150 type-stack.c).
12151 * f-exp.y (type_stack): New global.
12152 Update rules.
12153 (push_kind_type, f_parse): Update.
12154 * d-exp.y (type_stack): New global.
12155 Update rules.
12156 (d_parse): Update.
12157 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12158 Update rules.
12159 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12160 (HFILES_NO_SRCDIR): Add type-stack.h.
12161
2a612529
TT
121622019-04-04 Tom Tromey <tom@tromey.com>
12163
12164 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12165 (rust_parser::convert_ast_to_expression, rust_parse)
12166 (rust_lex_test_completion, rust_lex_tests): Update.
12167 * parser-defs.h (struct expr_completion_state): New.
12168 (struct parser_state) <parser_state>: Add completion parameter.
12169 <mark_struct_expression, mark_completion_tag>: New methods.
12170 <parse_completion, m_completion_state>: New members.
12171 (prefixify_expression, null_post_parser): Update.
12172 (mark_struct_expression, mark_completion_tag): Don't declare.
12173 * parse.c (parse_completion, expout_last_struct)
12174 (expout_tag_completion_type, expout_completion_name): Remove
12175 globals.
12176 (parser_state::mark_struct_expression)
12177 (parser_state::mark_completion_tag): Now methods.
12178 (prefixify_expression): Add last_struct parameter.
12179 (prefixify_subexp): Likewise.
12180 (parse_exp_1): Update.
12181 (parse_exp_in_context): Add cstate parameter. Update.
12182 (parse_expression_for_completion): Create an
12183 expr_completion_state.
12184 (null_post_parser): Add "completion" parameter.
12185 * p-exp.y: Update rules.
12186 (yylex): Update.
12187 * language.h (struct language_defn) <la_post_parser>: Add
12188 "completing" parameter.
12189 * go-exp.y: Update rules.
12190 (lex_one_token): Update.
12191 * expression.h (parse_completion): Don't declare.
12192 * d-exp.y: Update rules.
12193 (lex_one_token): Update rules.
12194 * c-exp.y: Update rules.
12195 (lex_one_token): Update.
12196 * ada-lang.c (resolve): Add "parse_completion" parameter.
12197 (resolve_subexp): Likewise.
12198 (ada_resolve_function): Likewise.
12199
43476f0b
TT
122002019-04-04 Tom Tromey <tom@tromey.com>
12201
12202 * parser-defs.h (struct parser_state) <start_arglist,
12203 end_arglist>: New methods.
12204 <arglist_len, m_funcall_chain>: New members.
12205 (arglist_len, start_arglist, end_arglist): Don't declare.
12206 * parse.c (arglist_len, funcall_chain): Remove global.
12207 (start_arglist, end_arglist): Remove functions.
12208 (parse_exp_in_context): Update.
12209 * p-exp.y: Update rules.
12210 * m2-exp.y: Update rules.
12211 * go-exp.y: Update rules.
12212 * f-exp.y: Update rules.
12213 * d-exp.y: Update rules.
12214 * c-exp.y: Update rules.
12215
5776fca3
TT
122162019-04-04 Tom Tromey <tom@tromey.com>
12217
12218 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12219 lex_operator, push_back>: New methods.
12220 Update all rules.
12221 (rust_parser::lex_hex, lex_escape): Rename and update.
12222 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12223 (rust_parser::lex_operator): Rename and update.
12224 (rust_parser::lex_number, rustyylex, rustyyerror)
12225 (rust_lex_test_init, rust_lex_test_sequence)
12226 (rust_lex_test_push_back, rust_lex_tests): Update.
12227 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12228 parameter.
12229 <lexptr, prev_lexptr>: New members.
12230 (lexptr, prev_lexptr): Don't declare.
12231 * parse.c (lexptr, prev_lexptr): Remove globals.
12232 (parse_exp_in_context): Update.
12233 * p-exp.y (yylex, yyerror): Update.
12234 * m2-exp.y (parse_number, yylex, yyerror): Update.
12235 * go-exp.y (lex_one_token, yyerror): Update.
12236 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12237 * d-exp.y (lex_one_token, yyerror): Update.
12238 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12239 (lex_one_token, yyerror): Update.
12240 * ada-lex.l (YY_INPUT): Update.
12241 (rewind_to_char): Update.
12242 * ada-exp.y (yyerror): Update.
12243
8621b685
TT
122442019-04-04 Tom Tromey <tom@tromey.com>
12245
12246 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12247 * parser-defs.h (struct parser_state) <parser_state>: Add new
12248 parameter.
12249 <comma_terminates>: New member.
12250 (comma_terminates): Don't declare global.
12251 * parse.c (comma_terminates): Remove global.
12252 (parse_exp_in_context): Update.
12253 * p-exp.y (yylex): Update.
12254 * m2-exp.y (yylex): Update.
12255 * go-exp.y (lex_one_token): Update.
12256 * f-exp.y (yylex): Update.
12257 * d-exp.y (lex_one_token): Update.
12258 * c-exp.y (lex_one_token): Update.
12259 * ada-lex.l: Update.
12260
28aaf3fd
TT
122612019-04-04 Tom Tromey <tom@tromey.com>
12262
12263 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12264 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12265 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12266 * parser-defs.h (paren_depth): Don't declare.
12267 * parse.c (paren_depth): Remove global.
12268 (parse_exp_in_context): Update.
12269 * p-exp.y (paren_depth): New global.
12270 (pascal_parse): Initialize it.
12271 * m2-exp.y (paren_depth): New global.
12272 (m2_parse): Initialize it.
12273 * go-exp.y (paren_depth): New global.
12274 (go_parse): Initialize it.
12275 * f-exp.y (paren_depth): New global.
12276 (f_parse): Initialize it.
12277 * d-exp.y (paren_depth): New global.
12278 (d_parse): Initialize it.
12279 * c-exp.y (paren_depth): New global.
12280 (c_parse): Initialize it.
12281 * ada-lex.l (paren_depth): New global.
12282 (lexer_init): Initialize it.
12283
1e58a4a4
TT
122842019-04-04 Tom Tromey <tom@tromey.com>
12285
12286 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12287 (rust_parser::convert_ast_to_type)
12288 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12289 * parser-defs.h (struct parser_state) <parser_state>: Add
12290 parameters. Initialize new members.
12291 <expression_context_block, expression_context_pc>: New members.
12292 * parse.c (expression_context_block, expression_context_pc):
12293 Remove globals.
12294 (parse_exp_in_context): Update.
12295 * p-exp.y: Update all rules.
12296 (yylex): Update.
12297 * m2-exp.y: Update all rules.
12298 (yylex): Update.
12299 * go-exp.y (yylex): Update.
12300 * f-exp.y (yylex): Update.
12301 * d-exp.y: Update all rules.
12302 (yylex): Update.
12303 * c-exp.y: Update all rules.
12304 (lex_one_token, classify_name, yylex, c_parse): Update.
12305 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12306
37eedb39
TT
123072019-04-04 Tom Tromey <tom@tromey.com>
12308
12309 * gdbarch.h, gdbarch.c: Rebuild.
12310 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12311 * stap-probe.h:
12312 (struct stap_parse_info): Replace "parser_state" with
12313 "expr_builder".
12314 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12315 (parser_state): New class.
12316 * parse.c (expr_builder): Rename.
12317 (expr_builder::release): Rename.
12318 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12319 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12320 (write_exp_elt_longcst, write_exp_elt_floatcst)
12321 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12322 (write_exp_string_vector, write_exp_bitstring)
12323 (write_exp_msymbol, mark_struct_expression)
12324 (write_dollar_variable)
12325 (insert_type_address_space, increase_expout_size): Replace
12326 "parser_state" with "expr_builder".
12327 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12328 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12329 "parser_state" with "expr_builder".
12330
73923d7e
TT
123312019-04-04 Tom Tromey <tom@tromey.com>
12332
12333 * rust-exp.y: Replace "parse_language" with method call.
12334 * p-exp.y:
12335 (yylex): Replace "parse_language" with method call.
12336 * m2-exp.y:
12337 (yylex): Replace "parse_language" with method call.
12338 * go-exp.y (classify_name): Replace "parse_language" with method
12339 call.
12340 * f-exp.y (yylex): Replace "parse_language" with method call.
12341 * d-exp.y (lex_one_token): Replace "parse_language" with method
12342 call.
12343 * c-exp.y:
12344 (lex_one_token, classify_name, yylex): Replace "parse_language"
12345 with method call.
12346 * ada-exp.y (find_primitive_type, type_char)
12347 (type_system_address): Replace "parse_language" with method call.
12348
fa9f5be6
TT
123492019-04-04 Tom Tromey <tom@tromey.com>
12350
12351 * rust-exp.y: Replace "parse_gdbarch" with method call.
12352 * parse.c (write_dollar_variable, insert_type_address_space):
12353 Replace "parse_gdbarch" with method call.
12354 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12355 call.
12356 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12357 call.
12358 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12359 "parse_gdbarch" with method call.
12360 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12361 with method call.
12362 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12363 "parse_gdbarch" with method call.
12364 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12365 "parse_gdbarch" with method call.
12366 * c-exp.y (parse_type, parse_number, classify_name): Replace
12367 "parse_gdbarch" with method call.
12368 * ada-lex.l: Replace "parse_gdbarch" with method call.
12369 * ada-exp.y (parse_type, find_primitive_type, type_char)
12370 (type_system_address): Replace "parse_gdbarch" with method call.
12371
1201a264
TT
123722019-04-04 Tom Tromey <tom@tromey.com>
12373
12374 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12375 * stap-probe.c (stap_parse_argument): Update.
12376 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12377 initial_size parameter.
12378 * rust-exp.y (rust_lex_tests): Update.
12379 * parse.c (parser_state): Update.
12380 (parse_exp_in_context): Update.
12381 * parser-defs.h (struct parser_state) <parser_state>: Remove
12382 "initial_size" parameter.
12383
e3980ce2
TT
123842019-04-04 Tom Tromey <tom@tromey.com>
12385
12386 * parser-defs.h (increase_expout_size): Don't declare.
12387 * parse.c (increase_expout_size): Now static.
12388
e9f8e3f1
TS
123892019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12390
12391 * gnu-nat.c (gnu_nat_target::wait): Fix
12392 target_waitstatus_to_string call.
12393
d7df6549
AB
123942019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12395
12396 * eval.c (evaluate_subexp_standard): Handle internal functions
12397 during Fortran function call handling.
12398
8bdc1658
AB
123992019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12400
12401 * NEWS: Mention new internal functions.
12402 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12403 (read_base_type): Use dwarf2_init_complex_target_type.
12404 * value.c (creal_internal_fn): New function.
12405 (cimag_internal_fn): New function.
12406 (_initialize_values): Register new internal functions.
12407
c29705b7
PW
124082019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12409
12410 * infrun.c (stop_all_threads): If debug_infrun, always
12411 trace the wait status after wait_one, using
12412 target_waitstatus_to_string and target_pid_to_str.
12413 (handle_inferior_event): Replace various trace of
12414 wait status kind by a single trace.
12415 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12416 wait status kind image by target_waitstatus_to_string.
12417 * target/waitstatus.c (target_waitstatus_to_string): Fix
12418 obsolete comment.
12419
05caa1d2
TT
124202019-04-01 Tom Tromey <tromey@adacore.com>
12421
12422 PR symtab/23331:
12423 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12424
9d1447e0
SDJ
124252019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12426 Pedro Alves <palves@redhat.com>
12427
12428 * top.c (quit_force): Call 'finalize_values'.
12429 * value.c (finalize_values): New function.
12430 * value.h (finalize_values): Declare.
12431
7734102d
EZ
124322019-03-30 Eli Zaretskii <eliz@gnu.org>
12433
12434 * NEWS: Announce $_gdb_major and $_gdb_minor.
12435
12436 * top.c (init_gdb_version_vars): New function.
12437 (gdb_init): Call init_gdb_version_vars.
12438
188e1fa9
TT
124392019-03-29 Tom Tromey <tromey@adacore.com>
12440
12441 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12442 help text. Remove dead code.
12443
2880242d
KS
124442019-03-29 Keith Seitz <keiths@redhat.com>
12445
12446 From Siddhesh Poyarekar:
12447 * f-lang.h (f77_get_upperbound): Return LONGEST.
12448 (f77_get_lowerbound): Likewise.
12449 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12450 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12451 print them.
12452 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12453 plongest to format print it.
12454 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12455 (f77_get_upperbound): Likewise.
12456 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12457 LOWER_BOUND to LONGEST.
12458 (f77_create_arrayprint_offset_tbl): Likewise.
12459
cc1defb1
KS
124602019-03-29 Keith Seitz <keiths@redhat.com>
12461
12462 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12463 %s/pulongest for TYPE_LENGTH instead of %d in format
12464 strings.
12465 * ada-typerint.c (ada_print_type): Likewise.
12466 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12467 * compile/compile-c-support.c (generate_register_struct): Likewise.
12468 * gdbtypes.c (recursive_dump_type): Likewise.
12469 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12470 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12471 instead of %d in format strings.
12472 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12473 to std::min to ULONGEST.
12474 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12475 instead of %d in format strings.
12476 * tracepoint.c (info_scope_command): Likewise.
12477 * typeprint.c (print_offset_data::update)
12478 (print_offset_data::finish): Likewise.
12479 * xtensa-tdep.c (xtensa_store_return_value)
12480 (xtensa_push_dummy_call): Likewise.
12481
e432ccf1
JT
124822019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12483
12484 * windows-nat.c (display_selector): Fixed format specifications
12485 for 64-bit Cygwin.
12486
65d2b333
PW
124872019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12488
12489 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12490
f489207e
SL
124912019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12492
12493 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12494 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12495 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12496 (nios2_linux_init_abi): Install it.
12497
bffa1015
AH
124982019-03-28 Alan Hayward <alan.hayward@arm.com>
12499
12500 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12501
fc96163a
AH
125022019-03-28 Alan Hayward <alan.hayward@arm.com>
12503
12504 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12505
20dc7e9b
PW
125062019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12507 Tom Tromey <tromey@adacore.com>
12508
12509 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12510
7f5331a8
JB
125112019-03-26 Joel Brobecker <brobecker@adacore.com>
12512
12513 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12514 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12515 method to compute the bounds of range types. Also print "[evaluated]"
12516 if the bounds' values come from a dynamic evaluation.
12517
18c77628
AB
125182019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12519
12520 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12521 whitespace when pretty printing is on.
12522
53c973f2
AH
125232019-03-26 Alan Hayward <alan.hayward@arm.com>
12524
e79be6e5 12525 * ppc-linux-nat.c: Add include.
53c973f2 12526
d851aa71
AH
125272019-03-26 Alan Hayward <alan.hayward@arm.com>
12528
e79be6e5 12529 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12530
2fe7bab7
AH
125312019-03-26 Alan Hayward <alan.hayward@arm.com>
12532
e79be6e5 12533 * arm-linux-nat.c: Add include.
2fe7bab7 12534
068ef30e
SM
125352019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12536
12537 * source-cache.c (source_cache::get_source_lines): Re-read
12538 fullname after calling open_source_file.
12539
81a24d04
JB
125402019-03-25 John Baldwin <jhb@FreeBSD.org>
12541
12542 * NEWS: Mention TLS support for FreeBSD.
12543
79e7ae11
TT
125442019-03-25 Tom Tromey <tromey@adacore.com>
12545
12546 * minsyms.c (BUNCH_SIZE): Update comment.
12547 (~minimal_symbol_reader): Remove old comment.
12548 (compact_minimal_symbols): Update comment.
12549 (minimal_symbol_reader::install): Remove old comment. Update
12550 other comments.
12551
d45963c2
AH
125522019-03-25 Alan Hayward <alan.hayward@arm.com>
12553
12554 * s390-linux-nat.c: Add include.
12555
0f83012e
AH
125562019-03-25 Alan Hayward <alan.hayward@arm.com>
12557
12558 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12559 Call linux_get_hwcap.
12560 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12561 Likewise.
12562 (aarch64_linux_get_hwcap): Remove function.
12563 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12564 declaration.
12565 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12566 linux_get_hwcap.
12567 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12568 * linux-tdep.c (linux_get_hwcap): Add function.
12569 (linux_get_hwcap2): Likewise.
12570 * linux-tdep.h (linux_get_hwcap): Add declaration.
12571 (linux_get_hwcap2): Likewise.
12572 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12573 (ppc_linux_get_hwcap2): Likewise.
12574 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12575 linux_get_hwcap.
12576 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12577 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12578 (ppc_linux_nat_target::read_description): Likewise.
12579 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12580 * s390-linux-nat.c: Likewise.
12581 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12582
6640a367
TT
125832019-03-24 Tom Tromey <tom@tromey.com>
12584
12585 * ada-lang.c (standard_lookup): Simplify initialization.
12586 (ada_lookup_symbol_nonlocal): Simplify return.
12587 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12588 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12589 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12590 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12591 initialization.
12592 * solib.c (solib_global_lookup): Simplify.
12593 * symtab.c (null_block_symbol): Remove.
12594 (symbol_cache_lookup): Simplify returns.
12595 (lookup_language_this): Simplify returns.
12596 (lookup_symbol_aux): Simplify return.
12597 (lookup_local_symbol): Simplify returns.
12598 (lookup_global_symbol_from_objfile): Simplify return.
12599 (lookup_symbol_in_objfile_symtabs)
12600 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12601 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12602 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12603 * cp-namespace.c (cp_lookup_bare_symbol)
12604 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12605 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12606 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12607 (cp_lookup_symbol_via_imports): Simplify initialization.
12608 (find_symbol_in_baseclass): Likewise.
12609 * symtab.h (null_block_symbol): Remove.
12610 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12611 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12612 (d_lookup_symbol_module): Likewise.
12613 (find_symbol_in_baseclass): Simplify initialization.
12614
a930ebcd
TT
126152019-03-24 Tom Tromey <tom@tromey.com>
12616
12617 * expression.h: Don't include symtab.h.
12618 (struct block): Forward declare.
12619
582942f4
TT
126202019-03-24 Tom Tromey <tom@tromey.com>
12621
12622 * c-exp.y (typebase): Remove casts.
12623 * gdbtypes.c (lookup_unsigned_typename, )
12624 (lookup_signed_typename): Remove cast.
12625 * eval.c (parse_to_comma_and_eval): Remove cast.
12626 * parse.c (write_dollar_variable): Remove cast.
12627 * block.h (struct block) <superblock>: Now const.
12628 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12629 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12630 (map_block): Make "block" const.
12631 * symfile.h (struct quick_symbol_functions)
12632 <map_matching_symbols>: Constify block argument to "callback".
12633 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12634 const.
12635 (find_pc_sect_compunit_symtab): Make "b" const.
12636 (find_symbol_at_address): Likewise.
12637 (search_symbols): Likewise.
12638 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12639 (dw2_debug_names_lookup_symbol): Likewise.
12640 (dw2_map_matching_symbols): Update.
12641 * p-valprint.c (pascal_val_print): Remove "block".
12642 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12643 (aux_add_nonlocal_symbols): Make "block" const.
12644 (resolve_subexp): Remove cast.
12645 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12646 const.
12647 (iterate_over_file_blocks): Likewise.
12648 * f-exp.y (%union) <bval>: Remove.
12649 * coffread.c (patch_opaque_types): Make "b" const.
12650 * spu-tdep.c (spu_catch_start): Make "block" const.
12651 * c-valprint.c (print_unpacked_pointer): Remove "block".
12652 * symmisc.c (dump_symtab_1): Make "b" const.
12653 (block_depth): Make "block" const.
12654 * d-exp.y (%union) <bval>: Remove.
12655 * cp-support.h (cp_lookup_rtti_type): Update.
12656 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12657 * psymtab.c (psym_lookup_symbol): Make "block" const.
12658 (maintenance_check_psymtabs): Make "b" const.
12659 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12660 (enumerate_locals, enumerate_args): Update.
12661 * python/py-symtab.c (stpy_global_block): Make "block" const.
12662 (stpy_static_block): Likewise.
12663 * inline-frame.c (block_starting_point_at): Make "new_block"
12664 const.
12665 * block.c (find_block_in_blockvector): Make return type const.
12666 (blockvector_for_pc_sect): Make "b" const.
12667 (find_block_in_blockvector): Make "b" const.
12668
7ad417dd
TT
126692019-03-23 Tom Tromey <tom@tromey.com>
12670
12671 * varobj.c (varobj_create): Update.
12672 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12673 * printcmd.c (display_command, do_one_display): Don't reset
12674 innermost_block.
12675 * parser-defs.h (enum innermost_block_tracker_type): Move to
12676 expression.h.
12677 (innermost_block): Update comment.
12678 * parse.c (parse_exp_1): Add tracker_types parameter.
12679 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12680 tracker_types parameter. Reset innermost_block.
12681 (parse_exp_in_context): Remove.
12682 (parse_expression_for_completion): Update.
12683 * objfiles.c (~objfile): Don't reset expression_context_block or
12684 innermost_block.
12685 * expression.h (enum innermost_block_tracker_type): Move from
12686 parser-defs.h.
12687 (parse_exp_1): Add tracker_types parameter.
12688 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12689 reset innermost_block.
12690
b366c208
TT
126912019-03-23 Tom Tromey <tom@tromey.com>
12692
12693 * objfiles.h: Include bcache.h.
12694
9bb9b2f9
TT
126952019-03-23 Tom Tromey <tom@tromey.com>
12696
12697 * linespec.c (get_current_search_block): Use
12698 scoped_restore_current_language.
12699 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12700
59c28372
AH
127012019-03-22 Alan Hayward <alan.hayward@arm.com>
12702 Jiong Wang <jiong.wang@arm.com>
12703
12704 * aarch64-linux-tdep.c
12705 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12706 section.
12707 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12708
17e116a7
AH
127092019-03-22 Alan Hayward <alan.hayward@arm.com>
12710 Jiong Wang <jiong.wang@arm.com>
12711
12712 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12713 instructions.
12714 (aarch64_analyze_prologue_test): Add PACIASP test.
12715 (aarch64_prologue_prev_register): Unmask PC value.
12716
11e1b75f
AH
127172019-03-22 Alan Hayward <alan.hayward@arm.com>
12718 Jiong Wang <jiong.wang@arm.com>
12719
12720 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12721 (aarch64_dwarf2_prev_register): Unmask PC value.
12722 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12723 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12724 DW_CFA_AARCH64_negate_ra_state.
12725 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12726
34dcc7cf
AH
127272019-03-22 Alan Hayward <alan.hayward@arm.com>
12728 Jiong Wang <jiong.wang@arm.com>
12729
12730 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12731 registers.
12732 (aarch64_pseudo_register_name): Likewise.
12733 (aarch64_pseudo_register_type): Likewise.
12734 (aarch64_pseudo_register_reggroup_p): Likewise.
12735 (aarch64_gdbarch_init): Add pauth registers.
12736 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12737 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12738 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12739 (struct gdbarch_tdep): Add regnum for ra_state.
12740
1ef53e6b
AH
127412019-03-22 Alan Hayward <alan.hayward@arm.com>
12742 Jiong Wang <jiong.wang@arm.com>
12743
12744 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12745
76bed0fd
AH
127462019-03-22 Alan Hayward <alan.hayward@arm.com>
12747 Jiong Wang <jiong.wang@arm.com>
12748
12749 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12750 function.
12751 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12752 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12753 (aarch64_gdbarch_init): Add puth registers.
12754 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12755 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12756 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12757
ee4fbcfa
AH
127582019-03-22 Alan Hayward <alan.hayward@arm.com>
12759 Jiong Wang <jiong.wang@arm.com>
12760
12761 * aarch64-linux-nat.c
12762 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12763 * aarch64-linux-tdep.c
12764 (aarch64_linux_core_read_description): Likewise.
12765 (aarch64_linux_get_hwcap): New function.
12766 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12767 (aarch64_linux_get_hwcap): New declaration.
12768
6dc0ebde
AH
127692019-03-22 Alan Hayward <alan.hayward@arm.com>
12770 Jiong Wang <jiong.wang@arm.com>
12771
12772 * aarch64-linux-nat.c
12773 (aarch64_linux_nat_target::read_description): Add pauth param.
12774 * aarch64-linux-tdep.c
12775 (aarch64_linux_core_read_description): Likewise.
12776 * aarch64-tdep.c (struct target_desc): Add in pauth.
12777 (aarch64_read_description): Add pauth param.
12778 (aarch64_gdbarch_init): Likewise.
12779 * aarch64-tdep.h (aarch64_read_description): Likewise.
12780 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12781 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12782 * features/Makefile: Add new files.
12783 * features/aarch64-pauth.c: New file.
12784 * features/aarch64-pauth.xml: New file.
12785
595915c1
TT
127862019-03-20 Tom Tromey <tromey@adacore.com>
12787
12788 * infrun.c (handle_inferior_event): Rename from
12789 handle_inferior_event_1. Create a scoped_value_mark.
12790 (handle_inferior_event): Remove.
12791
4c7d57e7
TT
127922019-03-19 Tom Tromey <tromey@adacore.com>
12793
12794 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12795 * infrun.h (print_stop_event): Add "displays" parameter.
12796 * infrun.c (print_stop_event): Add "displays" parameter.
12797
cb246234
PA
127982019-03-19 Pedro Alves <palves@redhat.com>
12799
12800 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12801 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12802 to -1. Fix TABs vs spaces.
12803 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12804 * tui/tui-out.h (tui_ui_out) Add intro comments.
12805 <m_line, m_start_of_line>: In-class initialize, and add describing
12806 comment.
12807
3a0e45b2
AH
128082019-03-18 Alan Hayward <alan.hayward@arm.com>
12809
12810 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12811 variable names.
12812 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12813
5371b850
PA
128142019-03-18 Pedro Alves <palves@redhat.com>
12815 Eli Zaretskii <eliz@gnu.org>
12816
12817 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12818 m_line and m_start_of_line.
12819
b17c4cd0
EZ
128202019-03-18 Eli Zaretskii <eliz@gnu.org>
12821
12822 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12823 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12824 it returns a newline. This fixes a regression in TU mode, whereby
12825 the next line is output on the same screen line as the user input.
12826
4bd56d18
TT
128272019-03-18 Tom Tromey <tromey@adacore.com>
12828
12829 * minsyms.c (minimal_symbol_reader::install): Remove call to
12830 obstack_blank.
12831
55c10aca
PA
128322019-03-18 Pedro Alves <palves@redhat.com>
12833
12834 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12835 New globals.
12836 (apply_style): New, factored out from ...
12837 (apply_ansi_escape): ... this. Handle reverse video mode.
12838 (tui_set_reverse_mode): New function.
12839 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12840 * tui/tui-winsource.c (tui_show_source_line): Use
12841 tui_set_reverse_mode instead of setting A_STANDOUT.
12842 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12843 New setter methods.
12844
647bb750
HD
128452019-03-18 Hannes Domani <ssbssa@yahoo.de>
12846
12847 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12848 Handle tabs.
12849
bff8c71f
TT
128502019-03-18 Tom Tromey <tromey@adacore.com>
12851
12852 * ada-lang.c (empty_array): Add "high" parameter.
12853 (ada_evaluate_subexp): Update.
12854
58785d98
ST
128552019-03-17 Sergei Trofimovich <siarheit@google.com>
12856
12857 * unittests/string_view-selftests.c: Define
12858 _initialize_string_view_selftests unconditionally.
12859
d4cbef22
ВМ
128602019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12861
12862 PR gdb/24350
12863 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12864
fce4c071
ВМ
128652019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12866
12867 PR gdb/24351
12868 * windows-nat.c (display_selector): Fix format specifiers.
12869
f7f0a123
EZ
128702019-03-17 Eli Zaretskii <eliz@gnu.org>
12871
12872 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12873 tui_refill_source_window instead of tui_refresh_win, to update the
12874 current execution line. This fixes redisplay of the current line
12875 when stepping through the code with "next" or "step".
12876
ab42892f
EZ
128772019-03-16 Eli Zaretskii <eliz@gnu.org>
12878
12879 * source-cache.c (source_cache::get_source_lines): Call
12880 find_source_lines to initialize s->nlines. This fixes vertical
12881 scrolling of TUI source window when the DOWN arrow is pressed.
12882
8d8c087f
PW
128832019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12884
12885 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12886 linux-thread-db.c (_initialize_thread_db): Likewise.
12887
798e1c30
EZ
128882019-03-16 Eli Zaretskii <eliz@gnu.org>
12889
12890 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12891 wclrtoeol in tui_show_source_line". This reverts changes made in
12892 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12893
eefba3da
TT
128942019-03-15 Tom Tromey <tom@tromey.com>
12895
12896 * symtab.h (struct minimal_symbol): Derive from
12897 general_symbol_info.
12898 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12899 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12900 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12901 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12902 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12903 (MSYMBOL_SEARCH_NAME): Update.
12904 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12905 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12906 * minsyms.c (minimal_symbol_reader::record_full): Update.
12907
0de2420c
TT
129082019-03-15 Tom Tromey <tom@tromey.com>
12909
12910 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12911
042d75e4
TT
129122019-03-15 Tom Tromey <tom@tromey.com>
12913
12914 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12915 unique_xmalloc_ptr.
12916 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12917 Update.
12918 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12919 (build_minimal_symbol_hash_tables)
12920 (minimal_symbol_reader::install): Update.
12921
db92718b
TT
129222019-03-15 Tom Tromey <tom@tromey.com>
12923
12924 * symtab.c (create_demangled_names_hash): Update.
12925 (symbol_set_names): Update.
12926 * objfiles.h (struct objfile_per_bfd_storage)
12927 <demangled_names_hash>: Now an htab_up.
12928 * objfiles.c (objfile_per_bfd_storage): Simplify.
12929
d6797f46
TT
129302019-03-15 Tom Tromey <tom@tromey.com>
12931
12932 * objfiles.h (struct objfile_per_bfd_storage): Declare
12933 destructor.
12934 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12935 New.
12936 (get_objfile_bfd_data): Use new. Don't initialize
12937 language_of_main.
12938 (free_objfile_per_bfd_storage): Remove.
12939 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12940
741d7538
TT
129412019-03-15 Tom Tromey <tom@tromey.com>
12942
12943 * symfile.c (reread_symbols): Update.
12944 * objfiles.c (objfile::objfile): Update.
12945 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12946 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12947 comment.
12948 (minimal_symbol_reader::install): Update.
12949 (terminate_minimal_symbol_table): Remove.
12950 * jit.c (jit_object_close_impl): Update.
12951
788c80d1
TT
129522019-03-15 Tom Tromey <tom@tromey.com>
12953
12954 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12955 initializations.
12956
1b7a07cb
TT
129572019-03-15 Tom Tromey <tom@tromey.com>
12958
12959 * objfiles.h (struct objfile_per_bfd_storage)
12960 <demangled_hash_languages>: Now a bitset.
12961 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12962 (lookup_minimal_symbol): Update.
12963
3db066bc
TT
129642019-03-15 Tom Tromey <tom@tromey.com>
12965
12966 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12967 Don't return the symbol.
12968 * coffread.c (record_minimal_symbol): Use record_full.
12969
3fff2c37
EZ
129702019-03-14 Eli Zaretskii <eliz@gnu.org>
12971
12972 The MS-Windows port of ncurses fails to switch to a color pair if
12973 one or both of the colors are the implicit default colors. This
12974 change records the default colors when TUI is initialized, and
12975 then specifies them explicitly when a color pair uses the default
12976 colors. This allows color styling in TUI mode on MS-Windows.
12977
12978 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12979 ncurses_norm_attr.
12980 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12981 colors in ncurses_norm_attr.
12982 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12983 "none", replace it with the default color recorded in
12984 ncurses_norm_attr.
12985
3b336828
TT
129862019-03-14 Tom Tromey <tromey@adacore.com>
12987
12988 * source-cache.h (class source_cache) <get_source_lines>: Return
12989 std::string.
12990 * source-cache.c (source_cache::extract_lines): Handle case where
12991 first_pos==npos. Return std::string.
12992 (source_cache::get_source_lines): Update.
12993
d085f989
TT
129942019-03-14 Tom Tromey <tromey@adacore.com>
12995
12996 * NEWS: Add item for "style sources" commands.
12997 * source-cache.c (source_cache::get_source_lines): Check
12998 source_styling.
12999 * cli/cli-style.c (source_styling): New global.
13000 (_initialize_cli_style): Add "style sources" commands.
13001 (show_style_sources): New function.
13002 * cli/cli-style.h (source_styling): Declare.
13003
6f11e682
TT
130042019-03-14 Pedro Alves <palves@redhat.com>
13005 Tom Tromey <tromey@adacore.com>
13006
13007 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13008 * tui/tui-winsource.c (tui_refill_source_window): New function,
13009 from...
13010 (tui_horizontal_source_scroll): ... here. Move some logic.
13011 * cli/cli-style.c (set_style_enabled): Notify new observable.
13012 * tui/tui-hooks.c (tui_redisplay_source): New function.
13013 (tui_attach_detach_observers): Attach or detach
13014 tui_redisplay_source.
13015 * observable.h (source_styling_changed): New observable.
13016 * observable.c: Define source_styling_changed observable.
13017
a068643d
TT
130182019-03-13 Tom Tromey <tromey@adacore.com>
13019
13020 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13021 (i386_gnu_nat_target::store_registers): Update.
13022 * target-debug.h (target_debug_print_std_string): New macro.
13023 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13024 * windows-tdep.c (display_one_tib): Update.
13025 * tui/tui-stack.c (tui_make_status_line): Update.
13026 * top.c (print_inferior_quit_action): Update.
13027 * thread.c (thr_try_catch_cmd): Update.
13028 (add_thread_with_info): Update.
13029 (thread_target_id_str): Update.
13030 (thr_try_catch_cmd): Update.
13031 (thread_command): Update.
13032 (thread_find_command): Update.
13033 * record-btrace.c (record_btrace_target::info_record)
13034 (record_btrace_resume_thread, record_btrace_target::resume)
13035 (record_btrace_cancel_resume, record_btrace_step_thread)
13036 (record_btrace_target::wait, record_btrace_target::wait)
13037 (record_btrace_target::wait, record_btrace_target::stop): Update.
13038 * progspace.c (print_program_space): Update.
13039 * process-stratum-target.c
13040 (process_stratum_target::thread_address_space): Update.
13041 * linux-fork.c (linux_fork_mourn_inferior)
13042 (detach_checkpoint_command, info_checkpoints_command)
13043 (linux_fork_context): Update.
13044 (linux_fork_detach): Update.
13045 (class scoped_switch_fork_info): Update.
13046 (delete_checkpoint_command): Update.
13047 * infrun.c (follow_fork_inferior): Update.
13048 (follow_fork_inferior): Update.
13049 (proceed_after_vfork_done): Update.
13050 (handle_vfork_child_exec_or_exit): Update.
13051 (follow_exec): Update.
13052 (displaced_step_prepare_throw): Update.
13053 (displaced_step_restore): Update.
13054 (start_step_over): Update.
13055 (resume_1): Update.
13056 (clear_proceed_status_thread): Update.
13057 (proceed): Update.
13058 (print_target_wait_results): Update.
13059 (do_target_wait): Update.
13060 (context_switch): Update.
13061 (stop_all_threads): Update.
13062 (restart_threads): Update.
13063 (finish_step_over): Update.
13064 (handle_signal_stop): Update.
13065 (switch_back_to_stepped_thread): Update.
13066 (keep_going_pass_signal): Update.
13067 (print_exited_reason): Update.
13068 (normal_stop): Update.
13069 * inferior.c (inferior_pid_to_str): Change return type.
13070 (print_selected_inferior): Update.
13071 (add_inferior): Update.
13072 (detach_inferior): Update.
13073 * dummy-frame.c (fprint_dummy_frames): Update.
13074 * dcache.c (dcache_info_1): Update.
13075 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13076 (btrace_fetch, btrace_clear): Update.
13077 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13078 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13079 type.
13080 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13081 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13082 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13083 * gdbarch.c, gdbarch.h: Rebuild.
13084 * gdbarch.sh (core_pid_to_str): Change return type.
13085 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13086 return type.
13087 (windows_nat_target::pid_to_str): Change return type.
13088 (windows_delete_thread): Update.
13089 (windows_nat_target::attach): Update.
13090 (windows_nat_target::files_info): Update.
13091 * target-delegates.c: Rebuild.
13092 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13093 return type.
13094 (sol_thread_target::pid_to_str): Change return type.
13095 * remote.c (class remote_target) <pid_to_str>: Change return
13096 type.
13097 (remote_target::pid_to_str): Change return type.
13098 (extended_remote_target::attach, remote_target::remote_stop_ns)
13099 (remote_target::remote_notif_remove_queued_reply)
13100 (remote_target::push_stop_reply, remote_target::disable_btrace):
13101 Update.
13102 (extended_remote_target::attach): Update.
13103 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13104 type.
13105 (gdbsim_target::pid_to_str): Change return type.
13106 * ravenscar-thread.c (struct ravenscar_thread_target)
13107 <pid_to_str>: Change return type.
13108 (ravenscar_thread_target::pid_to_str): Change return type.
13109 * procfs.c (class procfs_target) <pid_to_str>: Change return
13110 type.
13111 (procfs_target::pid_to_str): Change return type.
13112 (procfs_target::attach): Update.
13113 (procfs_target::detach): Update.
13114 (procfs_target::fetch_registers): Update.
13115 (procfs_target::store_registers): Update.
13116 (procfs_target::wait): Update.
13117 (procfs_target::files_info): Update.
13118 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13119 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13120 return type.
13121 (nto_procfs_target::pid_to_str): Change return type.
13122 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13123 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13124 return type.
13125 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13126 (exit_lwp): Update.
13127 (attach_proc_task_lwp_callback, get_detach_signal)
13128 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13129 (linux_nat_target::resume, wait_lwp, stop_callback)
13130 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13131 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13132 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13133 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13134 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13135 type.
13136 (inf_ptrace_target::attach): Update.
13137 (inf_ptrace_target::files_info): Update.
13138 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13139 type.
13140 (go32_nat_target::pid_to_str): Change return type.
13141 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13142 (gnu_nat_target::wait): Update.
13143 (gnu_nat_target::wait): Update.
13144 (gnu_nat_target::resume): Update.
13145 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13146 (fbsd_nat_target::wait): Update.
13147 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13148 type.
13149 (darwin_nat_target::attach): Update.
13150 * corelow.c (class core_target) <pid_to_str>: Change return type.
13151 (core_target::pid_to_str): Change return type.
13152 * target.c (normal_pid_to_str): Change return type.
13153 (default_pid_to_str): Likewise.
13154 (target_pid_to_str): Change return type.
13155 (target_translate_tls_address): Update.
13156 (target_announce_detach): Update.
13157 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13158 return type.
13159 (bsd_uthread_target::pid_to_str): Change return type.
13160 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13161 type.
13162 (bsd_kvm_target::pid_to_str): Change return type.
13163 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13164 return type.
13165 (aix_thread_target::pid_to_str): Change return type.
13166 * target.h (struct target_ops) <pid_to_str>: Change return type.
13167 (target_pid_to_str, normal_pid_to_str): Likewise.
13168 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13169 type.
13170 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13171 type.
13172 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13173 return type.
13174 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13175 type.
13176 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13177 type.
13178 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13179 return type.
13180
b4be1b06
SM
131812019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13182
13183 * NEWS: Mention that the new default MI version is 3. Mention
13184 changes to the output of commands and events that deal with
13185 multi-location breakpoints.
13186 * breakpoint.c: Include "mi/mi-out.h".
13187 (print_one_breakpoint): Change output syntax if using MI version
13188 >= 3.
13189 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13190 New.
13191 (mi_multi_location_breakpoint_output_fixed): New.
13192 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13193 (mi_cmd_fix_multi_location_breakpoint_output): New.
13194 (mi_multi_location_breakpoint_output_fixed): New.
13195 * mi/mi-cmds.c (mi_cmds): Register command
13196 -fix-multi-location-breakpoint-output.
13197 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13198 interpreter "mi".
13199
8e5e5494
SM
132002019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13201
13202 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13203 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13204 instantiate mi_ui_out based on interpreter name.
13205 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13206 * mi/mi-main.c (mi_load_progress): Likewise.
13207
197df35e
JB
132082019-03-12 John Baldwin <jhb@FreeBSD.org>
13209
13210 * NEWS: Combine separate "New targets" sections for 8.3.
13211
8399425f
JB
132122019-03-12 John Baldwin <jhb@FreeBSD.org>
13213
13214 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13215 (ppcfbsd_init_abi): Install gdbarch
13216 "fetch_tls_load_module_address" and "get_thread_local_address"
13217 methods.
13218
b0f87ed0
JB
132192019-03-12 John Baldwin <jhb@FreeBSD.org>
13220
13221 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13222 (riscv_fbsd_init_abi): Install gdbarch
13223 "fetch_tls_load_module_address" and "get_thread_local_address"
13224 methods.
13225
ce25aa57
JB
132262019-03-12 John Baldwin <jhb@FreeBSD.org>
13227
13228 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13229 (i386fbsd_init_abi): Install gdbarch
13230 "fetch_tls_load_module_address" and "get_thread_local_address"
13231 methods.
13232
f5424cfa
JB
132332019-03-12 John Baldwin <jhb@FreeBSD.org>
13234
13235 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13236 (amd64fbsd_init_abi): Install gdbarch
13237 "fetch_tls_load_module_address" and "get_thread_local_address"
13238 methods.
13239
945f3901
JB
132402019-03-12 John Baldwin <jhb@FreeBSD.org>
13241
13242 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13243 (struct fbsd_pspace_data): New type.
13244 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13245 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13246 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13247 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13248 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13249
ef0bd204
JB
132502019-03-12 John Baldwin <jhb@FreeBSD.org>
13251
13252 * gdbtypes.c (lookup_struct_elt): New function.
13253 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13254 * gdbtypes.h (struct struct_elt): New type.
13255 (lookup_struct_elt): New prototype.
13256
36c53a02
JB
132572019-03-12 John Baldwin <jhb@FreeBSD.org>
13258
13259 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13260 remove disabled code block.
13261
6e056c81
JB
132622019-03-12 John Baldwin <jhb@FreeBSD.org>
13263
13264 * gdbarch.sh (get_thread_local_address): New method.
13265 * gdbarch.h, gdbarch.c: Regenerate.
13266 * target.c (target_translate_tls_address): Use
13267 gdbarch_get_thread_local_address if present instead of
13268 target::get_thread_local_address.
13269
cd250a18
JB
132702019-03-12 John Baldwin <jhb@FreeBSD.org>
13271
13272 * target.h (target::get_thread_local_address): Update comment.
13273
df22c1e5
JB
132742019-03-12 John Baldwin <jhb@FreeBSD.org>
13275
13276 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13277 objfile->separate_debug_objfile_backlink if not NULL.
13278
dd6876c9
JB
132792019-03-12 John Baldwin <jhb@FreeBSD.org>
13280
13281 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13282 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13283 (amd64bsd_store_inferior_registers): Likewise.
13284 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13285 Enable segment base registers.
13286 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13287 PT_GETFSBASE and PT_GETGSBASE.
13288 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13289 PT_SETGSBASE.
13290 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13291 segment base registers.
13292 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13293
1163a4b7
JB
132942019-03-12 John Baldwin <jhb@FreeBSD.org>
13295
13296 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13297 Update calls to i386_target_description to add 'segments'
13298 parameter.
13299 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13300 add segment base registers.
13301 * arch/i386.c (i386_create_target_description): Add 'segments'
13302 parameter to enable segment base registers.
13303 * arch/i386.h (i386_create_target_description): Likewise.
13304 * features/i386/32bit-segments.xml: New file.
13305 * features/i386/32bit-segments.c: Generate.
13306 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13307 call to i386_target_description to add 'segments' parameter.
13308 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13309 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13310 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13311 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13312 if feature is present.
13313 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13314 Add 'segments' parameter to call to i386_target_description.
13315 (i386_target_description): Add 'segments' parameter to enable
13316 segment base registers.
13317 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13318 to call to i386_target_description.
13319 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13320 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13321 Define I386_NUM_REGS.
13322 (i386_target_description): Add 'segments' parameter to enable
13323 segment base registers.
13324
3a350822
EZ
133252019-03-12 Eli Zaretskii <eliz@gnu.org>
13326
13327 PR/24325
13328 * source-cache.c: #undef open and close, to avoid unresolved
13329 externals during linking.
13330
ffdd69cf
TT
133312019-03-12 Tom Tromey <tromey@adacore.com>
13332
13333 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13334 const. Add initializers.
13335 (_initialize_remote): Don't initialize ptid globals.
13336
ec148c57
PA
133372019-03-12 Pedro Alves <palves@redhat.com>
13338
13339 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13340
32764270
PA
133412019-03-12 Pedro Alves <palves@redhat.com>
13342
13343 * cp-name-parser.y (main): Remove unused 'len' variable.
13344
17547186
TT
133452019-03-12 Tom Tromey <tromey@adacore.com>
13346
13347 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13348 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13349
d3a70e03
TT
133502019-03-12 Tom Tromey <tromey@adacore.com>
13351
13352 * linux-nat.c (iterate_over_lwps): Update.
13353 (stop_callback): Remove parameter.
13354 (stop_wait_callback, detach_callback, resume_set_callback)
13355 (select_singlestep_lwp_callback, set_ignore_sigint)
13356 (status_callback, resumed_callback, resume_clear_callback)
13357 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13358 data parameter.
13359 (linux_nat_target::detach, linux_nat_target::resume)
13360 (linux_stop_and_wait_all_lwps, select_event_lwp)
13361 (linux_nat_filter_event, linux_nat_wait_1)
13362 (linux_nat_target::kill, linux_nat_target::stop)
13363 (linux_nat_target::stop): Update.
13364 (linux_nat_resume_callback): Change type.
13365 (resume_stopped_resumed_lwps, count_events_callback)
13366 (select_event_lwp_callback): Likewise.
13367 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13368 * arm-linux-nat.c (struct update_registers_data): Remove.
13369 (update_registers_callback): Change type.
13370 (arm_linux_insert_hw_breakpoint1): Update.
13371 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13372 parameter.
13373 (x86_linux_dr_set_addr): Update.
13374 (x86_linux_dr_set_control): Update.
13375 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13376 (iterate_over_lwps): Use gdb::function_view.
13377 * nat/aarch64-linux-hw-point.c (struct
13378 aarch64_dr_update_callback_param): Remove.
13379 (debug_reg_change_callback): Change type.
13380 (aarch64_notify_debug_reg_change): Update.
13381 * s390-linux-nat.c (s390_refresh_per_info): Update.
13382
82cb27ff
TT
133832019-03-11 Tom Tromey <tromey@adacore.com>
13384
13385 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13386 redundant assignment to "this_cu".
13387
568c0683
SM
133882019-03-08 Simon Marchi <simon.marchi@efficios.com>
13389
13390 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13391
f09ce22d
SM
133922019-03-08 Simon Marchi <simon.marchi@efficios.com>
13393
13394 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13395 from...
13396 (rank_one_type): ... this.
13397
595f96a9
SM
133982019-03-08 Simon Marchi <simon.marchi@efficios.com>
13399
13400 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13401 from...
13402 (rank_one_type): ... this.
13403
2598a94b
SM
134042019-03-08 Simon Marchi <simon.marchi@efficios.com>
13405
13406 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13407 from...
13408 (rank_one_type): ... this.
13409
7f17b20d
SM
134102019-03-08 Simon Marchi <simon.marchi@efficios.com>
13411
13412 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13413 from...
13414 (rank_one_type): ... this.
13415
2c509035
SM
134162019-03-08 Simon Marchi <simon.marchi@efficios.com>
13417
13418 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13419 from...
13420 (rank_one_type): ... this.
13421
0dd322dc
SM
134222019-03-08 Simon Marchi <simon.marchi@efficios.com>
13423
13424 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13425 from...
13426 (rank_one_type): ... this.
13427
41ea4728
SM
134282019-03-08 Simon Marchi <simon.marchi@efficios.com>
13429
13430 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13431 from...
13432 (rank_one_type): ... this.
13433
793cd1d2
SM
134342019-03-08 Simon Marchi <simon.marchi@efficios.com>
13435
13436 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13437 from...
13438 (rank_one_type): ... this.
13439
34910087
SM
134402019-03-08 Simon Marchi <simon.marchi@efficios.com>
13441
13442 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13443 from...
13444 (rank_one_type): ... this.
13445
f1f832d6
SM
134462019-03-08 Simon Marchi <simon.marchi@efficios.com>
13447
13448 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13449 from...
13450 (rank_one_type): ... this.
13451
b9f4512f
SM
134522019-03-08 Simon Marchi <simon.marchi@efficios.com>
13453
13454 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13455 from...
13456 (rank_one_type): ... this.
13457
9293fc63
SM
134582019-03-08 Simon Marchi <simon.marchi@efficios.com>
13459
13460 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13461 from...
13462 (rank_one_type): ... this.
13463
e3abbe7e
PW
134642019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13465
13466 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13467 inferior-events' shows the example events.
13468
e4adb939
EZ
134692019-03-08 Eli Zaretskii <eliz@gnu.org>
13470
13471 Support styling on native MS-Windows console
13472
13473 PR/24315
13474 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13475 on MS-Windows if $TERM is not defined.
13476
13477 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13478
13479 * posix-hdep.c (gdb_console_fputs):
13480 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13481 functions.
13482 * ui-file.h (gdb_console_fputs): Add prototype.
13483
13484 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13485 back to fputs only if the former returns zero.
13486
25629dfd
TT
134872019-03-07 Tom Tromey <tom@tromey.com>
13488
13489 * symmisc.c (print_symbol_bcache_statistics): Update.
13490 (print_objfile_statistics): Update.
13491 * symfile.c (allocate_symtab): Update.
13492 * stabsread.c: Don't include bcache.h.
13493 * psymtab.h (struct psymbol_bcache): Don't declare.
13494 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13495 (psymbol_bcache_init, psymbol_bcache_free)
13496 (psymbol_bcache_get_bcache): Don't declare.
13497 * psymtab.c (struct psymbol_bcache): Remove.
13498 (psymtab_storage::psymtab_storage): Update.
13499 (psymtab_storage::~psymtab_storage): Update.
13500 (psymbol_bcache_init, psymbol_bcache_free)
13501 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13502 (add_psymbol_to_bcache): Update.
13503 (allocate_psymtab): Update.
13504 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13505 macro_cache>: No longer pointers.
13506 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13507 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13508 * macrotab.c (macro_bcache): Update.
13509 * macroexp.c: Don't include bcache.h.
13510 * gdbtypes.c (check_types_worklist): Update.
13511 (types_deeply_equal): Remove TRY/CATCH. Update.
13512 * elfread.c (elf_symtab_read): Update.
13513 * dwarf2read.c: Don't include bcache.h.
13514 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13515 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13516 (print_bcache_statistics, bcache_memory_used): Don't declare.
13517 (struct bcache): Move from bcache.c. Add constructor, destructor,
13518 methods. Rename all data members.
13519 * bcache.c (struct bcache): Move to bcache.h.
13520 (bcache::expand_hash_table): Rename from expand_hash_table.
13521 (bcache): Remove.
13522 (bcache::insert): Rename from bcache_full.
13523 (bcache::compare): Rename from bcache_compare.
13524 (bcache_xmalloc): Remove.
13525 (bcache::~bcache): Rename from bcache_xfree.
13526 (bcache::print_statistics): Rename from print_bcache_statistics.
13527 (bcache::memory_used): Rename from bcache_memory_used.
13528
fe726667
PA
135292019-03-07 Pedro Alves <palves@redhat.com>
13530
13531 * infrun.c (normal_stop): Also check for
13532 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13533
7584bb30
AB
135342019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13535
13536 * f-lang.c (value_from_host_double): Moved to...
13537 * value.c (value_from_host_double): ...here.
13538 * value.h (value_from_host_double): Declare.
13539 * guile/scm-math.c (vlscm_convert_typed_number): Use
13540 value_from_host_double.
13541 (vlscm_convert_number): Likewise.
13542 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13543 * python/py-value.c (convert_value_from_python): Likewise.
13544
a7b1986e
TT
135452019-03-06 Tom Tromey <tom@tromey.com>
13546
13547 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13548
0ccf4211
TT
135492019-03-06 Tom Tromey <tom@tromey.com>
13550
13551 * utils.h (free_current_contents): Don't declare.
13552 * utils.c (free_current_contents): Remove.
13553
fe7b42e5
TT
135542019-03-06 Tom Tromey <tom@tromey.com>
13555
13556 * top.c (quit_force): Update.
13557 * main.c (captured_command_loop): Update.
13558 * common/new-op.c (operator new): Update.
13559 * common/common-exceptions.c (struct catcher)
13560 <save_cleanup_chain>: Remove member.
13561 (exceptions_state_mc_init): Update.
13562 (exception_try_scope_entry): Return nullptr.
13563 (exception_try_scope_exit, exception_rethrow)
13564 (throw_exception_sjlj, throw_exception_cxx): Update.
13565 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13566 (all_cleanups, do_cleanups, discard_cleanups)
13567 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13568 (restore_cleanups, restore_final_cleanups): Don't declare.
13569 (do_final_cleanups): Remove parameter.
13570 * common/cleanups.c (cleanup_chain, make_cleanup)
13571 (make_cleanup_dtor, all_cleanups, do_cleanups)
13572 (discard_my_cleanups, discard_cleanups)
13573 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13574 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13575 (null_cleanup): Remove.
13576 (do_final_cleanups): Remove parameter.
13577
c6321f19
TT
135782019-03-06 Tom Tromey <tom@tromey.com>
13579
13580 * remote.c (remote_target::remote_parse_stop_reply): Use
13581 unique_xmalloc_ptr.
13582
61b30099
TT
135832019-03-06 Tom Tromey <tom@tromey.com>
13584
13585 * stabsread.c (struct stabs_field_info): Rename from field_info.
13586 <list, fnlist>: Add initializers.
13587 <obstack>: New member.
13588 (read_member_functions, read_struct_fields, read_baseclasses):
13589 Allocate on obstack. Don't use cleanups.
13590 (read_one_struct_field, read_member_functions, read_struct_fields)
13591 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13592 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13593 (read_struct_type): Update.
13594
6cceac94
TT
135952019-03-06 Tom Tromey <tom@tromey.com>
13596
13597 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13598 * common/filestuff.h (make_cleanup_close): Don't declare.
13599 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13600 Remove.
13601
72412762
TT
136022019-03-06 Tom Tromey <tom@tromey.com>
13603
13604 * solib-aix.c: Use make_scope_exit.
13605
2b6ff1c0
TT
136062019-03-06 Tom Tromey <tom@tromey.com>
13607
13608 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13609 Use make_scope_exit.
13610
d01c5877
TT
136112019-03-06 Tom Tromey <tom@tromey.com>
13612
13613 * solib-svr4.c (disable_probes_interface): Remove parameter.
13614 (svr4_handle_solib_event): Use make_scope_exit.
13615
32603266
TT
136162019-03-06 Tom Tromey <tom@tromey.com>
13617
13618 * remote.c (struct stop_reply_deleter): Remove.
13619 (stop_reply_up): Update.
13620 (struct stop_reply): Derive from notif_event. Don't typedef.
13621 <regcache>: Now a std::vector.
13622 (stop_reply_xfree): Remove.
13623 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13624 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13625 (remote_target::discard_pending_stop_replies): Use delete.
13626 (remote_target::remote_parse_stop_reply): Update.
13627 (remote_target::process_stop_reply): Update.
13628 * remote-notif.h (struct notif_event): Add virtual destructor.
13629 Remove "dtr" member.
13630 (struct notif_client) <alloc_event>: Return a unique_ptr.
13631 (notif_event_xfree): Don't declare.
13632 (notif_event_up): New typedef.
13633 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13634 (notif_event_xfree, do_notif_event_xfree): Remove.
13635 (remote_notif_state_xfree): Update.
13636
9799571e
TT
136372019-03-06 Tom Tromey <tom@tromey.com>
13638
13639 * infrun.c (displaced_step_clear_cleanup): Now a
13640 forward_scope_exit type.
13641 (displaced_step_prepare_throw): Update.
13642 (displaced_step_fixup): Update.
13643
09e3c4ca
TT
136442019-03-06 Tom Tromey <tom@tromey.com>
13645
13646 * inferior.h (class inferior): Update comment.
13647 * gdbthread.h (class thread_info): Update comment.
13648
e2a03548
TT
136492019-03-06 Joel Brobecker <brobecker@adacore.com>
13650 Tom Tromey <tom@tromey.com>
13651
13652 * stabsread.h (struct stab_section_list): Remove.
13653 (coffstab_build_psymtabs): Update.
13654 * dbxread.c (symbuf_sections): Now a std::vector.
13655 (sect_idx): New global.
13656 (fill_symbuf): Update.
13657 (coffstab_build_psymtabs): Change type of stabsects parameter.
13658 Update.
13659 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13660 std::vector.
13661 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13662 (coff_locate_sections): Update.
13663 (coff_symfile_read): Remove cleanups. Update.
13664 (init_stringtab): Add storage parameter.
13665 (free_stringtab, free_stringtab_cleanup): Remove.
13666 (init_lineno): Add storage parameter.
13667 (free_linetab, free_linetab_cleanup): Remove.
13668
b7e60d85
PA
136692019-03-06 Pedro Alves <palves@redhat.com>
13670
13671 * linux-fork.c (fork_info::clobber_regs): Delete.
13672 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13673 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13674 comment. Adjust.
13675 (scoped_switch_fork_info::scoped_switch_fork_info)
13676 (checkpoint_command, linux_fork_context): Adjust
13677 fork_save_infrun_state calls.
13678
e52c971f
PA
136792019-03-06 Pedro Alves <palves@redhat.com>
13680
13681 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13682 (inf_has_multiple_threads): Return 'bool' and rewrite using
13683 inferior_info::threads().
13684
06974e6c
PA
136852019-03-06 Pedro Alves <palves@redhat.com>
13686
13687 * linux-fork.c: Include <list>.
13688 (fork_list): Now a std::list instance.
13689 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13690 (forks_exist_p, find_last_fork): Adjust.
13691 (new_fork): Delete.
13692 (one_fork_p): New.
13693 (add_fork): Adjust.
13694 (free_fork): Delete, folded into fork_info::~fork_info().
13695 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13696 Adjust.
13697 (init_fork_list): Delete.
13698 (linux_fork_killall, linux_fork_mourn_inferior)
13699 (linux_fork_detach, info_checkpoints_command): Adjust.
13700 (_initialize_linux_fork): No longer call init_fork_list.
13701
72f31aea
PA
137022019-03-06 Pedro Alves <palves@redhat.com>
13703
13704 * linux-fork.c (new_fork): New, split out of ...
13705 (add_fork): ... this. Return void. Move "first fork" special
13706 case from here, to ...
13707 (checkpoint_command): ... here.
13708 * linux-linux.h (add_fork): Return void.
13709
efbecbc1
AB
137102019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13711
13712 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13713
0841c79a
AB
137142019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13715 Chris January <chris.january@arm.com>
13716 David Lecomber <david.lecomber@arm.com>
13717
13718 * f-exp.y: New token, UNOP_INTRINSIC.
13719 (exp): New pattern using UNOP_INTRINSIC token.
13720 (f77_keywords): Add 'abs' keyword.
13721 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13722 (value_from_host_double): New function.
13723 (evaluate_subexp_f): Support UNOP_ABS.
13724
4a270568
AB
137252019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13726
13727 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13728 types.
13729
067630bd
AB
137302019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13731
13732 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13733 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13734 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13735
3be47f7a
AB
137362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13737
13738 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13739
4d00f5d8
AB
137402019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13741 Chris January <chris.january@arm.com>
13742
13743 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13744 * f-exp.y: Define 'KIND' token.
13745 (exp): New pattern for KIND expressions.
13746 (ptype): Handle types with a kind extension.
13747 (direct_abs_decl): Extend to spot kind extensions.
13748 (f77_keywords): Add 'kind' to the list.
13749 (push_kind_type): New function.
13750 (convert_to_kind_type): New function.
13751 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13752 * parse.c (operator_length_standard): Likewise.
13753 * parser-defs.h (enum type_pieces): Add tp_kind.
13754 * std-operator.def: Add UNOP_KIND.
13755
e454224f
AB
137562019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13757
13758 * f-exp.y (f_parse): Set yydebug.
13759
9dad4a58
AB
137602019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13761
13762 * f-lang.c (evaluate_subexp_f): New function.
13763 (exp_descriptor_f): New global.
13764 (f_language_defn): Use exp_descriptor_f instead of
13765 exp_descriptor_standard.
13766
c8f91604
AB
137672019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13768
13769 * f-exp.y (struct token): Add comments.
13770 (dot_ops): Remove uppercase versions and the end marker.
13771 (f77_keywords): Likewise.
13772 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13773 entries in the dot_ops array are case insensitive, and use
13774 strncasecmp to compare strings. Also some whitespace cleanup in
13775 this area. Similar for the f77_keywords array, except entries in
13776 this list might be case sensitive.
13777
dd9f2c76
AB
137782019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13779
13780 * f-exp.y (struct f77_boolean_val): Add comments.
13781 (boolean_values): Remove uppercase versions, and end marker.
13782 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13783 and use strncasecmp to achieve case insensitivity. Additionally,
13784 perform whitespace cleanup around this code.
13785
67a3048c
TT
137862019-03-06 Tom Tromey <tromey@adacore.com>
13787
13788 * remote-sim.c (gdbsim_target_open): Use result of
13789 gdb_argv::release.
13790
aa3cfbda
RB
137912019-03-06 Richard Bunt <richard.bunt@arm.com>
13792 Dirk Schubert <dirk.schubert@arm.com>
13793 Chris January <chris.january@arm.com>
13794
13795 * eval.c (evaluate_subexp_standard): Call Fortran argument
13796 wrapping logic.
13797 * f-lang.c (struct value): A value which can be passed into a
13798 Fortran function call.
13799 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13800 where appropriate.
13801 (struct type): Value ready for a Fortran function call.
13802 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13803 is needed.
13804 * f-lang.h (fortran_argument_convert): Declaration.
13805 (fortran_preserve_arg_pointer): Declaration.
13806 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13807
ea38e5df
TT
138082019-03-05 Tom Tromey <tromey@adacore.com>
13809
13810 * python/py-prettyprint.c (print_string_repr): Remove #if.
13811 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13812
06b5b831
TT
138132019-03-05 Tom Tromey <tromey@adacore.com>
13814
13815 * target.c (the_dummy_target): Move later. Change type to
13816 "dummy_target".
13817 (initialize_targets): Don't initialize the_dummy_target.
13818
edbd9e45
TT
138192019-03-05 Tom Tromey <tromey@adacore.com>
13820
13821 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13822 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13823
c119e040
TT
138242019-03-05 Tom Tromey <tromey@adacore.com>
13825
13826 * windows-nat.c (windows_nat_target::attach)
13827 (windows_nat_target::detach): Don't call gdb_flush.
13828 * valprint.c (generic_val_print, val_print, val_print_string):
13829 Don't call gdb_flush.
13830 * utils.c (defaulted_query): Don't call gdb_flush.
13831 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13832 * target.c (target_announce_detach): Don't call gdb_flush.
13833 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13834 * remote.c (extended_remote_target::attach): Don't call
13835 gdb_flush.
13836 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13837 * printcmd.c (do_examine): Don't call gdb_flush.
13838 (info_display_command): Don't call gdb_flush.
13839 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13840 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13841 * memattr.c (info_mem_command): Don't call gdb_flush.
13842 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13843 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13844 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13845 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13846 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13847 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13848 (gnu_nat_target::detach): Don't call gdb_flush.
13849 * f-valprint.c (f_val_print): Don't call gdb_flush.
13850 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13851 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13852 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13853 gdb_flush.
13854 * c-valprint.c (c_val_print): Don't call gdb_flush.
13855 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13856
895dafa6
TT
138572019-03-05 Tom Tromey <tromey@adacore.com>
13858
13859 * varobj.c (update_dynamic_varobj_children): Update.
13860 (install_default_visualizer): Use reset, not release.
13861 * value.c (set_internalvar): Update.
13862 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13863 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13864 ATTRIBUTE_UNUSED_RESULT.
13865
88a774b9
TT
138662019-03-05 Tom Tromey <tromey@adacore.com>
13867
13868 * remote.c (class scoped_remote_fd) <release>: Add
13869 ATTRIBUTE_UNUSED_RESULT.
13870
4e4a8b93
TT
138712019-03-05 Tom Tromey <tromey@adacore.com>
13872
13873 * macroexp.c (struct macro_buffer) <release>: Add
13874 ATTRIBUTE_UNUSED_RESULT.
13875
083eef1f
TT
138762019-03-05 Tom Tromey <tromey@adacore.com>
13877
13878 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13879 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13880 ATTRIBUTE_UNUSED_RESULT.
13881
3cabd438
TT
138822019-03-05 Tom Tromey <tromey@adacore.com>
13883
13884 * common/scoped_fd.h (class scoped_fd) <release>: Add
13885 ATTRIBUTE_UNUSED_RESULT.
13886
41e3300a
TT
138872019-03-05 Tom Tromey <tromey@adacore.com>
13888
13889 * parser-defs.h (struct parser_state) <release>: Add
13890 ATTRIBUTE_UNUSED_RESULT.
13891
18cb7c9f
TT
138922019-03-05 Tom Tromey <tromey@adacore.com>
13893
13894 * utils.h (class gdb_argv) <release>: Add
13895 ATTRIBUTE_UNUSED_RESULT.
13896 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13897
41fa577f
EZ
138982019-03-02 Eli Zaretskii <eliz@gnu.org>
13899
a6a4b2c6
EZ
13900 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13901 for-loop range, to avoid compiler warnings.
13902
13903 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13904 avoid compiler warnings about unused variables.
13905
742a7df5
EZ
13906 * NEWS: Mention end of support for native debugging on MS-Windows
13907 before XP.
13908
41fa577f
EZ
13909 PR gdb/24292
13910 * common/netstuff.c:
13911 * gdbserver/gdbreplay.c
13912 * gdbserver/remote-utils.c:
13913 * ser-tcp.c:
13914 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13915 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13916 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13917 'getaddrinfo' and 'freeaddrinfo' were not available before
13918 Windows XP, and mingw.org's MinGW headers by default define
13919 _WIN32_WINNT to 0x500.
13920
827f438f
GB
139212019-03-01 Gary Benson <gbenson@redhat.com>
13922
13923 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13924
92137da0
RO
139252019-02-28 Brian Vandenberg <phantall@gmail.com>
13926 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13927
13928 PR gdb/8527
13929 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13930 set_sigint_trap, clear_sigint_trap.
13931
799efbe8
PW
139322019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13933
13934 * target.c (target_detach): Clear the regcache and the
13935 frame cache.
13936
8ed25214
PA
139372019-02-27 Pedro Alves <palves@redhat.com>
13938
13939 * utils.c (set_screen_size): When we cap the height/width sizes,
13940 tweak the corresponding command variable to show "unlimited":
13941
23031e31
SJ
139422019-02-27 Saagar Jha <saagar@saagarjha.com>
13943 Pedro Alves <palves@redhat.com>
13944
13945 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13946 before calling rl_set_screen_size.
13947
6c28e44a
TT
139482019-02-27 Tom Tromey <tromey@adacore.com>
13949
13950 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13951 define.
13952 * python/py-value.c: Remove Python 2.4 workaround.
13953 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13954 workaround.
13955 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13956 Python 2.4 workaround.
13957 * python/python-internal.h: Remove Python 2.4 comment.
13958 (Py_ssize_t): Don't define.
13959 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13960 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13961 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13962 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13963 * python/python.c (do_start_initialization): Remove Python 2.4
13964 workaround.
13965 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13966 (print_children): Remove Python 2.4 workaround.
13967 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13968 workaround.
13969 (CHARBUFFERPROC_NAME): Remove.
13970 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13971 Python 2.4 workaround.
13972
2c3fc25d 139732019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13974
2c3fc25d
KB
13975 * NEWS: Note minimum Python version.
13976
6ca62222
KB
139772019-02-27 Kevin Buettner <kevinb@redhat.com>
13978
13979 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13980 code from these functions. Remove corresponding ifdefs. Use
13981 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13982 Remove gotos and target of gotos.
13983 (infpy_search_memory): Likewise.
13984
f4bc7d2c
AB
139852019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13986
13987 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13988 (hppa_gdbarch_init): Don't register deleted functions with
13989 gdbarch.
13990
9734a586
AB
139912019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13992
13993 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13994 (h8300_unwind_sp): Delete.
13995 (h8300_dummy_id): Delete.
13996 (h8300_gdbarch_init): Don't register deleted functions with
13997 gdbarch.
13998
68b867f3
AB
139992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14000
14001 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14002 (ft32_unwind_pc): Delete.
14003 (ft32_unwind_sp): Delete.
14004 (ft32_gdbarch_init): Don't register deleted functions with
14005 gdbarch.
14006
2fbe7ad0
AB
140072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14008
14009 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14010 (frv_unwind_pc): Delete.
14011 (frv_unwind_sp): Delete.
14012 (frv_gdbarch_init): Don't register deleted functions with
14013 gdbarch.
14014
76055cbe
AB
140152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14016
14017 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14018 (riscv_unwind_pc): Delete.
14019 (riscv_unwind_sp): Delete.
14020 (riscv_gdbarch_init): Don't register deleted functions with
14021 gdbarch.
14022
4133e5a1
AB
140232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14024
14025 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14026 (csky_unwind_pc): Delete.
14027 (csky_unwind_sp): Delete.
14028 (csky_gdbarch_init): Don't register deleted functions with
14029 gdbarch.
14030
8010f576
AB
140312019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14032
14033 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14034 (cris_unwind_pc): Delete.
14035 (cris_unwind_sp): Delete.
14036 (cris_gdbarch_init): Don't register deleted functions with
14037 gdbarch.
14038
b56bf084
AB
140392019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14040
14041 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14042 (bfin_unwind_pc): Delete.
14043 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14044
a19a650f
AB
140452019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14046
14047 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14048 (arm_unwind_pc): Delete.
14049 (arm_unwind_sp): Delete.
14050 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14051
f8278c3c
AB
140522019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14053
14054 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14055 (arc_unwind_pc): Delete.
14056 (arc_unwind_sp): Delete.
14057 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14058
480e46cf
AB
140592019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14060
14061 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14062 (alpha_unwind_pc): Delete.
14063 (alpha_gdbarch_init): Don't register deleted functions with
14064 gdbarch.
14065
7a995095
AB
140662019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14067
14068 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14069 (aarch64_unwind_pc): Delete.
14070 (aarch64_unwind_sp): Delete.
14071 (aarch64_gdbarch_init): Don't register deleted functions with
14072 gdbarch.
14073
bf9a735e
AB
140742019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14075
14076 * gdbtypes.c (type_align): Don't consider static members when
14077 computing structure alignment.
14078
5561fc30
AB
140792019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14080
14081 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14082 return 0 for other types.
14083 * arch-utils.c (default_type_align): Always return 0.
14084 * gdbarch.h: Regenerate.
14085 * gdbarch.sh (type_align): Extend comment.
14086 * gdbtypes.c (type_align): Add additional comments, always call
14087 gdbarch_type_align before applying the default rules.
14088 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14089 generic code will then apply a suitable default.
14090 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14091 types, return 0 for other types.
14092
9335e75a
JB
140932019-02-27 Joel Brobecker <brobecker@adacore.com>
14094
14095 * NEWS: Create a new section for the next release branch.
14096 Rename the section of the current branch, now that it has
14097 been cut.
14098
3d34d8de
JB
140992019-02-27 Joel Brobecker <brobecker@adacore.com>
14100
14101 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14102 * version.in: Bump version to 8.3.50.DATE-git.
14103
143420fb
SM
141042019-02-26 Simon Marchi <simon.marchi@efficios.com>
14105
14106 * aix-thread.c (ptid_cmp): Remove unused variable.
14107 (get_signaled_thread): Likewise.
14108 (store_regs_user_thread): Likewise.
14109 (store_regs_kernel_thread): Likewise.
14110 (fetch_regs_kernel_thread): Remove shadowed variable.
14111
172fb711
AB
141122019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14113
14114 * features/riscv/32bit-cpu.xml: Add register numbers.
14115 * features/riscv/32bit-fpu.c: Regenerate.
14116 * features/riscv/32bit-fpu.xml: Add register numbers.
14117 * features/riscv/64bit-cpu.xml: Add register numbers.
14118 * features/riscv/64bit-fpu.c: Regenerate.
14119 * features/riscv/64bit-fpu.xml: Add register numbers.
14120
26c89782
KB
141212019-02-26 Kevin Buettner <kevinb@redhat.com>
14122
af54ade9 14123 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14124 * python/py-value.c (convert_buffer_and_type_to_value): New
14125 function.
14126 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14127 Add support for handling an optional second argument. Call
14128 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14129 * python/python-internal.h (Py_buffer_deleter): New struct.
14130 (Py_buffer_up): New typedef.
14131
0f58c9e8
JB
141322019-02-25 John Baldwin <jhb@FreeBSD.org>
14133
14134 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14135 instead of releasing ownership.
14136
0a0f4c01
JR
141372019-02-25 Jordan Rupprecht <rupprecht@google.com>
14138
14139 * dwarf2read.c (open_and_init_dwp_file): Call
14140 elf_numsections instead of bfd_count_sections to initialize
14141 dwp_file->num_sections.
14142
cd5a152c
TT
141432019-02-25 Tom Tromey <tromey@adacore.com>
14144
14145 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14146
8a6a8513
SDJ
141472019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14148
14149 * gcore.in: Add '--readnever' option when invoking GDB.
14150
04dcda9c
SM
141512019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14152
14153 * MAINTAINERS: Update my email address.
14154
07bc701d
SM
141552019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14156
14157 * build-id.c (build_id_to_debug_bfd_1): New function.
14158 (build_id_to_debug_bfd): Look for separate debug file in
14159 sysroot.
14160
c6f4a5d0
AB
141612019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14162
14163 * gdbarch.sh: Update the copyright year range that is placed into
14164 generated files.
14165
9600246d
KS
141662019-02-22 Keith Seitz <keiths@redhat.com>
14167
14168 PR symtab/23853
14169 * linespec.c (create_sals_line_offset): Search for the default
14170 symtab's filename instead of its fullname.
14171
7557a514
AH
141722019-02-21 Alan Hayward <alan.hayward@arm.com>
14173
14174 * NEWS: Update style defaults.
14175
ee2bcb0c
AH
141762019-02-21 Alan Hayward <alan.hayward@arm.com>
14177
14178 * main.c (captured_main_1): Disable styling in batch mode.
14179
0c95f9ed
TT
141802019-02-20 Tom Tromey <tom@tromey.com>
14181
14182 * symtab.c (symtab_symbol_info): Fix typos.
14183
c763b894
TT
141842019-02-20 Tom Tromey <tromey@adacore.com>
14185
14186 * findcmd.c (_initialize_mem_search): Use upper case for
14187 metasyntactic variables.
14188
0ef8a082
AH
141892019-02-20 Alan Hayward <alan.hayward@arm.com>
14190
14191 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14192 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14193
6caa91b6
SM
141942019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14195
14196 * top.h (source_file_name): Change to std::string.
14197 * top.c (source_file_name): Likewise.
14198 (command_line_input): Adjust.
14199 * cli/cli-script.c (script_from_file): Adjust.
14200
98814c6c
TT
142012019-02-19 Tom Tromey <tromey@adacore.com>
14202
14203 * ravenscar-thread.c
14204 (ravenscar_thread_target::update_thread_list): Don't call
14205 ada_build_task_list.
14206 * ada-lang.h (ada_build_task_list): Don't declare.
14207 * ada-tasks.c (struct ada_tasks_inferior_data)
14208 <task_list_valid_p>: Now bool.
14209 (read_known_tasks, ada_task_list_changed)
14210 (ada_tasks_invalidate_inferior_data): Update.
14211 (read_known_tasks_array): Return bool.
14212 (read_known_tasks_list): Likewise.
14213 (read_known_tasks): Return void.
14214 (ada_build_task_list): Now static.
14215
70cd633e
AB
142162019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14217
14218 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14219 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14220
040b3e95
PW
142212019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14222
14223 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14224 variant for ada_tasks_pspace_data_handle and
14225 ada_tasks_inferior_data_handle.
14226 (ada_tasks_pspace_data_cleanup): New function.
14227 (ada_tasks_inferior_data_cleanup): New function.
14228
9409233b
TT
142292019-02-17 Tom Tromey <tom@tromey.com>
14230
14231 * macrotab.h (macro_source_fullname): Return a std::string.
14232 * macrotab.c (macro_include, check_for_redefinition)
14233 (macro_undef, macro_lookup_definition, foreach_macro)
14234 (foreach_macro_in_scope): Update.
14235 (macro_source_fullname): Return a std::string.
14236 * macrocmd.c (show_pp_source_pos): Update.
14237
6506371f
TT
142382019-02-17 Tom Tromey <tom@tromey.com>
14239
14240 * macrocmd.c (show_pp_source_pos): Style the file names.
14241
0c820d67
TT
142422019-02-17 Tom Tromey <tom@tromey.com>
14243
14244 PR tui/24197:
14245 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14246
a0087920
TT
142472019-02-17 Tom Tromey <tom@tromey.com>
14248
14249 * ada-lang.c (user_select_syms): Use filtered printing.
14250 * utils.c (wrap_style): New global.
14251 (desired_style): Remove.
14252 (emit_style_escape): Add stream parameter.
14253 (set_output_style, reset_terminal_style, prompt_for_continue):
14254 Update.
14255 (flush_wrap_buffer): Only flush gdb_stdout.
14256 (wrap_here): Set wrap_style.
14257 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14258 treat escape sequences as a character. Change when wrap buffer is
14259 flushed.
14260 (fputs_styled): Do not set the output style when the default is
14261 requested.
14262 * ui-style.h (struct ui_file_style) <is_default>: New method.
14263 * source.c (print_source_lines_base): Emit escape sequences in one
14264 piece.
14265
75ba10dc
JB
142662019-02-17 Joel Brobecker <brobecker@adacore.com>
14267
14268 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14269 integers and enumeration types.
14270
a2cd4f14
JB
142712019-02-17 Joel Brobecker <brobecker@adacore.com>
14272
14273 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14274 instead of lookup_symbol_in_language
14275 (do_exact_match): New function.
14276 (ada_get_symbol_name_matcher): Return do_exact_match when
14277 doing a verbatim match.
14278
485b851b
TT
142792019-02-15 Tom Tromey <tromey@adacore.com>
14280
14281 * ravenscar-thread.c (ravenscar_thread_target::resume)
14282 (ravenscar_thread_target::wait): Special case wildcard requests.
14283
0b790b1e
TT
142842019-02-15 Tom Tromey <tromey@adacore.com>
14285
14286 * ravenscar-thread.c (base_ptid): Remove.
14287 (struct ravenscar_thread_target) <close>: New method.
14288 <m_base_ptid>: New member.
14289 <update_inferior_ptid, active_task, task_is_currently_active,
14290 runtime_initialized>: Declare methods.
14291 <ravenscar_thread_target>: Add constructor.
14292 (ravenscar_thread_target::task_is_currently_active)
14293 (ravenscar_thread_target::update_inferior_ptid)
14294 (ravenscar_runtime_initialized): Rename. Now methods.
14295 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14296 (ravenscar_thread_target::update_thread_list): Update.
14297 (ravenscar_thread_target::active_task): Now method.
14298 (ravenscar_thread_target::store_registers)
14299 (ravenscar_thread_target::prepare_to_store)
14300 (ravenscar_thread_target::prepare_to_store)
14301 (ravenscar_thread_target::mourn_inferior): Update.
14302 (ravenscar_inferior_created): Use "new" to create target.
14303 (ravenscar_thread_target::get_ada_task_ptid): Update.
14304 (_initialize_ravenscar): Don't initialize base_ptid.
14305 (ravenscar_ops): Remove global.
14306
dea57a62
TT
143072019-02-15 Tom Tromey <tromey@adacore.com>
14308
14309 * target.h (push_target): Declare new overload.
14310 * target.c (push_target): New overload, taking an rvalue reference.
14311 * remote.c (remote_target::open_1): Use push_target overload.
14312 * corelow.c (core_target_open): Use push_target overload.
14313
989f3c58
TT
143142019-02-15 Tom Tromey <tromey@adacore.com>
14315
14316 * ravenscar-thread.c (is_ravenscar_task)
14317 (ravenscar_task_is_currently_active): Return bool.
14318 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14319 (_initialize_ravenscar): Remove "(void)".
14320 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14321 Return bool.
14322
6cbcc006
TT
143232019-02-15 Tom Tromey <tromey@adacore.com>
14324
14325 * ravenscar-thread.c (ravenscar_runtime_initializer)
14326 (has_ravenscar_runtime, get_running_thread_id)
14327 (ravenscar_thread_target::resume): Fix indentation.
14328
7657f14d
TT
143292019-02-15 Tom Tromey <tromey@adacore.com>
14330
14331 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14332 from ravenscar_arch_ops.
14333 (sparc_ravenscar_ops::fetch_registers)
14334 (sparc_ravenscar_ops::store_registers): Now methods.
14335 (sparc_ravenscar_prepare_to_store): Remove.
14336 (sparc_ravenscar_ops): Redefine.
14337 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14338 methods and destructor. Remove members.
14339 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14340 (ravenscar_thread_target::store_registers)
14341 (ravenscar_thread_target::prepare_to_store): Update.
14342 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14343 Remove.
14344 (struct ppc_ravenscar_powerpc_ops): Derive from
14345 ravenscar_arch_ops.
14346 (ppc_ravenscar_powerpc_ops::fetch_registers)
14347 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14348 (ppc_ravenscar_powerpc_ops): Redefine.
14349 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14350 (ppc_ravenscar_e500_ops::fetch_registers)
14351 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14352 (ppc_ravenscar_e500_ops): Redefine.
14353 * aarch64-ravenscar-thread.c
14354 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14355 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14356 (aarch64_ravenscar_fetch_registers)
14357 (aarch64_ravenscar_store_registers): Now methods.
14358 (aarch64_ravenscar_ops): Redefine.
14359
5b6ea500
TT
143602019-02-15 Tom Tromey <tromey@adacore.com>
14361
14362 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14363 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14364 (ravenscar_thread_target::stopped_by_watchpoint)
14365 (ravenscar_thread_target::stopped_data_address)
14366 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14367
e397fd39
TT
143682019-02-15 Tom Tromey <tromey@adacore.com>
14369
14370 * ravenscar-thread.c: Fix some typos.
14371
cc12f4a8
TT
143722019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14373 Tom Tromey <tromey@adacore.com>
14374
14375 * ada-lang.c (ada_exception_sal): Change addr_string to a
14376 std::string.
14377 (create_ada_exception_catchpoint): Update.
14378
5f486660
TT
143792019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14380 Tom Tromey <tromey@adacore.com>
14381
14382 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14383 (bp_location_ops): Remove.
14384 (base_breakpoint_allocate_location): Update.
14385 (free_bp_location): Update.
14386 * ada-lang.c (class ada_catchpoint_location)
14387 <ada_catchpoint_location>: Remove ops parameter.
14388 (ada_catchpoint_location_dtor): Remove.
14389 (ada_catchpoint_location_ops): Remove.
14390 (allocate_location_exception): Update.
14391 * breakpoint.h (struct bp_location_ops): Remove.
14392 (class bp_location) <bp_location>: Remove bp_location_ops
14393 parameter.
14394 <~bp_location>: Add destructor.
14395 <ops>: Remove.
14396
b671c7fb
TS
143972019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14398 Pedro Alves <palves@redhat.com>
14399
14400 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14401 'PATH_MAX'.
14402
8071c5ce
DM
144032019-02-14 David Michael <fedora.dm0@gmail.com>
14404 Samuel Thibault <samuel.thibault@gnu.org>
14405 Thomas Schwinge <thomas@codesourcery.com>
14406
14407 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14408 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14409
b1041ae0
TS
144102019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14411
924514e1
TS
14412 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14413 (check_empty): Use "const char *".
14414
c29ee8d4
TS
14415 * gnu-nat.c (gnu_nat_target::detach): Instead of
14416 'detach_inferior (pid)' call
14417 'detach_inferior (find_inferior_pid (pid))'.
14418
6c6ef69f
TS
14419 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14420 'nat/fork-inferior.o'.
14421 * gnu-nat.c: #include "nat/fork-inferior.h".
14422
2d0a338c
TS
14423 * gnu-nat.c (gnu_nat_target::detach): Instead of
14424 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14425 * gnu-nat.h: #include "inf-child.h".
14426 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14427 'i386_gnu_nat_target::fetch_registers'.
14428 (gnu_store_registers): Rename/move to
14429 'i386_gnu_nat_target::store_registers'.
14430
cabb5f06
TS
14431 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14432 * gnu-nat.h (mach_thread_info): New function.
14433 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14434
b1041ae0
TS
14435 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14436
2988d01e
KF
144372019-02-14 Frederic Konrad <konrad@adacore.com>
14438
14439 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14440
c559d709
JB
144412019-02-14 Joel Brobecker <brobecker@adacore.com>
14442
14443 * windows-nat.c (windows_add_thread): Add new parameter
14444 "main_thread_p" with default value set to false. Update
14445 function documentation as well as all callers.
14446 (windows_delete_thread): Likewise.
14447 (fake_create_process): Update call to windows_add_thread.
14448 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14449 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14450 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14451 call to windows_delete_thread.
14452
007024cc
SM
144532019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14454
14455 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14456
f62318e9
JB
144572019-02-12 John Baldwin <jhb@FreeBSD.org>
14458
14459 * symfile.c (find_separate_debug_file): Use canonical path of
14460 sysroot with child_path instead of gdb_sysroot if it is valid.
14461
cd4b7848
JB
144622019-02-12 John Baldwin <jhb@FreeBSD.org>
14463
14464 * symfile.c (find_separate_debug_file): Use child_path to
14465 determine if an object file is under a sysroot.
14466
efac4bfe
JB
144672019-02-12 John Baldwin <jhb@FreeBSD.org>
14468
14469 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14470 unittests/child-path-selftests.c.
14471 * common/pathstuff.c (child_path): New function.
14472 * common/pathstuff.h (child_path): New prototype.
14473 * unittests/child-path-selftests.c: New file.
14474
402d2bfe
JB
144752019-02-12 John Baldwin <jhb@FreeBSD.org>
14476
14477 * symfile.c (find_separate_debug_file): Look for separate debug
14478 files in debug directories under the sysroot.
14479
1ed9f74e
PW
144802019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14481
14482 * symtab.h (struct minimal_symbol data_p): New const method.
14483 (struct minimal_symbol text_p): Likewise.
14484 * symtab.c (output_source_filename): Use file name style
14485 to print file name.
14486 (print_symbol_info): Likewise.
14487 (print_msymbol_info): Use address style to print addresses.
14488 Use function name style to print executable text symbols.
14489 (expand_symtab_containing_pc): Use data_p.
14490 (find_pc_sect_compunit_symtab): Likewise.
14491
2636d81d
PW
144922019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14493
14494 * breakpoint.c (describe_other_breakpoints): Use address style
14495 to print addresses.
14496 (say_where): Likewise.
14497
ac8c53cc
PW
144982019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14499
14500 * ada-typeprint.c (print_func_type): Print function name
14501 style to print function name.
14502 * c-typeprint.c (c_print_type_1): Likewise.
14503
ea638c43
AH
145042019-02-11 Alan Hayward <alan.hayward@arm.com>
14505
14506 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14507 for execve.
14508
ab759ca8
PW
145092019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14510
14511 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14512 type_stack.
14513
aff29d1c
JB
145142019-02-10 Joel Brobecker <brobecker@adacore.com>
14515
14516 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14517 TYPE_CODE_REF types.
14518
617126bc
JW
145192019-02-08 Jim Wilson <jimw@sifive.com>
14520
14521 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14522 (riscv_linux_fregset): New.
14523 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14524
46e3ed7f
TT
145252019-02-07 Tom Tromey <tom@tromey.com>
14526
14527 * thread.c (thread_cancel_execution_command): Update.
14528 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14529 methods.
14530 (struct thread_fsm_ops): Remove.
14531 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14532 (thread_fsm_should_stop, thread_fsm_return_value)
14533 (thread_fsm_set_finished, thread_fsm_finished_p)
14534 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14535 Don't declare.
14536 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14537 * infrun.c (clear_proceed_status_thread)
14538 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14539 (print_stop_event): Update.
14540 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14541 Add constructor.
14542 (step_command_fsm_ops): Remove.
14543 (new_step_command_fsm): Remove.
14544 (step_1): Update.
14545 (step_command_fsm::should_stop): Rename from
14546 step_command_fsm_should_stop.
14547 (step_command_fsm::clean_up): Rename from
14548 step_command_fsm_clean_up.
14549 (step_command_fsm::do_async_reply_reason): Rename from
14550 step_command_fsm_async_reply_reason.
14551 (struct until_next_fsm): Inherit from thread_fsm. Add
14552 constructor.
14553 (until_next_fsm_ops): Remove.
14554 (new_until_next_fsm): Remove.
14555 (until_next_fsm::should_stop): Rename from
14556 until_next_fsm_should_stop.
14557 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14558 (until_next_fsm::do_async_reply_reason): Rename from
14559 until_next_fsm_async_reply_reason.
14560 (struct finish_command_fsm): Inherit from thread_fsm. Add
14561 constructor. Change type of breakpoint.
14562 (finish_command_fsm_ops): Remove.
14563 (new_finish_command_fsm): Remove.
14564 (finish_command_fsm::should_stop): Rename from
14565 finish_command_fsm_should_stop.
14566 (finish_command_fsm::clean_up): Rename from
14567 finish_command_fsm_clean_up.
14568 (finish_command_fsm::return_value): Rename from
14569 finish_command_fsm_return_value.
14570 (finish_command_fsm::do_async_reply_reason): Rename from
14571 finish_command_fsm_async_reply_reason.
14572 (finish_command): Update.
14573 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14574 Add constructor.
14575 (call_thread_fsm_ops): Remove.
14576 (call_thread_fsm::call_thread_fsm): Rename from
14577 new_call_thread_fsm.
14578 (call_thread_fsm::should_stop): Rename from
14579 call_thread_fsm_should_stop.
14580 (call_thread_fsm::should_notify_stop): Rename from
14581 call_thread_fsm_should_notify_stop.
14582 (run_inferior_call, call_function_by_hand_dummy): Update.
14583 * cli/cli-interp.c (should_print_stop_to_console): Update.
14584 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14585 Add constructor. Change type of location_breakpoint,
14586 caller_breakpoint.
14587 (until_break_fsm_ops): Remove.
14588 (new_until_break_fsm): Remove.
14589 (until_break_fsm::should_stop): Rename from
14590 until_break_fsm_should_stop.
14591 (until_break_fsm::clean_up): Rename from
14592 until_break_fsm_clean_up.
14593 (until_break_fsm::do_async_reply_reason): Rename from
14594 until_break_fsm_async_reply_reason.
14595 (until_break_command): Update.
14596 * thread-fsm.c: Remove.
14597 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14598
1a5c2598
TT
145992019-02-07 Tom Tromey <tom@tromey.com>
14600
14601 * yy-remap.h: Add include guard.
14602 * xtensa-tdep.h: Add include guard.
14603 * xcoffread.h: Rename include guard.
14604 * varobj-iter.h: Add include guard.
14605 * tui/tui.h: Rename include guard.
14606 * tui/tui-winsource.h: Rename include guard.
14607 * tui/tui-wingeneral.h: Rename include guard.
14608 * tui/tui-windata.h: Rename include guard.
14609 * tui/tui-win.h: Rename include guard.
14610 * tui/tui-stack.h: Rename include guard.
14611 * tui/tui-source.h: Rename include guard.
14612 * tui/tui-regs.h: Rename include guard.
14613 * tui/tui-out.h: Rename include guard.
14614 * tui/tui-layout.h: Rename include guard.
14615 * tui/tui-io.h: Rename include guard.
14616 * tui/tui-hooks.h: Rename include guard.
14617 * tui/tui-file.h: Rename include guard.
14618 * tui/tui-disasm.h: Rename include guard.
14619 * tui/tui-data.h: Rename include guard.
14620 * tui/tui-command.h: Rename include guard.
14621 * tic6x-tdep.h: Add include guard.
14622 * target/waitstatus.h: Rename include guard.
14623 * target/wait.h: Rename include guard.
14624 * target/target.h: Rename include guard.
14625 * target/resume.h: Rename include guard.
14626 * target-float.h: Rename include guard.
14627 * stabsread.h: Add include guard.
14628 * rs6000-tdep.h: Add include guard.
14629 * riscv-fbsd-tdep.h: Add include guard.
14630 * regformats/regdef.h: Rename include guard.
14631 * record.h: Rename include guard.
14632 * python/python.h: Rename include guard.
14633 * python/python-internal.h: Rename include guard.
14634 * python/py-stopevent.h: Rename include guard.
14635 * python/py-ref.h: Rename include guard.
14636 * python/py-record.h: Rename include guard.
14637 * python/py-record-full.h: Rename include guard.
14638 * python/py-record-btrace.h: Rename include guard.
14639 * python/py-instruction.h: Rename include guard.
14640 * python/py-events.h: Rename include guard.
14641 * python/py-event.h: Rename include guard.
14642 * procfs.h: Add include guard.
14643 * proc-utils.h: Add include guard.
14644 * p-lang.h: Add include guard.
14645 * or1k-tdep.h: Rename include guard.
14646 * observable.h: Rename include guard.
14647 * nto-tdep.h: Rename include guard.
14648 * nat/x86-linux.h: Rename include guard.
14649 * nat/x86-linux-dregs.h: Rename include guard.
14650 * nat/x86-gcc-cpuid.h: Add include guard.
14651 * nat/x86-dregs.h: Rename include guard.
14652 * nat/x86-cpuid.h: Rename include guard.
14653 * nat/ppc-linux.h: Rename include guard.
14654 * nat/mips-linux-watch.h: Rename include guard.
14655 * nat/linux-waitpid.h: Rename include guard.
14656 * nat/linux-ptrace.h: Rename include guard.
14657 * nat/linux-procfs.h: Rename include guard.
14658 * nat/linux-osdata.h: Rename include guard.
14659 * nat/linux-nat.h: Rename include guard.
14660 * nat/linux-namespaces.h: Rename include guard.
14661 * nat/linux-btrace.h: Rename include guard.
14662 * nat/glibc_thread_db.h: Rename include guard.
14663 * nat/gdb_thread_db.h: Rename include guard.
14664 * nat/gdb_ptrace.h: Rename include guard.
14665 * nat/fork-inferior.h: Rename include guard.
14666 * nat/amd64-linux-siginfo.h: Rename include guard.
14667 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14668 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14669 * nat/aarch64-linux.h: Rename include guard.
14670 * nat/aarch64-linux-hw-point.h: Rename include guard.
14671 * mn10300-tdep.h: Add include guard.
14672 * mips-linux-tdep.h: Add include guard.
14673 * mi/mi-parse.h: Rename include guard.
14674 * mi/mi-out.h: Rename include guard.
14675 * mi/mi-main.h: Rename include guard.
14676 * mi/mi-interp.h: Rename include guard.
14677 * mi/mi-getopt.h: Rename include guard.
14678 * mi/mi-console.h: Rename include guard.
14679 * mi/mi-common.h: Rename include guard.
14680 * mi/mi-cmds.h: Rename include guard.
14681 * mi/mi-cmd-break.h: Rename include guard.
14682 * m2-lang.h: Add include guard.
14683 * location.h: Rename include guard.
14684 * linux-record.h: Rename include guard.
14685 * linux-nat.h: Add include guard.
14686 * linux-fork.h: Add include guard.
14687 * i386-darwin-tdep.h: Rename include guard.
14688 * hppa-linux-offsets.h: Add include guard.
14689 * guile/guile.h: Rename include guard.
14690 * guile/guile-internal.h: Rename include guard.
14691 * gnu-nat.h: Rename include guard.
14692 * gdb-stabs.h: Rename include guard.
14693 * frv-tdep.h: Add include guard.
14694 * f-lang.h: Add include guard.
14695 * event-loop.h: Add include guard.
14696 * darwin-nat.h: Rename include guard.
14697 * cp-abi.h: Rename include guard.
14698 * config/sparc/nm-sol2.h: Rename include guard.
14699 * config/nm-nto.h: Rename include guard.
14700 * config/nm-linux.h: Add include guard.
14701 * config/i386/nm-i386gnu.h: Rename include guard.
14702 * config/djgpp/nl_types.h: Rename include guard.
14703 * config/djgpp/langinfo.h: Rename include guard.
14704 * compile/gcc-cp-plugin.h: Add include guard.
14705 * compile/gcc-c-plugin.h: Add include guard.
14706 * compile/compile.h: Rename include guard.
14707 * compile/compile-object-run.h: Rename include guard.
14708 * compile/compile-object-load.h: Rename include guard.
14709 * compile/compile-internal.h: Rename include guard.
14710 * compile/compile-cplus.h: Rename include guard.
14711 * compile/compile-c.h: Rename include guard.
14712 * common/xml-utils.h: Rename include guard.
14713 * common/x86-xstate.h: Rename include guard.
14714 * common/version.h: Rename include guard.
14715 * common/vec.h: Rename include guard.
14716 * common/tdesc.h: Rename include guard.
14717 * common/selftest.h: Rename include guard.
14718 * common/scoped_restore.h: Rename include guard.
14719 * common/scoped_mmap.h: Rename include guard.
14720 * common/scoped_fd.h: Rename include guard.
14721 * common/safe-iterator.h: Rename include guard.
14722 * common/run-time-clock.h: Rename include guard.
14723 * common/refcounted-object.h: Rename include guard.
14724 * common/queue.h: Rename include guard.
14725 * common/ptid.h: Rename include guard.
14726 * common/print-utils.h: Rename include guard.
14727 * common/preprocessor.h: Rename include guard.
14728 * common/pathstuff.h: Rename include guard.
14729 * common/observable.h: Rename include guard.
14730 * common/netstuff.h: Rename include guard.
14731 * common/job-control.h: Rename include guard.
14732 * common/host-defs.h: Rename include guard.
14733 * common/gdb_wait.h: Rename include guard.
14734 * common/gdb_vecs.h: Rename include guard.
14735 * common/gdb_unlinker.h: Rename include guard.
14736 * common/gdb_unique_ptr.h: Rename include guard.
14737 * common/gdb_tilde_expand.h: Rename include guard.
14738 * common/gdb_sys_time.h: Rename include guard.
14739 * common/gdb_string_view.h: Rename include guard.
14740 * common/gdb_splay_tree.h: Rename include guard.
14741 * common/gdb_setjmp.h: Rename include guard.
14742 * common/gdb_ref_ptr.h: Rename include guard.
14743 * common/gdb_optional.h: Rename include guard.
14744 * common/gdb_locale.h: Rename include guard.
14745 * common/gdb_assert.h: Rename include guard.
14746 * common/filtered-iterator.h: Rename include guard.
14747 * common/filestuff.h: Rename include guard.
14748 * common/fileio.h: Rename include guard.
14749 * common/environ.h: Rename include guard.
14750 * common/common-utils.h: Rename include guard.
14751 * common/common-types.h: Rename include guard.
14752 * common/common-regcache.h: Rename include guard.
14753 * common/common-inferior.h: Rename include guard.
14754 * common/common-gdbthread.h: Rename include guard.
14755 * common/common-exceptions.h: Rename include guard.
14756 * common/common-defs.h: Rename include guard.
14757 * common/common-debug.h: Rename include guard.
14758 * common/cleanups.h: Rename include guard.
14759 * common/buffer.h: Rename include guard.
14760 * common/btrace-common.h: Rename include guard.
14761 * common/break-common.h: Rename include guard.
14762 * cli/cli-utils.h: Rename include guard.
14763 * cli/cli-style.h: Rename include guard.
14764 * cli/cli-setshow.h: Rename include guard.
14765 * cli/cli-script.h: Rename include guard.
14766 * cli/cli-interp.h: Rename include guard.
14767 * cli/cli-decode.h: Rename include guard.
14768 * cli/cli-cmds.h: Rename include guard.
14769 * charset-list.h: Add include guard.
14770 * buildsym-legacy.h: Rename include guard.
14771 * bfin-tdep.h: Add include guard.
14772 * ax.h: Rename include guard.
14773 * arm-linux-tdep.h: Add include guard.
14774 * arm-fbsd-tdep.h: Add include guard.
14775 * arch/xtensa.h: Rename include guard.
14776 * arch/tic6x.h: Add include guard.
14777 * arch/i386.h: Add include guard.
14778 * arch/arm.h: Rename include guard.
14779 * arch/arm-linux.h: Rename include guard.
14780 * arch/arm-get-next-pcs.h: Rename include guard.
14781 * arch/amd64.h: Add include guard.
14782 * arch/aarch64-insn.h: Rename include guard.
14783 * arch-utils.h: Rename include guard.
14784 * annotate.h: Add include guard.
14785 * amd64-darwin-tdep.h: Rename include guard.
14786 * aarch64-linux-tdep.h: Add include guard.
14787 * aarch64-fbsd-tdep.h: Add include guard.
14788 * aarch32-linux-nat.h: Add include guard.
14789
ab9268d2
PW
147902019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14791
14792 * macrotab.c (macro_define_internal): New function that
14793 factorizes macro_define_object_internal and macro_define_function
14794 code.
14795 (macro_define_object_internal): Use macro_define_internal.
14796 (macro_define_function): Likewise.
14797
bb0da2b4
PW
147982019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14799
14800 * macrocmd.c (extract_identifier): Return
14801 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14802 callers.
14803
424eb552
JB
148042019-02-06 John Baldwin <jhb@FreeBSD.org>
14805
14806 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14807
1688cb29
TT
148082019-02-05 Tom Tromey <tom@tromey.com>
14809
14810 * target.c (target_stack::unpush): Move assertion earlier.
14811
b5eba2d8
TT
148122019-01-30 Tom Tromey <tom@tromey.com>
14813
14814 PR python/23615:
14815 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14816 (gdbpy_parse_and_eval): Likewise.
14817 * python/python-internal.h (gdbpy_allow_threads): New class.
14818
7054e2ff
JB
148192019-01-28 John Baldwin <jhb@FreeBSD.org>
14820
14821 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14822 (aarch64_fbsd_fpregmap): Move earlier.
14823 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14824 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14825 instead of individual calls to trad_frame_set_reg_addr.
14826 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14827 earlier.
14828 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14829 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14830 instead of individual calls to trad_frame_set_reg_addr.
14831
36c25ffa
AH
148322019-01-28 Alan Hayward <alan.hayward@arm.com>
14833
14834 * CONTRIBUTE: Replace contribution list with wiki link.
14835
a0707f3c
TT
148362019-01-25 Tom Tromey <tom@tromey.com>
14837
14838 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14839
0747795c
TT
148402019-01-25 Tom Tromey <tom@tromey.com>
14841
14842 * xtensa-linux-nat.c: Fix common/ includes.
14843 * xml-support.h: Fix common/ includes.
14844 * xml-support.c: Fix common/ includes.
14845 * x86-linux-nat.c: Fix common/ includes.
14846 * windows-nat.c: Fix common/ includes.
14847 * varobj.h: Fix common/ includes.
14848 * varobj.c: Fix common/ includes.
14849 * value.c: Fix common/ includes.
14850 * valops.c: Fix common/ includes.
14851 * utils.c: Fix common/ includes.
14852 * unittests/xml-utils-selftests.c: Fix common/ includes.
14853 * unittests/utils-selftests.c: Fix common/ includes.
14854 * unittests/unpack-selftests.c: Fix common/ includes.
14855 * unittests/tracepoint-selftests.c: Fix common/ includes.
14856 * unittests/style-selftests.c: Fix common/ includes.
14857 * unittests/string_view-selftests.c: Fix common/ includes.
14858 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14859 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14860 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14861 * unittests/rsp-low-selftests.c: Fix common/ includes.
14862 * unittests/parse-connection-spec-selftests.c: Fix common/
14863 includes.
14864 * unittests/optional-selftests.c: Fix common/ includes.
14865 * unittests/offset-type-selftests.c: Fix common/ includes.
14866 * unittests/observable-selftests.c: Fix common/ includes.
14867 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14868 * unittests/memrange-selftests.c: Fix common/ includes.
14869 * unittests/memory-map-selftests.c: Fix common/ includes.
14870 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14871 * unittests/function-view-selftests.c: Fix common/ includes.
14872 * unittests/environ-selftests.c: Fix common/ includes.
14873 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14874 * unittests/common-utils-selftests.c: Fix common/ includes.
14875 * unittests/cli-utils-selftests.c: Fix common/ includes.
14876 * unittests/array-view-selftests.c: Fix common/ includes.
14877 * ui-file.c: Fix common/ includes.
14878 * tui/tui-io.c: Fix common/ includes.
14879 * tracepoint.h: Fix common/ includes.
14880 * tracepoint.c: Fix common/ includes.
14881 * tracefile-tfile.c: Fix common/ includes.
14882 * top.h: Fix common/ includes.
14883 * top.c: Fix common/ includes.
14884 * thread.c: Fix common/ includes.
14885 * target/waitstatus.h: Fix common/ includes.
14886 * target/waitstatus.c: Fix common/ includes.
14887 * target.h: Fix common/ includes.
14888 * target.c: Fix common/ includes.
14889 * target-memory.c: Fix common/ includes.
14890 * target-descriptions.c: Fix common/ includes.
14891 * symtab.h: Fix common/ includes.
14892 * symfile.c: Fix common/ includes.
14893 * stap-probe.c: Fix common/ includes.
14894 * spu-linux-nat.c: Fix common/ includes.
14895 * sparc-nat.c: Fix common/ includes.
14896 * source.c: Fix common/ includes.
14897 * solib.c: Fix common/ includes.
14898 * solib-target.c: Fix common/ includes.
14899 * ser-unix.c: Fix common/ includes.
14900 * ser-tcp.c: Fix common/ includes.
14901 * ser-pipe.c: Fix common/ includes.
14902 * ser-base.c: Fix common/ includes.
14903 * selftest-arch.c: Fix common/ includes.
14904 * s12z-tdep.c: Fix common/ includes.
14905 * rust-exp.y: Fix common/ includes.
14906 * rs6000-aix-tdep.c: Fix common/ includes.
14907 * riscv-tdep.c: Fix common/ includes.
14908 * remote.c: Fix common/ includes.
14909 * remote-notif.h: Fix common/ includes.
14910 * remote-fileio.h: Fix common/ includes.
14911 * remote-fileio.c: Fix common/ includes.
14912 * regcache.h: Fix common/ includes.
14913 * regcache.c: Fix common/ includes.
14914 * record-btrace.c: Fix common/ includes.
14915 * python/python.c: Fix common/ includes.
14916 * python/py-type.c: Fix common/ includes.
14917 * python/py-inferior.c: Fix common/ includes.
14918 * progspace.h: Fix common/ includes.
14919 * producer.c: Fix common/ includes.
14920 * procfs.c: Fix common/ includes.
14921 * proc-api.c: Fix common/ includes.
14922 * printcmd.c: Fix common/ includes.
14923 * ppc-linux-nat.c: Fix common/ includes.
14924 * parser-defs.h: Fix common/ includes.
14925 * osdata.c: Fix common/ includes.
14926 * obsd-nat.c: Fix common/ includes.
14927 * nat/x86-linux.c: Fix common/ includes.
14928 * nat/x86-linux-dregs.c: Fix common/ includes.
14929 * nat/x86-dregs.h: Fix common/ includes.
14930 * nat/x86-dregs.c: Fix common/ includes.
14931 * nat/ppc-linux.c: Fix common/ includes.
14932 * nat/mips-linux-watch.h: Fix common/ includes.
14933 * nat/mips-linux-watch.c: Fix common/ includes.
14934 * nat/linux-waitpid.c: Fix common/ includes.
14935 * nat/linux-ptrace.h: Fix common/ includes.
14936 * nat/linux-ptrace.c: Fix common/ includes.
14937 * nat/linux-procfs.c: Fix common/ includes.
14938 * nat/linux-personality.c: Fix common/ includes.
14939 * nat/linux-osdata.c: Fix common/ includes.
14940 * nat/linux-namespaces.c: Fix common/ includes.
14941 * nat/linux-btrace.h: Fix common/ includes.
14942 * nat/linux-btrace.c: Fix common/ includes.
14943 * nat/fork-inferior.c: Fix common/ includes.
14944 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14945 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14946 * nat/aarch64-linux.c: Fix common/ includes.
14947 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14948 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14949 * namespace.h: Fix common/ includes.
14950 * mips-linux-tdep.c: Fix common/ includes.
14951 * minsyms.c: Fix common/ includes.
14952 * mi/mi-parse.h: Fix common/ includes.
14953 * mi/mi-main.c: Fix common/ includes.
14954 * mi/mi-cmd-env.c: Fix common/ includes.
14955 * memrange.h: Fix common/ includes.
14956 * memattr.c: Fix common/ includes.
14957 * maint.h: Fix common/ includes.
14958 * maint.c: Fix common/ includes.
14959 * main.c: Fix common/ includes.
14960 * machoread.c: Fix common/ includes.
14961 * location.c: Fix common/ includes.
14962 * linux-thread-db.c: Fix common/ includes.
14963 * linux-nat.c: Fix common/ includes.
14964 * linux-fork.c: Fix common/ includes.
14965 * inline-frame.c: Fix common/ includes.
14966 * infrun.c: Fix common/ includes.
14967 * inflow.c: Fix common/ includes.
14968 * inferior.h: Fix common/ includes.
14969 * inferior.c: Fix common/ includes.
14970 * infcmd.c: Fix common/ includes.
14971 * inf-ptrace.c: Fix common/ includes.
14972 * inf-child.c: Fix common/ includes.
14973 * ia64-linux-nat.c: Fix common/ includes.
14974 * i387-tdep.c: Fix common/ includes.
14975 * i386-tdep.c: Fix common/ includes.
14976 * i386-linux-tdep.c: Fix common/ includes.
14977 * i386-linux-nat.c: Fix common/ includes.
14978 * i386-go32-tdep.c: Fix common/ includes.
14979 * i386-fbsd-tdep.c: Fix common/ includes.
14980 * i386-fbsd-nat.c: Fix common/ includes.
14981 * guile/scm-type.c: Fix common/ includes.
14982 * guile/guile.c: Fix common/ includes.
14983 * go32-nat.c: Fix common/ includes.
14984 * gnu-nat.c: Fix common/ includes.
14985 * gdbthread.h: Fix common/ includes.
14986 * gdbarch-selftests.c: Fix common/ includes.
14987 * gdb_usleep.c: Fix common/ includes.
14988 * gdb_select.h: Fix common/ includes.
14989 * gdb_bfd.c: Fix common/ includes.
14990 * gcore.c: Fix common/ includes.
14991 * fork-child.c: Fix common/ includes.
14992 * findvar.c: Fix common/ includes.
14993 * fbsd-nat.c: Fix common/ includes.
14994 * event-top.c: Fix common/ includes.
14995 * event-loop.c: Fix common/ includes.
14996 * dwarf2read.c: Fix common/ includes.
14997 * dwarf2loc.c: Fix common/ includes.
14998 * dwarf2-frame.c: Fix common/ includes.
14999 * dwarf-index-cache.c: Fix common/ includes.
15000 * dtrace-probe.c: Fix common/ includes.
15001 * disasm-selftests.c: Fix common/ includes.
15002 * defs.h: Fix common/ includes.
15003 * csky-tdep.c: Fix common/ includes.
15004 * cp-valprint.c: Fix common/ includes.
15005 * cp-support.h: Fix common/ includes.
15006 * cp-support.c: Fix common/ includes.
15007 * corelow.c: Fix common/ includes.
15008 * completer.h: Fix common/ includes.
15009 * completer.c: Fix common/ includes.
15010 * compile/compile.c: Fix common/ includes.
15011 * compile/compile-loc2c.c: Fix common/ includes.
15012 * compile/compile-cplus-types.c: Fix common/ includes.
15013 * compile/compile-cplus-symbols.c: Fix common/ includes.
15014 * command.h: Fix common/ includes.
15015 * cli/cli-dump.c: Fix common/ includes.
15016 * cli/cli-cmds.c: Fix common/ includes.
15017 * charset.c: Fix common/ includes.
15018 * build-id.c: Fix common/ includes.
15019 * btrace.h: Fix common/ includes.
15020 * btrace.c: Fix common/ includes.
15021 * breakpoint.h: Fix common/ includes.
15022 * breakpoint.c: Fix common/ includes.
15023 * ax.h:
15024 (enum agent_op): Fix common/ includes.
15025 * ax-general.c (struct aop_map): Fix common/ includes.
15026 * ax-gdb.c: Fix common/ includes.
15027 * auxv.c: Fix common/ includes.
15028 * auto-load.c: Fix common/ includes.
15029 * arm-tdep.c: Fix common/ includes.
15030 * arch/riscv.c: Fix common/ includes.
15031 * arch/ppc-linux-common.c: Fix common/ includes.
15032 * arch/i386.c: Fix common/ includes.
15033 * arch/arm.c: Fix common/ includes.
15034 * arch/arm-linux.c: Fix common/ includes.
15035 * arch/arm-get-next-pcs.c: Fix common/ includes.
15036 * arch/amd64.c: Fix common/ includes.
15037 * arch/aarch64.c: Fix common/ includes.
15038 * arch/aarch64-insn.c: Fix common/ includes.
15039 * arch-utils.c: Fix common/ includes.
15040 * amd64-windows-tdep.c: Fix common/ includes.
15041 * amd64-tdep.c: Fix common/ includes.
15042 * amd64-sol2-tdep.c: Fix common/ includes.
15043 * amd64-obsd-tdep.c: Fix common/ includes.
15044 * amd64-nbsd-tdep.c: Fix common/ includes.
15045 * amd64-linux-tdep.c: Fix common/ includes.
15046 * amd64-linux-nat.c: Fix common/ includes.
15047 * amd64-fbsd-tdep.c: Fix common/ includes.
15048 * amd64-fbsd-nat.c: Fix common/ includes.
15049 * amd64-dicos-tdep.c: Fix common/ includes.
15050 * amd64-darwin-tdep.c: Fix common/ includes.
15051 * agent.c: Fix common/ includes.
15052 * ada-lang.h: Fix common/ includes.
15053 * ada-lang.c: Fix common/ includes.
15054 * aarch64-tdep.c: Fix common/ includes.
15055
2f5c153e
TT
150562019-01-25 Tom Tromey <tom@tromey.com>
15057
15058 * common/create-version.sh: Use common/version.h.
15059
adc6a863
PA
150602019-01-24 Pedro Alves <palves@redhat.com>
15061
15062 * infrun.c (signal_stop, signal_print, signal_program)
15063 (signal_catch, signal_pass): Now arrays instead of pointers.
15064 (update_signals_program_target, do_target_resume)
15065 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15066 * linux-nat.c (linux_nat_target::pass_signals)
15067 (linux_nat_target::create_inferior, linux_nat_target::attach):
15068 Adjust.
15069 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15070 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15071 * procfs.c (procfs_target::pass_signals): Adjust.
15072 * record-full.c (record_full_target::resume): Adjust.
15073 * remote.c (remote_target::pass_signals)
15074 (remote_target::program_signals): Adjust.
15075 * target-debug.h (target_debug_print_signals): Now takes a
15076 gdb::array_view as parameter. Adjust.
15077 * target.h (target_ops) <pass_signals, program_signals>: Replace
15078 pointer and length parameters with gdb::array_view.
15079 (target_pass_signals, target_program_signals): Likewise.
15080 * target-delegates.c: Regenerate.
15081
3046d67a
PA
150822019-01-24 Pedro Alves <palves@redhat.com>
15083
15084 * common/forward-scope-exit.h
15085 (forward_scope_exit::forward_scope_exit): Pass arguments to
15086 m_bind_function directly, instead of creating a std::bind and
15087 copying that.
15088
353229bf
AH
150892019-01-24 Alan Hayward <alan.hayward@arm.com>
15090
15091 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15092 for static members.
15093 (pass_in_v_vfp_candidate): Likewise.
15094
311dc83a
TT
150952019-01-23 Tom Tromey <tom@tromey.com>
15096 Pedro Alves <palves@redhat.com>
15097
15098 * regcache.c (class regcache_invalidator): Remove.
15099 (regcache::raw_write): Use make_scope_exit.
15100
296bd123
TT
151012019-01-23 Tom Tromey <tom@tromey.com>
15102
15103 * ui-out.h (class ui_out_emit_type): Update comment.
15104
979a0d13
TT
151052019-01-23 Tom Tromey <tom@tromey.com>
15106
15107 * infrun.c (fetch_inferior_event): Update comment.
15108
d238133d
TT
151092019-01-23 Tom Tromey <tom@tromey.com>
15110 Pedro Alves <palves@redhat.com>
15111
15112 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15113 parameter.
15114 (fetch_inferior_event): Use SCOPE_EXIT.
15115
15116
9885e6bb
TT
151172019-01-23 Tom Tromey <tom@tromey.com>
15118 Pedro Alves <palves@redhat.com>
15119
15120 * infrun.c (disable_thread_events): Delete.
15121 (stop_all_threads): Use SCOPE_EXIT.
15122
286526c1
TT
151232019-01-23 Tom Tromey <tom@tromey.com>
15124 Pedro Alves <palves@redhat.com>
15125
15126 * symfile.c: Include forward-scope-exit.h.
15127 (clear_symtab_users_cleanup): Replace forward declaration with
15128 a FORWARD_SCOPE_EXIT.
15129 (syms_from_objfile_1): Use the forward_scope_exit and
15130 gdb::optional instead of cleanup_function.
15131 (reread_symbols): Use the forward_scope_exit instead of
15132 cleanup_function.
15133 (clear_symtab_users_cleanup): Remove function.
15134
1db93f14
TT
151352019-01-23 Tom Tromey <tom@tromey.com>
15136 Pedro Alves <palves@redhat.com>
15137
15138 * linux-nat.c: Include scope-exit.h.
15139 (cleanup_target_stop): Remove.
15140 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15141 SCOPE_EXIT.
15142
2cc83d1e
TT
151432019-01-23 Tom Tromey <tom@tromey.com>
15144 Pedro Alves <palves@redhat.com>
15145
15146 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15147 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15148
694c6bf5
TT
151492019-01-23 Tom Tromey <tom@tromey.com>
15150 Andrew Burgess <andrew.burgess@embecosm.com>
15151 Pedro Alves <palves@redhat.com>
15152
15153 * infrun.c (fetch_inferior_event): Use scope_exit.
15154 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15155 * top.c (execute_command): Use scope_exit.
15156 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15157 * utils.c (do_bpstat_clear_actions_cleanup)
15158 (make_bpstat_clear_actions_cleanup): Remove.
15159
4c41382a
TT
151602019-01-23 Tom Tromey <tom@tromey.com>
15161 Pedro Alves <palves@redhat.com>
15162
15163 * infrun.c: Include "common/scope-exit.h"
15164 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15165 (wait_for_inferior): Use SCOPE_EXIT.
15166 (fetch_inferior_event): Use scope_exit.
15167
89f8fb50
TT
151682019-01-23 Tom Tromey <tom@tromey.com>
15169 Pedro Alves <palves@redhat.com>
15170
15171 * breakpoint.c (create_breakpoint): Remove cleanup.
15172
5419bdae
TT
151732019-01-23 Tom Tromey <tom@tromey.com>
15174 Andrew Burgess <andrew.burgess@embecosm.com>
15175 Pedro Alves <palves@redhat.com>
15176
e587ef42
PA
151772019-01-23 Pedro Alves <palves@redhat.com>
15178
15179 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15180
77f0e74c
PA
151812019-01-23 Pedro Alves <palves@redhat.com>
15182 Andrew Burgess <andrew.burgess@embecosm.com>
15183
15184 * gdbthread.h: Include "common/forward-scope-exit.h".
15185 (scoped_finish_thread_state): Redefine custom class in terms of
15186 forward_scope_exit.
15187
5b9b3e53
PA
151882019-01-23 Pedro Alves <palves@redhat.com>
15189 Andrew Burgess <andrew.burgess@embecosm.com>
15190
15191 * common/forward-scope-exit.h: New file.
15192
54b65c9b
PA
151932019-01-23 Pedro Alves <palves@redhat.com>
15194 Andrew Burgess <andrew.burgess@embecosm.com>
15195 Tom Tromey <tom@tromey.com>
15196
15197 * common/scope-exit.h: New file.
15198
cf08fb29
PA
151992019-01-23 Pedro Alves <palves@redhat.com>
15200
15201 * common/preprocessor.h (ESC): Rename to ...
15202 (ESC_PARENS): ... this.
15203 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15204 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15205
ae73e2e2
TT
152062019-01-23 Tom Tromey <tom@tromey.com>
15207
15208 * language.h (class scoped_switch_to_sym_language_if_auto):
15209 Initialize m_lang in both cases.
15210
6594e122
AH
152112019-01-23 Alan Hayward <alan.hayward@arm.com>
15212
15213 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15214 with XCNEW.
15215
a7c9855d
TT
152162019-01-22 Tom Tromey <tom@tromey.com>
15217
15218 * corelow.c: Do not include sys/file.h.
15219
93cc1d53
TT
152202019-01-22 Tom Tromey <tom@tromey.com>
15221
15222 * tui/tui-wingeneral.h: Include gdb_curses.h.
15223
38561778
TT
152242019-01-22 Tom Tromey <tom@tromey.com>
15225
15226 * source-cache.h (class source_cache) <get_source_lines,
15227 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15228
37b3ab5b
TT
152292019-01-22 Tom Tromey <tom@tromey.com>
15230
15231 * remote-fileio.h (struct remote_target): Declare.
15232
3fabc016
TT
152332019-01-22 Tom Tromey <tom@tromey.com>
15234
15235 * python/py-arch.c: Do not include py-ref.h.
15236 * python/py-bpevent.c: Do not include py-ref.h.
15237 * python/py-cmd.c: Do not include py-ref.h.
15238 * python/py-continueevent.c: Do not include py-ref.h.
15239 * python/py-event.h: Do not include py-ref.h.
15240 * python/py-evtregistry.c: Do not include py-ref.h.
15241 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15242 * python/py-frame.c: Do not include py-ref.h.
15243 * python/py-framefilter.c: Do not include py-ref.h.
15244 * python/py-function.c: Do not include py-ref.h.
15245 * python/py-infevents.c: Do not include py-ref.h.
15246 * python/py-linetable.c: Do not include py-ref.h.
15247 * python/py-objfile.c: Do not include py-ref.h.
15248 * python/py-param.c: Do not include py-ref.h.
15249 * python/py-prettyprint.c: Do not include py-ref.h.
15250 * python/py-progspace.c: Do not include py-ref.h.
15251 * python/py-symbol.c: Do not include py-ref.h.
15252 * python/py-symtab.c: Do not include py-ref.h.
15253 * python/py-type.c: Do not include py-ref.h.
15254 * python/py-unwind.c: Do not include py-ref.h.
15255 * python/py-utils.c: Do not include py-ref.h.
15256 * python/py-value.c: Do not include py-ref.h.
15257 * python/py-varobj.c: Do not include py-ref.h.
15258 * python/py-xmethods.c: Do not include py-ref.h.
15259 * python/python.c: Do not include py-ref.h.
15260 * varobj.c: Do not include py-ref.h.
15261
6b4d7774
TT
152622019-01-22 Tom Tromey <tom@tromey.com>
15263
15264 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15265 keyword for bcache.
15266
7af7e9b5
TT
152672019-01-22 Tom Tromey <tom@tromey.com>
15268
15269 * compile/compile-cplus-types.c: Remove a comment by #include.
15270
951d1049
TT
152712019-01-22 Tom Tromey <tom@tromey.com>
15272
15273 * compile/gcc-c-plugin.h: Include compile-internal.h.
15274
d65d5705
TT
152752019-01-22 Tom Tromey <tom@tromey.com>
15276
15277 * stabsread.c (EXTERN): Do not define.
15278 (symnum, next_symbol_text_func, processing_gcc_compilation)
15279 (within_function, global_sym_chain, global_stabs)
15280 (previous_stab_code, this_object_header_files)
15281 (n_this_object_header_files)
15282 (n_allocated_this_object_header_files): Define.
15283 * stabsread.h (EXTERN): Never define. Use "extern".
15284
b6fb1ee5
PW
152852019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15286
15287 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15288 history_value.
15289
be6d4f74
TT
152902019-01-21 Tom Tromey <tom@tromey.com>
15291
15292 * ui-out.c: Fix includes.
15293 * tui/tui-source.c: Fix includes.
15294 * target.c: Fix includes.
15295 * remote.c: Fix includes.
15296 * regcache.c: Fix includes.
15297 * python/py-block.c: Fix includes.
15298 * printcmd.c: Fix includes.
15299 * or1k-tdep.c: Fix includes.
15300 * mi/mi-main.c: Fix includes.
15301 * m32r-tdep.c: Fix includes.
15302 * csky-tdep.c: Fix includes.
15303 * compile/compile-cplus-types.c: Fix includes.
15304 * cli/cli-interp.c: Fix includes.
15305
73021deb
AH
153062019-01-21 Alan Hayward <alan.hayward@arm.com>
15307
15308 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15309 for padding.
15310
7932255d
TT
153112019-01-16 Tom Tromey <tom@tromey.com>
15312
15313 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15314 earlier.
15315 (struct objfile) <msymbols_range>: Move from top level.
15316 <msymbols>: New method.
15317 (class objfile_msymbols): Remove.
15318 * symtab.c (default_collect_symbol_completion_matches_break_on):
15319 Update.
15320 * symmisc.c (dump_msymbols): Update.
15321 * stabsread.c (scan_file_globals): Update.
15322 * objc-lang.c (info_selectors_command, info_classes_command)
15323 (find_methods): Update.
15324 * minsyms.c (find_solib_trampoline_target): Update.
15325 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15326 * coffread.c (coff_symfile_read): Update.
15327 * ada-lang.c (ada_lookup_simple_minsym)
15328 (ada_collect_symbol_completion_matches): Update.
15329
604b1bfb
TT
153302019-01-16 Tom Tromey <tom@tromey.com>
15331
15332 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15333 type. Remove no-argument constructor.
15334 <iterator::operator++>: Simplify.
15335 <begin>: Update.
15336 <end>: Use minimal_symbol_count.
15337
f252c6d5
TT
153382019-01-16 Tom Tromey <tom@tromey.com>
15339
15340 * objfiles.h (struct objfile) <psymtabs>: New method.
15341 (class objfile_psymtabs): Remove.
15342 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15343 typedef.
15344 <range>: New method.
15345 (require_partial_symbols): Change return type.
15346 * psymtab.c (require_partial_symbols)
15347 (psym_expand_symtabs_matching): Update.
15348 * mdebugread.c (parse_partial_symbols): Update.
15349 * dbxread.c (dbx_end_psymtab): Update.
15350
b669c953
TT
153512019-01-15 Tom Tromey <tom@tromey.com>
15352
15353 * symtab.c (lookup_objfile_from_block)
15354 (lookup_symbol_in_objfile_symtabs)
15355 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15356 (find_line_symtab, info_sources_command)
15357 (default_collect_symbol_completion_matches_break_on)
15358 (make_source_files_completion_list): Update.
15359 * symmisc.c (print_objfile_statistics, dump_objfile)
15360 (maintenance_print_symbols, maintenance_info_symtabs)
15361 (maintenance_check_symtabs, maintenance_info_line_tables):
15362 Update.
15363 * source.c (select_source_symtab)
15364 (forget_cached_source_info_for_objfile): Update.
15365 * objfiles.h (class objfile_compunits): Remove.
15366 (struct objfile) <compunits_range>: New typedef.
15367 (compunits): New method.
15368 * objfiles.c (objfile_relocate1): Update.
15369 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15370 * maint.c (count_symtabs_and_blocks): Update.
15371 * linespec.c (iterate_over_all_matching_symtabs): Update.
15372 * cp-support.c (add_symbol_overload_list_qualified): Update.
15373 * coffread.c (coff_symtab_read): Update.
15374 * ada-lang.c (add_nonlocal_symbols)
15375 (ada_collect_symbol_completion_matches)
15376 (ada_add_global_exceptions): Update.
15377
7e955d83
TT
153782019-01-15 Tom Tromey <tom@tromey.com>
15379
15380 * progspace.h (program_space) <objfiles_safe_range>: New
15381 typedef.
15382 <objfiles_safe>: New method.
15383 * objfiles.h (class all_objfiles_safe): Remove.
15384 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15385 * jit.c (jit_inferior_exit_hook): Update.
15386
2030c079
TT
153872019-01-17 Tom Tromey <tom@tromey.com>
15388
15389 * progspace.h (program_space) <objfiles_range>: New typedef.
15390 <objfiles>: New method.
15391 <objfiles_head>: Rename from objfiles.
15392 (object_files): Update.
15393 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15394 * guile/scm-pretty-print.c
15395 (ppscm_find_pretty_printer_from_objfiles): Update.
15396 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15397 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15398 Update.
15399 * python/py-progspace.c (pspy_get_objfiles): Update.
15400 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15401 Update.
15402 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15403 (objfpy_lookup_objfile_by_build_id): Update.
15404 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15405 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15406 Update.
15407 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15408 (expand_symtab_containing_pc, lookup_objfile_from_block)
15409 (lookup_static_symbol, basic_lookup_transparent_type)
15410 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15411 (find_line_symtab, info_sources_command)
15412 (default_collect_symbol_completion_matches_break_on)
15413 (make_source_files_completion_list, find_main_name): Update.
15414 * symmisc.c (print_symbol_bcache_statistics)
15415 (print_objfile_statistics, maintenance_print_symbols)
15416 (maintenance_print_msymbols, maintenance_print_objfiles)
15417 (maintenance_info_symtabs, maintenance_check_symtabs)
15418 (maintenance_expand_symtabs, maintenance_info_line_tables):
15419 Update.
15420 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15421 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15422 (map_overlay_command, unmap_overlay_command)
15423 (simple_overlay_update, expand_symtabs_matching)
15424 (map_symbol_filenames): Update.
15425 * symfile-debug.c (set_debug_symfile): Update.
15426 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15427 Update.
15428 * source.c (select_source_symtab, forget_cached_source_info):
15429 Update.
15430 * solib.c (solib_read_symbols): Update.
15431 * solib-spu.c (append_ocl_sos): Update.
15432 * psymtab.c (maintenance_print_psymbols)
15433 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15434 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15435 * printcmd.c (info_symbol_command): Update.
15436 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15437 Update.
15438 * objfiles.h (class all_objfiles): Remove.
15439 * objfiles.c (have_partial_symbols, have_full_symbols)
15440 (have_minimal_symbols, qsort_cmp, update_section_map)
15441 (shared_objfile_contains_address_p)
15442 (default_iterate_over_objfiles_in_search_order): Update.
15443 * objc-lang.c (info_selectors_command, info_classes_command)
15444 (find_methods): Update.
15445 * minsyms.c (find_solib_trampoline_target): Update.
15446 * maint.c (maintenance_info_sections)
15447 (maintenance_translate_address, count_symtabs_and_blocks):
15448 Update.
15449 * main.c (captured_main_1): Update.
15450 * linux-thread-db.c (try_thread_db_load_from_pdir)
15451 (has_libpthread): Update.
15452 * linespec.c (iterate_over_all_matching_symtabs)
15453 (search_minsyms_for_name): Update.
15454 * jit.c (jit_find_objf_with_entry_addr): Update.
15455 * hppa-tdep.c (find_unwind_entry)
15456 (hppa_lookup_stub_minimal_symbol): Update.
15457 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15458 Update.
15459 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15460 (elf_gnu_ifunc_resolve_by_got): Update.
15461 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15462 * dwarf-index-write.c (save_gdb_index_command): Update.
15463 * cp-support.c (add_symbol_overload_list_qualified): Update.
15464 * breakpoint.c (create_overlay_event_breakpoint)
15465 (create_longjmp_master_breakpoint)
15466 (create_std_terminate_master_breakpoint)
15467 (create_exception_master_breakpoint): Update.
15468 * blockframe.c (find_pc_partial_function): Update.
15469 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15470 (ada_collect_symbol_completion_matches)
15471 (ada_add_global_exceptions): Update.
15472
776489e0
TT
154732019-01-17 Tom Tromey <tom@tromey.com>
15474
15475 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15476 declare VEC.
15477 (solib_target_parse_libraries): Change return type.
15478 (library_list_start_segment, library_list_start_section)
15479 (library_list_end_library, library_list_start_library); Update.
15480 (solib_target_free_library_list): Remove.
15481 (solib_target_parse_libraries): Remove cleanup. Change return
15482 type.
15483 (solib_target_current_sos): Update.
15484
6471e7d2
TT
154852019-01-17 Tom Tromey <tromey@bapiya>
15486
15487 * valprint.c: Replace "the the" with "the".
15488 * symtab.c: Replace "the the" with "the".
15489 * solib.c: Replace "the the" with "the".
15490 * solib-dsbt.c: Replace "the the" with "the".
15491 * linespec.c: Replace "the the" with "the".
15492 * dwarf2loc.h: Replace "the the" with "the".
15493 * amd64-windows-tdep.c: Replace "the the" with "the".
15494 * aarch64-tdep.c: Replace "the the" with "the".
15495
c24bdb02
KS
154962019-01-16 Keith Seitz <keiths@redhat.com>
15497
15498 PR gdb/23773
15499 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15500 <builder>: Rename to ..
15501 <m_builder>: ... this and make private.
15502 (dwarf2_cu::get_builder): New method. Change all users of
15503 `builder' to use this method.
15504 (dwarf2_start_symtab): Move to ...
15505 (dwarf2_cu::start_symtab): ... here. Update all callers
15506 (setup_type_unit_groups): Move to ...
15507 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15508 callers.
15509 (dwarf2_cu::reset_builder): New method.
15510 (process_full_compunit, process_full_type_unit): Use
15511 dwarf2_cu::reset_builder.
15512 (follow_die_offset): Record the ancestor CU if it is different
15513 from the followed DIE's CU.
15514 (follow_die_sig_1): Likewise.
15515
8d64371b
TT
155162019-01-15 Tom Tromey <tom@tromey.com>
15517
15518 * remote.c (class remote_state) <buf>: Now a char_vector.
15519 <buf_size>: Remove.
15520 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15521 parameter.
15522 (remote_target::getpkt_or_notif_sane_1)
15523 (remote_target::getpkt_sane)
15524 (remote_target::getpkt_or_notif_sane): Likewise.
15525 (class remote_target) <putpkt>: New overload.
15526 (remote_target::read_frame): Change type of "buf_p". Remove
15527 sizeof_p parameter.
15528 (packet_ok): New overload.
15529 (packet_check_result): New overload.
15530 Update all uses.
15531
bb277751
TT
155322019-01-14 Tom Tromey <tom@tromey.com>
15533
15534 * remote-notif.c (handle_notification, remote_notif_ack)
15535 (remote_notif_parse): Make "buf" const.
15536 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15537 const.
15538 (remote_notif_parse, remote_notif_ack, handle_notification):
15539 Likewise.
15540 * remote.c (remote_notif_stop_parse): Make "buf" const.
15541 (remote_target::remote_parse_stop_reply): Make "buf" const.
15542 (remote_notif_stop_ack): Make "buf" const.
15543
05be00a8
TT
155442019-01-14 Tom Tromey <tom@tromey.com>
15545
15546 * remote.c (remote_console_output): Make parameter const.
15547
491adeca
TT
155482019-01-14 Tom Tromey <tom@tromey.com>
15549
15550 * target-debug.h (target_debug_print_signals): Constify.
15551 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15552 * procfs.c (procfs_target::pass_signals): Update.
15553 * linux-nat.c (linux_nat_target::pass_signals): Update.
15554 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15555 * target-delegates.c: Rebuild.
15556 * remote.c (remote_target::program_signals): Update.
15557 (remote_target::pass_signals): Update.
15558 * target.c (target_pass_signals): Constify argument.
15559 (target_program_signals): Likewise.
15560 * target.h (struct target_ops) <pass_signals, program_signals>:
15561 Constify argument.
15562 (target_pass_signals, target_program_signals): Constify argument.
15563
bbd94648
TT
155642019-01-14 Tom Tromey <tom@tromey.com>
15565
15566 PR tui/28819:
15567 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15568
6f072a10
PFC
155692019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15570
15571 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15572 field.
15573 * rs6000-tdep.c: Include reggroups.h.
15574 (IS_V_ALIAS_PSEUDOREG): Define.
15575 (rs6000_register_name): Return names for the "vX" aliases.
15576 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15577 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15578 aliases. Call default_register_reggroup_p for all other
15579 pseudo-registers.
15580 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15581 New functions.
15582 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15583 Handle "vX" aliases.
15584 (v_alias_pseudo_register_collect): New function.
15585 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15586 (rs6000_gdbarch_init): Initialize "vX" aliases as
15587 pseudo-registers. Restore registration of
15588 rs6000_pseudo_register_reggroup_p with
15589 set_tdesc_pseudo_register_reggroup_p.
15590
1a782351
MF
155912019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15592
15593 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15594 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15595 set_gdbarch_num_pseudo_regs.
15596
d73cff18
PW
155972019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15598
15599 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15600 Remove arg prefixname, add do_set and do_show.
15601 Add member functions set_list and show_list.
15602 * cli/cli-style.c (class cli_style_option): Update accordingly.
15603 (style_set_list): Move to file scope.
15604 (style_show_list): Likewise.
15605 (set_style): Call help_list.
15606 (show_style): Call cmd_show_list.
15607 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15608 Update to use the new macro.
15609
60a90376
JB
156102019-10-12 Joel Brobecker <brobecker@adacore.com>
15611
15612 * ada-lang.c (_initialize_ada_language): Expand the help text
15613 for the "catch exception" command.
15614
9d7c67bf
PW
156152019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15616
15617 * symtab.c (matching_obj_sections): Initialize obj,
15618 declare it closer to its usage.
15619
7cf47dc4
TT
156202019-01-10 Tom Tromey <tom@tromey.com>
15621
15622 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15623 (basic_inf_threads_range): Remove.
15624 (inf_threads_range, inf_non_exited_threads_range)
15625 (safe_inf_threads_range): Use next_adapter.
15626
d3cb6808
KS
156272019-01-10 Keith Seitz <keiths@redhat.com>
15628
15629 PR gdb/23712
15630 PR symtab/23010
15631 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15632 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15633
63a20375
KS
156342019-01-10 Keith Seitz <keiths@redhat.com>
15635
15636 PR gdb/23712
15637 PR symtab/23010
15638 * dictionary.c (pending_to_vector): Remove.
15639 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15640 Remove _1 suffix, replacing functions of the same name. Update
15641 all callers.
15642 (dict_create_hashed, dict_create_hashed_expandable)
15643 (dict_create_linear, dict_create_linear_expandable, dict_free)
15644 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15645 Make functions static.
15646
b026f593
KS
156472019-01-10 Keith Seitz <keiths@redhat.com>
15648
15649 PR gdb/23712
15650 PR symtab/23010
15651 * dictionary.h (struct dictionary): Replace declaration with
15652 multidictionary.
15653 (dict_create_hashed, dict_create_hashed_expandable)
15654 (dict_create_linear, dict_create_linear_expandable)
15655 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15656 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15657 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15658 taking multidictionary argument.
15659 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15660 * block.h (struct block) <dict>: Change to multidictionary
15661 and rename `multidict'.
15662 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15663 symmisc.c: Update all dictionary references to multidictionary.
15664
c7748ee9
KS
156652019-01-10 Keith Seitz <keiths@redhat.com>
15666
15667 PR gdb/23712
15668 PR symtab/23010
15669 * dictionary.c: Include unordered_map.
15670 (pending_to_vector): New function.
15671 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15672 Rewrite the non-"_1" functions to take vector instead
15673 of linked list.
15674 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15675 "new" _1 versions of the same name.
15676 (multidictionary): Define.
15677 (std::hash<enum language): New definition.
15678 (collate_pending_symbols_by_language, mdict_create_hashed)
15679 (mdict_create_hashed_expandable, mdict_create_linear)
15680 (mdict_create_linear_expandable, mdict_free)
15681 (find_language_dictionary, create_new_language_dictionary)
15682 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15683 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15684 (mdict_size, mdict_empty): New functions.
15685 * dictionary.h (mdict_iterator): Define.
15686
67aa1f3c
PA
156872019-01-10 Pedro Alves <palves@redhat.com>
15688
15689 * breakpoint.c (read_uploaded_action)
15690 (create_tracepoint_from_upload): Adjust to use
15691 gdb::unique_xmalloc_ptr.
15692 * ctf.c (ctf_write_uploaded_tp):
15693 (SET_ARRAY_FIELD): Use emplace_back.
15694 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15695 * tracefile-tfile.c (tfile_write_uploaded_tp):
15696 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15697 gdb::unique_xmalloc_ptr.
15698 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15699 at_string, cond_string, cmd_strings>: Replace char pointers
15700 with gdb::unique_xmalloc_ptr.
15701
2f667667
PA
157022019-01-10 Pedro Alves <palves@redhat.com>
15703
15704 * solib-target.c (library_list_start_library): Don't xstrdup name.
15705
36cb7237
PA
157062019-01-10 Pedro Alves <palves@redhat.com>
15707
15708 * mdebugread.c (parse_partial_symbols): Use
15709 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15710
da584958
AB
157112019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15712
15713 * linux-fork.c (scoped_switch_fork_info)
15714 <~scoped_switch_fork_info>: Fix incorrect variable name.
15715
1ef8573c
AB
157162019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15717
15718 * linux-fork.c (scoped_switch_fork_info)
15719 <scoped_switch_fork_info>: Make explicit.
15720 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15721
8d7bcccb
TT
157222019-01-10 Tom Tromey <tom@tromey.com>
15723
15724 * objfiles.h (objfile::reset_psymtabs): Update.
15725 * objfiles.c (objfile::objfile): Update.
15726 * psymtab.h (psymtab_storage::obstack): Update.
15727 (psymtab_storage::m_obstack): Use gdb::optional.
15728 (class psymtab_storage): Update comment. Remove objfile
15729 parameter.
15730 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15731
b596a3c7
TT
157322019-01-10 Tom Tromey <tom@tromey.com>
15733
15734 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15735 <free_psymtabs>: Now private.
15736 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15737 (allocate_psymtab): Use new method.
15738
a9342b62
TT
157392019-01-10 Tom Tromey <tom@tromey.com>
15740
15741 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15742 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15743 * mdebugread.c (parse_partial_symbols): Use
15744 allocate_dependencies.
15745 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15746 allocate_dependencies.
15747 (process_psymtab_comp_unit_reader)
15748 (build_type_psymtab_dependencies): Likewise.
15749 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15750
5af70966
TT
157512019-01-10 Tom Tromey <tom@tromey.com>
15752
15753 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15754 PSYMBOL_SET_LANGUAGE.
15755 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15756
5923a04c
TT
157572019-01-10 Tom Tromey <tom@tromey.com>
15758
15759 * psymtab.h (psymtab_storage::obstack): New method.
15760 <m_obstack>: Rename from obstack; now private.
15761 * psymtab.c (psymtab_storage): Update.
15762 * dwarf2read.c (create_addrmap_from_index)
15763 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15764 Update.
15765
6d6a12bf
TT
157662019-01-10 Tom Tromey <tom@tromey.com>
15767
15768 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15769 * objfiles.h (objfile::reset_psymtabs): New method.
15770
d320c2b5
TT
157712019-01-10 Tom Tromey <tom@tromey.com>
15772
15773 * symmisc.c (print_symbol_bcache_statistics): Update.
15774 (print_objfile_statistics): Update.
15775 * symfile.c (reread_symbols): Update.
15776 * psymtab.h (class psymtab_storage): New.
15777 * psymtab.c (psymtab_storage): New constructor.
15778 (~psymtab_storage): New destructor.
15779 (require_partial_symbols): Update.
15780 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15781 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15782 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15783 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15784 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15785 (start_psymtab_common, end_psymtab_common)
15786 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15787 (allocate_psymtab): Update.
15788 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15789 Update.
15790 (dump_psymtab_addrmap, maintenance_print_psymbols)
15791 (maintenance_check_psymtabs): Update.
15792 (class objfile_psymtabs): Move to objfiles.h.
15793 * psympriv.h (discard_psymtab): Now inline.
15794 (psymtab_discarder::psymtab_discarder): Update.
15795 (psymtab_discarder::~psymtab_discarder): Update.
15796 (ALL_OBJFILE_PSYMTABS): Rewrite.
15797 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15798 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15799 Remove fields.
15800 <partial_symtabs>: New field.
15801 (class objfile_psymtabs): Move from psymtab.h. Update.
15802 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15803 psymbol_cache.
15804 (objfile::~objfile): Don't destroy psymbol_cache.
15805 * mdebugread.c (parse_partial_symbols): Update.
15806 * dwarf2read.c (create_addrmap_from_index)
15807 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15808 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15809 (add_partial_subprogram, dwarf2_ranges_read): Update.
15810 * dwarf-index-write.c (write_address_map)
15811 (write_one_signatured_type, recursively_write_psymbols)
15812 (class debug_names, class debug_names, write_psymtabs_to_index):
15813 Update.
15814
1d94a5a3
TT
158152019-01-10 Tom Tromey <tom@tromey.com>
15816
15817 * symtab.h (SYMBOL_SET_NAMES): Update.
15818 (symbol_set_names): Update.
15819 (MSYMBOL_SET_NAMES): Update.
15820 * symtab.c (symbol_set_names): Change argument to be an
15821 objfile_per_bfd_storage.
15822 * psymtab.c (add_psymbol_to_bcache): Update.
15823 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15824
0f14768a
TT
158252019-01-10 Tom Tromey <tom@tromey.com>
15826
15827 * symtab.c (create_demangled_names_hash): Change argument to be an
15828 objfile_per_bfd_storage.
15829 (symbol_set_names): Update.
15830
6eee24ce
TT
158312019-01-10 Tom Tromey <tom@tromey.com>
15832
15833 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15834 init_psymbol_list.
15835 * psymtab.c (init_psymbol_list): Do nothing if already called.
15836 * psympriv.h (init_psymbol_list): Add comment.
15837 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15838 init_psymbol_list.
15839 * dbxread.c (dbx_symfile_read): Unconditionally call
15840 init_psymbol_list.
15841
75aedd27
TT
158422019-01-10 Tom Tromey <tom@tromey.com>
15843
15844 * xcoffread.c (scan_xcoff_symtab): Update.
15845 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15846 "where".
15847 * mdebugread.c (parse_partial_symbols)
15848 (handle_psymbol_enumerators): Update.
15849 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15850 * dbxread.c (read_dbx_symtab): Update.
15851 * psympriv.h (psymbol_placement): New enum.
15852 (add_psymbol_to_list): Update.
15853
939652a5
TT
158542019-01-10 Tom Tromey <tom@tromey.com>
15855
15856 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15857 static_psymbols parameters.
15858 (scan_xcoff_symtab): Update.
15859 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15860 static_psymbols parameters.
15861 * psympriv.h (start_psymtab_common): Update.
15862 * mdebugread.c (parse_partial_symbols): Update.
15863 * dwarf2read.c (create_partial_symtab): Update.
15864 * dbxread.c (read_dbx_symtab): Update.
15865 (start_psymtab): Remove global_psymbols and static_psymbols
15866 parameters.
15867
baa62830
TT
158682019-01-10 Tom Tromey <tom@tromey.com>
15869
15870 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15871 * psymtab.c (allocate_psymtab): Add comment.
15872 * psympriv.h (allocate_psymtab): Add comment.
15873 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15874 initializations.
15875 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15876
0e8f53ba
TT
158772019-01-10 Tom Tromey <tom@tromey.com>
15878
15879 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15880 Don't declare.
15881 * mipsread.c: Include mdebugread.h.
15882 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15883 Declare.
15884 * elfread.c: Include mdebugread.h.
15885
b22a7c6a
TT
158862019-01-09 Tom Tromey <tom@tromey.com>
15887
15888 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15889 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15890 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15891 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15892 (psym_lookup_symbol, psym_find_last_source_symtab)
15893 (psym_forget_cached_source_info, psym_print_stats)
15894 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15895 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15896 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15897 (psym_find_compunit_symtab_by_address)
15898 (maintenance_print_psymbols, maintenance_info_psymtabs)
15899 (maintenance_check_psymtabs): Use ranged for.
15900 * psymtab.h (class objfile_psymtabs): New.
15901 (require_partial_symbols): Return objfile_psymtabs.
15902 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15903
3b9d3ac2
TT
159042019-01-09 Tom Tromey <tom@tromey.com>
15905
15906 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15907 (find_pc_mapped_section, list_overlays_command)
15908 (map_overlay_command, unmap_overlay_command)
15909 (simple_overlay_update): Use all_objfiles.
15910 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15911 * printcmd.c (info_symbol_command): Use all_objfiles.
15912 * objfiles.h (ALL_OBJSECTIONS): Remove.
15913 * maint.c (maintenance_translate_address): Use all_objfiles.
15914 * gcore.c (gcore_create_callback): Use all_objfiles.
15915 (objfile_find_memory_regions): Likewise.
15916
8b31193a
TT
159172019-01-09 Tom Tromey <tom@tromey.com>
15918
15919 * symtab.c (find_line_symtab, info_sources_command)
15920 (make_source_files_completion_list): Use objfile_compunits.
15921 * source.c (select_source_symtab): Use objfile_compunits.
15922 * objfiles.h (struct objfile): Update comment.
15923 (ALL_OBJFILES): Remove.
15924 (ALL_FILETABS): Remove.
15925 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15926 objfile_compunits.
15927
d5da8b3c
TT
159282019-01-09 Tom Tromey <tom@tromey.com>
15929
15930 * symmisc.c (print_objfile_statistics, dump_objfile)
15931 (maintenance_print_symbols): Use compunit_filetabs.
15932 * source.c (forget_cached_source_info_for_objfile): Use
15933 compunit_filetabs.
15934 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15935 (ALL_FILETABS): Use compunit_filetabs.
15936 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15937 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15938
5accd1a0
TT
159392019-01-09 Tom Tromey <tom@tromey.com>
15940
15941 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15942 (compunit_filetabs): New.
15943 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15944 compunit_filetabs.
15945 (info_sources_command, make_source_files_completion_list): Remove
15946 declaration.
15947 * symmisc.c (print_objfile_statistics, dump_objfile)
15948 (maintenance_print_symbols): Remove declaration.
15949 (maintenance_info_symtabs): Use compunit_filetabs.
15950 (maintenance_info_line_tables): Likewise.
15951 * source.c (select_source_symtab): Change local variable name.
15952 (forget_cached_source_info_for_objfile): Remove declaration.
15953 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15954 * objfiles.c (objfile_relocate1): Remove declaration.
15955 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15956 declaration.
15957 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15958 * coffread.c (coff_symtab_read): Remove declaration.
15959 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15960 compunit_filetabs.
15961
d8aeb77f
TT
159622019-01-09 Tom Tromey <tom@tromey.com>
15963
15964 * symtab.c (lookup_objfile_from_block)
15965 (find_pc_sect_compunit_symtab, search_symbols)
15966 (default_collect_symbol_completion_matches_break_on): Use
15967 objfile_compunits.
15968 * objfiles.h (ALL_COMPUNITS): Remove.
15969 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15970 * cp-support.c (add_symbol_overload_list_qualified): Use
15971 objfile_compunits.
15972 * ada-lang.c (ada_collect_symbol_completion_matches)
15973 (ada_add_global_exceptions): Use objfile_compunits.
15974
592553c4
TT
159752019-01-09 Tom Tromey <tom@tromey.com>
15976
15977 * source.c (select_source_symtab)
15978 (forget_cached_source_info_for_objfile): Remove declaration.
15979 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15980 declaration.
15981 * maint.c (count_symtabs_and_blocks): Remove declaration.
15982 * cp-support.c (add_symbol_overload_list_qualified): Remove
15983 declaration.
15984 * coffread.c (coff_symtab_read): Remove declaration.
15985 * symtab.c (lookup_symbol_in_objfile_symtabs)
15986 (basic_lookup_transparent_type_1): Use objfile_compunits.
15987 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15988 (info_sources_command, search_symbols)
15989 (default_collect_symbol_completion_matches_break_on)
15990 (make_source_files_completion_list): Remove declaration.
15991 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15992 (ada_collect_symbol_completion_matches)
15993 (ada_add_global_exceptions): Remove declaration.
15994 * linespec.c (iterate_over_all_matching_symtabs): Use
15995 objfile_compunits.
15996 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15997 (class objfile_compunits): New.
15998 (ALL_COMPUNITS): Use objfile_compunits.
15999 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16000 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16001 objfile_compunits.
16002 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16003
5325b9bf
TT
160042019-01-09 Tom Tromey <tom@tromey.com>
16005
16006 * symtab.c (search_symbols)
16007 (default_collect_symbol_completion_matches_break_on): Use
16008 objfile_msymbols.
16009 * ada-lang.c (ada_lookup_simple_minsym)
16010 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16011 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16012 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16013 objfile_msymbols.
16014 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16015 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16016 * objc-lang.c (find_methods): Use objfile_msymbols.
16017 (info_selectors_command, info_classes_command): Likewise.
16018 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16019 * objfiles.h (class objfile_msymbols): New.
16020 (ALL_OBJFILE_MSYMBOLS): Remove.
16021 (ALL_MSYMBOLS): Remove.
16022
cac85af2
TT
160232019-01-09 Tom Tromey <tom@tromey.com>
16024
16025 * common/next-iterator.h (next_adapter): Add Iterator template
16026 parameter.
16027 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16028 (class all_objfiles_safe): New.
16029 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16030 * objfiles.c (put_objfile_before): Update comment.
16031 (add_separate_debug_objfile): Likewise.
16032 (free_all_objfiles): Use all_objfiles_safe.
16033 (objfile_purge_solibs): Likewise.
16034
aed57c53
TT
160352019-01-09 Tom Tromey <tom@tromey.com>
16036
16037 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16038 (expand_symtab_containing_pc, lookup_static_symbol)
16039 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16040 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16041 all_objfiles.
16042 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16043 * breakpoint.c (create_overlay_event_breakpoint)
16044 (create_longjmp_master_breakpoint)
16045 (create_std_terminate_master_breakpoint)
16046 (create_exception_master_breakpoint): Use all_objfiles.
16047 * linux-thread-db.c (try_thread_db_load_from_pdir)
16048 (has_libpthread): Use all_objfiles.
16049 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16050 * linespec.c (iterate_over_all_matching_symtabs)
16051 (search_minsyms_for_name): Use all_objfiles.
16052 * maint.c (maintenance_info_sections): Use all_objfiles.
16053 * main.c (captured_main_1): Use all_objfiles.
16054 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16055 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16056 * guile/scm-pretty-print.c
16057 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16058 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16059 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16060 (maintenance_print_msymbols): Use all_objfiles.
16061 * source.c (select_source_symtab): Use all_objfiles.
16062 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16063 * symfile.c (remove_symbol_file_command)
16064 (expand_symtabs_matching, map_symbol_filenames): Use
16065 all_objfiles.
16066 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16067 all_objfiles.
16068 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16069 * objc-lang.c (find_methods): Use all_objfiles.
16070 * objfiles.c (have_partial_symbols, have_full_symbols)
16071 (have_minimal_symbols, qsort_cmp)
16072 (default_iterate_over_objfiles_in_search_order): Use
16073 all_objfiles.
16074 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16075 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16076 (maintenance_check_psymtabs): Use all_objfiles.
16077 (ALL_PSYMTABS): Remove.
16078 * compile/compile-object-run.c (do_module_cleanup): Use
16079 all_objfiles.
16080 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16081 * cp-support.c (add_symbol_overload_list_qualified): Use
16082 all_objfiles.
16083 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16084 Use all_objfiles.
16085 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16086 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16087 all_objfiles.
16088 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16089 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16090 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16091 Uses all_objfiles.
16092 * solib.c (solib_read_symbols): Use all_objfiles
16093
99d89cde
TT
160942019-01-09 Tom Tromey <tom@tromey.com>
16095
16096 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16097 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16098 all_objfiles.
16099 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16100 * symmisc.c (print_symbol_bcache_statistics)
16101 (print_objfile_statistics, maintenance_print_objfiles)
16102 (maintenance_info_symtabs, maintenance_check_symtabs)
16103 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16104 all_objfiles.
16105 * source.c (forget_cached_source_info): Use all_objfiles.
16106 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16107 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16108 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16109 * objfiles.c (update_section_map): Use all_objfiles.
16110 (shared_objfile_contains_address_p): Likewise.
16111 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16112 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16113
21708325
TT
161142019-01-09 Tom Tromey <tom@tromey.com>
16115
16116 * common/next-iterator.h: New file.
16117 * objfiles.h (class all_objfiles): New.
16118 (struct objfile_iterator): New.
16119
669e09f6
PW
161202019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16121
16122 * NEWS: Move the description of the changed "frame", "select-frame",
16123 and "info frame" commands to the Changed commands section.
16124
041be526
SM
161252019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16126
16127 * gdbtypes.c (check_stub_method_group): Remove handling of old
16128 mangling schemes.
16129 * linespec.c (find_methods): Likewise.
16130 * stabsread.c (read_member_functions): Likewise.
16131 * valops.c (search_struct_method): Likewise.
16132 (value_struct_elt_for_reference): Likewise.
16133 * NEWS: Mention this change.
16134
0e2a2133
AB
161352019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16136
16137 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16138 print_source_lines.
16139 * source.c (print_source_lines_base): Update line number check.
16140 (print_source_lines): New function.
16141 (source_lines_range::source_lines_range): New function.
16142 * source.h (class source_lines_range): New class.
16143 (print_source_lines): New declaration.
16144
1055a3b4
PW
161452019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16146
16147 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16148
cfeadda5
TT
161492019-01-08 Tom Tromey <tom@tromey.com>
16150 Simon Marchi <simon.marchi@ericsson.com>
16151
16152 PR gdb/24060
16153 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16154 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16155 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16156 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16157 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16158 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16159
583068ca
AB
161602019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16161
16162 * source.c (select_source_symtab): Move header comment to
16163 declaration in source.h.
16164 (forget_cached_source_info_for_objfile): Likewise.
16165 (forget_cached_source_info): Likewise.
16166 (identify_source_line): Likewise.
16167 * source.h (identify_source_line): Move declaration from symtab.h
16168 and add comment from source.c
16169 (print_source_lines): Likewise.
16170 (forget_cached_source_info_for_objfile): Likewise.
16171 (forget_cached_source_info): Likewise.
16172 (select_source_symtab): Likewise.
16173 (enum print_source_lines_flag): Move definition from symtab.h.
16174 * symtab.h (identify_source_line): Move declaration to source.h.
16175 (print_source_lines): Likewise.
16176 (forget_cached_source_info_for_objfile): Likewise.
16177 (forget_cached_source_info): Likewise.
16178 (select_source_symtab): Likewise.
16179 (enum print_source_lines_flag): Move definition to source.h.
16180 * tui/tui-hooks.c: Add 'source.h' include.
16181
ec98a4ad
AB
161822019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16183
16184 * source.c (print_source_lines_base): Handle requests to print
16185 reverse line number sequences, and guard against empty lines
16186 string.
16187
62ea19c1
AB
161882019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16189
16190 * source.c (print_source_lines_base): Fix skip of '\r' if next
16191 character is '\n'.
16192
9d30e1fd
TT
161932019-01-06 Tom Tromey <tom@tromey.com>
16194
16195 * c-exp.y (struct c_parse_state) <macro_original_text,
16196 expansion_obstack>: New member.
16197 (macro_original_text, expansion_obstack): Remove globals.
16198 (scan_macro_expansion, scanning_macro_expansion)
16199 (finished_macro_expansion): Update.
16200 (scan_macro_cleanup): Remove.
16201 (yylex, c_parse): Update.
16202
c65bac38
TT
162032019-01-06 Tom Tromey <tom@tromey.com>
16204
16205 * c-exp.y (struct c_parse_state) <strings>: New member.
16206 (operator_stoken): Update.
16207
02e12e38
TT
162082019-01-06 Tom Tromey <tom@tromey.com>
16209
16210 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16211 (union type_stack_elt) <typelist_val>: Now a pointer to
16212 std::vector.
16213 (type_stack_cleanup): Don't declare.
16214 (push_typelist): Update.
16215 * parse.c (pop_typelist): Return a std::vector.
16216 (push_typelist): Take a std::vector.
16217 (follow_types): Update. Do not free args.
16218 (type_stack_cleanup): Remove.
16219 * c-exp.y (struct c_parse_state): New.
16220 (cpstate): New global.
16221 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16222 (nonempty_typelist): Update.
16223 (func_mod): Create a new vector.
16224 (c_parse): Create a c_parse_state.
16225 (check_parameter_typelist): Do not delete params.
16226 (function_method): Update. Do not delete type_list.
16227
f097f5ad
TT
162282019-01-06 Tom Tromey <tom@tromey.com>
16229
16230 PR gdb/28155:
16231 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16232 check_typedef.
16233 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16234 (print_return_value): Likewise.
16235
d2adf9f1
TT
162362019-01-05 Tom Tromey <tom@tromey.com>
16237
16238 * contrib/cleanup_check.py: Remove.
16239 * contrib/gcc-with-excheck: Remove.
16240 * contrib/exsummary.py: Remove.
16241 * contrib/excheck.py: Remove.
16242
2eab46b1
JB
162432019-01-05 Joel Brobecker <brobecker@adacore.com>
16244
16245 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16246 NULL. Initialize tpprev to NULL instead of assigning it
16247 to NULL on the next statement.
16248 * windows-nat.c (windows_delete_thread): Remove check for
16249 main_thread_id before printing thread exit notifications.
16250 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16251 Remove thread ID check against main_thread_id.
16252 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16253 windows_delete_thread.
16254 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16255
48c5e7e2
TT
162562019-01-04 Tom Tromey <tom@tromey.com>
16257
16258 * compile/compile.c (_initialize_compile): Use upper case for
16259 metasyntactic variables.
16260 * symmisc.c (_initialize_symmisc): Use upper case for
16261 metasyntactic variables.
16262 * psymtab.c (_initialize_psymtab): Use upper case for
16263 metasyntactic variables.
16264 * demangle.c (demangle_command): Use upper case for metasyntactic
16265 variables.
16266 (_initialize_demangler): Likewise.
16267 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16268 variables.
16269
986041cd
TT
162702019-01-03 Tom Tromey <tom@tromey.com>
16271
16272 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16273
7c711119
TT
162742019-01-03 Tom Tromey <tom@tromey.com>
16275
16276 * python/py-symtab.c (salpy_str): Update.
16277 (struct salpy_sal_object) <symtab>: Now a PyObject.
16278 (salpy_dealloc): Update.
16279 (del_objfile_sal): Use gdbpy_ref.
16280
1b20edf0
TT
162812019-01-03 Tom Tromey <tom@tromey.com>
16282
16283 * python/py-type.c (convert_field): Use new_reference. Return
16284 gdbpy_ref.
16285 (make_fielditem): Return gdbpy_ref.
16286 (typy_fields): Update.
16287 (typy_getitem): Update.
16288 (field_name): Return gdbpy_ref. Use new_reference.
16289 (typy_iterator_iternext): Update.
16290
ea41325b
TT
162912019-01-03 Tom Tromey <tom@tromey.com>
16292
16293 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16294
2a3c71d6
TT
162952019-01-03 Tom Tromey <tom@tromey.com>
16296
16297 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16298 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16299 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16300 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16301 (pspy_set_type_printers): Likewise.
16302 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16303 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16304 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16305 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16306 (objfpy_set_type_printers): Likewise.
16307
5c329e6a
TT
163082019-01-03 Tom Tromey <tom@tromey.com>
16309
16310 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16311 (gdbpy_print_stack): Use gdbpy_err_fetch.
16312 * python/python-internal.h (class gdbpy_err_fetch): New class.
16313 (class gdbpy_enter) <m_error_type, m_error_value,
16314 m_error_traceback>: Remove.
16315 <m_error>: New member.
16316 (gdbpy_exception_to_string): Don't declare.
16317 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16318 * python/py-value.c (convert_value_from_python): Use
16319 gdbpy_err_fetch.
16320 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16321 gdbpy_exception_to_string.
16322 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16323 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16324 gdbpy_err_fetch.
16325
169bb27b
AB
163262019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16327
16328 * linux-nat.c (delete_lwp_cleanup): Delete.
16329 (struct lwp_deleter): New struct.
16330 (lwp_info_up): New typedef.
16331 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16332 lwp_info_up.
16333
a07c8880
AB
163342019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16335
16336 * linux-fork.c (class scoped_switch_fork_info): New class.
16337 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16338
26089c49
AB
163392019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16340
16341 * valops.c (find_overload_match): Remove use of null_cleanup, and
16342 calls to do_cleanups.
16343
06d3e5b0
AB
163442019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16345
16346 * compile/compile-cplus-types.c
16347 (compile_cplus_instance::decl_name): Handle changes to
16348 cp_func_name.
16349 * cp-support.c (cp_func_name): Update header comment, update
16350 return type.
16351 * cp-support.h (cp_func_name): Update return type in declaration.
16352 * valops.c (find_overload_match): Move temp_func local to top
16353 level of function and change its type. Use temp_func to hold and
16354 delete temporary string obtained from cp_func_name.
16355
66644cd3
AB
163562019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16357
16358 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16359 gdb::char_vector, remove cleanup, and update uses of `msg`.
16360
592d8c0a
JW
163612019-01-03 Jim Wilson <jimw@sifive.com>
16362
16363 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16364
c55d06ec
TT
163652019-01-02 Tom Tromey <tom@tromey.com>
16366
16367 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16368 (tdesc_parse_xml): Remove cleanups.
16369 * target-descriptions.h (make_cleanup_free_target_description):
16370 Don't declare.
16371 (target_desc_deleter): New struct.
16372 (target_desc_up): New typedef.
16373 * target-descriptions.c (target_desc_deleter::operator()): Rename
16374 from free_target_description.
16375 (make_cleanup_free_target_description): Remove.
16376
3a6ae42d
TT
163772019-01-02 Tom Tromey <tom@tromey.com>
16378
16379 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16380 constructor, destructor.
16381 (linespec_parser): Remove typedef.
16382 (~linespec_parser): Rename from linespec_parser_delete.
16383 (linespec_lex_to_end, linespec_complete_label)
16384 (linespec_complete): Update.
16385 (decode_line_full): Remove cleanups.
16386 (decode_line_1): Update.
16387
61fd3e73
TT
163882019-01-02 Tom Tromey <tom@tromey.com>
16389
16390 * python/python-internal.h (inferior_to_inferior_object): Change
16391 return type.
16392 * python/py-exitedevent.c (create_exited_event_object): Update.
16393 * python/py-inferior.c (inferior_to_inferior_object): Return
16394 gdbpy_ref.
16395 (python_new_inferior, python_inferior_deleted)
16396 (thread_to_thread_object, delete_thread_object)
16397 (build_inferior_list, gdbpy_selected_inferior): Update.
16398 * python/py-infthread.c (create_thread_object): Update. Also fail
16399 if inferior_to_inferior_object fails.
16400
d20172fc
SM
164012019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16402
16403 * inferior.h (class inferior) <displaced_step_state>: New field.
16404 * infrun.h (struct displaced_step_state): Move here from
16405 infrun.c. Initialize fields, add constructor.
16406 <inf>: Remove field.
16407 <reset>: New method.
16408 * infrun.c (struct displaced_step_inferior_state): Move to
16409 infrun.h.
16410 (displaced_step_inferior_states): Remove.
16411 (get_displaced_stepping_state): Adust.
16412 (displaced_step_in_progress_any_inferior): Adjust.
16413 (displaced_step_in_progress_thread): Adjust.
16414 (displaced_step_in_progress): Adjust.
16415 (add_displaced_stepping_state): Remove.
16416 (get_displaced_step_closure_by_addr): Adjust.
16417 (remove_displaced_stepping_state): Remove.
16418 (infrun_inferior_exit): Call displaced_step_state.reset.
16419 (use_displaced_stepping): Don't check for NULL.
16420 (displaced_step_prepare_throw): Call
16421 get_displaced_stepping_state.
16422 (displaced_step_fixup): Don't check for NULL.
16423 (prepare_for_detach): Don't check for NULL.
16424
e3319240
PW
164252019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16426
16427 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16428 in case of call that did not complete.
16429
5d36dfb9
AU
164302019-01-02 Andrey Utkin <autkin@undo.io>
16431
16432 * symfile.c (find_separate_debug_file): Fix search of debug files for
16433 remote debuggee.
16434
8833fbf0
TT
164352019-01-02 Tom Tromey <tom@tromey.com>
16436
16437 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16438 indentation.
16439 * python/py-frame.c (frapy_older): Remove cast.
16440 (frapy_newer): Likewise.
16441 * python/py-breakpoint.c (local_setattro): Remove cast.
16442 * python/py-arch.c (archpy_name): Remove local variable.
16443 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16444
4ada3dfd
JB
164452019-01-02 Joel Brobecker <brobecker@adacore.com>
16446
16447 * unittests/basic_string_view/element_access/char/empty.cc:
16448 Fix year range in copyright header.
16449
113b7b81
AB
164502019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16451
16452 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16453 Delete.
16454 <operator==>: Update with for removed field.
16455 <hash>: Likewise.
16456 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16457 <isa_features>: ...this.
16458 <abi_features>: New field.
16459 (riscv_isa_flen): Update comment.
16460 (riscv_abi_xlen): New declaration.
16461 (riscv_abi_flen): New declaration.
16462 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16463 isa_features.
16464 (riscv_abi_xlen): New function.
16465 (riscv_isa_flen): Update to get answer from isa_features.
16466 (riscv_abi_flen): New function.
16467 (riscv_has_fp_abi): Update to get answer from abi_features.
16468 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16469 xlen and flen.
16470 (riscv_call_info) <xlen, flen>: Update comment.
16471 (riscv_call_arg_struct): Remove invalid assertions
16472 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16473 is removed.
16474 (riscv_gdbarch_init): Gather isa features and abi features
16475 separately, ensure both match on the gdbarch when reusing an old
16476 gdbarch. Relax an error check to allow 32-bit abi float to run on
16477 a target with 64-bit float hardware.
16478
b18ca514
PW
164792019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16480
16481 * source.c (search_command_helper): Stop reverse search
16482 when line 1 has been searched.
16483
ec70d8db
PW
164842019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16485
16486 * record-full.c (record_full_base_target::close): Rewrite
16487 record_full_core_buf_list free logic.
16488
5b38f9c1
PW
164892019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16490
16491 * break-catch-syscall.c (print_one_catch_syscall): xfree
16492 the last text.
16493
66d91b39
JB
164942019-01-01 Joel Brobecker <brobecker@adacore.com>
16495
16496 * top.c (print_gdb_version): Update Copyright year in version
16497 message.
16498
42a4f53d
JB
164992019-01-01 Joel Brobecker <brobecker@adacore.com>
16500
16501 Update copyright year range in all GDB files.
16502
7e955d83 165032019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16504
5bbd631d 16505 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16506
5bbd631d 16507For older changes see ChangeLog-2018.
c906108c
SS
16508\f
16509Local Variables:
16510mode: change-log
16511left-margin: 8
16512fill-column: 74
16513version-control: never
57da7796 16514coding: utf-8
c906108c 16515End:
5bbd631d 16516
This page took 3.15523 seconds and 4 git commands to generate.